Documentation ¶
Index ¶
- type AccountKeeperMock
- func (mock *AccountKeeperMock) GetModuleAccount(ctx cosmossdktypes.Context, moduleName string) types.ModuleAccountI
- func (mock *AccountKeeperMock) GetModuleAccountCalls() []struct{ ... }
- func (mock *AccountKeeperMock) GetModuleAddress(moduleName string) cosmossdktypes.AccAddress
- func (mock *AccountKeeperMock) GetModuleAddressCalls() []struct{ ... }
- type BankKeeperMock
- func (mock *BankKeeperMock) BlockedAddr(addr cosmossdktypes.AccAddress) bool
- func (mock *BankKeeperMock) BlockedAddrCalls() []struct{ ... }
- func (mock *BankKeeperMock) BurnCoins(ctx cosmossdktypes.Context, moduleName string, amt cosmossdktypes.Coins) error
- func (mock *BankKeeperMock) BurnCoinsCalls() []struct{ ... }
- func (mock *BankKeeperMock) IsSendEnabledCoin(ctx cosmossdktypes.Context, coin cosmossdktypes.Coin) bool
- func (mock *BankKeeperMock) IsSendEnabledCoinCalls() []struct{ ... }
- func (mock *BankKeeperMock) IsSendEnabledCoins(ctx cosmossdktypes.Context, coins ...cosmossdktypes.Coin) error
- func (mock *BankKeeperMock) IsSendEnabledCoinsCalls() []struct{ ... }
- func (mock *BankKeeperMock) MintCoins(ctx cosmossdktypes.Context, moduleName string, amt cosmossdktypes.Coins) error
- func (mock *BankKeeperMock) MintCoinsCalls() []struct{ ... }
- func (mock *BankKeeperMock) SendCoins(ctx cosmossdktypes.Context, fromAddr cosmossdktypes.AccAddress, ...) error
- func (mock *BankKeeperMock) SendCoinsCalls() []struct{ ... }
- func (mock *BankKeeperMock) SendCoinsFromAccountToModule(ctx cosmossdktypes.Context, senderAddr cosmossdktypes.AccAddress, ...) error
- func (mock *BankKeeperMock) SendCoinsFromAccountToModuleCalls() []struct{ ... }
- func (mock *BankKeeperMock) SendCoinsFromModuleToAccount(ctx cosmossdktypes.Context, senderModule string, ...) error
- func (mock *BankKeeperMock) SendCoinsFromModuleToAccountCalls() []struct{ ... }
- func (mock *BankKeeperMock) SpendableBalance(ctx cosmossdktypes.Context, address cosmossdktypes.AccAddress, denom string) cosmossdktypes.Coin
- func (mock *BankKeeperMock) SpendableBalanceCalls() []struct{ ... }
- type BaseKeeperMock
- func (mock *BaseKeeperMock) EnqueueIBCTransfer(ctx cosmossdktypes.Context, transfer axelarnettypes.IBCTransfer) error
- func (mock *BaseKeeperMock) EnqueueIBCTransferCalls() []struct{ ... }
- func (mock *BaseKeeperMock) GetChainNameByIBCPath(ctx cosmossdktypes.Context, ibcPath string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName, bool)
- func (mock *BaseKeeperMock) GetChainNameByIBCPathCalls() []struct{ ... }
- func (mock *BaseKeeperMock) GetCosmosChainByName(ctx cosmossdktypes.Context, ...) (axelarnettypes.CosmosChain, bool)
- func (mock *BaseKeeperMock) GetCosmosChainByNameCalls() []struct{ ... }
- func (mock *BaseKeeperMock) GetCosmosChains(ctx cosmossdktypes.Context) []github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName
- func (mock *BaseKeeperMock) GetCosmosChainsCalls() []struct{ ... }
- func (mock *BaseKeeperMock) GetEndBlockerLimit(ctx cosmossdktypes.Context) uint64
- func (mock *BaseKeeperMock) GetEndBlockerLimitCalls() []struct{ ... }
- func (mock *BaseKeeperMock) GetIBCPath(ctx cosmossdktypes.Context, ...) (string, bool)
- func (mock *BaseKeeperMock) GetIBCPathCalls() []struct{ ... }
- func (mock *BaseKeeperMock) GetIBCTransferQueue(ctx cosmossdktypes.Context) utils.KVQueue
- func (mock *BaseKeeperMock) GetIBCTransferQueueCalls() []struct{ ... }
- func (mock *BaseKeeperMock) GetParams(ctx cosmossdktypes.Context) axelarnettypes.Params
- func (mock *BaseKeeperMock) GetParamsCalls() []struct{ ... }
- func (mock *BaseKeeperMock) GetRouteTimeoutWindow(ctx cosmossdktypes.Context) uint64
- func (mock *BaseKeeperMock) GetRouteTimeoutWindowCalls() []struct{ ... }
- func (mock *BaseKeeperMock) GetTransferLimit(ctx cosmossdktypes.Context) uint64
- func (mock *BaseKeeperMock) GetTransferLimitCalls() []struct{ ... }
- func (mock *BaseKeeperMock) Logger(ctx cosmossdktypes.Context) log.Logger
- func (mock *BaseKeeperMock) LoggerCalls() []struct{ ... }
- func (mock *BaseKeeperMock) SetSeqIDMapping(ctx cosmossdktypes.Context, t axelarnettypes.IBCTransfer) error
- func (mock *BaseKeeperMock) SetSeqIDMappingCalls() []struct{ ... }
- func (mock *BaseKeeperMock) SetTransferFailed(ctx cosmossdktypes.Context, ...) error
- func (mock *BaseKeeperMock) SetTransferFailedCalls() []struct{ ... }
- type ChannelKeeperMock
- func (mock *ChannelKeeperMock) GetAppVersion(ctx cosmossdktypes.Context, portID string, channelID string) (string, bool)
- func (mock *ChannelKeeperMock) GetAppVersionCalls() []struct{ ... }
- func (mock *ChannelKeeperMock) GetChannel(ctx cosmossdktypes.Context, srcPort string, srcChan string) (channeltypes.Channel, bool)
- func (mock *ChannelKeeperMock) GetChannelCalls() []struct{ ... }
- func (mock *ChannelKeeperMock) GetChannelClientState(ctx cosmossdktypes.Context, portID string, channelID string) (string, ibcexported.ClientState, error)
- func (mock *ChannelKeeperMock) GetChannelClientStateCalls() []struct{ ... }
- func (mock *ChannelKeeperMock) GetNextSequenceSend(ctx cosmossdktypes.Context, portID string, channelID string) (uint64, bool)
- func (mock *ChannelKeeperMock) GetNextSequenceSendCalls() []struct{ ... }
- func (mock *ChannelKeeperMock) SendPacket(ctx cosmossdktypes.Context, channelCap *capabilitytypes.Capability, ...) error
- func (mock *ChannelKeeperMock) SendPacketCalls() []struct{ ... }
- func (mock *ChannelKeeperMock) WriteAcknowledgement(ctx cosmossdktypes.Context, chanCap *capabilitytypes.Capability, ...) error
- func (mock *ChannelKeeperMock) WriteAcknowledgementCalls() []struct{ ... }
- type FeegrantKeeperMock
- type GovKeeperMock
- type IBCKeeperMock
- type IBCTransferKeeperMock
- func (mock *IBCTransferKeeperMock) GetDenomTrace(ctx cosmossdktypes.Context, denomTraceHash tmbytes.HexBytes) (ibctransfertypes.DenomTrace, bool)
- func (mock *IBCTransferKeeperMock) GetDenomTraceCalls() []struct{ ... }
- func (mock *IBCTransferKeeperMock) SendTransfer(ctx cosmossdktypes.Context, sourcePort string, sourceChannel string, ...) error
- func (mock *IBCTransferKeeperMock) SendTransferCalls() []struct{ ... }
- func (mock *IBCTransferKeeperMock) Transfer(goCtx context.Context, msg *ibctransfertypes.MsgTransfer) (*ibctransfertypes.MsgTransferResponse, error)
- func (mock *IBCTransferKeeperMock) TransferCalls() []struct{ ... }
- type NexusMock
- func (mock *NexusMock) ActivateChain(ctx cosmossdktypes.Context, ...)
- func (mock *NexusMock) ActivateChainCalls() []struct{ ... }
- func (mock *NexusMock) ArchivePendingTransfer(ctx cosmossdktypes.Context, ...)
- func (mock *NexusMock) ArchivePendingTransferCalls() []struct{ ... }
- func (mock *NexusMock) EnqueueForTransfer(ctx cosmossdktypes.Context, ...) (github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID, error)
- func (mock *NexusMock) EnqueueForTransferCalls() []struct{ ... }
- func (mock *NexusMock) EnqueueTransfer(ctx cosmossdktypes.Context, ...) (github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID, error)
- func (mock *NexusMock) EnqueueTransferCalls() []struct{ ... }
- func (mock *NexusMock) GenerateMessageID(ctx cosmossdktypes.Context) (string, []byte, uint64)
- func (mock *NexusMock) GenerateMessageIDCalls() []struct{ ... }
- func (mock *NexusMock) GetChain(ctx cosmossdktypes.Context, ...) (github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, bool)
- func (mock *NexusMock) GetChainByNativeAsset(ctx cosmossdktypes.Context, asset string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, bool)
- func (mock *NexusMock) GetChainByNativeAssetCalls() []struct{ ... }
- func (mock *NexusMock) GetChainCalls() []struct{ ... }
- func (mock *NexusMock) GetMessage(ctx cosmossdktypes.Context, id string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.GeneralMessage, bool)
- func (mock *NexusMock) GetMessageCalls() []struct{ ... }
- func (mock *NexusMock) GetRecipient(ctx cosmossdktypes.Context, ...) (github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, bool)
- func (mock *NexusMock) GetRecipientCalls() []struct{ ... }
- func (mock *NexusMock) GetTransferFees(ctx cosmossdktypes.Context) cosmossdktypes.Coins
- func (mock *NexusMock) GetTransferFeesCalls() []struct{ ... }
- func (mock *NexusMock) GetTransfersForChainPaginated(ctx cosmossdktypes.Context, ...) ([]github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainTransfer, ...)
- func (mock *NexusMock) GetTransfersForChainPaginatedCalls() []struct{ ... }
- func (mock *NexusMock) IsAssetRegistered(ctx cosmossdktypes.Context, ...) bool
- func (mock *NexusMock) IsAssetRegisteredCalls() []struct{ ... }
- func (mock *NexusMock) IsChainActivated(ctx cosmossdktypes.Context, ...) bool
- func (mock *NexusMock) IsChainActivatedCalls() []struct{ ... }
- func (mock *NexusMock) LinkAddresses(ctx cosmossdktypes.Context, ...) error
- func (mock *NexusMock) LinkAddressesCalls() []struct{ ... }
- func (mock *NexusMock) RateLimitTransfer(ctx cosmossdktypes.Context, ...) error
- func (mock *NexusMock) RateLimitTransferCalls() []struct{ ... }
- func (mock *NexusMock) RegisterAsset(ctx cosmossdktypes.Context, ...) error
- func (mock *NexusMock) RegisterAssetCalls() []struct{ ... }
- func (mock *NexusMock) RouteMessage(ctx cosmossdktypes.Context, id string, ...) error
- func (mock *NexusMock) RouteMessageCalls() []struct{ ... }
- func (mock *NexusMock) SetChain(ctx cosmossdktypes.Context, ...)
- func (mock *NexusMock) SetChainCalls() []struct{ ... }
- func (mock *NexusMock) SetMessageExecuted(ctx cosmossdktypes.Context, id string) error
- func (mock *NexusMock) SetMessageExecutedCalls() []struct{ ... }
- func (mock *NexusMock) SetMessageFailed(ctx cosmossdktypes.Context, id string) error
- func (mock *NexusMock) SetMessageFailedCalls() []struct{ ... }
- func (mock *NexusMock) SetNewMessage(ctx cosmossdktypes.Context, ...) error
- func (mock *NexusMock) SetNewMessageCalls() []struct{ ... }
- func (mock *NexusMock) SubTransferFee(ctx cosmossdktypes.Context, coin cosmossdktypes.Coin)
- func (mock *NexusMock) SubTransferFeeCalls() []struct{ ... }
- func (mock *NexusMock) ValidateAddress(ctx cosmossdktypes.Context, ...) error
- func (mock *NexusMock) ValidateAddressCalls() []struct{ ... }
- type PortKeeperMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKeeperMock ¶
type AccountKeeperMock struct { // GetModuleAccountFunc mocks the GetModuleAccount method. GetModuleAccountFunc func(ctx cosmossdktypes.Context, moduleName string) types.ModuleAccountI // GetModuleAddressFunc mocks the GetModuleAddress method. GetModuleAddressFunc func(moduleName string) cosmossdktypes.AccAddress // contains filtered or unexported fields }
AccountKeeperMock is a mock implementation of axelarnettypes.AccountKeeper.
func TestSomethingThatUsesAccountKeeper(t *testing.T) { // make and configure a mocked axelarnettypes.AccountKeeper mockedAccountKeeper := &AccountKeeperMock{ GetModuleAccountFunc: func(ctx cosmossdktypes.Context, moduleName string) types.ModuleAccountI { panic("mock out the GetModuleAccount method") }, GetModuleAddressFunc: func(moduleName string) cosmossdktypes.AccAddress { panic("mock out the GetModuleAddress method") }, } // use mockedAccountKeeper in code that requires axelarnettypes.AccountKeeper // and then make assertions. }
func (*AccountKeeperMock) GetModuleAccount ¶ added in v0.24.0
func (mock *AccountKeeperMock) GetModuleAccount(ctx cosmossdktypes.Context, moduleName string) types.ModuleAccountI
GetModuleAccount calls GetModuleAccountFunc.
func (*AccountKeeperMock) GetModuleAccountCalls ¶ added in v0.24.0
func (mock *AccountKeeperMock) GetModuleAccountCalls() []struct { Ctx cosmossdktypes.Context ModuleName string }
GetModuleAccountCalls gets all the calls that were made to GetModuleAccount. Check the length with:
len(mockedAccountKeeper.GetModuleAccountCalls())
func (*AccountKeeperMock) GetModuleAddress ¶
func (mock *AccountKeeperMock) GetModuleAddress(moduleName string) cosmossdktypes.AccAddress
GetModuleAddress calls GetModuleAddressFunc.
func (*AccountKeeperMock) GetModuleAddressCalls ¶
func (mock *AccountKeeperMock) GetModuleAddressCalls() []struct { ModuleName string }
GetModuleAddressCalls gets all the calls that were made to GetModuleAddress. Check the length with:
len(mockedAccountKeeper.GetModuleAddressCalls())
type BankKeeperMock ¶
type BankKeeperMock struct { // BlockedAddrFunc mocks the BlockedAddr method. BlockedAddrFunc func(addr cosmossdktypes.AccAddress) bool // BurnCoinsFunc mocks the BurnCoins method. BurnCoinsFunc func(ctx cosmossdktypes.Context, moduleName string, amt cosmossdktypes.Coins) error // IsSendEnabledCoinFunc mocks the IsSendEnabledCoin method. IsSendEnabledCoinFunc func(ctx cosmossdktypes.Context, coin cosmossdktypes.Coin) bool // IsSendEnabledCoinsFunc mocks the IsSendEnabledCoins method. IsSendEnabledCoinsFunc func(ctx cosmossdktypes.Context, coins ...cosmossdktypes.Coin) error // MintCoinsFunc mocks the MintCoins method. MintCoinsFunc func(ctx cosmossdktypes.Context, moduleName string, amt cosmossdktypes.Coins) error // SendCoinsFunc mocks the SendCoins method. SendCoinsFunc func(ctx cosmossdktypes.Context, fromAddr cosmossdktypes.AccAddress, toAddr cosmossdktypes.AccAddress, amt cosmossdktypes.Coins) error // SendCoinsFromAccountToModuleFunc mocks the SendCoinsFromAccountToModule method. SendCoinsFromAccountToModuleFunc func(ctx cosmossdktypes.Context, senderAddr cosmossdktypes.AccAddress, recipientModule string, amt cosmossdktypes.Coins) error // SendCoinsFromModuleToAccountFunc mocks the SendCoinsFromModuleToAccount method. SendCoinsFromModuleToAccountFunc func(ctx cosmossdktypes.Context, senderModule string, recipientAddr cosmossdktypes.AccAddress, amt cosmossdktypes.Coins) error // SpendableBalanceFunc mocks the SpendableBalance method. SpendableBalanceFunc func(ctx cosmossdktypes.Context, address cosmossdktypes.AccAddress, denom string) cosmossdktypes.Coin // contains filtered or unexported fields }
BankKeeperMock is a mock implementation of axelarnettypes.BankKeeper.
func TestSomethingThatUsesBankKeeper(t *testing.T) { // make and configure a mocked axelarnettypes.BankKeeper mockedBankKeeper := &BankKeeperMock{ BlockedAddrFunc: func(addr cosmossdktypes.AccAddress) bool { panic("mock out the BlockedAddr method") }, BurnCoinsFunc: func(ctx cosmossdktypes.Context, moduleName string, amt cosmossdktypes.Coins) error { panic("mock out the BurnCoins method") }, IsSendEnabledCoinFunc: func(ctx cosmossdktypes.Context, coin cosmossdktypes.Coin) bool { panic("mock out the IsSendEnabledCoin method") }, IsSendEnabledCoinsFunc: func(ctx cosmossdktypes.Context, coins ...cosmossdktypes.Coin) error { panic("mock out the IsSendEnabledCoins method") }, MintCoinsFunc: func(ctx cosmossdktypes.Context, moduleName string, amt cosmossdktypes.Coins) error { panic("mock out the MintCoins method") }, SendCoinsFunc: func(ctx cosmossdktypes.Context, fromAddr cosmossdktypes.AccAddress, toAddr cosmossdktypes.AccAddress, amt cosmossdktypes.Coins) error { panic("mock out the SendCoins method") }, SendCoinsFromAccountToModuleFunc: func(ctx cosmossdktypes.Context, senderAddr cosmossdktypes.AccAddress, recipientModule string, amt cosmossdktypes.Coins) error { panic("mock out the SendCoinsFromAccountToModule method") }, SendCoinsFromModuleToAccountFunc: func(ctx cosmossdktypes.Context, senderModule string, recipientAddr cosmossdktypes.AccAddress, amt cosmossdktypes.Coins) error { panic("mock out the SendCoinsFromModuleToAccount method") }, SpendableBalanceFunc: func(ctx cosmossdktypes.Context, address cosmossdktypes.AccAddress, denom string) cosmossdktypes.Coin { panic("mock out the SpendableBalance method") }, } // use mockedBankKeeper in code that requires axelarnettypes.BankKeeper // and then make assertions. }
func (*BankKeeperMock) BlockedAddr ¶ added in v0.24.0
func (mock *BankKeeperMock) BlockedAddr(addr cosmossdktypes.AccAddress) bool
BlockedAddr calls BlockedAddrFunc.
func (*BankKeeperMock) BlockedAddrCalls ¶ added in v0.24.0
func (mock *BankKeeperMock) BlockedAddrCalls() []struct { Addr cosmossdktypes.AccAddress }
BlockedAddrCalls gets all the calls that were made to BlockedAddr. Check the length with:
len(mockedBankKeeper.BlockedAddrCalls())
func (*BankKeeperMock) BurnCoins ¶
func (mock *BankKeeperMock) BurnCoins(ctx cosmossdktypes.Context, moduleName string, amt cosmossdktypes.Coins) error
BurnCoins calls BurnCoinsFunc.
func (*BankKeeperMock) BurnCoinsCalls ¶
func (mock *BankKeeperMock) BurnCoinsCalls() []struct { Ctx cosmossdktypes.Context ModuleName string Amt cosmossdktypes.Coins }
BurnCoinsCalls gets all the calls that were made to BurnCoins. Check the length with:
len(mockedBankKeeper.BurnCoinsCalls())
func (*BankKeeperMock) IsSendEnabledCoin ¶ added in v0.32.0
func (mock *BankKeeperMock) IsSendEnabledCoin(ctx cosmossdktypes.Context, coin cosmossdktypes.Coin) bool
IsSendEnabledCoin calls IsSendEnabledCoinFunc.
func (*BankKeeperMock) IsSendEnabledCoinCalls ¶ added in v0.32.0
func (mock *BankKeeperMock) IsSendEnabledCoinCalls() []struct { Ctx cosmossdktypes.Context Coin cosmossdktypes.Coin }
IsSendEnabledCoinCalls gets all the calls that were made to IsSendEnabledCoin. Check the length with:
len(mockedBankKeeper.IsSendEnabledCoinCalls())
func (*BankKeeperMock) IsSendEnabledCoins ¶ added in v0.32.0
func (mock *BankKeeperMock) IsSendEnabledCoins(ctx cosmossdktypes.Context, coins ...cosmossdktypes.Coin) error
IsSendEnabledCoins calls IsSendEnabledCoinsFunc.
func (*BankKeeperMock) IsSendEnabledCoinsCalls ¶ added in v0.32.0
func (mock *BankKeeperMock) IsSendEnabledCoinsCalls() []struct { Ctx cosmossdktypes.Context Coins []cosmossdktypes.Coin }
IsSendEnabledCoinsCalls gets all the calls that were made to IsSendEnabledCoins. Check the length with:
len(mockedBankKeeper.IsSendEnabledCoinsCalls())
func (*BankKeeperMock) MintCoins ¶
func (mock *BankKeeperMock) MintCoins(ctx cosmossdktypes.Context, moduleName string, amt cosmossdktypes.Coins) error
MintCoins calls MintCoinsFunc.
func (*BankKeeperMock) MintCoinsCalls ¶
func (mock *BankKeeperMock) MintCoinsCalls() []struct { Ctx cosmossdktypes.Context ModuleName string Amt cosmossdktypes.Coins }
MintCoinsCalls gets all the calls that were made to MintCoins. Check the length with:
len(mockedBankKeeper.MintCoinsCalls())
func (*BankKeeperMock) SendCoins ¶
func (mock *BankKeeperMock) SendCoins(ctx cosmossdktypes.Context, fromAddr cosmossdktypes.AccAddress, toAddr cosmossdktypes.AccAddress, amt cosmossdktypes.Coins) error
SendCoins calls SendCoinsFunc.
func (*BankKeeperMock) SendCoinsCalls ¶
func (mock *BankKeeperMock) SendCoinsCalls() []struct { Ctx cosmossdktypes.Context FromAddr cosmossdktypes.AccAddress ToAddr cosmossdktypes.AccAddress Amt cosmossdktypes.Coins }
SendCoinsCalls gets all the calls that were made to SendCoins. Check the length with:
len(mockedBankKeeper.SendCoinsCalls())
func (*BankKeeperMock) SendCoinsFromAccountToModule ¶
func (mock *BankKeeperMock) SendCoinsFromAccountToModule(ctx cosmossdktypes.Context, senderAddr cosmossdktypes.AccAddress, recipientModule string, amt cosmossdktypes.Coins) error
SendCoinsFromAccountToModule calls SendCoinsFromAccountToModuleFunc.
func (*BankKeeperMock) SendCoinsFromAccountToModuleCalls ¶
func (mock *BankKeeperMock) SendCoinsFromAccountToModuleCalls() []struct { Ctx cosmossdktypes.Context SenderAddr cosmossdktypes.AccAddress RecipientModule string Amt cosmossdktypes.Coins }
SendCoinsFromAccountToModuleCalls gets all the calls that were made to SendCoinsFromAccountToModule. Check the length with:
len(mockedBankKeeper.SendCoinsFromAccountToModuleCalls())
func (*BankKeeperMock) SendCoinsFromModuleToAccount ¶
func (mock *BankKeeperMock) SendCoinsFromModuleToAccount(ctx cosmossdktypes.Context, senderModule string, recipientAddr cosmossdktypes.AccAddress, amt cosmossdktypes.Coins) error
SendCoinsFromModuleToAccount calls SendCoinsFromModuleToAccountFunc.
func (*BankKeeperMock) SendCoinsFromModuleToAccountCalls ¶
func (mock *BankKeeperMock) SendCoinsFromModuleToAccountCalls() []struct { Ctx cosmossdktypes.Context SenderModule string RecipientAddr cosmossdktypes.AccAddress Amt cosmossdktypes.Coins }
SendCoinsFromModuleToAccountCalls gets all the calls that were made to SendCoinsFromModuleToAccount. Check the length with:
len(mockedBankKeeper.SendCoinsFromModuleToAccountCalls())
func (*BankKeeperMock) SpendableBalance ¶ added in v0.34.0
func (mock *BankKeeperMock) SpendableBalance(ctx cosmossdktypes.Context, address cosmossdktypes.AccAddress, denom string) cosmossdktypes.Coin
SpendableBalance calls SpendableBalanceFunc.
func (*BankKeeperMock) SpendableBalanceCalls ¶ added in v0.34.0
func (mock *BankKeeperMock) SpendableBalanceCalls() []struct { Ctx cosmossdktypes.Context Address cosmossdktypes.AccAddress Denom string }
SpendableBalanceCalls gets all the calls that were made to SpendableBalance. Check the length with:
len(mockedBankKeeper.SpendableBalanceCalls())
type BaseKeeperMock ¶
type BaseKeeperMock struct { // EnqueueIBCTransferFunc mocks the EnqueueIBCTransfer method. EnqueueIBCTransferFunc func(ctx cosmossdktypes.Context, transfer axelarnettypes.IBCTransfer) error // GetChainNameByIBCPathFunc mocks the GetChainNameByIBCPath method. GetChainNameByIBCPathFunc func(ctx cosmossdktypes.Context, ibcPath string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName, bool) // GetCosmosChainByNameFunc mocks the GetCosmosChainByName method. GetCosmosChainByNameFunc func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (axelarnettypes.CosmosChain, bool) // GetCosmosChainsFunc mocks the GetCosmosChains method. GetCosmosChainsFunc func(ctx cosmossdktypes.Context) []github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName // GetEndBlockerLimitFunc mocks the GetEndBlockerLimit method. GetEndBlockerLimitFunc func(ctx cosmossdktypes.Context) uint64 // GetIBCPathFunc mocks the GetIBCPath method. GetIBCPathFunc func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (string, bool) // GetIBCTransferQueueFunc mocks the GetIBCTransferQueue method. GetIBCTransferQueueFunc func(ctx cosmossdktypes.Context) utils.KVQueue // GetParamsFunc mocks the GetParams method. GetParamsFunc func(ctx cosmossdktypes.Context) axelarnettypes.Params // GetRouteTimeoutWindowFunc mocks the GetRouteTimeoutWindow method. GetRouteTimeoutWindowFunc func(ctx cosmossdktypes.Context) uint64 // GetTransferLimitFunc mocks the GetTransferLimit method. GetTransferLimitFunc func(ctx cosmossdktypes.Context) uint64 // LoggerFunc mocks the Logger method. LoggerFunc func(ctx cosmossdktypes.Context) log.Logger // SetSeqIDMappingFunc mocks the SetSeqIDMapping method. SetSeqIDMappingFunc func(ctx cosmossdktypes.Context, t axelarnettypes.IBCTransfer) error // SetTransferFailedFunc mocks the SetTransferFailed method. SetTransferFailedFunc func(ctx cosmossdktypes.Context, transferID github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID) error // contains filtered or unexported fields }
BaseKeeperMock is a mock implementation of axelarnettypes.BaseKeeper.
func TestSomethingThatUsesBaseKeeper(t *testing.T) { // make and configure a mocked axelarnettypes.BaseKeeper mockedBaseKeeper := &BaseKeeperMock{ EnqueueIBCTransferFunc: func(ctx cosmossdktypes.Context, transfer axelarnettypes.IBCTransfer) error { panic("mock out the EnqueueIBCTransfer method") }, GetChainNameByIBCPathFunc: func(ctx cosmossdktypes.Context, ibcPath string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName, bool) { panic("mock out the GetChainNameByIBCPath method") }, GetCosmosChainByNameFunc: func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (axelarnettypes.CosmosChain, bool) { panic("mock out the GetCosmosChainByName method") }, GetCosmosChainsFunc: func(ctx cosmossdktypes.Context) []github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName { panic("mock out the GetCosmosChains method") }, GetEndBlockerLimitFunc: func(ctx cosmossdktypes.Context) uint64 { panic("mock out the GetEndBlockerLimit method") }, GetIBCPathFunc: func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (string, bool) { panic("mock out the GetIBCPath method") }, GetIBCTransferQueueFunc: func(ctx cosmossdktypes.Context) utils.KVQueue { panic("mock out the GetIBCTransferQueue method") }, GetParamsFunc: func(ctx cosmossdktypes.Context) axelarnettypes.Params { panic("mock out the GetParams method") }, GetRouteTimeoutWindowFunc: func(ctx cosmossdktypes.Context) uint64 { panic("mock out the GetRouteTimeoutWindow method") }, GetTransferLimitFunc: func(ctx cosmossdktypes.Context) uint64 { panic("mock out the GetTransferLimit method") }, LoggerFunc: func(ctx cosmossdktypes.Context) log.Logger { panic("mock out the Logger method") }, SetSeqIDMappingFunc: func(ctx cosmossdktypes.Context, t axelarnettypes.IBCTransfer) error { panic("mock out the SetSeqIDMapping method") }, SetTransferFailedFunc: func(ctx cosmossdktypes.Context, transferID github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID) error { panic("mock out the SetTransferFailed method") }, } // use mockedBaseKeeper in code that requires axelarnettypes.BaseKeeper // and then make assertions. }
func (*BaseKeeperMock) EnqueueIBCTransfer ¶ added in v0.23.0
func (mock *BaseKeeperMock) EnqueueIBCTransfer(ctx cosmossdktypes.Context, transfer axelarnettypes.IBCTransfer) error
EnqueueIBCTransfer calls EnqueueIBCTransferFunc.
func (*BaseKeeperMock) EnqueueIBCTransferCalls ¶ added in v0.23.0
func (mock *BaseKeeperMock) EnqueueIBCTransferCalls() []struct { Ctx cosmossdktypes.Context Transfer axelarnettypes.IBCTransfer }
EnqueueIBCTransferCalls gets all the calls that were made to EnqueueIBCTransfer. Check the length with:
len(mockedBaseKeeper.EnqueueIBCTransferCalls())
func (*BaseKeeperMock) GetChainNameByIBCPath ¶ added in v0.35.5
func (mock *BaseKeeperMock) GetChainNameByIBCPath(ctx cosmossdktypes.Context, ibcPath string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName, bool)
GetChainNameByIBCPath calls GetChainNameByIBCPathFunc.
func (*BaseKeeperMock) GetChainNameByIBCPathCalls ¶ added in v0.35.5
func (mock *BaseKeeperMock) GetChainNameByIBCPathCalls() []struct { Ctx cosmossdktypes.Context IbcPath string }
GetChainNameByIBCPathCalls gets all the calls that were made to GetChainNameByIBCPath. Check the length with:
len(mockedBaseKeeper.GetChainNameByIBCPathCalls())
func (*BaseKeeperMock) GetCosmosChainByName ¶ added in v0.9.0
func (mock *BaseKeeperMock) GetCosmosChainByName(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (axelarnettypes.CosmosChain, bool)
GetCosmosChainByName calls GetCosmosChainByNameFunc.
func (*BaseKeeperMock) GetCosmosChainByNameCalls ¶ added in v0.9.0
func (mock *BaseKeeperMock) GetCosmosChainByNameCalls() []struct { Ctx cosmossdktypes.Context Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName }
GetCosmosChainByNameCalls gets all the calls that were made to GetCosmosChainByName. Check the length with:
len(mockedBaseKeeper.GetCosmosChainByNameCalls())
func (*BaseKeeperMock) GetCosmosChains ¶
func (mock *BaseKeeperMock) GetCosmosChains(ctx cosmossdktypes.Context) []github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName
GetCosmosChains calls GetCosmosChainsFunc.
func (*BaseKeeperMock) GetCosmosChainsCalls ¶
func (mock *BaseKeeperMock) GetCosmosChainsCalls() []struct { Ctx cosmossdktypes.Context }
GetCosmosChainsCalls gets all the calls that were made to GetCosmosChains. Check the length with:
len(mockedBaseKeeper.GetCosmosChainsCalls())
func (*BaseKeeperMock) GetEndBlockerLimit ¶ added in v0.25.0
func (mock *BaseKeeperMock) GetEndBlockerLimit(ctx cosmossdktypes.Context) uint64
GetEndBlockerLimit calls GetEndBlockerLimitFunc.
func (*BaseKeeperMock) GetEndBlockerLimitCalls ¶ added in v0.25.0
func (mock *BaseKeeperMock) GetEndBlockerLimitCalls() []struct { Ctx cosmossdktypes.Context }
GetEndBlockerLimitCalls gets all the calls that were made to GetEndBlockerLimit. Check the length with:
len(mockedBaseKeeper.GetEndBlockerLimitCalls())
func (*BaseKeeperMock) GetIBCPath ¶
func (mock *BaseKeeperMock) GetIBCPath(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (string, bool)
GetIBCPath calls GetIBCPathFunc.
func (*BaseKeeperMock) GetIBCPathCalls ¶
func (mock *BaseKeeperMock) GetIBCPathCalls() []struct { Ctx cosmossdktypes.Context Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName }
GetIBCPathCalls gets all the calls that were made to GetIBCPath. Check the length with:
len(mockedBaseKeeper.GetIBCPathCalls())
func (*BaseKeeperMock) GetIBCTransferQueue ¶ added in v0.21.0
func (mock *BaseKeeperMock) GetIBCTransferQueue(ctx cosmossdktypes.Context) utils.KVQueue
GetIBCTransferQueue calls GetIBCTransferQueueFunc.
func (*BaseKeeperMock) GetIBCTransferQueueCalls ¶ added in v0.21.0
func (mock *BaseKeeperMock) GetIBCTransferQueueCalls() []struct { Ctx cosmossdktypes.Context }
GetIBCTransferQueueCalls gets all the calls that were made to GetIBCTransferQueue. Check the length with:
len(mockedBaseKeeper.GetIBCTransferQueueCalls())
func (*BaseKeeperMock) GetParams ¶ added in v0.34.0
func (mock *BaseKeeperMock) GetParams(ctx cosmossdktypes.Context) axelarnettypes.Params
GetParams calls GetParamsFunc.
func (*BaseKeeperMock) GetParamsCalls ¶ added in v0.34.0
func (mock *BaseKeeperMock) GetParamsCalls() []struct { Ctx cosmossdktypes.Context }
GetParamsCalls gets all the calls that were made to GetParams. Check the length with:
len(mockedBaseKeeper.GetParamsCalls())
func (*BaseKeeperMock) GetRouteTimeoutWindow ¶
func (mock *BaseKeeperMock) GetRouteTimeoutWindow(ctx cosmossdktypes.Context) uint64
GetRouteTimeoutWindow calls GetRouteTimeoutWindowFunc.
func (*BaseKeeperMock) GetRouteTimeoutWindowCalls ¶
func (mock *BaseKeeperMock) GetRouteTimeoutWindowCalls() []struct { Ctx cosmossdktypes.Context }
GetRouteTimeoutWindowCalls gets all the calls that were made to GetRouteTimeoutWindow. Check the length with:
len(mockedBaseKeeper.GetRouteTimeoutWindowCalls())
func (*BaseKeeperMock) GetTransferLimit ¶ added in v0.25.0
func (mock *BaseKeeperMock) GetTransferLimit(ctx cosmossdktypes.Context) uint64
GetTransferLimit calls GetTransferLimitFunc.
func (*BaseKeeperMock) GetTransferLimitCalls ¶ added in v0.25.0
func (mock *BaseKeeperMock) GetTransferLimitCalls() []struct { Ctx cosmossdktypes.Context }
GetTransferLimitCalls gets all the calls that were made to GetTransferLimit. Check the length with:
len(mockedBaseKeeper.GetTransferLimitCalls())
func (*BaseKeeperMock) Logger ¶
func (mock *BaseKeeperMock) Logger(ctx cosmossdktypes.Context) log.Logger
Logger calls LoggerFunc.
func (*BaseKeeperMock) LoggerCalls ¶
func (mock *BaseKeeperMock) LoggerCalls() []struct { Ctx cosmossdktypes.Context }
LoggerCalls gets all the calls that were made to Logger. Check the length with:
len(mockedBaseKeeper.LoggerCalls())
func (*BaseKeeperMock) SetSeqIDMapping ¶ added in v0.23.0
func (mock *BaseKeeperMock) SetSeqIDMapping(ctx cosmossdktypes.Context, t axelarnettypes.IBCTransfer) error
SetSeqIDMapping calls SetSeqIDMappingFunc.
func (*BaseKeeperMock) SetSeqIDMappingCalls ¶ added in v0.23.0
func (mock *BaseKeeperMock) SetSeqIDMappingCalls() []struct { Ctx cosmossdktypes.Context T axelarnettypes.IBCTransfer }
SetSeqIDMappingCalls gets all the calls that were made to SetSeqIDMapping. Check the length with:
len(mockedBaseKeeper.SetSeqIDMappingCalls())
func (*BaseKeeperMock) SetTransferFailed ¶ added in v0.23.0
func (mock *BaseKeeperMock) SetTransferFailed(ctx cosmossdktypes.Context, transferID github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID) error
SetTransferFailed calls SetTransferFailedFunc.
func (*BaseKeeperMock) SetTransferFailedCalls ¶ added in v0.23.0
func (mock *BaseKeeperMock) SetTransferFailedCalls() []struct { Ctx cosmossdktypes.Context TransferID github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID }
SetTransferFailedCalls gets all the calls that were made to SetTransferFailed. Check the length with:
len(mockedBaseKeeper.SetTransferFailedCalls())
type ChannelKeeperMock ¶
type ChannelKeeperMock struct { // GetAppVersionFunc mocks the GetAppVersion method. GetAppVersionFunc func(ctx cosmossdktypes.Context, portID string, channelID string) (string, bool) // GetChannelFunc mocks the GetChannel method. GetChannelFunc func(ctx cosmossdktypes.Context, srcPort string, srcChan string) (channeltypes.Channel, bool) // GetChannelClientStateFunc mocks the GetChannelClientState method. GetChannelClientStateFunc func(ctx cosmossdktypes.Context, portID string, channelID string) (string, ibcexported.ClientState, error) // GetNextSequenceSendFunc mocks the GetNextSequenceSend method. GetNextSequenceSendFunc func(ctx cosmossdktypes.Context, portID string, channelID string) (uint64, bool) // SendPacketFunc mocks the SendPacket method. SendPacketFunc func(ctx cosmossdktypes.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error // WriteAcknowledgementFunc mocks the WriteAcknowledgement method. WriteAcknowledgementFunc func(ctx cosmossdktypes.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, ack ibcexported.Acknowledgement) error // contains filtered or unexported fields }
ChannelKeeperMock is a mock implementation of axelarnettypes.ChannelKeeper.
func TestSomethingThatUsesChannelKeeper(t *testing.T) { // make and configure a mocked axelarnettypes.ChannelKeeper mockedChannelKeeper := &ChannelKeeperMock{ GetAppVersionFunc: func(ctx cosmossdktypes.Context, portID string, channelID string) (string, bool) { panic("mock out the GetAppVersion method") }, GetChannelFunc: func(ctx cosmossdktypes.Context, srcPort string, srcChan string) (channeltypes.Channel, bool) { panic("mock out the GetChannel method") }, GetChannelClientStateFunc: func(ctx cosmossdktypes.Context, portID string, channelID string) (string, ibcexported.ClientState, error) { panic("mock out the GetChannelClientState method") }, GetNextSequenceSendFunc: func(ctx cosmossdktypes.Context, portID string, channelID string) (uint64, bool) { panic("mock out the GetNextSequenceSend method") }, SendPacketFunc: func(ctx cosmossdktypes.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error { panic("mock out the SendPacket method") }, WriteAcknowledgementFunc: func(ctx cosmossdktypes.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, ack ibcexported.Acknowledgement) error { panic("mock out the WriteAcknowledgement method") }, } // use mockedChannelKeeper in code that requires axelarnettypes.ChannelKeeper // and then make assertions. }
func (*ChannelKeeperMock) GetAppVersion ¶ added in v0.32.0
func (mock *ChannelKeeperMock) GetAppVersion(ctx cosmossdktypes.Context, portID string, channelID string) (string, bool)
GetAppVersion calls GetAppVersionFunc.
func (*ChannelKeeperMock) GetAppVersionCalls ¶ added in v0.32.0
func (mock *ChannelKeeperMock) GetAppVersionCalls() []struct { Ctx cosmossdktypes.Context PortID string ChannelID string }
GetAppVersionCalls gets all the calls that were made to GetAppVersion. Check the length with:
len(mockedChannelKeeper.GetAppVersionCalls())
func (*ChannelKeeperMock) GetChannel ¶ added in v0.24.0
func (mock *ChannelKeeperMock) GetChannel(ctx cosmossdktypes.Context, srcPort string, srcChan string) (channeltypes.Channel, bool)
GetChannel calls GetChannelFunc.
func (*ChannelKeeperMock) GetChannelCalls ¶ added in v0.24.0
func (mock *ChannelKeeperMock) GetChannelCalls() []struct { Ctx cosmossdktypes.Context SrcPort string SrcChan string }
GetChannelCalls gets all the calls that were made to GetChannel. Check the length with:
len(mockedChannelKeeper.GetChannelCalls())
func (*ChannelKeeperMock) GetChannelClientState ¶
func (mock *ChannelKeeperMock) GetChannelClientState(ctx cosmossdktypes.Context, portID string, channelID string) (string, ibcexported.ClientState, error)
GetChannelClientState calls GetChannelClientStateFunc.
func (*ChannelKeeperMock) GetChannelClientStateCalls ¶
func (mock *ChannelKeeperMock) GetChannelClientStateCalls() []struct { Ctx cosmossdktypes.Context PortID string ChannelID string }
GetChannelClientStateCalls gets all the calls that were made to GetChannelClientState. Check the length with:
len(mockedChannelKeeper.GetChannelClientStateCalls())
func (*ChannelKeeperMock) GetNextSequenceSend ¶
func (mock *ChannelKeeperMock) GetNextSequenceSend(ctx cosmossdktypes.Context, portID string, channelID string) (uint64, bool)
GetNextSequenceSend calls GetNextSequenceSendFunc.
func (*ChannelKeeperMock) GetNextSequenceSendCalls ¶
func (mock *ChannelKeeperMock) GetNextSequenceSendCalls() []struct { Ctx cosmossdktypes.Context PortID string ChannelID string }
GetNextSequenceSendCalls gets all the calls that were made to GetNextSequenceSend. Check the length with:
len(mockedChannelKeeper.GetNextSequenceSendCalls())
func (*ChannelKeeperMock) SendPacket ¶ added in v0.24.0
func (mock *ChannelKeeperMock) SendPacket(ctx cosmossdktypes.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error
SendPacket calls SendPacketFunc.
func (*ChannelKeeperMock) SendPacketCalls ¶ added in v0.24.0
func (mock *ChannelKeeperMock) SendPacketCalls() []struct { Ctx cosmossdktypes.Context ChannelCap *capabilitytypes.Capability Packet ibcexported.PacketI }
SendPacketCalls gets all the calls that were made to SendPacket. Check the length with:
len(mockedChannelKeeper.SendPacketCalls())
func (*ChannelKeeperMock) WriteAcknowledgement ¶ added in v0.27.0
func (mock *ChannelKeeperMock) WriteAcknowledgement(ctx cosmossdktypes.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, ack ibcexported.Acknowledgement) error
WriteAcknowledgement calls WriteAcknowledgementFunc.
func (*ChannelKeeperMock) WriteAcknowledgementCalls ¶ added in v0.27.0
func (mock *ChannelKeeperMock) WriteAcknowledgementCalls() []struct { Ctx cosmossdktypes.Context ChanCap *capabilitytypes.Capability Packet ibcexported.PacketI Ack ibcexported.Acknowledgement }
WriteAcknowledgementCalls gets all the calls that were made to WriteAcknowledgement. Check the length with:
len(mockedChannelKeeper.WriteAcknowledgementCalls())
type FeegrantKeeperMock ¶ added in v0.34.0
type FeegrantKeeperMock struct { // UseGrantedFeesFunc mocks the UseGrantedFees method. UseGrantedFeesFunc func(ctx cosmossdktypes.Context, granter cosmossdktypes.AccAddress, grantee cosmossdktypes.AccAddress, fee cosmossdktypes.Coins, msgs []cosmossdktypes.Msg) error // contains filtered or unexported fields }
FeegrantKeeperMock is a mock implementation of axelarnettypes.FeegrantKeeper.
func TestSomethingThatUsesFeegrantKeeper(t *testing.T) { // make and configure a mocked axelarnettypes.FeegrantKeeper mockedFeegrantKeeper := &FeegrantKeeperMock{ UseGrantedFeesFunc: func(ctx cosmossdktypes.Context, granter cosmossdktypes.AccAddress, grantee cosmossdktypes.AccAddress, fee cosmossdktypes.Coins, msgs []cosmossdktypes.Msg) error { panic("mock out the UseGrantedFees method") }, } // use mockedFeegrantKeeper in code that requires axelarnettypes.FeegrantKeeper // and then make assertions. }
func (*FeegrantKeeperMock) UseGrantedFees ¶ added in v0.34.0
func (mock *FeegrantKeeperMock) UseGrantedFees(ctx cosmossdktypes.Context, granter cosmossdktypes.AccAddress, grantee cosmossdktypes.AccAddress, fee cosmossdktypes.Coins, msgs []cosmossdktypes.Msg) error
UseGrantedFees calls UseGrantedFeesFunc.
func (*FeegrantKeeperMock) UseGrantedFeesCalls ¶ added in v0.34.0
func (mock *FeegrantKeeperMock) UseGrantedFeesCalls() []struct { Ctx cosmossdktypes.Context Granter cosmossdktypes.AccAddress Grantee cosmossdktypes.AccAddress Fee cosmossdktypes.Coins Msgs []cosmossdktypes.Msg }
UseGrantedFeesCalls gets all the calls that were made to UseGrantedFees. Check the length with:
len(mockedFeegrantKeeper.UseGrantedFeesCalls())
type GovKeeperMock ¶ added in v0.34.0
type GovKeeperMock struct { // GetProposalFunc mocks the GetProposal method. GetProposalFunc func(ctx cosmossdktypes.Context, proposalID uint64) (gov.Proposal, bool) // contains filtered or unexported fields }
GovKeeperMock is a mock implementation of axelarnettypes.GovKeeper.
func TestSomethingThatUsesGovKeeper(t *testing.T) { // make and configure a mocked axelarnettypes.GovKeeper mockedGovKeeper := &GovKeeperMock{ GetProposalFunc: func(ctx cosmossdktypes.Context, proposalID uint64) (gov.Proposal, bool) { panic("mock out the GetProposal method") }, } // use mockedGovKeeper in code that requires axelarnettypes.GovKeeper // and then make assertions. }
func (*GovKeeperMock) GetProposal ¶ added in v0.34.0
func (mock *GovKeeperMock) GetProposal(ctx cosmossdktypes.Context, proposalID uint64) (gov.Proposal, bool)
GetProposal calls GetProposalFunc.
func (*GovKeeperMock) GetProposalCalls ¶ added in v0.34.0
func (mock *GovKeeperMock) GetProposalCalls() []struct { Ctx cosmossdktypes.Context ProposalID uint64 }
GetProposalCalls gets all the calls that were made to GetProposal. Check the length with:
len(mockedGovKeeper.GetProposalCalls())
type IBCKeeperMock ¶ added in v0.35.0
type IBCKeeperMock struct { // SendMessageFunc mocks the SendMessage method. SendMessageFunc func(c context.Context, recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, asset cosmossdktypes.Coin, payload string, id string) error // contains filtered or unexported fields }
IBCKeeperMock is a mock implementation of axelarnettypes.IBCKeeper.
func TestSomethingThatUsesIBCKeeper(t *testing.T) { // make and configure a mocked axelarnettypes.IBCKeeper mockedIBCKeeper := &IBCKeeperMock{ SendMessageFunc: func(c context.Context, recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, asset cosmossdktypes.Coin, payload string, id string) error { panic("mock out the SendMessage method") }, } // use mockedIBCKeeper in code that requires axelarnettypes.IBCKeeper // and then make assertions. }
func (*IBCKeeperMock) SendMessage ¶ added in v0.35.0
func (mock *IBCKeeperMock) SendMessage(c context.Context, recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, asset cosmossdktypes.Coin, payload string, id string) error
SendMessage calls SendMessageFunc.
func (*IBCKeeperMock) SendMessageCalls ¶ added in v0.35.0
func (mock *IBCKeeperMock) SendMessageCalls() []struct { C context.Context Recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress Asset cosmossdktypes.Coin Payload string ID string }
SendMessageCalls gets all the calls that were made to SendMessage. Check the length with:
len(mockedIBCKeeper.SendMessageCalls())
type IBCTransferKeeperMock ¶
type IBCTransferKeeperMock struct { // GetDenomTraceFunc mocks the GetDenomTrace method. GetDenomTraceFunc func(ctx cosmossdktypes.Context, denomTraceHash tmbytes.HexBytes) (ibctransfertypes.DenomTrace, bool) // SendTransferFunc mocks the SendTransfer method. SendTransferFunc func(ctx cosmossdktypes.Context, sourcePort string, sourceChannel string, token cosmossdktypes.Coin, sender cosmossdktypes.AccAddress, receiver string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64) error // TransferFunc mocks the Transfer method. TransferFunc func(goCtx context.Context, msg *ibctransfertypes.MsgTransfer) (*ibctransfertypes.MsgTransferResponse, error) // contains filtered or unexported fields }
IBCTransferKeeperMock is a mock implementation of axelarnettypes.IBCTransferKeeper.
func TestSomethingThatUsesIBCTransferKeeper(t *testing.T) { // make and configure a mocked axelarnettypes.IBCTransferKeeper mockedIBCTransferKeeper := &IBCTransferKeeperMock{ GetDenomTraceFunc: func(ctx cosmossdktypes.Context, denomTraceHash tmbytes.HexBytes) (ibctransfertypes.DenomTrace, bool) { panic("mock out the GetDenomTrace method") }, SendTransferFunc: func(ctx cosmossdktypes.Context, sourcePort string, sourceChannel string, token cosmossdktypes.Coin, sender cosmossdktypes.AccAddress, receiver string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64) error { panic("mock out the SendTransfer method") }, TransferFunc: func(goCtx context.Context, msg *ibctransfertypes.MsgTransfer) (*ibctransfertypes.MsgTransferResponse, error) { panic("mock out the Transfer method") }, } // use mockedIBCTransferKeeper in code that requires axelarnettypes.IBCTransferKeeper // and then make assertions. }
func (*IBCTransferKeeperMock) GetDenomTrace ¶
func (mock *IBCTransferKeeperMock) GetDenomTrace(ctx cosmossdktypes.Context, denomTraceHash tmbytes.HexBytes) (ibctransfertypes.DenomTrace, bool)
GetDenomTrace calls GetDenomTraceFunc.
func (*IBCTransferKeeperMock) GetDenomTraceCalls ¶
func (mock *IBCTransferKeeperMock) GetDenomTraceCalls() []struct { Ctx cosmossdktypes.Context DenomTraceHash tmbytes.HexBytes }
GetDenomTraceCalls gets all the calls that were made to GetDenomTrace. Check the length with:
len(mockedIBCTransferKeeper.GetDenomTraceCalls())
func (*IBCTransferKeeperMock) SendTransfer ¶
func (mock *IBCTransferKeeperMock) SendTransfer(ctx cosmossdktypes.Context, sourcePort string, sourceChannel string, token cosmossdktypes.Coin, sender cosmossdktypes.AccAddress, receiver string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64) error
SendTransfer calls SendTransferFunc.
func (*IBCTransferKeeperMock) SendTransferCalls ¶
func (mock *IBCTransferKeeperMock) SendTransferCalls() []struct { Ctx cosmossdktypes.Context SourcePort string SourceChannel string Token cosmossdktypes.Coin Sender cosmossdktypes.AccAddress Receiver string TimeoutHeight clienttypes.Height TimeoutTimestamp uint64 }
SendTransferCalls gets all the calls that were made to SendTransfer. Check the length with:
len(mockedIBCTransferKeeper.SendTransferCalls())
func (*IBCTransferKeeperMock) Transfer ¶ added in v0.32.0
func (mock *IBCTransferKeeperMock) Transfer(goCtx context.Context, msg *ibctransfertypes.MsgTransfer) (*ibctransfertypes.MsgTransferResponse, error)
Transfer calls TransferFunc.
func (*IBCTransferKeeperMock) TransferCalls ¶ added in v0.32.0
func (mock *IBCTransferKeeperMock) TransferCalls() []struct { GoCtx context.Context Msg *ibctransfertypes.MsgTransfer }
TransferCalls gets all the calls that were made to Transfer. Check the length with:
len(mockedIBCTransferKeeper.TransferCalls())
type NexusMock ¶
type NexusMock struct { // ActivateChainFunc mocks the ActivateChain method. ActivateChainFunc func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain) // ArchivePendingTransferFunc mocks the ArchivePendingTransfer method. ArchivePendingTransferFunc func(ctx cosmossdktypes.Context, transfer github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainTransfer) // EnqueueForTransferFunc mocks the EnqueueForTransfer method. EnqueueForTransferFunc func(ctx cosmossdktypes.Context, sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, amount cosmossdktypes.Coin) (github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID, error) // EnqueueTransferFunc mocks the EnqueueTransfer method. EnqueueTransferFunc func(ctx cosmossdktypes.Context, senderChain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, asset cosmossdktypes.Coin) (github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID, error) // GenerateMessageIDFunc mocks the GenerateMessageID method. GenerateMessageIDFunc func(ctx cosmossdktypes.Context) (string, []byte, uint64) // GetChainFunc mocks the GetChain method. GetChainFunc func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, bool) // GetChainByNativeAssetFunc mocks the GetChainByNativeAsset method. GetChainByNativeAssetFunc func(ctx cosmossdktypes.Context, asset string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, bool) // GetMessageFunc mocks the GetMessage method. GetMessageFunc func(ctx cosmossdktypes.Context, id string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.GeneralMessage, bool) // GetRecipientFunc mocks the GetRecipient method. GetRecipientFunc func(ctx cosmossdktypes.Context, sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress) (github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, bool) // GetTransferFeesFunc mocks the GetTransferFees method. GetTransferFeesFunc func(ctx cosmossdktypes.Context) cosmossdktypes.Coins // GetTransfersForChainPaginatedFunc mocks the GetTransfersForChainPaginated method. GetTransfersForChainPaginatedFunc func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, state github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferState, pageRequest *query.PageRequest) ([]github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainTransfer, *query.PageResponse, error) // IsAssetRegisteredFunc mocks the IsAssetRegistered method. IsAssetRegisteredFunc func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, denom string) bool // IsChainActivatedFunc mocks the IsChainActivated method. IsChainActivatedFunc func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain) bool // LinkAddressesFunc mocks the LinkAddresses method. LinkAddressesFunc func(ctx cosmossdktypes.Context, sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress) error // RateLimitTransferFunc mocks the RateLimitTransfer method. RateLimitTransferFunc func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName, asset cosmossdktypes.Coin, direction github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferDirection) error // RegisterAssetFunc mocks the RegisterAsset method. RegisterAssetFunc func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, asset github_com_axelarnetwork_axelar_core_x_nexus_exported.Asset, limit cosmossdktypes.Uint, window time.Duration) error // RouteMessageFunc mocks the RouteMessage method. RouteMessageFunc func(ctx cosmossdktypes.Context, id string, routingCtx ...github_com_axelarnetwork_axelar_core_x_nexus_exported.RoutingContext) error // SetChainFunc mocks the SetChain method. SetChainFunc func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain) // SetMessageExecutedFunc mocks the SetMessageExecuted method. SetMessageExecutedFunc func(ctx cosmossdktypes.Context, id string) error // SetMessageFailedFunc mocks the SetMessageFailed method. SetMessageFailedFunc func(ctx cosmossdktypes.Context, id string) error // SetNewMessageFunc mocks the SetNewMessage method. SetNewMessageFunc func(ctx cosmossdktypes.Context, m github_com_axelarnetwork_axelar_core_x_nexus_exported.GeneralMessage) error // SubTransferFeeFunc mocks the SubTransferFee method. SubTransferFeeFunc func(ctx cosmossdktypes.Context, coin cosmossdktypes.Coin) // ValidateAddressFunc mocks the ValidateAddress method. ValidateAddressFunc func(ctx cosmossdktypes.Context, address github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress) error // contains filtered or unexported fields }
NexusMock is a mock implementation of axelarnettypes.Nexus.
func TestSomethingThatUsesNexus(t *testing.T) { // make and configure a mocked axelarnettypes.Nexus mockedNexus := &NexusMock{ ActivateChainFunc: func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain) { panic("mock out the ActivateChain method") }, ArchivePendingTransferFunc: func(ctx cosmossdktypes.Context, transfer github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainTransfer) { panic("mock out the ArchivePendingTransfer method") }, EnqueueForTransferFunc: func(ctx cosmossdktypes.Context, sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, amount cosmossdktypes.Coin) (github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID, error) { panic("mock out the EnqueueForTransfer method") }, EnqueueTransferFunc: func(ctx cosmossdktypes.Context, senderChain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, asset cosmossdktypes.Coin) (github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID, error) { panic("mock out the EnqueueTransfer method") }, GenerateMessageIDFunc: func(ctx cosmossdktypes.Context) (string, []byte, uint64) { panic("mock out the GenerateMessageID method") }, GetChainFunc: func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, bool) { panic("mock out the GetChain method") }, GetChainByNativeAssetFunc: func(ctx cosmossdktypes.Context, asset string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, bool) { panic("mock out the GetChainByNativeAsset method") }, GetMessageFunc: func(ctx cosmossdktypes.Context, id string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.GeneralMessage, bool) { panic("mock out the GetMessage method") }, GetRecipientFunc: func(ctx cosmossdktypes.Context, sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress) (github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, bool) { panic("mock out the GetRecipient method") }, GetTransferFeesFunc: func(ctx cosmossdktypes.Context) cosmossdktypes.Coins { panic("mock out the GetTransferFees method") }, GetTransfersForChainPaginatedFunc: func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, state github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferState, pageRequest *query.PageRequest) ([]github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainTransfer, *query.PageResponse, error) { panic("mock out the GetTransfersForChainPaginated method") }, IsAssetRegisteredFunc: func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, denom string) bool { panic("mock out the IsAssetRegistered method") }, IsChainActivatedFunc: func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain) bool { panic("mock out the IsChainActivated method") }, LinkAddressesFunc: func(ctx cosmossdktypes.Context, sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress) error { panic("mock out the LinkAddresses method") }, RateLimitTransferFunc: func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName, asset cosmossdktypes.Coin, direction github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferDirection) error { panic("mock out the RateLimitTransfer method") }, RegisterAssetFunc: func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, asset github_com_axelarnetwork_axelar_core_x_nexus_exported.Asset, limit cosmossdktypes.Uint, window time.Duration) error { panic("mock out the RegisterAsset method") }, RouteMessageFunc: func(ctx cosmossdktypes.Context, id string, routingCtx ...github_com_axelarnetwork_axelar_core_x_nexus_exported.RoutingContext) error { panic("mock out the RouteMessage method") }, SetChainFunc: func(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain) { panic("mock out the SetChain method") }, SetMessageExecutedFunc: func(ctx cosmossdktypes.Context, id string) error { panic("mock out the SetMessageExecuted method") }, SetMessageFailedFunc: func(ctx cosmossdktypes.Context, id string) error { panic("mock out the SetMessageFailed method") }, SetNewMessageFunc: func(ctx cosmossdktypes.Context, m github_com_axelarnetwork_axelar_core_x_nexus_exported.GeneralMessage) error { panic("mock out the SetNewMessage method") }, SubTransferFeeFunc: func(ctx cosmossdktypes.Context, coin cosmossdktypes.Coin) { panic("mock out the SubTransferFee method") }, ValidateAddressFunc: func(ctx cosmossdktypes.Context, address github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress) error { panic("mock out the ValidateAddress method") }, } // use mockedNexus in code that requires axelarnettypes.Nexus // and then make assertions. }
func (*NexusMock) ActivateChain ¶ added in v0.12.0
func (mock *NexusMock) ActivateChain(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain)
ActivateChain calls ActivateChainFunc.
func (*NexusMock) ActivateChainCalls ¶ added in v0.12.0
func (mock *NexusMock) ActivateChainCalls() []struct { Ctx cosmossdktypes.Context Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain }
ActivateChainCalls gets all the calls that were made to ActivateChain. Check the length with:
len(mockedNexus.ActivateChainCalls())
func (*NexusMock) ArchivePendingTransfer ¶
func (mock *NexusMock) ArchivePendingTransfer(ctx cosmossdktypes.Context, transfer github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainTransfer)
ArchivePendingTransfer calls ArchivePendingTransferFunc.
func (*NexusMock) ArchivePendingTransferCalls ¶
func (mock *NexusMock) ArchivePendingTransferCalls() []struct { Ctx cosmossdktypes.Context Transfer github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainTransfer }
ArchivePendingTransferCalls gets all the calls that were made to ArchivePendingTransfer. Check the length with:
len(mockedNexus.ArchivePendingTransferCalls())
func (*NexusMock) EnqueueForTransfer ¶
func (mock *NexusMock) EnqueueForTransfer(ctx cosmossdktypes.Context, sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, amount cosmossdktypes.Coin) (github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID, error)
EnqueueForTransfer calls EnqueueForTransferFunc.
func (*NexusMock) EnqueueForTransferCalls ¶
func (mock *NexusMock) EnqueueForTransferCalls() []struct { Ctx cosmossdktypes.Context Sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress Amount cosmossdktypes.Coin }
EnqueueForTransferCalls gets all the calls that were made to EnqueueForTransfer. Check the length with:
len(mockedNexus.EnqueueForTransferCalls())
func (*NexusMock) EnqueueTransfer ¶ added in v0.32.0
func (mock *NexusMock) EnqueueTransfer(ctx cosmossdktypes.Context, senderChain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, asset cosmossdktypes.Coin) (github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferID, error)
EnqueueTransfer calls EnqueueTransferFunc.
func (*NexusMock) EnqueueTransferCalls ¶ added in v0.32.0
func (mock *NexusMock) EnqueueTransferCalls() []struct { Ctx cosmossdktypes.Context SenderChain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain Recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress Asset cosmossdktypes.Coin }
EnqueueTransferCalls gets all the calls that were made to EnqueueTransfer. Check the length with:
len(mockedNexus.EnqueueTransferCalls())
func (*NexusMock) GenerateMessageID ¶ added in v0.32.0
GenerateMessageID calls GenerateMessageIDFunc.
func (*NexusMock) GenerateMessageIDCalls ¶ added in v0.32.0
func (mock *NexusMock) GenerateMessageIDCalls() []struct { Ctx cosmossdktypes.Context }
GenerateMessageIDCalls gets all the calls that were made to GenerateMessageID. Check the length with:
len(mockedNexus.GenerateMessageIDCalls())
func (*NexusMock) GetChain ¶
func (mock *NexusMock) GetChain(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, bool)
GetChain calls GetChainFunc.
func (*NexusMock) GetChainByNativeAsset ¶ added in v0.14.0
func (mock *NexusMock) GetChainByNativeAsset(ctx cosmossdktypes.Context, asset string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, bool)
GetChainByNativeAsset calls GetChainByNativeAssetFunc.
func (*NexusMock) GetChainByNativeAssetCalls ¶ added in v0.14.0
func (mock *NexusMock) GetChainByNativeAssetCalls() []struct { Ctx cosmossdktypes.Context Asset string }
GetChainByNativeAssetCalls gets all the calls that were made to GetChainByNativeAsset. Check the length with:
len(mockedNexus.GetChainByNativeAssetCalls())
func (*NexusMock) GetChainCalls ¶
func (mock *NexusMock) GetChainCalls() []struct { Ctx cosmossdktypes.Context Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName }
GetChainCalls gets all the calls that were made to GetChain. Check the length with:
len(mockedNexus.GetChainCalls())
func (*NexusMock) GetMessage ¶ added in v0.32.0
func (mock *NexusMock) GetMessage(ctx cosmossdktypes.Context, id string) (github_com_axelarnetwork_axelar_core_x_nexus_exported.GeneralMessage, bool)
GetMessage calls GetMessageFunc.
func (*NexusMock) GetMessageCalls ¶ added in v0.32.0
func (mock *NexusMock) GetMessageCalls() []struct { Ctx cosmossdktypes.Context ID string }
GetMessageCalls gets all the calls that were made to GetMessage. Check the length with:
len(mockedNexus.GetMessageCalls())
func (*NexusMock) GetRecipient ¶
func (mock *NexusMock) GetRecipient(ctx cosmossdktypes.Context, sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress) (github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, bool)
GetRecipient calls GetRecipientFunc.
func (*NexusMock) GetRecipientCalls ¶
func (mock *NexusMock) GetRecipientCalls() []struct { Ctx cosmossdktypes.Context Sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress }
GetRecipientCalls gets all the calls that were made to GetRecipient. Check the length with:
len(mockedNexus.GetRecipientCalls())
func (*NexusMock) GetTransferFees ¶ added in v0.11.1
func (mock *NexusMock) GetTransferFees(ctx cosmossdktypes.Context) cosmossdktypes.Coins
GetTransferFees calls GetTransferFeesFunc.
func (*NexusMock) GetTransferFeesCalls ¶ added in v0.11.1
func (mock *NexusMock) GetTransferFeesCalls() []struct { Ctx cosmossdktypes.Context }
GetTransferFeesCalls gets all the calls that were made to GetTransferFees. Check the length with:
len(mockedNexus.GetTransferFeesCalls())
func (*NexusMock) GetTransfersForChainPaginated ¶ added in v0.25.0
func (mock *NexusMock) GetTransfersForChainPaginated(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, state github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferState, pageRequest *query.PageRequest) ([]github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainTransfer, *query.PageResponse, error)
GetTransfersForChainPaginated calls GetTransfersForChainPaginatedFunc.
func (*NexusMock) GetTransfersForChainPaginatedCalls ¶ added in v0.25.0
func (mock *NexusMock) GetTransfersForChainPaginatedCalls() []struct { Ctx cosmossdktypes.Context Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain State github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferState PageRequest *query.PageRequest }
GetTransfersForChainPaginatedCalls gets all the calls that were made to GetTransfersForChainPaginated. Check the length with:
len(mockedNexus.GetTransfersForChainPaginatedCalls())
func (*NexusMock) IsAssetRegistered ¶
func (mock *NexusMock) IsAssetRegistered(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, denom string) bool
IsAssetRegistered calls IsAssetRegisteredFunc.
func (*NexusMock) IsAssetRegisteredCalls ¶
func (mock *NexusMock) IsAssetRegisteredCalls() []struct { Ctx cosmossdktypes.Context Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain Denom string }
IsAssetRegisteredCalls gets all the calls that were made to IsAssetRegistered. Check the length with:
len(mockedNexus.IsAssetRegisteredCalls())
func (*NexusMock) IsChainActivated ¶ added in v0.18.0
func (mock *NexusMock) IsChainActivated(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain) bool
IsChainActivated calls IsChainActivatedFunc.
func (*NexusMock) IsChainActivatedCalls ¶ added in v0.18.0
func (mock *NexusMock) IsChainActivatedCalls() []struct { Ctx cosmossdktypes.Context Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain }
IsChainActivatedCalls gets all the calls that were made to IsChainActivated. Check the length with:
len(mockedNexus.IsChainActivatedCalls())
func (*NexusMock) LinkAddresses ¶
func (mock *NexusMock) LinkAddresses(ctx cosmossdktypes.Context, sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress, recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress) error
LinkAddresses calls LinkAddressesFunc.
func (*NexusMock) LinkAddressesCalls ¶
func (mock *NexusMock) LinkAddressesCalls() []struct { Ctx cosmossdktypes.Context Sender github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress Recipient github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress }
LinkAddressesCalls gets all the calls that were made to LinkAddresses. Check the length with:
len(mockedNexus.LinkAddressesCalls())
func (*NexusMock) RateLimitTransfer ¶ added in v0.27.0
func (mock *NexusMock) RateLimitTransfer(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName, asset cosmossdktypes.Coin, direction github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferDirection) error
RateLimitTransfer calls RateLimitTransferFunc.
func (*NexusMock) RateLimitTransferCalls ¶ added in v0.27.0
func (mock *NexusMock) RateLimitTransferCalls() []struct { Ctx cosmossdktypes.Context Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName Asset cosmossdktypes.Coin Direction github_com_axelarnetwork_axelar_core_x_nexus_exported.TransferDirection }
RateLimitTransferCalls gets all the calls that were made to RateLimitTransfer. Check the length with:
len(mockedNexus.RateLimitTransferCalls())
func (*NexusMock) RegisterAsset ¶
func (mock *NexusMock) RegisterAsset(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, asset github_com_axelarnetwork_axelar_core_x_nexus_exported.Asset, limit cosmossdktypes.Uint, window time.Duration) error
RegisterAsset calls RegisterAssetFunc.
func (*NexusMock) RegisterAssetCalls ¶
func (mock *NexusMock) RegisterAssetCalls() []struct { Ctx cosmossdktypes.Context Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain Asset github_com_axelarnetwork_axelar_core_x_nexus_exported.Asset Limit cosmossdktypes.Uint Window time.Duration }
RegisterAssetCalls gets all the calls that were made to RegisterAsset. Check the length with:
len(mockedNexus.RegisterAssetCalls())
func (*NexusMock) RouteMessage ¶ added in v0.35.0
func (mock *NexusMock) RouteMessage(ctx cosmossdktypes.Context, id string, routingCtx ...github_com_axelarnetwork_axelar_core_x_nexus_exported.RoutingContext) error
RouteMessage calls RouteMessageFunc.
func (*NexusMock) RouteMessageCalls ¶ added in v0.35.0
func (mock *NexusMock) RouteMessageCalls() []struct { Ctx cosmossdktypes.Context ID string RoutingCtx []github_com_axelarnetwork_axelar_core_x_nexus_exported.RoutingContext }
RouteMessageCalls gets all the calls that were made to RouteMessage. Check the length with:
len(mockedNexus.RouteMessageCalls())
func (*NexusMock) SetChain ¶
func (mock *NexusMock) SetChain(ctx cosmossdktypes.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain)
SetChain calls SetChainFunc.
func (*NexusMock) SetChainCalls ¶
func (mock *NexusMock) SetChainCalls() []struct { Ctx cosmossdktypes.Context Chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain }
SetChainCalls gets all the calls that were made to SetChain. Check the length with:
len(mockedNexus.SetChainCalls())
func (*NexusMock) SetMessageExecuted ¶ added in v0.32.0
func (mock *NexusMock) SetMessageExecuted(ctx cosmossdktypes.Context, id string) error
SetMessageExecuted calls SetMessageExecutedFunc.
func (*NexusMock) SetMessageExecutedCalls ¶ added in v0.32.0
func (mock *NexusMock) SetMessageExecutedCalls() []struct { Ctx cosmossdktypes.Context ID string }
SetMessageExecutedCalls gets all the calls that were made to SetMessageExecuted. Check the length with:
len(mockedNexus.SetMessageExecutedCalls())
func (*NexusMock) SetMessageFailed ¶ added in v0.32.0
func (mock *NexusMock) SetMessageFailed(ctx cosmossdktypes.Context, id string) error
SetMessageFailed calls SetMessageFailedFunc.
func (*NexusMock) SetMessageFailedCalls ¶ added in v0.32.0
func (mock *NexusMock) SetMessageFailedCalls() []struct { Ctx cosmossdktypes.Context ID string }
SetMessageFailedCalls gets all the calls that were made to SetMessageFailed. Check the length with:
len(mockedNexus.SetMessageFailedCalls())
func (*NexusMock) SetNewMessage ¶ added in v0.32.0
func (mock *NexusMock) SetNewMessage(ctx cosmossdktypes.Context, m github_com_axelarnetwork_axelar_core_x_nexus_exported.GeneralMessage) error
SetNewMessage calls SetNewMessageFunc.
func (*NexusMock) SetNewMessageCalls ¶ added in v0.32.0
func (mock *NexusMock) SetNewMessageCalls() []struct { Ctx cosmossdktypes.Context M github_com_axelarnetwork_axelar_core_x_nexus_exported.GeneralMessage }
SetNewMessageCalls gets all the calls that were made to SetNewMessage. Check the length with:
len(mockedNexus.SetNewMessageCalls())
func (*NexusMock) SubTransferFee ¶ added in v0.11.1
func (mock *NexusMock) SubTransferFee(ctx cosmossdktypes.Context, coin cosmossdktypes.Coin)
SubTransferFee calls SubTransferFeeFunc.
func (*NexusMock) SubTransferFeeCalls ¶ added in v0.11.1
func (mock *NexusMock) SubTransferFeeCalls() []struct { Ctx cosmossdktypes.Context Coin cosmossdktypes.Coin }
SubTransferFeeCalls gets all the calls that were made to SubTransferFee. Check the length with:
len(mockedNexus.SubTransferFeeCalls())
func (*NexusMock) ValidateAddress ¶ added in v0.32.0
func (mock *NexusMock) ValidateAddress(ctx cosmossdktypes.Context, address github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress) error
ValidateAddress calls ValidateAddressFunc.
func (*NexusMock) ValidateAddressCalls ¶ added in v0.32.0
func (mock *NexusMock) ValidateAddressCalls() []struct { Ctx cosmossdktypes.Context Address github_com_axelarnetwork_axelar_core_x_nexus_exported.CrossChainAddress }
ValidateAddressCalls gets all the calls that were made to ValidateAddress. Check the length with:
len(mockedNexus.ValidateAddressCalls())
type PortKeeperMock ¶ added in v0.24.0
type PortKeeperMock struct { // BindPortFunc mocks the BindPort method. BindPortFunc func(ctx cosmossdktypes.Context, portID string) *capabilitytypes.Capability // contains filtered or unexported fields }
PortKeeperMock is a mock implementation of axelarnettypes.PortKeeper.
func TestSomethingThatUsesPortKeeper(t *testing.T) { // make and configure a mocked axelarnettypes.PortKeeper mockedPortKeeper := &PortKeeperMock{ BindPortFunc: func(ctx cosmossdktypes.Context, portID string) *capabilitytypes.Capability { panic("mock out the BindPort method") }, } // use mockedPortKeeper in code that requires axelarnettypes.PortKeeper // and then make assertions. }
func (*PortKeeperMock) BindPort ¶ added in v0.24.0
func (mock *PortKeeperMock) BindPort(ctx cosmossdktypes.Context, portID string) *capabilitytypes.Capability
BindPort calls BindPortFunc.
func (*PortKeeperMock) BindPortCalls ¶ added in v0.24.0
func (mock *PortKeeperMock) BindPortCalls() []struct { Ctx cosmossdktypes.Context PortID string }
BindPortCalls gets all the calls that were made to BindPort. Check the length with:
len(mockedPortKeeper.BindPortCalls())