Documentation ¶
Index ¶
- Constants
- func CreateIncrementalAccounts(accNum int) []sdk.AccAddress
- func GetEventAttribute(events sdk.Events, typ string, attrKey []byte) []byte
- func TestAddr(addr string, bech string) (sdk.AccAddress, error)
- type GenesisBalance
- type TestingApp
- func SetupTestApp(genesisBalances []GenesisBalance) *TestingApp
- func SetupTestAppWithDefaultState() *TestingApp
- func SetupTestAppWithIscnGenesis(genesisBalances []GenesisBalance, iscnGenesisJson json.RawMessage) *TestingApp
- func SetupTestAppWithState(appState json.RawMessage, appOptions servertypes.AppOptions) *TestingApp
- func (app *TestingApp) DeliverMsg(msg sdk.Msg, priv cryptotypes.PrivKey) (res *sdk.Result, err error, simErr error, deliverErr error)
- func (app *TestingApp) DeliverMsgNoError(t *testing.T, msg sdk.Msg, priv cryptotypes.PrivKey) *sdk.Result
- func (app *TestingApp) DeliverMsgs(msgs []sdk.Msg, priv cryptotypes.PrivKey) (res *sdk.Result, err error, simErr error, deliverErr error)
- func (app *TestingApp) DeliverMsgsNoError(t *testing.T, msgs []sdk.Msg, priv cryptotypes.PrivKey) *sdk.Result
- func (app *TestingApp) NextHeader(unixTimestamp int64)
- func (app *TestingApp) SetForQuery() sdk.Context
- func (app *TestingApp) SetForTx()
Constants ¶
View Source
const DefaultNodeHome = "/tmp/.liked-test"
Variables ¶
This section is empty.
Functions ¶
func CreateIncrementalAccounts ¶
func CreateIncrementalAccounts(accNum int) []sdk.AccAddress
func GetEventAttribute ¶
Types ¶
type GenesisBalance ¶
type TestingApp ¶
type TestingApp struct { *likeapp.LikeApp Header tmproto.Header Context sdk.Context // contains filtered or unexported fields }
func SetupTestApp ¶
func SetupTestApp(genesisBalances []GenesisBalance) *TestingApp
func SetupTestAppWithDefaultState ¶
func SetupTestAppWithDefaultState() *TestingApp
func SetupTestAppWithIscnGenesis ¶
func SetupTestAppWithIscnGenesis(genesisBalances []GenesisBalance, iscnGenesisJson json.RawMessage) *TestingApp
func SetupTestAppWithState ¶
func SetupTestAppWithState(appState json.RawMessage, appOptions servertypes.AppOptions) *TestingApp
func (*TestingApp) DeliverMsg ¶
func (app *TestingApp) DeliverMsg(msg sdk.Msg, priv cryptotypes.PrivKey) (res *sdk.Result, err error, simErr error, deliverErr error)
func (*TestingApp) DeliverMsgNoError ¶
func (app *TestingApp) DeliverMsgNoError(t *testing.T, msg sdk.Msg, priv cryptotypes.PrivKey) *sdk.Result
func (*TestingApp) DeliverMsgs ¶
func (app *TestingApp) DeliverMsgs(msgs []sdk.Msg, priv cryptotypes.PrivKey) (res *sdk.Result, err error, simErr error, deliverErr error)
func (*TestingApp) DeliverMsgsNoError ¶
func (app *TestingApp) DeliverMsgsNoError(t *testing.T, msgs []sdk.Msg, priv cryptotypes.PrivKey) *sdk.Result
func (*TestingApp) NextHeader ¶
func (app *TestingApp) NextHeader(unixTimestamp int64)
func (*TestingApp) SetForQuery ¶
func (app *TestingApp) SetForQuery() sdk.Context
func (*TestingApp) SetForTx ¶
func (app *TestingApp) SetForTx()
Click to show internal directories.
Click to hide internal directories.