decentralcardgame-cardchain-client-ts 0.0.26-rc1 → 0.0.27
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/DecentralCardGame.cardchain.cardchain/module.js +504 -352
- package/DecentralCardGame.cardchain.cardchain/module.ts +1505 -1267
- package/DecentralCardGame.cardchain.cardchain/registry.js +64 -62
- package/DecentralCardGame.cardchain.cardchain/registry.ts +64 -62
- package/DecentralCardGame.cardchain.cardchain/rest.js +31 -17
- package/DecentralCardGame.cardchain.cardchain/rest.ts +139 -94
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +1 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +86 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +90 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +229 -114
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +276 -120
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +186 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +210 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +91 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +113 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +3 -1
- package/DecentralCardGame.cardchain.cardchain/types.ts +4 -0
- package/DecentralCardGame.cardchain.featureflag/module.js +4 -1
- package/DecentralCardGame.cardchain.featureflag/module.ts +71 -69
- package/DecentralCardGame.cardchain.featureflag/rest.ts +6 -6
- package/client.js +3 -9
- package/client.ts +154 -167
- package/cosmos.auth.v1beta1/module.js +4 -1
- package/cosmos.auth.v1beta1/module.ts +71 -69
- package/cosmos.auth.v1beta1/rest.ts +21 -21
- package/cosmos.authz.v1beta1/module.js +17 -17
- package/cosmos.authz.v1beta1/module.ts +25 -25
- package/cosmos.authz.v1beta1/registry.js +4 -4
- package/cosmos.authz.v1beta1/registry.ts +4 -4
- package/cosmos.authz.v1beta1/rest.ts +75 -75
- package/cosmos.bank.v1beta1/rest.ts +9 -9
- package/cosmos.distribution.v1beta1/module.js +27 -27
- package/cosmos.distribution.v1beta1/module.ts +42 -42
- package/cosmos.distribution.v1beta1/registry.js +4 -4
- package/cosmos.distribution.v1beta1/registry.ts +4 -4
- package/cosmos.distribution.v1beta1/rest.ts +20 -20
- package/cosmos.gov.v1/module.js +24 -24
- package/cosmos.gov.v1/module.ts +36 -36
- package/cosmos.gov.v1/registry.js +4 -4
- package/cosmos.gov.v1/registry.ts +4 -4
- package/cosmos.gov.v1/rest.ts +90 -90
- package/cosmos.gov.v1beta1/module.js +27 -27
- package/cosmos.gov.v1beta1/module.ts +42 -42
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +152 -152
- package/cosmos.group.v1/module.js +108 -108
- package/cosmos.group.v1/module.ts +164 -164
- package/cosmos.group.v1/registry.js +18 -18
- package/cosmos.group.v1/registry.ts +18 -18
- package/cosmos.group.v1/rest.js +5 -5
- package/cosmos.group.v1/rest.ts +214 -214
- package/cosmos.mint.v1beta1/rest.ts +13 -13
- package/cosmos.nft.v1beta1/rest.ts +132 -132
- package/cosmos.slashing.v1beta1/rest.ts +19 -19
- package/cosmos.staking.v1beta1/module.js +39 -39
- package/cosmos.staking.v1beta1/module.ts +59 -59
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.ts +95 -95
- package/cosmos.upgrade.v1beta1/module.js +16 -16
- package/cosmos.upgrade.v1beta1/module.ts +24 -24
- package/cosmos.upgrade.v1beta1/registry.js +2 -2
- package/cosmos.upgrade.v1beta1/registry.ts +2 -2
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +10 -10
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +13 -13
- package/ibc.applications.transfer.v1/rest.ts +3 -3
- package/ibc.core.channel.v1/rest.ts +44 -44
- package/package.json +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.js +0 -651
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.ts +0 -735
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.js +0 -102
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.ts +0 -134
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.js +0 -350
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.ts +0 -409
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.js +0 -254
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.ts +0 -281
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.js +0 -88
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.ts +0 -115
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.js +0 -308
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.ts +0 -355
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.js +0 -67
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.ts +0 -92
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.js +0 -73
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.ts +0 -102
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.js +0 -314
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.ts +0 -367
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.js +0 -1984
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.ts +0 -2382
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.js +0 -85
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.ts +0 -111
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.js +0 -148
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.ts +0 -183
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.js +0 -93
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.ts +0 -124
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.js +0 -365
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.ts +0 -416
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.js +0 -93
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.ts +0 -124
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.js +0 -4494
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.ts +0 -5526
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.js +0 -522
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.ts +0 -583
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.js +0 -346
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.ts +0 -417
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
3
|
-
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
4
|
-
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
5
|
-
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
6
|
-
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
1
|
+
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
7
2
|
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
3
|
+
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
8
4
|
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
5
|
+
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
6
|
+
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
9
7
|
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
8
|
+
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
10
9
|
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
10
|
+
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
11
|
+
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
12
|
+
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
13
|
+
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
11
14
|
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
12
|
-
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
13
|
-
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
14
|
-
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
15
15
|
const msgTypes = [
|
|
16
|
-
["/cosmos.group.v1.
|
|
17
|
-
["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
|
|
18
|
-
["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin],
|
|
19
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
|
|
20
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
|
|
21
|
-
["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal],
|
|
16
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin],
|
|
22
17
|
["/cosmos.group.v1.MsgVote", MsgVote],
|
|
18
|
+
["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal],
|
|
23
19
|
["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal],
|
|
20
|
+
["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin],
|
|
21
|
+
["/cosmos.group.v1.MsgExec", MsgExec],
|
|
24
22
|
["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy],
|
|
23
|
+
["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup],
|
|
25
24
|
["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers],
|
|
25
|
+
["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
|
|
26
|
+
["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy],
|
|
27
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
|
|
28
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
|
|
26
29
|
["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata],
|
|
27
|
-
["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup],
|
|
28
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin],
|
|
29
|
-
["/cosmos.group.v1.MsgExec", MsgExec],
|
|
30
30
|
];
|
|
31
31
|
export { msgTypes };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
|
-
import {
|
|
3
|
-
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
4
|
-
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
5
|
-
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
6
|
-
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
7
|
-
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
2
|
+
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
8
3
|
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
4
|
+
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
9
5
|
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
6
|
+
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
7
|
+
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
10
8
|
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
9
|
+
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
11
10
|
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
11
|
+
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
12
|
+
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
13
|
+
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
14
|
+
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
12
15
|
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
13
|
-
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
14
|
-
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
15
|
-
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
16
16
|
|
|
17
17
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
18
|
-
["/cosmos.group.v1.
|
|
19
|
-
["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
|
|
20
|
-
["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin],
|
|
21
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
|
|
22
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
|
|
23
|
-
["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal],
|
|
18
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin],
|
|
24
19
|
["/cosmos.group.v1.MsgVote", MsgVote],
|
|
20
|
+
["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal],
|
|
25
21
|
["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal],
|
|
22
|
+
["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin],
|
|
23
|
+
["/cosmos.group.v1.MsgExec", MsgExec],
|
|
26
24
|
["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy],
|
|
25
|
+
["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup],
|
|
27
26
|
["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers],
|
|
27
|
+
["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
|
|
28
|
+
["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy],
|
|
29
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
|
|
30
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
|
|
28
31
|
["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata],
|
|
29
|
-
["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup],
|
|
30
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin],
|
|
31
|
-
["/cosmos.group.v1.MsgExec", MsgExec],
|
|
32
32
|
|
|
33
33
|
];
|
|
34
34
|
|
package/cosmos.group.v1/rest.js
CHANGED
|
@@ -18,11 +18,11 @@ If the proposal is not allowed per the DecisionPolicy,
|
|
|
18
18
|
the proposal will still be open and could
|
|
19
19
|
be executed at a later point.
|
|
20
20
|
*/
|
|
21
|
-
export var
|
|
22
|
-
(function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})(
|
|
21
|
+
export var Groupv1Exec;
|
|
22
|
+
(function (Groupv1Exec) {
|
|
23
|
+
Groupv1Exec["EXEC_UNSPECIFIED"] = "EXEC_UNSPECIFIED";
|
|
24
|
+
Groupv1Exec["EXEC_TRY"] = "EXEC_TRY";
|
|
25
|
+
})(Groupv1Exec || (Groupv1Exec = {}));
|
|
26
26
|
/**
|
|
27
27
|
* ProposalExecutorResult defines types of proposal executor results.
|
|
28
28
|
|
package/cosmos.group.v1/rest.ts
CHANGED
|
@@ -9,6 +9,207 @@
|
|
|
9
9
|
* ---------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Exec defines modes of execution of a proposal on creation or on new vote.
|
|
14
|
+
|
|
15
|
+
- EXEC_UNSPECIFIED: An empty value means that there should be a separate
|
|
16
|
+
MsgExec request for the proposal to execute.
|
|
17
|
+
- EXEC_TRY: Try to execute the proposal immediately.
|
|
18
|
+
If the proposal is not allowed per the DecisionPolicy,
|
|
19
|
+
the proposal will still be open and could
|
|
20
|
+
be executed at a later point.
|
|
21
|
+
*/
|
|
22
|
+
export enum Groupv1Exec {
|
|
23
|
+
EXEC_UNSPECIFIED = "EXEC_UNSPECIFIED",
|
|
24
|
+
EXEC_TRY = "EXEC_TRY",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* GroupInfo represents the high-level on-chain information for a group.
|
|
29
|
+
*/
|
|
30
|
+
export interface Groupv1GroupInfo {
|
|
31
|
+
/**
|
|
32
|
+
* id is the unique ID of the group.
|
|
33
|
+
* @format uint64
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
|
|
37
|
+
/** admin is the account address of the group's admin. */
|
|
38
|
+
admin?: string;
|
|
39
|
+
|
|
40
|
+
/** metadata is any arbitrary metadata to attached to the group. */
|
|
41
|
+
metadata?: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* version is used to track changes to a group's membership structure that
|
|
45
|
+
* would break existing proposals. Whenever any members weight is changed,
|
|
46
|
+
* or any member is added or removed this version is incremented and will
|
|
47
|
+
* cause proposals based on older versions of this group to fail
|
|
48
|
+
* @format uint64
|
|
49
|
+
*/
|
|
50
|
+
version?: string;
|
|
51
|
+
|
|
52
|
+
/** total_weight is the sum of the group members' weights. */
|
|
53
|
+
total_weight?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* created_at is a timestamp specifying when a group was created.
|
|
57
|
+
* @format date-time
|
|
58
|
+
*/
|
|
59
|
+
created_at?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* GroupPolicyInfo represents the high-level on-chain information for a group policy.
|
|
64
|
+
*/
|
|
65
|
+
export interface Groupv1GroupPolicyInfo {
|
|
66
|
+
/** address is the account address of group policy. */
|
|
67
|
+
address?: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* group_id is the unique ID of the group.
|
|
71
|
+
* @format uint64
|
|
72
|
+
*/
|
|
73
|
+
group_id?: string;
|
|
74
|
+
|
|
75
|
+
/** admin is the account address of the group admin. */
|
|
76
|
+
admin?: string;
|
|
77
|
+
|
|
78
|
+
/** metadata is any arbitrary metadata to attached to the group policy. */
|
|
79
|
+
metadata?: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* version is used to track changes to a group's GroupPolicyInfo structure that
|
|
83
|
+
* would create a different result on a running proposal.
|
|
84
|
+
* @format uint64
|
|
85
|
+
*/
|
|
86
|
+
version?: string;
|
|
87
|
+
|
|
88
|
+
/** decision_policy specifies the group policy's decision policy. */
|
|
89
|
+
decision_policy?: ProtobufAny;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* created_at is a timestamp specifying when a group policy was created.
|
|
93
|
+
* @format date-time
|
|
94
|
+
*/
|
|
95
|
+
created_at?: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Proposal defines a group proposal. Any member of a group can submit a proposal
|
|
100
|
+
for a group policy to decide upon.
|
|
101
|
+
A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
|
|
102
|
+
passes as well as some optional metadata associated with the proposal.
|
|
103
|
+
*/
|
|
104
|
+
export interface Groupv1Proposal {
|
|
105
|
+
/**
|
|
106
|
+
* id is the unique id of the proposal.
|
|
107
|
+
* @format uint64
|
|
108
|
+
*/
|
|
109
|
+
id?: string;
|
|
110
|
+
|
|
111
|
+
/** group_policy_address is the account address of group policy. */
|
|
112
|
+
group_policy_address?: string;
|
|
113
|
+
|
|
114
|
+
/** metadata is any arbitrary metadata to attached to the proposal. */
|
|
115
|
+
metadata?: string;
|
|
116
|
+
|
|
117
|
+
/** proposers are the account addresses of the proposers. */
|
|
118
|
+
proposers?: string[];
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* submit_time is a timestamp specifying when a proposal was submitted.
|
|
122
|
+
* @format date-time
|
|
123
|
+
*/
|
|
124
|
+
submit_time?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* group_version tracks the version of the group at proposal submission.
|
|
128
|
+
* This field is here for informational purposes only.
|
|
129
|
+
* @format uint64
|
|
130
|
+
*/
|
|
131
|
+
group_version?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* group_policy_version tracks the version of the group policy at proposal submission.
|
|
135
|
+
* When a decision policy is changed, existing proposals from previous policy
|
|
136
|
+
* versions will become invalid with the `ABORTED` status.
|
|
137
|
+
* This field is here for informational purposes only.
|
|
138
|
+
* @format uint64
|
|
139
|
+
*/
|
|
140
|
+
group_policy_version?: string;
|
|
141
|
+
|
|
142
|
+
/** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */
|
|
143
|
+
status?: V1ProposalStatus;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* final_tally_result contains the sums of all weighted votes for this
|
|
147
|
+
* proposal for each vote option. It is empty at submission, and only
|
|
148
|
+
* populated after tallying, at voting period end or at proposal execution,
|
|
149
|
+
* whichever happens first.
|
|
150
|
+
*/
|
|
151
|
+
final_tally_result?: Groupv1TallyResult;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* voting_period_end is the timestamp before which voting must be done.
|
|
155
|
+
* Unless a successfull MsgExec is called before (to execute a proposal whose
|
|
156
|
+
* tally is successful before the voting period ends), tallying will be done
|
|
157
|
+
* at this point, and the `final_tally_result`and `status` fields will be
|
|
158
|
+
* accordingly updated.
|
|
159
|
+
* @format date-time
|
|
160
|
+
*/
|
|
161
|
+
voting_period_end?: string;
|
|
162
|
+
|
|
163
|
+
/** executor_result is the final result of the proposal execution. Initial value is NotRun. */
|
|
164
|
+
executor_result?: V1ProposalExecutorResult;
|
|
165
|
+
|
|
166
|
+
/** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */
|
|
167
|
+
messages?: ProtobufAny[];
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* TallyResult represents the sum of weighted votes for each vote option.
|
|
172
|
+
*/
|
|
173
|
+
export interface Groupv1TallyResult {
|
|
174
|
+
/** yes_count is the weighted sum of yes votes. */
|
|
175
|
+
yes_count?: string;
|
|
176
|
+
|
|
177
|
+
/** abstain_count is the weighted sum of abstainers. */
|
|
178
|
+
abstain_count?: string;
|
|
179
|
+
|
|
180
|
+
/** no_count is the weighted sum of no votes. */
|
|
181
|
+
no_count?: string;
|
|
182
|
+
|
|
183
|
+
/** no_with_veto_count is the weighted sum of veto. */
|
|
184
|
+
no_with_veto_count?: string;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Vote represents a vote for a proposal.
|
|
189
|
+
*/
|
|
190
|
+
export interface Groupv1Vote {
|
|
191
|
+
/**
|
|
192
|
+
* proposal is the unique ID of the proposal.
|
|
193
|
+
* @format uint64
|
|
194
|
+
*/
|
|
195
|
+
proposal_id?: string;
|
|
196
|
+
|
|
197
|
+
/** voter is the account address of the voter. */
|
|
198
|
+
voter?: string;
|
|
199
|
+
|
|
200
|
+
/** option is the voter's choice on the proposal. */
|
|
201
|
+
option?: V1VoteOption;
|
|
202
|
+
|
|
203
|
+
/** metadata is any arbitrary metadata to attached to the vote. */
|
|
204
|
+
metadata?: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* submit_time is the timestamp when the vote was submitted.
|
|
208
|
+
* @format date-time
|
|
209
|
+
*/
|
|
210
|
+
submit_time?: string;
|
|
211
|
+
}
|
|
212
|
+
|
|
12
213
|
/**
|
|
13
214
|
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
14
215
|
URL that describes the type of the serialized message.
|
|
@@ -130,56 +331,6 @@ export interface RpcStatus {
|
|
|
130
331
|
details?: ProtobufAny[];
|
|
131
332
|
}
|
|
132
333
|
|
|
133
|
-
/**
|
|
134
|
-
* Exec defines modes of execution of a proposal on creation or on new vote.
|
|
135
|
-
|
|
136
|
-
- EXEC_UNSPECIFIED: An empty value means that there should be a separate
|
|
137
|
-
MsgExec request for the proposal to execute.
|
|
138
|
-
- EXEC_TRY: Try to execute the proposal immediately.
|
|
139
|
-
If the proposal is not allowed per the DecisionPolicy,
|
|
140
|
-
the proposal will still be open and could
|
|
141
|
-
be executed at a later point.
|
|
142
|
-
*/
|
|
143
|
-
export enum V1Exec {
|
|
144
|
-
EXEC_UNSPECIFIED = "EXEC_UNSPECIFIED",
|
|
145
|
-
EXEC_TRY = "EXEC_TRY",
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* GroupInfo represents the high-level on-chain information for a group.
|
|
150
|
-
*/
|
|
151
|
-
export interface V1GroupInfo {
|
|
152
|
-
/**
|
|
153
|
-
* id is the unique ID of the group.
|
|
154
|
-
* @format uint64
|
|
155
|
-
*/
|
|
156
|
-
id?: string;
|
|
157
|
-
|
|
158
|
-
/** admin is the account address of the group's admin. */
|
|
159
|
-
admin?: string;
|
|
160
|
-
|
|
161
|
-
/** metadata is any arbitrary metadata to attached to the group. */
|
|
162
|
-
metadata?: string;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* version is used to track changes to a group's membership structure that
|
|
166
|
-
* would break existing proposals. Whenever any members weight is changed,
|
|
167
|
-
* or any member is added or removed this version is incremented and will
|
|
168
|
-
* cause proposals based on older versions of this group to fail
|
|
169
|
-
* @format uint64
|
|
170
|
-
*/
|
|
171
|
-
version?: string;
|
|
172
|
-
|
|
173
|
-
/** total_weight is the sum of the group members' weights. */
|
|
174
|
-
total_weight?: string;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* created_at is a timestamp specifying when a group was created.
|
|
178
|
-
* @format date-time
|
|
179
|
-
*/
|
|
180
|
-
created_at?: string;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
334
|
/**
|
|
184
335
|
* GroupMember represents the relationship between a group and a member.
|
|
185
336
|
*/
|
|
@@ -194,42 +345,6 @@ export interface V1GroupMember {
|
|
|
194
345
|
member?: V1Member;
|
|
195
346
|
}
|
|
196
347
|
|
|
197
|
-
/**
|
|
198
|
-
* GroupPolicyInfo represents the high-level on-chain information for a group policy.
|
|
199
|
-
*/
|
|
200
|
-
export interface V1GroupPolicyInfo {
|
|
201
|
-
/** address is the account address of group policy. */
|
|
202
|
-
address?: string;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* group_id is the unique ID of the group.
|
|
206
|
-
* @format uint64
|
|
207
|
-
*/
|
|
208
|
-
group_id?: string;
|
|
209
|
-
|
|
210
|
-
/** admin is the account address of the group admin. */
|
|
211
|
-
admin?: string;
|
|
212
|
-
|
|
213
|
-
/** metadata is any arbitrary metadata to attached to the group policy. */
|
|
214
|
-
metadata?: string;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* version is used to track changes to a group's GroupPolicyInfo structure that
|
|
218
|
-
* would create a different result on a running proposal.
|
|
219
|
-
* @format uint64
|
|
220
|
-
*/
|
|
221
|
-
version?: string;
|
|
222
|
-
|
|
223
|
-
/** decision_policy specifies the group policy's decision policy. */
|
|
224
|
-
decision_policy?: ProtobufAny;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* created_at is a timestamp specifying when a group policy was created.
|
|
228
|
-
* @format date-time
|
|
229
|
-
*/
|
|
230
|
-
created_at?: string;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
348
|
/**
|
|
234
349
|
* Member represents a group member with an account address,
|
|
235
350
|
non-zero weight, metadata and added_at timestamp.
|
|
@@ -364,78 +479,6 @@ export type V1MsgVoteResponse = object;
|
|
|
364
479
|
*/
|
|
365
480
|
export type V1MsgWithdrawProposalResponse = object;
|
|
366
481
|
|
|
367
|
-
/**
|
|
368
|
-
* Proposal defines a group proposal. Any member of a group can submit a proposal
|
|
369
|
-
for a group policy to decide upon.
|
|
370
|
-
A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
|
|
371
|
-
passes as well as some optional metadata associated with the proposal.
|
|
372
|
-
*/
|
|
373
|
-
export interface V1Proposal {
|
|
374
|
-
/**
|
|
375
|
-
* id is the unique id of the proposal.
|
|
376
|
-
* @format uint64
|
|
377
|
-
*/
|
|
378
|
-
id?: string;
|
|
379
|
-
|
|
380
|
-
/** group_policy_address is the account address of group policy. */
|
|
381
|
-
group_policy_address?: string;
|
|
382
|
-
|
|
383
|
-
/** metadata is any arbitrary metadata to attached to the proposal. */
|
|
384
|
-
metadata?: string;
|
|
385
|
-
|
|
386
|
-
/** proposers are the account addresses of the proposers. */
|
|
387
|
-
proposers?: string[];
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* submit_time is a timestamp specifying when a proposal was submitted.
|
|
391
|
-
* @format date-time
|
|
392
|
-
*/
|
|
393
|
-
submit_time?: string;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* group_version tracks the version of the group at proposal submission.
|
|
397
|
-
* This field is here for informational purposes only.
|
|
398
|
-
* @format uint64
|
|
399
|
-
*/
|
|
400
|
-
group_version?: string;
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* group_policy_version tracks the version of the group policy at proposal submission.
|
|
404
|
-
* When a decision policy is changed, existing proposals from previous policy
|
|
405
|
-
* versions will become invalid with the `ABORTED` status.
|
|
406
|
-
* This field is here for informational purposes only.
|
|
407
|
-
* @format uint64
|
|
408
|
-
*/
|
|
409
|
-
group_policy_version?: string;
|
|
410
|
-
|
|
411
|
-
/** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */
|
|
412
|
-
status?: V1ProposalStatus;
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* final_tally_result contains the sums of all weighted votes for this
|
|
416
|
-
* proposal for each vote option. It is empty at submission, and only
|
|
417
|
-
* populated after tallying, at voting period end or at proposal execution,
|
|
418
|
-
* whichever happens first.
|
|
419
|
-
*/
|
|
420
|
-
final_tally_result?: V1TallyResult;
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* voting_period_end is the timestamp before which voting must be done.
|
|
424
|
-
* Unless a successfull MsgExec is called before (to execute a proposal whose
|
|
425
|
-
* tally is successful before the voting period ends), tallying will be done
|
|
426
|
-
* at this point, and the `final_tally_result`and `status` fields will be
|
|
427
|
-
* accordingly updated.
|
|
428
|
-
* @format date-time
|
|
429
|
-
*/
|
|
430
|
-
voting_period_end?: string;
|
|
431
|
-
|
|
432
|
-
/** executor_result is the final result of the proposal execution. Initial value is NotRun. */
|
|
433
|
-
executor_result?: V1ProposalExecutorResult;
|
|
434
|
-
|
|
435
|
-
/** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */
|
|
436
|
-
messages?: ProtobufAny[];
|
|
437
|
-
}
|
|
438
|
-
|
|
439
482
|
/**
|
|
440
483
|
* ProposalExecutorResult defines types of proposal executor results.
|
|
441
484
|
|
|
@@ -479,7 +522,7 @@ export enum V1ProposalStatus {
|
|
|
479
522
|
*/
|
|
480
523
|
export interface V1QueryGroupInfoResponse {
|
|
481
524
|
/** info is the GroupInfo for the group. */
|
|
482
|
-
info?:
|
|
525
|
+
info?: Groupv1GroupInfo;
|
|
483
526
|
}
|
|
484
527
|
|
|
485
528
|
/**
|
|
@@ -498,7 +541,7 @@ export interface V1QueryGroupMembersResponse {
|
|
|
498
541
|
*/
|
|
499
542
|
export interface V1QueryGroupPoliciesByAdminResponse {
|
|
500
543
|
/** group_policies are the group policies info with provided admin. */
|
|
501
|
-
group_policies?:
|
|
544
|
+
group_policies?: Groupv1GroupPolicyInfo[];
|
|
502
545
|
|
|
503
546
|
/** pagination defines the pagination in the response. */
|
|
504
547
|
pagination?: V1Beta1PageResponse;
|
|
@@ -509,7 +552,7 @@ export interface V1QueryGroupPoliciesByAdminResponse {
|
|
|
509
552
|
*/
|
|
510
553
|
export interface V1QueryGroupPoliciesByGroupResponse {
|
|
511
554
|
/** group_policies are the group policies info associated with the provided group. */
|
|
512
|
-
group_policies?:
|
|
555
|
+
group_policies?: Groupv1GroupPolicyInfo[];
|
|
513
556
|
|
|
514
557
|
/** pagination defines the pagination in the response. */
|
|
515
558
|
pagination?: V1Beta1PageResponse;
|
|
@@ -520,7 +563,7 @@ export interface V1QueryGroupPoliciesByGroupResponse {
|
|
|
520
563
|
*/
|
|
521
564
|
export interface V1QueryGroupPolicyInfoResponse {
|
|
522
565
|
/** info is the GroupPolicyInfo for the group policy. */
|
|
523
|
-
info?:
|
|
566
|
+
info?: Groupv1GroupPolicyInfo;
|
|
524
567
|
}
|
|
525
568
|
|
|
526
569
|
/**
|
|
@@ -528,7 +571,7 @@ export interface V1QueryGroupPolicyInfoResponse {
|
|
|
528
571
|
*/
|
|
529
572
|
export interface V1QueryGroupsByAdminResponse {
|
|
530
573
|
/** groups are the groups info with the provided admin. */
|
|
531
|
-
groups?:
|
|
574
|
+
groups?: Groupv1GroupInfo[];
|
|
532
575
|
|
|
533
576
|
/** pagination defines the pagination in the response. */
|
|
534
577
|
pagination?: V1Beta1PageResponse;
|
|
@@ -539,7 +582,7 @@ export interface V1QueryGroupsByAdminResponse {
|
|
|
539
582
|
*/
|
|
540
583
|
export interface V1QueryGroupsByMemberResponse {
|
|
541
584
|
/** groups are the groups info with the provided group member. */
|
|
542
|
-
groups?:
|
|
585
|
+
groups?: Groupv1GroupInfo[];
|
|
543
586
|
|
|
544
587
|
/** pagination defines the pagination in the response. */
|
|
545
588
|
pagination?: V1Beta1PageResponse;
|
|
@@ -552,7 +595,7 @@ Since: cosmos-sdk 0.47.1
|
|
|
552
595
|
*/
|
|
553
596
|
export interface V1QueryGroupsResponse {
|
|
554
597
|
/** `groups` is all the groups present in state. */
|
|
555
|
-
groups?:
|
|
598
|
+
groups?: Groupv1GroupInfo[];
|
|
556
599
|
|
|
557
600
|
/** pagination defines the pagination in the response. */
|
|
558
601
|
pagination?: V1Beta1PageResponse;
|
|
@@ -563,7 +606,7 @@ export interface V1QueryGroupsResponse {
|
|
|
563
606
|
*/
|
|
564
607
|
export interface V1QueryProposalResponse {
|
|
565
608
|
/** proposal is the proposal info. */
|
|
566
|
-
proposal?:
|
|
609
|
+
proposal?: Groupv1Proposal;
|
|
567
610
|
}
|
|
568
611
|
|
|
569
612
|
/**
|
|
@@ -571,7 +614,7 @@ export interface V1QueryProposalResponse {
|
|
|
571
614
|
*/
|
|
572
615
|
export interface V1QueryProposalsByGroupPolicyResponse {
|
|
573
616
|
/** proposals are the proposals with given group policy. */
|
|
574
|
-
proposals?:
|
|
617
|
+
proposals?: Groupv1Proposal[];
|
|
575
618
|
|
|
576
619
|
/** pagination defines the pagination in the response. */
|
|
577
620
|
pagination?: V1Beta1PageResponse;
|
|
@@ -582,7 +625,7 @@ export interface V1QueryProposalsByGroupPolicyResponse {
|
|
|
582
625
|
*/
|
|
583
626
|
export interface V1QueryTallyResultResponse {
|
|
584
627
|
/** tally defines the requested tally. */
|
|
585
|
-
tally?:
|
|
628
|
+
tally?: Groupv1TallyResult;
|
|
586
629
|
}
|
|
587
630
|
|
|
588
631
|
/**
|
|
@@ -590,7 +633,7 @@ export interface V1QueryTallyResultResponse {
|
|
|
590
633
|
*/
|
|
591
634
|
export interface V1QueryVoteByProposalVoterResponse {
|
|
592
635
|
/** vote is the vote with given proposal_id and voter. */
|
|
593
|
-
vote?:
|
|
636
|
+
vote?: Groupv1Vote;
|
|
594
637
|
}
|
|
595
638
|
|
|
596
639
|
/**
|
|
@@ -598,7 +641,7 @@ export interface V1QueryVoteByProposalVoterResponse {
|
|
|
598
641
|
*/
|
|
599
642
|
export interface V1QueryVotesByProposalResponse {
|
|
600
643
|
/** votes are the list of votes for given proposal_id. */
|
|
601
|
-
votes?:
|
|
644
|
+
votes?: Groupv1Vote[];
|
|
602
645
|
|
|
603
646
|
/** pagination defines the pagination in the response. */
|
|
604
647
|
pagination?: V1Beta1PageResponse;
|
|
@@ -609,55 +652,12 @@ export interface V1QueryVotesByProposalResponse {
|
|
|
609
652
|
*/
|
|
610
653
|
export interface V1QueryVotesByVoterResponse {
|
|
611
654
|
/** votes are the list of votes by given voter. */
|
|
612
|
-
votes?:
|
|
655
|
+
votes?: Groupv1Vote[];
|
|
613
656
|
|
|
614
657
|
/** pagination defines the pagination in the response. */
|
|
615
658
|
pagination?: V1Beta1PageResponse;
|
|
616
659
|
}
|
|
617
660
|
|
|
618
|
-
/**
|
|
619
|
-
* TallyResult represents the sum of weighted votes for each vote option.
|
|
620
|
-
*/
|
|
621
|
-
export interface V1TallyResult {
|
|
622
|
-
/** yes_count is the weighted sum of yes votes. */
|
|
623
|
-
yes_count?: string;
|
|
624
|
-
|
|
625
|
-
/** abstain_count is the weighted sum of abstainers. */
|
|
626
|
-
abstain_count?: string;
|
|
627
|
-
|
|
628
|
-
/** no_count is the weighted sum of no votes. */
|
|
629
|
-
no_count?: string;
|
|
630
|
-
|
|
631
|
-
/** no_with_veto_count is the weighted sum of veto. */
|
|
632
|
-
no_with_veto_count?: string;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Vote represents a vote for a proposal.
|
|
637
|
-
*/
|
|
638
|
-
export interface V1Vote {
|
|
639
|
-
/**
|
|
640
|
-
* proposal is the unique ID of the proposal.
|
|
641
|
-
* @format uint64
|
|
642
|
-
*/
|
|
643
|
-
proposal_id?: string;
|
|
644
|
-
|
|
645
|
-
/** voter is the account address of the voter. */
|
|
646
|
-
voter?: string;
|
|
647
|
-
|
|
648
|
-
/** option is the voter's choice on the proposal. */
|
|
649
|
-
option?: V1VoteOption;
|
|
650
|
-
|
|
651
|
-
/** metadata is any arbitrary metadata to attached to the vote. */
|
|
652
|
-
metadata?: string;
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* submit_time is the timestamp when the vote was submitted.
|
|
656
|
-
* @format date-time
|
|
657
|
-
*/
|
|
658
|
-
submit_time?: string;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
661
|
/**
|
|
662
662
|
* VoteOption enumerates the valid vote options for a given proposal.
|
|
663
663
|
|