Documentation
      ¶
    
    
  
    
  
    Index ¶
- type KeeperTestSuite
 - func (s *KeeperTestSuite) ConvertERC20(sender keyring.Key, contractAddr common.Address, amt math.Int) error
 - func (s *KeeperTestSuite) DeployContract(name, symbol string, decimals uint8) (common.Address, error)
 - func (s *KeeperTestSuite) MintERC20Token(contractAddr, to common.Address, amount *big.Int) (abcitypes.ExecTxResult, error)
 - func (s *KeeperTestSuite) SetupTest()
 - func (suite *KeeperTestSuite) TestPrefixTrimming()
 - func (suite *KeeperTestSuite) TestTransfer()
 
- type MockChannelKeeper
 - func (b *MockChannelKeeper) GetAllChannelsWithPortPrefix(ctx sdk.Context, portPrefix string) []channeltypes.IdentifiedChannel
 - func (b *MockChannelKeeper) GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)
 - func (b *MockChannelKeeper) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
 - func (b *MockChannelKeeper) HasChannel(ctx sdk.Context, srcPort, srcChan string) bool
 
- type MockICS4Wrapper
 - func (b *MockICS4Wrapper) GetAppVersion(ctx sdk.Context, portID string, channelID string) (string, bool)
 - func (b *MockICS4Wrapper) SendPacket(ctx sdk.Context, sourcePort string, sourceChannel string, ...) (sequence uint64, err error)
 - func (b *MockICS4Wrapper) WriteAcknowledgement(_ sdk.Context, _ exported.PacketI, _ exported.Acknowledgement) error
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeeperTestSuite ¶
func NewKeeperTestSuite ¶
func NewKeeperTestSuite(create network.CreateEvmApp, options ...network.ConfigOption) *KeeperTestSuite
func (*KeeperTestSuite) ConvertERC20 ¶
func (*KeeperTestSuite) DeployContract ¶
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 ¶
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 (*MockChannelKeeper) HasChannel ¶
func (b *MockChannelKeeper) HasChannel(ctx sdk.Context, srcPort, srcChan string) bool
type MockICS4Wrapper ¶
func (*MockICS4Wrapper) GetAppVersion ¶
func (*MockICS4Wrapper) SendPacket ¶
func (*MockICS4Wrapper) WriteAcknowledgement ¶
func (b *MockICS4Wrapper) WriteAcknowledgement(_ sdk.Context, _ exported.PacketI, _ exported.Acknowledgement) error
 Click to show internal directories. 
   Click to hide internal directories.