@injectivelabs/sdk-ts 1.12.0-beta.64 → 1.12.0-beta.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/cjs/client/chain/grpc/ChainGrpcAuthzApi.d.ts +19 -0
  2. package/dist/cjs/client/chain/grpc/ChainGrpcAuthzApi.d.ts.map +1 -0
  3. package/dist/cjs/client/chain/grpc/ChainGrpcAuthzApi.js +60 -0
  4. package/dist/cjs/client/chain/grpc/ChainGrpcAuthzApi.js.map +1 -0
  5. package/dist/cjs/client/chain/transformers/ChainGrpcAuthzTransformer.d.ts +18 -0
  6. package/dist/cjs/client/chain/transformers/ChainGrpcAuthzTransformer.d.ts.map +1 -0
  7. package/dist/cjs/client/chain/transformers/ChainGrpcAuthzTransformer.js +25 -0
  8. package/dist/cjs/client/chain/transformers/ChainGrpcAuthzTransformer.js.map +1 -0
  9. package/dist/cjs/client/chain/types/index.d.ts +1 -0
  10. package/dist/cjs/client/chain/types/index.d.ts.map +1 -1
  11. package/dist/cjs/client/indexer/grpc/IndexerGrpcTradingApi.d.ts +12 -0
  12. package/dist/cjs/client/indexer/grpc/IndexerGrpcTradingApi.d.ts.map +1 -0
  13. package/dist/cjs/client/indexer/grpc/IndexerGrpcTradingApi.js +54 -0
  14. package/dist/cjs/client/indexer/grpc/IndexerGrpcTradingApi.js.map +1 -0
  15. package/dist/cjs/client/indexer/types/index.d.ts +1 -0
  16. package/dist/cjs/client/indexer/types/index.d.ts.map +1 -1
  17. package/dist/esm/client/chain/grpc/ChainGrpcAuthzApi.d.ts +19 -0
  18. package/dist/esm/client/chain/grpc/ChainGrpcAuthzApi.d.ts.map +1 -0
  19. package/dist/esm/client/chain/grpc/ChainGrpcAuthzApi.js +43 -0
  20. package/dist/esm/client/chain/grpc/ChainGrpcAuthzApi.js.map +1 -0
  21. package/dist/esm/client/chain/transformers/ChainGrpcAuthzTransformer.d.ts +18 -0
  22. package/dist/esm/client/chain/transformers/ChainGrpcAuthzTransformer.d.ts.map +1 -0
  23. package/dist/esm/client/chain/transformers/ChainGrpcAuthzTransformer.js +21 -0
  24. package/dist/esm/client/chain/transformers/ChainGrpcAuthzTransformer.js.map +1 -0
  25. package/dist/esm/client/chain/types/index.d.ts +1 -0
  26. package/dist/esm/client/chain/types/index.d.ts.map +1 -1
  27. package/dist/esm/client/indexer/grpc/IndexerGrpcTradingApi.d.ts +12 -0
  28. package/dist/esm/client/indexer/grpc/IndexerGrpcTradingApi.d.ts.map +1 -0
  29. package/dist/esm/client/indexer/grpc/IndexerGrpcTradingApi.js +37 -0
  30. package/dist/esm/client/indexer/grpc/IndexerGrpcTradingApi.js.map +1 -0
  31. package/dist/esm/client/indexer/types/index.d.ts +1 -0
  32. package/dist/esm/client/indexer/types/index.d.ts.map +1 -1
  33. package/package.json +7 -7
@@ -0,0 +1,19 @@
1
+ import { CosmosAuthzV1Beta1Query } from '@injectivelabs/core-proto-ts';
2
+ import BaseGrpcConsumer from '../../BaseGrpcConsumer';
3
+ import { PaginationOption } from '../../../types/pagination';
4
+ /**
5
+ * @category Chain Grpc API
6
+ */
7
+ export declare class ChainGrpcAuthZApi extends BaseGrpcConsumer {
8
+ protected module: string;
9
+ protected client: CosmosAuthzV1Beta1Query.QueryClientImpl;
10
+ constructor(endpoint: string);
11
+ fetchGrants(pagination?: PaginationOption): Promise<{
12
+ pagination: import("../../../types/pagination").Pagination;
13
+ grants: {
14
+ authorization: string;
15
+ expiration: Date | undefined;
16
+ }[];
17
+ }>;
18
+ }
19
+ //# sourceMappingURL=ChainGrpcAuthzApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainGrpcAuthzApi.d.ts","sourceRoot":"","sources":["../../../../../src/client/chain/grpc/ChainGrpcAuthzApi.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,gBAAgB,MAAM,wBAAwB,CAAA;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAI5D;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,gBAAgB;IACrD,SAAS,CAAC,MAAM,EAAE,MAAM,CAAoB;IAE5C,SAAS,CAAC,MAAM,EAAE,uBAAuB,CAAC,eAAe,CAAA;gBAE7C,QAAQ,EAAE,MAAM;IAQtB,WAAW,CAAC,UAAU,CAAC,EAAE,gBAAgB;;;;;;;CAgChD"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ChainGrpcAuthZApi = void 0;
16
+ const exceptions_1 = require("@injectivelabs/exceptions");
17
+ const core_proto_ts_1 = require("@injectivelabs/core-proto-ts");
18
+ const BaseGrpcConsumer_1 = __importDefault(require("../../BaseGrpcConsumer"));
19
+ const types_1 = require("../types");
20
+ const pagination_1 = require("../../../utils/pagination");
21
+ const ChainGrpcAuthzTransformer_1 = require("../transformers/ChainGrpcAuthzTransformer");
22
+ /**
23
+ * @category Chain Grpc API
24
+ */
25
+ class ChainGrpcAuthZApi extends BaseGrpcConsumer_1.default {
26
+ constructor(endpoint) {
27
+ super(endpoint);
28
+ this.module = types_1.ChainModule.Authz;
29
+ this.client = new core_proto_ts_1.CosmosAuthzV1Beta1Query.QueryClientImpl(this.getGrpcWebImpl(endpoint));
30
+ }
31
+ fetchGrants(pagination) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ const request = core_proto_ts_1.CosmosAuthzV1Beta1Query.QueryGrantsRequest.create();
34
+ const paginationForRequest = (0, pagination_1.paginationRequestFromPagination)(pagination);
35
+ if (paginationForRequest) {
36
+ request.pagination = paginationForRequest;
37
+ }
38
+ try {
39
+ const response = yield this.retry(() => this.client.Grants(request));
40
+ return ChainGrpcAuthzTransformer_1.ChainGrpcAuthzTransformer.grpcGrantsToGrants(response);
41
+ }
42
+ catch (e) {
43
+ if (e instanceof core_proto_ts_1.CosmosAuthzV1Beta1Query.GrpcWebError) {
44
+ throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
45
+ code: e.code,
46
+ context: 'Params',
47
+ contextModule: this.module,
48
+ });
49
+ }
50
+ throw new exceptions_1.GrpcUnaryRequestException(e, {
51
+ code: exceptions_1.UnspecifiedErrorCode,
52
+ context: 'Grants',
53
+ contextModule: this.module,
54
+ });
55
+ }
56
+ });
57
+ }
58
+ }
59
+ exports.ChainGrpcAuthZApi = ChainGrpcAuthZApi;
60
+ //# sourceMappingURL=ChainGrpcAuthzApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainGrpcAuthzApi.js","sourceRoot":"","sources":["../../../../../src/client/chain/grpc/ChainGrpcAuthzApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0DAGkC;AAClC,gEAAsE;AACtE,8EAAqD;AACrD,oCAAsC;AAEtC,0DAA2E;AAC3E,yFAAqF;AAErF;;GAEG;AACH,MAAa,iBAAkB,SAAQ,0BAAgB;IAKrD,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,CAAC,CAAA;QALP,WAAM,GAAW,mBAAW,CAAC,KAAK,CAAA;QAO1C,IAAI,CAAC,MAAM,GAAG,IAAI,uCAAuB,CAAC,eAAe,CACvD,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAC9B,CAAA;IACH,CAAC;IAEK,WAAW,CAAC,UAA6B;;YAC7C,MAAM,OAAO,GAAG,uCAAuB,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAA;YAEnE,MAAM,oBAAoB,GAAG,IAAA,4CAA+B,EAAC,UAAU,CAAC,CAAA;YAExE,IAAI,oBAAoB,EAAE;gBACxB,OAAO,CAAC,UAAU,GAAG,oBAAoB,CAAA;aAC1C;YAED,IAAI;gBACF,MAAM,QAAQ,GACZ,MAAM,IAAI,CAAC,KAAK,CAA8C,GAAG,EAAE,CACjE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAC5B,CAAA;gBAEH,OAAO,qDAAyB,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAA;aAC9D;YAAC,OAAO,CAAU,EAAE;gBACnB,IAAI,CAAC,YAAY,uCAAuB,CAAC,YAAY,EAAE;oBACrD,MAAM,IAAI,sCAAyB,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE;wBAC3D,IAAI,EAAE,CAAC,CAAC,IAAI;wBACZ,OAAO,EAAE,QAAQ;wBACjB,aAAa,EAAE,IAAI,CAAC,MAAM;qBAC3B,CAAC,CAAA;iBACH;gBAED,MAAM,IAAI,sCAAyB,CAAC,CAAU,EAAE;oBAC9C,IAAI,EAAE,iCAAoB;oBAC1B,OAAO,EAAE,QAAQ;oBACjB,aAAa,EAAE,IAAI,CAAC,MAAM;iBAC3B,CAAC,CAAA;aACH;QACH,CAAC;KAAA;CACF;AA7CD,8CA6CC"}
@@ -0,0 +1,18 @@
1
+ import { CosmosAuthzV1Beta1Authz, CosmosAuthzV1Beta1Query } from '@injectivelabs/core-proto-ts';
2
+ /**
3
+ * @category Chain Grpc Transformer
4
+ */
5
+ export declare class ChainGrpcAuthzTransformer {
6
+ static grpcGrantToGrant(grant: CosmosAuthzV1Beta1Authz.Grant): {
7
+ authorization: string;
8
+ expiration: Date | undefined;
9
+ };
10
+ static grpcGrantsToGrants(response: CosmosAuthzV1Beta1Query.QueryGrantsResponse): {
11
+ pagination: import("../../..").Pagination;
12
+ grants: {
13
+ authorization: string;
14
+ expiration: Date | undefined;
15
+ }[];
16
+ };
17
+ }
18
+ //# sourceMappingURL=ChainGrpcAuthzTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainGrpcAuthzTransformer.d.ts","sourceRoot":"","sources":["../../../../../src/client/chain/transformers/ChainGrpcAuthzTransformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,8BAA8B,CAAA;AAErC;;GAEG;AACH,qBAAa,yBAAyB;IACpC,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,CAAC,KAAK;;;;IAS5D,MAAM,CAAC,kBAAkB,CACvB,QAAQ,EAAE,uBAAuB,CAAC,mBAAmB;;;;;;;CAOxD"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChainGrpcAuthzTransformer = void 0;
4
+ const pagination_1 = require("../../../utils/pagination");
5
+ /**
6
+ * @category Chain Grpc Transformer
7
+ */
8
+ class ChainGrpcAuthzTransformer {
9
+ static grpcGrantToGrant(grant) {
10
+ return {
11
+ authorization: grant.authorization
12
+ ? Buffer.from(grant.authorization.value).toString('utf-8')
13
+ : '',
14
+ expiration: grant.expiration,
15
+ };
16
+ }
17
+ static grpcGrantsToGrants(response) {
18
+ return {
19
+ pagination: (0, pagination_1.grpcPaginationToPagination)(response.pagination),
20
+ grants: response.grants.map(ChainGrpcAuthzTransformer.grpcGrantToGrant),
21
+ };
22
+ }
23
+ }
24
+ exports.ChainGrpcAuthzTransformer = ChainGrpcAuthzTransformer;
25
+ //# sourceMappingURL=ChainGrpcAuthzTransformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainGrpcAuthzTransformer.js","sourceRoot":"","sources":["../../../../../src/client/chain/transformers/ChainGrpcAuthzTransformer.ts"],"names":[],"mappings":";;;AAAA,0DAAsE;AAMtE;;GAEG;AACH,MAAa,yBAAyB;IACpC,MAAM,CAAC,gBAAgB,CAAC,KAAoC;QAC1D,OAAO;YACL,aAAa,EAAE,KAAK,CAAC,aAAa;gBAChC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAC1D,CAAC,CAAC,EAAE;YACN,UAAU,EAAE,KAAK,CAAC,UAAU;SAC7B,CAAA;IACH,CAAC;IAED,MAAM,CAAC,kBAAkB,CACvB,QAAqD;QAErD,OAAO;YACL,UAAU,EAAE,IAAA,uCAA0B,EAAC,QAAQ,CAAC,UAAW,CAAC;YAC5D,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;SACxE,CAAA;IACH,CAAC;CACF;AAlBD,8DAkBC"}
@@ -19,6 +19,7 @@ export interface RestApiResponse<T> {
19
19
  export declare const ChainModule: {
20
20
  Auction: ChainErrorModule.Auction;
21
21
  Auth: ChainErrorModule.Auth;
22
+ Authz: ChainErrorModule.Authz;
22
23
  Bank: ChainErrorModule.Bank;
23
24
  Distribution: ChainErrorModule.Distribution;
24
25
  Exchange: ChainErrorModule.Exchange;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/chain/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AAEtB,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAA;CACR;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;CAA0B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/chain/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AAEtB,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAA;CACR;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAA0B,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { InjectiveTradingRpc } from '@injectivelabs/indexer-proto-ts';
2
+ import BaseGrpcConsumer from '../../BaseGrpcConsumer';
3
+ /**
4
+ * @category Indexer Grpc API
5
+ */
6
+ export declare class IndexerGrpcTradingApi extends BaseGrpcConsumer {
7
+ protected module: string;
8
+ protected client: InjectiveTradingRpc.InjectiveTradingRPCClientImpl;
9
+ constructor(endpoint: string);
10
+ fetchGridStrategies(): Promise<InjectiveTradingRpc.ListTradingStrategiesResponse>;
11
+ }
12
+ //# sourceMappingURL=IndexerGrpcTradingApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndexerGrpcTradingApi.d.ts","sourceRoot":"","sources":["../../../../../src/client/indexer/grpc/IndexerGrpcTradingApi.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,gBAAgB,MAAM,wBAAwB,CAAA;AAGrD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD,SAAS,CAAC,MAAM,EAAE,MAAM,CAAwB;IAEhD,SAAS,CAAC,MAAM,EAAE,mBAAmB,CAAC,6BAA6B,CAAA;gBAEvD,QAAQ,EAAE,MAAM;IAQtB,mBAAmB;CA0B1B"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.IndexerGrpcTradingApi = void 0;
16
+ const exceptions_1 = require("@injectivelabs/exceptions");
17
+ const indexer_proto_ts_1 = require("@injectivelabs/indexer-proto-ts");
18
+ const BaseGrpcConsumer_1 = __importDefault(require("../../BaseGrpcConsumer"));
19
+ const types_1 = require("../types");
20
+ /**
21
+ * @category Indexer Grpc API
22
+ */
23
+ class IndexerGrpcTradingApi extends BaseGrpcConsumer_1.default {
24
+ constructor(endpoint) {
25
+ super(endpoint);
26
+ this.module = types_1.IndexerModule.Trading;
27
+ this.client = new indexer_proto_ts_1.InjectiveTradingRpc.InjectiveTradingRPCClientImpl(this.getGrpcWebImpl(endpoint));
28
+ }
29
+ fetchGridStrategies() {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const request = indexer_proto_ts_1.InjectiveTradingRpc.ListTradingStrategiesRequest.create();
32
+ try {
33
+ const response = yield this.retry(() => this.client.ListTradingStrategies(request));
34
+ return response;
35
+ }
36
+ catch (e) {
37
+ if (e instanceof indexer_proto_ts_1.InjectiveTradingRpc.GrpcWebError) {
38
+ throw new exceptions_1.GrpcUnaryRequestException(new Error(e.toString()), {
39
+ code: e.code,
40
+ context: 'GridStrategies',
41
+ contextModule: this.module,
42
+ });
43
+ }
44
+ throw new exceptions_1.GrpcUnaryRequestException(e, {
45
+ code: exceptions_1.UnspecifiedErrorCode,
46
+ context: 'GridStrategies',
47
+ contextModule: this.module,
48
+ });
49
+ }
50
+ });
51
+ }
52
+ }
53
+ exports.IndexerGrpcTradingApi = IndexerGrpcTradingApi;
54
+ //# sourceMappingURL=IndexerGrpcTradingApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndexerGrpcTradingApi.js","sourceRoot":"","sources":["../../../../../src/client/indexer/grpc/IndexerGrpcTradingApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0DAGkC;AAClC,sEAAqE;AACrE,8EAAqD;AACrD,oCAAwC;AAExC;;GAEG;AACH,MAAa,qBAAsB,SAAQ,0BAAgB;IAKzD,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,CAAC,CAAA;QALP,WAAM,GAAW,qBAAa,CAAC,OAAO,CAAA;QAO9C,IAAI,CAAC,MAAM,GAAG,IAAI,sCAAmB,CAAC,6BAA6B,CACjE,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAC9B,CAAA;IACH,CAAC;IAEK,mBAAmB;;YACvB,MAAM,OAAO,GAAG,sCAAmB,CAAC,4BAA4B,CAAC,MAAM,EAAE,CAAA;YAEzE,IAAI;gBACF,MAAM,QAAQ,GACZ,MAAM,IAAI,CAAC,KAAK,CACd,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,OAAO,CAAC,CACjD,CAAA;gBAEH,OAAO,QAAQ,CAAA;aAChB;YAAC,OAAO,CAAU,EAAE;gBACnB,IAAI,CAAC,YAAY,sCAAmB,CAAC,YAAY,EAAE;oBACjD,MAAM,IAAI,sCAAyB,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE;wBAC3D,IAAI,EAAE,CAAC,CAAC,IAAI;wBACZ,OAAO,EAAE,gBAAgB;wBACzB,aAAa,EAAE,IAAI,CAAC,MAAM;qBAC3B,CAAC,CAAA;iBACH;gBAED,MAAM,IAAI,sCAAyB,CAAC,CAAU,EAAE;oBAC9C,IAAI,EAAE,iCAAoB;oBAC1B,OAAO,EAAE,gBAAgB;oBACzB,aAAa,EAAE,IAAI,CAAC,MAAM;iBAC3B,CAAC,CAAA;aACH;QACH,CAAC;KAAA;CACF;AAvCD,sDAuCC"}
@@ -33,6 +33,7 @@ export declare const IndexerModule: {
33
33
  Portfolio: IndexerErrorModule.Portfolio;
34
34
  Spot: IndexerErrorModule.Spot;
35
35
  Transaction: IndexerErrorModule.Transaction;
36
+ Trading: IndexerErrorModule.Trading;
36
37
  ChronosDerivative: IndexerErrorModule.ChronosDerivative;
37
38
  ChronosSpot: IndexerErrorModule.ChronosSpot;
38
39
  ChronosMarkets: IndexerErrorModule.ChronosMarkets;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/indexer/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,GAAG,CAAA;CACd;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/indexer/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,GAAG,CAAA;CACd;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;CAA4B,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { CosmosAuthzV1Beta1Query } from '@injectivelabs/core-proto-ts';
2
+ import BaseGrpcConsumer from '../../BaseGrpcConsumer';
3
+ import { PaginationOption } from '../../../types/pagination';
4
+ /**
5
+ * @category Chain Grpc API
6
+ */
7
+ export declare class ChainGrpcAuthZApi extends BaseGrpcConsumer {
8
+ protected module: string;
9
+ protected client: CosmosAuthzV1Beta1Query.QueryClientImpl;
10
+ constructor(endpoint: string);
11
+ fetchGrants(pagination?: PaginationOption): Promise<{
12
+ pagination: import("../../../types/pagination").Pagination;
13
+ grants: {
14
+ authorization: string;
15
+ expiration: Date | undefined;
16
+ }[];
17
+ }>;
18
+ }
19
+ //# sourceMappingURL=ChainGrpcAuthzApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainGrpcAuthzApi.d.ts","sourceRoot":"","sources":["../../../../../src/client/chain/grpc/ChainGrpcAuthzApi.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,gBAAgB,MAAM,wBAAwB,CAAA;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAI5D;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,gBAAgB;IACrD,SAAS,CAAC,MAAM,EAAE,MAAM,CAAoB;IAE5C,SAAS,CAAC,MAAM,EAAE,uBAAuB,CAAC,eAAe,CAAA;gBAE7C,QAAQ,EAAE,MAAM;IAQtB,WAAW,CAAC,UAAU,CAAC,EAAE,gBAAgB;;;;;;;CAgChD"}
@@ -0,0 +1,43 @@
1
+ import { GrpcUnaryRequestException, UnspecifiedErrorCode, } from '@injectivelabs/exceptions';
2
+ import { CosmosAuthzV1Beta1Query } from '@injectivelabs/core-proto-ts';
3
+ import BaseGrpcConsumer from '../../BaseGrpcConsumer';
4
+ import { ChainModule } from '../types';
5
+ import { paginationRequestFromPagination } from '../../../utils/pagination';
6
+ import { ChainGrpcAuthzTransformer } from '../transformers/ChainGrpcAuthzTransformer';
7
+ /**
8
+ * @category Chain Grpc API
9
+ */
10
+ export class ChainGrpcAuthZApi extends BaseGrpcConsumer {
11
+ module = ChainModule.Authz;
12
+ client;
13
+ constructor(endpoint) {
14
+ super(endpoint);
15
+ this.client = new CosmosAuthzV1Beta1Query.QueryClientImpl(this.getGrpcWebImpl(endpoint));
16
+ }
17
+ async fetchGrants(pagination) {
18
+ const request = CosmosAuthzV1Beta1Query.QueryGrantsRequest.create();
19
+ const paginationForRequest = paginationRequestFromPagination(pagination);
20
+ if (paginationForRequest) {
21
+ request.pagination = paginationForRequest;
22
+ }
23
+ try {
24
+ const response = await this.retry(() => this.client.Grants(request));
25
+ return ChainGrpcAuthzTransformer.grpcGrantsToGrants(response);
26
+ }
27
+ catch (e) {
28
+ if (e instanceof CosmosAuthzV1Beta1Query.GrpcWebError) {
29
+ throw new GrpcUnaryRequestException(new Error(e.toString()), {
30
+ code: e.code,
31
+ context: 'Params',
32
+ contextModule: this.module,
33
+ });
34
+ }
35
+ throw new GrpcUnaryRequestException(e, {
36
+ code: UnspecifiedErrorCode,
37
+ context: 'Grants',
38
+ contextModule: this.module,
39
+ });
40
+ }
41
+ }
42
+ }
43
+ //# sourceMappingURL=ChainGrpcAuthzApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainGrpcAuthzApi.js","sourceRoot":"","sources":["../../../../../src/client/chain/grpc/ChainGrpcAuthzApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,gBAAgB,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC,OAAO,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AAErF;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,gBAAgB;IAC3C,MAAM,GAAW,WAAW,CAAC,KAAK,CAAA;IAElC,MAAM,CAAyC;IAEzD,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,CAAC,CAAA;QAEf,IAAI,CAAC,MAAM,GAAG,IAAI,uBAAuB,CAAC,eAAe,CACvD,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAC9B,CAAA;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,UAA6B;QAC7C,MAAM,OAAO,GAAG,uBAAuB,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAA;QAEnE,MAAM,oBAAoB,GAAG,+BAA+B,CAAC,UAAU,CAAC,CAAA;QAExE,IAAI,oBAAoB,EAAE;YACxB,OAAO,CAAC,UAAU,GAAG,oBAAoB,CAAA;SAC1C;QAED,IAAI;YACF,MAAM,QAAQ,GACZ,MAAM,IAAI,CAAC,KAAK,CAA8C,GAAG,EAAE,CACjE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAC5B,CAAA;YAEH,OAAO,yBAAyB,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAA;SAC9D;QAAC,OAAO,CAAU,EAAE;YACnB,IAAI,CAAC,YAAY,uBAAuB,CAAC,YAAY,EAAE;gBACrD,MAAM,IAAI,yBAAyB,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE;oBAC3D,IAAI,EAAE,CAAC,CAAC,IAAI;oBACZ,OAAO,EAAE,QAAQ;oBACjB,aAAa,EAAE,IAAI,CAAC,MAAM;iBAC3B,CAAC,CAAA;aACH;YAED,MAAM,IAAI,yBAAyB,CAAC,CAAU,EAAE;gBAC9C,IAAI,EAAE,oBAAoB;gBAC1B,OAAO,EAAE,QAAQ;gBACjB,aAAa,EAAE,IAAI,CAAC,MAAM;aAC3B,CAAC,CAAA;SACH;IACH,CAAC;CACF"}
@@ -0,0 +1,18 @@
1
+ import { CosmosAuthzV1Beta1Authz, CosmosAuthzV1Beta1Query } from '@injectivelabs/core-proto-ts';
2
+ /**
3
+ * @category Chain Grpc Transformer
4
+ */
5
+ export declare class ChainGrpcAuthzTransformer {
6
+ static grpcGrantToGrant(grant: CosmosAuthzV1Beta1Authz.Grant): {
7
+ authorization: string;
8
+ expiration: Date | undefined;
9
+ };
10
+ static grpcGrantsToGrants(response: CosmosAuthzV1Beta1Query.QueryGrantsResponse): {
11
+ pagination: import("../../..").Pagination;
12
+ grants: {
13
+ authorization: string;
14
+ expiration: Date | undefined;
15
+ }[];
16
+ };
17
+ }
18
+ //# sourceMappingURL=ChainGrpcAuthzTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainGrpcAuthzTransformer.d.ts","sourceRoot":"","sources":["../../../../../src/client/chain/transformers/ChainGrpcAuthzTransformer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,8BAA8B,CAAA;AAErC;;GAEG;AACH,qBAAa,yBAAyB;IACpC,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,CAAC,KAAK;;;;IAS5D,MAAM,CAAC,kBAAkB,CACvB,QAAQ,EAAE,uBAAuB,CAAC,mBAAmB;;;;;;;CAOxD"}
@@ -0,0 +1,21 @@
1
+ import { grpcPaginationToPagination } from '../../../utils/pagination';
2
+ /**
3
+ * @category Chain Grpc Transformer
4
+ */
5
+ export class ChainGrpcAuthzTransformer {
6
+ static grpcGrantToGrant(grant) {
7
+ return {
8
+ authorization: grant.authorization
9
+ ? Buffer.from(grant.authorization.value).toString('utf-8')
10
+ : '',
11
+ expiration: grant.expiration,
12
+ };
13
+ }
14
+ static grpcGrantsToGrants(response) {
15
+ return {
16
+ pagination: grpcPaginationToPagination(response.pagination),
17
+ grants: response.grants.map(ChainGrpcAuthzTransformer.grpcGrantToGrant),
18
+ };
19
+ }
20
+ }
21
+ //# sourceMappingURL=ChainGrpcAuthzTransformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainGrpcAuthzTransformer.js","sourceRoot":"","sources":["../../../../../src/client/chain/transformers/ChainGrpcAuthzTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAA;AAMtE;;GAEG;AACH,MAAM,OAAO,yBAAyB;IACpC,MAAM,CAAC,gBAAgB,CAAC,KAAoC;QAC1D,OAAO;YACL,aAAa,EAAE,KAAK,CAAC,aAAa;gBAChC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAC1D,CAAC,CAAC,EAAE;YACN,UAAU,EAAE,KAAK,CAAC,UAAU;SAC7B,CAAA;IACH,CAAC;IAED,MAAM,CAAC,kBAAkB,CACvB,QAAqD;QAErD,OAAO;YACL,UAAU,EAAE,0BAA0B,CAAC,QAAQ,CAAC,UAAW,CAAC;YAC5D,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;SACxE,CAAA;IACH,CAAC;CACF"}
@@ -19,6 +19,7 @@ export interface RestApiResponse<T> {
19
19
  export declare const ChainModule: {
20
20
  Auction: ChainErrorModule.Auction;
21
21
  Auth: ChainErrorModule.Auth;
22
+ Authz: ChainErrorModule.Authz;
22
23
  Bank: ChainErrorModule.Bank;
23
24
  Distribution: ChainErrorModule.Distribution;
24
25
  Exchange: ChainErrorModule.Exchange;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/chain/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AAEtB,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAA;CACR;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;CAA0B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/chain/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AAEtB,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAA;CACR;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAA0B,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { InjectiveTradingRpc } from '@injectivelabs/indexer-proto-ts';
2
+ import BaseGrpcConsumer from '../../BaseGrpcConsumer';
3
+ /**
4
+ * @category Indexer Grpc API
5
+ */
6
+ export declare class IndexerGrpcTradingApi extends BaseGrpcConsumer {
7
+ protected module: string;
8
+ protected client: InjectiveTradingRpc.InjectiveTradingRPCClientImpl;
9
+ constructor(endpoint: string);
10
+ fetchGridStrategies(): Promise<InjectiveTradingRpc.ListTradingStrategiesResponse>;
11
+ }
12
+ //# sourceMappingURL=IndexerGrpcTradingApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndexerGrpcTradingApi.d.ts","sourceRoot":"","sources":["../../../../../src/client/indexer/grpc/IndexerGrpcTradingApi.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,gBAAgB,MAAM,wBAAwB,CAAA;AAGrD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD,SAAS,CAAC,MAAM,EAAE,MAAM,CAAwB;IAEhD,SAAS,CAAC,MAAM,EAAE,mBAAmB,CAAC,6BAA6B,CAAA;gBAEvD,QAAQ,EAAE,MAAM;IAQtB,mBAAmB;CA0B1B"}
@@ -0,0 +1,37 @@
1
+ import { GrpcUnaryRequestException, UnspecifiedErrorCode, } from '@injectivelabs/exceptions';
2
+ import { InjectiveTradingRpc } from '@injectivelabs/indexer-proto-ts';
3
+ import BaseGrpcConsumer from '../../BaseGrpcConsumer';
4
+ import { IndexerModule } from '../types';
5
+ /**
6
+ * @category Indexer Grpc API
7
+ */
8
+ export class IndexerGrpcTradingApi extends BaseGrpcConsumer {
9
+ module = IndexerModule.Trading;
10
+ client;
11
+ constructor(endpoint) {
12
+ super(endpoint);
13
+ this.client = new InjectiveTradingRpc.InjectiveTradingRPCClientImpl(this.getGrpcWebImpl(endpoint));
14
+ }
15
+ async fetchGridStrategies() {
16
+ const request = InjectiveTradingRpc.ListTradingStrategiesRequest.create();
17
+ try {
18
+ const response = await this.retry(() => this.client.ListTradingStrategies(request));
19
+ return response;
20
+ }
21
+ catch (e) {
22
+ if (e instanceof InjectiveTradingRpc.GrpcWebError) {
23
+ throw new GrpcUnaryRequestException(new Error(e.toString()), {
24
+ code: e.code,
25
+ context: 'GridStrategies',
26
+ contextModule: this.module,
27
+ });
28
+ }
29
+ throw new GrpcUnaryRequestException(e, {
30
+ code: UnspecifiedErrorCode,
31
+ context: 'GridStrategies',
32
+ contextModule: this.module,
33
+ });
34
+ }
35
+ }
36
+ }
37
+ //# sourceMappingURL=IndexerGrpcTradingApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndexerGrpcTradingApi.js","sourceRoot":"","sources":["../../../../../src/client/indexer/grpc/IndexerGrpcTradingApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,gBAAgB,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,gBAAgB;IAC/C,MAAM,GAAW,aAAa,CAAC,OAAO,CAAA;IAEtC,MAAM,CAAmD;IAEnE,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,CAAC,CAAA;QAEf,IAAI,CAAC,MAAM,GAAG,IAAI,mBAAmB,CAAC,6BAA6B,CACjE,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAC9B,CAAA;IACH,CAAC;IAED,KAAK,CAAC,mBAAmB;QACvB,MAAM,OAAO,GAAG,mBAAmB,CAAC,4BAA4B,CAAC,MAAM,EAAE,CAAA;QAEzE,IAAI;YACF,MAAM,QAAQ,GACZ,MAAM,IAAI,CAAC,KAAK,CACd,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,OAAO,CAAC,CACjD,CAAA;YAEH,OAAO,QAAQ,CAAA;SAChB;QAAC,OAAO,CAAU,EAAE;YACnB,IAAI,CAAC,YAAY,mBAAmB,CAAC,YAAY,EAAE;gBACjD,MAAM,IAAI,yBAAyB,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE;oBAC3D,IAAI,EAAE,CAAC,CAAC,IAAI;oBACZ,OAAO,EAAE,gBAAgB;oBACzB,aAAa,EAAE,IAAI,CAAC,MAAM;iBAC3B,CAAC,CAAA;aACH;YAED,MAAM,IAAI,yBAAyB,CAAC,CAAU,EAAE;gBAC9C,IAAI,EAAE,oBAAoB;gBAC1B,OAAO,EAAE,gBAAgB;gBACzB,aAAa,EAAE,IAAI,CAAC,MAAM;aAC3B,CAAC,CAAA;SACH;IACH,CAAC;CACF"}
@@ -33,6 +33,7 @@ export declare const IndexerModule: {
33
33
  Portfolio: IndexerErrorModule.Portfolio;
34
34
  Spot: IndexerErrorModule.Spot;
35
35
  Transaction: IndexerErrorModule.Transaction;
36
+ Trading: IndexerErrorModule.Trading;
36
37
  ChronosDerivative: IndexerErrorModule.ChronosDerivative;
37
38
  ChronosSpot: IndexerErrorModule.ChronosSpot;
38
39
  ChronosMarkets: IndexerErrorModule.ChronosMarkets;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/indexer/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,GAAG,CAAA;CACd;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/indexer/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,GAAG,CAAA;CACd;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;CAA4B,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/sdk-ts",
3
3
  "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.",
4
- "version": "1.12.0-beta.64",
4
+ "version": "1.12.0-beta.65",
5
5
  "sideEffects": false,
6
6
  "license": "Apache-2.0",
7
7
  "author": {
@@ -38,17 +38,17 @@
38
38
  "@ethersproject/bytes": "^5.7.0",
39
39
  "@injectivelabs/core-proto-ts": "^0.0.18",
40
40
  "@injectivelabs/dmm-proto-ts": "1.0.16",
41
- "@injectivelabs/exceptions": "^1.12.0-beta.10",
41
+ "@injectivelabs/exceptions": "^1.12.0-beta.11",
42
42
  "@injectivelabs/grpc-web": "^0.0.1",
43
43
  "@injectivelabs/grpc-web-node-http-transport": "^0.0.2",
44
44
  "@injectivelabs/grpc-web-react-native-transport": "^0.0.2",
45
- "@injectivelabs/indexer-proto-ts": "1.11.4",
45
+ "@injectivelabs/indexer-proto-ts": "1.11.6",
46
46
  "@injectivelabs/mito-proto-ts": "1.0.28",
47
- "@injectivelabs/networks": "^1.12.0-beta.14",
47
+ "@injectivelabs/networks": "^1.12.0-beta.15",
48
48
  "@injectivelabs/test-utils": "^1.12.0-beta.1",
49
- "@injectivelabs/token-metadata": "^1.12.0-beta.33",
49
+ "@injectivelabs/token-metadata": "^1.12.0-beta.34",
50
50
  "@injectivelabs/ts-types": "^1.12.0-beta.2",
51
- "@injectivelabs/utils": "^1.12.0-beta.14",
51
+ "@injectivelabs/utils": "^1.12.0-beta.15",
52
52
  "@metamask/eth-sig-util": "^4.0.0",
53
53
  "axios": "^0.27.2",
54
54
  "bech32": "^2.0.0",
@@ -69,7 +69,7 @@
69
69
  "shx": "^0.3.2",
70
70
  "snakecase-keys": "^5.4.1"
71
71
  },
72
- "gitHead": "c8ee10c7d453c7faa5ac4326313714bb8a32f705",
72
+ "gitHead": "a2440ec720b066fd019d77acb9fbac778ca64514",
73
73
  "typedoc": {
74
74
  "entryPoint": "./src/index.ts",
75
75
  "readmeFile": "./README.md",