Skip to content

Commit ddcc772

Browse files
authored
Register legacy options (#52)
* Register missing messages for backward compat * Auto generated doc * Bump version
1 parent 0fe830a commit ddcc772

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

docs/lib/modules/lummessages.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ ___
204204

205205
### MsgDepositUrl
206206

207-
**MsgDepositUrl**: ``"/cosmos.gov.v1beta1.MsgDeposit"``
207+
**MsgDepositUrl**: ``"/cosmos.gov.v1.MsgDeposit"``
208208

209209
___
210210

@@ -288,7 +288,7 @@ ___
288288

289289
### MsgSubmitProposalUrl
290290

291-
**MsgSubmitProposalUrl**: ``"/cosmos.gov.v1beta1.MsgSubmitProposal"``
291+
**MsgSubmitProposalUrl**: ``"/cosmos.gov.v1.MsgSubmitProposal"``
292292

293293
___
294294

@@ -342,7 +342,7 @@ ___
342342

343343
### MsgVoteUrl
344344

345-
**MsgVoteUrl**: ``"/cosmos.gov.v1beta1.MsgVote"``
345+
**MsgVoteUrl**: ``"/cosmos.gov.v1.MsgVote"``
346346

347347
___
348348

@@ -959,15 +959,16 @@ ___
959959

960960
### BuildMsgSubmitProposal
961961

962-
`Const` **BuildMsgSubmitProposal**(`proposer`, `initialDeposit`, `content?`): [`Message`](../interfaces/LumMessages.Message.md)
962+
`Const` **BuildMsgSubmitProposal**(`messages`, `proposer`, `initialDeposit`, `metadata`): [`Message`](../interfaces/LumMessages.Message.md)
963963

964964
#### Parameters
965965

966966
| Name | Type |
967967
| :------ | :------ |
968+
| `messages` | `Any`[] |
968969
| `proposer` | `string` |
969970
| `initialDeposit` | [`Coin`](../interfaces/LumTypes.Coin.md)[] |
970-
| `content?` | `Any` |
971+
| `metadata` | `string` |
971972

972973
#### Returns
973974

@@ -1138,7 +1139,7 @@ ___
11381139

11391140
### BuildMsgVote
11401141

1141-
`Const` **BuildMsgVote**(`proposalId`, `voter`, `option`): [`Message`](../interfaces/LumMessages.Message.md)
1142+
`Const` **BuildMsgVote**(`proposalId`, `voter`, `option`, `metadata`): [`Message`](../interfaces/LumMessages.Message.md)
11421143

11431144
#### Parameters
11441145

@@ -1147,6 +1148,7 @@ ___
11471148
| `proposalId` | `Long` |
11481149
| `voter` | `string` |
11491150
| `option` | `VoteOption` |
1151+
| `metadata` | `string` |
11501152

11511153
#### Returns
11521154

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lum-network/sdk-javascript",
3-
"version": "0.7.12",
3+
"version": "0.7.13",
44
"license": "Apache-2.0",
55
"description": "Javascript SDK library for NodeJS and Web browsers to interact with the Lum Network.",
66
"homepage": "https://github.com/lum-network/sdk-javascript#readme",

src/registry/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import { MsgFundCommunityPool, MsgSetWithdrawAddress, MsgWithdrawDelegatorReward
1313
import { MsgGrantAllowance, MsgRevokeAllowance } from '../codec/cosmos/feegrant/v1beta1/tx';
1414
import { Proposal, TextProposal } from '../codec/cosmos/gov/v1beta1/gov';
1515
import { MsgDeposit, MsgSubmitProposal, MsgVote } from '../codec/cosmos/gov/v1beta1/tx';
16+
import { MsgDeposit as MsgDepositV1, MsgSubmitProposal as MsgSubmitProposalV1, MsgVote as MsgVoteV1, MsgExecLegacyContent } from '../codec/cosmos/gov/v1/tx';
17+
import { Proposal as ProposalV1 } from '../codec/cosmos/gov/v1/gov';
1618
import { ParameterChangeProposal } from '../codec/cosmos/params/v1beta1/params';
1719
import { MsgUnjail } from '../codec/cosmos/slashing/v1beta1/tx';
1820
import { MsgBeginRedelegate, MsgCreateValidator, MsgDelegate, MsgEditValidator, MsgUndelegate } from '../codec/cosmos/staking/v1beta1/tx';
@@ -68,6 +70,11 @@ const registryTypes: Iterable<[string, GeneratedType]> = [
6870
['/cosmos.gov.v1beta1.MsgVote', MsgVote],
6971
['/cosmos.gov.v1beta1.Proposal', Proposal],
7072
['/cosmos.gov.v1beta1.TextProposal', TextProposal],
73+
['/cosmos.gov.v1.MsgExecLegacyContent', MsgExecLegacyContent],
74+
['/cosmos.gov.v1.MsgDeposit', MsgDepositV1],
75+
['/cosmos.gov.v1.MsgSubmitProposal', MsgSubmitProposalV1],
76+
['/cosmos.gov.v1.MsgVote', MsgVoteV1],
77+
['/cosmos.gov.v1.Proposal', ProposalV1],
7178
['/cosmos.params.v1beta1.ParameterChangeProposal', ParameterChangeProposal],
7279
['/cosmos.slashing.v1beta1.MsgUnjail', MsgUnjail],
7380
['/cosmos.staking.v1beta1.MsgBeginRedelegate', MsgBeginRedelegate],

0 commit comments

Comments
 (0)