coreum-js 2.16.2 → 2.17.0

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 (203) hide show
  1. package/dist/main/client/index.js +16 -17
  2. package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
  3. package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
  4. package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -120
  5. package/dist/main/coreum/asset/ft/v1/event.js +744 -138
  6. package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -517
  7. package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
  8. package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -63
  9. package/dist/main/coreum/asset/ft/v1/params.js +37 -33
  10. package/dist/main/coreum/asset/ft/v1/query.d.ts +86 -1950
  11. package/dist/main/coreum/asset/ft/v1/query.js +697 -217
  12. package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -249
  13. package/dist/main/coreum/asset/ft/v1/token.js +273 -197
  14. package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -755
  15. package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
  16. package/dist/main/coreum/asset/index.d.ts +2 -3
  17. package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
  18. package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
  19. package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -147
  20. package/dist/main/coreum/asset/nft/v1/event.js +475 -147
  21. package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -286
  22. package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
  23. package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -108
  24. package/dist/main/coreum/asset/nft/v1/nft.js +136 -101
  25. package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -38
  26. package/dist/main/coreum/asset/nft/v1/params.js +17 -20
  27. package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -706
  28. package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
  29. package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -266
  30. package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
  31. package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -19
  32. package/dist/main/coreum/asset/nft/v1/types.js +273 -45
  33. package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -32
  34. package/dist/main/coreum/customparams/v1/genesis.js +26 -22
  35. package/dist/main/coreum/customparams/v1/params.d.ts +11 -19
  36. package/dist/main/coreum/customparams/v1/params.js +23 -20
  37. package/dist/main/coreum/customparams/v1/query.d.ts +14 -40
  38. package/dist/main/coreum/customparams/v1/query.js +35 -29
  39. package/dist/main/coreum/dex/index.d.ts +1 -0
  40. package/dist/main/coreum/dex/index.js +12 -0
  41. package/dist/main/coreum/dex/v1/event.d.ts +73 -0
  42. package/dist/main/coreum/dex/v1/event.js +470 -0
  43. package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
  44. package/dist/main/coreum/dex/v1/genesis.js +318 -0
  45. package/dist/main/coreum/dex/v1/order.d.ts +172 -0
  46. package/dist/main/coreum/dex/v1/order.js +1137 -0
  47. package/dist/main/coreum/dex/v1/params.d.ts +34 -0
  48. package/dist/main/coreum/dex/v1/params.js +139 -0
  49. package/dist/main/coreum/dex/v1/query.d.ts +133 -0
  50. package/dist/main/coreum/dex/v1/query.js +873 -0
  51. package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
  52. package/dist/main/coreum/dex/v1/tx.js +521 -0
  53. package/dist/main/coreum/extensions/dex.d.ts +12 -0
  54. package/dist/main/coreum/extensions/dex.js +32 -0
  55. package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -233
  56. package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
  57. package/dist/main/coreum/feemodel/v1/params.d.ts +14 -337
  58. package/dist/main/coreum/feemodel/v1/params.js +113 -66
  59. package/dist/main/coreum/feemodel/v1/query.d.ts +30 -261
  60. package/dist/main/coreum/feemodel/v1/query.js +196 -43
  61. package/dist/main/coreum/index.d.ts +46 -0
  62. package/dist/main/coreum/index.js +58 -1
  63. package/dist/main/coreum/nft/index.d.ts +1 -2
  64. package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -79
  65. package/dist/main/coreum/nft/v1beta1/event.js +103 -77
  66. package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -435
  67. package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
  68. package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -114
  69. package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
  70. package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -1628
  71. package/dist/main/coreum/nft/v1beta1/query.js +259 -223
  72. package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -39
  73. package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
  74. package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
  75. package/dist/main/cosmos/extensions/distribution.js +9 -9
  76. package/dist/main/cosmos/extensions/gov.d.ts +13 -13
  77. package/dist/main/cosmos/extensions/gov.js +14 -8
  78. package/dist/main/cosmos/index.d.ts +8 -8
  79. package/dist/main/google/api/http.js +18 -21
  80. package/dist/main/google/protobuf/any.js +3 -4
  81. package/dist/main/google/protobuf/duration.js +3 -4
  82. package/dist/main/google/protobuf/timestamp.js +3 -4
  83. package/dist/main/services/cosmostation.js +1 -1
  84. package/dist/main/tendermint/abci/types.js +183 -223
  85. package/dist/main/tendermint/crypto/keys.js +3 -4
  86. package/dist/main/tendermint/crypto/proof.js +19 -24
  87. package/dist/main/tendermint/types/params.js +15 -20
  88. package/dist/main/tendermint/types/types.js +57 -68
  89. package/dist/main/tendermint/types/validator.js +10 -13
  90. package/dist/main/tendermint/version/types.js +6 -8
  91. package/dist/main/types/core.d.ts +2 -1
  92. package/dist/main/types/core.js +2 -0
  93. package/dist/main/wasm/v1/authz.d.ts +20 -471
  94. package/dist/main/wasm/v1/authz.js +129 -148
  95. package/dist/main/wasm/v1/genesis.d.ts +14 -1020
  96. package/dist/main/wasm/v1/genesis.js +169 -140
  97. package/dist/main/wasm/v1/ibc.d.ts +13 -62
  98. package/dist/main/wasm/v1/ibc.js +91 -76
  99. package/dist/main/wasm/v1/index.d.ts +1 -2
  100. package/dist/main/wasm/v1/pagination.js +9 -11
  101. package/dist/main/wasm/v1/proposal.d.ts +23 -720
  102. package/dist/main/wasm/v1/proposal.js +634 -465
  103. package/dist/main/wasm/v1/query.d.ts +35 -1201
  104. package/dist/main/wasm/v1/query.js +370 -363
  105. package/dist/main/wasm/v1/tx.d.ts +37 -788
  106. package/dist/main/wasm/v1/tx.js +621 -497
  107. package/dist/main/wasm/v1/types.d.ts +19 -297
  108. package/dist/main/wasm/v1/types.js +219 -190
  109. package/dist/module/client/index.js +4 -3
  110. package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
  111. package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
  112. package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -120
  113. package/dist/module/coreum/asset/ft/v1/event.js +721 -109
  114. package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -517
  115. package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
  116. package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -63
  117. package/dist/module/coreum/asset/ft/v1/params.js +35 -27
  118. package/dist/module/coreum/asset/ft/v1/query.d.ts +86 -1950
  119. package/dist/module/coreum/asset/ft/v1/query.js +672 -180
  120. package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -249
  121. package/dist/module/coreum/asset/ft/v1/token.js +236 -152
  122. package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -755
  123. package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
  124. package/dist/module/coreum/asset/index.d.ts +2 -3
  125. package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
  126. package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
  127. package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -147
  128. package/dist/module/coreum/asset/nft/v1/event.js +448 -112
  129. package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -286
  130. package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
  131. package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -108
  132. package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
  133. package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -38
  134. package/dist/module/coreum/asset/nft/v1/params.js +16 -16
  135. package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -706
  136. package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
  137. package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -266
  138. package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
  139. package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -19
  140. package/dist/module/coreum/asset/nft/v1/types.js +269 -39
  141. package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -32
  142. package/dist/module/coreum/customparams/v1/genesis.js +25 -18
  143. package/dist/module/coreum/customparams/v1/params.d.ts +11 -19
  144. package/dist/module/coreum/customparams/v1/params.js +21 -14
  145. package/dist/module/coreum/customparams/v1/query.d.ts +14 -40
  146. package/dist/module/coreum/customparams/v1/query.js +32 -23
  147. package/dist/module/coreum/dex/index.d.ts +1 -0
  148. package/dist/module/coreum/dex/index.js +9 -0
  149. package/dist/module/coreum/dex/v1/event.d.ts +73 -0
  150. package/dist/module/coreum/dex/v1/event.js +467 -0
  151. package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
  152. package/dist/module/coreum/dex/v1/genesis.js +315 -0
  153. package/dist/module/coreum/dex/v1/order.d.ts +172 -0
  154. package/dist/module/coreum/dex/v1/order.js +1128 -0
  155. package/dist/module/coreum/dex/v1/params.d.ts +34 -0
  156. package/dist/module/coreum/dex/v1/params.js +136 -0
  157. package/dist/module/coreum/dex/v1/query.d.ts +133 -0
  158. package/dist/module/coreum/dex/v1/query.js +871 -0
  159. package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
  160. package/dist/module/coreum/dex/v1/tx.js +519 -0
  161. package/dist/module/coreum/extensions/dex.d.ts +12 -0
  162. package/dist/module/coreum/extensions/dex.js +28 -0
  163. package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -233
  164. package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
  165. package/dist/module/coreum/feemodel/v1/params.d.ts +14 -337
  166. package/dist/module/coreum/feemodel/v1/params.js +105 -54
  167. package/dist/module/coreum/feemodel/v1/query.d.ts +30 -261
  168. package/dist/module/coreum/feemodel/v1/query.js +191 -35
  169. package/dist/module/coreum/index.d.ts +46 -0
  170. package/dist/module/coreum/index.js +57 -0
  171. package/dist/module/coreum/nft/index.d.ts +1 -2
  172. package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -79
  173. package/dist/module/coreum/nft/v1beta1/event.js +90 -58
  174. package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -435
  175. package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
  176. package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -114
  177. package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
  178. package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -1628
  179. package/dist/module/coreum/nft/v1beta1/query.js +231 -183
  180. package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -39
  181. package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
  182. package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
  183. package/dist/module/cosmos/extensions/gov.d.ts +13 -13
  184. package/dist/module/cosmos/index.d.ts +8 -8
  185. package/dist/module/services/cosmostation.js +1 -1
  186. package/dist/module/types/core.d.ts +2 -1
  187. package/dist/module/types/core.js +2 -0
  188. package/dist/module/wasm/v1/authz.d.ts +20 -471
  189. package/dist/module/wasm/v1/authz.js +111 -119
  190. package/dist/module/wasm/v1/genesis.d.ts +14 -1020
  191. package/dist/module/wasm/v1/genesis.js +161 -125
  192. package/dist/module/wasm/v1/ibc.d.ts +13 -62
  193. package/dist/module/wasm/v1/ibc.js +83 -62
  194. package/dist/module/wasm/v1/index.d.ts +1 -2
  195. package/dist/module/wasm/v1/proposal.d.ts +23 -720
  196. package/dist/module/wasm/v1/proposal.js +562 -377
  197. package/dist/module/wasm/v1/query.d.ts +35 -1201
  198. package/dist/module/wasm/v1/query.js +330 -301
  199. package/dist/module/wasm/v1/tx.d.ts +37 -788
  200. package/dist/module/wasm/v1/tx.js +551 -404
  201. package/dist/module/wasm/v1/types.d.ts +19 -297
  202. package/dist/module/wasm/v1/types.js +196 -156
  203. package/package.json +11 -10
@@ -1,5 +1,4 @@
1
- import Long from "long";
2
- import _m0 from "protobufjs/minimal";
1
+ import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
3
2
  export declare const protobufPackage = "cosmos.nft.v1beta1";
4
3
  /** MsgSend represents a message to send a nft from one account to another account. */
5
4
  export interface MsgSend {
@@ -15,47 +14,14 @@ export interface MsgSend {
15
14
  /** MsgSendResponse defines the Msg/Send response type. */
16
15
  export interface MsgSendResponse {
17
16
  }
18
- export declare const MsgSend: {
19
- encode(message: MsgSend, writer?: _m0.Writer): _m0.Writer;
20
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend;
21
- fromJSON(object: any): MsgSend;
22
- toJSON(message: MsgSend): unknown;
23
- create<I extends {
24
- classId?: string;
25
- id?: string;
26
- sender?: string;
27
- receiver?: string;
28
- } & {
29
- classId?: string;
30
- id?: string;
31
- sender?: string;
32
- receiver?: string;
33
- } & { [K in Exclude<keyof I, keyof MsgSend>]: never; }>(base?: I): MsgSend;
34
- fromPartial<I_1 extends {
35
- classId?: string;
36
- id?: string;
37
- sender?: string;
38
- receiver?: string;
39
- } & {
40
- classId?: string;
41
- id?: string;
42
- sender?: string;
43
- receiver?: string;
44
- } & { [K_1 in Exclude<keyof I_1, keyof MsgSend>]: never; }>(object: I_1): MsgSend;
45
- };
46
- export declare const MsgSendResponse: {
47
- encode(_: MsgSendResponse, writer?: _m0.Writer): _m0.Writer;
48
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse;
49
- fromJSON(_: any): MsgSendResponse;
50
- toJSON(_: MsgSendResponse): unknown;
51
- create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgSendResponse;
52
- fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgSendResponse;
53
- };
17
+ export declare const MsgSend: MessageFns<MsgSend>;
18
+ export declare const MsgSendResponse: MessageFns<MsgSendResponse>;
54
19
  /** Msg defines the nft Msg service. */
55
20
  export interface Msg {
56
21
  /** Send defines a method to send a nft from one account to another account. */
57
22
  Send(request: MsgSend): Promise<MsgSendResponse>;
58
23
  }
24
+ export declare const MsgServiceName = "cosmos.nft.v1beta1.Msg";
59
25
  export declare class MsgClientImpl implements Msg {
60
26
  private readonly rpc;
61
27
  private readonly service;
@@ -68,7 +34,7 @@ interface Rpc {
68
34
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
69
35
  }
70
36
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
71
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
37
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
72
38
  [K in keyof T]?: DeepPartial<T[K]>;
73
39
  } : Partial<T>;
74
40
  type KeysOfUnion<T> = T extends T ? keyof T : never;
@@ -77,4 +43,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
77
43
  } & {
78
44
  [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
79
45
  };
46
+ export interface MessageFns<T> {
47
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
48
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
49
+ fromJSON(object: any): T;
50
+ toJSON(message: T): unknown;
51
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
52
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
53
+ }
80
54
  export {};
@@ -1,12 +1,16 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.7.0
4
+ // protoc v3.21.12
5
+ // source: cosmos-sdk/proto/cosmos/nft/v1beta1/tx.proto
1
6
  /* eslint-disable */
2
- import Long from "long";
3
- import _m0 from "protobufjs/minimal";
7
+ import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
4
8
  export const protobufPackage = "cosmos.nft.v1beta1";
5
9
  function createBaseMsgSend() {
6
10
  return { classId: "", id: "", sender: "", receiver: "" };
7
11
  }
8
12
  export const MsgSend = {
9
- encode(message, writer = _m0.Writer.create()) {
13
+ encode(message, writer = new BinaryWriter()) {
10
14
  if (message.classId !== "") {
11
15
  writer.uint32(10).string(message.classId);
12
16
  }
@@ -22,58 +26,72 @@ export const MsgSend = {
22
26
  return writer;
23
27
  },
24
28
  decode(input, length) {
25
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
26
30
  let end = length === undefined ? reader.len : reader.pos + length;
27
31
  const message = createBaseMsgSend();
28
32
  while (reader.pos < end) {
29
33
  const tag = reader.uint32();
30
34
  switch (tag >>> 3) {
31
- case 1:
32
- if (tag != 10) {
35
+ case 1: {
36
+ if (tag !== 10) {
33
37
  break;
34
38
  }
35
39
  message.classId = reader.string();
36
40
  continue;
37
- case 2:
38
- if (tag != 18) {
41
+ }
42
+ case 2: {
43
+ if (tag !== 18) {
39
44
  break;
40
45
  }
41
46
  message.id = reader.string();
42
47
  continue;
43
- case 3:
44
- if (tag != 26) {
48
+ }
49
+ case 3: {
50
+ if (tag !== 26) {
45
51
  break;
46
52
  }
47
53
  message.sender = reader.string();
48
54
  continue;
49
- case 4:
50
- if (tag != 34) {
55
+ }
56
+ case 4: {
57
+ if (tag !== 34) {
51
58
  break;
52
59
  }
53
60
  message.receiver = reader.string();
54
61
  continue;
62
+ }
55
63
  }
56
- if ((tag & 7) == 4 || tag == 0) {
64
+ if ((tag & 7) === 4 || tag === 0) {
57
65
  break;
58
66
  }
59
- reader.skipType(tag & 7);
67
+ reader.skip(tag & 7);
60
68
  }
61
69
  return message;
62
70
  },
63
71
  fromJSON(object) {
64
72
  return {
65
- classId: isSet(object.classId) ? String(object.classId) : "",
66
- id: isSet(object.id) ? String(object.id) : "",
67
- sender: isSet(object.sender) ? String(object.sender) : "",
68
- receiver: isSet(object.receiver) ? String(object.receiver) : "",
73
+ classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
74
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
75
+ sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
76
+ receiver: isSet(object.receiver)
77
+ ? globalThis.String(object.receiver)
78
+ : "",
69
79
  };
70
80
  },
71
81
  toJSON(message) {
72
82
  const obj = {};
73
- message.classId !== undefined && (obj.classId = message.classId);
74
- message.id !== undefined && (obj.id = message.id);
75
- message.sender !== undefined && (obj.sender = message.sender);
76
- message.receiver !== undefined && (obj.receiver = message.receiver);
83
+ if (message.classId !== "") {
84
+ obj.classId = message.classId;
85
+ }
86
+ if (message.id !== "") {
87
+ obj.id = message.id;
88
+ }
89
+ if (message.sender !== "") {
90
+ obj.sender = message.sender;
91
+ }
92
+ if (message.receiver !== "") {
93
+ obj.receiver = message.receiver;
94
+ }
77
95
  return obj;
78
96
  },
79
97
  create(base) {
@@ -92,21 +110,21 @@ function createBaseMsgSendResponse() {
92
110
  return {};
93
111
  }
94
112
  export const MsgSendResponse = {
95
- encode(_, writer = _m0.Writer.create()) {
113
+ encode(_, writer = new BinaryWriter()) {
96
114
  return writer;
97
115
  },
98
116
  decode(input, length) {
99
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
117
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
100
118
  let end = length === undefined ? reader.len : reader.pos + length;
101
119
  const message = createBaseMsgSendResponse();
102
120
  while (reader.pos < end) {
103
121
  const tag = reader.uint32();
104
122
  switch (tag >>> 3) {
105
123
  }
106
- if ((tag & 7) == 4 || tag == 0) {
124
+ if ((tag & 7) === 4 || tag === 0) {
107
125
  break;
108
126
  }
109
- reader.skipType(tag & 7);
127
+ reader.skip(tag & 7);
110
128
  }
111
129
  return message;
112
130
  },
@@ -125,24 +143,21 @@ export const MsgSendResponse = {
125
143
  return message;
126
144
  },
127
145
  };
146
+ export const MsgServiceName = "cosmos.nft.v1beta1.Msg";
128
147
  export class MsgClientImpl {
129
148
  rpc;
130
149
  service;
131
150
  constructor(rpc, opts) {
132
- this.service = opts?.service || "cosmos.nft.v1beta1.Msg";
151
+ this.service = opts?.service || MsgServiceName;
133
152
  this.rpc = rpc;
134
153
  this.Send = this.Send.bind(this);
135
154
  }
136
155
  Send(request) {
137
156
  const data = MsgSend.encode(request).finish();
138
157
  const promise = this.rpc.request(this.service, "Send", data);
139
- return promise.then((data) => MsgSendResponse.decode(_m0.Reader.create(data)));
158
+ return promise.then((data) => MsgSendResponse.decode(new BinaryReader(data)));
140
159
  }
141
160
  }
142
- if (_m0.util.Long !== Long) {
143
- _m0.util.Long = Long;
144
- _m0.configure();
145
- }
146
161
  function isSet(value) {
147
162
  return value !== null && value !== undefined;
148
163
  }
@@ -19,15 +19,15 @@ export declare function setupDistributionExtension(base: QueryClient): {
19
19
  withdrawAddress: string;
20
20
  }>;
21
21
  params: () => Promise<{
22
- params?: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").Params;
22
+ params: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").Params;
23
23
  }>;
24
24
  validatorCommission: (validator: string) => Promise<{
25
- commission?: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorAccumulatedCommission;
25
+ commission: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorAccumulatedCommission;
26
26
  }>;
27
27
  validatorOutstandingRewards: (validator: string) => Promise<{
28
- rewards?: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorOutstandingRewards;
28
+ rewards: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorOutstandingRewards;
29
29
  }>;
30
- validatorSlashes: (validator: string, starting_height: Long, ending_height: Long, pagination?: PageRequest) => Promise<{
30
+ validatorSlashes: (validator: string, starting_height: bigint, ending_height: bigint, pagination?: PageRequest) => Promise<{
31
31
  slashes: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorSlashEvent[];
32
32
  pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
33
33
  }>;
@@ -4,33 +4,33 @@ import { QueryClient } from "@cosmjs/stargate";
4
4
  export declare function setupGovExtension(base: QueryClient): {
5
5
  gov: {
6
6
  params: (parametersType: "deposit" | "tallying" | "voting") => Promise<{
7
- votingParams?: import("cosmjs-types/cosmos/gov/v1beta1/gov").VotingParams;
8
- depositParams?: import("cosmjs-types/cosmos/gov/v1beta1/gov").DepositParams;
9
- tallyParams?: import("cosmjs-types/cosmos/gov/v1beta1/gov").TallyParams;
7
+ votingParams: import("cosmjs-types/cosmos/gov/v1beta1/gov").VotingParams;
8
+ depositParams: import("cosmjs-types/cosmos/gov/v1beta1/gov").DepositParams;
9
+ tallyParams: import("cosmjs-types/cosmos/gov/v1beta1/gov").TallyParams;
10
10
  }>;
11
11
  proposals: (proposalStatus: ProposalStatus, depositor: string, voter: string, pagination?: PageRequest) => Promise<{
12
12
  proposals: import("cosmjs-types/cosmos/gov/v1beta1/gov").Proposal[];
13
13
  pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
14
14
  }>;
15
- proposal: (proposal_id: Long) => Promise<{
16
- proposal?: import("cosmjs-types/cosmos/gov/v1beta1/gov").Proposal;
15
+ proposal: (proposal_id: bigint) => Promise<{
16
+ proposal: import("cosmjs-types/cosmos/gov/v1beta1/gov").Proposal;
17
17
  }>;
18
- deposits: (proposal_id: Long, pagination?: PageRequest) => Promise<{
18
+ deposits: (proposal_id: bigint, pagination?: PageRequest) => Promise<{
19
19
  deposits: import("cosmjs-types/cosmos/gov/v1beta1/gov").Deposit[];
20
20
  pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
21
21
  }>;
22
- deposit: (proposal_id: Long, depositor: string) => Promise<{
23
- deposit?: import("cosmjs-types/cosmos/gov/v1beta1/gov").Deposit;
22
+ deposit: (proposal_id: bigint, depositor: string) => Promise<{
23
+ deposit: import("cosmjs-types/cosmos/gov/v1beta1/gov").Deposit;
24
24
  }>;
25
- tally: (proposal_id: Long) => Promise<{
26
- tally?: import("cosmjs-types/cosmos/gov/v1beta1/gov").TallyResult;
25
+ tally: (proposal_id: bigint) => Promise<{
26
+ tally: import("cosmjs-types/cosmos/gov/v1beta1/gov").TallyResult;
27
27
  }>;
28
- votes: (proposal_id: Long, pagination?: PageRequest) => Promise<{
28
+ votes: (proposal_id: bigint, pagination?: PageRequest) => Promise<{
29
29
  votes: import("cosmjs-types/cosmos/gov/v1beta1/gov").Vote[];
30
30
  pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
31
31
  }>;
32
- vote: (proposal_id: Long, voter: string) => Promise<{
33
- vote?: import("cosmjs-types/cosmos/gov/v1beta1/gov").Vote;
32
+ vote: (proposal_id: bigint, voter: string) => Promise<{
33
+ vote: import("cosmjs-types/cosmos/gov/v1beta1/gov").Vote;
34
34
  }>;
35
35
  };
36
36
  };
@@ -5,7 +5,7 @@ import { MsgCreatePeriodicVestingAccount, MsgCreatePermanentLockedAccount, MsgCr
5
5
  import { MsgBeginRedelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgDelegate, MsgEditValidator, MsgUndelegate, MsgUpdateParams as SMsgUpdateParams } from "cosmjs-types/cosmos/staking/v1beta1/tx";
6
6
  import { MsgExec, MsgGrant, MsgRevoke } from "cosmjs-types/cosmos/authz/v1beta1/tx";
7
7
  import { MsgMultiSend, MsgSend, MsgSetSendEnabled, MsgUpdateParams } from "cosmjs-types/cosmos/bank/v1beta1/tx";
8
- import { StakingMsgs, DistributionMsgs, BankMsgs, FeegrantMsgs, VestingMsgs, GovMsgs } from "../types/msgs";
8
+ import { StakingMsgs, DistributionMsgs, BankMsgs, FeegrantMsgs, GovMsgs } from "../types/msgs";
9
9
  export * from "cosmjs-types/cosmos/tx/v1beta1/tx";
10
10
  /**
11
11
  * Module to generate the Messages related to the Authz module of the Blockchain
@@ -61,7 +61,7 @@ export declare namespace Staking {
61
61
  * @param object Represents the properties available for this MsgCancelUnbondingDelegation message.
62
62
  * @returns A Msg object with the typeUrl and value object for the proper message
63
63
  */
64
- const CancelUnbondingDelegation: (object: StakingMsgs.MsgCancelUnbondingDelegation) => {
64
+ const CancelUnbondingDelegation: (object: MsgCancelUnbondingDelegation) => {
65
65
  typeUrl: string;
66
66
  value: MsgCancelUnbondingDelegation;
67
67
  };
@@ -125,7 +125,7 @@ export declare namespace Governance {
125
125
  * @param object Represents the properties available for this MsgDeposit message.
126
126
  * @returns A Msg object with the typeUrl and value object for the proper message
127
127
  */
128
- const Deposit: (object: GovMsgs.MsgDeposit) => {
128
+ const Deposit: (object: MsgDeposit) => {
129
129
  typeUrl: string;
130
130
  value: MsgDeposit;
131
131
  };
@@ -145,7 +145,7 @@ export declare namespace Governance {
145
145
  * @param object Represents the properties available for this MsgVote message.
146
146
  * @returns A Msg object with the typeUrl and value object for the proper message
147
147
  */
148
- const Vote: (object: GovMsgs.MsgVote) => {
148
+ const Vote: (object: MsgVote) => {
149
149
  typeUrl: string;
150
150
  value: MsgVote;
151
151
  };
@@ -155,7 +155,7 @@ export declare namespace Governance {
155
155
  * @param object Represents the properties available for this MsgVoteWeighted message.
156
156
  * @returns A Msg object with the typeUrl and value object for the proper message
157
157
  */
158
- const VoteWeighted: (object: GovMsgs.MsgVoteWeighted) => {
158
+ const VoteWeighted: (object: MsgVoteWeighted) => {
159
159
  typeUrl: string;
160
160
  value: MsgVoteWeighted;
161
161
  };
@@ -301,15 +301,15 @@ export declare namespace Vesting {
301
301
  * @param object Represents the properties available for this MsgCreateVestingAccount message.
302
302
  * @returns A Msg object with the typeUrl and value object for the proper message
303
303
  */
304
- const CreateVestingAccount: (object: VestingMsgs.MsgCreateVestingAccount) => {
304
+ const CreateVestingAccount: (object: MsgCreateVestingAccount) => {
305
305
  typeUrl: string;
306
306
  value: MsgCreateVestingAccount;
307
307
  };
308
- const CreatePeriodicVestingAccount: (object: VestingMsgs.MsgCreatePeriodicVestingAccount) => {
308
+ const CreatePeriodicVestingAccount: (object: MsgCreatePeriodicVestingAccount) => {
309
309
  typeUrl: string;
310
310
  value: MsgCreatePeriodicVestingAccount;
311
311
  };
312
- const CreatePermanentLockedAccount: (object: VestingMsgs.MsgCreatePermanentLockedAccount) => {
312
+ const CreatePermanentLockedAccount: (object: MsgCreatePermanentLockedAccount) => {
313
313
  typeUrl: string;
314
314
  value: MsgCreatePermanentLockedAccount;
315
315
  };
@@ -29,7 +29,7 @@ export const connectCosmostation = async (config) => {
29
29
  };
30
30
  export const getCosmosOfflineSigner = async (chain_id) => {
31
31
  try {
32
- return await getOfflineSigner(chain_id);
32
+ return (await getOfflineSigner(chain_id));
33
33
  }
34
34
  catch (e) {
35
35
  throw {
@@ -9,7 +9,8 @@ import { setupBankExtension, setupGovExtension, setupDistributionExtension } fro
9
9
  export declare enum CoreumTypeUrl {
10
10
  NFT = "/coreum.asset.nft.v1.",
11
11
  FT = "/coreum.asset.ft.v1.",
12
- NFTBeta = "/cosmos.nft.v1beta1."
12
+ NFTBeta = "/cosmos.nft.v1beta1.",
13
+ DEX = "/coreum.dex.v1"
13
14
  }
14
15
  export interface ClientQueryClient extends QueryClient {
15
16
  ft: ReturnType<typeof setupFTExtension>["ft"];
@@ -1,12 +1,14 @@
1
1
  import { protobufPackage as assetNFT } from "../coreum/asset/nft/v1/tx";
2
2
  import { protobufPackage as assetFT } from "../coreum/asset/ft/v1/tx";
3
3
  import { protobufPackage as nftV1beta } from "../coreum/nft/v1beta1/tx";
4
+ import { protobufPackage as dex } from "../coreum/dex/v1/tx";
4
5
  /** @internal */
5
6
  export var CoreumTypeUrl;
6
7
  (function (CoreumTypeUrl) {
7
8
  CoreumTypeUrl["NFT"] = "/coreum.asset.nft.v1.";
8
9
  CoreumTypeUrl["FT"] = "/coreum.asset.ft.v1.";
9
10
  CoreumTypeUrl["NFTBeta"] = "/cosmos.nft.v1beta1.";
11
+ CoreumTypeUrl["DEX"] = "/coreum.dex.v1";
10
12
  })(CoreumTypeUrl || (CoreumTypeUrl = {}));
11
13
  // setupMintExtension,
12
14
  // setupFeegrantExtension,