injectivejs 1.6.3 → 1.6.4
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/binary.d.ts +1 -1
- package/binary.js +1 -1
- package/cosmos/authz/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/authz/v1beta1/tx.registry.js +67 -0
- package/cosmos/bank/v1beta1/tx.registry.d.ts +59 -0
- package/cosmos/bank/v1beta1/tx.registry.js +85 -0
- package/cosmos/client.d.ts +13 -0
- package/cosmos/client.js +59 -0
- package/cosmos/distribution/v1beta1/tx.registry.d.ts +95 -0
- package/cosmos/distribution/v1beta1/tx.registry.js +139 -0
- package/cosmos/feegrant/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/feegrant/v1beta1/tx.registry.js +67 -0
- package/cosmos/gov/v1/tx.registry.d.ts +95 -0
- package/cosmos/gov/v1/tx.registry.js +139 -0
- package/cosmos/gov/v1beta1/tx.registry.d.ts +59 -0
- package/cosmos/gov/v1beta1/tx.registry.js +85 -0
- package/cosmos/group/v1/tx.registry.d.ts +179 -0
- package/cosmos/group/v1/tx.registry.js +265 -0
- package/cosmos/staking/v1beta1/tx.registry.d.ts +95 -0
- package/cosmos/staking/v1beta1/tx.registry.js +139 -0
- package/cosmos/vesting/v1beta1/tx.registry.d.ts +47 -0
- package/cosmos/vesting/v1beta1/tx.registry.js +67 -0
- package/cosmwasm/client.d.ts +16 -0
- package/cosmwasm/client.js +53 -0
- package/cosmwasm/wasm/v1/tx.registry.d.ts +215 -0
- package/cosmwasm/wasm/v1/tx.registry.js +319 -0
- package/esm/binary.js +1 -1
- package/esm/cosmos/authz/v1beta1/tx.registry.js +64 -0
- package/esm/cosmos/bank/v1beta1/tx.registry.js +82 -0
- package/esm/cosmos/client.js +31 -0
- package/esm/cosmos/distribution/v1beta1/tx.registry.js +136 -0
- package/esm/cosmos/feegrant/v1beta1/tx.registry.js +64 -0
- package/esm/cosmos/gov/v1/tx.registry.js +136 -0
- package/esm/cosmos/gov/v1beta1/tx.registry.js +82 -0
- package/esm/cosmos/group/v1/tx.registry.js +262 -0
- package/esm/cosmos/staking/v1beta1/tx.registry.js +136 -0
- package/esm/cosmos/vesting/v1beta1/tx.registry.js +64 -0
- package/esm/cosmwasm/client.js +25 -0
- package/esm/cosmwasm/wasm/v1/tx.registry.js +316 -0
- package/esm/extern.js +1 -1
- package/esm/helper-func-types.js +1 -1
- package/esm/helpers.js +1 -1
- package/esm/ibc/applications/transfer/v1/tx.registry.js +46 -0
- package/esm/ibc/client.js +28 -0
- package/esm/ibc/core/channel/v1/tx.registry.js +352 -0
- package/esm/ibc/core/client/v1/tx.registry.js +136 -0
- package/esm/ibc/core/connection/v1/tx.registry.js +100 -0
- package/esm/injective/auction/v1beta1/tx.registry.js +46 -0
- package/esm/injective/client.js +33 -0
- package/esm/injective/exchange/v1beta1/tx.registry.js +640 -0
- package/esm/injective/insurance/v1beta1/tx.registry.js +82 -0
- package/esm/injective/ocr/v1beta1/tx.registry.js +172 -0
- package/esm/injective/oracle/v1beta1/tx.registry.js +154 -0
- package/esm/injective/peggy/v1/msgs.registry.js +262 -0
- package/esm/injective/permissions/v1beta1/tx.registry.js +136 -0
- package/esm/injective/tokenfactory/v1beta1/tx.registry.js +118 -0
- package/esm/injective/wasmx/v1/tx.registry.js +118 -0
- package/esm/registry.js +1 -1
- package/esm/types.js +1 -1
- package/esm/utf8.js +1 -1
- package/esm/varint.js +1 -1
- package/extern.d.ts +1 -1
- package/extern.js +1 -1
- package/helper-func-types.d.ts +1 -1
- package/helper-func-types.js +1 -1
- package/helpers.d.ts +1 -1
- package/helpers.js +1 -1
- package/ibc/applications/transfer/v1/tx.registry.d.ts +35 -0
- package/ibc/applications/transfer/v1/tx.registry.js +49 -0
- package/ibc/client.d.ts +16 -0
- package/ibc/client.js +56 -0
- package/ibc/core/channel/v1/tx.registry.d.ts +239 -0
- package/ibc/core/channel/v1/tx.registry.js +355 -0
- package/ibc/core/client/v1/tx.registry.d.ts +95 -0
- package/ibc/core/client/v1/tx.registry.js +139 -0
- package/ibc/core/connection/v1/tx.registry.d.ts +71 -0
- package/ibc/core/connection/v1/tx.registry.js +103 -0
- package/injective/auction/v1beta1/tx.registry.d.ts +35 -0
- package/injective/auction/v1beta1/tx.registry.js +49 -0
- package/injective/client.d.ts +16 -0
- package/injective/client.js +61 -0
- package/injective/exchange/v1beta1/tx.registry.d.ts +431 -0
- package/injective/exchange/v1beta1/tx.registry.js +643 -0
- package/injective/insurance/v1beta1/tx.registry.d.ts +59 -0
- package/injective/insurance/v1beta1/tx.registry.js +85 -0
- package/injective/ocr/v1beta1/tx.registry.d.ts +119 -0
- package/injective/ocr/v1beta1/tx.registry.js +175 -0
- package/injective/oracle/v1beta1/tx.registry.d.ts +107 -0
- package/injective/oracle/v1beta1/tx.registry.js +157 -0
- package/injective/peggy/v1/msgs.registry.d.ts +179 -0
- package/injective/peggy/v1/msgs.registry.js +265 -0
- package/injective/permissions/v1beta1/tx.registry.d.ts +95 -0
- package/injective/permissions/v1beta1/tx.registry.js +139 -0
- package/injective/tokenfactory/v1beta1/tx.registry.d.ts +83 -0
- package/injective/tokenfactory/v1beta1/tx.registry.js +121 -0
- package/injective/wasmx/v1/tx.registry.d.ts +83 -0
- package/injective/wasmx/v1/tx.registry.js +121 -0
- package/package.json +2 -2
- package/registry.d.ts +1 -1
- package/registry.js +1 -1
- package/types.d.ts +1 -1
- package/types.js +1 -1
- package/utf8.d.ts +1 -1
- package/utf8.js +1 -1
- package/varint.d.ts +1 -1
- package/varint.js +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Registry } from "@cosmjs/proto-signing";
|
|
2
|
+
import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
3
|
+
import * as cosmosAuthzV1beta1TxRegistry from "./authz/v1beta1/tx.registry";
|
|
4
|
+
import * as cosmosBankV1beta1TxRegistry from "./bank/v1beta1/tx.registry";
|
|
5
|
+
import * as cosmosDistributionV1beta1TxRegistry from "./distribution/v1beta1/tx.registry";
|
|
6
|
+
import * as cosmosFeegrantV1beta1TxRegistry from "./feegrant/v1beta1/tx.registry";
|
|
7
|
+
import * as cosmosGovV1TxRegistry from "./gov/v1/tx.registry";
|
|
8
|
+
import * as cosmosGovV1beta1TxRegistry from "./gov/v1beta1/tx.registry";
|
|
9
|
+
import * as cosmosGroupV1TxRegistry from "./group/v1/tx.registry";
|
|
10
|
+
import * as cosmosStakingV1beta1TxRegistry from "./staking/v1beta1/tx.registry";
|
|
11
|
+
import * as cosmosVestingV1beta1TxRegistry from "./vesting/v1beta1/tx.registry";
|
|
12
|
+
export const cosmosAminoConverters = {};
|
|
13
|
+
export const cosmosProtoRegistry = [...cosmosAuthzV1beta1TxRegistry.registry, ...cosmosBankV1beta1TxRegistry.registry, ...cosmosDistributionV1beta1TxRegistry.registry, ...cosmosFeegrantV1beta1TxRegistry.registry, ...cosmosGovV1TxRegistry.registry, ...cosmosGovV1beta1TxRegistry.registry, ...cosmosGroupV1TxRegistry.registry, ...cosmosStakingV1beta1TxRegistry.registry, ...cosmosVestingV1beta1TxRegistry.registry];
|
|
14
|
+
export const getSigningCosmosClientOptions = () => {
|
|
15
|
+
const registry = new Registry([...cosmosProtoRegistry]);
|
|
16
|
+
const aminoTypes = new AminoTypes({
|
|
17
|
+
...cosmosAminoConverters
|
|
18
|
+
});
|
|
19
|
+
return {
|
|
20
|
+
registry,
|
|
21
|
+
aminoTypes
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export const getSigningCosmosClient = async ({ rpcEndpoint, signer }) => {
|
|
25
|
+
const { registry, aminoTypes } = getSigningCosmosClientOptions();
|
|
26
|
+
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
27
|
+
registry: registry,
|
|
28
|
+
aminoTypes
|
|
29
|
+
});
|
|
30
|
+
return client;
|
|
31
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool, MsgUpdateParams, MsgCommunityPoolSpend, MsgDepositValidatorRewardsPool } from "./tx";
|
|
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 MessageComposer = {
|
|
4
|
+
encoded: {
|
|
5
|
+
setWithdrawAddress(value) {
|
|
6
|
+
return {
|
|
7
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
|
|
8
|
+
value: MsgSetWithdrawAddress.encode(value).finish()
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
withdrawDelegatorReward(value) {
|
|
12
|
+
return {
|
|
13
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
|
|
14
|
+
value: MsgWithdrawDelegatorReward.encode(value).finish()
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
withdrawValidatorCommission(value) {
|
|
18
|
+
return {
|
|
19
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",
|
|
20
|
+
value: MsgWithdrawValidatorCommission.encode(value).finish()
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
fundCommunityPool(value) {
|
|
24
|
+
return {
|
|
25
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool",
|
|
26
|
+
value: MsgFundCommunityPool.encode(value).finish()
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
updateParams(value) {
|
|
30
|
+
return {
|
|
31
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams",
|
|
32
|
+
value: MsgUpdateParams.encode(value).finish()
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
communityPoolSpend(value) {
|
|
36
|
+
return {
|
|
37
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",
|
|
38
|
+
value: MsgCommunityPoolSpend.encode(value).finish()
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
depositValidatorRewardsPool(value) {
|
|
42
|
+
return {
|
|
43
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool",
|
|
44
|
+
value: MsgDepositValidatorRewardsPool.encode(value).finish()
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
withTypeUrl: {
|
|
49
|
+
setWithdrawAddress(value) {
|
|
50
|
+
return {
|
|
51
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
|
|
52
|
+
value
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
withdrawDelegatorReward(value) {
|
|
56
|
+
return {
|
|
57
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
|
|
58
|
+
value
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
withdrawValidatorCommission(value) {
|
|
62
|
+
return {
|
|
63
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",
|
|
64
|
+
value
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
fundCommunityPool(value) {
|
|
68
|
+
return {
|
|
69
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool",
|
|
70
|
+
value
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
updateParams(value) {
|
|
74
|
+
return {
|
|
75
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams",
|
|
76
|
+
value
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
communityPoolSpend(value) {
|
|
80
|
+
return {
|
|
81
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",
|
|
82
|
+
value
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
depositValidatorRewardsPool(value) {
|
|
86
|
+
return {
|
|
87
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool",
|
|
88
|
+
value
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
fromPartial: {
|
|
93
|
+
setWithdrawAddress(value) {
|
|
94
|
+
return {
|
|
95
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",
|
|
96
|
+
value: MsgSetWithdrawAddress.fromPartial(value)
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
withdrawDelegatorReward(value) {
|
|
100
|
+
return {
|
|
101
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
|
|
102
|
+
value: MsgWithdrawDelegatorReward.fromPartial(value)
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
withdrawValidatorCommission(value) {
|
|
106
|
+
return {
|
|
107
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",
|
|
108
|
+
value: MsgWithdrawValidatorCommission.fromPartial(value)
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
fundCommunityPool(value) {
|
|
112
|
+
return {
|
|
113
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool",
|
|
114
|
+
value: MsgFundCommunityPool.fromPartial(value)
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
updateParams(value) {
|
|
118
|
+
return {
|
|
119
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams",
|
|
120
|
+
value: MsgUpdateParams.fromPartial(value)
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
communityPoolSpend(value) {
|
|
124
|
+
return {
|
|
125
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",
|
|
126
|
+
value: MsgCommunityPoolSpend.fromPartial(value)
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
depositValidatorRewardsPool(value) {
|
|
130
|
+
return {
|
|
131
|
+
typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool",
|
|
132
|
+
value: MsgDepositValidatorRewardsPool.fromPartial(value)
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { MsgGrantAllowance, MsgRevokeAllowance, MsgPruneAllowances } from "./tx";
|
|
2
|
+
export const registry = [["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance], ["/cosmos.feegrant.v1beta1.MsgPruneAllowances", MsgPruneAllowances]];
|
|
3
|
+
export const MessageComposer = {
|
|
4
|
+
encoded: {
|
|
5
|
+
grantAllowance(value) {
|
|
6
|
+
return {
|
|
7
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
8
|
+
value: MsgGrantAllowance.encode(value).finish()
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
revokeAllowance(value) {
|
|
12
|
+
return {
|
|
13
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
14
|
+
value: MsgRevokeAllowance.encode(value).finish()
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
pruneAllowances(value) {
|
|
18
|
+
return {
|
|
19
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances",
|
|
20
|
+
value: MsgPruneAllowances.encode(value).finish()
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
withTypeUrl: {
|
|
25
|
+
grantAllowance(value) {
|
|
26
|
+
return {
|
|
27
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
28
|
+
value
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
revokeAllowance(value) {
|
|
32
|
+
return {
|
|
33
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
34
|
+
value
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
pruneAllowances(value) {
|
|
38
|
+
return {
|
|
39
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances",
|
|
40
|
+
value
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
fromPartial: {
|
|
45
|
+
grantAllowance(value) {
|
|
46
|
+
return {
|
|
47
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
|
|
48
|
+
value: MsgGrantAllowance.fromPartial(value)
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
revokeAllowance(value) {
|
|
52
|
+
return {
|
|
53
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance",
|
|
54
|
+
value: MsgRevokeAllowance.fromPartial(value)
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
pruneAllowances(value) {
|
|
58
|
+
return {
|
|
59
|
+
typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowances",
|
|
60
|
+
value: MsgPruneAllowances.fromPartial(value)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit, MsgUpdateParams, MsgCancelProposal } from "./tx";
|
|
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 MessageComposer = {
|
|
4
|
+
encoded: {
|
|
5
|
+
submitProposal(value) {
|
|
6
|
+
return {
|
|
7
|
+
typeUrl: "/cosmos.gov.v1.MsgSubmitProposal",
|
|
8
|
+
value: MsgSubmitProposal.encode(value).finish()
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
execLegacyContent(value) {
|
|
12
|
+
return {
|
|
13
|
+
typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent",
|
|
14
|
+
value: MsgExecLegacyContent.encode(value).finish()
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
vote(value) {
|
|
18
|
+
return {
|
|
19
|
+
typeUrl: "/cosmos.gov.v1.MsgVote",
|
|
20
|
+
value: MsgVote.encode(value).finish()
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
voteWeighted(value) {
|
|
24
|
+
return {
|
|
25
|
+
typeUrl: "/cosmos.gov.v1.MsgVoteWeighted",
|
|
26
|
+
value: MsgVoteWeighted.encode(value).finish()
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
deposit(value) {
|
|
30
|
+
return {
|
|
31
|
+
typeUrl: "/cosmos.gov.v1.MsgDeposit",
|
|
32
|
+
value: MsgDeposit.encode(value).finish()
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
updateParams(value) {
|
|
36
|
+
return {
|
|
37
|
+
typeUrl: "/cosmos.gov.v1.MsgUpdateParams",
|
|
38
|
+
value: MsgUpdateParams.encode(value).finish()
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
cancelProposal(value) {
|
|
42
|
+
return {
|
|
43
|
+
typeUrl: "/cosmos.gov.v1.MsgCancelProposal",
|
|
44
|
+
value: MsgCancelProposal.encode(value).finish()
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
withTypeUrl: {
|
|
49
|
+
submitProposal(value) {
|
|
50
|
+
return {
|
|
51
|
+
typeUrl: "/cosmos.gov.v1.MsgSubmitProposal",
|
|
52
|
+
value
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
execLegacyContent(value) {
|
|
56
|
+
return {
|
|
57
|
+
typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent",
|
|
58
|
+
value
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
vote(value) {
|
|
62
|
+
return {
|
|
63
|
+
typeUrl: "/cosmos.gov.v1.MsgVote",
|
|
64
|
+
value
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
voteWeighted(value) {
|
|
68
|
+
return {
|
|
69
|
+
typeUrl: "/cosmos.gov.v1.MsgVoteWeighted",
|
|
70
|
+
value
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
deposit(value) {
|
|
74
|
+
return {
|
|
75
|
+
typeUrl: "/cosmos.gov.v1.MsgDeposit",
|
|
76
|
+
value
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
updateParams(value) {
|
|
80
|
+
return {
|
|
81
|
+
typeUrl: "/cosmos.gov.v1.MsgUpdateParams",
|
|
82
|
+
value
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
cancelProposal(value) {
|
|
86
|
+
return {
|
|
87
|
+
typeUrl: "/cosmos.gov.v1.MsgCancelProposal",
|
|
88
|
+
value
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
fromPartial: {
|
|
93
|
+
submitProposal(value) {
|
|
94
|
+
return {
|
|
95
|
+
typeUrl: "/cosmos.gov.v1.MsgSubmitProposal",
|
|
96
|
+
value: MsgSubmitProposal.fromPartial(value)
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
execLegacyContent(value) {
|
|
100
|
+
return {
|
|
101
|
+
typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent",
|
|
102
|
+
value: MsgExecLegacyContent.fromPartial(value)
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
vote(value) {
|
|
106
|
+
return {
|
|
107
|
+
typeUrl: "/cosmos.gov.v1.MsgVote",
|
|
108
|
+
value: MsgVote.fromPartial(value)
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
voteWeighted(value) {
|
|
112
|
+
return {
|
|
113
|
+
typeUrl: "/cosmos.gov.v1.MsgVoteWeighted",
|
|
114
|
+
value: MsgVoteWeighted.fromPartial(value)
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
deposit(value) {
|
|
118
|
+
return {
|
|
119
|
+
typeUrl: "/cosmos.gov.v1.MsgDeposit",
|
|
120
|
+
value: MsgDeposit.fromPartial(value)
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
updateParams(value) {
|
|
124
|
+
return {
|
|
125
|
+
typeUrl: "/cosmos.gov.v1.MsgUpdateParams",
|
|
126
|
+
value: MsgUpdateParams.fromPartial(value)
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
cancelProposal(value) {
|
|
130
|
+
return {
|
|
131
|
+
typeUrl: "/cosmos.gov.v1.MsgCancelProposal",
|
|
132
|
+
value: MsgCancelProposal.fromPartial(value)
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit } from "./tx";
|
|
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 MessageComposer = {
|
|
4
|
+
encoded: {
|
|
5
|
+
submitProposal(value) {
|
|
6
|
+
return {
|
|
7
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal",
|
|
8
|
+
value: MsgSubmitProposal.encode(value).finish()
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
vote(value) {
|
|
12
|
+
return {
|
|
13
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVote",
|
|
14
|
+
value: MsgVote.encode(value).finish()
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
voteWeighted(value) {
|
|
18
|
+
return {
|
|
19
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted",
|
|
20
|
+
value: MsgVoteWeighted.encode(value).finish()
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
deposit(value) {
|
|
24
|
+
return {
|
|
25
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDeposit",
|
|
26
|
+
value: MsgDeposit.encode(value).finish()
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
withTypeUrl: {
|
|
31
|
+
submitProposal(value) {
|
|
32
|
+
return {
|
|
33
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal",
|
|
34
|
+
value
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
vote(value) {
|
|
38
|
+
return {
|
|
39
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVote",
|
|
40
|
+
value
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
voteWeighted(value) {
|
|
44
|
+
return {
|
|
45
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted",
|
|
46
|
+
value
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
deposit(value) {
|
|
50
|
+
return {
|
|
51
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDeposit",
|
|
52
|
+
value
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
fromPartial: {
|
|
57
|
+
submitProposal(value) {
|
|
58
|
+
return {
|
|
59
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal",
|
|
60
|
+
value: MsgSubmitProposal.fromPartial(value)
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
vote(value) {
|
|
64
|
+
return {
|
|
65
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVote",
|
|
66
|
+
value: MsgVote.fromPartial(value)
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
voteWeighted(value) {
|
|
70
|
+
return {
|
|
71
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted",
|
|
72
|
+
value: MsgVoteWeighted.fromPartial(value)
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
deposit(value) {
|
|
76
|
+
return {
|
|
77
|
+
typeUrl: "/cosmos.gov.v1beta1.MsgDeposit",
|
|
78
|
+
value: MsgDeposit.fromPartial(value)
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|