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,6 +1,10 @@
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/feemodel/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 { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
5
9
  import { Params } from "./params";
6
10
  export const protobufPackage = "coreum.feemodel.v1";
@@ -8,21 +12,21 @@ function createBaseQueryMinGasPriceRequest() {
8
12
  return {};
9
13
  }
10
14
  export const QueryMinGasPriceRequest = {
11
- encode(_, writer = _m0.Writer.create()) {
15
+ encode(_, writer = new BinaryWriter()) {
12
16
  return writer;
13
17
  },
14
18
  decode(input, length) {
15
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
19
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
16
20
  let end = length === undefined ? reader.len : reader.pos + length;
17
21
  const message = createBaseQueryMinGasPriceRequest();
18
22
  while (reader.pos < end) {
19
23
  const tag = reader.uint32();
20
24
  switch (tag >>> 3) {
21
25
  }
22
- if ((tag & 7) == 4 || tag == 0) {
26
+ if ((tag & 7) === 4 || tag === 0) {
23
27
  break;
24
28
  }
25
- reader.skipType(tag & 7);
29
+ reader.skip(tag & 7);
26
30
  }
27
31
  return message;
28
32
  },
@@ -45,30 +49,31 @@ function createBaseQueryMinGasPriceResponse() {
45
49
  return { minGasPrice: undefined };
46
50
  }
47
51
  export const QueryMinGasPriceResponse = {
48
- encode(message, writer = _m0.Writer.create()) {
52
+ encode(message, writer = new BinaryWriter()) {
49
53
  if (message.minGasPrice !== undefined) {
50
54
  DecCoin.encode(message.minGasPrice, writer.uint32(10).fork()).ldelim();
51
55
  }
52
56
  return writer;
53
57
  },
54
58
  decode(input, length) {
55
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
59
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
56
60
  let end = length === undefined ? reader.len : reader.pos + length;
57
61
  const message = createBaseQueryMinGasPriceResponse();
58
62
  while (reader.pos < end) {
59
63
  const tag = reader.uint32();
60
64
  switch (tag >>> 3) {
61
- case 1:
62
- if (tag != 10) {
65
+ case 1: {
66
+ if (tag !== 10) {
63
67
  break;
64
68
  }
65
69
  message.minGasPrice = DecCoin.decode(reader, reader.uint32());
66
70
  continue;
71
+ }
67
72
  }
68
- if ((tag & 7) == 4 || tag == 0) {
73
+ if ((tag & 7) === 4 || tag === 0) {
69
74
  break;
70
75
  }
71
- reader.skipType(tag & 7);
76
+ reader.skip(tag & 7);
72
77
  }
73
78
  return message;
74
79
  },
@@ -81,10 +86,9 @@ export const QueryMinGasPriceResponse = {
81
86
  },
82
87
  toJSON(message) {
83
88
  const obj = {};
84
- message.minGasPrice !== undefined &&
85
- (obj.minGasPrice = message.minGasPrice
86
- ? DecCoin.toJSON(message.minGasPrice)
87
- : undefined);
89
+ if (message.minGasPrice !== undefined) {
90
+ obj.minGasPrice = DecCoin.toJSON(message.minGasPrice);
91
+ }
88
92
  return obj;
89
93
  },
90
94
  create(base) {
@@ -99,25 +103,172 @@ export const QueryMinGasPriceResponse = {
99
103
  return message;
100
104
  },
101
105
  };
106
+ function createBaseQueryRecommendedGasPriceRequest() {
107
+ return { afterBlocks: 0 };
108
+ }
109
+ export const QueryRecommendedGasPriceRequest = {
110
+ encode(message, writer = new BinaryWriter()) {
111
+ if (message.afterBlocks !== 0) {
112
+ writer.uint32(8).uint32(message.afterBlocks);
113
+ }
114
+ return writer;
115
+ },
116
+ decode(input, length) {
117
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
118
+ let end = length === undefined ? reader.len : reader.pos + length;
119
+ const message = createBaseQueryRecommendedGasPriceRequest();
120
+ while (reader.pos < end) {
121
+ const tag = reader.uint32();
122
+ switch (tag >>> 3) {
123
+ case 1: {
124
+ if (tag !== 8) {
125
+ break;
126
+ }
127
+ message.afterBlocks = reader.uint32();
128
+ continue;
129
+ }
130
+ }
131
+ if ((tag & 7) === 4 || tag === 0) {
132
+ break;
133
+ }
134
+ reader.skip(tag & 7);
135
+ }
136
+ return message;
137
+ },
138
+ fromJSON(object) {
139
+ return {
140
+ afterBlocks: isSet(object.afterBlocks)
141
+ ? globalThis.Number(object.afterBlocks)
142
+ : 0,
143
+ };
144
+ },
145
+ toJSON(message) {
146
+ const obj = {};
147
+ if (message.afterBlocks !== 0) {
148
+ obj.afterBlocks = Math.round(message.afterBlocks);
149
+ }
150
+ return obj;
151
+ },
152
+ create(base) {
153
+ return QueryRecommendedGasPriceRequest.fromPartial(base ?? {});
154
+ },
155
+ fromPartial(object) {
156
+ const message = createBaseQueryRecommendedGasPriceRequest();
157
+ message.afterBlocks = object.afterBlocks ?? 0;
158
+ return message;
159
+ },
160
+ };
161
+ function createBaseQueryRecommendedGasPriceResponse() {
162
+ return { low: undefined, med: undefined, high: undefined };
163
+ }
164
+ export const QueryRecommendedGasPriceResponse = {
165
+ encode(message, writer = new BinaryWriter()) {
166
+ if (message.low !== undefined) {
167
+ DecCoin.encode(message.low, writer.uint32(10).fork()).ldelim();
168
+ }
169
+ if (message.med !== undefined) {
170
+ DecCoin.encode(message.med, writer.uint32(18).fork()).ldelim();
171
+ }
172
+ if (message.high !== undefined) {
173
+ DecCoin.encode(message.high, writer.uint32(26).fork()).ldelim();
174
+ }
175
+ return writer;
176
+ },
177
+ decode(input, length) {
178
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
179
+ let end = length === undefined ? reader.len : reader.pos + length;
180
+ const message = createBaseQueryRecommendedGasPriceResponse();
181
+ while (reader.pos < end) {
182
+ const tag = reader.uint32();
183
+ switch (tag >>> 3) {
184
+ case 1: {
185
+ if (tag !== 10) {
186
+ break;
187
+ }
188
+ message.low = DecCoin.decode(reader, reader.uint32());
189
+ continue;
190
+ }
191
+ case 2: {
192
+ if (tag !== 18) {
193
+ break;
194
+ }
195
+ message.med = DecCoin.decode(reader, reader.uint32());
196
+ continue;
197
+ }
198
+ case 3: {
199
+ if (tag !== 26) {
200
+ break;
201
+ }
202
+ message.high = DecCoin.decode(reader, reader.uint32());
203
+ continue;
204
+ }
205
+ }
206
+ if ((tag & 7) === 4 || tag === 0) {
207
+ break;
208
+ }
209
+ reader.skip(tag & 7);
210
+ }
211
+ return message;
212
+ },
213
+ fromJSON(object) {
214
+ return {
215
+ low: isSet(object.low) ? DecCoin.fromJSON(object.low) : undefined,
216
+ med: isSet(object.med) ? DecCoin.fromJSON(object.med) : undefined,
217
+ high: isSet(object.high) ? DecCoin.fromJSON(object.high) : undefined,
218
+ };
219
+ },
220
+ toJSON(message) {
221
+ const obj = {};
222
+ if (message.low !== undefined) {
223
+ obj.low = DecCoin.toJSON(message.low);
224
+ }
225
+ if (message.med !== undefined) {
226
+ obj.med = DecCoin.toJSON(message.med);
227
+ }
228
+ if (message.high !== undefined) {
229
+ obj.high = DecCoin.toJSON(message.high);
230
+ }
231
+ return obj;
232
+ },
233
+ create(base) {
234
+ return QueryRecommendedGasPriceResponse.fromPartial(base ?? {});
235
+ },
236
+ fromPartial(object) {
237
+ const message = createBaseQueryRecommendedGasPriceResponse();
238
+ message.low =
239
+ object.low !== undefined && object.low !== null
240
+ ? DecCoin.fromPartial(object.low)
241
+ : undefined;
242
+ message.med =
243
+ object.med !== undefined && object.med !== null
244
+ ? DecCoin.fromPartial(object.med)
245
+ : undefined;
246
+ message.high =
247
+ object.high !== undefined && object.high !== null
248
+ ? DecCoin.fromPartial(object.high)
249
+ : undefined;
250
+ return message;
251
+ },
252
+ };
102
253
  function createBaseQueryParamsRequest() {
103
254
  return {};
104
255
  }
105
256
  export const QueryParamsRequest = {
106
- encode(_, writer = _m0.Writer.create()) {
257
+ encode(_, writer = new BinaryWriter()) {
107
258
  return writer;
108
259
  },
109
260
  decode(input, length) {
110
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
261
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
111
262
  let end = length === undefined ? reader.len : reader.pos + length;
112
263
  const message = createBaseQueryParamsRequest();
113
264
  while (reader.pos < end) {
114
265
  const tag = reader.uint32();
115
266
  switch (tag >>> 3) {
116
267
  }
117
- if ((tag & 7) == 4 || tag == 0) {
268
+ if ((tag & 7) === 4 || tag === 0) {
118
269
  break;
119
270
  }
120
- reader.skipType(tag & 7);
271
+ reader.skip(tag & 7);
121
272
  }
122
273
  return message;
123
274
  },
@@ -140,30 +291,31 @@ function createBaseQueryParamsResponse() {
140
291
  return { params: undefined };
141
292
  }
142
293
  export const QueryParamsResponse = {
143
- encode(message, writer = _m0.Writer.create()) {
294
+ encode(message, writer = new BinaryWriter()) {
144
295
  if (message.params !== undefined) {
145
296
  Params.encode(message.params, writer.uint32(10).fork()).ldelim();
146
297
  }
147
298
  return writer;
148
299
  },
149
300
  decode(input, length) {
150
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
301
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
151
302
  let end = length === undefined ? reader.len : reader.pos + length;
152
303
  const message = createBaseQueryParamsResponse();
153
304
  while (reader.pos < end) {
154
305
  const tag = reader.uint32();
155
306
  switch (tag >>> 3) {
156
- case 1:
157
- if (tag != 10) {
307
+ case 1: {
308
+ if (tag !== 10) {
158
309
  break;
159
310
  }
160
311
  message.params = Params.decode(reader, reader.uint32());
161
312
  continue;
313
+ }
162
314
  }
163
- if ((tag & 7) == 4 || tag == 0) {
315
+ if ((tag & 7) === 4 || tag === 0) {
164
316
  break;
165
317
  }
166
- reader.skipType(tag & 7);
318
+ reader.skip(tag & 7);
167
319
  }
168
320
  return message;
169
321
  },
@@ -174,8 +326,9 @@ export const QueryParamsResponse = {
174
326
  },
175
327
  toJSON(message) {
176
328
  const obj = {};
177
- message.params !== undefined &&
178
- (obj.params = message.params ? Params.toJSON(message.params) : undefined);
329
+ if (message.params !== undefined) {
330
+ obj.params = Params.toJSON(message.params);
331
+ }
179
332
  return obj;
180
333
  },
181
334
  create(base) {
@@ -190,30 +343,33 @@ export const QueryParamsResponse = {
190
343
  return message;
191
344
  },
192
345
  };
346
+ export const QueryServiceName = "coreum.feemodel.v1.Query";
193
347
  export class QueryClientImpl {
194
348
  rpc;
195
349
  service;
196
350
  constructor(rpc, opts) {
197
- this.service = opts?.service || "coreum.feemodel.v1.Query";
351
+ this.service = opts?.service || QueryServiceName;
198
352
  this.rpc = rpc;
199
353
  this.MinGasPrice = this.MinGasPrice.bind(this);
354
+ this.RecommendedGasPrice = this.RecommendedGasPrice.bind(this);
200
355
  this.Params = this.Params.bind(this);
201
356
  }
202
357
  MinGasPrice(request) {
203
358
  const data = QueryMinGasPriceRequest.encode(request).finish();
204
359
  const promise = this.rpc.request(this.service, "MinGasPrice", data);
205
- return promise.then((data) => QueryMinGasPriceResponse.decode(_m0.Reader.create(data)));
360
+ return promise.then((data) => QueryMinGasPriceResponse.decode(new BinaryReader(data)));
361
+ }
362
+ RecommendedGasPrice(request) {
363
+ const data = QueryRecommendedGasPriceRequest.encode(request).finish();
364
+ const promise = this.rpc.request(this.service, "RecommendedGasPrice", data);
365
+ return promise.then((data) => QueryRecommendedGasPriceResponse.decode(new BinaryReader(data)));
206
366
  }
207
367
  Params(request) {
208
368
  const data = QueryParamsRequest.encode(request).finish();
209
369
  const promise = this.rpc.request(this.service, "Params", data);
210
- return promise.then((data) => QueryParamsResponse.decode(_m0.Reader.create(data)));
370
+ return promise.then((data) => QueryParamsResponse.decode(new BinaryReader(data)));
211
371
  }
212
372
  }
213
- if (_m0.util.Long !== Long) {
214
- _m0.util.Long = Long;
215
- _m0.configure();
216
- }
217
373
  function isSet(value) {
218
374
  return value !== null && value !== undefined;
219
375
  }
@@ -2,6 +2,7 @@ import { GeneratedType } from "@cosmjs/proto-signing";
2
2
  import { MsgSend as NFTMsgSend } from "./nft/v1beta1/tx";
3
3
  import { MsgIssueClass as NFTMsgIssueClass, MsgMint as NFTMsgMint, MsgAddToWhitelist as NFTMsgAddToWhitelist, MsgBurn as NFTMsgBurn, MsgRemoveFromWhitelist as NFTMsgRemoveFromWhitelist, MsgFreeze as NFTMsgFreeze, MsgUnfreeze as NFTMsgUnfreeze } from "./asset/nft/v1/tx";
4
4
  import { MsgIssue as FTMsgIssue, MsgMint as FTMsgMint, MsgBurn as FTMsgBurn, MsgFreeze as FTMsgFreeze, MsgUnfreeze as FTMsgUnfreeze, MsgGloballyFreeze as FTMsgGloballyFreeze, MsgGloballyUnfreeze as FTMsgGloballyUnfreeze, MsgSetWhitelistedLimit as FTMsgSetWhitelistedLimit, MsgClawback as FTMsgClawback, MsgUpdateDEXUnifiedRefAmount, MsgUpdateDEXWhitelistedDenoms } from "./asset/ft/v1/tx";
5
+ import { MsgUpdateParams as DEXMsgUpdateParams, MsgPlaceOrder as DEXMsgPlaceOrder, MsgCancelOrder as DEXMsgCancelOrder, MsgCancelOrdersByDenom as DEXMsgCancelOrdersByDenom } from "./dex/v1/tx";
5
6
  import { FTMsgs, NFTMsgs } from "../types/msgs";
6
7
  export { Feature } from "./asset/ft/v1/token";
7
8
  export { ClassFeature } from "./asset/nft/v1/nft";
@@ -214,3 +215,48 @@ export declare namespace NFT {
214
215
  value: NFTMsgSend;
215
216
  };
216
217
  }
218
+ /**
219
+ * Transaction Module for the DEX module
220
+ */
221
+ export declare namespace DEX {
222
+ /** MsgPlaceOrder message creator
223
+ * Places a new order on the native DEX
224
+ *
225
+ * @param object Represents the properties available for this MsgPlaceOrder message.
226
+ * @returns A Msg object with the typeUrl and value object for the proper message
227
+ */
228
+ const PlaceOrder: (object: DEXMsgPlaceOrder) => {
229
+ typeUrl: string;
230
+ value: DEXMsgPlaceOrder;
231
+ };
232
+ /** MsgCancelOrder message creator
233
+ * Cancels an order by ID
234
+ *
235
+ * @param object Represents the properties available for this MsgCancelOrder message.
236
+ * @returns A Msg object with the typeUrl and value object for the proper message
237
+ */
238
+ const CancelOrder: (object: DEXMsgCancelOrder) => {
239
+ typeUrl: string;
240
+ value: DEXMsgCancelOrder;
241
+ };
242
+ /** MsgUpdateParams message creator
243
+ * Updates module parameters
244
+ *
245
+ * @param object Represents the properties available for this MsgUpdateParams message.
246
+ * @returns A Msg object with the typeUrl and value object for the proper message
247
+ */
248
+ const UpdateParams: (object: DEXMsgUpdateParams) => {
249
+ typeUrl: string;
250
+ value: DEXMsgUpdateParams;
251
+ };
252
+ /** MsgCancelOrdersByDenom message creator
253
+ * Cancels all existing orders by denom
254
+ *
255
+ * @param object Represents the properties available for this MsgCancelOrdersByDenom message.
256
+ * @returns A Msg object with the typeUrl and value object for the proper message
257
+ */
258
+ const CancelOrdersByDenom: (object: DEXMsgCancelOrdersByDenom) => {
259
+ typeUrl: string;
260
+ value: DEXMsgCancelOrdersByDenom;
261
+ };
262
+ }
@@ -1,8 +1,10 @@
1
1
  import { assetNftRegistry, assetFtRegistry } from "./asset";
2
2
  import { nftBetaRegistry } from "./nft";
3
+ import { dexRegistry } from "./dex";
3
4
  import { MsgSend as NFTMsgSend } from "./nft/v1beta1/tx";
4
5
  import { MsgIssueClass as NFTMsgIssueClass, MsgMint as NFTMsgMint, MsgAddToWhitelist as NFTMsgAddToWhitelist, MsgBurn as NFTMsgBurn, MsgRemoveFromWhitelist as NFTMsgRemoveFromWhitelist, MsgFreeze as NFTMsgFreeze, MsgUnfreeze as NFTMsgUnfreeze, } from "./asset/nft/v1/tx";
5
6
  import { MsgIssue as FTMsgIssue, MsgMint as FTMsgMint, MsgBurn as FTMsgBurn, MsgFreeze as FTMsgFreeze, MsgUnfreeze as FTMsgUnfreeze, MsgGloballyFreeze as FTMsgGloballyFreeze, MsgGloballyUnfreeze as FTMsgGloballyUnfreeze, MsgSetWhitelistedLimit as FTMsgSetWhitelistedLimit, MsgClawback as FTMsgClawback, MsgUpdateDEXUnifiedRefAmount, MsgUpdateDEXWhitelistedDenoms, } from "./asset/ft/v1/tx";
7
+ import { MsgUpdateParams as DEXMsgUpdateParams, MsgPlaceOrder as DEXMsgPlaceOrder, MsgCancelOrder as DEXMsgCancelOrder, MsgCancelOrdersByDenom as DEXMsgCancelOrdersByDenom, } from "./dex/v1/tx";
6
8
  export { Feature } from "./asset/ft/v1/token";
7
9
  export { ClassFeature } from "./asset/nft/v1/nft";
8
10
  /**
@@ -12,6 +14,7 @@ export const coreumRegistry = [
12
14
  ...assetFtRegistry,
13
15
  ...assetNftRegistry,
14
16
  ...nftBetaRegistry,
17
+ ...dexRegistry,
15
18
  ];
16
19
  /**
17
20
  * Transaction Module for the Fungible Tokens module. (assetft)
@@ -253,3 +256,57 @@ export var NFT;
253
256
  };
254
257
  };
255
258
  })(NFT || (NFT = {}));
259
+ /**
260
+ * Transaction Module for the DEX module
261
+ */
262
+ export var DEX;
263
+ (function (DEX) {
264
+ /** MsgPlaceOrder message creator
265
+ * Places a new order on the native DEX
266
+ *
267
+ * @param object Represents the properties available for this MsgPlaceOrder message.
268
+ * @returns A Msg object with the typeUrl and value object for the proper message
269
+ */
270
+ DEX.PlaceOrder = function (object) {
271
+ return {
272
+ typeUrl: "/coreum.dex.v1.MsgPlaceOrder",
273
+ value: DEXMsgPlaceOrder.fromPartial(object),
274
+ };
275
+ };
276
+ /** MsgCancelOrder message creator
277
+ * Cancels an order by ID
278
+ *
279
+ * @param object Represents the properties available for this MsgCancelOrder message.
280
+ * @returns A Msg object with the typeUrl and value object for the proper message
281
+ */
282
+ DEX.CancelOrder = function (object) {
283
+ return {
284
+ typeUrl: "/coreum.dex.v1.MsgCancelOrder",
285
+ value: DEXMsgCancelOrder.fromPartial(object),
286
+ };
287
+ };
288
+ /** MsgUpdateParams message creator
289
+ * Updates module parameters
290
+ *
291
+ * @param object Represents the properties available for this MsgUpdateParams message.
292
+ * @returns A Msg object with the typeUrl and value object for the proper message
293
+ */
294
+ DEX.UpdateParams = function (object) {
295
+ return {
296
+ typeUrl: "/coreum.dex.v1.MsgUpdateParams",
297
+ value: DEXMsgUpdateParams.fromPartial(object),
298
+ };
299
+ };
300
+ /** MsgCancelOrdersByDenom message creator
301
+ * Cancels all existing orders by denom
302
+ *
303
+ * @param object Represents the properties available for this MsgCancelOrdersByDenom message.
304
+ * @returns A Msg object with the typeUrl and value object for the proper message
305
+ */
306
+ DEX.CancelOrdersByDenom = function (object) {
307
+ return {
308
+ typeUrl: "/coreum.dex.v1.MsgCancelOrdersByDenom",
309
+ value: DEXMsgCancelOrdersByDenom.fromPartial(object),
310
+ };
311
+ };
312
+ })(DEX || (DEX = {}));
@@ -1,2 +1 @@
1
- import { GeneratedType } from "@cosmjs/proto-signing";
2
- export declare const nftBetaRegistry: ReadonlyArray<[string, GeneratedType]>;
1
+ export declare const nftBetaRegistry: ReadonlyArray<[string, any]>;
@@ -1,103 +1,39 @@
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
  /** EventSend is emitted on Msg/Send */
5
4
  export interface EventSend {
5
+ /** class_id associated with the nft */
6
6
  classId: string;
7
+ /** id is a unique identifier of the nft */
7
8
  id: string;
9
+ /** sender is the address of the owner of nft */
8
10
  sender: string;
11
+ /** receiver is the receiver address of nft */
9
12
  receiver: string;
10
13
  }
11
14
  /** EventMint is emitted on Mint */
12
15
  export interface EventMint {
16
+ /** class_id associated with the nft */
13
17
  classId: string;
18
+ /** id is a unique identifier of the nft */
14
19
  id: string;
20
+ /** owner is the owner address of the nft */
15
21
  owner: string;
16
22
  }
17
23
  /** EventBurn is emitted on Burn */
18
24
  export interface EventBurn {
25
+ /** class_id associated with the nft */
19
26
  classId: string;
27
+ /** id is a unique identifier of the nft */
20
28
  id: string;
29
+ /** owner is the owner address of the nft */
21
30
  owner: string;
22
31
  }
23
- export declare const EventSend: {
24
- encode(message: EventSend, writer?: _m0.Writer): _m0.Writer;
25
- decode(input: _m0.Reader | Uint8Array, length?: number): EventSend;
26
- fromJSON(object: any): EventSend;
27
- toJSON(message: EventSend): unknown;
28
- create<I extends {
29
- classId?: string;
30
- id?: string;
31
- sender?: string;
32
- receiver?: string;
33
- } & {
34
- classId?: string;
35
- id?: string;
36
- sender?: string;
37
- receiver?: string;
38
- } & { [K in Exclude<keyof I, keyof EventSend>]: never; }>(base?: I): EventSend;
39
- fromPartial<I_1 extends {
40
- classId?: string;
41
- id?: string;
42
- sender?: string;
43
- receiver?: string;
44
- } & {
45
- classId?: string;
46
- id?: string;
47
- sender?: string;
48
- receiver?: string;
49
- } & { [K_1 in Exclude<keyof I_1, keyof EventSend>]: never; }>(object: I_1): EventSend;
50
- };
51
- export declare const EventMint: {
52
- encode(message: EventMint, writer?: _m0.Writer): _m0.Writer;
53
- decode(input: _m0.Reader | Uint8Array, length?: number): EventMint;
54
- fromJSON(object: any): EventMint;
55
- toJSON(message: EventMint): unknown;
56
- create<I extends {
57
- classId?: string;
58
- id?: string;
59
- owner?: string;
60
- } & {
61
- classId?: string;
62
- id?: string;
63
- owner?: string;
64
- } & { [K in Exclude<keyof I, keyof EventMint>]: never; }>(base?: I): EventMint;
65
- fromPartial<I_1 extends {
66
- classId?: string;
67
- id?: string;
68
- owner?: string;
69
- } & {
70
- classId?: string;
71
- id?: string;
72
- owner?: string;
73
- } & { [K_1 in Exclude<keyof I_1, keyof EventMint>]: never; }>(object: I_1): EventMint;
74
- };
75
- export declare const EventBurn: {
76
- encode(message: EventBurn, writer?: _m0.Writer): _m0.Writer;
77
- decode(input: _m0.Reader | Uint8Array, length?: number): EventBurn;
78
- fromJSON(object: any): EventBurn;
79
- toJSON(message: EventBurn): unknown;
80
- create<I extends {
81
- classId?: string;
82
- id?: string;
83
- owner?: string;
84
- } & {
85
- classId?: string;
86
- id?: string;
87
- owner?: string;
88
- } & { [K in Exclude<keyof I, keyof EventBurn>]: never; }>(base?: I): EventBurn;
89
- fromPartial<I_1 extends {
90
- classId?: string;
91
- id?: string;
92
- owner?: string;
93
- } & {
94
- classId?: string;
95
- id?: string;
96
- owner?: string;
97
- } & { [K_1 in Exclude<keyof I_1, keyof EventBurn>]: never; }>(object: I_1): EventBurn;
98
- };
32
+ export declare const EventSend: MessageFns<EventSend>;
33
+ export declare const EventMint: MessageFns<EventMint>;
34
+ export declare const EventBurn: MessageFns<EventBurn>;
99
35
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
100
- 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 {} ? {
36
+ 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 {} ? {
101
37
  [K in keyof T]?: DeepPartial<T[K]>;
102
38
  } : Partial<T>;
103
39
  type KeysOfUnion<T> = T extends T ? keyof T : never;
@@ -106,4 +42,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
106
42
  } & {
107
43
  [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
108
44
  };
45
+ export interface MessageFns<T> {
46
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
47
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
48
+ fromJSON(object: any): T;
49
+ toJSON(message: T): unknown;
50
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
51
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
52
+ }
109
53
  export {};