Skip to content

Commit

Permalink
removing unnecessary typedef abi encode checks on hyperion calls
Browse files Browse the repository at this point in the history
  • Loading branch information
joshglogau committed Jan 9, 2025
1 parent cecb73f commit 0d93d40
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@wireio/core",
"description": "Library for working with Wire powered blockchains.",
"version": "0.0.5-2",
"version": "0.0.5-3",
"homepage": "https://github.com/Wire-Network/sdk-core",
"license": "FSL-1.1-Apache-2.0",
"main": "lib/core.js",
Expand Down
9 changes: 3 additions & 6 deletions src/api/v2/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export class HistoryAPIv2 {
return this.client.call({
method: 'GET',
path: '/v2/history/get_transaction',
params: { id, block_hint },
responseType: GetTransactionResponse,
params: { id, block_hint }
});
}

Expand All @@ -27,8 +26,7 @@ export class HistoryAPIv2 {
return this.client.call({
method: 'GET',
path: `/v2/history/get_actions`,
params: params as any || {},
responseType: GetActionsResponse,
params: params || {}
});
}

Expand All @@ -41,8 +39,7 @@ export class HistoryAPIv2 {
return this.client.call({
method: 'GET',
path: `/v2/history/get_created_accounts`,
params: params as any || {},
responseType: GetCreatedAccountsResponse,
params
});
}
}
3 changes: 1 addition & 2 deletions src/api/v2/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export class StateAPIv2 {
return this.client.call({
method: 'GET',
path: '/v2/state/get_account',
params: { account, limit, skip },
responseType: GetAccountResponse,
params: { account, limit, skip }
});
}
}
12 changes: 4 additions & 8 deletions src/api/v2/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export class StatsAPIv2 {
async health(): Promise<HealthResponse> {
return this.client.call({
method: 'GET',
path: '/v2/health',
responseType: HealthResponse,
path: '/v2/health'
});
}

Expand All @@ -19,8 +18,7 @@ export class StatsAPIv2 {
async get_api_usage(): Promise<ApiUsageResponse> {
return this.client.call({
method: 'GET',
path: '/v2/stats/get_api_usage',
responseType: ApiUsageResponse,
path: '/v2/stats/get_api_usage'
});
}

Expand All @@ -32,8 +30,7 @@ export class StatsAPIv2 {
return this.client.call({
method: 'GET',
path: '/v2/stats/get_missed_blocks',
params,
responseType: MissedBlocksResponse,
params: params || {}
});
}

Expand All @@ -46,8 +43,7 @@ export class StatsAPIv2 {
return this.client.call({
method: 'GET',
path: '/v2/stats/get_resource_usage',
params,
responseType: GetResourceUsageResponse,
params
});
}
}

0 comments on commit 0d93d40

Please sign in to comment.