Documentation ¶
Index ¶
- type Action
- func FundAccount(account sdk.AccAddress, amount sdk.Coins) Action
- func FundModule(module string, amount sdk.Coins) Action
- func IncreaseBlockNumberBy(numBlocks int64) Action
- func IncreaseBlockTimeBy(seconds time.Duration) Action
- func MoveToNextBlock() Action
- func MoveToNextBlockWithDuration(blockDuration time.Duration) Action
- func MoveToNextBlockWithTime(blockTime time.Time) Action
- func SetBlockNumber(blockNumber int64) Action
- func SetBlockTime(blockTime time.Time) Action
- type TestCase
- type TestCases
- type TestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action interface { // `Do` is a specific implementation of the `Action`. When `Do` is called, // the action is performed and some feedback is provided about the action's // success. `Do` can mutate the app. // // Returns: // - outCtx: The new context after stateful changes // - err: The error if one was raised. // - isMandatory: Whether an error should have been raised. Do(app *app.NibiruApp, ctx sdk.Context) ( outCtx sdk.Context, err error, isMandatory bool, ) }
`Action` is a type of operation or task that can be performed in the Nibiru application.
func FundAccount ¶
func FundAccount(account sdk.AccAddress, amount sdk.Coins) Action
func IncreaseBlockNumberBy ¶
IncreaseBlockNumberBy increases the block number by the given number of blocks
func IncreaseBlockTimeBy ¶
func MoveToNextBlock ¶
func MoveToNextBlock() Action
func MoveToNextBlockWithTime ¶
func SetBlockNumber ¶
SetBlockNumber sets the block number to the given value
func SetBlockTime ¶
SetBlockTime sets the block time to the given value
Click to show internal directories.
Click to hide internal directories.