@sparkdreamnft/sparkdreamjs 0.0.4 → 0.0.5
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/cosmos/auth/v1beta1/tx.registry.d.ts +23 -0
- package/cosmos/auth/v1beta1/tx.registry.js +33 -1
- package/cosmos/authz/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/authz/v1beta1/tx.registry.js +69 -1
- package/cosmos/bank/v1beta1/tx.registry.d.ts +59 -0
- package/cosmos/bank/v1beta1/tx.registry.js +87 -1
- package/cosmos/benchmark/v1/tx.registry.d.ts +23 -0
- package/cosmos/benchmark/v1/tx.registry.js +33 -1
- package/cosmos/bundle.d.ts +957 -0
- package/cosmos/circuit/v1/tx.registry.d.ts +47 -0
- package/cosmos/circuit/v1/tx.registry.js +69 -1
- package/cosmos/consensus/v1/tx.registry.d.ts +23 -0
- package/cosmos/consensus/v1/tx.registry.js +33 -1
- package/cosmos/counter/v1/tx.registry.d.ts +23 -0
- package/cosmos/counter/v1/tx.registry.js +33 -1
- package/cosmos/distribution/v1beta1/tx.registry.d.ts +95 -0
- package/cosmos/distribution/v1beta1/tx.registry.js +141 -1
- package/cosmos/feegrant/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/feegrant/v1beta1/tx.registry.js +69 -1
- package/cosmos/gov/v1/tx.registry.d.ts +95 -0
- package/cosmos/gov/v1/tx.registry.js +141 -1
- package/cosmos/gov/v1beta1/tx.registry.d.ts +59 -0
- package/cosmos/gov/v1beta1/tx.registry.js +87 -1
- package/cosmos/group/v1/tx.registry.d.ts +179 -0
- package/cosmos/group/v1/tx.registry.js +267 -1
- package/cosmos/mint/v1beta1/tx.registry.d.ts +23 -0
- package/cosmos/mint/v1beta1/tx.registry.js +33 -1
- package/cosmos/protocolpool/v1/tx.registry.d.ts +71 -0
- package/cosmos/protocolpool/v1/tx.registry.js +105 -1
- package/cosmos/staking/v1beta1/tx.registry.d.ts +95 -0
- package/cosmos/staking/v1beta1/tx.registry.js +141 -1
- package/cosmos/upgrade/v1beta1/tx.registry.d.ts +35 -0
- package/cosmos/upgrade/v1beta1/tx.registry.js +51 -1
- package/cosmos/vesting/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/vesting/v1beta1/tx.registry.js +69 -1
- package/esm/cosmos/auth/v1beta1/tx.registry.js +31 -0
- package/esm/cosmos/authz/v1beta1/tx.registry.js +67 -0
- package/esm/cosmos/bank/v1beta1/tx.registry.js +85 -0
- package/esm/cosmos/benchmark/v1/tx.registry.js +31 -0
- package/esm/cosmos/circuit/v1/tx.registry.js +67 -0
- package/esm/cosmos/consensus/v1/tx.registry.js +31 -0
- package/esm/cosmos/counter/v1/tx.registry.js +31 -0
- package/esm/cosmos/distribution/v1beta1/tx.registry.js +139 -0
- package/esm/cosmos/feegrant/v1beta1/tx.registry.js +67 -0
- package/esm/cosmos/gov/v1/tx.registry.js +139 -0
- package/esm/cosmos/gov/v1beta1/tx.registry.js +85 -0
- package/esm/cosmos/group/v1/tx.registry.js +265 -0
- package/esm/cosmos/mint/v1beta1/tx.registry.js +31 -0
- package/esm/cosmos/protocolpool/v1/tx.registry.js +103 -0
- package/esm/cosmos/staking/v1beta1/tx.registry.js +139 -0
- package/esm/cosmos/upgrade/v1beta1/tx.registry.js +49 -0
- package/esm/cosmos/vesting/v1beta1/tx.registry.js +67 -0
- package/esm/ibc/applications/interchain_accounts/controller/v1/tx.registry.js +67 -0
- package/esm/ibc/applications/interchain_accounts/host/v1/tx.registry.js +49 -0
- package/esm/ibc/applications/transfer/v1/tx.registry.js +49 -0
- package/esm/ibc/core/channel/v1/tx.registry.js +193 -0
- package/esm/ibc/core/channel/v2/tx.registry.js +85 -0
- package/esm/ibc/core/client/v1/tx.registry.js +157 -0
- package/esm/ibc/core/client/v2/tx.registry.js +49 -0
- package/esm/ibc/core/connection/v1/tx.registry.js +103 -0
- package/esm/ibc/lightclients/wasm/v1/tx.registry.js +67 -0
- package/esm/sparkdream/blog/tx.registry.js +85 -0
- package/esm/sparkdream/sparkdream/tx.registry.js +31 -0
- package/ibc/applications/interchain_accounts/controller/v1/tx.registry.d.ts +47 -0
- package/ibc/applications/interchain_accounts/controller/v1/tx.registry.js +69 -1
- package/ibc/applications/interchain_accounts/host/v1/tx.registry.d.ts +35 -0
- package/ibc/applications/interchain_accounts/host/v1/tx.registry.js +51 -1
- package/ibc/applications/transfer/v1/tx.registry.d.ts +35 -0
- package/ibc/applications/transfer/v1/tx.registry.js +51 -1
- package/ibc/bundle.d.ts +549 -0
- package/ibc/core/channel/v1/tx.registry.d.ts +131 -0
- package/ibc/core/channel/v1/tx.registry.js +195 -1
- package/ibc/core/channel/v2/tx.registry.d.ts +59 -0
- package/ibc/core/channel/v2/tx.registry.js +87 -1
- package/ibc/core/client/v1/tx.registry.d.ts +107 -0
- package/ibc/core/client/v1/tx.registry.js +159 -1
- package/ibc/core/client/v2/tx.registry.d.ts +35 -0
- package/ibc/core/client/v2/tx.registry.js +51 -1
- package/ibc/core/connection/v1/tx.registry.d.ts +71 -0
- package/ibc/core/connection/v1/tx.registry.js +105 -1
- package/ibc/lightclients/wasm/v1/tx.registry.d.ts +47 -0
- package/ibc/lightclients/wasm/v1/tx.registry.js +69 -1
- package/package.json +1 -1
- package/sparkdream/blog/tx.registry.d.ts +59 -0
- package/sparkdream/blog/tx.registry.js +87 -1
- package/sparkdream/bundle.d.ts +78 -0
- package/sparkdream/sparkdream/tx.registry.d.ts +23 -0
- package/sparkdream/sparkdream/tx.registry.js +33 -1
|
@@ -1,2 +1,33 @@
|
|
|
1
1
|
import { MsgIncreaseCounter } from "./tx";
|
|
2
2
|
export const registry = [["/cosmos.counter.v1.MsgIncreaseCounter", MsgIncreaseCounter]];
|
|
3
|
+
export const load = (protoRegistry) => {
|
|
4
|
+
registry.forEach(([typeUrl, mod]) => {
|
|
5
|
+
protoRegistry.register(typeUrl, mod);
|
|
6
|
+
});
|
|
7
|
+
};
|
|
8
|
+
export const MessageComposer = {
|
|
9
|
+
encoded: {
|
|
10
|
+
increaseCount(value) {
|
|
11
|
+
return {
|
|
12
|
+
typeUrl: "/cosmos.counter.v1.MsgIncreaseCounter",
|
|
13
|
+
value: MsgIncreaseCounter.encode(value).finish()
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
withTypeUrl: {
|
|
18
|
+
increaseCount(value) {
|
|
19
|
+
return {
|
|
20
|
+
typeUrl: "/cosmos.counter.v1.MsgIncreaseCounter",
|
|
21
|
+
value
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
fromPartial: {
|
|
26
|
+
increaseCount(value) {
|
|
27
|
+
return {
|
|
28
|
+
typeUrl: "/cosmos.counter.v1.MsgIncreaseCounter",
|
|
29
|
+
value: MsgIncreaseCounter.fromPartial(value)
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
@@ -1,2 +1,141 @@
|
|
|
1
1
|
import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool, MsgUpdateParams, MsgCommunityPoolSpend, MsgDepositValidatorRewardsPool } from "./tx";
|
|
2
2
|
export const registry = [["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool], ["/cosmos.distribution.v1beta1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend], ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", MsgDepositValidatorRewardsPool]];
|
|
3
|
+
export const load = (protoRegistry) => {
|
|
4
|
+
registry.forEach(([typeUrl, mod]) => {
|
|
5
|
+
protoRegistry.register(typeUrl, mod);
|
|
6
|
+
});
|
|
7
|
+
};
|
|
8
|
+
export const MessageComposer = {
|
|
9
|
+
encoded: {
|
|
10
|
+
setWithdrawAddress(value) {
|
|
11
|
+
return {
|
|
12
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
|
|
13
|
+
value: MsgSetWithdrawAddress.encode(value).finish()
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
withdrawDelegatorReward(value) {
|
|
17
|
+
return {
|
|
18
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
|
|
19
|
+
value: MsgWithdrawDelegatorReward.encode(value).finish()
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
withdrawValidatorCommission(value) {
|
|
23
|
+
return {
|
|
24
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",
|
|
25
|
+
value: MsgWithdrawValidatorCommission.encode(value).finish()
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
fundCommunityPool(value) {
|
|
29
|
+
return {
|
|
30
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool",
|
|
31
|
+
value: MsgFundCommunityPool.encode(value).finish()
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
updateParams(value) {
|
|
35
|
+
return {
|
|
36
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams",
|
|
37
|
+
value: MsgUpdateParams.encode(value).finish()
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
communityPoolSpend(value) {
|
|
41
|
+
return {
|
|
42
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",
|
|
43
|
+
value: MsgCommunityPoolSpend.encode(value).finish()
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
depositValidatorRewardsPool(value) {
|
|
47
|
+
return {
|
|
48
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool",
|
|
49
|
+
value: MsgDepositValidatorRewardsPool.encode(value).finish()
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
withTypeUrl: {
|
|
54
|
+
setWithdrawAddress(value) {
|
|
55
|
+
return {
|
|
56
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
|
|
57
|
+
value
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
withdrawDelegatorReward(value) {
|
|
61
|
+
return {
|
|
62
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
|
|
63
|
+
value
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
withdrawValidatorCommission(value) {
|
|
67
|
+
return {
|
|
68
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",
|
|
69
|
+
value
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
fundCommunityPool(value) {
|
|
73
|
+
return {
|
|
74
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool",
|
|
75
|
+
value
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
updateParams(value) {
|
|
79
|
+
return {
|
|
80
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams",
|
|
81
|
+
value
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
communityPoolSpend(value) {
|
|
85
|
+
return {
|
|
86
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",
|
|
87
|
+
value
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
depositValidatorRewardsPool(value) {
|
|
91
|
+
return {
|
|
92
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool",
|
|
93
|
+
value
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
fromPartial: {
|
|
98
|
+
setWithdrawAddress(value) {
|
|
99
|
+
return {
|
|
100
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
|
|
101
|
+
value: MsgSetWithdrawAddress.fromPartial(value)
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
withdrawDelegatorReward(value) {
|
|
105
|
+
return {
|
|
106
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
|
|
107
|
+
value: MsgWithdrawDelegatorReward.fromPartial(value)
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
withdrawValidatorCommission(value) {
|
|
111
|
+
return {
|
|
112
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",
|
|
113
|
+
value: MsgWithdrawValidatorCommission.fromPartial(value)
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
fundCommunityPool(value) {
|
|
117
|
+
return {
|
|
118
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool",
|
|
119
|
+
value: MsgFundCommunityPool.fromPartial(value)
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
updateParams(value) {
|
|
123
|
+
return {
|
|
124
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams",
|
|
125
|
+
value: MsgUpdateParams.fromPartial(value)
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
communityPoolSpend(value) {
|
|
129
|
+
return {
|
|
130
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",
|
|
131
|
+
value: MsgCommunityPoolSpend.fromPartial(value)
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
depositValidatorRewardsPool(value) {
|
|
135
|
+
return {
|
|
136
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool",
|
|
137
|
+
value: MsgDepositValidatorRewardsPool.fromPartial(value)
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
@@ -1,2 +1,69 @@
|
|
|
1
1
|
import { MsgGrantAllowance, MsgRevokeAllowance, MsgPruneAllowances } from "./tx";
|
|
2
2
|
export const registry = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance], ["/cosmos.feegrant.v1beta1.MsgPruneAllowances", MsgPruneAllowances]];
|
|
3
|
+
export const load = (protoRegistry) => {
|
|
4
|
+
registry.forEach(([typeUrl, mod]) => {
|
|
5
|
+
protoRegistry.register(typeUrl, mod);
|
|
6
|
+
});
|
|
7
|
+
};
|
|
8
|
+
export const MessageComposer = {
|
|
9
|
+
encoded: {
|
|
10
|
+
grantAllowance(value) {
|
|
11
|
+
return {
|
|
12
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
13
|
+
value: MsgGrantAllowance.encode(value).finish()
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
revokeAllowance(value) {
|
|
17
|
+
return {
|
|
18
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
19
|
+
value: MsgRevokeAllowance.encode(value).finish()
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
pruneAllowances(value) {
|
|
23
|
+
return {
|
|
24
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances",
|
|
25
|
+
value: MsgPruneAllowances.encode(value).finish()
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
withTypeUrl: {
|
|
30
|
+
grantAllowance(value) {
|
|
31
|
+
return {
|
|
32
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
33
|
+
value
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
revokeAllowance(value) {
|
|
37
|
+
return {
|
|
38
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
39
|
+
value
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
pruneAllowances(value) {
|
|
43
|
+
return {
|
|
44
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances",
|
|
45
|
+
value
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
fromPartial: {
|
|
50
|
+
grantAllowance(value) {
|
|
51
|
+
return {
|
|
52
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
53
|
+
value: MsgGrantAllowance.fromPartial(value)
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
revokeAllowance(value) {
|
|
57
|
+
return {
|
|
58
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
59
|
+
value: MsgRevokeAllowance.fromPartial(value)
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
pruneAllowances(value) {
|
|
63
|
+
return {
|
|
64
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances",
|
|
65
|
+
value: MsgPruneAllowances.fromPartial(value)
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
@@ -1,2 +1,141 @@
|
|
|
1
1
|
import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit, MsgUpdateParams, MsgCancelProposal } from "./tx";
|
|
2
2
|
export const registry = [["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], ["/cosmos.gov.v1.MsgVote", MsgVote], ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1.MsgDeposit", MsgDeposit], ["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.gov.v1.MsgCancelProposal", MsgCancelProposal]];
|
|
3
|
+
export const load = (protoRegistry) => {
|
|
4
|
+
registry.forEach(([typeUrl, mod]) => {
|
|
5
|
+
protoRegistry.register(typeUrl, mod);
|
|
6
|
+
});
|
|
7
|
+
};
|
|
8
|
+
export const MessageComposer = {
|
|
9
|
+
encoded: {
|
|
10
|
+
submitProposal(value) {
|
|
11
|
+
return {
|
|
12
|
+
typeUrl: "/cosmos.gov.v1.MsgSubmitProposal",
|
|
13
|
+
value: MsgSubmitProposal.encode(value).finish()
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
execLegacyContent(value) {
|
|
17
|
+
return {
|
|
18
|
+
typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent",
|
|
19
|
+
value: MsgExecLegacyContent.encode(value).finish()
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
vote(value) {
|
|
23
|
+
return {
|
|
24
|
+
typeUrl: "/cosmos.gov.v1.MsgVote",
|
|
25
|
+
value: MsgVote.encode(value).finish()
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
voteWeighted(value) {
|
|
29
|
+
return {
|
|
30
|
+
typeUrl: "/cosmos.gov.v1.MsgVoteWeighted",
|
|
31
|
+
value: MsgVoteWeighted.encode(value).finish()
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
deposit(value) {
|
|
35
|
+
return {
|
|
36
|
+
typeUrl: "/cosmos.gov.v1.MsgDeposit",
|
|
37
|
+
value: MsgDeposit.encode(value).finish()
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
updateParams(value) {
|
|
41
|
+
return {
|
|
42
|
+
typeUrl: "/cosmos.gov.v1.MsgUpdateParams",
|
|
43
|
+
value: MsgUpdateParams.encode(value).finish()
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
cancelProposal(value) {
|
|
47
|
+
return {
|
|
48
|
+
typeUrl: "/cosmos.gov.v1.MsgCancelProposal",
|
|
49
|
+
value: MsgCancelProposal.encode(value).finish()
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
withTypeUrl: {
|
|
54
|
+
submitProposal(value) {
|
|
55
|
+
return {
|
|
56
|
+
typeUrl: "/cosmos.gov.v1.MsgSubmitProposal",
|
|
57
|
+
value
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
execLegacyContent(value) {
|
|
61
|
+
return {
|
|
62
|
+
typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent",
|
|
63
|
+
value
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
vote(value) {
|
|
67
|
+
return {
|
|
68
|
+
typeUrl: "/cosmos.gov.v1.MsgVote",
|
|
69
|
+
value
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
voteWeighted(value) {
|
|
73
|
+
return {
|
|
74
|
+
typeUrl: "/cosmos.gov.v1.MsgVoteWeighted",
|
|
75
|
+
value
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
deposit(value) {
|
|
79
|
+
return {
|
|
80
|
+
typeUrl: "/cosmos.gov.v1.MsgDeposit",
|
|
81
|
+
value
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
updateParams(value) {
|
|
85
|
+
return {
|
|
86
|
+
typeUrl: "/cosmos.gov.v1.MsgUpdateParams",
|
|
87
|
+
value
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
cancelProposal(value) {
|
|
91
|
+
return {
|
|
92
|
+
typeUrl: "/cosmos.gov.v1.MsgCancelProposal",
|
|
93
|
+
value
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
fromPartial: {
|
|
98
|
+
submitProposal(value) {
|
|
99
|
+
return {
|
|
100
|
+
typeUrl: "/cosmos.gov.v1.MsgSubmitProposal",
|
|
101
|
+
value: MsgSubmitProposal.fromPartial(value)
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
execLegacyContent(value) {
|
|
105
|
+
return {
|
|
106
|
+
typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent",
|
|
107
|
+
value: MsgExecLegacyContent.fromPartial(value)
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
vote(value) {
|
|
111
|
+
return {
|
|
112
|
+
typeUrl: "/cosmos.gov.v1.MsgVote",
|
|
113
|
+
value: MsgVote.fromPartial(value)
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
voteWeighted(value) {
|
|
117
|
+
return {
|
|
118
|
+
typeUrl: "/cosmos.gov.v1.MsgVoteWeighted",
|
|
119
|
+
value: MsgVoteWeighted.fromPartial(value)
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
deposit(value) {
|
|
123
|
+
return {
|
|
124
|
+
typeUrl: "/cosmos.gov.v1.MsgDeposit",
|
|
125
|
+
value: MsgDeposit.fromPartial(value)
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
updateParams(value) {
|
|
129
|
+
return {
|
|
130
|
+
typeUrl: "/cosmos.gov.v1.MsgUpdateParams",
|
|
131
|
+
value: MsgUpdateParams.fromPartial(value)
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
cancelProposal(value) {
|
|
135
|
+
return {
|
|
136
|
+
typeUrl: "/cosmos.gov.v1.MsgCancelProposal",
|
|
137
|
+
value: MsgCancelProposal.fromPartial(value)
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
@@ -1,2 +1,87 @@
|
|
|
1
1
|
import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx";
|
|
2
2
|
export const registry = [["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit]];
|
|
3
|
+
export const load = (protoRegistry) => {
|
|
4
|
+
registry.forEach(([typeUrl, mod]) => {
|
|
5
|
+
protoRegistry.register(typeUrl, mod);
|
|
6
|
+
});
|
|
7
|
+
};
|
|
8
|
+
export const MessageComposer = {
|
|
9
|
+
encoded: {
|
|
10
|
+
submitProposal(value) {
|
|
11
|
+
return {
|
|
12
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal",
|
|
13
|
+
value: MsgSubmitProposal.encode(value).finish()
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
vote(value) {
|
|
17
|
+
return {
|
|
18
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVote",
|
|
19
|
+
value: MsgVote.encode(value).finish()
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
voteWeighted(value) {
|
|
23
|
+
return {
|
|
24
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted",
|
|
25
|
+
value: MsgVoteWeighted.encode(value).finish()
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
deposit(value) {
|
|
29
|
+
return {
|
|
30
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDeposit",
|
|
31
|
+
value: MsgDeposit.encode(value).finish()
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
withTypeUrl: {
|
|
36
|
+
submitProposal(value) {
|
|
37
|
+
return {
|
|
38
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal",
|
|
39
|
+
value
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
vote(value) {
|
|
43
|
+
return {
|
|
44
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVote",
|
|
45
|
+
value
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
voteWeighted(value) {
|
|
49
|
+
return {
|
|
50
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted",
|
|
51
|
+
value
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
deposit(value) {
|
|
55
|
+
return {
|
|
56
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDeposit",
|
|
57
|
+
value
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
fromPartial: {
|
|
62
|
+
submitProposal(value) {
|
|
63
|
+
return {
|
|
64
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal",
|
|
65
|
+
value: MsgSubmitProposal.fromPartial(value)
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
vote(value) {
|
|
69
|
+
return {
|
|
70
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVote",
|
|
71
|
+
value: MsgVote.fromPartial(value)
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
voteWeighted(value) {
|
|
75
|
+
return {
|
|
76
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted",
|
|
77
|
+
value: MsgVoteWeighted.fromPartial(value)
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
deposit(value) {
|
|
81
|
+
return {
|
|
82
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDeposit",
|
|
83
|
+
value: MsgDeposit.fromPartial(value)
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|