ibc

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeeperTestSuite

type KeeperTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func NewKeeperTestSuite

func NewKeeperTestSuite(create network.CreateEvmApp, options ...network.ConfigOption) *KeeperTestSuite

func (*KeeperTestSuite) ConvertERC20

func (s *KeeperTestSuite) ConvertERC20(sender keyring.Key, contractAddr common.Address, amt math.Int) error

func (*KeeperTestSuite) DeployContract

func (s *KeeperTestSuite) DeployContract(name, symbol string, decimals uint8) (common.Address, error)

func (*KeeperTestSuite) MintERC20Token

func (s *KeeperTestSuite) MintERC20Token(contractAddr, to common.Address, amount *big.Int) (abcitypes.ExecTxResult, error)

func (*KeeperTestSuite) SetupTest

func (s *KeeperTestSuite) SetupTest()

func (*KeeperTestSuite) TestPrefixTrimming

func (suite *KeeperTestSuite) TestPrefixTrimming()

TestPrefixTrimming tests that the Transfer method correctly trims the erc20: prefix This test specifically catches the bug where "erc20/" was being trimmed instead of "erc20:"

func (*KeeperTestSuite) TestTransfer

func (suite *KeeperTestSuite) TestTransfer()

type MockChannelKeeper

type MockChannelKeeper struct {
	mock.Mock
}

func (*MockChannelKeeper) GetAllChannelsWithPortPrefix

func (b *MockChannelKeeper) GetAllChannelsWithPortPrefix(ctx sdk.Context, portPrefix string) []channeltypes.IdentifiedChannel

func (*MockChannelKeeper) GetChannel

func (b *MockChannelKeeper) GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)

func (*MockChannelKeeper) GetNextSequenceSend

func (b *MockChannelKeeper) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)

func (*MockChannelKeeper) HasChannel

func (b *MockChannelKeeper) HasChannel(ctx sdk.Context, srcPort, srcChan string) bool

type MockICS4Wrapper

type MockICS4Wrapper struct {
	mock.Mock
}

func (*MockICS4Wrapper) GetAppVersion

func (b *MockICS4Wrapper) GetAppVersion(ctx sdk.Context, portID string, channelID string) (string, bool)

func (*MockICS4Wrapper) SendPacket

func (b *MockICS4Wrapper) SendPacket(
	ctx sdk.Context,
	sourcePort string,
	sourceChannel string,
	timeoutHeight clienttypes.Height,
	timeoutTimestamp uint64,
	data []byte,
) (sequence uint64, err error)

func (*MockICS4Wrapper) WriteAcknowledgement

func (b *MockICS4Wrapper) WriteAcknowledgement(_ sdk.Context, _ exported.PacketI, _ exported.Acknowledgement) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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