carbon-js-sdk 0.2.13 → 0.2.14

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 (36) hide show
  1. package/lib/codec/cdp/asset_params.d.ts +0 -11
  2. package/lib/codec/cdp/asset_params.js +1 -69
  3. package/lib/codec/coin/query.d.ts +0 -3
  4. package/lib/codec/coin/query.js +0 -6
  5. package/lib/codec/coin/token.d.ts +11 -0
  6. package/lib/codec/coin/token.js +65 -1
  7. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +19 -0
  8. package/lib/codec/cosmos/authz/v1beta1/authz.js +89 -1
  9. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +1 -15
  10. package/lib/codec/cosmos/authz/v1beta1/genesis.js +7 -120
  11. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +69 -1
  12. package/lib/codec/cosmos/authz/v1beta1/query.js +273 -1
  13. package/lib/codec/cosmos/bank/v1beta1/export.d.ts +1 -1
  14. package/lib/codec/cosmos/bank/v1beta1/export.js +3 -1
  15. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +40 -0
  16. package/lib/codec/cosmos/bank/v1beta1/query.js +137 -1
  17. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +64 -0
  18. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +343 -1
  19. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +33 -0
  20. package/lib/codec/cosmos/feegrant/v1beta1/query.js +137 -1
  21. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +13 -0
  22. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +18 -0
  23. package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
  24. package/lib/codec/cosmos/tx/v1beta1/export.js +3 -1
  25. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +50 -2
  26. package/lib/codec/cosmos/tx/v1beta1/service.js +176 -1
  27. package/lib/codec/index.d.ts +1 -6
  28. package/lib/codec/index.js +334 -347
  29. package/lib/codec/market/genesis.d.ts +1 -0
  30. package/lib/codec/market/genesis.js +19 -1
  31. package/lib/codec/misc/trade.d.ts +1 -0
  32. package/lib/codec/misc/trade.js +17 -0
  33. package/lib/util/tx.d.ts +0 -4
  34. package/lib/wallet/CarbonSigningClient.js +27 -2
  35. package/lib/websocket/models.d.ts +37 -21
  36. package/package.json +1 -1
@@ -34,6 +34,19 @@ var SignMode;
34
34
  * Amino JSON and will be removed in the future
35
35
  */
36
36
  SignMode[SignMode["SIGN_MODE_LEGACY_AMINO_JSON"] = 127] = "SIGN_MODE_LEGACY_AMINO_JSON";
37
+ /**
38
+ * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos
39
+ * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191
40
+ *
41
+ * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant,
42
+ * but is not implemented on the SDK by default. To enable EIP-191, you need
43
+ * to pass a custom `TxConfig` that has an implementation of
44
+ * `SignModeHandler` for EIP-191. The SDK may decide to fully support
45
+ * EIP-191 in the future.
46
+ *
47
+ * Since: cosmos-sdk 0.45.2
48
+ */
49
+ SignMode[SignMode["SIGN_MODE_EIP_191"] = 191] = "SIGN_MODE_EIP_191";
37
50
  SignMode[SignMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
38
51
  })(SignMode = exports.SignMode || (exports.SignMode = {}));
39
52
  function signModeFromJSON(object) {
@@ -50,6 +63,9 @@ function signModeFromJSON(object) {
50
63
  case 127:
51
64
  case "SIGN_MODE_LEGACY_AMINO_JSON":
52
65
  return SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
66
+ case 191:
67
+ case "SIGN_MODE_EIP_191":
68
+ return SignMode.SIGN_MODE_EIP_191;
53
69
  case -1:
54
70
  case "UNRECOGNIZED":
55
71
  default:
@@ -67,6 +83,8 @@ function signModeToJSON(object) {
67
83
  return "SIGN_MODE_TEXTUAL";
68
84
  case SignMode.SIGN_MODE_LEGACY_AMINO_JSON:
69
85
  return "SIGN_MODE_LEGACY_AMINO_JSON";
86
+ case SignMode.SIGN_MODE_EIP_191:
87
+ return "SIGN_MODE_EIP_191";
70
88
  default:
71
89
  return "UNKNOWN";
72
90
  }
@@ -1,2 +1,2 @@
1
- export { OrderBy, orderByFromJSON, orderByToJSON, BroadcastMode, broadcastModeFromJSON, broadcastModeToJSON, GetTxsEventRequest, GetTxsEventResponse, BroadcastTxRequest, BroadcastTxResponse, SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, ServiceClientImpl } from "./service";
1
+ export { OrderBy, orderByFromJSON, orderByToJSON, BroadcastMode, broadcastModeFromJSON, broadcastModeToJSON, GetTxsEventRequest, GetTxsEventResponse, BroadcastTxRequest, BroadcastTxResponse, SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse, ServiceClientImpl } from "./service";
2
2
  export { Tx, TxRaw, SignDoc, TxBody, AuthInfo, SignerInfo, ModeInfo, ModeInfo_Single, ModeInfo_Multi, Fee } from "./tx";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Fee = exports.ModeInfo_Multi = exports.ModeInfo_Single = exports.ModeInfo = exports.SignerInfo = exports.AuthInfo = exports.TxBody = exports.SignDoc = exports.TxRaw = exports.Tx = exports.ServiceClientImpl = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderBy = void 0;
3
+ exports.Fee = exports.ModeInfo_Multi = exports.ModeInfo_Single = exports.ModeInfo = exports.SignerInfo = exports.AuthInfo = exports.TxBody = exports.SignDoc = exports.TxRaw = exports.Tx = exports.ServiceClientImpl = exports.GetBlockWithTxsResponse = exports.GetBlockWithTxsRequest = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderBy = void 0;
4
4
  var service_1 = require("./service");
5
5
  Object.defineProperty(exports, "OrderBy", { enumerable: true, get: function () { return service_1.OrderBy; } });
6
6
  Object.defineProperty(exports, "orderByFromJSON", { enumerable: true, get: function () { return service_1.orderByFromJSON; } });
@@ -16,6 +16,8 @@ Object.defineProperty(exports, "SimulateRequest", { enumerable: true, get: funct
16
16
  Object.defineProperty(exports, "SimulateResponse", { enumerable: true, get: function () { return service_1.SimulateResponse; } });
17
17
  Object.defineProperty(exports, "GetTxRequest", { enumerable: true, get: function () { return service_1.GetTxRequest; } });
18
18
  Object.defineProperty(exports, "GetTxResponse", { enumerable: true, get: function () { return service_1.GetTxResponse; } });
19
+ Object.defineProperty(exports, "GetBlockWithTxsRequest", { enumerable: true, get: function () { return service_1.GetBlockWithTxsRequest; } });
20
+ Object.defineProperty(exports, "GetBlockWithTxsResponse", { enumerable: true, get: function () { return service_1.GetBlockWithTxsResponse; } });
19
21
  Object.defineProperty(exports, "ServiceClientImpl", { enumerable: true, get: function () { return service_1.ServiceClientImpl; } });
20
22
  var tx_1 = require("./tx");
21
23
  Object.defineProperty(exports, "Tx", { enumerable: true, get: function () { return tx_1.Tx; } });
@@ -3,6 +3,8 @@ import _m0 from "protobufjs/minimal";
3
3
  import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
4
4
  import { TxResponse, GasInfo, Result } from "../../../cosmos/base/abci/v1beta1/abci";
5
5
  import { Tx } from "../../../cosmos/tx/v1beta1/tx";
6
+ import { BlockID } from "../../../tendermint/types/types";
7
+ import { Block } from "../../../tendermint/types/block";
6
8
  export declare const protobufPackage = "cosmos.tx.v1beta1";
7
9
  /** OrderBy defines the sorting order */
8
10
  export declare enum OrderBy {
@@ -46,7 +48,7 @@ export declare function broadcastModeToJSON(object: BroadcastMode): string;
46
48
  export interface GetTxsEventRequest {
47
49
  /** events is the list of transaction event type. */
48
50
  events: string[];
49
- /** pagination defines an pagination for the request. */
51
+ /** pagination defines a pagination for the request. */
50
52
  pagination?: PageRequest;
51
53
  orderBy: OrderBy;
52
54
  }
@@ -59,7 +61,7 @@ export interface GetTxsEventResponse {
59
61
  txs: Tx[];
60
62
  /** tx_responses is the list of queried TxResponses. */
61
63
  txResponses: TxResponse[];
62
- /** pagination defines an pagination for the response. */
64
+ /** pagination defines a pagination for the response. */
63
65
  pagination?: PageResponse;
64
66
  }
65
67
  /**
@@ -123,6 +125,31 @@ export interface GetTxResponse {
123
125
  /** tx_response is the queried TxResponses. */
124
126
  txResponse?: TxResponse;
125
127
  }
128
+ /**
129
+ * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs
130
+ * RPC method.
131
+ *
132
+ * Since: cosmos-sdk 0.45.2
133
+ */
134
+ export interface GetBlockWithTxsRequest {
135
+ /** height is the height of the block to query. */
136
+ height: Long;
137
+ /** pagination defines a pagination for the request. */
138
+ pagination?: PageRequest;
139
+ }
140
+ /**
141
+ * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method.
142
+ *
143
+ * Since: cosmos-sdk 0.45.2
144
+ */
145
+ export interface GetBlockWithTxsResponse {
146
+ /** txs are the transactions in the block. */
147
+ txs: Tx[];
148
+ blockId?: BlockID;
149
+ block?: Block;
150
+ /** pagination defines a pagination for the response. */
151
+ pagination?: PageResponse;
152
+ }
126
153
  export declare const GetTxsEventRequest: {
127
154
  encode(message: GetTxsEventRequest, writer?: _m0.Writer): _m0.Writer;
128
155
  decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetTxsEventRequest;
@@ -179,6 +206,20 @@ export declare const GetTxResponse: {
179
206
  toJSON(message: GetTxResponse): unknown;
180
207
  fromPartial(object: DeepPartial<GetTxResponse>): GetTxResponse;
181
208
  };
209
+ export declare const GetBlockWithTxsRequest: {
210
+ encode(message: GetBlockWithTxsRequest, writer?: _m0.Writer): _m0.Writer;
211
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetBlockWithTxsRequest;
212
+ fromJSON(object: any): GetBlockWithTxsRequest;
213
+ toJSON(message: GetBlockWithTxsRequest): unknown;
214
+ fromPartial(object: DeepPartial<GetBlockWithTxsRequest>): GetBlockWithTxsRequest;
215
+ };
216
+ export declare const GetBlockWithTxsResponse: {
217
+ encode(message: GetBlockWithTxsResponse, writer?: _m0.Writer): _m0.Writer;
218
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetBlockWithTxsResponse;
219
+ fromJSON(object: any): GetBlockWithTxsResponse;
220
+ toJSON(message: GetBlockWithTxsResponse): unknown;
221
+ fromPartial(object: DeepPartial<GetBlockWithTxsResponse>): GetBlockWithTxsResponse;
222
+ };
182
223
  /** Service defines a gRPC service for interacting with transactions. */
183
224
  export interface Service {
184
225
  /** Simulate simulates executing a transaction for estimating gas usage. */
@@ -189,6 +230,12 @@ export interface Service {
189
230
  BroadcastTx(request: BroadcastTxRequest): Promise<BroadcastTxResponse>;
190
231
  /** GetTxsEvent fetches txs by event. */
191
232
  GetTxsEvent(request: GetTxsEventRequest): Promise<GetTxsEventResponse>;
233
+ /**
234
+ * GetBlockWithTxs fetches a block with decoded txs.
235
+ *
236
+ * Since: cosmos-sdk 0.45.2
237
+ */
238
+ GetBlockWithTxs(request: GetBlockWithTxsRequest): Promise<GetBlockWithTxsResponse>;
192
239
  }
193
240
  export declare class ServiceClientImpl implements Service {
194
241
  private readonly rpc;
@@ -197,6 +244,7 @@ export declare class ServiceClientImpl implements Service {
197
244
  GetTx(request: GetTxRequest): Promise<GetTxResponse>;
198
245
  BroadcastTx(request: BroadcastTxRequest): Promise<BroadcastTxResponse>;
199
246
  GetTxsEvent(request: GetTxsEventRequest): Promise<GetTxsEventResponse>;
247
+ GetBlockWithTxs(request: GetBlockWithTxsRequest): Promise<GetBlockWithTxsResponse>;
200
248
  }
201
249
  interface Rpc {
202
250
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
@@ -3,13 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ServiceClientImpl = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderBy = exports.protobufPackage = void 0;
6
+ exports.ServiceClientImpl = exports.GetBlockWithTxsResponse = exports.GetBlockWithTxsRequest = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderBy = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
11
11
  const abci_1 = require("../../../cosmos/base/abci/v1beta1/abci");
12
12
  const tx_1 = require("../../../cosmos/tx/v1beta1/tx");
13
+ const types_1 = require("../../../tendermint/types/types");
14
+ const block_1 = require("../../../tendermint/types/block");
13
15
  exports.protobufPackage = "cosmos.tx.v1beta1";
14
16
  /** OrderBy defines the sorting order */
15
17
  var OrderBy;
@@ -623,6 +625,173 @@ exports.GetTxResponse = {
623
625
  return message;
624
626
  },
625
627
  };
628
+ const baseGetBlockWithTxsRequest = { height: long_1.default.ZERO };
629
+ exports.GetBlockWithTxsRequest = {
630
+ encode(message, writer = minimal_1.default.Writer.create()) {
631
+ if (!message.height.isZero()) {
632
+ writer.uint32(8).int64(message.height);
633
+ }
634
+ if (message.pagination !== undefined) {
635
+ pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
636
+ }
637
+ return writer;
638
+ },
639
+ decode(input, length) {
640
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
641
+ let end = length === undefined ? reader.len : reader.pos + length;
642
+ const message = Object.assign({}, baseGetBlockWithTxsRequest);
643
+ while (reader.pos < end) {
644
+ const tag = reader.uint32();
645
+ switch (tag >>> 3) {
646
+ case 1:
647
+ message.height = reader.int64();
648
+ break;
649
+ case 2:
650
+ message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
651
+ break;
652
+ default:
653
+ reader.skipType(tag & 7);
654
+ break;
655
+ }
656
+ }
657
+ return message;
658
+ },
659
+ fromJSON(object) {
660
+ const message = Object.assign({}, baseGetBlockWithTxsRequest);
661
+ message.height =
662
+ object.height !== undefined && object.height !== null
663
+ ? long_1.default.fromString(object.height)
664
+ : long_1.default.ZERO;
665
+ message.pagination =
666
+ object.pagination !== undefined && object.pagination !== null
667
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
668
+ : undefined;
669
+ return message;
670
+ },
671
+ toJSON(message) {
672
+ const obj = {};
673
+ message.height !== undefined &&
674
+ (obj.height = (message.height || long_1.default.ZERO).toString());
675
+ message.pagination !== undefined &&
676
+ (obj.pagination = message.pagination
677
+ ? pagination_1.PageRequest.toJSON(message.pagination)
678
+ : undefined);
679
+ return obj;
680
+ },
681
+ fromPartial(object) {
682
+ const message = Object.assign({}, baseGetBlockWithTxsRequest);
683
+ message.height =
684
+ object.height !== undefined && object.height !== null
685
+ ? long_1.default.fromValue(object.height)
686
+ : long_1.default.ZERO;
687
+ message.pagination =
688
+ object.pagination !== undefined && object.pagination !== null
689
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
690
+ : undefined;
691
+ return message;
692
+ },
693
+ };
694
+ const baseGetBlockWithTxsResponse = {};
695
+ exports.GetBlockWithTxsResponse = {
696
+ encode(message, writer = minimal_1.default.Writer.create()) {
697
+ for (const v of message.txs) {
698
+ tx_1.Tx.encode(v, writer.uint32(10).fork()).ldelim();
699
+ }
700
+ if (message.blockId !== undefined) {
701
+ types_1.BlockID.encode(message.blockId, writer.uint32(18).fork()).ldelim();
702
+ }
703
+ if (message.block !== undefined) {
704
+ block_1.Block.encode(message.block, writer.uint32(26).fork()).ldelim();
705
+ }
706
+ if (message.pagination !== undefined) {
707
+ pagination_1.PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
708
+ }
709
+ return writer;
710
+ },
711
+ decode(input, length) {
712
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
713
+ let end = length === undefined ? reader.len : reader.pos + length;
714
+ const message = Object.assign({}, baseGetBlockWithTxsResponse);
715
+ message.txs = [];
716
+ while (reader.pos < end) {
717
+ const tag = reader.uint32();
718
+ switch (tag >>> 3) {
719
+ case 1:
720
+ message.txs.push(tx_1.Tx.decode(reader, reader.uint32()));
721
+ break;
722
+ case 2:
723
+ message.blockId = types_1.BlockID.decode(reader, reader.uint32());
724
+ break;
725
+ case 3:
726
+ message.block = block_1.Block.decode(reader, reader.uint32());
727
+ break;
728
+ case 4:
729
+ message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
730
+ break;
731
+ default:
732
+ reader.skipType(tag & 7);
733
+ break;
734
+ }
735
+ }
736
+ return message;
737
+ },
738
+ fromJSON(object) {
739
+ var _a;
740
+ const message = Object.assign({}, baseGetBlockWithTxsResponse);
741
+ message.txs = ((_a = object.txs) !== null && _a !== void 0 ? _a : []).map((e) => tx_1.Tx.fromJSON(e));
742
+ message.blockId =
743
+ object.blockId !== undefined && object.blockId !== null
744
+ ? types_1.BlockID.fromJSON(object.blockId)
745
+ : undefined;
746
+ message.block =
747
+ object.block !== undefined && object.block !== null
748
+ ? block_1.Block.fromJSON(object.block)
749
+ : undefined;
750
+ message.pagination =
751
+ object.pagination !== undefined && object.pagination !== null
752
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
753
+ : undefined;
754
+ return message;
755
+ },
756
+ toJSON(message) {
757
+ const obj = {};
758
+ if (message.txs) {
759
+ obj.txs = message.txs.map((e) => (e ? tx_1.Tx.toJSON(e) : undefined));
760
+ }
761
+ else {
762
+ obj.txs = [];
763
+ }
764
+ message.blockId !== undefined &&
765
+ (obj.blockId = message.blockId
766
+ ? types_1.BlockID.toJSON(message.blockId)
767
+ : undefined);
768
+ message.block !== undefined &&
769
+ (obj.block = message.block ? block_1.Block.toJSON(message.block) : undefined);
770
+ message.pagination !== undefined &&
771
+ (obj.pagination = message.pagination
772
+ ? pagination_1.PageResponse.toJSON(message.pagination)
773
+ : undefined);
774
+ return obj;
775
+ },
776
+ fromPartial(object) {
777
+ var _a;
778
+ const message = Object.assign({}, baseGetBlockWithTxsResponse);
779
+ message.txs = ((_a = object.txs) !== null && _a !== void 0 ? _a : []).map((e) => tx_1.Tx.fromPartial(e));
780
+ message.blockId =
781
+ object.blockId !== undefined && object.blockId !== null
782
+ ? types_1.BlockID.fromPartial(object.blockId)
783
+ : undefined;
784
+ message.block =
785
+ object.block !== undefined && object.block !== null
786
+ ? block_1.Block.fromPartial(object.block)
787
+ : undefined;
788
+ message.pagination =
789
+ object.pagination !== undefined && object.pagination !== null
790
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
791
+ : undefined;
792
+ return message;
793
+ },
794
+ };
626
795
  class ServiceClientImpl {
627
796
  constructor(rpc) {
628
797
  this.rpc = rpc;
@@ -630,6 +799,7 @@ class ServiceClientImpl {
630
799
  this.GetTx = this.GetTx.bind(this);
631
800
  this.BroadcastTx = this.BroadcastTx.bind(this);
632
801
  this.GetTxsEvent = this.GetTxsEvent.bind(this);
802
+ this.GetBlockWithTxs = this.GetBlockWithTxs.bind(this);
633
803
  }
634
804
  Simulate(request) {
635
805
  const data = exports.SimulateRequest.encode(request).finish();
@@ -651,6 +821,11 @@ class ServiceClientImpl {
651
821
  const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTxsEvent", data);
652
822
  return promise.then((data) => exports.GetTxsEventResponse.decode(new minimal_1.default.Reader(data)));
653
823
  }
824
+ GetBlockWithTxs(request) {
825
+ const data = exports.GetBlockWithTxsRequest.encode(request).finish();
826
+ const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetBlockWithTxs", data);
827
+ return promise.then((data) => exports.GetBlockWithTxsResponse.decode(new minimal_1.default.Reader(data)));
828
+ }
654
829
  }
655
830
  exports.ServiceClientImpl = ServiceClientImpl;
656
831
  var globalThis = (() => {
@@ -42,10 +42,6 @@ export declare const TxTypes: {
42
42
  SetMinGasPriceProposal: string;
43
43
  RemoveMsgGasCostProposal: string;
44
44
  RemoveMinGasPriceProposal: string;
45
- MsgEnableSend: string;
46
- MsgEnableSendResponse: string;
47
- MsgDisableSend: string;
48
- MsgDisableSendResponse: string;
49
45
  MsgCreate: string;
50
46
  MsgCreateResponse: string;
51
47
  MsgBind: string;
@@ -280,7 +276,6 @@ export { MsgFee, MsgGasCost, MinGasPrice } from "./fee/fee";
280
276
  export { SetMsgGasCostProposal, SetMinGasPriceProposal, RemoveMsgGasCostProposal, RemoveMinGasPriceProposal } from "./fee/proposal";
281
277
  export { QueryGetMsgGasCostRequest, QueryGetMsgGasCostResponse, QueryAllMsgGasCostRequest, QueryAllMsgGasCostResponse, QueryGetMinGasPriceRequest, QueryGetMinGasPriceResponse, QueryAllMinGasPriceRequest, QueryAllMinGasPriceResponse } from "./fee/query";
282
278
  export { FeeDeductionEvent } from "./fee/event";
283
- export { MsgEnableSend, MsgEnableSendResponse, MsgDisableSend, MsgDisableSendResponse } from "./bank/tx";
284
279
  export { CoinSpent, CoinReceived } from "./bank/event";
285
280
  export { Params as LiquidationParams } from "./liquidation/liquidation";
286
281
  export { QuoteChanges } from "./liquidation/quote_changes";
@@ -308,7 +303,7 @@ export { MsgCreateToken, CreateTokenParams, MsgCreateTokenResponse, MsgSyncToken
308
303
  export { CreateTokenProposal } from "./coin/proposal";
309
304
  export { Bridge } from "./coin/bridge";
310
305
  export { QueryGetTokenRequest, QueryGetTokenResponse, QueryAllTokenRequest, QueryAllTokenResponse, QueryGetLockedCoinsRequest, QueryGetLockedCoinsResponse, QueryAllWrapperMappingsRequest, QueryAllWrapperMappingsResponse, QueryAllWrapperMappingsResponse_WrapperMappingsEntry, QueryGetBalancesRequest, QueryGetBalancesResponse, QueryTotalBalancesRequest, QueryTotalBalancesResponse, QueryGetBridgeRequest, QueryGetBridgeResponse, QueryAllBridgeRequest, QueryAllBridgeResponse } from "./coin/query";
311
- export { Token, BalanceChange, LockedCoins, LockedCoinsRecord, PositionPool, TokenBalance } from "./coin/token";
306
+ export { Token, BalanceChange, Metadata, LockedCoins, LockedCoinsRecord, PositionPool, TokenBalance } from "./coin/token";
312
307
  export { NewTokenEvent, SyncTokenEvent, BindTokenEvent, UnbindTokenEvent, LinkTokenEvent } from "./coin/event";
313
308
  export { MarketLeverage, MarketLeverageRecord } from "./leverage/leverage";
314
309
  export { MsgSetLeverage, MsgSetLeverageResponse } from "./leverage/tx";