Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Inner msgs. MsgSoftwareUpgrade = &upgrade.MsgSoftwareUpgrade{ Authority: constants.Bob_Num0.Owner, Plan: upgrade.Plan{ Name: "test-plan", Height: 10, Info: "test-info", }, } MsgSoftwareUpgradeTxBytes []byte MsgCancelUpgrade = &upgrade.MsgCancelUpgrade{ Authority: constants.Bob_Num0.Owner, } MsgCancelUpgradeTxBytes []byte // Invalid MsgSubmitProposals MsgSubmitProposalWithEmptyInner, _ = gov.NewMsgSubmitProposal( []sdk.Msg{}, nil, testProposer, testMetadata, testTitle, testSummary) MsgSubmitProposalWithEmptyInnerTxBytes []byte MsgSubmitProposalWithUnsupportedInner, _ = gov.NewMsgSubmitProposal( []sdk.Msg{GovBetaMsgSubmitProposal}, nil, testProposer, testMetadata, testTitle, testSummary) MsgSubmitProposalWithUnsupportedInnerTxBytes []byte MsgSubmitProposalWithAppInjectedInner, _ = gov.NewMsgSubmitProposal( []sdk.Msg{&prices.MsgUpdateMarketPrices{}}, nil, testProposer, testMetadata, testTitle, testSummary) MsgSubmitProposalWithAppInjectedInnerTxBytes []byte MsgSubmitProposalWithDoubleNestedInner, _ = gov.NewMsgSubmitProposal( []sdk.Msg{MsgSubmitProposalWithUpgradeAndCancel}, nil, testProposer, testMetadata, testTitle, testSummary) MsgSubmitProposalWithDoubleNestedInnerTxBytes []byte // Valid MsgSubmitProposals MsgSubmitProposalWithUpgrade, _ = gov.NewMsgSubmitProposal( []sdk.Msg{MsgSoftwareUpgrade}, nil, testProposer, testMetadata, testTitle, testSummary) MsgSubmitProposalWithUpgradeTxBytes []byte MsgSubmitProposalWithUpgradeAndCancel, _ = gov.NewMsgSubmitProposal( []sdk.Msg{ MsgSoftwareUpgrade, MsgCancelUpgrade, }, nil, testProposer, testMetadata, testTitle, testSummary) MsgSubmitProposalWithUpgradeAndCancelTxBytes []byte )
View Source
var (
GovBetaMsgSubmitProposal, _ = govbeta.NewMsgSubmitProposal(
govbetaContent,
sdk.NewCoins(sdk.NewInt64Coin(sdk.DefaultBondDenom, 1000)),
constants.BobAccAddress,
)
GovBetaMsgSubmitProposalTxBytes []byte
)
Functions ¶
func GetMsgNameWithModuleVersion ¶
GetMsgNameWithModuleVersion returns the name of the msg type along with module and version, given its type url.
func IsValidMsgFormat ¶
IsValidMsgFormat returns true if the given tokens are of the form: "<module>.<version>.Msg<MsgName>"
Types ¶
type TestBlockWithMsgs ¶
type TestBlockWithMsgs struct { Block uint32 Msgs []TestSdkMsg }
type TestSdkMsg ¶
Click to show internal directories.
Click to hide internal directories.