integration

package
v1.0.0-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

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

func DefaultGenesisWithValSet

func DefaultGenesisWithValSet(app *simapp.App, validatorPrivateKey *ed25519.PrivKey) map[string]json.RawMessage

Types

type CallInfo

type CallInfo struct {
	// contains filtered or unexported fields
}

type EmptyAppOptions

type EmptyAppOptions struct{}

func (EmptyAppOptions) Get

func (ao EmptyAppOptions) Get(_ string) interface{}

type KeeperTestSuite

type KeeperTestSuite struct {
	VoteInfos []abci.VoteInfo
	// contains filtered or unexported fields
}

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

func (*KeeperTestSuite) MintCoins

func (suite *KeeperTestSuite) MintCoins(address string, coins sdk.Coins) error

func (*KeeperTestSuite) RunTx

func (suite *KeeperTestSuite) RunTx(msg sdk.Msg) (*sdk.Result, 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) Exists

func (m MockApp) Exists(_ context.Context, recipient util.HexAddress) (bool, error)

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) CallCount

func (m MockIsm) CallCount() int

func (MockIsm) Exists

func (m MockIsm) Exists(ctx context.Context, ismId util.HexAddress) (bool, error)

func (MockIsm) RegisterIsm

func (m MockIsm) RegisterIsm(ctx context.Context) (util.HexAddress, error)

func (MockIsm) Verify

func (m MockIsm) Verify(ctx context.Context, ismId util.HexAddress, metadata []byte, message util.HyperlaneMessage) (bool, error)

type NoopPostDispatchHookHandler

type NoopPostDispatchHookHandler struct {
	// contains filtered or unexported fields
}

func (NoopPostDispatchHookHandler) CreateHook

func (NoopPostDispatchHookHandler) Exists

func (NoopPostDispatchHookHandler) HookType

func (n NoopPostDispatchHookHandler) HookType() uint8

func (NoopPostDispatchHookHandler) PostDispatch

func (NoopPostDispatchHookHandler) QuoteDispatch

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL