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,620 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- import { Coin } from "../../base/v1beta1/coin";
3
- import { Any } from "../../../google/protobuf/any";
4
- import { Duration } from "../../../google/protobuf/duration";
5
- export declare const protobufPackage = "cosmos.gov.v1beta1";
6
- /** VoteOption enumerates the valid vote options for a given governance proposal. */
7
- export declare enum VoteOption {
8
- /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
9
- VOTE_OPTION_UNSPECIFIED = 0,
10
- /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
11
- VOTE_OPTION_YES = 1,
12
- /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
13
- VOTE_OPTION_ABSTAIN = 2,
14
- /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
15
- VOTE_OPTION_NO = 3,
16
- /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
17
- VOTE_OPTION_NO_WITH_VETO = 4,
18
- UNRECOGNIZED = -1
19
- }
20
- export declare function voteOptionFromJSON(object: any): VoteOption;
21
- export declare function voteOptionToJSON(object: VoteOption): string;
22
- /** ProposalStatus enumerates the valid statuses of a proposal. */
23
- export declare enum ProposalStatus {
24
- /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */
25
- PROPOSAL_STATUS_UNSPECIFIED = 0,
26
- /**
27
- * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
28
- * period.
29
- */
30
- PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
31
- /**
32
- * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
33
- * period.
34
- */
35
- PROPOSAL_STATUS_VOTING_PERIOD = 2,
36
- /**
37
- * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
38
- * passed.
39
- */
40
- PROPOSAL_STATUS_PASSED = 3,
41
- /**
42
- * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
43
- * been rejected.
44
- */
45
- PROPOSAL_STATUS_REJECTED = 4,
46
- /**
47
- * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
48
- * failed.
49
- */
50
- PROPOSAL_STATUS_FAILED = 5,
51
- UNRECOGNIZED = -1
52
- }
53
- export declare function proposalStatusFromJSON(object: any): ProposalStatus;
54
- export declare function proposalStatusToJSON(object: ProposalStatus): string;
55
- /**
56
- * WeightedVoteOption defines a unit of vote for vote split.
57
- *
58
- * Since: cosmos-sdk 0.43
59
- */
60
- export interface WeightedVoteOption {
61
- /** option defines the valid vote options, it must not contain duplicate vote options. */
62
- option: VoteOption;
63
- /** weight is the vote weight associated with the vote option. */
64
- weight: string;
65
- }
66
- /**
67
- * TextProposal defines a standard text proposal whose changes need to be
68
- * manually updated in case of approval.
69
- */
70
- export interface TextProposal {
71
- /** title of the proposal. */
72
- title: string;
73
- /** description associated with the proposal. */
74
- description: string;
75
- }
76
- /**
77
- * Deposit defines an amount deposited by an account address to an active
78
- * proposal.
79
- */
80
- export interface Deposit {
81
- /** proposal_id defines the unique id of the proposal. */
82
- proposalId: number;
83
- /** depositor defines the deposit addresses from the proposals. */
84
- depositor: string;
85
- /** amount to be deposited by depositor. */
86
- amount: Coin[];
87
- }
88
- /** Proposal defines the core field members of a governance proposal. */
89
- export interface Proposal {
90
- /** proposal_id defines the unique id of the proposal. */
91
- proposalId: number;
92
- /** content is the proposal's content. */
93
- content: Any | undefined;
94
- /** status defines the proposal status. */
95
- status: ProposalStatus;
96
- /**
97
- * final_tally_result is the final tally result of the proposal. When
98
- * querying a proposal via gRPC, this field is not populated until the
99
- * proposal's voting period has ended.
100
- */
101
- finalTallyResult: TallyResult | undefined;
102
- /** submit_time is the time of proposal submission. */
103
- submitTime: Date | undefined;
104
- /** deposit_end_time is the end time for deposition. */
105
- depositEndTime: Date | undefined;
106
- /** total_deposit is the total deposit on the proposal. */
107
- totalDeposit: Coin[];
108
- /** voting_start_time is the starting time to vote on a proposal. */
109
- votingStartTime: Date | undefined;
110
- /** voting_end_time is the end time of voting on a proposal. */
111
- votingEndTime: Date | undefined;
112
- }
113
- /** TallyResult defines a standard tally for a governance proposal. */
114
- export interface TallyResult {
115
- /** yes is the number of yes votes on a proposal. */
116
- yes: string;
117
- /** abstain is the number of abstain votes on a proposal. */
118
- abstain: string;
119
- /** no is the number of no votes on a proposal. */
120
- no: string;
121
- /** no_with_veto is the number of no with veto votes on a proposal. */
122
- noWithVeto: string;
123
- }
124
- /**
125
- * Vote defines a vote on a governance proposal.
126
- * A Vote consists of a proposal ID, the voter, and the vote option.
127
- */
128
- export interface Vote {
129
- /** proposal_id defines the unique id of the proposal. */
130
- proposalId: number;
131
- /** voter is the voter address of the proposal. */
132
- voter: string;
133
- /**
134
- * Deprecated: Prefer to use `options` instead. This field is set in queries
135
- * if and only if `len(options) == 1` and that option has weight 1. In all
136
- * other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
137
- *
138
- * @deprecated
139
- */
140
- option: VoteOption;
141
- /**
142
- * options is the weighted vote options.
143
- *
144
- * Since: cosmos-sdk 0.43
145
- */
146
- options: WeightedVoteOption[];
147
- }
148
- /** DepositParams defines the params for deposits on governance proposals. */
149
- export interface DepositParams {
150
- /** Minimum deposit for a proposal to enter voting period. */
151
- minDeposit: Coin[];
152
- /**
153
- * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
154
- * months.
155
- */
156
- maxDepositPeriod: Duration | undefined;
157
- }
158
- /** VotingParams defines the params for voting on governance proposals. */
159
- export interface VotingParams {
160
- /** Duration of the voting period. */
161
- votingPeriod: Duration | undefined;
162
- }
163
- /** TallyParams defines the params for tallying votes on governance proposals. */
164
- export interface TallyParams {
165
- /**
166
- * Minimum percentage of total stake needed to vote for a result to be
167
- * considered valid.
168
- */
169
- quorum: Uint8Array;
170
- /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
171
- threshold: Uint8Array;
172
- /**
173
- * Minimum value of Veto votes to Total votes ratio for proposal to be
174
- * vetoed. Default value: 1/3.
175
- */
176
- vetoThreshold: Uint8Array;
177
- }
178
- export declare const WeightedVoteOption: {
179
- encode(message: WeightedVoteOption, writer?: _m0.Writer): _m0.Writer;
180
- decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption;
181
- fromJSON(object: any): WeightedVoteOption;
182
- toJSON(message: WeightedVoteOption): unknown;
183
- create<I extends {
184
- option?: VoteOption;
185
- weight?: string;
186
- } & {
187
- option?: VoteOption;
188
- weight?: string;
189
- } & { [K in Exclude<keyof I, keyof WeightedVoteOption>]: never; }>(base?: I): WeightedVoteOption;
190
- fromPartial<I_1 extends {
191
- option?: VoteOption;
192
- weight?: string;
193
- } & {
194
- option?: VoteOption;
195
- weight?: string;
196
- } & { [K_1 in Exclude<keyof I_1, keyof WeightedVoteOption>]: never; }>(object: I_1): WeightedVoteOption;
197
- };
198
- export declare const TextProposal: {
199
- encode(message: TextProposal, writer?: _m0.Writer): _m0.Writer;
200
- decode(input: _m0.Reader | Uint8Array, length?: number): TextProposal;
201
- fromJSON(object: any): TextProposal;
202
- toJSON(message: TextProposal): unknown;
203
- create<I extends {
204
- title?: string;
205
- description?: string;
206
- } & {
207
- title?: string;
208
- description?: string;
209
- } & { [K in Exclude<keyof I, keyof TextProposal>]: never; }>(base?: I): TextProposal;
210
- fromPartial<I_1 extends {
211
- title?: string;
212
- description?: string;
213
- } & {
214
- title?: string;
215
- description?: string;
216
- } & { [K_1 in Exclude<keyof I_1, keyof TextProposal>]: never; }>(object: I_1): TextProposal;
217
- };
218
- export declare const Deposit: {
219
- encode(message: Deposit, writer?: _m0.Writer): _m0.Writer;
220
- decode(input: _m0.Reader | Uint8Array, length?: number): Deposit;
221
- fromJSON(object: any): Deposit;
222
- toJSON(message: Deposit): unknown;
223
- create<I extends {
224
- proposalId?: number;
225
- depositor?: string;
226
- amount?: {
227
- denom?: string;
228
- amount?: string;
229
- }[];
230
- } & {
231
- proposalId?: number;
232
- depositor?: string;
233
- amount?: {
234
- denom?: string;
235
- amount?: string;
236
- }[] & ({
237
- denom?: string;
238
- amount?: string;
239
- } & {
240
- denom?: string;
241
- amount?: string;
242
- } & { [K in Exclude<keyof I["amount"][number], keyof Coin>]: never; })[] & { [K_1 in Exclude<keyof I["amount"], keyof {
243
- denom?: string;
244
- amount?: string;
245
- }[]>]: never; };
246
- } & { [K_2 in Exclude<keyof I, keyof Deposit>]: never; }>(base?: I): Deposit;
247
- fromPartial<I_1 extends {
248
- proposalId?: number;
249
- depositor?: string;
250
- amount?: {
251
- denom?: string;
252
- amount?: string;
253
- }[];
254
- } & {
255
- proposalId?: number;
256
- depositor?: string;
257
- amount?: {
258
- denom?: string;
259
- amount?: string;
260
- }[] & ({
261
- denom?: string;
262
- amount?: string;
263
- } & {
264
- denom?: string;
265
- amount?: string;
266
- } & { [K_3 in Exclude<keyof I_1["amount"][number], keyof Coin>]: never; })[] & { [K_4 in Exclude<keyof I_1["amount"], keyof {
267
- denom?: string;
268
- amount?: string;
269
- }[]>]: never; };
270
- } & { [K_5 in Exclude<keyof I_1, keyof Deposit>]: never; }>(object: I_1): Deposit;
271
- };
272
- export declare const Proposal: {
273
- encode(message: Proposal, writer?: _m0.Writer): _m0.Writer;
274
- decode(input: _m0.Reader | Uint8Array, length?: number): Proposal;
275
- fromJSON(object: any): Proposal;
276
- toJSON(message: Proposal): unknown;
277
- create<I extends {
278
- proposalId?: number;
279
- content?: {
280
- typeUrl?: string;
281
- value?: Uint8Array;
282
- };
283
- status?: ProposalStatus;
284
- finalTallyResult?: {
285
- yes?: string;
286
- abstain?: string;
287
- no?: string;
288
- noWithVeto?: string;
289
- };
290
- submitTime?: Date | undefined;
291
- depositEndTime?: Date | undefined;
292
- totalDeposit?: {
293
- denom?: string;
294
- amount?: string;
295
- }[];
296
- votingStartTime?: Date | undefined;
297
- votingEndTime?: Date | undefined;
298
- } & {
299
- proposalId?: number;
300
- content?: {
301
- typeUrl?: string;
302
- value?: Uint8Array;
303
- } & {
304
- typeUrl?: string;
305
- value?: Uint8Array;
306
- } & { [K in Exclude<keyof I["content"], keyof Any>]: never; };
307
- status?: ProposalStatus;
308
- finalTallyResult?: {
309
- yes?: string;
310
- abstain?: string;
311
- no?: string;
312
- noWithVeto?: string;
313
- } & {
314
- yes?: string;
315
- abstain?: string;
316
- no?: string;
317
- noWithVeto?: string;
318
- } & { [K_1 in Exclude<keyof I["finalTallyResult"], keyof TallyResult>]: never; };
319
- submitTime?: Date | undefined;
320
- depositEndTime?: Date | undefined;
321
- totalDeposit?: {
322
- denom?: string;
323
- amount?: string;
324
- }[] & ({
325
- denom?: string;
326
- amount?: string;
327
- } & {
328
- denom?: string;
329
- amount?: string;
330
- } & { [K_2 in Exclude<keyof I["totalDeposit"][number], keyof Coin>]: never; })[] & { [K_3 in Exclude<keyof I["totalDeposit"], keyof {
331
- denom?: string;
332
- amount?: string;
333
- }[]>]: never; };
334
- votingStartTime?: Date | undefined;
335
- votingEndTime?: Date | undefined;
336
- } & { [K_4 in Exclude<keyof I, keyof Proposal>]: never; }>(base?: I): Proposal;
337
- fromPartial<I_1 extends {
338
- proposalId?: number;
339
- content?: {
340
- typeUrl?: string;
341
- value?: Uint8Array;
342
- };
343
- status?: ProposalStatus;
344
- finalTallyResult?: {
345
- yes?: string;
346
- abstain?: string;
347
- no?: string;
348
- noWithVeto?: string;
349
- };
350
- submitTime?: Date | undefined;
351
- depositEndTime?: Date | undefined;
352
- totalDeposit?: {
353
- denom?: string;
354
- amount?: string;
355
- }[];
356
- votingStartTime?: Date | undefined;
357
- votingEndTime?: Date | undefined;
358
- } & {
359
- proposalId?: number;
360
- content?: {
361
- typeUrl?: string;
362
- value?: Uint8Array;
363
- } & {
364
- typeUrl?: string;
365
- value?: Uint8Array;
366
- } & { [K_5 in Exclude<keyof I_1["content"], keyof Any>]: never; };
367
- status?: ProposalStatus;
368
- finalTallyResult?: {
369
- yes?: string;
370
- abstain?: string;
371
- no?: string;
372
- noWithVeto?: string;
373
- } & {
374
- yes?: string;
375
- abstain?: string;
376
- no?: string;
377
- noWithVeto?: string;
378
- } & { [K_6 in Exclude<keyof I_1["finalTallyResult"], keyof TallyResult>]: never; };
379
- submitTime?: Date | undefined;
380
- depositEndTime?: Date | undefined;
381
- totalDeposit?: {
382
- denom?: string;
383
- amount?: string;
384
- }[] & ({
385
- denom?: string;
386
- amount?: string;
387
- } & {
388
- denom?: string;
389
- amount?: string;
390
- } & { [K_7 in Exclude<keyof I_1["totalDeposit"][number], keyof Coin>]: never; })[] & { [K_8 in Exclude<keyof I_1["totalDeposit"], keyof {
391
- denom?: string;
392
- amount?: string;
393
- }[]>]: never; };
394
- votingStartTime?: Date | undefined;
395
- votingEndTime?: Date | undefined;
396
- } & { [K_9 in Exclude<keyof I_1, keyof Proposal>]: never; }>(object: I_1): Proposal;
397
- };
398
- export declare const TallyResult: {
399
- encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer;
400
- decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult;
401
- fromJSON(object: any): TallyResult;
402
- toJSON(message: TallyResult): unknown;
403
- create<I extends {
404
- yes?: string;
405
- abstain?: string;
406
- no?: string;
407
- noWithVeto?: string;
408
- } & {
409
- yes?: string;
410
- abstain?: string;
411
- no?: string;
412
- noWithVeto?: string;
413
- } & { [K in Exclude<keyof I, keyof TallyResult>]: never; }>(base?: I): TallyResult;
414
- fromPartial<I_1 extends {
415
- yes?: string;
416
- abstain?: string;
417
- no?: string;
418
- noWithVeto?: string;
419
- } & {
420
- yes?: string;
421
- abstain?: string;
422
- no?: string;
423
- noWithVeto?: string;
424
- } & { [K_1 in Exclude<keyof I_1, keyof TallyResult>]: never; }>(object: I_1): TallyResult;
425
- };
426
- export declare const Vote: {
427
- encode(message: Vote, writer?: _m0.Writer): _m0.Writer;
428
- decode(input: _m0.Reader | Uint8Array, length?: number): Vote;
429
- fromJSON(object: any): Vote;
430
- toJSON(message: Vote): unknown;
431
- create<I extends {
432
- proposalId?: number;
433
- voter?: string;
434
- option?: VoteOption;
435
- options?: {
436
- option?: VoteOption;
437
- weight?: string;
438
- }[];
439
- } & {
440
- proposalId?: number;
441
- voter?: string;
442
- option?: VoteOption;
443
- options?: {
444
- option?: VoteOption;
445
- weight?: string;
446
- }[] & ({
447
- option?: VoteOption;
448
- weight?: string;
449
- } & {
450
- option?: VoteOption;
451
- weight?: string;
452
- } & { [K in Exclude<keyof I["options"][number], keyof WeightedVoteOption>]: never; })[] & { [K_1 in Exclude<keyof I["options"], keyof {
453
- option?: VoteOption;
454
- weight?: string;
455
- }[]>]: never; };
456
- } & { [K_2 in Exclude<keyof I, keyof Vote>]: never; }>(base?: I): Vote;
457
- fromPartial<I_1 extends {
458
- proposalId?: number;
459
- voter?: string;
460
- option?: VoteOption;
461
- options?: {
462
- option?: VoteOption;
463
- weight?: string;
464
- }[];
465
- } & {
466
- proposalId?: number;
467
- voter?: string;
468
- option?: VoteOption;
469
- options?: {
470
- option?: VoteOption;
471
- weight?: string;
472
- }[] & ({
473
- option?: VoteOption;
474
- weight?: string;
475
- } & {
476
- option?: VoteOption;
477
- weight?: string;
478
- } & { [K_3 in Exclude<keyof I_1["options"][number], keyof WeightedVoteOption>]: never; })[] & { [K_4 in Exclude<keyof I_1["options"], keyof {
479
- option?: VoteOption;
480
- weight?: string;
481
- }[]>]: never; };
482
- } & { [K_5 in Exclude<keyof I_1, keyof Vote>]: never; }>(object: I_1): Vote;
483
- };
484
- export declare const DepositParams: {
485
- encode(message: DepositParams, writer?: _m0.Writer): _m0.Writer;
486
- decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams;
487
- fromJSON(object: any): DepositParams;
488
- toJSON(message: DepositParams): unknown;
489
- create<I extends {
490
- minDeposit?: {
491
- denom?: string;
492
- amount?: string;
493
- }[];
494
- maxDepositPeriod?: {
495
- seconds?: number;
496
- nanos?: number;
497
- };
498
- } & {
499
- minDeposit?: {
500
- denom?: string;
501
- amount?: string;
502
- }[] & ({
503
- denom?: string;
504
- amount?: string;
505
- } & {
506
- denom?: string;
507
- amount?: string;
508
- } & { [K in Exclude<keyof I["minDeposit"][number], keyof Coin>]: never; })[] & { [K_1 in Exclude<keyof I["minDeposit"], keyof {
509
- denom?: string;
510
- amount?: string;
511
- }[]>]: never; };
512
- maxDepositPeriod?: {
513
- seconds?: number;
514
- nanos?: number;
515
- } & {
516
- seconds?: number;
517
- nanos?: number;
518
- } & { [K_2 in Exclude<keyof I["maxDepositPeriod"], keyof Duration>]: never; };
519
- } & { [K_3 in Exclude<keyof I, keyof DepositParams>]: never; }>(base?: I): DepositParams;
520
- fromPartial<I_1 extends {
521
- minDeposit?: {
522
- denom?: string;
523
- amount?: string;
524
- }[];
525
- maxDepositPeriod?: {
526
- seconds?: number;
527
- nanos?: number;
528
- };
529
- } & {
530
- minDeposit?: {
531
- denom?: string;
532
- amount?: string;
533
- }[] & ({
534
- denom?: string;
535
- amount?: string;
536
- } & {
537
- denom?: string;
538
- amount?: string;
539
- } & { [K_4 in Exclude<keyof I_1["minDeposit"][number], keyof Coin>]: never; })[] & { [K_5 in Exclude<keyof I_1["minDeposit"], keyof {
540
- denom?: string;
541
- amount?: string;
542
- }[]>]: never; };
543
- maxDepositPeriod?: {
544
- seconds?: number;
545
- nanos?: number;
546
- } & {
547
- seconds?: number;
548
- nanos?: number;
549
- } & { [K_6 in Exclude<keyof I_1["maxDepositPeriod"], keyof Duration>]: never; };
550
- } & { [K_7 in Exclude<keyof I_1, keyof DepositParams>]: never; }>(object: I_1): DepositParams;
551
- };
552
- export declare const VotingParams: {
553
- encode(message: VotingParams, writer?: _m0.Writer): _m0.Writer;
554
- decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams;
555
- fromJSON(object: any): VotingParams;
556
- toJSON(message: VotingParams): unknown;
557
- create<I extends {
558
- votingPeriod?: {
559
- seconds?: number;
560
- nanos?: number;
561
- };
562
- } & {
563
- votingPeriod?: {
564
- seconds?: number;
565
- nanos?: number;
566
- } & {
567
- seconds?: number;
568
- nanos?: number;
569
- } & { [K in Exclude<keyof I["votingPeriod"], keyof Duration>]: never; };
570
- } & { [K_1 in Exclude<keyof I, "votingPeriod">]: never; }>(base?: I): VotingParams;
571
- fromPartial<I_1 extends {
572
- votingPeriod?: {
573
- seconds?: number;
574
- nanos?: number;
575
- };
576
- } & {
577
- votingPeriod?: {
578
- seconds?: number;
579
- nanos?: number;
580
- } & {
581
- seconds?: number;
582
- nanos?: number;
583
- } & { [K_2 in Exclude<keyof I_1["votingPeriod"], keyof Duration>]: never; };
584
- } & { [K_3 in Exclude<keyof I_1, "votingPeriod">]: never; }>(object: I_1): VotingParams;
585
- };
586
- export declare const TallyParams: {
587
- encode(message: TallyParams, writer?: _m0.Writer): _m0.Writer;
588
- decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams;
589
- fromJSON(object: any): TallyParams;
590
- toJSON(message: TallyParams): unknown;
591
- create<I extends {
592
- quorum?: Uint8Array;
593
- threshold?: Uint8Array;
594
- vetoThreshold?: Uint8Array;
595
- } & {
596
- quorum?: Uint8Array;
597
- threshold?: Uint8Array;
598
- vetoThreshold?: Uint8Array;
599
- } & { [K in Exclude<keyof I, keyof TallyParams>]: never; }>(base?: I): TallyParams;
600
- fromPartial<I_1 extends {
601
- quorum?: Uint8Array;
602
- threshold?: Uint8Array;
603
- vetoThreshold?: Uint8Array;
604
- } & {
605
- quorum?: Uint8Array;
606
- threshold?: Uint8Array;
607
- vetoThreshold?: Uint8Array;
608
- } & { [K_1 in Exclude<keyof I_1, keyof TallyParams>]: never; }>(object: I_1): TallyParams;
609
- };
610
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
611
- 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 {} ? {
612
- [K in keyof T]?: DeepPartial<T[K]>;
613
- } : Partial<T>;
614
- type KeysOfUnion<T> = T extends T ? keyof T : never;
615
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
616
- [K in keyof P]: Exact<P[K], I[K]>;
617
- } & {
618
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
619
- };
620
- export {};