coreum-js 2.11.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.
- package/dist/main/client/index.d.ts +2 -1
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/main/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/params.js +14 -6
- package/dist/main/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/main/coreum/asset/ft/v1/query.js +116 -54
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/main/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/nft/v1/params.js +14 -6
- package/dist/main/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/main/coreum/asset/nft/v1/query.js +49 -22
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/main/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/query.js +22 -11
- package/dist/main/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/main/coreum/nft/v1beta1/query.js +83 -39
- package/dist/main/cosmos/extensions/bank.d.ts +8 -8
- package/dist/main/cosmos/extensions/bank.js +2 -2
- package/dist/main/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/main/cosmos/extensions/distribution.js +1 -1
- package/dist/main/cosmos/extensions/gov.d.ts +21 -21
- package/dist/main/cosmos/extensions/gov.js +1 -1
- package/dist/main/cosmos/index.d.ts +12 -21
- package/dist/main/cosmos/index.js +50 -42
- package/dist/main/types/msgs.d.ts +4 -4
- package/dist/main/wasm/v1/authz.d.ts +1 -1
- package/dist/main/wasm/v1/authz.js +1 -1
- package/dist/main/wasm/v1/proposal.d.ts +1 -1
- package/dist/main/wasm/v1/proposal.js +1 -1
- package/dist/main/wasm/v1/tx.d.ts +1 -1
- package/dist/main/wasm/v1/tx.js +1 -1
- package/dist/module/client/index.d.ts +2 -1
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/module/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/params.js +14 -6
- package/dist/module/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/module/coreum/asset/ft/v1/query.js +116 -54
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/module/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/nft/v1/params.js +14 -6
- package/dist/module/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/module/coreum/asset/nft/v1/query.js +49 -22
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/module/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/query.js +22 -11
- package/dist/module/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/module/coreum/nft/v1beta1/query.js +83 -39
- package/dist/module/cosmos/extensions/bank.d.ts +8 -8
- package/dist/module/cosmos/extensions/bank.js +2 -2
- package/dist/module/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/module/cosmos/extensions/distribution.js +1 -1
- package/dist/module/cosmos/extensions/gov.d.ts +21 -21
- package/dist/module/cosmos/extensions/gov.js +1 -1
- package/dist/module/cosmos/index.d.ts +12 -21
- package/dist/module/cosmos/index.js +29 -19
- package/dist/module/types/msgs.d.ts +4 -4
- package/dist/module/wasm/v1/authz.d.ts +1 -1
- package/dist/module/wasm/v1/authz.js +1 -1
- package/dist/module/wasm/v1/proposal.d.ts +1 -1
- package/dist/module/wasm/v1/proposal.js +1 -1
- package/dist/module/wasm/v1/tx.d.ts +1 -1
- package/dist/module/wasm/v1/tx.js +1 -1
- package/package.json +1 -1
- package/dist/main/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/main/cosmos/auth/v1beta1/auth.js +0 -437
- package/dist/main/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/main/cosmos/authz/v1beta1/authz.js +0 -319
- package/dist/main/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/main/cosmos/authz/v1beta1/event.js +0 -162
- package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/main/cosmos/authz/v1beta1/genesis.js +0 -68
- package/dist/main/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/authz/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/main/cosmos/authz/v1beta1/query.js +0 -512
- package/dist/main/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/main/cosmos/authz/v1beta1/tx.js +0 -435
- package/dist/main/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/main/cosmos/bank/v1beta1/authz.js +0 -83
- package/dist/main/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/main/cosmos/bank/v1beta1/bank.js +0 -556
- package/dist/main/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/main/cosmos/bank/v1beta1/genesis.js +0 -207
- package/dist/main/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/bank/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/main/cosmos/bank/v1beta1/query.js +0 -1595
- package/dist/main/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/main/cosmos/bank/v1beta1/tx.js +0 -498
- package/dist/main/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/main/cosmos/base/query/v1beta1/pagination.js +0 -241
- package/dist/main/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/main/cosmos/base/v1beta1/coin.js +0 -241
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.js +0 -172
- package/dist/main/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/main/cosmos/distribution/v1beta1/distribution.js +0 -887
- package/dist/main/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/main/cosmos/distribution/v1beta1/genesis.js +0 -784
- package/dist/main/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/distribution/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/main/cosmos/distribution/v1beta1/query.js +0 -1335
- package/dist/main/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/main/cosmos/distribution/v1beta1/tx.js +0 -824
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.js +0 -412
- package/dist/main/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/main/cosmos/feegrant/v1beta1/genesis.js +0 -66
- package/dist/main/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/feegrant/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/main/cosmos/feegrant/v1beta1/query.js +0 -460
- package/dist/main/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/main/cosmos/feegrant/v1beta1/tx.js +0 -252
- package/dist/main/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/main/cosmos/gov/v1beta1/genesis.js +0 -194
- package/dist/main/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/main/cosmos/gov/v1beta1/gov.js +0 -1037
- package/dist/main/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/gov/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/main/cosmos/gov/v1beta1/query.js +0 -1186
- package/dist/main/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/gov/v1beta1/tx.js +0 -566
- package/dist/main/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/main/cosmos/msg/v1/msg.js +0 -5
- package/dist/main/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/main/cosmos/staking/v1beta1/authz.js +0 -224
- package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/main/cosmos/staking/v1beta1/genesis.js +0 -305
- package/dist/main/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/staking/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/main/cosmos/staking/v1beta1/query.js +0 -2019
- package/dist/main/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/main/cosmos/staking/v1beta1/staking.js +0 -2127
- package/dist/main/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/main/cosmos/staking/v1beta1/tx.js +0 -1141
- package/dist/main/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/main/cosmos/tx/signing/v1beta1/signing.js +0 -546
- package/dist/main/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/main/cosmos/tx/v1beta1/tx.js +0 -1276
- package/dist/main/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/vesting/v1beta1/tx.js +0 -454
- package/dist/main/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/main/cosmos/vesting/v1beta1/vesting.js +0 -498
- package/dist/module/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/module/cosmos/auth/v1beta1/auth.js +0 -427
- package/dist/module/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/module/cosmos/authz/v1beta1/authz.js +0 -309
- package/dist/module/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/module/cosmos/authz/v1beta1/event.js +0 -154
- package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/module/cosmos/authz/v1beta1/genesis.js +0 -61
- package/dist/module/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/authz/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/module/cosmos/authz/v1beta1/query.js +0 -501
- package/dist/module/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/module/cosmos/authz/v1beta1/tx.js +0 -426
- package/dist/module/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/module/cosmos/bank/v1beta1/authz.js +0 -76
- package/dist/module/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/module/cosmos/bank/v1beta1/bank.js +0 -543
- package/dist/module/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/module/cosmos/bank/v1beta1/genesis.js +0 -199
- package/dist/module/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/bank/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/module/cosmos/bank/v1beta1/query.js +0 -1575
- package/dist/module/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/module/cosmos/bank/v1beta1/tx.js +0 -489
- package/dist/module/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/module/cosmos/base/query/v1beta1/pagination.js +0 -233
- package/dist/module/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/module/cosmos/base/v1beta1/coin.js +0 -231
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.js +0 -164
- package/dist/module/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/module/cosmos/distribution/v1beta1/distribution.js +0 -869
- package/dist/module/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/module/cosmos/distribution/v1beta1/genesis.js +0 -770
- package/dist/module/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/distribution/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/module/cosmos/distribution/v1beta1/query.js +0 -1315
- package/dist/module/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/module/cosmos/distribution/v1beta1/tx.js +0 -810
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.js +0 -402
- package/dist/module/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/module/cosmos/feegrant/v1beta1/genesis.js +0 -59
- package/dist/module/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/feegrant/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/module/cosmos/feegrant/v1beta1/query.js +0 -450
- package/dist/module/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/module/cosmos/feegrant/v1beta1/tx.js +0 -245
- package/dist/module/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/module/cosmos/gov/v1beta1/genesis.js +0 -187
- package/dist/module/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/module/cosmos/gov/v1beta1/gov.js +0 -1019
- package/dist/module/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/gov/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/module/cosmos/gov/v1beta1/query.js +0 -1170
- package/dist/module/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/gov/v1beta1/tx.js +0 -556
- package/dist/module/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/module/cosmos/msg/v1/msg.js +0 -2
- package/dist/module/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/module/cosmos/staking/v1beta1/authz.js +0 -214
- package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/module/cosmos/staking/v1beta1/genesis.js +0 -297
- package/dist/module/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/staking/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/module/cosmos/staking/v1beta1/query.js +0 -1995
- package/dist/module/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/module/cosmos/staking/v1beta1/staking.js +0 -2097
- package/dist/module/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/module/cosmos/staking/v1beta1/tx.js +0 -1127
- package/dist/module/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/module/cosmos/tx/signing/v1beta1/signing.js +0 -534
- package/dist/module/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/module/cosmos/tx/v1beta1/tx.js +0 -1258
- package/dist/module/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/vesting/v1beta1/tx.js +0 -446
- package/dist/module/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/module/cosmos/vesting/v1beta1/vesting.js +0 -488
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Coin } from "../../base/v1beta1/coin";
|
|
3
|
-
import { Any } from "../../../google/protobuf/any";
|
|
4
|
-
import { VoteOption, WeightedVoteOption } from "./gov";
|
|
5
|
-
export declare const protobufPackage = "cosmos.gov.v1beta1";
|
|
6
|
-
/**
|
|
7
|
-
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
|
|
8
|
-
* proposal Content.
|
|
9
|
-
*/
|
|
10
|
-
export interface MsgSubmitProposal {
|
|
11
|
-
/** content is the proposal's content. */
|
|
12
|
-
content: Any | undefined;
|
|
13
|
-
/** initial_deposit is the deposit value that must be paid at proposal submission. */
|
|
14
|
-
initialDeposit: Coin[];
|
|
15
|
-
/** proposer is the account address of the proposer. */
|
|
16
|
-
proposer: string;
|
|
17
|
-
}
|
|
18
|
-
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
|
19
|
-
export interface MsgSubmitProposalResponse {
|
|
20
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
21
|
-
proposalId: number;
|
|
22
|
-
}
|
|
23
|
-
/** MsgVote defines a message to cast a vote. */
|
|
24
|
-
export interface MsgVote {
|
|
25
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
26
|
-
proposalId: number;
|
|
27
|
-
/** voter is the voter address for the proposal. */
|
|
28
|
-
voter: string;
|
|
29
|
-
/** option defines the vote option. */
|
|
30
|
-
option: VoteOption;
|
|
31
|
-
}
|
|
32
|
-
/** MsgVoteResponse defines the Msg/Vote response type. */
|
|
33
|
-
export interface MsgVoteResponse {
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* MsgVoteWeighted defines a message to cast a vote.
|
|
37
|
-
*
|
|
38
|
-
* Since: cosmos-sdk 0.43
|
|
39
|
-
*/
|
|
40
|
-
export interface MsgVoteWeighted {
|
|
41
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
42
|
-
proposalId: number;
|
|
43
|
-
/** voter is the voter address for the proposal. */
|
|
44
|
-
voter: string;
|
|
45
|
-
/** options defines the weighted vote options. */
|
|
46
|
-
options: WeightedVoteOption[];
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
|
50
|
-
*
|
|
51
|
-
* Since: cosmos-sdk 0.43
|
|
52
|
-
*/
|
|
53
|
-
export interface MsgVoteWeightedResponse {
|
|
54
|
-
}
|
|
55
|
-
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
|
56
|
-
export interface MsgDeposit {
|
|
57
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
58
|
-
proposalId: number;
|
|
59
|
-
/** depositor defines the deposit addresses from the proposals. */
|
|
60
|
-
depositor: string;
|
|
61
|
-
/** amount to be deposited by depositor. */
|
|
62
|
-
amount: Coin[];
|
|
63
|
-
}
|
|
64
|
-
/** MsgDepositResponse defines the Msg/Deposit response type. */
|
|
65
|
-
export interface MsgDepositResponse {
|
|
66
|
-
}
|
|
67
|
-
export declare const MsgSubmitProposal: {
|
|
68
|
-
encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer;
|
|
69
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal;
|
|
70
|
-
fromJSON(object: any): MsgSubmitProposal;
|
|
71
|
-
toJSON(message: MsgSubmitProposal): unknown;
|
|
72
|
-
create<I extends {
|
|
73
|
-
content?: {
|
|
74
|
-
typeUrl?: string;
|
|
75
|
-
value?: Uint8Array;
|
|
76
|
-
};
|
|
77
|
-
initialDeposit?: {
|
|
78
|
-
denom?: string;
|
|
79
|
-
amount?: string;
|
|
80
|
-
}[];
|
|
81
|
-
proposer?: string;
|
|
82
|
-
} & {
|
|
83
|
-
content?: {
|
|
84
|
-
typeUrl?: string;
|
|
85
|
-
value?: Uint8Array;
|
|
86
|
-
} & {
|
|
87
|
-
typeUrl?: string;
|
|
88
|
-
value?: Uint8Array;
|
|
89
|
-
} & { [K in Exclude<keyof I["content"], keyof Any>]: never; };
|
|
90
|
-
initialDeposit?: {
|
|
91
|
-
denom?: string;
|
|
92
|
-
amount?: string;
|
|
93
|
-
}[] & ({
|
|
94
|
-
denom?: string;
|
|
95
|
-
amount?: string;
|
|
96
|
-
} & {
|
|
97
|
-
denom?: string;
|
|
98
|
-
amount?: string;
|
|
99
|
-
} & { [K_1 in Exclude<keyof I["initialDeposit"][number], keyof Coin>]: never; })[] & { [K_2 in Exclude<keyof I["initialDeposit"], keyof {
|
|
100
|
-
denom?: string;
|
|
101
|
-
amount?: string;
|
|
102
|
-
}[]>]: never; };
|
|
103
|
-
proposer?: string;
|
|
104
|
-
} & { [K_3 in Exclude<keyof I, keyof MsgSubmitProposal>]: never; }>(base?: I): MsgSubmitProposal;
|
|
105
|
-
fromPartial<I_1 extends {
|
|
106
|
-
content?: {
|
|
107
|
-
typeUrl?: string;
|
|
108
|
-
value?: Uint8Array;
|
|
109
|
-
};
|
|
110
|
-
initialDeposit?: {
|
|
111
|
-
denom?: string;
|
|
112
|
-
amount?: string;
|
|
113
|
-
}[];
|
|
114
|
-
proposer?: string;
|
|
115
|
-
} & {
|
|
116
|
-
content?: {
|
|
117
|
-
typeUrl?: string;
|
|
118
|
-
value?: Uint8Array;
|
|
119
|
-
} & {
|
|
120
|
-
typeUrl?: string;
|
|
121
|
-
value?: Uint8Array;
|
|
122
|
-
} & { [K_4 in Exclude<keyof I_1["content"], keyof Any>]: never; };
|
|
123
|
-
initialDeposit?: {
|
|
124
|
-
denom?: string;
|
|
125
|
-
amount?: string;
|
|
126
|
-
}[] & ({
|
|
127
|
-
denom?: string;
|
|
128
|
-
amount?: string;
|
|
129
|
-
} & {
|
|
130
|
-
denom?: string;
|
|
131
|
-
amount?: string;
|
|
132
|
-
} & { [K_5 in Exclude<keyof I_1["initialDeposit"][number], keyof Coin>]: never; })[] & { [K_6 in Exclude<keyof I_1["initialDeposit"], keyof {
|
|
133
|
-
denom?: string;
|
|
134
|
-
amount?: string;
|
|
135
|
-
}[]>]: never; };
|
|
136
|
-
proposer?: string;
|
|
137
|
-
} & { [K_7 in Exclude<keyof I_1, keyof MsgSubmitProposal>]: never; }>(object: I_1): MsgSubmitProposal;
|
|
138
|
-
};
|
|
139
|
-
export declare const MsgSubmitProposalResponse: {
|
|
140
|
-
encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
|
141
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse;
|
|
142
|
-
fromJSON(object: any): MsgSubmitProposalResponse;
|
|
143
|
-
toJSON(message: MsgSubmitProposalResponse): unknown;
|
|
144
|
-
create<I extends {
|
|
145
|
-
proposalId?: number;
|
|
146
|
-
} & {
|
|
147
|
-
proposalId?: number;
|
|
148
|
-
} & { [K in Exclude<keyof I, "proposalId">]: never; }>(base?: I): MsgSubmitProposalResponse;
|
|
149
|
-
fromPartial<I_1 extends {
|
|
150
|
-
proposalId?: number;
|
|
151
|
-
} & {
|
|
152
|
-
proposalId?: number;
|
|
153
|
-
} & { [K_1 in Exclude<keyof I_1, "proposalId">]: never; }>(object: I_1): MsgSubmitProposalResponse;
|
|
154
|
-
};
|
|
155
|
-
export declare const MsgVote: {
|
|
156
|
-
encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer;
|
|
157
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote;
|
|
158
|
-
fromJSON(object: any): MsgVote;
|
|
159
|
-
toJSON(message: MsgVote): unknown;
|
|
160
|
-
create<I extends {
|
|
161
|
-
proposalId?: number;
|
|
162
|
-
voter?: string;
|
|
163
|
-
option?: VoteOption;
|
|
164
|
-
} & {
|
|
165
|
-
proposalId?: number;
|
|
166
|
-
voter?: string;
|
|
167
|
-
option?: VoteOption;
|
|
168
|
-
} & { [K in Exclude<keyof I, keyof MsgVote>]: never; }>(base?: I): MsgVote;
|
|
169
|
-
fromPartial<I_1 extends {
|
|
170
|
-
proposalId?: number;
|
|
171
|
-
voter?: string;
|
|
172
|
-
option?: VoteOption;
|
|
173
|
-
} & {
|
|
174
|
-
proposalId?: number;
|
|
175
|
-
voter?: string;
|
|
176
|
-
option?: VoteOption;
|
|
177
|
-
} & { [K_1 in Exclude<keyof I_1, keyof MsgVote>]: never; }>(object: I_1): MsgVote;
|
|
178
|
-
};
|
|
179
|
-
export declare const MsgVoteResponse: {
|
|
180
|
-
encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer;
|
|
181
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse;
|
|
182
|
-
fromJSON(_: any): MsgVoteResponse;
|
|
183
|
-
toJSON(_: MsgVoteResponse): unknown;
|
|
184
|
-
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgVoteResponse;
|
|
185
|
-
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgVoteResponse;
|
|
186
|
-
};
|
|
187
|
-
export declare const MsgVoteWeighted: {
|
|
188
|
-
encode(message: MsgVoteWeighted, writer?: _m0.Writer): _m0.Writer;
|
|
189
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeighted;
|
|
190
|
-
fromJSON(object: any): MsgVoteWeighted;
|
|
191
|
-
toJSON(message: MsgVoteWeighted): unknown;
|
|
192
|
-
create<I extends {
|
|
193
|
-
proposalId?: number;
|
|
194
|
-
voter?: string;
|
|
195
|
-
options?: {
|
|
196
|
-
option?: VoteOption;
|
|
197
|
-
weight?: string;
|
|
198
|
-
}[];
|
|
199
|
-
} & {
|
|
200
|
-
proposalId?: number;
|
|
201
|
-
voter?: string;
|
|
202
|
-
options?: {
|
|
203
|
-
option?: VoteOption;
|
|
204
|
-
weight?: string;
|
|
205
|
-
}[] & ({
|
|
206
|
-
option?: VoteOption;
|
|
207
|
-
weight?: string;
|
|
208
|
-
} & {
|
|
209
|
-
option?: VoteOption;
|
|
210
|
-
weight?: string;
|
|
211
|
-
} & { [K in Exclude<keyof I["options"][number], keyof WeightedVoteOption>]: never; })[] & { [K_1 in Exclude<keyof I["options"], keyof {
|
|
212
|
-
option?: VoteOption;
|
|
213
|
-
weight?: string;
|
|
214
|
-
}[]>]: never; };
|
|
215
|
-
} & { [K_2 in Exclude<keyof I, keyof MsgVoteWeighted>]: never; }>(base?: I): MsgVoteWeighted;
|
|
216
|
-
fromPartial<I_1 extends {
|
|
217
|
-
proposalId?: number;
|
|
218
|
-
voter?: string;
|
|
219
|
-
options?: {
|
|
220
|
-
option?: VoteOption;
|
|
221
|
-
weight?: string;
|
|
222
|
-
}[];
|
|
223
|
-
} & {
|
|
224
|
-
proposalId?: number;
|
|
225
|
-
voter?: string;
|
|
226
|
-
options?: {
|
|
227
|
-
option?: VoteOption;
|
|
228
|
-
weight?: string;
|
|
229
|
-
}[] & ({
|
|
230
|
-
option?: VoteOption;
|
|
231
|
-
weight?: string;
|
|
232
|
-
} & {
|
|
233
|
-
option?: VoteOption;
|
|
234
|
-
weight?: string;
|
|
235
|
-
} & { [K_3 in Exclude<keyof I_1["options"][number], keyof WeightedVoteOption>]: never; })[] & { [K_4 in Exclude<keyof I_1["options"], keyof {
|
|
236
|
-
option?: VoteOption;
|
|
237
|
-
weight?: string;
|
|
238
|
-
}[]>]: never; };
|
|
239
|
-
} & { [K_5 in Exclude<keyof I_1, keyof MsgVoteWeighted>]: never; }>(object: I_1): MsgVoteWeighted;
|
|
240
|
-
};
|
|
241
|
-
export declare const MsgVoteWeightedResponse: {
|
|
242
|
-
encode(_: MsgVoteWeightedResponse, writer?: _m0.Writer): _m0.Writer;
|
|
243
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeightedResponse;
|
|
244
|
-
fromJSON(_: any): MsgVoteWeightedResponse;
|
|
245
|
-
toJSON(_: MsgVoteWeightedResponse): unknown;
|
|
246
|
-
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgVoteWeightedResponse;
|
|
247
|
-
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgVoteWeightedResponse;
|
|
248
|
-
};
|
|
249
|
-
export declare const MsgDeposit: {
|
|
250
|
-
encode(message: MsgDeposit, writer?: _m0.Writer): _m0.Writer;
|
|
251
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeposit;
|
|
252
|
-
fromJSON(object: any): MsgDeposit;
|
|
253
|
-
toJSON(message: MsgDeposit): unknown;
|
|
254
|
-
create<I extends {
|
|
255
|
-
proposalId?: number;
|
|
256
|
-
depositor?: string;
|
|
257
|
-
amount?: {
|
|
258
|
-
denom?: string;
|
|
259
|
-
amount?: string;
|
|
260
|
-
}[];
|
|
261
|
-
} & {
|
|
262
|
-
proposalId?: number;
|
|
263
|
-
depositor?: string;
|
|
264
|
-
amount?: {
|
|
265
|
-
denom?: string;
|
|
266
|
-
amount?: string;
|
|
267
|
-
}[] & ({
|
|
268
|
-
denom?: string;
|
|
269
|
-
amount?: string;
|
|
270
|
-
} & {
|
|
271
|
-
denom?: string;
|
|
272
|
-
amount?: string;
|
|
273
|
-
} & { [K in Exclude<keyof I["amount"][number], keyof Coin>]: never; })[] & { [K_1 in Exclude<keyof I["amount"], keyof {
|
|
274
|
-
denom?: string;
|
|
275
|
-
amount?: string;
|
|
276
|
-
}[]>]: never; };
|
|
277
|
-
} & { [K_2 in Exclude<keyof I, keyof MsgDeposit>]: never; }>(base?: I): MsgDeposit;
|
|
278
|
-
fromPartial<I_1 extends {
|
|
279
|
-
proposalId?: number;
|
|
280
|
-
depositor?: string;
|
|
281
|
-
amount?: {
|
|
282
|
-
denom?: string;
|
|
283
|
-
amount?: string;
|
|
284
|
-
}[];
|
|
285
|
-
} & {
|
|
286
|
-
proposalId?: number;
|
|
287
|
-
depositor?: string;
|
|
288
|
-
amount?: {
|
|
289
|
-
denom?: string;
|
|
290
|
-
amount?: string;
|
|
291
|
-
}[] & ({
|
|
292
|
-
denom?: string;
|
|
293
|
-
amount?: string;
|
|
294
|
-
} & {
|
|
295
|
-
denom?: string;
|
|
296
|
-
amount?: string;
|
|
297
|
-
} & { [K_3 in Exclude<keyof I_1["amount"][number], keyof Coin>]: never; })[] & { [K_4 in Exclude<keyof I_1["amount"], keyof {
|
|
298
|
-
denom?: string;
|
|
299
|
-
amount?: string;
|
|
300
|
-
}[]>]: never; };
|
|
301
|
-
} & { [K_5 in Exclude<keyof I_1, keyof MsgDeposit>]: never; }>(object: I_1): MsgDeposit;
|
|
302
|
-
};
|
|
303
|
-
export declare const MsgDepositResponse: {
|
|
304
|
-
encode(_: MsgDepositResponse, writer?: _m0.Writer): _m0.Writer;
|
|
305
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositResponse;
|
|
306
|
-
fromJSON(_: any): MsgDepositResponse;
|
|
307
|
-
toJSON(_: MsgDepositResponse): unknown;
|
|
308
|
-
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgDepositResponse;
|
|
309
|
-
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgDepositResponse;
|
|
310
|
-
};
|
|
311
|
-
/** Msg defines the bank Msg service. */
|
|
312
|
-
export interface Msg {
|
|
313
|
-
/** SubmitProposal defines a method to create new proposal given a content. */
|
|
314
|
-
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
|
315
|
-
/** Vote defines a method to add a vote on a specific proposal. */
|
|
316
|
-
Vote(request: MsgVote): Promise<MsgVoteResponse>;
|
|
317
|
-
/**
|
|
318
|
-
* VoteWeighted defines a method to add a weighted vote on a specific proposal.
|
|
319
|
-
*
|
|
320
|
-
* Since: cosmos-sdk 0.43
|
|
321
|
-
*/
|
|
322
|
-
VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
|
|
323
|
-
/** Deposit defines a method to add deposit on a specific proposal. */
|
|
324
|
-
Deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
|
|
325
|
-
}
|
|
326
|
-
export declare class MsgClientImpl implements Msg {
|
|
327
|
-
private readonly rpc;
|
|
328
|
-
private readonly service;
|
|
329
|
-
constructor(rpc: Rpc, opts?: {
|
|
330
|
-
service?: string;
|
|
331
|
-
});
|
|
332
|
-
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
|
333
|
-
Vote(request: MsgVote): Promise<MsgVoteResponse>;
|
|
334
|
-
VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
|
|
335
|
-
Deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
|
|
336
|
-
}
|
|
337
|
-
interface Rpc {
|
|
338
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
339
|
-
}
|
|
340
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
341
|
-
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 {} ? {
|
|
342
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
343
|
-
} : Partial<T>;
|
|
344
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
345
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
346
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
347
|
-
} & {
|
|
348
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
349
|
-
};
|
|
350
|
-
export {};
|