juno-network 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. package/package.json +2 -2
  2. package/types/codegen/JunoSwap.client.d.ts +122 -0
  3. package/types/codegen/JunoSwap.types.d.ts +142 -0
  4. package/types/codegen/confio/proofs.d.ts +495 -0
  5. package/types/codegen/contracts.d.ts +12 -0
  6. package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
  7. package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
  8. package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
  9. package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
  10. package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
  11. package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +32 -0
  12. package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
  13. package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +30 -0
  14. package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
  15. package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
  16. package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
  17. package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
  18. package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
  19. package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +57 -0
  20. package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
  21. package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
  22. package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
  23. package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +15 -0
  24. package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
  25. package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
  26. package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
  27. package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
  28. package/types/codegen/cosmos/bundle.d.ts +25545 -0
  29. package/types/codegen/cosmos/client.d.ts +473 -0
  30. package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
  31. package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
  32. package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
  33. package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
  34. package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
  35. package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
  36. package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
  37. package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
  38. package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
  39. package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
  40. package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
  41. package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +51 -0
  42. package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
  43. package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
  44. package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
  45. package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +33 -0
  46. package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
  47. package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
  48. package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
  49. package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
  50. package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +44 -0
  51. package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
  52. package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
  53. package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
  54. package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +27 -0
  55. package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
  56. package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
  57. package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
  58. package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
  59. package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +44 -0
  60. package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
  61. package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
  62. package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
  63. package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +25 -0
  64. package/types/codegen/cosmos/lcd.d.ts +28 -0
  65. package/types/codegen/cosmos/rpc.query.d.ts +97 -0
  66. package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
  67. package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
  68. package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
  69. package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
  70. package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
  71. package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +80 -0
  72. package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
  73. package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
  74. package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
  75. package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
  76. package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +33 -0
  77. package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
  78. package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
  79. package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
  80. package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +36 -0
  81. package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
  82. package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
  83. package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
  84. package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +43 -0
  85. package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
  86. package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
  87. package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
  88. package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +24 -0
  89. package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
  90. package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
  91. package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
  92. package/types/codegen/cosmwasm/bundle.d.ts +5227 -0
  93. package/types/codegen/cosmwasm/client.d.ts +120 -0
  94. package/types/codegen/cosmwasm/lcd.d.ts +33 -0
  95. package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
  96. package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
  97. package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
  98. package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
  99. package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
  100. package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
  101. package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
  102. package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +48 -0
  103. package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
  104. package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
  105. package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
  106. package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +27 -0
  107. package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
  108. package/types/codegen/gogoproto/bundle.d.ts +1 -0
  109. package/types/codegen/gogoproto/gogo.d.ts +1 -0
  110. package/types/codegen/google/bundle.d.ts +8939 -0
  111. package/types/codegen/google/protobuf/any.d.ts +237 -0
  112. package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
  113. package/types/codegen/google/protobuf/duration.d.ts +161 -0
  114. package/types/codegen/google/protobuf/empty.d.ts +33 -0
  115. package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
  116. package/types/codegen/helpers.d.ts +82 -0
  117. package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
  118. package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
  119. package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
  120. package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +24 -0
  121. package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
  122. package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
  123. package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
  124. package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
  125. package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
  126. package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
  127. package/types/codegen/ibc/bundle.d.ts +21744 -0
  128. package/types/codegen/ibc/client.d.ts +559 -0
  129. package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
  130. package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
  131. package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
  132. package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
  133. package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +88 -0
  134. package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
  135. package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
  136. package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
  137. package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
  138. package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
  139. package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
  140. package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
  141. package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
  142. package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +50 -0
  143. package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
  144. package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
  145. package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
  146. package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
  147. package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
  148. package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
  149. package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
  150. package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
  151. package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
  152. package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +41 -0
  153. package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
  154. package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
  155. package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
  156. package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
  157. package/types/codegen/ibc/lcd.d.ts +46 -0
  158. package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
  159. package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
  160. package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
  161. package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
  162. package/types/codegen/ibc/rpc.query.d.ts +148 -0
  163. package/types/codegen/ibc/rpc.tx.d.ts +44 -0
  164. package/types/codegen/ics23/bundle.d.ts +545 -0
  165. package/types/codegen/index.d.ts +18 -0
  166. package/types/codegen/juno/bundle.d.ts +723 -0
  167. package/types/codegen/juno/lcd.d.ts +31 -0
  168. package/types/codegen/juno/mint/genesis.d.ts +22 -0
  169. package/types/codegen/juno/mint/mint.d.ts +44 -0
  170. package/types/codegen/juno/mint/query.d.ts +99 -0
  171. package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
  172. package/types/codegen/juno/mint/query.rpc.query.d.ts +24 -0
  173. package/types/codegen/juno/rpc.query.d.ts +104 -0
  174. package/types/codegen/tendermint/abci/types.d.ts +902 -0
  175. package/types/codegen/tendermint/bundle.d.ts +19673 -0
  176. package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
  177. package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
  178. package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
  179. package/types/codegen/tendermint/p2p/types.d.ts +87 -0
  180. package/types/codegen/tendermint/types/block.d.ts +21 -0
  181. package/types/codegen/tendermint/types/evidence.d.ts +70 -0
  182. package/types/codegen/tendermint/types/params.d.ts +181 -0
  183. package/types/codegen/tendermint/types/types.d.ts +326 -0
  184. package/types/codegen/tendermint/types/validator.d.ts +48 -0
  185. package/types/codegen/tendermint/version/types.d.ts +48 -0
  186. package/types/index.d.ts +1 -0
@@ -0,0 +1,72 @@
1
+ import { GeneratedType, Registry } from "@cosmjs/proto-signing";
2
+ import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx";
3
+ export declare const registry: ReadonlyArray<[string, GeneratedType]>;
4
+ export declare const load: (protoRegistry: Registry) => void;
5
+ export declare const MessageComposer: {
6
+ encoded: {
7
+ submitProposal(value: MsgSubmitProposal): {
8
+ typeUrl: string;
9
+ value: Uint8Array;
10
+ };
11
+ execLegacyContent(value: MsgExecLegacyContent): {
12
+ typeUrl: string;
13
+ value: Uint8Array;
14
+ };
15
+ vote(value: MsgVote): {
16
+ typeUrl: string;
17
+ value: Uint8Array;
18
+ };
19
+ voteWeighted(value: MsgVoteWeighted): {
20
+ typeUrl: string;
21
+ value: Uint8Array;
22
+ };
23
+ deposit(value: MsgDeposit): {
24
+ typeUrl: string;
25
+ value: Uint8Array;
26
+ };
27
+ };
28
+ withTypeUrl: {
29
+ submitProposal(value: MsgSubmitProposal): {
30
+ typeUrl: string;
31
+ value: MsgSubmitProposal;
32
+ };
33
+ execLegacyContent(value: MsgExecLegacyContent): {
34
+ typeUrl: string;
35
+ value: MsgExecLegacyContent;
36
+ };
37
+ vote(value: MsgVote): {
38
+ typeUrl: string;
39
+ value: MsgVote;
40
+ };
41
+ voteWeighted(value: MsgVoteWeighted): {
42
+ typeUrl: string;
43
+ value: MsgVoteWeighted;
44
+ };
45
+ deposit(value: MsgDeposit): {
46
+ typeUrl: string;
47
+ value: MsgDeposit;
48
+ };
49
+ };
50
+ fromPartial: {
51
+ submitProposal(value: MsgSubmitProposal): {
52
+ typeUrl: string;
53
+ value: MsgSubmitProposal;
54
+ };
55
+ execLegacyContent(value: MsgExecLegacyContent): {
56
+ typeUrl: string;
57
+ value: MsgExecLegacyContent;
58
+ };
59
+ vote(value: MsgVote): {
60
+ typeUrl: string;
61
+ value: MsgVote;
62
+ };
63
+ voteWeighted(value: MsgVoteWeighted): {
64
+ typeUrl: string;
65
+ value: MsgVoteWeighted;
66
+ };
67
+ deposit(value: MsgDeposit): {
68
+ typeUrl: string;
69
+ value: MsgDeposit;
70
+ };
71
+ };
72
+ };
@@ -0,0 +1,27 @@
1
+ import { Rpc } from "../../../helpers";
2
+ import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx";
3
+ /** Msg defines the gov Msg service. */
4
+ export interface Msg {
5
+ /** SubmitProposal defines a method to create new proposal given a content. */
6
+ submitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
7
+ /**
8
+ * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
9
+ * to execute a legacy content-based proposal.
10
+ */
11
+ execLegacyContent(request: MsgExecLegacyContent): Promise<MsgExecLegacyContentResponse>;
12
+ /** Vote defines a method to add a vote on a specific proposal. */
13
+ vote(request: MsgVote): Promise<MsgVoteResponse>;
14
+ /** VoteWeighted defines a method to add a weighted vote on a specific proposal. */
15
+ voteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
16
+ /** Deposit defines a method to add deposit on a specific proposal. */
17
+ deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
18
+ }
19
+ export declare class MsgClientImpl implements Msg {
20
+ private readonly rpc;
21
+ constructor(rpc: Rpc);
22
+ submitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
23
+ execLegacyContent(request: MsgExecLegacyContent): Promise<MsgExecLegacyContentResponse>;
24
+ vote(request: MsgVote): Promise<MsgVoteResponse>;
25
+ voteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
26
+ deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
27
+ }
@@ -0,0 +1,42 @@
1
+ import { Deposit, DepositSDKType, Vote, VoteSDKType, Proposal, ProposalSDKType, DepositParams, DepositParamsSDKType, VotingParams, VotingParamsSDKType, TallyParams, TallyParamsSDKType } from "./gov";
2
+ import * as _m0 from "protobufjs/minimal";
3
+ import { Long, DeepPartial } from "../../../helpers";
4
+ /** GenesisState defines the gov module's genesis state. */
5
+ export interface GenesisState {
6
+ /** starting_proposal_id is the ID of the starting proposal. */
7
+ startingProposalId: Long;
8
+ /** deposits defines all the deposits present at genesis. */
9
+ deposits: Deposit[];
10
+ /** votes defines all the votes present at genesis. */
11
+ votes: Vote[];
12
+ /** proposals defines all the proposals present at genesis. */
13
+ proposals: Proposal[];
14
+ /** params defines all the paramaters of related to deposit. */
15
+ depositParams?: DepositParams;
16
+ /** params defines all the paramaters of related to voting. */
17
+ votingParams?: VotingParams;
18
+ /** params defines all the paramaters of related to tally. */
19
+ tallyParams?: TallyParams;
20
+ }
21
+ /** GenesisState defines the gov module's genesis state. */
22
+ export interface GenesisStateSDKType {
23
+ /** starting_proposal_id is the ID of the starting proposal. */
24
+ starting_proposal_id: Long;
25
+ /** deposits defines all the deposits present at genesis. */
26
+ deposits: DepositSDKType[];
27
+ /** votes defines all the votes present at genesis. */
28
+ votes: VoteSDKType[];
29
+ /** proposals defines all the proposals present at genesis. */
30
+ proposals: ProposalSDKType[];
31
+ /** params defines all the paramaters of related to deposit. */
32
+ deposit_params?: DepositParamsSDKType;
33
+ /** params defines all the paramaters of related to voting. */
34
+ voting_params?: VotingParamsSDKType;
35
+ /** params defines all the paramaters of related to tally. */
36
+ tally_params?: TallyParamsSDKType;
37
+ }
38
+ export declare const GenesisState: {
39
+ encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
40
+ decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
41
+ fromPartial(object: DeepPartial<GenesisState>): GenesisState;
42
+ };
@@ -0,0 +1,338 @@
1
+ import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
2
+ import { Any, AnySDKType } from "../../../google/protobuf/any";
3
+ import { Duration, DurationSDKType } from "../../../google/protobuf/duration";
4
+ import * as _m0 from "protobufjs/minimal";
5
+ import { DeepPartial, Long } from "../../../helpers";
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
+ /** VoteOption enumerates the valid vote options for a given governance proposal. */
21
+ export declare enum VoteOptionSDKType {
22
+ /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
23
+ VOTE_OPTION_UNSPECIFIED = 0,
24
+ /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
25
+ VOTE_OPTION_YES = 1,
26
+ /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
27
+ VOTE_OPTION_ABSTAIN = 2,
28
+ /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
29
+ VOTE_OPTION_NO = 3,
30
+ /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
31
+ VOTE_OPTION_NO_WITH_VETO = 4,
32
+ UNRECOGNIZED = -1
33
+ }
34
+ export declare function voteOptionFromJSON(object: any): VoteOption;
35
+ export declare function voteOptionToJSON(object: VoteOption): string;
36
+ /** ProposalStatus enumerates the valid statuses of a proposal. */
37
+ export declare enum ProposalStatus {
38
+ /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */
39
+ PROPOSAL_STATUS_UNSPECIFIED = 0,
40
+ /**
41
+ * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
42
+ * period.
43
+ */
44
+ PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
45
+ /**
46
+ * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
47
+ * period.
48
+ */
49
+ PROPOSAL_STATUS_VOTING_PERIOD = 2,
50
+ /**
51
+ * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
52
+ * passed.
53
+ */
54
+ PROPOSAL_STATUS_PASSED = 3,
55
+ /**
56
+ * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
57
+ * been rejected.
58
+ */
59
+ PROPOSAL_STATUS_REJECTED = 4,
60
+ /**
61
+ * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
62
+ * failed.
63
+ */
64
+ PROPOSAL_STATUS_FAILED = 5,
65
+ UNRECOGNIZED = -1
66
+ }
67
+ /** ProposalStatus enumerates the valid statuses of a proposal. */
68
+ export declare enum ProposalStatusSDKType {
69
+ /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */
70
+ PROPOSAL_STATUS_UNSPECIFIED = 0,
71
+ /**
72
+ * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
73
+ * period.
74
+ */
75
+ PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
76
+ /**
77
+ * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
78
+ * period.
79
+ */
80
+ PROPOSAL_STATUS_VOTING_PERIOD = 2,
81
+ /**
82
+ * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
83
+ * passed.
84
+ */
85
+ PROPOSAL_STATUS_PASSED = 3,
86
+ /**
87
+ * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
88
+ * been rejected.
89
+ */
90
+ PROPOSAL_STATUS_REJECTED = 4,
91
+ /**
92
+ * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
93
+ * failed.
94
+ */
95
+ PROPOSAL_STATUS_FAILED = 5,
96
+ UNRECOGNIZED = -1
97
+ }
98
+ export declare function proposalStatusFromJSON(object: any): ProposalStatus;
99
+ export declare function proposalStatusToJSON(object: ProposalStatus): string;
100
+ /**
101
+ * WeightedVoteOption defines a unit of vote for vote split.
102
+ *
103
+ * Since: cosmos-sdk 0.43
104
+ */
105
+ export interface WeightedVoteOption {
106
+ option: VoteOption;
107
+ weight: string;
108
+ }
109
+ /**
110
+ * WeightedVoteOption defines a unit of vote for vote split.
111
+ *
112
+ * Since: cosmos-sdk 0.43
113
+ */
114
+ export interface WeightedVoteOptionSDKType {
115
+ option: VoteOptionSDKType;
116
+ weight: string;
117
+ }
118
+ /**
119
+ * TextProposal defines a standard text proposal whose changes need to be
120
+ * manually updated in case of approval.
121
+ */
122
+ export interface TextProposal {
123
+ title: string;
124
+ description: string;
125
+ }
126
+ /**
127
+ * TextProposal defines a standard text proposal whose changes need to be
128
+ * manually updated in case of approval.
129
+ */
130
+ export interface TextProposalSDKType {
131
+ title: string;
132
+ description: string;
133
+ }
134
+ /**
135
+ * Deposit defines an amount deposited by an account address to an active
136
+ * proposal.
137
+ */
138
+ export interface Deposit {
139
+ proposalId: Long;
140
+ depositor: string;
141
+ amount: Coin[];
142
+ }
143
+ /**
144
+ * Deposit defines an amount deposited by an account address to an active
145
+ * proposal.
146
+ */
147
+ export interface DepositSDKType {
148
+ proposal_id: Long;
149
+ depositor: string;
150
+ amount: CoinSDKType[];
151
+ }
152
+ /** Proposal defines the core field members of a governance proposal. */
153
+ export interface Proposal {
154
+ proposalId: Long;
155
+ content?: Any;
156
+ status: ProposalStatus;
157
+ /**
158
+ * final_tally_result is the final tally result of the proposal. When
159
+ * querying a proposal via gRPC, this field is not populated until the
160
+ * proposal's voting period has ended.
161
+ */
162
+ finalTallyResult?: TallyResult;
163
+ submitTime?: Date;
164
+ depositEndTime?: Date;
165
+ totalDeposit: Coin[];
166
+ votingStartTime?: Date;
167
+ votingEndTime?: Date;
168
+ }
169
+ /** Proposal defines the core field members of a governance proposal. */
170
+ export interface ProposalSDKType {
171
+ proposal_id: Long;
172
+ content?: AnySDKType;
173
+ status: ProposalStatusSDKType;
174
+ /**
175
+ * final_tally_result is the final tally result of the proposal. When
176
+ * querying a proposal via gRPC, this field is not populated until the
177
+ * proposal's voting period has ended.
178
+ */
179
+ final_tally_result?: TallyResultSDKType;
180
+ submit_time?: Date;
181
+ deposit_end_time?: Date;
182
+ total_deposit: CoinSDKType[];
183
+ voting_start_time?: Date;
184
+ voting_end_time?: Date;
185
+ }
186
+ /** TallyResult defines a standard tally for a governance proposal. */
187
+ export interface TallyResult {
188
+ yes: string;
189
+ abstain: string;
190
+ no: string;
191
+ noWithVeto: string;
192
+ }
193
+ /** TallyResult defines a standard tally for a governance proposal. */
194
+ export interface TallyResultSDKType {
195
+ yes: string;
196
+ abstain: string;
197
+ no: string;
198
+ no_with_veto: string;
199
+ }
200
+ /**
201
+ * Vote defines a vote on a governance proposal.
202
+ * A Vote consists of a proposal ID, the voter, and the vote option.
203
+ */
204
+ export interface Vote {
205
+ proposalId: Long;
206
+ voter: string;
207
+ /**
208
+ * Deprecated: Prefer to use `options` instead. This field is set in queries
209
+ * if and only if `len(options) == 1` and that option has weight 1. In all
210
+ * other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
211
+ */
212
+ /** @deprecated */
213
+ option: VoteOption;
214
+ /** Since: cosmos-sdk 0.43 */
215
+ options: WeightedVoteOption[];
216
+ }
217
+ /**
218
+ * Vote defines a vote on a governance proposal.
219
+ * A Vote consists of a proposal ID, the voter, and the vote option.
220
+ */
221
+ export interface VoteSDKType {
222
+ proposal_id: Long;
223
+ voter: string;
224
+ /**
225
+ * Deprecated: Prefer to use `options` instead. This field is set in queries
226
+ * if and only if `len(options) == 1` and that option has weight 1. In all
227
+ * other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
228
+ */
229
+ /** @deprecated */
230
+ option: VoteOptionSDKType;
231
+ /** Since: cosmos-sdk 0.43 */
232
+ options: WeightedVoteOptionSDKType[];
233
+ }
234
+ /** DepositParams defines the params for deposits on governance proposals. */
235
+ export interface DepositParams {
236
+ /** Minimum deposit for a proposal to enter voting period. */
237
+ minDeposit: Coin[];
238
+ /**
239
+ * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
240
+ * months.
241
+ */
242
+ maxDepositPeriod?: Duration;
243
+ }
244
+ /** DepositParams defines the params for deposits on governance proposals. */
245
+ export interface DepositParamsSDKType {
246
+ /** Minimum deposit for a proposal to enter voting period. */
247
+ min_deposit: CoinSDKType[];
248
+ /**
249
+ * Maximum period for Atom holders to deposit on a proposal. Initial value: 2
250
+ * months.
251
+ */
252
+ max_deposit_period?: DurationSDKType;
253
+ }
254
+ /** VotingParams defines the params for voting on governance proposals. */
255
+ export interface VotingParams {
256
+ /** Length of the voting period. */
257
+ votingPeriod?: Duration;
258
+ }
259
+ /** VotingParams defines the params for voting on governance proposals. */
260
+ export interface VotingParamsSDKType {
261
+ /** Length of the voting period. */
262
+ voting_period?: DurationSDKType;
263
+ }
264
+ /** TallyParams defines the params for tallying votes on governance proposals. */
265
+ export interface TallyParams {
266
+ /**
267
+ * Minimum percentage of total stake needed to vote for a result to be
268
+ * considered valid.
269
+ */
270
+ quorum: Uint8Array;
271
+ /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
272
+ threshold: Uint8Array;
273
+ /**
274
+ * Minimum value of Veto votes to Total votes ratio for proposal to be
275
+ * vetoed. Default value: 1/3.
276
+ */
277
+ vetoThreshold: Uint8Array;
278
+ }
279
+ /** TallyParams defines the params for tallying votes on governance proposals. */
280
+ export interface TallyParamsSDKType {
281
+ /**
282
+ * Minimum percentage of total stake needed to vote for a result to be
283
+ * considered valid.
284
+ */
285
+ quorum: Uint8Array;
286
+ /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
287
+ threshold: Uint8Array;
288
+ /**
289
+ * Minimum value of Veto votes to Total votes ratio for proposal to be
290
+ * vetoed. Default value: 1/3.
291
+ */
292
+ veto_threshold: Uint8Array;
293
+ }
294
+ export declare const WeightedVoteOption: {
295
+ encode(message: WeightedVoteOption, writer?: _m0.Writer): _m0.Writer;
296
+ decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption;
297
+ fromPartial(object: DeepPartial<WeightedVoteOption>): WeightedVoteOption;
298
+ };
299
+ export declare const TextProposal: {
300
+ encode(message: TextProposal, writer?: _m0.Writer): _m0.Writer;
301
+ decode(input: _m0.Reader | Uint8Array, length?: number): TextProposal;
302
+ fromPartial(object: DeepPartial<TextProposal>): TextProposal;
303
+ };
304
+ export declare const Deposit: {
305
+ encode(message: Deposit, writer?: _m0.Writer): _m0.Writer;
306
+ decode(input: _m0.Reader | Uint8Array, length?: number): Deposit;
307
+ fromPartial(object: DeepPartial<Deposit>): Deposit;
308
+ };
309
+ export declare const Proposal: {
310
+ encode(message: Proposal, writer?: _m0.Writer): _m0.Writer;
311
+ decode(input: _m0.Reader | Uint8Array, length?: number): Proposal;
312
+ fromPartial(object: DeepPartial<Proposal>): Proposal;
313
+ };
314
+ export declare const TallyResult: {
315
+ encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer;
316
+ decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult;
317
+ fromPartial(object: DeepPartial<TallyResult>): TallyResult;
318
+ };
319
+ export declare const Vote: {
320
+ encode(message: Vote, writer?: _m0.Writer): _m0.Writer;
321
+ decode(input: _m0.Reader | Uint8Array, length?: number): Vote;
322
+ fromPartial(object: DeepPartial<Vote>): Vote;
323
+ };
324
+ export declare const DepositParams: {
325
+ encode(message: DepositParams, writer?: _m0.Writer): _m0.Writer;
326
+ decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams;
327
+ fromPartial(object: DeepPartial<DepositParams>): DepositParams;
328
+ };
329
+ export declare const VotingParams: {
330
+ encode(message: VotingParams, writer?: _m0.Writer): _m0.Writer;
331
+ decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams;
332
+ fromPartial(object: DeepPartial<VotingParams>): VotingParams;
333
+ };
334
+ export declare const TallyParams: {
335
+ encode(message: TallyParams, writer?: _m0.Writer): _m0.Writer;
336
+ decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams;
337
+ fromPartial(object: DeepPartial<TallyParams>): TallyParams;
338
+ };