coreum-js 2.10.0 → 2.12.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 (239) hide show
  1. package/dist/main/client/index.d.ts +2 -1
  2. package/dist/main/coreum/asset/ft/v1/genesis.d.ts +1 -1
  3. package/dist/main/coreum/asset/ft/v1/genesis.js +25 -12
  4. package/dist/main/coreum/asset/ft/v1/params.d.ts +1 -1
  5. package/dist/main/coreum/asset/ft/v1/params.js +14 -6
  6. package/dist/main/coreum/asset/ft/v1/query.d.ts +2 -2
  7. package/dist/main/coreum/asset/ft/v1/query.js +116 -54
  8. package/dist/main/coreum/asset/ft/v1/tx.d.ts +1 -1
  9. package/dist/main/coreum/asset/ft/v1/tx.js +1 -1
  10. package/dist/main/coreum/asset/nft/v1/genesis.d.ts +2 -2
  11. package/dist/main/coreum/asset/nft/v1/params.d.ts +1 -1
  12. package/dist/main/coreum/asset/nft/v1/params.js +14 -6
  13. package/dist/main/coreum/asset/nft/v1/query.d.ts +3 -3
  14. package/dist/main/coreum/asset/nft/v1/query.js +49 -22
  15. package/dist/main/coreum/feemodel/v1/genesis.d.ts +1 -1
  16. package/dist/main/coreum/feemodel/v1/genesis.js +17 -10
  17. package/dist/main/coreum/feemodel/v1/query.d.ts +1 -1
  18. package/dist/main/coreum/feemodel/v1/query.js +22 -11
  19. package/dist/main/coreum/nft/v1beta1/query.d.ts +1 -1
  20. package/dist/main/coreum/nft/v1beta1/query.js +83 -39
  21. package/dist/main/cosmos/extensions/bank.d.ts +8 -8
  22. package/dist/main/cosmos/extensions/bank.js +2 -2
  23. package/dist/main/cosmos/extensions/distribution.d.ts +11 -11
  24. package/dist/main/cosmos/extensions/distribution.js +1 -1
  25. package/dist/main/cosmos/extensions/gov.d.ts +21 -21
  26. package/dist/main/cosmos/extensions/gov.js +1 -1
  27. package/dist/main/cosmos/index.d.ts +12 -21
  28. package/dist/main/cosmos/index.js +50 -42
  29. package/dist/main/types/msgs.d.ts +4 -4
  30. package/dist/main/wasm/v1/authz.d.ts +1 -1
  31. package/dist/main/wasm/v1/authz.js +1 -1
  32. package/dist/main/wasm/v1/proposal.d.ts +1 -1
  33. package/dist/main/wasm/v1/proposal.js +1 -1
  34. package/dist/main/wasm/v1/tx.d.ts +1 -1
  35. package/dist/main/wasm/v1/tx.js +1 -1
  36. package/dist/module/client/index.d.ts +2 -1
  37. package/dist/module/coreum/asset/ft/v1/genesis.d.ts +1 -1
  38. package/dist/module/coreum/asset/ft/v1/genesis.js +25 -12
  39. package/dist/module/coreum/asset/ft/v1/params.d.ts +1 -1
  40. package/dist/module/coreum/asset/ft/v1/params.js +14 -6
  41. package/dist/module/coreum/asset/ft/v1/query.d.ts +2 -2
  42. package/dist/module/coreum/asset/ft/v1/query.js +116 -54
  43. package/dist/module/coreum/asset/ft/v1/tx.d.ts +1 -1
  44. package/dist/module/coreum/asset/ft/v1/tx.js +1 -1
  45. package/dist/module/coreum/asset/nft/v1/genesis.d.ts +2 -2
  46. package/dist/module/coreum/asset/nft/v1/params.d.ts +1 -1
  47. package/dist/module/coreum/asset/nft/v1/params.js +14 -6
  48. package/dist/module/coreum/asset/nft/v1/query.d.ts +3 -3
  49. package/dist/module/coreum/asset/nft/v1/query.js +49 -22
  50. package/dist/module/coreum/feemodel/v1/genesis.d.ts +1 -1
  51. package/dist/module/coreum/feemodel/v1/genesis.js +17 -10
  52. package/dist/module/coreum/feemodel/v1/query.d.ts +1 -1
  53. package/dist/module/coreum/feemodel/v1/query.js +22 -11
  54. package/dist/module/coreum/nft/v1beta1/query.d.ts +1 -1
  55. package/dist/module/coreum/nft/v1beta1/query.js +83 -39
  56. package/dist/module/cosmos/extensions/bank.d.ts +8 -8
  57. package/dist/module/cosmos/extensions/bank.js +2 -2
  58. package/dist/module/cosmos/extensions/distribution.d.ts +11 -11
  59. package/dist/module/cosmos/extensions/distribution.js +1 -1
  60. package/dist/module/cosmos/extensions/gov.d.ts +21 -21
  61. package/dist/module/cosmos/extensions/gov.js +1 -1
  62. package/dist/module/cosmos/index.d.ts +12 -21
  63. package/dist/module/cosmos/index.js +29 -19
  64. package/dist/module/types/msgs.d.ts +4 -4
  65. package/dist/module/wasm/v1/authz.d.ts +1 -1
  66. package/dist/module/wasm/v1/authz.js +1 -1
  67. package/dist/module/wasm/v1/proposal.d.ts +1 -1
  68. package/dist/module/wasm/v1/proposal.js +1 -1
  69. package/dist/module/wasm/v1/tx.d.ts +1 -1
  70. package/dist/module/wasm/v1/tx.js +1 -1
  71. package/package.json +9 -9
  72. package/dist/main/cosmos/auth/v1beta1/auth.d.ts +0 -229
  73. package/dist/main/cosmos/auth/v1beta1/auth.js +0 -437
  74. package/dist/main/cosmos/authz/v1beta1/authz.d.ts +0 -167
  75. package/dist/main/cosmos/authz/v1beta1/authz.js +0 -319
  76. package/dist/main/cosmos/authz/v1beta1/event.d.ts +0 -80
  77. package/dist/main/cosmos/authz/v1beta1/event.js +0 -162
  78. package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +0 -121
  79. package/dist/main/cosmos/authz/v1beta1/genesis.js +0 -68
  80. package/dist/main/cosmos/authz/v1beta1/pagination.d.ts +0 -128
  81. package/dist/main/cosmos/authz/v1beta1/pagination.js +0 -227
  82. package/dist/main/cosmos/authz/v1beta1/query.d.ts +0 -616
  83. package/dist/main/cosmos/authz/v1beta1/query.js +0 -512
  84. package/dist/main/cosmos/authz/v1beta1/tx.d.ts +0 -264
  85. package/dist/main/cosmos/authz/v1beta1/tx.js +0 -435
  86. package/dist/main/cosmos/bank/v1beta1/authz.d.ts +0 -80
  87. package/dist/main/cosmos/bank/v1beta1/authz.js +0 -83
  88. package/dist/main/cosmos/bank/v1beta1/bank.d.ts +0 -440
  89. package/dist/main/cosmos/bank/v1beta1/bank.js +0 -556
  90. package/dist/main/cosmos/bank/v1beta1/genesis.d.ts +0 -473
  91. package/dist/main/cosmos/bank/v1beta1/genesis.js +0 -207
  92. package/dist/main/cosmos/bank/v1beta1/pagination.d.ts +0 -128
  93. package/dist/main/cosmos/bank/v1beta1/pagination.js +0 -227
  94. package/dist/main/cosmos/bank/v1beta1/query.d.ts +0 -1633
  95. package/dist/main/cosmos/bank/v1beta1/query.js +0 -1595
  96. package/dist/main/cosmos/bank/v1beta1/tx.d.ts +0 -514
  97. package/dist/main/cosmos/bank/v1beta1/tx.js +0 -498
  98. package/dist/main/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
  99. package/dist/main/cosmos/base/query/v1beta1/pagination.js +0 -241
  100. package/dist/main/cosmos/base/v1beta1/coin.d.ts +0 -114
  101. package/dist/main/cosmos/base/v1beta1/coin.js +0 -241
  102. package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
  103. package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.js +0 -172
  104. package/dist/main/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
  105. package/dist/main/cosmos/distribution/v1beta1/distribution.js +0 -887
  106. package/dist/main/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
  107. package/dist/main/cosmos/distribution/v1beta1/genesis.js +0 -784
  108. package/dist/main/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
  109. package/dist/main/cosmos/distribution/v1beta1/pagination.js +0 -227
  110. package/dist/main/cosmos/distribution/v1beta1/query.d.ts +0 -995
  111. package/dist/main/cosmos/distribution/v1beta1/query.js +0 -1335
  112. package/dist/main/cosmos/distribution/v1beta1/tx.d.ts +0 -593
  113. package/dist/main/cosmos/distribution/v1beta1/tx.js +0 -824
  114. package/dist/main/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
  115. package/dist/main/cosmos/feegrant/v1beta1/feegrant.js +0 -412
  116. package/dist/main/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
  117. package/dist/main/cosmos/feegrant/v1beta1/genesis.js +0 -66
  118. package/dist/main/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
  119. package/dist/main/cosmos/feegrant/v1beta1/pagination.js +0 -227
  120. package/dist/main/cosmos/feegrant/v1beta1/query.d.ts +0 -512
  121. package/dist/main/cosmos/feegrant/v1beta1/query.js +0 -460
  122. package/dist/main/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
  123. package/dist/main/cosmos/feegrant/v1beta1/tx.js +0 -252
  124. package/dist/main/cosmos/gov/v1beta1/genesis.d.ts +0 -639
  125. package/dist/main/cosmos/gov/v1beta1/genesis.js +0 -194
  126. package/dist/main/cosmos/gov/v1beta1/gov.d.ts +0 -620
  127. package/dist/main/cosmos/gov/v1beta1/gov.js +0 -1037
  128. package/dist/main/cosmos/gov/v1beta1/pagination.d.ts +0 -128
  129. package/dist/main/cosmos/gov/v1beta1/pagination.js +0 -227
  130. package/dist/main/cosmos/gov/v1beta1/query.d.ts +0 -1511
  131. package/dist/main/cosmos/gov/v1beta1/query.js +0 -1186
  132. package/dist/main/cosmos/gov/v1beta1/tx.d.ts +0 -350
  133. package/dist/main/cosmos/gov/v1beta1/tx.js +0 -566
  134. package/dist/main/cosmos/msg/v1/msg.d.ts +0 -1
  135. package/dist/main/cosmos/msg/v1/msg.js +0 -5
  136. package/dist/main/cosmos/staking/v1beta1/authz.d.ts +0 -145
  137. package/dist/main/cosmos/staking/v1beta1/authz.js +0 -224
  138. package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +0 -899
  139. package/dist/main/cosmos/staking/v1beta1/genesis.js +0 -305
  140. package/dist/main/cosmos/staking/v1beta1/pagination.d.ts +0 -128
  141. package/dist/main/cosmos/staking/v1beta1/pagination.js +0 -227
  142. package/dist/main/cosmos/staking/v1beta1/query.d.ts +0 -4165
  143. package/dist/main/cosmos/staking/v1beta1/query.js +0 -2019
  144. package/dist/main/cosmos/staking/v1beta1/staking.d.ts +0 -2059
  145. package/dist/main/cosmos/staking/v1beta1/staking.js +0 -2127
  146. package/dist/main/cosmos/staking/v1beta1/tx.d.ts +0 -748
  147. package/dist/main/cosmos/staking/v1beta1/tx.js +0 -1141
  148. package/dist/main/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
  149. package/dist/main/cosmos/tx/signing/v1beta1/signing.js +0 -546
  150. package/dist/main/cosmos/tx/v1beta1/tx.d.ts +0 -3468
  151. package/dist/main/cosmos/tx/v1beta1/tx.js +0 -1276
  152. package/dist/main/cosmos/vesting/v1beta1/tx.d.ts +0 -350
  153. package/dist/main/cosmos/vesting/v1beta1/tx.js +0 -454
  154. package/dist/main/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
  155. package/dist/main/cosmos/vesting/v1beta1/vesting.js +0 -498
  156. package/dist/module/cosmos/auth/v1beta1/auth.d.ts +0 -229
  157. package/dist/module/cosmos/auth/v1beta1/auth.js +0 -427
  158. package/dist/module/cosmos/authz/v1beta1/authz.d.ts +0 -167
  159. package/dist/module/cosmos/authz/v1beta1/authz.js +0 -309
  160. package/dist/module/cosmos/authz/v1beta1/event.d.ts +0 -80
  161. package/dist/module/cosmos/authz/v1beta1/event.js +0 -154
  162. package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +0 -121
  163. package/dist/module/cosmos/authz/v1beta1/genesis.js +0 -61
  164. package/dist/module/cosmos/authz/v1beta1/pagination.d.ts +0 -128
  165. package/dist/module/cosmos/authz/v1beta1/pagination.js +0 -219
  166. package/dist/module/cosmos/authz/v1beta1/query.d.ts +0 -616
  167. package/dist/module/cosmos/authz/v1beta1/query.js +0 -501
  168. package/dist/module/cosmos/authz/v1beta1/tx.d.ts +0 -264
  169. package/dist/module/cosmos/authz/v1beta1/tx.js +0 -426
  170. package/dist/module/cosmos/bank/v1beta1/authz.d.ts +0 -80
  171. package/dist/module/cosmos/bank/v1beta1/authz.js +0 -76
  172. package/dist/module/cosmos/bank/v1beta1/bank.d.ts +0 -440
  173. package/dist/module/cosmos/bank/v1beta1/bank.js +0 -543
  174. package/dist/module/cosmos/bank/v1beta1/genesis.d.ts +0 -473
  175. package/dist/module/cosmos/bank/v1beta1/genesis.js +0 -199
  176. package/dist/module/cosmos/bank/v1beta1/pagination.d.ts +0 -128
  177. package/dist/module/cosmos/bank/v1beta1/pagination.js +0 -219
  178. package/dist/module/cosmos/bank/v1beta1/query.d.ts +0 -1633
  179. package/dist/module/cosmos/bank/v1beta1/query.js +0 -1575
  180. package/dist/module/cosmos/bank/v1beta1/tx.d.ts +0 -514
  181. package/dist/module/cosmos/bank/v1beta1/tx.js +0 -489
  182. package/dist/module/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
  183. package/dist/module/cosmos/base/query/v1beta1/pagination.js +0 -233
  184. package/dist/module/cosmos/base/v1beta1/coin.d.ts +0 -114
  185. package/dist/module/cosmos/base/v1beta1/coin.js +0 -231
  186. package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
  187. package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.js +0 -164
  188. package/dist/module/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
  189. package/dist/module/cosmos/distribution/v1beta1/distribution.js +0 -869
  190. package/dist/module/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
  191. package/dist/module/cosmos/distribution/v1beta1/genesis.js +0 -770
  192. package/dist/module/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
  193. package/dist/module/cosmos/distribution/v1beta1/pagination.js +0 -219
  194. package/dist/module/cosmos/distribution/v1beta1/query.d.ts +0 -995
  195. package/dist/module/cosmos/distribution/v1beta1/query.js +0 -1315
  196. package/dist/module/cosmos/distribution/v1beta1/tx.d.ts +0 -593
  197. package/dist/module/cosmos/distribution/v1beta1/tx.js +0 -810
  198. package/dist/module/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
  199. package/dist/module/cosmos/feegrant/v1beta1/feegrant.js +0 -402
  200. package/dist/module/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
  201. package/dist/module/cosmos/feegrant/v1beta1/genesis.js +0 -59
  202. package/dist/module/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
  203. package/dist/module/cosmos/feegrant/v1beta1/pagination.js +0 -219
  204. package/dist/module/cosmos/feegrant/v1beta1/query.d.ts +0 -512
  205. package/dist/module/cosmos/feegrant/v1beta1/query.js +0 -450
  206. package/dist/module/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
  207. package/dist/module/cosmos/feegrant/v1beta1/tx.js +0 -245
  208. package/dist/module/cosmos/gov/v1beta1/genesis.d.ts +0 -639
  209. package/dist/module/cosmos/gov/v1beta1/genesis.js +0 -187
  210. package/dist/module/cosmos/gov/v1beta1/gov.d.ts +0 -620
  211. package/dist/module/cosmos/gov/v1beta1/gov.js +0 -1019
  212. package/dist/module/cosmos/gov/v1beta1/pagination.d.ts +0 -128
  213. package/dist/module/cosmos/gov/v1beta1/pagination.js +0 -219
  214. package/dist/module/cosmos/gov/v1beta1/query.d.ts +0 -1511
  215. package/dist/module/cosmos/gov/v1beta1/query.js +0 -1170
  216. package/dist/module/cosmos/gov/v1beta1/tx.d.ts +0 -350
  217. package/dist/module/cosmos/gov/v1beta1/tx.js +0 -556
  218. package/dist/module/cosmos/msg/v1/msg.d.ts +0 -1
  219. package/dist/module/cosmos/msg/v1/msg.js +0 -2
  220. package/dist/module/cosmos/staking/v1beta1/authz.d.ts +0 -145
  221. package/dist/module/cosmos/staking/v1beta1/authz.js +0 -214
  222. package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +0 -899
  223. package/dist/module/cosmos/staking/v1beta1/genesis.js +0 -297
  224. package/dist/module/cosmos/staking/v1beta1/pagination.d.ts +0 -128
  225. package/dist/module/cosmos/staking/v1beta1/pagination.js +0 -219
  226. package/dist/module/cosmos/staking/v1beta1/query.d.ts +0 -4165
  227. package/dist/module/cosmos/staking/v1beta1/query.js +0 -1995
  228. package/dist/module/cosmos/staking/v1beta1/staking.d.ts +0 -2059
  229. package/dist/module/cosmos/staking/v1beta1/staking.js +0 -2097
  230. package/dist/module/cosmos/staking/v1beta1/tx.d.ts +0 -748
  231. package/dist/module/cosmos/staking/v1beta1/tx.js +0 -1127
  232. package/dist/module/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
  233. package/dist/module/cosmos/tx/signing/v1beta1/signing.js +0 -534
  234. package/dist/module/cosmos/tx/v1beta1/tx.d.ts +0 -3468
  235. package/dist/module/cosmos/tx/v1beta1/tx.js +0 -1258
  236. package/dist/module/cosmos/vesting/v1beta1/tx.d.ts +0 -350
  237. package/dist/module/cosmos/vesting/v1beta1/tx.js +0 -446
  238. package/dist/module/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
  239. package/dist/module/cosmos/vesting/v1beta1/vesting.js +0 -488
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Coin } from "../../../../cosmos/base/v1beta1/coin";
3
+ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
4
4
  export declare const protobufPackage = "coreum.asset.ft.v1";
5
5
  /** Params store gov manageable parameters. */
6
6
  export interface Params {
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
- import { Coin } from "../../../../cosmos/base/v1beta1/coin";
4
+ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
5
5
  export const protobufPackage = "coreum.asset.ft.v1";
6
6
  function createBaseParams() {
7
7
  return { issueFee: undefined };
@@ -35,11 +35,18 @@ export const Params = {
35
35
  return message;
36
36
  },
37
37
  fromJSON(object) {
38
- return { issueFee: isSet(object.issueFee) ? Coin.fromJSON(object.issueFee) : undefined };
38
+ return {
39
+ issueFee: isSet(object.issueFee)
40
+ ? Coin.fromJSON(object.issueFee)
41
+ : undefined,
42
+ };
39
43
  },
40
44
  toJSON(message) {
41
45
  const obj = {};
42
- message.issueFee !== undefined && (obj.issueFee = message.issueFee ? Coin.toJSON(message.issueFee) : undefined);
46
+ message.issueFee !== undefined &&
47
+ (obj.issueFee = message.issueFee
48
+ ? Coin.toJSON(message.issueFee)
49
+ : undefined);
43
50
  return obj;
44
51
  },
45
52
  create(base) {
@@ -47,9 +54,10 @@ export const Params = {
47
54
  },
48
55
  fromPartial(object) {
49
56
  const message = createBaseParams();
50
- message.issueFee = (object.issueFee !== undefined && object.issueFee !== null)
51
- ? Coin.fromPartial(object.issueFee)
52
- : undefined;
57
+ message.issueFee =
58
+ object.issueFee !== undefined && object.issueFee !== null
59
+ ? Coin.fromPartial(object.issueFee)
60
+ : undefined;
53
61
  return message;
54
62
  },
55
63
  };
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
4
- import { Coin } from "../../../../cosmos/base/v1beta1/coin";
3
+ import { PageRequest, PageResponse } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
4
+ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
5
5
  import { Params } from "./params";
6
6
  import { Token } from "./token";
7
7
  export declare const protobufPackage = "coreum.asset.ft.v1";
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable */
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
- import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
5
- import { Coin } from "../../../../cosmos/base/v1beta1/coin";
4
+ import { PageRequest, PageResponse, } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
5
+ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
6
6
  import { Params } from "./params";
7
7
  import { Token } from "./token";
8
8
  export const protobufPackage = "coreum.asset.ft.v1";
@@ -75,11 +75,14 @@ export const QueryParamsResponse = {
75
75
  return message;
76
76
  },
77
77
  fromJSON(object) {
78
- return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined };
78
+ return {
79
+ params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
80
+ };
79
81
  },
80
82
  toJSON(message) {
81
83
  const obj = {};
82
- message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
84
+ message.params !== undefined &&
85
+ (obj.params = message.params ? Params.toJSON(message.params) : undefined);
83
86
  return obj;
84
87
  },
85
88
  create(base) {
@@ -87,9 +90,10 @@ export const QueryParamsResponse = {
87
90
  },
88
91
  fromPartial(object) {
89
92
  const message = createBaseQueryParamsResponse();
90
- message.params = (object.params !== undefined && object.params !== null)
91
- ? Params.fromPartial(object.params)
92
- : undefined;
93
+ message.params =
94
+ object.params !== undefined && object.params !== null
95
+ ? Params.fromPartial(object.params)
96
+ : undefined;
93
97
  return message;
94
98
  },
95
99
  };
@@ -173,11 +177,14 @@ export const QueryTokenResponse = {
173
177
  return message;
174
178
  },
175
179
  fromJSON(object) {
176
- return { token: isSet(object.token) ? Token.fromJSON(object.token) : undefined };
180
+ return {
181
+ token: isSet(object.token) ? Token.fromJSON(object.token) : undefined,
182
+ };
177
183
  },
178
184
  toJSON(message) {
179
185
  const obj = {};
180
- message.token !== undefined && (obj.token = message.token ? Token.toJSON(message.token) : undefined);
186
+ message.token !== undefined &&
187
+ (obj.token = message.token ? Token.toJSON(message.token) : undefined);
181
188
  return obj;
182
189
  },
183
190
  create(base) {
@@ -185,7 +192,10 @@ export const QueryTokenResponse = {
185
192
  },
186
193
  fromPartial(object) {
187
194
  const message = createBaseQueryTokenResponse();
188
- message.token = (object.token !== undefined && object.token !== null) ? Token.fromPartial(object.token) : undefined;
195
+ message.token =
196
+ object.token !== undefined && object.token !== null
197
+ ? Token.fromPartial(object.token)
198
+ : undefined;
189
199
  return message;
190
200
  },
191
201
  };
@@ -231,14 +241,18 @@ export const QueryTokensRequest = {
231
241
  },
232
242
  fromJSON(object) {
233
243
  return {
234
- pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
244
+ pagination: isSet(object.pagination)
245
+ ? PageRequest.fromJSON(object.pagination)
246
+ : undefined,
235
247
  issuer: isSet(object.issuer) ? String(object.issuer) : "",
236
248
  };
237
249
  },
238
250
  toJSON(message) {
239
251
  const obj = {};
240
252
  message.pagination !== undefined &&
241
- (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
253
+ (obj.pagination = message.pagination
254
+ ? PageRequest.toJSON(message.pagination)
255
+ : undefined);
242
256
  message.issuer !== undefined && (obj.issuer = message.issuer);
243
257
  return obj;
244
258
  },
@@ -247,9 +261,10 @@ export const QueryTokensRequest = {
247
261
  },
248
262
  fromPartial(object) {
249
263
  const message = createBaseQueryTokensRequest();
250
- message.pagination = (object.pagination !== undefined && object.pagination !== null)
251
- ? PageRequest.fromPartial(object.pagination)
252
- : undefined;
264
+ message.pagination =
265
+ object.pagination !== undefined && object.pagination !== null
266
+ ? PageRequest.fromPartial(object.pagination)
267
+ : undefined;
253
268
  message.issuer = object.issuer ?? "";
254
269
  return message;
255
270
  },
@@ -296,16 +311,22 @@ export const QueryTokensResponse = {
296
311
  },
297
312
  fromJSON(object) {
298
313
  return {
299
- pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
300
- tokens: Array.isArray(object?.tokens) ? object.tokens.map((e) => Token.fromJSON(e)) : [],
314
+ pagination: isSet(object.pagination)
315
+ ? PageResponse.fromJSON(object.pagination)
316
+ : undefined,
317
+ tokens: Array.isArray(object?.tokens)
318
+ ? object.tokens.map((e) => Token.fromJSON(e))
319
+ : [],
301
320
  };
302
321
  },
303
322
  toJSON(message) {
304
323
  const obj = {};
305
324
  message.pagination !== undefined &&
306
- (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
325
+ (obj.pagination = message.pagination
326
+ ? PageResponse.toJSON(message.pagination)
327
+ : undefined);
307
328
  if (message.tokens) {
308
- obj.tokens = message.tokens.map((e) => e ? Token.toJSON(e) : undefined);
329
+ obj.tokens = message.tokens.map((e) => (e ? Token.toJSON(e) : undefined));
309
330
  }
310
331
  else {
311
332
  obj.tokens = [];
@@ -317,9 +338,10 @@ export const QueryTokensResponse = {
317
338
  },
318
339
  fromPartial(object) {
319
340
  const message = createBaseQueryTokensResponse();
320
- message.pagination = (object.pagination !== undefined && object.pagination !== null)
321
- ? PageResponse.fromPartial(object.pagination)
322
- : undefined;
341
+ message.pagination =
342
+ object.pagination !== undefined && object.pagination !== null
343
+ ? PageResponse.fromPartial(object.pagination)
344
+ : undefined;
323
345
  message.tokens = object.tokens?.map((e) => Token.fromPartial(e)) || [];
324
346
  return message;
325
347
  },
@@ -366,14 +388,18 @@ export const QueryFrozenBalancesRequest = {
366
388
  },
367
389
  fromJSON(object) {
368
390
  return {
369
- pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
391
+ pagination: isSet(object.pagination)
392
+ ? PageRequest.fromJSON(object.pagination)
393
+ : undefined,
370
394
  account: isSet(object.account) ? String(object.account) : "",
371
395
  };
372
396
  },
373
397
  toJSON(message) {
374
398
  const obj = {};
375
399
  message.pagination !== undefined &&
376
- (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
400
+ (obj.pagination = message.pagination
401
+ ? PageRequest.toJSON(message.pagination)
402
+ : undefined);
377
403
  message.account !== undefined && (obj.account = message.account);
378
404
  return obj;
379
405
  },
@@ -382,9 +408,10 @@ export const QueryFrozenBalancesRequest = {
382
408
  },
383
409
  fromPartial(object) {
384
410
  const message = createBaseQueryFrozenBalancesRequest();
385
- message.pagination = (object.pagination !== undefined && object.pagination !== null)
386
- ? PageRequest.fromPartial(object.pagination)
387
- : undefined;
411
+ message.pagination =
412
+ object.pagination !== undefined && object.pagination !== null
413
+ ? PageRequest.fromPartial(object.pagination)
414
+ : undefined;
388
415
  message.account = object.account ?? "";
389
416
  return message;
390
417
  },
@@ -431,14 +458,20 @@ export const QueryFrozenBalancesResponse = {
431
458
  },
432
459
  fromJSON(object) {
433
460
  return {
434
- pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
435
- balances: Array.isArray(object?.balances) ? object.balances.map((e) => Coin.fromJSON(e)) : [],
461
+ pagination: isSet(object.pagination)
462
+ ? PageResponse.fromJSON(object.pagination)
463
+ : undefined,
464
+ balances: Array.isArray(object?.balances)
465
+ ? object.balances.map((e) => Coin.fromJSON(e))
466
+ : [],
436
467
  };
437
468
  },
438
469
  toJSON(message) {
439
470
  const obj = {};
440
471
  message.pagination !== undefined &&
441
- (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
472
+ (obj.pagination = message.pagination
473
+ ? PageResponse.toJSON(message.pagination)
474
+ : undefined);
442
475
  if (message.balances) {
443
476
  obj.balances = message.balances.map((e) => e ? Coin.toJSON(e) : undefined);
444
477
  }
@@ -452,9 +485,10 @@ export const QueryFrozenBalancesResponse = {
452
485
  },
453
486
  fromPartial(object) {
454
487
  const message = createBaseQueryFrozenBalancesResponse();
455
- message.pagination = (object.pagination !== undefined && object.pagination !== null)
456
- ? PageResponse.fromPartial(object.pagination)
457
- : undefined;
488
+ message.pagination =
489
+ object.pagination !== undefined && object.pagination !== null
490
+ ? PageResponse.fromPartial(object.pagination)
491
+ : undefined;
458
492
  message.balances = object.balances?.map((e) => Coin.fromPartial(e)) || [];
459
493
  return message;
460
494
  },
@@ -553,11 +587,18 @@ export const QueryFrozenBalanceResponse = {
553
587
  return message;
554
588
  },
555
589
  fromJSON(object) {
556
- return { balance: isSet(object.balance) ? Coin.fromJSON(object.balance) : undefined };
590
+ return {
591
+ balance: isSet(object.balance)
592
+ ? Coin.fromJSON(object.balance)
593
+ : undefined,
594
+ };
557
595
  },
558
596
  toJSON(message) {
559
597
  const obj = {};
560
- message.balance !== undefined && (obj.balance = message.balance ? Coin.toJSON(message.balance) : undefined);
598
+ message.balance !== undefined &&
599
+ (obj.balance = message.balance
600
+ ? Coin.toJSON(message.balance)
601
+ : undefined);
561
602
  return obj;
562
603
  },
563
604
  create(base) {
@@ -565,9 +606,10 @@ export const QueryFrozenBalanceResponse = {
565
606
  },
566
607
  fromPartial(object) {
567
608
  const message = createBaseQueryFrozenBalanceResponse();
568
- message.balance = (object.balance !== undefined && object.balance !== null)
569
- ? Coin.fromPartial(object.balance)
570
- : undefined;
609
+ message.balance =
610
+ object.balance !== undefined && object.balance !== null
611
+ ? Coin.fromPartial(object.balance)
612
+ : undefined;
571
613
  return message;
572
614
  },
573
615
  };
@@ -613,14 +655,18 @@ export const QueryWhitelistedBalancesRequest = {
613
655
  },
614
656
  fromJSON(object) {
615
657
  return {
616
- pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
658
+ pagination: isSet(object.pagination)
659
+ ? PageRequest.fromJSON(object.pagination)
660
+ : undefined,
617
661
  account: isSet(object.account) ? String(object.account) : "",
618
662
  };
619
663
  },
620
664
  toJSON(message) {
621
665
  const obj = {};
622
666
  message.pagination !== undefined &&
623
- (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
667
+ (obj.pagination = message.pagination
668
+ ? PageRequest.toJSON(message.pagination)
669
+ : undefined);
624
670
  message.account !== undefined && (obj.account = message.account);
625
671
  return obj;
626
672
  },
@@ -629,9 +675,10 @@ export const QueryWhitelistedBalancesRequest = {
629
675
  },
630
676
  fromPartial(object) {
631
677
  const message = createBaseQueryWhitelistedBalancesRequest();
632
- message.pagination = (object.pagination !== undefined && object.pagination !== null)
633
- ? PageRequest.fromPartial(object.pagination)
634
- : undefined;
678
+ message.pagination =
679
+ object.pagination !== undefined && object.pagination !== null
680
+ ? PageRequest.fromPartial(object.pagination)
681
+ : undefined;
635
682
  message.account = object.account ?? "";
636
683
  return message;
637
684
  },
@@ -678,14 +725,20 @@ export const QueryWhitelistedBalancesResponse = {
678
725
  },
679
726
  fromJSON(object) {
680
727
  return {
681
- pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
682
- balances: Array.isArray(object?.balances) ? object.balances.map((e) => Coin.fromJSON(e)) : [],
728
+ pagination: isSet(object.pagination)
729
+ ? PageResponse.fromJSON(object.pagination)
730
+ : undefined,
731
+ balances: Array.isArray(object?.balances)
732
+ ? object.balances.map((e) => Coin.fromJSON(e))
733
+ : [],
683
734
  };
684
735
  },
685
736
  toJSON(message) {
686
737
  const obj = {};
687
738
  message.pagination !== undefined &&
688
- (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
739
+ (obj.pagination = message.pagination
740
+ ? PageResponse.toJSON(message.pagination)
741
+ : undefined);
689
742
  if (message.balances) {
690
743
  obj.balances = message.balances.map((e) => e ? Coin.toJSON(e) : undefined);
691
744
  }
@@ -699,9 +752,10 @@ export const QueryWhitelistedBalancesResponse = {
699
752
  },
700
753
  fromPartial(object) {
701
754
  const message = createBaseQueryWhitelistedBalancesResponse();
702
- message.pagination = (object.pagination !== undefined && object.pagination !== null)
703
- ? PageResponse.fromPartial(object.pagination)
704
- : undefined;
755
+ message.pagination =
756
+ object.pagination !== undefined && object.pagination !== null
757
+ ? PageResponse.fromPartial(object.pagination)
758
+ : undefined;
705
759
  message.balances = object.balances?.map((e) => Coin.fromPartial(e)) || [];
706
760
  return message;
707
761
  },
@@ -800,11 +854,18 @@ export const QueryWhitelistedBalanceResponse = {
800
854
  return message;
801
855
  },
802
856
  fromJSON(object) {
803
- return { balance: isSet(object.balance) ? Coin.fromJSON(object.balance) : undefined };
857
+ return {
858
+ balance: isSet(object.balance)
859
+ ? Coin.fromJSON(object.balance)
860
+ : undefined,
861
+ };
804
862
  },
805
863
  toJSON(message) {
806
864
  const obj = {};
807
- message.balance !== undefined && (obj.balance = message.balance ? Coin.toJSON(message.balance) : undefined);
865
+ message.balance !== undefined &&
866
+ (obj.balance = message.balance
867
+ ? Coin.toJSON(message.balance)
868
+ : undefined);
808
869
  return obj;
809
870
  },
810
871
  create(base) {
@@ -812,9 +873,10 @@ export const QueryWhitelistedBalanceResponse = {
812
873
  },
813
874
  fromPartial(object) {
814
875
  const message = createBaseQueryWhitelistedBalanceResponse();
815
- message.balance = (object.balance !== undefined && object.balance !== null)
816
- ? Coin.fromPartial(object.balance)
817
- : undefined;
876
+ message.balance =
877
+ object.balance !== undefined && object.balance !== null
878
+ ? Coin.fromPartial(object.balance)
879
+ : undefined;
818
880
  return message;
819
881
  },
820
882
  };
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Coin } from "../../../../cosmos/base/v1beta1/coin";
3
+ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
4
4
  import { Feature } from "./token";
5
5
  export declare const protobufPackage = "coreum.asset.ft.v1";
6
6
  /** MsgIssue defines message to issue new fungible token. */
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
- import { Coin } from "../../../../cosmos/base/v1beta1/coin";
4
+ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
5
5
  import { featureFromJSON, featureToJSON } from "./token";
6
6
  export const protobufPackage = "coreum.asset.ft.v1";
7
7
  function createBaseMsgIssue() {
@@ -70,7 +70,7 @@ export declare const GenesisState: {
70
70
  } & {
71
71
  denom?: string;
72
72
  amount?: string;
73
- } & { [K in Exclude<keyof I["params"]["mintFee"], keyof import("../../../../cosmos/base/v1beta1/coin").Coin>]: never; };
73
+ } & { [K in Exclude<keyof I["params"]["mintFee"], keyof import("cosmjs-types/cosmos/base/v1beta1/coin").Coin>]: never; };
74
74
  } & { [K_1 in Exclude<keyof I["params"], "mintFee">]: never; };
75
75
  classDefinitions?: {
76
76
  id?: string;
@@ -176,7 +176,7 @@ export declare const GenesisState: {
176
176
  } & {
177
177
  denom?: string;
178
178
  amount?: string;
179
- } & { [K_15 in Exclude<keyof I_1["params"]["mintFee"], keyof import("../../../../cosmos/base/v1beta1/coin").Coin>]: never; };
179
+ } & { [K_15 in Exclude<keyof I_1["params"]["mintFee"], keyof import("cosmjs-types/cosmos/base/v1beta1/coin").Coin>]: never; };
180
180
  } & { [K_16 in Exclude<keyof I_1["params"], "mintFee">]: never; };
181
181
  classDefinitions?: {
182
182
  id?: string;
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Coin } from "../../../../cosmos/base/v1beta1/coin";
3
+ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
4
4
  export declare const protobufPackage = "coreum.asset.nft.v1";
5
5
  /** Params store gov manageable parameters. */
6
6
  export interface Params {
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
- import { Coin } from "../../../../cosmos/base/v1beta1/coin";
4
+ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
5
5
  export const protobufPackage = "coreum.asset.nft.v1";
6
6
  function createBaseParams() {
7
7
  return { mintFee: undefined };
@@ -35,11 +35,18 @@ export const Params = {
35
35
  return message;
36
36
  },
37
37
  fromJSON(object) {
38
- return { mintFee: isSet(object.mintFee) ? Coin.fromJSON(object.mintFee) : undefined };
38
+ return {
39
+ mintFee: isSet(object.mintFee)
40
+ ? Coin.fromJSON(object.mintFee)
41
+ : undefined,
42
+ };
39
43
  },
40
44
  toJSON(message) {
41
45
  const obj = {};
42
- message.mintFee !== undefined && (obj.mintFee = message.mintFee ? Coin.toJSON(message.mintFee) : undefined);
46
+ message.mintFee !== undefined &&
47
+ (obj.mintFee = message.mintFee
48
+ ? Coin.toJSON(message.mintFee)
49
+ : undefined);
43
50
  return obj;
44
51
  },
45
52
  create(base) {
@@ -47,9 +54,10 @@ export const Params = {
47
54
  },
48
55
  fromPartial(object) {
49
56
  const message = createBaseParams();
50
- message.mintFee = (object.mintFee !== undefined && object.mintFee !== null)
51
- ? Coin.fromPartial(object.mintFee)
52
- : undefined;
57
+ message.mintFee =
58
+ object.mintFee !== undefined && object.mintFee !== null
59
+ ? Coin.fromPartial(object.mintFee)
60
+ : undefined;
53
61
  return message;
54
62
  },
55
63
  };
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
3
+ import { PageRequest, PageResponse } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
4
4
  import { Class } from "./nft";
5
5
  import { Params } from "./params";
6
6
  export declare const protobufPackage = "coreum.asset.nft.v1";
@@ -79,7 +79,7 @@ export declare const QueryParamsResponse: {
79
79
  } & {
80
80
  denom?: string;
81
81
  amount?: string;
82
- } & { [K in Exclude<keyof I["params"]["mintFee"], keyof import("../../../../cosmos/base/v1beta1/coin").Coin>]: never; };
82
+ } & { [K in Exclude<keyof I["params"]["mintFee"], keyof import("cosmjs-types/cosmos/base/v1beta1/coin").Coin>]: never; };
83
83
  } & { [K_1 in Exclude<keyof I["params"], "mintFee">]: never; };
84
84
  } & { [K_2 in Exclude<keyof I, "params">]: never; }>(base?: I): QueryParamsResponse;
85
85
  fromPartial<I_1 extends {
@@ -102,7 +102,7 @@ export declare const QueryParamsResponse: {
102
102
  } & {
103
103
  denom?: string;
104
104
  amount?: string;
105
- } & { [K_3 in Exclude<keyof I_1["params"]["mintFee"], keyof import("../../../../cosmos/base/v1beta1/coin").Coin>]: never; };
105
+ } & { [K_3 in Exclude<keyof I_1["params"]["mintFee"], keyof import("cosmjs-types/cosmos/base/v1beta1/coin").Coin>]: never; };
106
106
  } & { [K_4 in Exclude<keyof I_1["params"], "mintFee">]: never; };
107
107
  } & { [K_5 in Exclude<keyof I_1, "params">]: never; }>(object: I_1): QueryParamsResponse;
108
108
  };