Documentation ¶
Index ¶
- Constants
- func MakeGenesisAppState(t *testing.T, app *App, kvs ...string) map[string]json.RawMessage
- func ToTestTx(t *testing.T, k, v string) []byte
- func ToTx(t *testing.T, msg proto.Message) []byte
- func ToTxs(t *testing.T, kvs map[string]string) [][]byte
- type App
- func (a *App) CheckTx(_ context.Context, r *abcitypes.RequestCheckTx) (*abcitypes.ResponseCheckTx, error)
- func (a *App) Commit(_ context.Context, _ *abcitypes.RequestCommit) (*abcitypes.ResponseCommit, error)
- func (a *App) DefaultGenesis() map[string]json.RawMessage
- func (a *App) FinalizeBlock(_ context.Context, r *abcitypes.RequestFinalizeBlock) (*abcitypes.ResponseFinalizeBlock, error)
- func (a *App) Info(_ context.Context, r *abcitypes.RequestInfo) (*abcitypes.ResponseInfo, error)
- func (a *App) InitChain(_ context.Context, r *abcitypes.RequestInitChain) (*abcitypes.ResponseInitChain, error)
- func (a *App) Query(ctx context.Context, r *abcitypes.RequestQuery) (*abcitypes.ResponseQuery, error)
- func (a *App) RollbackToHeight(_ context.Context, targetHeight uint64) error
- func (a *App) StateContains(t *testing.T, height uint64, kvs map[string]string)
- func (a *App) StateDoesNotContain(t *testing.T, height uint64, kvs map[string]string)
Constants ¶
View Source
const QueryPath = "/testapp.v1.Query/Value"
Variables ¶
This section is empty.
Functions ¶
func MakeGenesisAppState ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is an app with the absolute minimum amount of configuration required to have the Monomer rollup module. It also has a dummy test module for easy transaction testing. The test module will initialize a single validator to satisfy the module manager's InitChain invariant that the validator set must be non-empty (the requirement doesn't make sense to me since that's a consensus-layer concern).
func (*App) CheckTx ¶
func (a *App) CheckTx(_ context.Context, r *abcitypes.RequestCheckTx) (*abcitypes.ResponseCheckTx, error)
func (*App) Commit ¶
func (a *App) Commit(_ context.Context, _ *abcitypes.RequestCommit) (*abcitypes.ResponseCommit, error)
func (*App) DefaultGenesis ¶
func (a *App) DefaultGenesis() map[string]json.RawMessage
DefaultGenesis returns the app's default genesis state. It must be cloned before it is modified.
func (*App) FinalizeBlock ¶
func (a *App) FinalizeBlock(_ context.Context, r *abcitypes.RequestFinalizeBlock) (*abcitypes.ResponseFinalizeBlock, error)
func (*App) Info ¶
func (a *App) Info(_ context.Context, r *abcitypes.RequestInfo) (*abcitypes.ResponseInfo, error)
func (*App) InitChain ¶
func (a *App) InitChain(_ context.Context, r *abcitypes.RequestInitChain) (*abcitypes.ResponseInitChain, error)
func (*App) Query ¶
func (a *App) Query(ctx context.Context, r *abcitypes.RequestQuery) (*abcitypes.ResponseQuery, error)
func (*App) RollbackToHeight ¶
func (*App) StateContains ¶
StateContains ensures the key-values exist in the testmodule's state.
Click to show internal directories.
Click to hide internal directories.