Skip to content

Commit

Permalink
fix: return types
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Oct 25, 2021
1 parent 3846d6b commit fe6c05d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
11 changes: 11 additions & 0 deletions packages/chain-consumer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.88](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/chain-consumer@0.0.87...@injectivelabs/chain-consumer@0.0.88) (2021-10-25)


### Bug Fixes

* return types ([b0ee57f](https://github.com/InjectiveLabs/injective-ts/commit/b0ee57f705df2ba517263beef0c4f395337f28c7))





## [0.0.87](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/chain-consumer@0.0.86...@injectivelabs/chain-consumer@0.0.87) (2021-10-25)


Expand Down
2 changes: 1 addition & 1 deletion packages/chain-consumer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@injectivelabs/chain-consumer",
"description": "Interacting with our Chain API made easy. Can be reused throughout Injective's projects.",
"version": "0.0.87",
"version": "0.0.88",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
12 changes: 2 additions & 10 deletions packages/chain-consumer/src/consumers/ExchangeConsumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ export class ExchangeConsumer extends BaseConsumer {
typeof Query.FeeDiscountAccountInfo
>(request, Query.FeeDiscountAccountInfo)

return {
accountInfo: response.getAccountInfo(),
tierLevel: response.getTierLevel(),
}
return response
} catch (e: any) {
throw new GrpcException(e.message)
}
Expand All @@ -78,12 +75,7 @@ export class ExchangeConsumer extends BaseConsumer {
typeof Query.TradeRewardCampaign
>(request, Query.TradeRewardCampaign)

return {
totalTradeRewardPoints: response.getTotalTradeRewardPoints(),
tradingRewardCampaignInfo: response.getTradingRewardCampaignInfo(),
tradingRewardPoolCampaignScheduleList:
response.getTradingRewardPoolCampaignScheduleList(),
}
return response
} catch (e: any) {
throw new GrpcException(e.message)
}
Expand Down

0 comments on commit fe6c05d

Please sign in to comment.