@agoric/cosmic-proto 0.4.1-dev-76b8d53.0 → 0.4.1-dev-b78d824.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/codegen/cosmos/auth/v1beta1/query.d.ts +238 -61
- package/dist/codegen/cosmos/auth/v1beta1/query.js +311 -69
- package/dist/codegen/cosmos/auth/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/authz/v1beta1/authz.d.ts +6 -5
- package/dist/codegen/cosmos/authz/v1beta1/authz.js +6 -3
- package/dist/codegen/cosmos/authz/v1beta1/authz.js.map +1 -1
- package/dist/codegen/cosmos/authz/v1beta1/tx.d.ts +2 -4
- package/dist/codegen/cosmos/authz/v1beta1/tx.js +2 -10
- package/dist/codegen/cosmos/authz/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/bank/v1beta1/query.d.ts +22 -2
- package/dist/codegen/cosmos/bank/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.d.ts +1 -1
- package/dist/codegen/cosmos/base/node/v1beta1/query.d.ts +45 -0
- package/dist/codegen/cosmos/base/node/v1beta1/query.js +111 -0
- package/dist/codegen/cosmos/base/node/v1beta1/query.js.map +1 -0
- package/dist/codegen/cosmos/bundle.d.ts +3421 -3221
- package/dist/codegen/cosmos/bundle.js +76 -69
- package/dist/codegen/cosmos/bundle.js.map +1 -1
- package/dist/codegen/cosmos/crypto/keyring/v1/record.d.ts +4 -6
- package/dist/codegen/cosmos/crypto/keyring/v1/record.js +0 -11
- package/dist/codegen/cosmos/crypto/keyring/v1/record.js.map +1 -1
- package/dist/codegen/cosmos/distribution/v1beta1/tx.d.ts +2 -0
- package/dist/codegen/cosmos/distribution/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +5 -5
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +3 -3
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js.map +1 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/query.d.ts +20 -4
- package/dist/codegen/cosmos/feegrant/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.d.ts +1 -1
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +2 -2
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1/gov.d.ts +1 -1
- package/dist/codegen/cosmos/gov/v1/gov.js +1 -1
- package/dist/codegen/cosmos/gov/v1/gov.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1/query.d.ts +1 -1
- package/dist/codegen/cosmos/gov/v1/tx.d.ts +3 -7
- package/dist/codegen/cosmos/gov/v1/tx.js +2 -20
- package/dist/codegen/cosmos/gov/v1/tx.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1beta1/gov.d.ts +4 -8
- package/dist/codegen/cosmos/gov/v1beta1/gov.js +3 -21
- package/dist/codegen/cosmos/gov/v1beta1/gov.js.map +1 -1
- package/dist/codegen/cosmos/gov/v1beta1/query.d.ts +1 -1
- package/dist/codegen/cosmos/gov/v1beta1/tx.d.ts +3 -7
- package/dist/codegen/cosmos/gov/v1beta1/tx.js +2 -20
- package/dist/codegen/cosmos/gov/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/group/v1/events.d.ts +34 -1
- package/dist/codegen/cosmos/group/v1/events.js +104 -1
- package/dist/codegen/cosmos/group/v1/events.js.map +1 -1
- package/dist/codegen/cosmos/group/v1/query.d.ts +67 -0
- package/dist/codegen/cosmos/group/v1/query.js +149 -0
- package/dist/codegen/cosmos/group/v1/query.js.map +1 -1
- package/dist/codegen/cosmos/group/v1/tx.d.ts +40 -34
- package/dist/codegen/cosmos/group/v1/tx.js +93 -65
- package/dist/codegen/cosmos/group/v1/tx.js.map +1 -1
- package/dist/codegen/cosmos/group/v1/types.d.ts +118 -75
- package/dist/codegen/cosmos/group/v1/types.js +89 -117
- package/dist/codegen/cosmos/group/v1/types.js.map +1 -1
- package/dist/codegen/cosmos/params/v1beta1/query.d.ts +12 -0
- package/dist/codegen/cosmos/params/v1beta1/query.js.map +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/query.d.ts +3 -3
- package/dist/codegen/cosmos/staking/v1beta1/staking.d.ts +5 -1
- package/dist/codegen/cosmos/staking/v1beta1/staking.js.map +1 -1
- package/dist/codegen/cosmos/staking/v1beta1/tx.d.ts +68 -0
- package/dist/codegen/cosmos/staking/v1beta1/tx.js +150 -0
- package/dist/codegen/cosmos/staking/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +13 -0
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +18 -0
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js.map +1 -1
- package/dist/codegen/cosmos/tx/v1beta1/service.d.ts +24 -2
- package/dist/codegen/cosmos/tx/v1beta1/service.js +42 -0
- package/dist/codegen/cosmos/tx/v1beta1/service.js.map +1 -1
- package/dist/codegen/cosmos/tx/v1beta1/tx.d.ts +12 -5
- package/dist/codegen/cosmos/tx/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/vesting/v1beta1/tx.d.ts +206 -2
- package/dist/codegen/cosmos/vesting/v1beta1/tx.js +419 -0
- package/dist/codegen/cosmos/vesting/v1beta1/tx.js.map +1 -1
- package/dist/codegen/cosmos/vesting/v1beta1/vesting.d.ts +59 -2
- package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +132 -0
- package/dist/codegen/cosmos/vesting/v1beta1/vesting.js.map +1 -1
- package/dist/codegen/gogoproto/bundle.js +2 -2
- package/dist/codegen/google/bundle.d.ts +277 -277
- package/dist/codegen/google/bundle.js +6 -6
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +31 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +65 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.d.ts +95 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +242 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +108 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +313 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +150 -0
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +500 -0
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.d.ts +34 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +82 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.d.ts +47 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +113 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.d.ts +29 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +85 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.d.ts +49 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +118 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.d.ts +66 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +189 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/authz.d.ts +67 -0
- package/dist/codegen/ibc/applications/transfer/v1/authz.js +177 -0
- package/dist/codegen/ibc/applications/transfer/v1/authz.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/genesis.d.ts +29 -0
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js +95 -0
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/query.d.ts +282 -0
- package/dist/codegen/ibc/applications/transfer/v1/query.js +633 -0
- package/dist/codegen/ibc/applications/transfer/v1/query.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/transfer.d.ts +80 -0
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js +146 -0
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/tx.d.ts +86 -0
- package/dist/codegen/ibc/applications/transfer/v1/tx.js +219 -0
- package/dist/codegen/ibc/applications/transfer/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v2/packet.d.ts +45 -0
- package/dist/codegen/ibc/applications/transfer/v2/packet.js +102 -0
- package/dist/codegen/ibc/applications/transfer/v2/packet.js.map +1 -0
- package/dist/codegen/ibc/bundle.d.ts +2266 -122
- package/dist/codegen/ibc/bundle.js +124 -4
- package/dist/codegen/ibc/bundle.js.map +1 -1
- package/dist/codegen/ibc/core/channel/v1/genesis.d.ts +73 -0
- package/dist/codegen/ibc/core/channel/v1/genesis.js +280 -0
- package/dist/codegen/ibc/core/channel/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/core/channel/v1/query.d.ts +914 -0
- package/dist/codegen/ibc/core/channel/v1/query.js +2343 -0
- package/dist/codegen/ibc/core/channel/v1/query.js.map +1 -0
- package/dist/codegen/ibc/core/channel/v1/tx.d.ts +604 -0
- package/dist/codegen/ibc/core/channel/v1/tx.js +1744 -0
- package/dist/codegen/ibc/core/channel/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/core/client/v1/genesis.d.ts +104 -0
- package/dist/codegen/ibc/core/client/v1/genesis.js +300 -0
- package/dist/codegen/ibc/core/client/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/core/client/v1/query.d.ts +577 -0
- package/dist/codegen/ibc/core/client/v1/query.js +1282 -0
- package/dist/codegen/ibc/core/client/v1/query.js.map +1 -0
- package/dist/codegen/ibc/core/client/v1/tx.d.ts +245 -0
- package/dist/codegen/ibc/core/client/v1/tx.js +586 -0
- package/dist/codegen/ibc/core/client/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/core/commitment/v1/commitment.d.ts +128 -0
- package/dist/codegen/ibc/core/commitment/v1/commitment.js +258 -0
- package/dist/codegen/ibc/core/commitment/v1/commitment.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/connection.d.ts +272 -0
- package/dist/codegen/ibc/core/connection/v1/connection.js +677 -0
- package/dist/codegen/ibc/core/connection/v1/connection.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/genesis.d.ts +32 -0
- package/dist/codegen/ibc/core/connection/v1/genesis.js +121 -0
- package/dist/codegen/ibc/core/connection/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/query.d.ts +388 -0
- package/dist/codegen/ibc/core/connection/v1/query.js +951 -0
- package/dist/codegen/ibc/core/connection/v1/query.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/tx.d.ts +286 -0
- package/dist/codegen/ibc/core/connection/v1/tx.js +842 -0
- package/dist/codegen/ibc/core/connection/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +35 -0
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +77 -0
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js.map +1 -0
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +549 -0
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1519 -0
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js.map +1 -0
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +549 -0
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1513 -0
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js.map +1 -0
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +231 -0
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +624 -0
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js.map +1 -0
- package/dist/codegen/ics23/bundle.d.ts +154 -0
- package/dist/codegen/ics23/bundle.js +6 -0
- package/dist/codegen/ics23/bundle.js.map +1 -0
- package/dist/codegen/index.d.ts +1 -0
- package/dist/codegen/index.js +1 -0
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/proofs.d.ts +569 -0
- package/dist/codegen/proofs.js +1435 -0
- package/dist/codegen/proofs.js.map +1 -0
- package/dist/codegen/tendermint/bundle.d.ts +716 -716
- package/dist/codegen/tendermint/bundle.js +22 -22
- package/dist/codegen/tendermint/bundle.js.map +1 -1
- package/package.json +8 -5
|
@@ -3,7 +3,10 @@ import { Any, AnySDKType } from '../../../google/protobuf/any.js';
|
|
|
3
3
|
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
4
4
|
/** VoteOption enumerates the valid vote options for a given proposal. */
|
|
5
5
|
export declare enum VoteOption {
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will
|
|
8
|
+
* return an error.
|
|
9
|
+
*/
|
|
7
10
|
VOTE_OPTION_UNSPECIFIED = 0,
|
|
8
11
|
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
|
9
12
|
VOTE_OPTION_YES = 1,
|
|
@@ -22,37 +25,33 @@ export declare function voteOptionToJSON(object: VoteOption): string;
|
|
|
22
25
|
export declare enum ProposalStatus {
|
|
23
26
|
/** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */
|
|
24
27
|
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
|
25
|
-
/** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when
|
|
28
|
+
/** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */
|
|
26
29
|
PROPOSAL_STATUS_SUBMITTED = 1,
|
|
27
|
-
/** PROPOSAL_STATUS_CLOSED - Final status of a proposal when the final tally was executed. */
|
|
28
|
-
PROPOSAL_STATUS_CLOSED = 2,
|
|
29
|
-
/** PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group was modified before the final tally. */
|
|
30
|
-
PROPOSAL_STATUS_ABORTED = 3,
|
|
31
30
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome
|
|
32
|
+
* passes the group policy's decision policy.
|
|
33
|
+
*/
|
|
34
|
+
PROPOSAL_STATUS_ACCEPTED = 2,
|
|
35
|
+
/**
|
|
36
|
+
* PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome
|
|
37
|
+
* is rejected by the group policy's decision policy.
|
|
38
|
+
*/
|
|
39
|
+
PROPOSAL_STATUS_REJECTED = 3,
|
|
40
|
+
/**
|
|
41
|
+
* PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the
|
|
42
|
+
* final tally.
|
|
43
|
+
*/
|
|
44
|
+
PROPOSAL_STATUS_ABORTED = 4,
|
|
45
|
+
/**
|
|
46
|
+
* PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner.
|
|
47
|
+
* When this happens the final status is Withdrawn.
|
|
34
48
|
*/
|
|
35
|
-
PROPOSAL_STATUS_WITHDRAWN =
|
|
49
|
+
PROPOSAL_STATUS_WITHDRAWN = 5,
|
|
36
50
|
UNRECOGNIZED = -1
|
|
37
51
|
}
|
|
38
52
|
export declare const ProposalStatusSDKType: typeof ProposalStatus;
|
|
39
53
|
export declare function proposalStatusFromJSON(object: any): ProposalStatus;
|
|
40
54
|
export declare function proposalStatusToJSON(object: ProposalStatus): string;
|
|
41
|
-
/** ProposalResult defines types of proposal results. */
|
|
42
|
-
export declare enum ProposalResult {
|
|
43
|
-
/** PROPOSAL_RESULT_UNSPECIFIED - An empty value is invalid and not allowed */
|
|
44
|
-
PROPOSAL_RESULT_UNSPECIFIED = 0,
|
|
45
|
-
/** PROPOSAL_RESULT_UNFINALIZED - Until a final tally has happened the status is unfinalized */
|
|
46
|
-
PROPOSAL_RESULT_UNFINALIZED = 1,
|
|
47
|
-
/** PROPOSAL_RESULT_ACCEPTED - Final result of the tally */
|
|
48
|
-
PROPOSAL_RESULT_ACCEPTED = 2,
|
|
49
|
-
/** PROPOSAL_RESULT_REJECTED - Final result of the tally */
|
|
50
|
-
PROPOSAL_RESULT_REJECTED = 3,
|
|
51
|
-
UNRECOGNIZED = -1
|
|
52
|
-
}
|
|
53
|
-
export declare const ProposalResultSDKType: typeof ProposalResult;
|
|
54
|
-
export declare function proposalResultFromJSON(object: any): ProposalResult;
|
|
55
|
-
export declare function proposalResultToJSON(object: ProposalResult): string;
|
|
56
55
|
/** ProposalExecutorResult defines types of proposal executor results. */
|
|
57
56
|
export declare enum ProposalExecutorResult {
|
|
58
57
|
/** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */
|
|
@@ -70,14 +69,14 @@ export declare function proposalExecutorResultFromJSON(object: any): ProposalExe
|
|
|
70
69
|
export declare function proposalExecutorResultToJSON(object: ProposalExecutorResult): string;
|
|
71
70
|
/**
|
|
72
71
|
* Member represents a group member with an account address,
|
|
73
|
-
* non-zero weight and
|
|
72
|
+
* non-zero weight, metadata and added_at timestamp.
|
|
74
73
|
*/
|
|
75
74
|
export interface Member {
|
|
76
75
|
/** address is the member's account address. */
|
|
77
76
|
address: string;
|
|
78
77
|
/** weight is the member's voting weight that should be greater than 0. */
|
|
79
78
|
weight: string;
|
|
80
|
-
/** metadata is any arbitrary metadata
|
|
79
|
+
/** metadata is any arbitrary metadata attached to the member. */
|
|
81
80
|
metadata: string;
|
|
82
81
|
/** added_at is a timestamp specifying when a member was added. */
|
|
83
82
|
addedAt: Date;
|
|
@@ -88,7 +87,7 @@ export interface MemberProtoMsg {
|
|
|
88
87
|
}
|
|
89
88
|
/**
|
|
90
89
|
* Member represents a group member with an account address,
|
|
91
|
-
* non-zero weight and
|
|
90
|
+
* non-zero weight, metadata and added_at timestamp.
|
|
92
91
|
*/
|
|
93
92
|
export interface MemberSDKType {
|
|
94
93
|
address: string;
|
|
@@ -96,23 +95,47 @@ export interface MemberSDKType {
|
|
|
96
95
|
metadata: string;
|
|
97
96
|
added_at: Date;
|
|
98
97
|
}
|
|
99
|
-
/**
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
/**
|
|
99
|
+
* MemberRequest represents a group member to be used in Msg server requests.
|
|
100
|
+
* Contrary to `Member`, it doesn't have any `added_at` field
|
|
101
|
+
* since this field cannot be set as part of requests.
|
|
102
|
+
*/
|
|
103
|
+
export interface MemberRequest {
|
|
104
|
+
/** address is the member's account address. */
|
|
105
|
+
address: string;
|
|
106
|
+
/** weight is the member's voting weight that should be greater than 0. */
|
|
107
|
+
weight: string;
|
|
108
|
+
/** metadata is any arbitrary metadata attached to the member. */
|
|
109
|
+
metadata: string;
|
|
103
110
|
}
|
|
104
|
-
export interface
|
|
105
|
-
typeUrl: '/cosmos.group.v1.
|
|
111
|
+
export interface MemberRequestProtoMsg {
|
|
112
|
+
typeUrl: '/cosmos.group.v1.MemberRequest';
|
|
106
113
|
value: Uint8Array;
|
|
107
114
|
}
|
|
108
|
-
/**
|
|
109
|
-
|
|
110
|
-
|
|
115
|
+
/**
|
|
116
|
+
* MemberRequest represents a group member to be used in Msg server requests.
|
|
117
|
+
* Contrary to `Member`, it doesn't have any `added_at` field
|
|
118
|
+
* since this field cannot be set as part of requests.
|
|
119
|
+
*/
|
|
120
|
+
export interface MemberRequestSDKType {
|
|
121
|
+
address: string;
|
|
122
|
+
weight: string;
|
|
123
|
+
metadata: string;
|
|
111
124
|
}
|
|
112
|
-
/**
|
|
125
|
+
/**
|
|
126
|
+
* ThresholdDecisionPolicy is a decision policy where a proposal passes when it
|
|
127
|
+
* satisfies the two following conditions:
|
|
128
|
+
* 1. The sum of all `YES` voters' weights is greater or equal than the defined
|
|
129
|
+
* `threshold`.
|
|
130
|
+
* 2. The voting and execution periods of the proposal respect the parameters
|
|
131
|
+
* given by `windows`.
|
|
132
|
+
*/
|
|
113
133
|
export interface ThresholdDecisionPolicy {
|
|
114
134
|
$typeUrl?: '/cosmos.group.v1.ThresholdDecisionPolicy';
|
|
115
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* threshold is the minimum weighted sum of `YES` votes that must be met or
|
|
137
|
+
* exceeded for a proposal to succeed.
|
|
138
|
+
*/
|
|
116
139
|
threshold: string;
|
|
117
140
|
/** windows defines the different windows for voting and execution. */
|
|
118
141
|
windows?: DecisionPolicyWindows;
|
|
@@ -121,16 +144,33 @@ export interface ThresholdDecisionPolicyProtoMsg {
|
|
|
121
144
|
typeUrl: '/cosmos.group.v1.ThresholdDecisionPolicy';
|
|
122
145
|
value: Uint8Array;
|
|
123
146
|
}
|
|
124
|
-
/**
|
|
147
|
+
/**
|
|
148
|
+
* ThresholdDecisionPolicy is a decision policy where a proposal passes when it
|
|
149
|
+
* satisfies the two following conditions:
|
|
150
|
+
* 1. The sum of all `YES` voters' weights is greater or equal than the defined
|
|
151
|
+
* `threshold`.
|
|
152
|
+
* 2. The voting and execution periods of the proposal respect the parameters
|
|
153
|
+
* given by `windows`.
|
|
154
|
+
*/
|
|
125
155
|
export interface ThresholdDecisionPolicySDKType {
|
|
126
156
|
$typeUrl?: '/cosmos.group.v1.ThresholdDecisionPolicy';
|
|
127
157
|
threshold: string;
|
|
128
158
|
windows?: DecisionPolicyWindowsSDKType;
|
|
129
159
|
}
|
|
130
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* PercentageDecisionPolicy is a decision policy where a proposal passes when
|
|
162
|
+
* it satisfies the two following conditions:
|
|
163
|
+
* 1. The percentage of all `YES` voters' weights out of the total group weight
|
|
164
|
+
* is greater or equal than the given `percentage`.
|
|
165
|
+
* 2. The voting and execution periods of the proposal respect the parameters
|
|
166
|
+
* given by `windows`.
|
|
167
|
+
*/
|
|
131
168
|
export interface PercentageDecisionPolicy {
|
|
132
169
|
$typeUrl?: '/cosmos.group.v1.PercentageDecisionPolicy';
|
|
133
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* percentage is the minimum percentage the weighted sum of `YES` votes must
|
|
172
|
+
* meet for a proposal to succeed.
|
|
173
|
+
*/
|
|
134
174
|
percentage: string;
|
|
135
175
|
/** windows defines the different windows for voting and execution. */
|
|
136
176
|
windows?: DecisionPolicyWindows;
|
|
@@ -139,7 +179,14 @@ export interface PercentageDecisionPolicyProtoMsg {
|
|
|
139
179
|
typeUrl: '/cosmos.group.v1.PercentageDecisionPolicy';
|
|
140
180
|
value: Uint8Array;
|
|
141
181
|
}
|
|
142
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* PercentageDecisionPolicy is a decision policy where a proposal passes when
|
|
184
|
+
* it satisfies the two following conditions:
|
|
185
|
+
* 1. The percentage of all `YES` voters' weights out of the total group weight
|
|
186
|
+
* is greater or equal than the given `percentage`.
|
|
187
|
+
* 2. The voting and execution periods of the proposal respect the parameters
|
|
188
|
+
* given by `windows`.
|
|
189
|
+
*/
|
|
143
190
|
export interface PercentageDecisionPolicySDKType {
|
|
144
191
|
$typeUrl?: '/cosmos.group.v1.PercentageDecisionPolicy';
|
|
145
192
|
percentage: string;
|
|
@@ -241,7 +288,7 @@ export interface GroupPolicyInfo {
|
|
|
241
288
|
*/
|
|
242
289
|
version: bigint;
|
|
243
290
|
/** decision_policy specifies the group policy's decision policy. */
|
|
244
|
-
decisionPolicy?:
|
|
291
|
+
decisionPolicy?: Any | undefined;
|
|
245
292
|
/** created_at is a timestamp specifying when a group policy was created. */
|
|
246
293
|
createdAt: Date;
|
|
247
294
|
}
|
|
@@ -256,7 +303,7 @@ export interface GroupPolicyInfoSDKType {
|
|
|
256
303
|
admin: string;
|
|
257
304
|
metadata: string;
|
|
258
305
|
version: bigint;
|
|
259
|
-
decision_policy?:
|
|
306
|
+
decision_policy?: AnySDKType | undefined;
|
|
260
307
|
created_at: Date;
|
|
261
308
|
}
|
|
262
309
|
/**
|
|
@@ -268,8 +315,8 @@ export interface GroupPolicyInfoSDKType {
|
|
|
268
315
|
export interface Proposal {
|
|
269
316
|
/** id is the unique id of the proposal. */
|
|
270
317
|
id: bigint;
|
|
271
|
-
/**
|
|
272
|
-
|
|
318
|
+
/** group_policy_address is the account address of group policy. */
|
|
319
|
+
groupPolicyAddress: string;
|
|
273
320
|
/** metadata is any arbitrary metadata to attached to the proposal. */
|
|
274
321
|
metadata: string;
|
|
275
322
|
/** proposers are the account addresses of the proposers. */
|
|
@@ -277,40 +324,37 @@ export interface Proposal {
|
|
|
277
324
|
/** submit_time is a timestamp specifying when a proposal was submitted. */
|
|
278
325
|
submitTime: Date;
|
|
279
326
|
/**
|
|
280
|
-
* group_version tracks the version of the group
|
|
281
|
-
*
|
|
327
|
+
* group_version tracks the version of the group at proposal submission.
|
|
328
|
+
* This field is here for informational purposes only.
|
|
282
329
|
*/
|
|
283
330
|
groupVersion: bigint;
|
|
284
331
|
/**
|
|
285
|
-
* group_policy_version tracks the version of the group policy
|
|
286
|
-
* When a decision policy is changed, existing proposals from previous policy
|
|
332
|
+
* group_policy_version tracks the version of the group policy at proposal submission.
|
|
333
|
+
* When a decision policy is changed, existing proposals from previous policy
|
|
334
|
+
* versions will become invalid with the `ABORTED` status.
|
|
335
|
+
* This field is here for informational purposes only.
|
|
287
336
|
*/
|
|
288
337
|
groupPolicyVersion: bigint;
|
|
289
338
|
/** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */
|
|
290
339
|
status: ProposalStatus;
|
|
291
|
-
/**
|
|
292
|
-
* result is the final result based on the votes and election rule. Initial value is unfinalized.
|
|
293
|
-
* The result is persisted so that clients can always rely on this state and not have to replicate the logic.
|
|
294
|
-
*/
|
|
295
|
-
result: ProposalResult;
|
|
296
340
|
/**
|
|
297
341
|
* final_tally_result contains the sums of all weighted votes for this
|
|
298
|
-
* proposal for each vote option
|
|
299
|
-
*
|
|
300
|
-
*
|
|
342
|
+
* proposal for each vote option. It is empty at submission, and only
|
|
343
|
+
* populated after tallying, at voting period end or at proposal execution,
|
|
344
|
+
* whichever happens first.
|
|
301
345
|
*/
|
|
302
346
|
finalTallyResult: TallyResult;
|
|
303
347
|
/**
|
|
304
348
|
* voting_period_end is the timestamp before which voting must be done.
|
|
305
349
|
* Unless a successfull MsgExec is called before (to execute a proposal whose
|
|
306
350
|
* tally is successful before the voting period ends), tallying will be done
|
|
307
|
-
* at this point, and the `final_tally_result
|
|
308
|
-
*
|
|
351
|
+
* at this point, and the `final_tally_result`and `status` fields will be
|
|
352
|
+
* accordingly updated.
|
|
309
353
|
*/
|
|
310
354
|
votingPeriodEnd: Date;
|
|
311
|
-
/** executor_result is the final result
|
|
355
|
+
/** executor_result is the final result of the proposal execution. Initial value is NotRun. */
|
|
312
356
|
executorResult: ProposalExecutorResult;
|
|
313
|
-
/** messages is a list of
|
|
357
|
+
/** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */
|
|
314
358
|
messages: Any[];
|
|
315
359
|
}
|
|
316
360
|
export interface ProposalProtoMsg {
|
|
@@ -325,14 +369,13 @@ export interface ProposalProtoMsg {
|
|
|
325
369
|
*/
|
|
326
370
|
export interface ProposalSDKType {
|
|
327
371
|
id: bigint;
|
|
328
|
-
|
|
372
|
+
group_policy_address: string;
|
|
329
373
|
metadata: string;
|
|
330
374
|
proposers: string[];
|
|
331
375
|
submit_time: Date;
|
|
332
376
|
group_version: bigint;
|
|
333
377
|
group_policy_version: bigint;
|
|
334
378
|
status: ProposalStatus;
|
|
335
|
-
result: ProposalResult;
|
|
336
379
|
final_tally_result: TallyResultSDKType;
|
|
337
380
|
voting_period_end: Date;
|
|
338
381
|
executor_result: ProposalExecutorResult;
|
|
@@ -344,7 +387,7 @@ export interface TallyResult {
|
|
|
344
387
|
yesCount: string;
|
|
345
388
|
/** abstain_count is the weighted sum of abstainers. */
|
|
346
389
|
abstainCount: string;
|
|
347
|
-
/**
|
|
390
|
+
/** no_count is the weighted sum of no votes. */
|
|
348
391
|
noCount: string;
|
|
349
392
|
/** no_with_veto_count is the weighted sum of veto. */
|
|
350
393
|
noWithVetoCount: string;
|
|
@@ -396,16 +439,16 @@ export declare const Member: {
|
|
|
396
439
|
toProto(message: Member): Uint8Array;
|
|
397
440
|
toProtoMsg(message: Member): MemberProtoMsg;
|
|
398
441
|
};
|
|
399
|
-
export declare const
|
|
442
|
+
export declare const MemberRequest: {
|
|
400
443
|
typeUrl: string;
|
|
401
|
-
encode(message:
|
|
402
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
403
|
-
fromJSON(object: any):
|
|
404
|
-
toJSON(message:
|
|
405
|
-
fromPartial(object: Partial<
|
|
406
|
-
fromProtoMsg(message:
|
|
407
|
-
toProto(message:
|
|
408
|
-
toProtoMsg(message:
|
|
444
|
+
encode(message: MemberRequest, writer?: BinaryWriter): BinaryWriter;
|
|
445
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MemberRequest;
|
|
446
|
+
fromJSON(object: any): MemberRequest;
|
|
447
|
+
toJSON(message: MemberRequest): unknown;
|
|
448
|
+
fromPartial(object: Partial<MemberRequest>): MemberRequest;
|
|
449
|
+
fromProtoMsg(message: MemberRequestProtoMsg): MemberRequest;
|
|
450
|
+
toProto(message: MemberRequest): Uint8Array;
|
|
451
|
+
toProtoMsg(message: MemberRequest): MemberRequestProtoMsg;
|
|
409
452
|
};
|
|
410
453
|
export declare const ThresholdDecisionPolicy: {
|
|
411
454
|
typeUrl: string;
|
|
@@ -506,4 +549,4 @@ export declare const Vote: {
|
|
|
506
549
|
toProto(message: Vote): Uint8Array;
|
|
507
550
|
toProtoMsg(message: Vote): VoteProtoMsg;
|
|
508
551
|
};
|
|
509
|
-
export declare const
|
|
552
|
+
export declare const Cosmos_groupv1DecisionPolicy_InterfaceDecoder: (input: BinaryReader | Uint8Array) => Any;
|