@injectivelabs/chain-consumer
Advanced tools
Comparing version 0.0.56 to 0.0.57
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.0.57](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/chain-consumer@0.0.56...@injectivelabs/chain-consumer@0.0.57) (2021-06-12) | ||
### Features | ||
* enabled fee delegation for exchange transactions ([8f20e0d](https://github.com/InjectiveLabs/injective-ts/commit/8f20e0d4eba3b92aaa1abf47e7cc3f3b3a865cf3)) | ||
## [0.0.56](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/chain-consumer@0.0.55...@injectivelabs/chain-consumer@0.0.56) (2021-06-08) | ||
@@ -8,0 +19,0 @@ |
@@ -1,8 +0,5 @@ | ||
import { MarketStatusMap } from '@injectivelabs/chain-api/injective/exchange/v1beta1/exchange_pb'; | ||
import BaseConsumer from '../BaseConsumer'; | ||
export declare class ExchangeConsumer extends BaseConsumer { | ||
fetchParams(): Promise<import("@injectivelabs/chain-api/injective/exchange/v1beta1/exchange_pb").Params | undefined>; | ||
fetchSpotMarkets(status: MarketStatusMap[keyof MarketStatusMap]): Promise<import("@injectivelabs/chain-api/injective/exchange/v1beta1/exchange_pb").SpotMarket[]>; | ||
fetchSpotMarket(marketId: string): Promise<import("@injectivelabs/chain-api/injective/exchange/v1beta1/exchange_pb").SpotMarket | undefined>; | ||
} | ||
//# sourceMappingURL=ExchangeConsumer.d.ts.map |
@@ -33,30 +33,4 @@ "use strict"; | ||
} | ||
fetchSpotMarkets(status) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const request = new query_pb_1.QuerySpotMarketsRequest(); | ||
request.setStatus(status); | ||
try { | ||
const response = yield this.request(request, query_pb_service_1.Query.SpotMarkets); | ||
return response.getMarketsList(); | ||
} | ||
catch (e) { | ||
throw new exceptions_1.GrpcException(e.message); | ||
} | ||
}); | ||
} | ||
fetchSpotMarket(marketId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const request = new query_pb_1.QuerySpotMarketRequest(); | ||
request.setMarketId(marketId); | ||
try { | ||
const response = yield this.request(request, query_pb_service_1.Query.SpotMarket); | ||
return response.getMarket(); | ||
} | ||
catch (e) { | ||
throw new exceptions_1.GrpcException(e.message); | ||
} | ||
}); | ||
} | ||
} | ||
exports.ExchangeConsumer = ExchangeConsumer; | ||
//# sourceMappingURL=ExchangeConsumer.js.map |
{ | ||
"name": "@injectivelabs/chain-consumer", | ||
"description": "Interacting with our Chain API made easy. Can be reused throughout Injective's projects.", | ||
"version": "0.0.56", | ||
"version": "0.0.57", | ||
"license": "MIT", | ||
@@ -42,3 +42,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "3afa0c9e03e9a0cebf98b202928893980239989a" | ||
"gitHead": "75d6d6357aea86c759a757d690b62f172cebf928" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
126139
1285