Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/types/chain/cosmoshub-4/IRangeBlockCosmosHub4TrxMsg.ts
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an automated generated comment
Block Data
network: cosmoshub-4
height: 21557917
data:

[
  {
    "voter": "cosmos1eqjjhpc6q5stq8hg9ws833xme460m7dj9mnytk",
    "option": "VOTE_OPTION_YES"
  }
]

errors:

[
  {
    "path": "$input.transactions[0].messages[0].data.proposalId",
    "expected": "string"
  }
]

interface:

export interface CosmosHub4TrxMsgCosmosGovV1beta1MsgVote {
    type: string;
    data: CosmosHub4TrxMsgCosmosGovV1beta1MsgVoteData;
}
interface CosmosHub4TrxMsgCosmosGovV1beta1MsgVoteData {
    voter: string;
    option: string;
}

Original file line number Diff line number Diff line change
Expand Up @@ -373,15 +373,16 @@ interface CosmosHub4TrxMsgCosmosGovV1beta1MsgSubmitProposalDataContentTypeClient
}

// types for msg type:: /cosmos.gov.v1beta1.MsgVote
export interface CosmosHub4TrxMsgCosmosGovV1beta1MsgVote extends IRangeMessage {
type: CosmosHub4TrxMsgTypes.CosmosGovV1beta1MsgVote;
data: {
export interface CosmosHub4TrxMsgCosmosGovV1beta1MsgVote {
type: string;
data: CosmosHub4TrxMsgCosmosGovV1beta1MsgVoteData;
}
interface CosmosHub4TrxMsgCosmosGovV1beta1MsgVoteData {
voter: string;
option: string;
proposalId: string;
};
}


// types for msg type:: /cosmos.gov.v1beta1.MsgVoteWeighted
export interface CosmosHub4TrxMsgCosmosGovV1beta1MsgVoteWeighted
extends IRangeMessage {
Expand Down