Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultGenesisWithValSet(app *simapp.App, validatorPrivateKey *ed25519.PrivKey) map[string]json.RawMessage
- type CallInfo
- type EmptyAppOptions
- type KeeperTestSuite
- func (suite *KeeperTestSuite) App() *simapp.App
- func (suite *KeeperTestSuite) Commit()
- func (suite *KeeperTestSuite) CommitAfterSeconds(seconds uint64)
- func (suite *KeeperTestSuite) Ctx() sdk.Context
- func (suite *KeeperTestSuite) MintBaseCoins(address string, amount uint64) error
- func (suite *KeeperTestSuite) MintCoins(address string, coins sdk.Coins) error
- func (suite *KeeperTestSuite) RunTx(msg sdk.Msg) (*sdk.Result, error)
- type MockApp
- func (m MockApp) CallInfo() (count int, message util.HyperlaneMessage, mailboxId util.HexAddress)
- func (m MockApp) Exists(_ context.Context, recipient util.HexAddress) (bool, error)
- func (m MockApp) Handle(ctx context.Context, mailboxId util.HexAddress, message util.HyperlaneMessage) error
- func (m MockApp) ReceiverIsmId(_ context.Context, recipient util.HexAddress) (*util.HexAddress, error)
- func (m MockApp) RegisterApp(ctx context.Context, ismId util.HexAddress) (util.HexAddress, error)
- type MockIsm
- type NoopPostDispatchHookHandler
- func (n NoopPostDispatchHookHandler) CreateHook(ctx context.Context) (util.HexAddress, error)
- func (n NoopPostDispatchHookHandler) Exists(_ context.Context, hookId util.HexAddress) (bool, error)
- func (n NoopPostDispatchHookHandler) HookType() uint8
- func (n NoopPostDispatchHookHandler) PostDispatch(ctx context.Context, _, hookId util.HexAddress, _ util.StandardHookMetadata, ...) (sdk.Coins, error)
- func (n NoopPostDispatchHookHandler) QuoteDispatch(_ context.Context, _, _ util.HexAddress, _ util.StandardHookMetadata, ...) (sdk.Coins, error)
- type TestValidatorAddress
Constants ¶
View Source
const MOCK_ISM uint8 = 202
View Source
const MOCK_TYPE_APP uint8 = 201
View Source
const MOCK_TYPE_NOOP_POST_DISPATCH uint8 = 200
Variables ¶
View Source
var ( A_DENOM = "acoin" B_DENOM = "bcoin" C_DENOM = "ccoin" )
View Source
var DefaultConsensusParams = &cmtProto.ConsensusParams{ Block: &cmtProto.BlockParams{ MaxBytes: 200000, MaxGas: -1, }, Evidence: &cmtProto.EvidenceParams{ MaxAgeNumBlocks: 302400, MaxAgeDuration: 504 * time.Hour, MaxBytes: 10000, }, Validator: &cmtProto.ValidatorParams{ PubKeyTypes: []string{ cmtTypes.ABCIPubKeyTypeEd25519, }, }, }
DefaultConsensusParams ...
Functions ¶
Types ¶
type EmptyAppOptions ¶
type EmptyAppOptions struct{}
func (EmptyAppOptions) Get ¶
func (ao EmptyAppOptions) Get(_ string) interface{}
type KeeperTestSuite ¶
func NewCleanChain ¶
func NewCleanChain() *KeeperTestSuite
func NewCleanChainAtTime ¶
func NewCleanChainAtTime(startTime int64) *KeeperTestSuite
func NewCleanChainWithEnabledTokens ¶
func NewCleanChainWithEnabledTokens(enabledTokens []int32) *KeeperTestSuite
func (*KeeperTestSuite) App ¶
func (suite *KeeperTestSuite) App() *simapp.App
func (*KeeperTestSuite) Commit ¶
func (suite *KeeperTestSuite) Commit()
func (*KeeperTestSuite) CommitAfterSeconds ¶
func (suite *KeeperTestSuite) CommitAfterSeconds(seconds uint64)
func (*KeeperTestSuite) Ctx ¶
func (suite *KeeperTestSuite) Ctx() sdk.Context
func (*KeeperTestSuite) MintBaseCoins ¶
func (suite *KeeperTestSuite) MintBaseCoins(address string, amount uint64) error
type MockApp ¶
type MockApp struct {
// contains filtered or unexported fields
}
func CreateMockApp ¶
func CreateMockApp(router *util.Router[util.HyperlaneApp]) *MockApp
func (MockApp) CallInfo ¶
func (m MockApp) CallInfo() (count int, message util.HyperlaneMessage, mailboxId util.HexAddress)
func (MockApp) Handle ¶
func (m MockApp) Handle(ctx context.Context, mailboxId util.HexAddress, message util.HyperlaneMessage) error
func (MockApp) ReceiverIsmId ¶
func (m MockApp) ReceiverIsmId(_ context.Context, recipient util.HexAddress) (*util.HexAddress, error)
func (MockApp) RegisterApp ¶
func (m MockApp) RegisterApp(ctx context.Context, ismId util.HexAddress) (util.HexAddress, error)
type MockIsm ¶
type MockIsm struct {
// contains filtered or unexported fields
}
func CreateMockIsm ¶
func CreateMockIsm(router *util.Router[util.InterchainSecurityModule]) *MockIsm
func (MockIsm) RegisterIsm ¶
type NoopPostDispatchHookHandler ¶
type NoopPostDispatchHookHandler struct {
// contains filtered or unexported fields
}
func CreateNoopDispatchHookHandler ¶
func CreateNoopDispatchHookHandler(router *util.Router[util.PostDispatchModule]) *NoopPostDispatchHookHandler
func (NoopPostDispatchHookHandler) CreateHook ¶
func (n NoopPostDispatchHookHandler) CreateHook(ctx context.Context) (util.HexAddress, error)
func (NoopPostDispatchHookHandler) Exists ¶
func (n NoopPostDispatchHookHandler) Exists(_ context.Context, hookId util.HexAddress) (bool, error)
func (NoopPostDispatchHookHandler) HookType ¶
func (n NoopPostDispatchHookHandler) HookType() uint8
func (NoopPostDispatchHookHandler) PostDispatch ¶
func (n NoopPostDispatchHookHandler) PostDispatch(ctx context.Context, _, hookId util.HexAddress, _ util.StandardHookMetadata, _ util.HyperlaneMessage, _ sdk.Coins) (sdk.Coins, error)
func (NoopPostDispatchHookHandler) QuoteDispatch ¶
func (n NoopPostDispatchHookHandler) QuoteDispatch(_ context.Context, _, _ util.HexAddress, _ util.StandardHookMetadata, _ util.HyperlaneMessage) (sdk.Coins, error)
type TestValidatorAddress ¶
type TestValidatorAddress struct { Moniker string PrivateKey *ed25519.PrivKey Address string AccAddress sdk.AccAddress ConsAccAddress sdk.ConsAddress ConsAddress string }
func GenerateTestValidatorAddress ¶
func GenerateTestValidatorAddress(moniker string) TestValidatorAddress
Click to show internal directories.
Click to hide internal directories.