Documentation
¶
Index ¶
- func ApproveProposal(tf factory.TxFactory, network network.Network, ...) error
- func CheckTxTopics(res abcitypes.ExecTxResult, expectedTopics []string) error
- func DecodeContractCallResponse(response interface{}, callArgs testutiltypes.CallArgs, ...) error
- func DecodeExecTxResult(res abcitypes.ExecTxResult) (*evmtypes.MsgEthereumTxResponse, error)
- func RegisterMultistakingEVMBondDenom(input UpdateParamsInput, contractAddr string, weight math.LegacyDec, ...) error
- func RemoveMultistakingBondDenom(input UpdateParamsInput, denom string, proposer sdk.AccAddress) error
- func SubmitLegacyProposal(tf factory.TxFactory, network network.Network, ...) (uint64, error)
- func SubmitProposal(tf factory.TxFactory, network network.Network, ...) (uint64, error)
- func UpdateEvmParams(input UpdateParamsInput) error
- func VoteOnProposal(tf factory.TxFactory, voterPriv cryptotypes.PrivKey, proposalID uint64, ...) (abcitypes.ExecTxResult, error)
- type UpdateParamsInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproveProposal ¶
func ApproveProposal(tf factory.TxFactory, network network.Network, proposerPriv cryptotypes.PrivKey, proposalID uint64) error
ApproveProposal is a helper function to vote 'yes' for it and wait till it passes.
func CheckTxTopics ¶
func CheckTxTopics(res abcitypes.ExecTxResult, expectedTopics []string) error
CheckTxTopics checks if all expected topics are present in the transaction response
func DecodeContractCallResponse ¶
func DecodeContractCallResponse(response interface{}, callArgs testutiltypes.CallArgs, res abcitypes.ExecTxResult) error
DecodeContractCallResponse decodes the response of a contract call query
func DecodeExecTxResult ¶
func DecodeExecTxResult(res abcitypes.ExecTxResult) (*evmtypes.MsgEthereumTxResponse, error)
func RegisterMultistakingEVMBondDenom ¶ added in v1.4.0
func RegisterMultistakingEVMBondDenom(input UpdateParamsInput, contractAddr string, weight math.LegacyDec, proposer sdk.AccAddress) error
func RemoveMultistakingBondDenom ¶ added in v1.4.0
func RemoveMultistakingBondDenom(input UpdateParamsInput, denom string, proposer sdk.AccAddress) error
func SubmitLegacyProposal ¶
func SubmitLegacyProposal(tf factory.TxFactory, network network.Network, proposerPriv cryptotypes.PrivKey, proposal govv1beta1.Content) (uint64, error)
SubmitLegacyProposal is a helper function to submit a governance proposal and return the proposal ID.
func SubmitProposal ¶
func SubmitProposal(tf factory.TxFactory, network network.Network, proposerPriv cryptotypes.PrivKey, title string, msgs ...sdk.Msg) (uint64, error)
SubmitProposal is a helper function to submit a governance proposal and return the proposal ID.
func UpdateEvmParams ¶
func UpdateEvmParams(input UpdateParamsInput) error
UpdateEvmParams helper function to update the EVM module parameters It submits an update params proposal, votes for it, and waits till it passes
func VoteOnProposal ¶
func VoteOnProposal(tf factory.TxFactory, voterPriv cryptotypes.PrivKey, proposalID uint64, option govv1.VoteOption) (abcitypes.ExecTxResult, error)
VoteOnProposal is a helper function to vote on a governance proposal given the private key of the voter and the option to vote.