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
@@ -50,7 +50,7 @@ exports.Http = {
50
50
  },
51
51
  fromJSON(object) {
52
52
  return {
53
- rules: Array.isArray(object === null || object === void 0 ? void 0 : object.rules) ? object.rules.map((e) => exports.HttpRule.fromJSON(e)) : [],
53
+ rules: Array.isArray(object?.rules) ? object.rules.map((e) => exports.HttpRule.fromJSON(e)) : [],
54
54
  fullyDecodeReservedExpansion: isSet(object.fullyDecodeReservedExpansion)
55
55
  ? Boolean(object.fullyDecodeReservedExpansion)
56
56
  : false,
@@ -69,13 +69,12 @@ exports.Http = {
69
69
  return obj;
70
70
  },
71
71
  create(base) {
72
- return exports.Http.fromPartial(base !== null && base !== void 0 ? base : {});
72
+ return exports.Http.fromPartial(base ?? {});
73
73
  },
74
74
  fromPartial(object) {
75
- var _a, _b;
76
75
  const message = createBaseHttp();
77
- message.rules = ((_a = object.rules) === null || _a === void 0 ? void 0 : _a.map((e) => exports.HttpRule.fromPartial(e))) || [];
78
- message.fullyDecodeReservedExpansion = (_b = object.fullyDecodeReservedExpansion) !== null && _b !== void 0 ? _b : false;
76
+ message.rules = object.rules?.map((e) => exports.HttpRule.fromPartial(e)) || [];
77
+ message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;
79
78
  return message;
80
79
  },
81
80
  };
@@ -213,7 +212,7 @@ exports.HttpRule = {
213
212
  custom: isSet(object.custom) ? exports.CustomHttpPattern.fromJSON(object.custom) : undefined,
214
213
  body: isSet(object.body) ? String(object.body) : "",
215
214
  responseBody: isSet(object.responseBody) ? String(object.responseBody) : "",
216
- additionalBindings: Array.isArray(object === null || object === void 0 ? void 0 : object.additionalBindings)
215
+ additionalBindings: Array.isArray(object?.additionalBindings)
217
216
  ? object.additionalBindings.map((e) => exports.HttpRule.fromJSON(e))
218
217
  : [],
219
218
  };
@@ -239,23 +238,22 @@ exports.HttpRule = {
239
238
  return obj;
240
239
  },
241
240
  create(base) {
242
- return exports.HttpRule.fromPartial(base !== null && base !== void 0 ? base : {});
241
+ return exports.HttpRule.fromPartial(base ?? {});
243
242
  },
244
243
  fromPartial(object) {
245
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
246
244
  const message = createBaseHttpRule();
247
- message.selector = (_a = object.selector) !== null && _a !== void 0 ? _a : "";
248
- message.get = (_b = object.get) !== null && _b !== void 0 ? _b : undefined;
249
- message.put = (_c = object.put) !== null && _c !== void 0 ? _c : undefined;
250
- message.post = (_d = object.post) !== null && _d !== void 0 ? _d : undefined;
251
- message.delete = (_e = object.delete) !== null && _e !== void 0 ? _e : undefined;
252
- message.patch = (_f = object.patch) !== null && _f !== void 0 ? _f : undefined;
245
+ message.selector = object.selector ?? "";
246
+ message.get = object.get ?? undefined;
247
+ message.put = object.put ?? undefined;
248
+ message.post = object.post ?? undefined;
249
+ message.delete = object.delete ?? undefined;
250
+ message.patch = object.patch ?? undefined;
253
251
  message.custom = (object.custom !== undefined && object.custom !== null)
254
252
  ? exports.CustomHttpPattern.fromPartial(object.custom)
255
253
  : undefined;
256
- message.body = (_g = object.body) !== null && _g !== void 0 ? _g : "";
257
- message.responseBody = (_h = object.responseBody) !== null && _h !== void 0 ? _h : "";
258
- message.additionalBindings = ((_j = object.additionalBindings) === null || _j === void 0 ? void 0 : _j.map((e) => exports.HttpRule.fromPartial(e))) || [];
254
+ message.body = object.body ?? "";
255
+ message.responseBody = object.responseBody ?? "";
256
+ message.additionalBindings = object.additionalBindings?.map((e) => exports.HttpRule.fromPartial(e)) || [];
259
257
  return message;
260
258
  },
261
259
  };
@@ -309,13 +307,12 @@ exports.CustomHttpPattern = {
309
307
  return obj;
310
308
  },
311
309
  create(base) {
312
- return exports.CustomHttpPattern.fromPartial(base !== null && base !== void 0 ? base : {});
310
+ return exports.CustomHttpPattern.fromPartial(base ?? {});
313
311
  },
314
312
  fromPartial(object) {
315
- var _a, _b;
316
313
  const message = createBaseCustomHttpPattern();
317
- message.kind = (_a = object.kind) !== null && _a !== void 0 ? _a : "";
318
- message.path = (_b = object.path) !== null && _b !== void 0 ? _b : "";
314
+ message.kind = object.kind ?? "";
315
+ message.path = object.path ?? "";
319
316
  return message;
320
317
  },
321
318
  };
@@ -120,8 +120,20 @@ export declare const Any: {
120
120
  decode(input: _m0.Reader | Uint8Array, length?: number): Any;
121
121
  fromJSON(object: any): Any;
122
122
  toJSON(message: Any): unknown;
123
- create<I extends Exact<DeepPartial<Any>, I>>(base?: I): Any;
124
- fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any;
123
+ create<I extends {
124
+ typeUrl?: string;
125
+ value?: Uint8Array;
126
+ } & {
127
+ typeUrl?: string;
128
+ value?: Uint8Array;
129
+ } & { [K in Exclude<keyof I, keyof Any>]: never; }>(base?: I): Any;
130
+ fromPartial<I_1 extends {
131
+ typeUrl?: string;
132
+ value?: Uint8Array;
133
+ } & {
134
+ typeUrl?: string;
135
+ value?: Uint8Array;
136
+ } & { [K_1 in Exclude<keyof I_1, keyof Any>]: never; }>(object: I_1): Any;
125
137
  };
126
138
  export declare function bytesFromBase64(b64: string): Uint8Array;
127
139
  export declare function base64FromBytes(arr: Uint8Array): string;
@@ -3,9 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Any = exports.protobufPackage = void 0;
7
- exports.bytesFromBase64 = bytesFromBase64;
8
- exports.base64FromBytes = base64FromBytes;
6
+ exports.base64FromBytes = exports.bytesFromBase64 = exports.Any = exports.protobufPackage = void 0;
9
7
  /* eslint-disable */
10
8
  const long_1 = __importDefault(require("long"));
11
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
@@ -66,13 +64,12 @@ exports.Any = {
66
64
  return obj;
67
65
  },
68
66
  create(base) {
69
- return exports.Any.fromPartial(base !== null && base !== void 0 ? base : {});
67
+ return exports.Any.fromPartial(base ?? {});
70
68
  },
71
69
  fromPartial(object) {
72
- var _a, _b;
73
70
  const message = createBaseAny();
74
- message.typeUrl = (_a = object.typeUrl) !== null && _a !== void 0 ? _a : "";
75
- message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
71
+ message.typeUrl = object.typeUrl ?? "";
72
+ message.value = object.value ?? new Uint8Array();
76
73
  return message;
77
74
  },
78
75
  };
@@ -104,6 +101,7 @@ function bytesFromBase64(b64) {
104
101
  return arr;
105
102
  }
106
103
  }
104
+ exports.bytesFromBase64 = bytesFromBase64;
107
105
  function base64FromBytes(arr) {
108
106
  if (tsProtoGlobalThis.Buffer) {
109
107
  return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
@@ -116,6 +114,7 @@ function base64FromBytes(arr) {
116
114
  return tsProtoGlobalThis.btoa(bin.join(""));
117
115
  }
118
116
  }
117
+ exports.base64FromBytes = base64FromBytes;
119
118
  if (minimal_1.default.util.Long !== long_1.default) {
120
119
  minimal_1.default.util.Long = long_1.default;
121
120
  minimal_1.default.configure();
@@ -82,8 +82,20 @@ export declare const Duration: {
82
82
  decode(input: _m0.Reader | Uint8Array, length?: number): Duration;
83
83
  fromJSON(object: any): Duration;
84
84
  toJSON(message: Duration): unknown;
85
- create<I extends Exact<DeepPartial<Duration>, I>>(base?: I): Duration;
86
- fromPartial<I extends Exact<DeepPartial<Duration>, I>>(object: I): Duration;
85
+ create<I extends {
86
+ seconds?: number;
87
+ nanos?: number;
88
+ } & {
89
+ seconds?: number;
90
+ nanos?: number;
91
+ } & { [K in Exclude<keyof I, keyof Duration>]: never; }>(base?: I): Duration;
92
+ fromPartial<I_1 extends {
93
+ seconds?: number;
94
+ nanos?: number;
95
+ } & {
96
+ seconds?: number;
97
+ nanos?: number;
98
+ } & { [K_1 in Exclude<keyof I_1, keyof Duration>]: never; }>(object: I_1): Duration;
87
99
  };
88
100
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
89
101
  export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
@@ -61,13 +61,12 @@ exports.Duration = {
61
61
  return obj;
62
62
  },
63
63
  create(base) {
64
- return exports.Duration.fromPartial(base !== null && base !== void 0 ? base : {});
64
+ return exports.Duration.fromPartial(base ?? {});
65
65
  },
66
66
  fromPartial(object) {
67
- var _a, _b;
68
67
  const message = createBaseDuration();
69
- message.seconds = (_a = object.seconds) !== null && _a !== void 0 ? _a : 0;
70
- message.nanos = (_b = object.nanos) !== null && _b !== void 0 ? _b : 0;
68
+ message.seconds = object.seconds ?? 0;
69
+ message.nanos = object.nanos ?? 0;
71
70
  return message;
72
71
  },
73
72
  };
@@ -111,8 +111,20 @@ export declare const Timestamp: {
111
111
  decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp;
112
112
  fromJSON(object: any): Timestamp;
113
113
  toJSON(message: Timestamp): unknown;
114
- create<I extends Exact<DeepPartial<Timestamp>, I>>(base?: I): Timestamp;
115
- fromPartial<I extends Exact<DeepPartial<Timestamp>, I>>(object: I): Timestamp;
114
+ create<I extends {
115
+ seconds?: number;
116
+ nanos?: number;
117
+ } & {
118
+ seconds?: number;
119
+ nanos?: number;
120
+ } & { [K in Exclude<keyof I, keyof Timestamp>]: never; }>(base?: I): Timestamp;
121
+ fromPartial<I_1 extends {
122
+ seconds?: number;
123
+ nanos?: number;
124
+ } & {
125
+ seconds?: number;
126
+ nanos?: number;
127
+ } & { [K_1 in Exclude<keyof I_1, keyof Timestamp>]: never; }>(object: I_1): Timestamp;
116
128
  };
117
129
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
118
130
  export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
@@ -61,13 +61,12 @@ exports.Timestamp = {
61
61
  return obj;
62
62
  },
63
63
  create(base) {
64
- return exports.Timestamp.fromPartial(base !== null && base !== void 0 ? base : {});
64
+ return exports.Timestamp.fromPartial(base ?? {});
65
65
  },
66
66
  fromPartial(object) {
67
- var _a, _b;
68
67
  const message = createBaseTimestamp();
69
- message.seconds = (_a = object.seconds) !== null && _a !== void 0 ? _a : 0;
70
- message.nanos = (_b = object.nanos) !== null && _b !== void 0 ? _b : 0;
68
+ message.seconds = object.seconds ?? 0;
69
+ message.nanos = object.nanos ?? 0;
71
70
  return message;
72
71
  },
73
72
  };
@@ -18,23 +18,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
18
18
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
20
  };
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
38
28
  Object.defineProperty(exports, "__esModule", { value: true });
39
29
  exports.Stargate = exports.Client = void 0;
40
30
  var index_1 = require("./client/index");
@@ -33,7 +33,7 @@ const connectCosmostation = async (config) => {
33
33
  exports.connectCosmostation = connectCosmostation;
34
34
  const getCosmosOfflineSigner = async (chain_id) => {
35
35
  try {
36
- return await (0, cosmos_client_1.getOfflineSigner)(chain_id);
36
+ return (await (0, cosmos_client_1.getOfflineSigner)(chain_id));
37
37
  }
38
38
  catch (e) {
39
39
  throw {