carbon-js-sdk 0.3.52 → 0.3.53-dev.1
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/lib/CarbonSDK.js +1 -1
- package/lib/clients/ETHClient.d.ts +11 -4
- package/lib/clients/ETHClient.js +20 -6
- package/lib/clients/HydrogenClient.d.ts +16 -7
- package/lib/clients/HydrogenClient.js +55 -9
- package/lib/clients/NEOClient.d.ts +1 -1
- package/lib/clients/NEOClient.js +9 -4
- package/lib/clients/TokenClient.d.ts +17 -4
- package/lib/clients/TokenClient.js +121 -8
- package/lib/clients/ZILClient.d.ts +1 -1
- package/lib/clients/ZILClient.js +9 -4
- package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +18 -0
- package/lib/codec/cosmos/app/module/v1alpha1/module.js +46 -0
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +57 -0
- package/lib/codec/cosmos/app/v1alpha1/config.js +125 -0
- package/lib/codec/cosmos/app/v1alpha1/export.d.ts +3 -0
- package/lib/codec/cosmos/app/v1alpha1/export.js +13 -0
- package/lib/codec/cosmos/app/v1alpha1/module.d.ts +109 -0
- package/lib/codec/cosmos/app/v1alpha1/module.js +192 -0
- package/lib/codec/cosmos/app/v1alpha1/query.d.ts +44 -0
- package/lib/codec/cosmos/app/v1alpha1/query.js +107 -0
- package/lib/codec/cosmos/authz/v1beta1/export.d.ts +4 -0
- package/lib/codec/cosmos/authz/v1beta1/export.js +25 -0
- package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +42 -0
- package/lib/codec/cosmos/base/node/v1beta1/query.js +104 -0
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +67 -0
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.js +423 -0
- package/lib/codec/cosmos/capability/v1beta1/export.d.ts +2 -0
- package/lib/codec/cosmos/capability/v1beta1/export.js +9 -0
- package/lib/codec/cosmos/crisis/v1beta1/export.d.ts +1 -0
- package/lib/codec/cosmos/crisis/v1beta1/export.js +6 -0
- package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +32 -0
- package/lib/codec/cosmos/crypto/hd/v1/hd.js +114 -0
- package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +78 -0
- package/lib/codec/cosmos/crypto/keyring/v1/record.js +309 -0
- package/lib/codec/cosmos/evidence/v1beta1/export.d.ts +3 -0
- package/lib/codec/cosmos/evidence/v1beta1/export.js +13 -0
- package/lib/codec/cosmos/feegrant/v1beta1/export.d.ts +3 -0
- package/lib/codec/cosmos/feegrant/v1beta1/export.js +20 -0
- package/lib/codec/cosmos/gov/v1/export.d.ts +3 -0
- package/lib/codec/cosmos/gov/v1/export.js +46 -0
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +34 -0
- package/lib/codec/cosmos/gov/v1/genesis.js +166 -0
- package/lib/codec/cosmos/gov/v1/gov.d.ts +198 -0
- package/lib/codec/cosmos/gov/v1/gov.js +855 -0
- package/lib/codec/cosmos/gov/v1/query.d.ts +264 -0
- package/lib/codec/cosmos/gov/v1/query.js +1045 -0
- package/lib/codec/cosmos/gov/v1/tx.d.ts +167 -0
- package/lib/codec/cosmos/gov/v1/tx.js +639 -0
- package/lib/codec/cosmos/group/v1/events.d.ts +124 -0
- package/lib/codec/cosmos/group/v1/events.js +480 -0
- package/lib/codec/cosmos/group/v1/export.d.ts +4 -0
- package/lib/codec/cosmos/group/v1/export.js +94 -0
- package/lib/codec/cosmos/group/v1/genesis.d.ts +45 -0
- package/lib/codec/cosmos/group/v1/genesis.js +176 -0
- package/lib/codec/cosmos/group/v1/query.d.ts +412 -0
- package/lib/codec/cosmos/group/v1/query.js +1648 -0
- package/lib/codec/cosmos/group/v1/tx.d.ts +483 -0
- package/lib/codec/cosmos/group/v1/tx.js +1840 -0
- package/lib/codec/cosmos/group/v1/types.d.ts +356 -0
- package/lib/codec/cosmos/group/v1/types.js +1306 -0
- package/lib/codec/cosmos/msg/v1/msg.d.ts +1 -0
- package/lib/codec/cosmos/msg/v1/msg.js +14 -0
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +48 -0
- package/lib/codec/cosmos/nft/v1beta1/event.js +227 -0
- package/lib/codec/cosmos/nft/v1beta1/export.d.ts +5 -0
- package/lib/codec/cosmos/nft/v1beta1/export.js +30 -0
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +36 -0
- package/lib/codec/cosmos/nft/v1beta1/genesis.js +140 -0
- package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +53 -0
- package/lib/codec/cosmos/nft/v1beta1/nft.js +233 -0
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +206 -0
- package/lib/codec/cosmos/nft/v1beta1/query.js +817 -0
- package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +49 -0
- package/lib/codec/cosmos/nft/v1beta1/tx.js +137 -0
- package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +22 -0
- package/lib/codec/cosmos/orm/module/v1alpha1/module.js +46 -0
- package/lib/codec/cosmos/orm/v1/export.d.ts +1 -0
- package/lib/codec/cosmos/orm/v1/export.js +8 -0
- package/lib/codec/cosmos/orm/v1/orm.d.ts +123 -0
- package/lib/codec/cosmos/orm/v1/orm.js +263 -0
- package/lib/codec/cosmos/orm/v1alpha1/export.d.ts +1 -0
- package/lib/codec/cosmos/orm/v1alpha1/export.js +9 -0
- package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +96 -0
- package/lib/codec/cosmos/orm/v1alpha1/schema.js +265 -0
- package/lib/codec/cosmos/upgrade/v1beta1/export.d.ts +3 -0
- package/lib/codec/cosmos/upgrade/v1beta1/export.js +24 -0
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +97 -0
- package/lib/codec/cosmos/upgrade/v1beta1/tx.js +203 -0
- package/lib/codec/ibc/applications/fee/v1/ack.d.ts +24 -0
- package/lib/codec/ibc/applications/fee/v1/ack.js +125 -0
- package/lib/codec/ibc/applications/fee/v1/export.d.ts +6 -0
- package/lib/codec/ibc/applications/fee/v1/export.js +47 -0
- package/lib/codec/ibc/applications/fee/v1/fee.d.ts +68 -0
- package/lib/codec/ibc/applications/fee/v1/fee.js +289 -0
- package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +93 -0
- package/lib/codec/ibc/applications/fee/v1/genesis.js +390 -0
- package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +25 -0
- package/lib/codec/ibc/applications/fee/v1/metadata.js +71 -0
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +312 -0
- package/lib/codec/ibc/applications/fee/v1/query.js +1187 -0
- package/lib/codec/ibc/applications/fee/v1/tx.d.ts +171 -0
- package/lib/codec/ibc/applications/fee/v1/tx.js +524 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +78 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +296 -0
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +80 -0
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +439 -0
- package/lib/hydrogen/transfer.d.ts +5 -5
- package/lib/insights/competition.d.ts +1 -0
- package/lib/provider/metamask/MetaMask.d.ts +5 -5
- package/lib/provider/metamask/MetaMask.js +35 -35
- package/lib/util/blockchain.d.ts +9 -0
- package/lib/util/blockchain.js +143 -1
- package/lib/util/ibc.d.ts +4 -4
- package/lib/util/ibc.js +17 -18
- package/package.json +1 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgCreateGroupWithPolicy = exports.MsgUpdateGroupPolicyAdmin = exports.MsgCreateGroupPolicyResponse = exports.MsgCreateGroupPolicy = exports.MsgUpdateGroupMetadataResponse = exports.MsgUpdateGroupMetadata = exports.MsgUpdateGroupAdminResponse = exports.MsgUpdateGroupAdmin = exports.MsgUpdateGroupMembersResponse = exports.MsgUpdateGroupMembers = exports.MsgCreateGroupResponse = exports.MsgCreateGroup = exports.execToJSON = exports.execFromJSON = exports.Exec = exports.QueryTallyResultResponse = exports.QueryTallyResultRequest = exports.QueryGroupsByMemberResponse = exports.QueryGroupsByMemberRequest = exports.QueryVotesByVoterResponse = exports.QueryVotesByVoterRequest = exports.QueryVotesByProposalResponse = exports.QueryVotesByProposalRequest = exports.QueryVoteByProposalVoterResponse = exports.QueryVoteByProposalVoterRequest = exports.QueryProposalsByGroupPolicyResponse = exports.QueryProposalsByGroupPolicyRequest = exports.QueryProposalResponse = exports.QueryProposalRequest = exports.QueryGroupPoliciesByAdminResponse = exports.QueryGroupPoliciesByAdminRequest = exports.QueryGroupPoliciesByGroupResponse = exports.QueryGroupPoliciesByGroupRequest = exports.QueryGroupsByAdminResponse = exports.QueryGroupsByAdminRequest = exports.QueryGroupMembersResponse = exports.QueryGroupMembersRequest = exports.QueryGroupPolicyInfoResponse = exports.QueryGroupPolicyInfoRequest = exports.QueryGroupInfoResponse = exports.QueryGroupInfoRequest = exports.EventLeaveGroup = exports.EventExec = exports.EventVote = exports.EventWithdrawProposal = exports.EventSubmitProposal = exports.EventUpdateGroupPolicy = exports.EventCreateGroupPolicy = exports.EventUpdateGroup = exports.EventCreateGroup = void 0;
|
|
4
|
+
exports.Vote = exports.TallyResult = exports.Proposal = exports.GroupPolicyInfo = exports.GroupMember = exports.GroupInfo = exports.DecisionPolicyWindows = exports.PercentageDecisionPolicy = exports.ThresholdDecisionPolicy = exports.MemberRequest = exports.Member = exports.proposalExecutorResultToJSON = exports.proposalExecutorResultFromJSON = exports.ProposalExecutorResult = exports.proposalStatusToJSON = exports.proposalStatusFromJSON = exports.ProposalStatus = exports.voteOptionToJSON = exports.voteOptionFromJSON = exports.VoteOption = exports.MsgLeaveGroupResponse = exports.MsgLeaveGroup = exports.MsgExecResponse = exports.MsgExec = exports.MsgVoteResponse = exports.MsgVote = exports.MsgWithdrawProposalResponse = exports.MsgWithdrawProposal = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = exports.MsgUpdateGroupPolicyMetadataResponse = exports.MsgUpdateGroupPolicyMetadata = exports.MsgUpdateGroupPolicyDecisionPolicyResponse = exports.MsgUpdateGroupPolicyDecisionPolicy = exports.MsgUpdateGroupPolicyAdminResponse = exports.MsgCreateGroupWithPolicyResponse = void 0;
|
|
5
|
+
var events_1 = require("./events");
|
|
6
|
+
Object.defineProperty(exports, "EventCreateGroup", { enumerable: true, get: function () { return events_1.EventCreateGroup; } });
|
|
7
|
+
Object.defineProperty(exports, "EventUpdateGroup", { enumerable: true, get: function () { return events_1.EventUpdateGroup; } });
|
|
8
|
+
Object.defineProperty(exports, "EventCreateGroupPolicy", { enumerable: true, get: function () { return events_1.EventCreateGroupPolicy; } });
|
|
9
|
+
Object.defineProperty(exports, "EventUpdateGroupPolicy", { enumerable: true, get: function () { return events_1.EventUpdateGroupPolicy; } });
|
|
10
|
+
Object.defineProperty(exports, "EventSubmitProposal", { enumerable: true, get: function () { return events_1.EventSubmitProposal; } });
|
|
11
|
+
Object.defineProperty(exports, "EventWithdrawProposal", { enumerable: true, get: function () { return events_1.EventWithdrawProposal; } });
|
|
12
|
+
Object.defineProperty(exports, "EventVote", { enumerable: true, get: function () { return events_1.EventVote; } });
|
|
13
|
+
Object.defineProperty(exports, "EventExec", { enumerable: true, get: function () { return events_1.EventExec; } });
|
|
14
|
+
Object.defineProperty(exports, "EventLeaveGroup", { enumerable: true, get: function () { return events_1.EventLeaveGroup; } });
|
|
15
|
+
var query_1 = require("./query");
|
|
16
|
+
Object.defineProperty(exports, "QueryGroupInfoRequest", { enumerable: true, get: function () { return query_1.QueryGroupInfoRequest; } });
|
|
17
|
+
Object.defineProperty(exports, "QueryGroupInfoResponse", { enumerable: true, get: function () { return query_1.QueryGroupInfoResponse; } });
|
|
18
|
+
Object.defineProperty(exports, "QueryGroupPolicyInfoRequest", { enumerable: true, get: function () { return query_1.QueryGroupPolicyInfoRequest; } });
|
|
19
|
+
Object.defineProperty(exports, "QueryGroupPolicyInfoResponse", { enumerable: true, get: function () { return query_1.QueryGroupPolicyInfoResponse; } });
|
|
20
|
+
Object.defineProperty(exports, "QueryGroupMembersRequest", { enumerable: true, get: function () { return query_1.QueryGroupMembersRequest; } });
|
|
21
|
+
Object.defineProperty(exports, "QueryGroupMembersResponse", { enumerable: true, get: function () { return query_1.QueryGroupMembersResponse; } });
|
|
22
|
+
Object.defineProperty(exports, "QueryGroupsByAdminRequest", { enumerable: true, get: function () { return query_1.QueryGroupsByAdminRequest; } });
|
|
23
|
+
Object.defineProperty(exports, "QueryGroupsByAdminResponse", { enumerable: true, get: function () { return query_1.QueryGroupsByAdminResponse; } });
|
|
24
|
+
Object.defineProperty(exports, "QueryGroupPoliciesByGroupRequest", { enumerable: true, get: function () { return query_1.QueryGroupPoliciesByGroupRequest; } });
|
|
25
|
+
Object.defineProperty(exports, "QueryGroupPoliciesByGroupResponse", { enumerable: true, get: function () { return query_1.QueryGroupPoliciesByGroupResponse; } });
|
|
26
|
+
Object.defineProperty(exports, "QueryGroupPoliciesByAdminRequest", { enumerable: true, get: function () { return query_1.QueryGroupPoliciesByAdminRequest; } });
|
|
27
|
+
Object.defineProperty(exports, "QueryGroupPoliciesByAdminResponse", { enumerable: true, get: function () { return query_1.QueryGroupPoliciesByAdminResponse; } });
|
|
28
|
+
Object.defineProperty(exports, "QueryProposalRequest", { enumerable: true, get: function () { return query_1.QueryProposalRequest; } });
|
|
29
|
+
Object.defineProperty(exports, "QueryProposalResponse", { enumerable: true, get: function () { return query_1.QueryProposalResponse; } });
|
|
30
|
+
Object.defineProperty(exports, "QueryProposalsByGroupPolicyRequest", { enumerable: true, get: function () { return query_1.QueryProposalsByGroupPolicyRequest; } });
|
|
31
|
+
Object.defineProperty(exports, "QueryProposalsByGroupPolicyResponse", { enumerable: true, get: function () { return query_1.QueryProposalsByGroupPolicyResponse; } });
|
|
32
|
+
Object.defineProperty(exports, "QueryVoteByProposalVoterRequest", { enumerable: true, get: function () { return query_1.QueryVoteByProposalVoterRequest; } });
|
|
33
|
+
Object.defineProperty(exports, "QueryVoteByProposalVoterResponse", { enumerable: true, get: function () { return query_1.QueryVoteByProposalVoterResponse; } });
|
|
34
|
+
Object.defineProperty(exports, "QueryVotesByProposalRequest", { enumerable: true, get: function () { return query_1.QueryVotesByProposalRequest; } });
|
|
35
|
+
Object.defineProperty(exports, "QueryVotesByProposalResponse", { enumerable: true, get: function () { return query_1.QueryVotesByProposalResponse; } });
|
|
36
|
+
Object.defineProperty(exports, "QueryVotesByVoterRequest", { enumerable: true, get: function () { return query_1.QueryVotesByVoterRequest; } });
|
|
37
|
+
Object.defineProperty(exports, "QueryVotesByVoterResponse", { enumerable: true, get: function () { return query_1.QueryVotesByVoterResponse; } });
|
|
38
|
+
Object.defineProperty(exports, "QueryGroupsByMemberRequest", { enumerable: true, get: function () { return query_1.QueryGroupsByMemberRequest; } });
|
|
39
|
+
Object.defineProperty(exports, "QueryGroupsByMemberResponse", { enumerable: true, get: function () { return query_1.QueryGroupsByMemberResponse; } });
|
|
40
|
+
Object.defineProperty(exports, "QueryTallyResultRequest", { enumerable: true, get: function () { return query_1.QueryTallyResultRequest; } });
|
|
41
|
+
Object.defineProperty(exports, "QueryTallyResultResponse", { enumerable: true, get: function () { return query_1.QueryTallyResultResponse; } });
|
|
42
|
+
var tx_1 = require("./tx");
|
|
43
|
+
Object.defineProperty(exports, "Exec", { enumerable: true, get: function () { return tx_1.Exec; } });
|
|
44
|
+
Object.defineProperty(exports, "execFromJSON", { enumerable: true, get: function () { return tx_1.execFromJSON; } });
|
|
45
|
+
Object.defineProperty(exports, "execToJSON", { enumerable: true, get: function () { return tx_1.execToJSON; } });
|
|
46
|
+
Object.defineProperty(exports, "MsgCreateGroup", { enumerable: true, get: function () { return tx_1.MsgCreateGroup; } });
|
|
47
|
+
Object.defineProperty(exports, "MsgCreateGroupResponse", { enumerable: true, get: function () { return tx_1.MsgCreateGroupResponse; } });
|
|
48
|
+
Object.defineProperty(exports, "MsgUpdateGroupMembers", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupMembers; } });
|
|
49
|
+
Object.defineProperty(exports, "MsgUpdateGroupMembersResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupMembersResponse; } });
|
|
50
|
+
Object.defineProperty(exports, "MsgUpdateGroupAdmin", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupAdmin; } });
|
|
51
|
+
Object.defineProperty(exports, "MsgUpdateGroupAdminResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupAdminResponse; } });
|
|
52
|
+
Object.defineProperty(exports, "MsgUpdateGroupMetadata", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupMetadata; } });
|
|
53
|
+
Object.defineProperty(exports, "MsgUpdateGroupMetadataResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupMetadataResponse; } });
|
|
54
|
+
Object.defineProperty(exports, "MsgCreateGroupPolicy", { enumerable: true, get: function () { return tx_1.MsgCreateGroupPolicy; } });
|
|
55
|
+
Object.defineProperty(exports, "MsgCreateGroupPolicyResponse", { enumerable: true, get: function () { return tx_1.MsgCreateGroupPolicyResponse; } });
|
|
56
|
+
Object.defineProperty(exports, "MsgUpdateGroupPolicyAdmin", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupPolicyAdmin; } });
|
|
57
|
+
Object.defineProperty(exports, "MsgCreateGroupWithPolicy", { enumerable: true, get: function () { return tx_1.MsgCreateGroupWithPolicy; } });
|
|
58
|
+
Object.defineProperty(exports, "MsgCreateGroupWithPolicyResponse", { enumerable: true, get: function () { return tx_1.MsgCreateGroupWithPolicyResponse; } });
|
|
59
|
+
Object.defineProperty(exports, "MsgUpdateGroupPolicyAdminResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupPolicyAdminResponse; } });
|
|
60
|
+
Object.defineProperty(exports, "MsgUpdateGroupPolicyDecisionPolicy", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupPolicyDecisionPolicy; } });
|
|
61
|
+
Object.defineProperty(exports, "MsgUpdateGroupPolicyDecisionPolicyResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupPolicyDecisionPolicyResponse; } });
|
|
62
|
+
Object.defineProperty(exports, "MsgUpdateGroupPolicyMetadata", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupPolicyMetadata; } });
|
|
63
|
+
Object.defineProperty(exports, "MsgUpdateGroupPolicyMetadataResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateGroupPolicyMetadataResponse; } });
|
|
64
|
+
Object.defineProperty(exports, "MsgSubmitProposal", { enumerable: true, get: function () { return tx_1.MsgSubmitProposal; } });
|
|
65
|
+
Object.defineProperty(exports, "MsgSubmitProposalResponse", { enumerable: true, get: function () { return tx_1.MsgSubmitProposalResponse; } });
|
|
66
|
+
Object.defineProperty(exports, "MsgWithdrawProposal", { enumerable: true, get: function () { return tx_1.MsgWithdrawProposal; } });
|
|
67
|
+
Object.defineProperty(exports, "MsgWithdrawProposalResponse", { enumerable: true, get: function () { return tx_1.MsgWithdrawProposalResponse; } });
|
|
68
|
+
Object.defineProperty(exports, "MsgVote", { enumerable: true, get: function () { return tx_1.MsgVote; } });
|
|
69
|
+
Object.defineProperty(exports, "MsgVoteResponse", { enumerable: true, get: function () { return tx_1.MsgVoteResponse; } });
|
|
70
|
+
Object.defineProperty(exports, "MsgExec", { enumerable: true, get: function () { return tx_1.MsgExec; } });
|
|
71
|
+
Object.defineProperty(exports, "MsgExecResponse", { enumerable: true, get: function () { return tx_1.MsgExecResponse; } });
|
|
72
|
+
Object.defineProperty(exports, "MsgLeaveGroup", { enumerable: true, get: function () { return tx_1.MsgLeaveGroup; } });
|
|
73
|
+
Object.defineProperty(exports, "MsgLeaveGroupResponse", { enumerable: true, get: function () { return tx_1.MsgLeaveGroupResponse; } });
|
|
74
|
+
var types_1 = require("./types");
|
|
75
|
+
Object.defineProperty(exports, "VoteOption", { enumerable: true, get: function () { return types_1.VoteOption; } });
|
|
76
|
+
Object.defineProperty(exports, "voteOptionFromJSON", { enumerable: true, get: function () { return types_1.voteOptionFromJSON; } });
|
|
77
|
+
Object.defineProperty(exports, "voteOptionToJSON", { enumerable: true, get: function () { return types_1.voteOptionToJSON; } });
|
|
78
|
+
Object.defineProperty(exports, "ProposalStatus", { enumerable: true, get: function () { return types_1.ProposalStatus; } });
|
|
79
|
+
Object.defineProperty(exports, "proposalStatusFromJSON", { enumerable: true, get: function () { return types_1.proposalStatusFromJSON; } });
|
|
80
|
+
Object.defineProperty(exports, "proposalStatusToJSON", { enumerable: true, get: function () { return types_1.proposalStatusToJSON; } });
|
|
81
|
+
Object.defineProperty(exports, "ProposalExecutorResult", { enumerable: true, get: function () { return types_1.ProposalExecutorResult; } });
|
|
82
|
+
Object.defineProperty(exports, "proposalExecutorResultFromJSON", { enumerable: true, get: function () { return types_1.proposalExecutorResultFromJSON; } });
|
|
83
|
+
Object.defineProperty(exports, "proposalExecutorResultToJSON", { enumerable: true, get: function () { return types_1.proposalExecutorResultToJSON; } });
|
|
84
|
+
Object.defineProperty(exports, "Member", { enumerable: true, get: function () { return types_1.Member; } });
|
|
85
|
+
Object.defineProperty(exports, "MemberRequest", { enumerable: true, get: function () { return types_1.MemberRequest; } });
|
|
86
|
+
Object.defineProperty(exports, "ThresholdDecisionPolicy", { enumerable: true, get: function () { return types_1.ThresholdDecisionPolicy; } });
|
|
87
|
+
Object.defineProperty(exports, "PercentageDecisionPolicy", { enumerable: true, get: function () { return types_1.PercentageDecisionPolicy; } });
|
|
88
|
+
Object.defineProperty(exports, "DecisionPolicyWindows", { enumerable: true, get: function () { return types_1.DecisionPolicyWindows; } });
|
|
89
|
+
Object.defineProperty(exports, "GroupInfo", { enumerable: true, get: function () { return types_1.GroupInfo; } });
|
|
90
|
+
Object.defineProperty(exports, "GroupMember", { enumerable: true, get: function () { return types_1.GroupMember; } });
|
|
91
|
+
Object.defineProperty(exports, "GroupPolicyInfo", { enumerable: true, get: function () { return types_1.GroupPolicyInfo; } });
|
|
92
|
+
Object.defineProperty(exports, "Proposal", { enumerable: true, get: function () { return types_1.Proposal; } });
|
|
93
|
+
Object.defineProperty(exports, "TallyResult", { enumerable: true, get: function () { return types_1.TallyResult; } });
|
|
94
|
+
Object.defineProperty(exports, "Vote", { enumerable: true, get: function () { return types_1.Vote; } });
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { GroupInfo, GroupMember, GroupPolicyInfo, Proposal, Vote } from "./types";
|
|
4
|
+
export declare const protobufPackage = "cosmos.group.v1";
|
|
5
|
+
/** Since: cosmos-sdk 0.46 */
|
|
6
|
+
/** GenesisState defines the group module's genesis state. */
|
|
7
|
+
export interface GenesisState {
|
|
8
|
+
/**
|
|
9
|
+
* group_seq is the group table orm.Sequence,
|
|
10
|
+
* it is used to get the next group ID.
|
|
11
|
+
*/
|
|
12
|
+
groupSeq: Long;
|
|
13
|
+
/** groups is the list of groups info. */
|
|
14
|
+
groups: GroupInfo[];
|
|
15
|
+
/** group_members is the list of groups members. */
|
|
16
|
+
groupMembers: GroupMember[];
|
|
17
|
+
/**
|
|
18
|
+
* group_policy_seq is the group policy table orm.Sequence,
|
|
19
|
+
* it is used to generate the next group policy account address.
|
|
20
|
+
*/
|
|
21
|
+
groupPolicySeq: Long;
|
|
22
|
+
/** group_policies is the list of group policies info. */
|
|
23
|
+
groupPolicies: GroupPolicyInfo[];
|
|
24
|
+
/**
|
|
25
|
+
* proposal_seq is the proposal table orm.Sequence,
|
|
26
|
+
* it is used to get the next proposal ID.
|
|
27
|
+
*/
|
|
28
|
+
proposalSeq: Long;
|
|
29
|
+
/** proposals is the list of proposals. */
|
|
30
|
+
proposals: Proposal[];
|
|
31
|
+
/** votes is the list of votes. */
|
|
32
|
+
votes: Vote[];
|
|
33
|
+
}
|
|
34
|
+
export declare const GenesisState: {
|
|
35
|
+
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
36
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
|
|
37
|
+
fromJSON(object: any): GenesisState;
|
|
38
|
+
toJSON(message: GenesisState): unknown;
|
|
39
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
|
40
|
+
};
|
|
41
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
42
|
+
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
43
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
44
|
+
} : Partial<T>;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.GenesisState = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const types_1 = require("./types");
|
|
11
|
+
exports.protobufPackage = "cosmos.group.v1";
|
|
12
|
+
const baseGenesisState = {
|
|
13
|
+
groupSeq: long_1.default.UZERO,
|
|
14
|
+
groupPolicySeq: long_1.default.UZERO,
|
|
15
|
+
proposalSeq: long_1.default.UZERO,
|
|
16
|
+
};
|
|
17
|
+
exports.GenesisState = {
|
|
18
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
19
|
+
if (!message.groupSeq.isZero()) {
|
|
20
|
+
writer.uint32(8).uint64(message.groupSeq);
|
|
21
|
+
}
|
|
22
|
+
for (const v of message.groups) {
|
|
23
|
+
types_1.GroupInfo.encode(v, writer.uint32(18).fork()).ldelim();
|
|
24
|
+
}
|
|
25
|
+
for (const v of message.groupMembers) {
|
|
26
|
+
types_1.GroupMember.encode(v, writer.uint32(26).fork()).ldelim();
|
|
27
|
+
}
|
|
28
|
+
if (!message.groupPolicySeq.isZero()) {
|
|
29
|
+
writer.uint32(32).uint64(message.groupPolicySeq);
|
|
30
|
+
}
|
|
31
|
+
for (const v of message.groupPolicies) {
|
|
32
|
+
types_1.GroupPolicyInfo.encode(v, writer.uint32(42).fork()).ldelim();
|
|
33
|
+
}
|
|
34
|
+
if (!message.proposalSeq.isZero()) {
|
|
35
|
+
writer.uint32(48).uint64(message.proposalSeq);
|
|
36
|
+
}
|
|
37
|
+
for (const v of message.proposals) {
|
|
38
|
+
types_1.Proposal.encode(v, writer.uint32(58).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
for (const v of message.votes) {
|
|
41
|
+
types_1.Vote.encode(v, writer.uint32(66).fork()).ldelim();
|
|
42
|
+
}
|
|
43
|
+
return writer;
|
|
44
|
+
},
|
|
45
|
+
decode(input, length) {
|
|
46
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
47
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
48
|
+
const message = Object.assign({}, baseGenesisState);
|
|
49
|
+
message.groups = [];
|
|
50
|
+
message.groupMembers = [];
|
|
51
|
+
message.groupPolicies = [];
|
|
52
|
+
message.proposals = [];
|
|
53
|
+
message.votes = [];
|
|
54
|
+
while (reader.pos < end) {
|
|
55
|
+
const tag = reader.uint32();
|
|
56
|
+
switch (tag >>> 3) {
|
|
57
|
+
case 1:
|
|
58
|
+
message.groupSeq = reader.uint64();
|
|
59
|
+
break;
|
|
60
|
+
case 2:
|
|
61
|
+
message.groups.push(types_1.GroupInfo.decode(reader, reader.uint32()));
|
|
62
|
+
break;
|
|
63
|
+
case 3:
|
|
64
|
+
message.groupMembers.push(types_1.GroupMember.decode(reader, reader.uint32()));
|
|
65
|
+
break;
|
|
66
|
+
case 4:
|
|
67
|
+
message.groupPolicySeq = reader.uint64();
|
|
68
|
+
break;
|
|
69
|
+
case 5:
|
|
70
|
+
message.groupPolicies.push(types_1.GroupPolicyInfo.decode(reader, reader.uint32()));
|
|
71
|
+
break;
|
|
72
|
+
case 6:
|
|
73
|
+
message.proposalSeq = reader.uint64();
|
|
74
|
+
break;
|
|
75
|
+
case 7:
|
|
76
|
+
message.proposals.push(types_1.Proposal.decode(reader, reader.uint32()));
|
|
77
|
+
break;
|
|
78
|
+
case 8:
|
|
79
|
+
message.votes.push(types_1.Vote.decode(reader, reader.uint32()));
|
|
80
|
+
break;
|
|
81
|
+
default:
|
|
82
|
+
reader.skipType(tag & 7);
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return message;
|
|
87
|
+
},
|
|
88
|
+
fromJSON(object) {
|
|
89
|
+
var _a, _b, _c, _d, _e;
|
|
90
|
+
const message = Object.assign({}, baseGenesisState);
|
|
91
|
+
message.groupSeq =
|
|
92
|
+
object.groupSeq !== undefined && object.groupSeq !== null
|
|
93
|
+
? long_1.default.fromString(object.groupSeq)
|
|
94
|
+
: long_1.default.UZERO;
|
|
95
|
+
message.groups = ((_a = object.groups) !== null && _a !== void 0 ? _a : []).map((e) => types_1.GroupInfo.fromJSON(e));
|
|
96
|
+
message.groupMembers = ((_b = object.groupMembers) !== null && _b !== void 0 ? _b : []).map((e) => types_1.GroupMember.fromJSON(e));
|
|
97
|
+
message.groupPolicySeq =
|
|
98
|
+
object.groupPolicySeq !== undefined && object.groupPolicySeq !== null
|
|
99
|
+
? long_1.default.fromString(object.groupPolicySeq)
|
|
100
|
+
: long_1.default.UZERO;
|
|
101
|
+
message.groupPolicies = ((_c = object.groupPolicies) !== null && _c !== void 0 ? _c : []).map((e) => types_1.GroupPolicyInfo.fromJSON(e));
|
|
102
|
+
message.proposalSeq =
|
|
103
|
+
object.proposalSeq !== undefined && object.proposalSeq !== null
|
|
104
|
+
? long_1.default.fromString(object.proposalSeq)
|
|
105
|
+
: long_1.default.UZERO;
|
|
106
|
+
message.proposals = ((_d = object.proposals) !== null && _d !== void 0 ? _d : []).map((e) => types_1.Proposal.fromJSON(e));
|
|
107
|
+
message.votes = ((_e = object.votes) !== null && _e !== void 0 ? _e : []).map((e) => types_1.Vote.fromJSON(e));
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
toJSON(message) {
|
|
111
|
+
const obj = {};
|
|
112
|
+
message.groupSeq !== undefined &&
|
|
113
|
+
(obj.groupSeq = (message.groupSeq || long_1.default.UZERO).toString());
|
|
114
|
+
if (message.groups) {
|
|
115
|
+
obj.groups = message.groups.map((e) => e ? types_1.GroupInfo.toJSON(e) : undefined);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
obj.groups = [];
|
|
119
|
+
}
|
|
120
|
+
if (message.groupMembers) {
|
|
121
|
+
obj.groupMembers = message.groupMembers.map((e) => e ? types_1.GroupMember.toJSON(e) : undefined);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
obj.groupMembers = [];
|
|
125
|
+
}
|
|
126
|
+
message.groupPolicySeq !== undefined &&
|
|
127
|
+
(obj.groupPolicySeq = (message.groupPolicySeq || long_1.default.UZERO).toString());
|
|
128
|
+
if (message.groupPolicies) {
|
|
129
|
+
obj.groupPolicies = message.groupPolicies.map((e) => e ? types_1.GroupPolicyInfo.toJSON(e) : undefined);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
obj.groupPolicies = [];
|
|
133
|
+
}
|
|
134
|
+
message.proposalSeq !== undefined &&
|
|
135
|
+
(obj.proposalSeq = (message.proposalSeq || long_1.default.UZERO).toString());
|
|
136
|
+
if (message.proposals) {
|
|
137
|
+
obj.proposals = message.proposals.map((e) => e ? types_1.Proposal.toJSON(e) : undefined);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
obj.proposals = [];
|
|
141
|
+
}
|
|
142
|
+
if (message.votes) {
|
|
143
|
+
obj.votes = message.votes.map((e) => (e ? types_1.Vote.toJSON(e) : undefined));
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
obj.votes = [];
|
|
147
|
+
}
|
|
148
|
+
return obj;
|
|
149
|
+
},
|
|
150
|
+
fromPartial(object) {
|
|
151
|
+
var _a, _b, _c, _d, _e;
|
|
152
|
+
const message = Object.assign({}, baseGenesisState);
|
|
153
|
+
message.groupSeq =
|
|
154
|
+
object.groupSeq !== undefined && object.groupSeq !== null
|
|
155
|
+
? long_1.default.fromValue(object.groupSeq)
|
|
156
|
+
: long_1.default.UZERO;
|
|
157
|
+
message.groups = ((_a = object.groups) !== null && _a !== void 0 ? _a : []).map((e) => types_1.GroupInfo.fromPartial(e));
|
|
158
|
+
message.groupMembers = ((_b = object.groupMembers) !== null && _b !== void 0 ? _b : []).map((e) => types_1.GroupMember.fromPartial(e));
|
|
159
|
+
message.groupPolicySeq =
|
|
160
|
+
object.groupPolicySeq !== undefined && object.groupPolicySeq !== null
|
|
161
|
+
? long_1.default.fromValue(object.groupPolicySeq)
|
|
162
|
+
: long_1.default.UZERO;
|
|
163
|
+
message.groupPolicies = ((_c = object.groupPolicies) !== null && _c !== void 0 ? _c : []).map((e) => types_1.GroupPolicyInfo.fromPartial(e));
|
|
164
|
+
message.proposalSeq =
|
|
165
|
+
object.proposalSeq !== undefined && object.proposalSeq !== null
|
|
166
|
+
? long_1.default.fromValue(object.proposalSeq)
|
|
167
|
+
: long_1.default.UZERO;
|
|
168
|
+
message.proposals = ((_d = object.proposals) !== null && _d !== void 0 ? _d : []).map((e) => types_1.Proposal.fromPartial(e));
|
|
169
|
+
message.votes = ((_e = object.votes) !== null && _e !== void 0 ? _e : []).map((e) => types_1.Vote.fromPartial(e));
|
|
170
|
+
return message;
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
174
|
+
minimal_1.default.util.Long = long_1.default;
|
|
175
|
+
minimal_1.default.configure();
|
|
176
|
+
}
|