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,12 +1,13 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.7.0
5
+ // protoc v3.21.12
6
+ // source: coreum-protos/feemodel/query.proto
5
7
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryMinGasPriceResponse = exports.QueryMinGasPriceRequest = exports.protobufPackage = void 0;
8
+ exports.QueryClientImpl = exports.QueryServiceName = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryRecommendedGasPriceResponse = exports.QueryRecommendedGasPriceRequest = exports.QueryMinGasPriceResponse = exports.QueryMinGasPriceRequest = exports.protobufPackage = void 0;
7
9
  /* eslint-disable */
8
- const long_1 = __importDefault(require("long"));
9
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ const binary_1 = require("cosmjs-types/binary");
10
11
  const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
11
12
  const params_1 = require("./params");
12
13
  exports.protobufPackage = "coreum.feemodel.v1";
@@ -14,21 +15,21 @@ function createBaseQueryMinGasPriceRequest() {
14
15
  return {};
15
16
  }
16
17
  exports.QueryMinGasPriceRequest = {
17
- encode(_, writer = minimal_1.default.Writer.create()) {
18
+ encode(_, writer = new binary_1.BinaryWriter()) {
18
19
  return writer;
19
20
  },
20
21
  decode(input, length) {
21
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
22
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
22
23
  let end = length === undefined ? reader.len : reader.pos + length;
23
24
  const message = createBaseQueryMinGasPriceRequest();
24
25
  while (reader.pos < end) {
25
26
  const tag = reader.uint32();
26
27
  switch (tag >>> 3) {
27
28
  }
28
- if ((tag & 7) == 4 || tag == 0) {
29
+ if ((tag & 7) === 4 || tag === 0) {
29
30
  break;
30
31
  }
31
- reader.skipType(tag & 7);
32
+ reader.skip(tag & 7);
32
33
  }
33
34
  return message;
34
35
  },
@@ -40,7 +41,7 @@ exports.QueryMinGasPriceRequest = {
40
41
  return obj;
41
42
  },
42
43
  create(base) {
43
- return exports.QueryMinGasPriceRequest.fromPartial(base !== null && base !== void 0 ? base : {});
44
+ return exports.QueryMinGasPriceRequest.fromPartial(base ?? {});
44
45
  },
45
46
  fromPartial(_) {
46
47
  const message = createBaseQueryMinGasPriceRequest();
@@ -51,30 +52,31 @@ function createBaseQueryMinGasPriceResponse() {
51
52
  return { minGasPrice: undefined };
52
53
  }
53
54
  exports.QueryMinGasPriceResponse = {
54
- encode(message, writer = minimal_1.default.Writer.create()) {
55
+ encode(message, writer = new binary_1.BinaryWriter()) {
55
56
  if (message.minGasPrice !== undefined) {
56
57
  coin_1.DecCoin.encode(message.minGasPrice, writer.uint32(10).fork()).ldelim();
57
58
  }
58
59
  return writer;
59
60
  },
60
61
  decode(input, length) {
61
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
62
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
62
63
  let end = length === undefined ? reader.len : reader.pos + length;
63
64
  const message = createBaseQueryMinGasPriceResponse();
64
65
  while (reader.pos < end) {
65
66
  const tag = reader.uint32();
66
67
  switch (tag >>> 3) {
67
- case 1:
68
- if (tag != 10) {
68
+ case 1: {
69
+ if (tag !== 10) {
69
70
  break;
70
71
  }
71
72
  message.minGasPrice = coin_1.DecCoin.decode(reader, reader.uint32());
72
73
  continue;
74
+ }
73
75
  }
74
- if ((tag & 7) == 4 || tag == 0) {
76
+ if ((tag & 7) === 4 || tag === 0) {
75
77
  break;
76
78
  }
77
- reader.skipType(tag & 7);
79
+ reader.skip(tag & 7);
78
80
  }
79
81
  return message;
80
82
  },
@@ -87,14 +89,13 @@ exports.QueryMinGasPriceResponse = {
87
89
  },
88
90
  toJSON(message) {
89
91
  const obj = {};
90
- message.minGasPrice !== undefined &&
91
- (obj.minGasPrice = message.minGasPrice
92
- ? coin_1.DecCoin.toJSON(message.minGasPrice)
93
- : undefined);
92
+ if (message.minGasPrice !== undefined) {
93
+ obj.minGasPrice = coin_1.DecCoin.toJSON(message.minGasPrice);
94
+ }
94
95
  return obj;
95
96
  },
96
97
  create(base) {
97
- return exports.QueryMinGasPriceResponse.fromPartial(base !== null && base !== void 0 ? base : {});
98
+ return exports.QueryMinGasPriceResponse.fromPartial(base ?? {});
98
99
  },
99
100
  fromPartial(object) {
100
101
  const message = createBaseQueryMinGasPriceResponse();
@@ -105,25 +106,172 @@ exports.QueryMinGasPriceResponse = {
105
106
  return message;
106
107
  },
107
108
  };
109
+ function createBaseQueryRecommendedGasPriceRequest() {
110
+ return { afterBlocks: 0 };
111
+ }
112
+ exports.QueryRecommendedGasPriceRequest = {
113
+ encode(message, writer = new binary_1.BinaryWriter()) {
114
+ if (message.afterBlocks !== 0) {
115
+ writer.uint32(8).uint32(message.afterBlocks);
116
+ }
117
+ return writer;
118
+ },
119
+ decode(input, length) {
120
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
121
+ let end = length === undefined ? reader.len : reader.pos + length;
122
+ const message = createBaseQueryRecommendedGasPriceRequest();
123
+ while (reader.pos < end) {
124
+ const tag = reader.uint32();
125
+ switch (tag >>> 3) {
126
+ case 1: {
127
+ if (tag !== 8) {
128
+ break;
129
+ }
130
+ message.afterBlocks = reader.uint32();
131
+ continue;
132
+ }
133
+ }
134
+ if ((tag & 7) === 4 || tag === 0) {
135
+ break;
136
+ }
137
+ reader.skip(tag & 7);
138
+ }
139
+ return message;
140
+ },
141
+ fromJSON(object) {
142
+ return {
143
+ afterBlocks: isSet(object.afterBlocks)
144
+ ? globalThis.Number(object.afterBlocks)
145
+ : 0,
146
+ };
147
+ },
148
+ toJSON(message) {
149
+ const obj = {};
150
+ if (message.afterBlocks !== 0) {
151
+ obj.afterBlocks = Math.round(message.afterBlocks);
152
+ }
153
+ return obj;
154
+ },
155
+ create(base) {
156
+ return exports.QueryRecommendedGasPriceRequest.fromPartial(base ?? {});
157
+ },
158
+ fromPartial(object) {
159
+ const message = createBaseQueryRecommendedGasPriceRequest();
160
+ message.afterBlocks = object.afterBlocks ?? 0;
161
+ return message;
162
+ },
163
+ };
164
+ function createBaseQueryRecommendedGasPriceResponse() {
165
+ return { low: undefined, med: undefined, high: undefined };
166
+ }
167
+ exports.QueryRecommendedGasPriceResponse = {
168
+ encode(message, writer = new binary_1.BinaryWriter()) {
169
+ if (message.low !== undefined) {
170
+ coin_1.DecCoin.encode(message.low, writer.uint32(10).fork()).ldelim();
171
+ }
172
+ if (message.med !== undefined) {
173
+ coin_1.DecCoin.encode(message.med, writer.uint32(18).fork()).ldelim();
174
+ }
175
+ if (message.high !== undefined) {
176
+ coin_1.DecCoin.encode(message.high, writer.uint32(26).fork()).ldelim();
177
+ }
178
+ return writer;
179
+ },
180
+ decode(input, length) {
181
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
182
+ let end = length === undefined ? reader.len : reader.pos + length;
183
+ const message = createBaseQueryRecommendedGasPriceResponse();
184
+ while (reader.pos < end) {
185
+ const tag = reader.uint32();
186
+ switch (tag >>> 3) {
187
+ case 1: {
188
+ if (tag !== 10) {
189
+ break;
190
+ }
191
+ message.low = coin_1.DecCoin.decode(reader, reader.uint32());
192
+ continue;
193
+ }
194
+ case 2: {
195
+ if (tag !== 18) {
196
+ break;
197
+ }
198
+ message.med = coin_1.DecCoin.decode(reader, reader.uint32());
199
+ continue;
200
+ }
201
+ case 3: {
202
+ if (tag !== 26) {
203
+ break;
204
+ }
205
+ message.high = coin_1.DecCoin.decode(reader, reader.uint32());
206
+ continue;
207
+ }
208
+ }
209
+ if ((tag & 7) === 4 || tag === 0) {
210
+ break;
211
+ }
212
+ reader.skip(tag & 7);
213
+ }
214
+ return message;
215
+ },
216
+ fromJSON(object) {
217
+ return {
218
+ low: isSet(object.low) ? coin_1.DecCoin.fromJSON(object.low) : undefined,
219
+ med: isSet(object.med) ? coin_1.DecCoin.fromJSON(object.med) : undefined,
220
+ high: isSet(object.high) ? coin_1.DecCoin.fromJSON(object.high) : undefined,
221
+ };
222
+ },
223
+ toJSON(message) {
224
+ const obj = {};
225
+ if (message.low !== undefined) {
226
+ obj.low = coin_1.DecCoin.toJSON(message.low);
227
+ }
228
+ if (message.med !== undefined) {
229
+ obj.med = coin_1.DecCoin.toJSON(message.med);
230
+ }
231
+ if (message.high !== undefined) {
232
+ obj.high = coin_1.DecCoin.toJSON(message.high);
233
+ }
234
+ return obj;
235
+ },
236
+ create(base) {
237
+ return exports.QueryRecommendedGasPriceResponse.fromPartial(base ?? {});
238
+ },
239
+ fromPartial(object) {
240
+ const message = createBaseQueryRecommendedGasPriceResponse();
241
+ message.low =
242
+ object.low !== undefined && object.low !== null
243
+ ? coin_1.DecCoin.fromPartial(object.low)
244
+ : undefined;
245
+ message.med =
246
+ object.med !== undefined && object.med !== null
247
+ ? coin_1.DecCoin.fromPartial(object.med)
248
+ : undefined;
249
+ message.high =
250
+ object.high !== undefined && object.high !== null
251
+ ? coin_1.DecCoin.fromPartial(object.high)
252
+ : undefined;
253
+ return message;
254
+ },
255
+ };
108
256
  function createBaseQueryParamsRequest() {
109
257
  return {};
110
258
  }
111
259
  exports.QueryParamsRequest = {
112
- encode(_, writer = minimal_1.default.Writer.create()) {
260
+ encode(_, writer = new binary_1.BinaryWriter()) {
113
261
  return writer;
114
262
  },
115
263
  decode(input, length) {
116
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
264
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
117
265
  let end = length === undefined ? reader.len : reader.pos + length;
118
266
  const message = createBaseQueryParamsRequest();
119
267
  while (reader.pos < end) {
120
268
  const tag = reader.uint32();
121
269
  switch (tag >>> 3) {
122
270
  }
123
- if ((tag & 7) == 4 || tag == 0) {
271
+ if ((tag & 7) === 4 || tag === 0) {
124
272
  break;
125
273
  }
126
- reader.skipType(tag & 7);
274
+ reader.skip(tag & 7);
127
275
  }
128
276
  return message;
129
277
  },
@@ -135,7 +283,7 @@ exports.QueryParamsRequest = {
135
283
  return obj;
136
284
  },
137
285
  create(base) {
138
- return exports.QueryParamsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
286
+ return exports.QueryParamsRequest.fromPartial(base ?? {});
139
287
  },
140
288
  fromPartial(_) {
141
289
  const message = createBaseQueryParamsRequest();
@@ -146,30 +294,31 @@ function createBaseQueryParamsResponse() {
146
294
  return { params: undefined };
147
295
  }
148
296
  exports.QueryParamsResponse = {
149
- encode(message, writer = minimal_1.default.Writer.create()) {
297
+ encode(message, writer = new binary_1.BinaryWriter()) {
150
298
  if (message.params !== undefined) {
151
299
  params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
152
300
  }
153
301
  return writer;
154
302
  },
155
303
  decode(input, length) {
156
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
304
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
157
305
  let end = length === undefined ? reader.len : reader.pos + length;
158
306
  const message = createBaseQueryParamsResponse();
159
307
  while (reader.pos < end) {
160
308
  const tag = reader.uint32();
161
309
  switch (tag >>> 3) {
162
- case 1:
163
- if (tag != 10) {
310
+ case 1: {
311
+ if (tag !== 10) {
164
312
  break;
165
313
  }
166
314
  message.params = params_1.Params.decode(reader, reader.uint32());
167
315
  continue;
316
+ }
168
317
  }
169
- if ((tag & 7) == 4 || tag == 0) {
318
+ if ((tag & 7) === 4 || tag === 0) {
170
319
  break;
171
320
  }
172
- reader.skipType(tag & 7);
321
+ reader.skip(tag & 7);
173
322
  }
174
323
  return message;
175
324
  },
@@ -180,12 +329,13 @@ exports.QueryParamsResponse = {
180
329
  },
181
330
  toJSON(message) {
182
331
  const obj = {};
183
- message.params !== undefined &&
184
- (obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
332
+ if (message.params !== undefined) {
333
+ obj.params = params_1.Params.toJSON(message.params);
334
+ }
185
335
  return obj;
186
336
  },
187
337
  create(base) {
188
- return exports.QueryParamsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
338
+ return exports.QueryParamsResponse.fromPartial(base ?? {});
189
339
  },
190
340
  fromPartial(object) {
191
341
  const message = createBaseQueryParamsResponse();
@@ -196,29 +346,32 @@ exports.QueryParamsResponse = {
196
346
  return message;
197
347
  },
198
348
  };
349
+ exports.QueryServiceName = "coreum.feemodel.v1.Query";
199
350
  class QueryClientImpl {
200
351
  constructor(rpc, opts) {
201
- this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || "coreum.feemodel.v1.Query";
352
+ this.service = opts?.service || exports.QueryServiceName;
202
353
  this.rpc = rpc;
203
354
  this.MinGasPrice = this.MinGasPrice.bind(this);
355
+ this.RecommendedGasPrice = this.RecommendedGasPrice.bind(this);
204
356
  this.Params = this.Params.bind(this);
205
357
  }
206
358
  MinGasPrice(request) {
207
359
  const data = exports.QueryMinGasPriceRequest.encode(request).finish();
208
360
  const promise = this.rpc.request(this.service, "MinGasPrice", data);
209
- return promise.then((data) => exports.QueryMinGasPriceResponse.decode(minimal_1.default.Reader.create(data)));
361
+ return promise.then((data) => exports.QueryMinGasPriceResponse.decode(new binary_1.BinaryReader(data)));
362
+ }
363
+ RecommendedGasPrice(request) {
364
+ const data = exports.QueryRecommendedGasPriceRequest.encode(request).finish();
365
+ const promise = this.rpc.request(this.service, "RecommendedGasPrice", data);
366
+ return promise.then((data) => exports.QueryRecommendedGasPriceResponse.decode(new binary_1.BinaryReader(data)));
210
367
  }
211
368
  Params(request) {
212
369
  const data = exports.QueryParamsRequest.encode(request).finish();
213
370
  const promise = this.rpc.request(this.service, "Params", data);
214
- return promise.then((data) => exports.QueryParamsResponse.decode(minimal_1.default.Reader.create(data)));
371
+ return promise.then((data) => exports.QueryParamsResponse.decode(new binary_1.BinaryReader(data)));
215
372
  }
216
373
  }
217
374
  exports.QueryClientImpl = QueryClientImpl;
218
- if (minimal_1.default.util.Long !== long_1.default) {
219
- minimal_1.default.util.Long = long_1.default;
220
- minimal_1.default.configure();
221
- }
222
375
  function isSet(value) {
223
376
  return value !== null && value !== undefined;
224
377
  }
@@ -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,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NFT = exports.FT = exports.coreumRegistry = exports.ClassFeature = exports.Feature = void 0;
3
+ exports.DEX = exports.NFT = exports.FT = exports.coreumRegistry = exports.ClassFeature = exports.Feature = void 0;
4
4
  const asset_1 = require("./asset");
5
5
  const nft_1 = require("./nft");
6
+ const dex_1 = require("./dex");
6
7
  const tx_1 = require("./nft/v1beta1/tx");
7
8
  const tx_2 = require("./asset/nft/v1/tx");
8
9
  const tx_3 = require("./asset/ft/v1/tx");
10
+ const tx_4 = require("./dex/v1/tx");
9
11
  var token_1 = require("./asset/ft/v1/token");
10
12
  Object.defineProperty(exports, "Feature", { enumerable: true, get: function () { return token_1.Feature; } });
11
13
  var nft_2 = require("./asset/nft/v1/nft");
@@ -17,6 +19,7 @@ exports.coreumRegistry = [
17
19
  ...asset_1.assetFtRegistry,
18
20
  ...asset_1.assetNftRegistry,
19
21
  ...nft_1.nftBetaRegistry,
22
+ ...dex_1.dexRegistry,
20
23
  ];
21
24
  /**
22
25
  * Transaction Module for the Fungible Tokens module. (assetft)
@@ -258,3 +261,57 @@ var NFT;
258
261
  };
259
262
  };
260
263
  })(NFT || (exports.NFT = NFT = {}));
264
+ /**
265
+ * Transaction Module for the DEX module
266
+ */
267
+ var DEX;
268
+ (function (DEX) {
269
+ /** MsgPlaceOrder message creator
270
+ * Places a new order on the native DEX
271
+ *
272
+ * @param object Represents the properties available for this MsgPlaceOrder message.
273
+ * @returns A Msg object with the typeUrl and value object for the proper message
274
+ */
275
+ DEX.PlaceOrder = function (object) {
276
+ return {
277
+ typeUrl: "/coreum.dex.v1.MsgPlaceOrder",
278
+ value: tx_4.MsgPlaceOrder.fromPartial(object),
279
+ };
280
+ };
281
+ /** MsgCancelOrder message creator
282
+ * Cancels an order by ID
283
+ *
284
+ * @param object Represents the properties available for this MsgCancelOrder message.
285
+ * @returns A Msg object with the typeUrl and value object for the proper message
286
+ */
287
+ DEX.CancelOrder = function (object) {
288
+ return {
289
+ typeUrl: "/coreum.dex.v1.MsgCancelOrder",
290
+ value: tx_4.MsgCancelOrder.fromPartial(object),
291
+ };
292
+ };
293
+ /** MsgUpdateParams message creator
294
+ * Updates module parameters
295
+ *
296
+ * @param object Represents the properties available for this MsgUpdateParams message.
297
+ * @returns A Msg object with the typeUrl and value object for the proper message
298
+ */
299
+ DEX.UpdateParams = function (object) {
300
+ return {
301
+ typeUrl: "/coreum.dex.v1.MsgUpdateParams",
302
+ value: tx_4.MsgUpdateParams.fromPartial(object),
303
+ };
304
+ };
305
+ /** MsgCancelOrdersByDenom message creator
306
+ * Cancels all existing orders by denom
307
+ *
308
+ * @param object Represents the properties available for this MsgCancelOrdersByDenom message.
309
+ * @returns A Msg object with the typeUrl and value object for the proper message
310
+ */
311
+ DEX.CancelOrdersByDenom = function (object) {
312
+ return {
313
+ typeUrl: "/coreum.dex.v1.MsgCancelOrdersByDenom",
314
+ value: tx_4.MsgCancelOrdersByDenom.fromPartial(object),
315
+ };
316
+ };
317
+ })(DEX || (exports.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 {};