coreum-js 2.16.3 → 2.17.1

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 (236) hide show
  1. package/dist/main/client/index.js +15 -16
  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 -28
  5. package/dist/main/coreum/asset/ft/v1/event.js +744 -138
  6. package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -21
  7. package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
  8. package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -11
  9. package/dist/main/coreum/asset/ft/v1/params.js +37 -33
  10. package/dist/main/coreum/asset/ft/v1/query.d.ts +87 -127
  11. package/dist/main/coreum/asset/ft/v1/query.js +697 -217
  12. package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -51
  13. package/dist/main/coreum/asset/ft/v1/token.js +276 -200
  14. package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -147
  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 -43
  20. package/dist/main/coreum/asset/nft/v1/event.js +475 -147
  21. package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -36
  22. package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
  23. package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -26
  24. package/dist/main/coreum/asset/nft/v1/nft.js +139 -104
  25. package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -12
  26. package/dist/main/coreum/asset/nft/v1/params.js +17 -20
  27. package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -88
  28. package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
  29. package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -70
  30. package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
  31. package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -11
  32. package/dist/main/coreum/asset/nft/v1/types.js +273 -45
  33. package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -12
  34. package/dist/main/coreum/customparams/v1/genesis.js +26 -22
  35. package/dist/main/coreum/customparams/v1/params.d.ts +11 -11
  36. package/dist/main/coreum/customparams/v1/params.js +23 -20
  37. package/dist/main/coreum/customparams/v1/query.d.ts +14 -20
  38. package/dist/main/coreum/customparams/v1/query.js +35 -29
  39. package/dist/main/coreum/dex/index.d.ts +2 -0
  40. package/dist/main/coreum/dex/index.js +11 -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/extensions/ft.js +2 -1
  56. package/dist/main/coreum/extensions/nft.js +2 -1
  57. package/dist/main/coreum/extensions/nftbeta.js +2 -1
  58. package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -13
  59. package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
  60. package/dist/main/coreum/feemodel/v1/params.d.ts +14 -21
  61. package/dist/main/coreum/feemodel/v1/params.js +113 -66
  62. package/dist/main/coreum/feemodel/v1/query.d.ts +30 -37
  63. package/dist/main/coreum/feemodel/v1/query.js +196 -43
  64. package/dist/main/coreum/index.d.ts +46 -0
  65. package/dist/main/coreum/index.js +58 -1
  66. package/dist/main/coreum/nft/index.d.ts +1 -2
  67. package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -27
  68. package/dist/main/coreum/nft/v1beta1/event.js +103 -77
  69. package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -19
  70. package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
  71. package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -22
  72. package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
  73. package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -124
  74. package/dist/main/coreum/nft/v1beta1/query.js +259 -223
  75. package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -19
  76. package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
  77. package/dist/main/cosmos/extensions/bank.js +2 -1
  78. package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
  79. package/dist/main/cosmos/extensions/distribution.js +11 -10
  80. package/dist/main/cosmos/extensions/gov.d.ts +13 -13
  81. package/dist/main/cosmos/extensions/gov.js +16 -9
  82. package/dist/main/cosmos/index.d.ts +8 -8
  83. package/dist/main/google/api/http.d.ts +2636 -6
  84. package/dist/main/google/api/http.js +18 -21
  85. package/dist/main/google/protobuf/any.d.ts +14 -2
  86. package/dist/main/google/protobuf/any.js +6 -7
  87. package/dist/main/google/protobuf/duration.d.ts +14 -2
  88. package/dist/main/google/protobuf/duration.js +3 -4
  89. package/dist/main/google/protobuf/timestamp.d.ts +14 -2
  90. package/dist/main/google/protobuf/timestamp.js +3 -4
  91. package/dist/main/index.js +7 -17
  92. package/dist/main/services/cosmostation.js +1 -1
  93. package/dist/main/tendermint/abci/types.d.ts +6360 -92
  94. package/dist/main/tendermint/abci/types.js +195 -235
  95. package/dist/main/tendermint/crypto/keys.d.ts +14 -2
  96. package/dist/main/tendermint/crypto/keys.js +3 -4
  97. package/dist/main/tendermint/crypto/proof.d.ts +152 -10
  98. package/dist/main/tendermint/crypto/proof.js +19 -24
  99. package/dist/main/tendermint/types/params.d.ts +196 -12
  100. package/dist/main/tendermint/types/params.js +15 -20
  101. package/dist/main/tendermint/types/types.d.ts +1744 -26
  102. package/dist/main/tendermint/types/types.js +62 -73
  103. package/dist/main/tendermint/types/validator.d.ts +230 -6
  104. package/dist/main/tendermint/types/validator.js +10 -13
  105. package/dist/main/tendermint/version/types.d.ts +28 -4
  106. package/dist/main/tendermint/version/types.js +6 -8
  107. package/dist/main/types/core.d.ts +2 -1
  108. package/dist/main/types/core.js +2 -0
  109. package/dist/main/utils/convertStringToAny.d.ts +0 -1
  110. package/dist/main/utils/nft.js +2 -1
  111. package/dist/main/wasm/v1/authz.d.ts +20 -75
  112. package/dist/main/wasm/v1/authz.js +129 -148
  113. package/dist/main/wasm/v1/extensions/wasm.js +2 -1
  114. package/dist/main/wasm/v1/genesis.d.ts +14 -34
  115. package/dist/main/wasm/v1/genesis.js +169 -140
  116. package/dist/main/wasm/v1/ibc.d.ts +13 -26
  117. package/dist/main/wasm/v1/ibc.js +91 -76
  118. package/dist/main/wasm/v1/index.d.ts +1 -2
  119. package/dist/main/wasm/v1/pagination.d.ts +40 -4
  120. package/dist/main/wasm/v1/pagination.js +9 -11
  121. package/dist/main/wasm/v1/proposal.d.ts +23 -106
  122. package/dist/main/wasm/v1/proposal.js +634 -465
  123. package/dist/main/wasm/v1/query.d.ts +35 -187
  124. package/dist/main/wasm/v1/query.js +370 -363
  125. package/dist/main/wasm/v1/tx.d.ts +37 -210
  126. package/dist/main/wasm/v1/tx.js +621 -497
  127. package/dist/main/wasm/v1/types.d.ts +19 -67
  128. package/dist/main/wasm/v1/types.js +224 -195
  129. package/dist/module/client/index.js +2 -1
  130. package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
  131. package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
  132. package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -28
  133. package/dist/module/coreum/asset/ft/v1/event.js +721 -109
  134. package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -21
  135. package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
  136. package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -11
  137. package/dist/module/coreum/asset/ft/v1/params.js +35 -27
  138. package/dist/module/coreum/asset/ft/v1/query.d.ts +87 -127
  139. package/dist/module/coreum/asset/ft/v1/query.js +672 -180
  140. package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -51
  141. package/dist/module/coreum/asset/ft/v1/token.js +236 -152
  142. package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -147
  143. package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
  144. package/dist/module/coreum/asset/index.d.ts +2 -3
  145. package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
  146. package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
  147. package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -43
  148. package/dist/module/coreum/asset/nft/v1/event.js +448 -112
  149. package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -36
  150. package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
  151. package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -26
  152. package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
  153. package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -12
  154. package/dist/module/coreum/asset/nft/v1/params.js +16 -16
  155. package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -88
  156. package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
  157. package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -70
  158. package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
  159. package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -11
  160. package/dist/module/coreum/asset/nft/v1/types.js +269 -39
  161. package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -12
  162. package/dist/module/coreum/customparams/v1/genesis.js +25 -18
  163. package/dist/module/coreum/customparams/v1/params.d.ts +11 -11
  164. package/dist/module/coreum/customparams/v1/params.js +21 -14
  165. package/dist/module/coreum/customparams/v1/query.d.ts +14 -20
  166. package/dist/module/coreum/customparams/v1/query.js +32 -23
  167. package/dist/module/coreum/dex/index.d.ts +2 -0
  168. package/dist/module/coreum/dex/index.js +8 -0
  169. package/dist/module/coreum/dex/v1/event.d.ts +73 -0
  170. package/dist/module/coreum/dex/v1/event.js +467 -0
  171. package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
  172. package/dist/module/coreum/dex/v1/genesis.js +315 -0
  173. package/dist/module/coreum/dex/v1/order.d.ts +172 -0
  174. package/dist/module/coreum/dex/v1/order.js +1128 -0
  175. package/dist/module/coreum/dex/v1/params.d.ts +34 -0
  176. package/dist/module/coreum/dex/v1/params.js +136 -0
  177. package/dist/module/coreum/dex/v1/query.d.ts +133 -0
  178. package/dist/module/coreum/dex/v1/query.js +871 -0
  179. package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
  180. package/dist/module/coreum/dex/v1/tx.js +519 -0
  181. package/dist/module/coreum/extensions/dex.d.ts +12 -0
  182. package/dist/module/coreum/extensions/dex.js +28 -0
  183. package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -13
  184. package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
  185. package/dist/module/coreum/feemodel/v1/params.d.ts +14 -21
  186. package/dist/module/coreum/feemodel/v1/params.js +105 -54
  187. package/dist/module/coreum/feemodel/v1/query.d.ts +30 -37
  188. package/dist/module/coreum/feemodel/v1/query.js +191 -35
  189. package/dist/module/coreum/index.d.ts +46 -0
  190. package/dist/module/coreum/index.js +57 -0
  191. package/dist/module/coreum/nft/index.d.ts +1 -2
  192. package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -27
  193. package/dist/module/coreum/nft/v1beta1/event.js +90 -58
  194. package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -19
  195. package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
  196. package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -22
  197. package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
  198. package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -124
  199. package/dist/module/coreum/nft/v1beta1/query.js +231 -183
  200. package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -19
  201. package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
  202. package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
  203. package/dist/module/cosmos/extensions/gov.d.ts +13 -13
  204. package/dist/module/cosmos/index.d.ts +8 -8
  205. package/dist/module/google/api/http.d.ts +2636 -6
  206. package/dist/module/google/protobuf/any.d.ts +14 -2
  207. package/dist/module/google/protobuf/duration.d.ts +14 -2
  208. package/dist/module/google/protobuf/timestamp.d.ts +14 -2
  209. package/dist/module/services/cosmostation.js +1 -1
  210. package/dist/module/tendermint/abci/types.d.ts +6360 -92
  211. package/dist/module/tendermint/crypto/keys.d.ts +14 -2
  212. package/dist/module/tendermint/crypto/proof.d.ts +152 -10
  213. package/dist/module/tendermint/types/params.d.ts +196 -12
  214. package/dist/module/tendermint/types/types.d.ts +1744 -26
  215. package/dist/module/tendermint/types/validator.d.ts +230 -6
  216. package/dist/module/tendermint/version/types.d.ts +28 -4
  217. package/dist/module/types/core.d.ts +2 -1
  218. package/dist/module/types/core.js +2 -0
  219. package/dist/module/utils/convertStringToAny.d.ts +0 -1
  220. package/dist/module/wasm/v1/authz.d.ts +20 -75
  221. package/dist/module/wasm/v1/authz.js +111 -119
  222. package/dist/module/wasm/v1/genesis.d.ts +14 -34
  223. package/dist/module/wasm/v1/genesis.js +161 -125
  224. package/dist/module/wasm/v1/ibc.d.ts +13 -26
  225. package/dist/module/wasm/v1/ibc.js +83 -62
  226. package/dist/module/wasm/v1/index.d.ts +1 -2
  227. package/dist/module/wasm/v1/pagination.d.ts +40 -4
  228. package/dist/module/wasm/v1/proposal.d.ts +23 -106
  229. package/dist/module/wasm/v1/proposal.js +562 -377
  230. package/dist/module/wasm/v1/query.d.ts +35 -187
  231. package/dist/module/wasm/v1/query.js +330 -301
  232. package/dist/module/wasm/v1/tx.d.ts +37 -210
  233. package/dist/module/wasm/v1/tx.js +551 -404
  234. package/dist/module/wasm/v1/types.d.ts +19 -67
  235. package/dist/module/wasm/v1/types.js +196 -156
  236. 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
  import { StakingParams } from "./params";
4
3
  export declare const protobufPackage = "coreum.customparams.v1";
5
4
  /** QueryStakingParamsRequest defines the request type for querying x/customparams staking parameters. */
@@ -7,29 +6,16 @@ export interface QueryStakingParamsRequest {
7
6
  }
8
7
  /** QueryStakingParamsResponse defines the response type for querying x/customparams staking parameters. */
9
8
  export interface QueryStakingParamsResponse {
10
- params?: StakingParams;
9
+ params: StakingParams | undefined;
11
10
  }
12
- export declare const QueryStakingParamsRequest: {
13
- encode(_: QueryStakingParamsRequest, writer?: _m0.Writer): _m0.Writer;
14
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryStakingParamsRequest;
15
- fromJSON(_: any): QueryStakingParamsRequest;
16
- toJSON(_: QueryStakingParamsRequest): unknown;
17
- create<I extends Exact<DeepPartial<QueryStakingParamsRequest>, I>>(base?: I): QueryStakingParamsRequest;
18
- fromPartial<I extends Exact<DeepPartial<QueryStakingParamsRequest>, I>>(_: I): QueryStakingParamsRequest;
19
- };
20
- export declare const QueryStakingParamsResponse: {
21
- encode(message: QueryStakingParamsResponse, writer?: _m0.Writer): _m0.Writer;
22
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryStakingParamsResponse;
23
- fromJSON(object: any): QueryStakingParamsResponse;
24
- toJSON(message: QueryStakingParamsResponse): unknown;
25
- create<I extends Exact<DeepPartial<QueryStakingParamsResponse>, I>>(base?: I): QueryStakingParamsResponse;
26
- fromPartial<I extends Exact<DeepPartial<QueryStakingParamsResponse>, I>>(object: I): QueryStakingParamsResponse;
27
- };
11
+ export declare const QueryStakingParamsRequest: MessageFns<QueryStakingParamsRequest>;
12
+ export declare const QueryStakingParamsResponse: MessageFns<QueryStakingParamsResponse>;
28
13
  /** Query defines the gRPC querier service. */
29
14
  export interface Query {
30
15
  /** StakingParams queries the staking parameters of the module. */
31
16
  StakingParams(request: QueryStakingParamsRequest): Promise<QueryStakingParamsResponse>;
32
17
  }
18
+ export declare const QueryServiceName = "coreum.customparams.v1.Query";
33
19
  export declare class QueryClientImpl implements Query {
34
20
  private readonly rpc;
35
21
  private readonly service;
@@ -42,7 +28,7 @@ interface Rpc {
42
28
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
43
29
  }
44
30
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
45
- 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 {} ? {
31
+ 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 {} ? {
46
32
  [K in keyof T]?: DeepPartial<T[K]>;
47
33
  } : Partial<T>;
48
34
  type KeysOfUnion<T> = T extends T ? keyof T : never;
@@ -51,4 +37,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
51
37
  } & {
52
38
  [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
53
39
  };
40
+ export interface MessageFns<T> {
41
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
42
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
43
+ fromJSON(object: any): T;
44
+ toJSON(message: T): unknown;
45
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
46
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
47
+ }
54
48
  export {};
@@ -1,27 +1,31 @@
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: coreum-protos/customparams/query.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
  import { StakingParams } from "./params";
5
9
  export const protobufPackage = "coreum.customparams.v1";
6
10
  function createBaseQueryStakingParamsRequest() {
7
11
  return {};
8
12
  }
9
13
  export const QueryStakingParamsRequest = {
10
- encode(_, writer = _m0.Writer.create()) {
14
+ encode(_, writer = new BinaryWriter()) {
11
15
  return writer;
12
16
  },
13
17
  decode(input, length) {
14
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
18
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
15
19
  let end = length === undefined ? reader.len : reader.pos + length;
16
20
  const message = createBaseQueryStakingParamsRequest();
17
21
  while (reader.pos < end) {
18
22
  const tag = reader.uint32();
19
23
  switch (tag >>> 3) {
20
24
  }
21
- if ((tag & 7) == 4 || tag == 0) {
25
+ if ((tag & 7) === 4 || tag === 0) {
22
26
  break;
23
27
  }
24
- reader.skipType(tag & 7);
28
+ reader.skip(tag & 7);
25
29
  }
26
30
  return message;
27
31
  },
@@ -44,39 +48,46 @@ function createBaseQueryStakingParamsResponse() {
44
48
  return { params: undefined };
45
49
  }
46
50
  export const QueryStakingParamsResponse = {
47
- encode(message, writer = _m0.Writer.create()) {
51
+ encode(message, writer = new BinaryWriter()) {
48
52
  if (message.params !== undefined) {
49
53
  StakingParams.encode(message.params, writer.uint32(10).fork()).ldelim();
50
54
  }
51
55
  return writer;
52
56
  },
53
57
  decode(input, length) {
54
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
58
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
55
59
  let end = length === undefined ? reader.len : reader.pos + length;
56
60
  const message = createBaseQueryStakingParamsResponse();
57
61
  while (reader.pos < end) {
58
62
  const tag = reader.uint32();
59
63
  switch (tag >>> 3) {
60
- case 1:
61
- if (tag != 10) {
64
+ case 1: {
65
+ if (tag !== 10) {
62
66
  break;
63
67
  }
64
68
  message.params = StakingParams.decode(reader, reader.uint32());
65
69
  continue;
70
+ }
66
71
  }
67
- if ((tag & 7) == 4 || tag == 0) {
72
+ if ((tag & 7) === 4 || tag === 0) {
68
73
  break;
69
74
  }
70
- reader.skipType(tag & 7);
75
+ reader.skip(tag & 7);
71
76
  }
72
77
  return message;
73
78
  },
74
79
  fromJSON(object) {
75
- return { params: isSet(object.params) ? StakingParams.fromJSON(object.params) : undefined };
80
+ return {
81
+ params: isSet(object.params)
82
+ ? StakingParams.fromJSON(object.params)
83
+ : undefined,
84
+ };
76
85
  },
77
86
  toJSON(message) {
78
87
  const obj = {};
79
- message.params !== undefined && (obj.params = message.params ? StakingParams.toJSON(message.params) : undefined);
88
+ if (message.params !== undefined) {
89
+ obj.params = StakingParams.toJSON(message.params);
90
+ }
80
91
  return obj;
81
92
  },
82
93
  create(base) {
@@ -84,30 +95,28 @@ export const QueryStakingParamsResponse = {
84
95
  },
85
96
  fromPartial(object) {
86
97
  const message = createBaseQueryStakingParamsResponse();
87
- message.params = (object.params !== undefined && object.params !== null)
88
- ? StakingParams.fromPartial(object.params)
89
- : undefined;
98
+ message.params =
99
+ object.params !== undefined && object.params !== null
100
+ ? StakingParams.fromPartial(object.params)
101
+ : undefined;
90
102
  return message;
91
103
  },
92
104
  };
105
+ export const QueryServiceName = "coreum.customparams.v1.Query";
93
106
  export class QueryClientImpl {
94
107
  rpc;
95
108
  service;
96
109
  constructor(rpc, opts) {
97
- this.service = opts?.service || "coreum.customparams.v1.Query";
110
+ this.service = opts?.service || QueryServiceName;
98
111
  this.rpc = rpc;
99
112
  this.StakingParams = this.StakingParams.bind(this);
100
113
  }
101
114
  StakingParams(request) {
102
115
  const data = QueryStakingParamsRequest.encode(request).finish();
103
116
  const promise = this.rpc.request(this.service, "StakingParams", data);
104
- return promise.then((data) => QueryStakingParamsResponse.decode(_m0.Reader.create(data)));
117
+ return promise.then((data) => QueryStakingParamsResponse.decode(new BinaryReader(data)));
105
118
  }
106
119
  }
107
- if (_m0.util.Long !== Long) {
108
- _m0.util.Long = Long;
109
- _m0.configure();
110
- }
111
120
  function isSet(value) {
112
121
  return value !== null && value !== undefined;
113
122
  }
@@ -0,0 +1,2 @@
1
+ import { GeneratedType } from "@cosmjs/proto-signing";
2
+ export declare const dexRegistry: ReadonlyArray<[string, GeneratedType]>;
@@ -0,0 +1,8 @@
1
+ import { CoreumTypeUrl } from "../../types";
2
+ import { MsgCancelOrder, MsgPlaceOrder, MsgUpdateParams, MsgCancelOrdersByDenom, } from "./v1/tx";
3
+ export const dexRegistry = [
4
+ [CoreumTypeUrl.DEX + "MsgCancelOrder", MsgCancelOrder],
5
+ [CoreumTypeUrl.DEX + "MsgPlaceOrder", MsgPlaceOrder],
6
+ [CoreumTypeUrl.DEX + "MsgUpdateParams", MsgUpdateParams],
7
+ [CoreumTypeUrl.DEX + "MsgCancelOrdersByDenom", MsgCancelOrdersByDenom],
8
+ ];
@@ -0,0 +1,73 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "coreum.dex.v1";
3
+ /** EventOrderPlaced is emitted when a new order is placed and new sequence is generated for it. */
4
+ export interface EventOrderPlaced {
5
+ /** creator is order creator address. */
6
+ creator: string;
7
+ /** id is unique order ID. */
8
+ id: string;
9
+ /** sequence is unique order sequence. */
10
+ sequence: number;
11
+ }
12
+ /** EventOrderReduced is emitted when the order is reduced during the matching. */
13
+ export interface EventOrderReduced {
14
+ /** creator is order creator address. */
15
+ creator: string;
16
+ /** id is unique order ID. */
17
+ id: string;
18
+ /** sequence is unique order sequence. */
19
+ sequence: number;
20
+ /** sent_coin is coin sent during matching. */
21
+ sentCoin: string;
22
+ /** received_coin is coin received during matching. */
23
+ receivedCoin: string;
24
+ }
25
+ /** EventOrderCreated is emitted when the limit order is saved to the order book. */
26
+ export interface EventOrderCreated {
27
+ /** creator is order creator address. */
28
+ creator: string;
29
+ /** id is unique order ID. */
30
+ id: string;
31
+ /** sequence is unique order sequence. */
32
+ sequence: number;
33
+ /** remaining_base_quantity - is remaining quantity of base denom which user wants to sell or buy. */
34
+ remainingBaseQuantity: string;
35
+ /** remaining_spendable_balance - is balance up to which user wants to spend to execute the order. */
36
+ remainingSpendableBalance: string;
37
+ }
38
+ /** EventOrderClosed is emitted when the order is closed during matching or manually, and removed from the order book. */
39
+ export interface EventOrderClosed {
40
+ /** creator is order creator address. */
41
+ creator: string;
42
+ /** id is unique order ID. */
43
+ id: string;
44
+ /** sequence is unique order sequence. */
45
+ sequence: number;
46
+ /** remaining_base_quantity - is remaining quantity of base denom which user wants to sell or buy. */
47
+ remainingBaseQuantity: string;
48
+ /** remaining_spendable_balance - is balance up to which user wants to spend to execute the order. */
49
+ remainingSpendableBalance: string;
50
+ }
51
+ export declare const EventOrderPlaced: MessageFns<EventOrderPlaced>;
52
+ export declare const EventOrderReduced: MessageFns<EventOrderReduced>;
53
+ export declare const EventOrderCreated: MessageFns<EventOrderCreated>;
54
+ export declare const EventOrderClosed: MessageFns<EventOrderClosed>;
55
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
56
+ 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 {} ? {
57
+ [K in keyof T]?: DeepPartial<T[K]>;
58
+ } : Partial<T>;
59
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
60
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
61
+ [K in keyof P]: Exact<P[K], I[K]>;
62
+ } & {
63
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
64
+ };
65
+ export interface MessageFns<T> {
66
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
67
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
68
+ fromJSON(object: any): T;
69
+ toJSON(message: T): unknown;
70
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
71
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
72
+ }
73
+ export {};