Documentation ¶
Index ¶
- func Delegate(ctx sdk.Context, appQom *app.Qom, priv *ethsecp256k1.PrivKey, ...) (abci.ResponseDeliverTx, error)
- func DeliverTx(ctx sdk.Context, appQom *app.Qom, priv *ethsecp256k1.PrivKey, msgs ...sdk.Msg) (abci.ResponseDeliverTx, error)
- func FundAccount(ctx sdk.Context, bankKeeper bankkeeper.Keeper, addr sdk.AccAddress, ...) error
- func FundModuleAccount(ctx sdk.Context, bankKeeper bankkeeper.Keeper, recipientMod string, ...) error
- func SubmitProposal(ctx sdk.Context, appQom *app.Qom, pk *ethsecp256k1.PrivKey, ...) (id uint64, err error)
- func Vote(ctx sdk.Context, appQom *app.Qom, priv *ethsecp256k1.PrivKey, ...) (abci.ResponseDeliverTx, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delegate ¶
func Delegate( ctx sdk.Context, appQom *app.Qom, priv *ethsecp256k1.PrivKey, delegateAmount sdk.Coin, validator stakingtypes.Validator, ) (abci.ResponseDeliverTx, error)
Delegate delivers a delegate tx
func DeliverTx ¶
func DeliverTx( ctx sdk.Context, appQom *app.Qom, priv *ethsecp256k1.PrivKey, msgs ...sdk.Msg, ) (abci.ResponseDeliverTx, error)
DeliverTx delivers a tx for a given set of msgs
func FundAccount ¶
func FundAccount(ctx sdk.Context, bankKeeper bankkeeper.Keeper, addr sdk.AccAddress, amounts sdk.Coins) error
FundAccount is a utility function that funds an account by minting and sending the coins to the address. This should be used for testing purposes only!
func FundModuleAccount ¶
func FundModuleAccount(ctx sdk.Context, bankKeeper bankkeeper.Keeper, recipientMod string, amounts sdk.Coins) error
FundModuleAccount is a utility function that funds a module account by minting and sending the coins to the address. This should be used for testing purposes only!
func SubmitProposal ¶
func SubmitProposal( ctx sdk.Context, appQom *app.Qom, pk *ethsecp256k1.PrivKey, content govv1beta1.Content, eventNum int, ) (id uint64, err error)
SubmitProposal delivers a submit proposal tx for a given gov content. Depending on the content type, the eventNum needs to specify submit_proposal event.
func Vote ¶
func Vote( ctx sdk.Context, appQom *app.Qom, priv *ethsecp256k1.PrivKey, proposalID uint64, voteOption govv1beta1.VoteOption, ) (abci.ResponseDeliverTx, error)
Vote delivers a vote tx with the VoteOption "yes"
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package network implements and exposes a fully operational in-process Tendermint test network that consists of at least one or potentially many validators.
|
Package network implements and exposes a fully operational in-process Tendermint test network that consists of at least one or potentially many validators. |
Click to show internal directories.
Click to hide internal directories.