Documentation ¶
Index ¶
- type AccountKeeper
- type AccountKeeper_Expecter
- type AccountKeeper_GetAccount_Call
- func (_c *AccountKeeper_GetAccount_Call) Return(_a0 authtypes.AccountI) *AccountKeeper_GetAccount_Call
- func (_c *AccountKeeper_GetAccount_Call) Run(run func(ctx types.Context, addr types.AccAddress)) *AccountKeeper_GetAccount_Call
- func (_c *AccountKeeper_GetAccount_Call) RunAndReturn(run func(types.Context, types.AccAddress) authtypes.AccountI) *AccountKeeper_GetAccount_Call
- type AmmKeeper
- func (_m *AmmKeeper) CalcInAmtGivenOut(ctx types.Context, poolId uint64, oracle ammtypes.OracleKeeper, ...) (types.Coin, error)
- func (_m *AmmKeeper) CalcOutAmtGivenIn(ctx types.Context, poolId uint64, oracle ammtypes.OracleKeeper, ...) (types.Coin, error)
- func (_m *AmmKeeper) EXPECT() *AmmKeeper_Expecter
- func (_m *AmmKeeper) GetAllPool(_a0 types.Context) []ammtypes.Pool
- func (_m *AmmKeeper) GetAllPoolIdsWithDenom(_a0 types.Context, _a1 string) []uint64
- func (_m *AmmKeeper) GetPool(_a0 types.Context, _a1 uint64) (ammtypes.Pool, bool)
- func (_m *AmmKeeper) GetPoolSnapshotOrSet(ctx types.Context, pool ammtypes.Pool) ammtypes.Pool
- func (_m *AmmKeeper) IterateLiquidityPools(_a0 types.Context, _a1 func(ammtypes.Pool) bool)
- type AmmKeeper_CalcInAmtGivenOut_Call
- func (_c *AmmKeeper_CalcInAmtGivenOut_Call) Return(tokenIn types.Coin, err error) *AmmKeeper_CalcInAmtGivenOut_Call
- func (_c *AmmKeeper_CalcInAmtGivenOut_Call) Run(run func(ctx types.Context, poolId uint64, oracle ammtypes.OracleKeeper, ...)) *AmmKeeper_CalcInAmtGivenOut_Call
- func (_c *AmmKeeper_CalcInAmtGivenOut_Call) RunAndReturn(...) *AmmKeeper_CalcInAmtGivenOut_Call
- type AmmKeeper_CalcOutAmtGivenIn_Call
- func (_c *AmmKeeper_CalcOutAmtGivenIn_Call) Return(_a0 types.Coin, _a1 error) *AmmKeeper_CalcOutAmtGivenIn_Call
- func (_c *AmmKeeper_CalcOutAmtGivenIn_Call) Run(run func(ctx types.Context, poolId uint64, oracle ammtypes.OracleKeeper, ...)) *AmmKeeper_CalcOutAmtGivenIn_Call
- func (_c *AmmKeeper_CalcOutAmtGivenIn_Call) RunAndReturn(...) *AmmKeeper_CalcOutAmtGivenIn_Call
- type AmmKeeper_Expecter
- func (_e *AmmKeeper_Expecter) CalcInAmtGivenOut(ctx interface{}, poolId interface{}, oracle interface{}, snapshot interface{}, ...) *AmmKeeper_CalcInAmtGivenOut_Call
- func (_e *AmmKeeper_Expecter) CalcOutAmtGivenIn(ctx interface{}, poolId interface{}, oracle interface{}, snapshot interface{}, ...) *AmmKeeper_CalcOutAmtGivenIn_Call
- func (_e *AmmKeeper_Expecter) GetAllPool(_a0 interface{}) *AmmKeeper_GetAllPool_Call
- func (_e *AmmKeeper_Expecter) GetAllPoolIdsWithDenom(_a0 interface{}, _a1 interface{}) *AmmKeeper_GetAllPoolIdsWithDenom_Call
- func (_e *AmmKeeper_Expecter) GetPool(_a0 interface{}, _a1 interface{}) *AmmKeeper_GetPool_Call
- func (_e *AmmKeeper_Expecter) GetPoolSnapshotOrSet(ctx interface{}, pool interface{}) *AmmKeeper_GetPoolSnapshotOrSet_Call
- func (_e *AmmKeeper_Expecter) IterateLiquidityPools(_a0 interface{}, _a1 interface{}) *AmmKeeper_IterateLiquidityPools_Call
- type AmmKeeper_GetAllPoolIdsWithDenom_Call
- func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) Return(_a0 []uint64) *AmmKeeper_GetAllPoolIdsWithDenom_Call
- func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) Run(run func(_a0 types.Context, _a1 string)) *AmmKeeper_GetAllPoolIdsWithDenom_Call
- func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) RunAndReturn(run func(types.Context, string) []uint64) *AmmKeeper_GetAllPoolIdsWithDenom_Call
- type AmmKeeper_GetAllPool_Call
- func (_c *AmmKeeper_GetAllPool_Call) Return(_a0 []ammtypes.Pool) *AmmKeeper_GetAllPool_Call
- func (_c *AmmKeeper_GetAllPool_Call) Run(run func(_a0 types.Context)) *AmmKeeper_GetAllPool_Call
- func (_c *AmmKeeper_GetAllPool_Call) RunAndReturn(run func(types.Context) []ammtypes.Pool) *AmmKeeper_GetAllPool_Call
- type AmmKeeper_GetPoolSnapshotOrSet_Call
- func (_c *AmmKeeper_GetPoolSnapshotOrSet_Call) Return(val ammtypes.Pool) *AmmKeeper_GetPoolSnapshotOrSet_Call
- func (_c *AmmKeeper_GetPoolSnapshotOrSet_Call) Run(run func(ctx types.Context, pool ammtypes.Pool)) *AmmKeeper_GetPoolSnapshotOrSet_Call
- func (_c *AmmKeeper_GetPoolSnapshotOrSet_Call) RunAndReturn(run func(types.Context, ammtypes.Pool) ammtypes.Pool) *AmmKeeper_GetPoolSnapshotOrSet_Call
- type AmmKeeper_GetPool_Call
- func (_c *AmmKeeper_GetPool_Call) Return(_a0 ammtypes.Pool, _a1 bool) *AmmKeeper_GetPool_Call
- func (_c *AmmKeeper_GetPool_Call) Run(run func(_a0 types.Context, _a1 uint64)) *AmmKeeper_GetPool_Call
- func (_c *AmmKeeper_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (ammtypes.Pool, bool)) *AmmKeeper_GetPool_Call
- type AmmKeeper_IterateLiquidityPools_Call
- func (_c *AmmKeeper_IterateLiquidityPools_Call) Return() *AmmKeeper_IterateLiquidityPools_Call
- func (_c *AmmKeeper_IterateLiquidityPools_Call) Run(run func(_a0 types.Context, _a1 func(ammtypes.Pool) bool)) *AmmKeeper_IterateLiquidityPools_Call
- func (_c *AmmKeeper_IterateLiquidityPools_Call) RunAndReturn(run func(types.Context, func(ammtypes.Pool) bool)) *AmmKeeper_IterateLiquidityPools_Call
- type AssetProfileKeeper
- type AssetProfileKeeper_Expecter
- type AssetProfileKeeper_GetEntry_Call
- func (_c *AssetProfileKeeper_GetEntry_Call) Return(val assetprofiletypes.Entry, found bool) *AssetProfileKeeper_GetEntry_Call
- func (_c *AssetProfileKeeper_GetEntry_Call) Run(run func(ctx types.Context, baseDenom string)) *AssetProfileKeeper_GetEntry_Call
- func (_c *AssetProfileKeeper_GetEntry_Call) RunAndReturn(run func(types.Context, string) (assetprofiletypes.Entry, bool)) *AssetProfileKeeper_GetEntry_Call
- type AuthorizationChecker
- type AuthorizationChecker_CheckIfWhitelisted_Call
- func (_c *AuthorizationChecker_CheckIfWhitelisted_Call) Return(_a0 bool) *AuthorizationChecker_CheckIfWhitelisted_Call
- func (_c *AuthorizationChecker_CheckIfWhitelisted_Call) Run(run func(ctx types.Context, creator string)) *AuthorizationChecker_CheckIfWhitelisted_Call
- func (_c *AuthorizationChecker_CheckIfWhitelisted_Call) RunAndReturn(run func(types.Context, string) bool) *AuthorizationChecker_CheckIfWhitelisted_Call
- type AuthorizationChecker_Expecter
- type AuthorizationChecker_IsWhitelistingEnabled_Call
- func (_c *AuthorizationChecker_IsWhitelistingEnabled_Call) Return(_a0 bool) *AuthorizationChecker_IsWhitelistingEnabled_Call
- func (_c *AuthorizationChecker_IsWhitelistingEnabled_Call) Run(run func(ctx types.Context)) *AuthorizationChecker_IsWhitelistingEnabled_Call
- func (_c *AuthorizationChecker_IsWhitelistingEnabled_Call) RunAndReturn(run func(types.Context) bool) *AuthorizationChecker_IsWhitelistingEnabled_Call
- type BankKeeper
- func (_m *BankKeeper) BlockedAddr(addr types.AccAddress) bool
- func (_m *BankKeeper) EXPECT() *BankKeeper_Expecter
- func (_m *BankKeeper) GetAllBalances(ctx types.Context, addr types.AccAddress) types.Coins
- func (_m *BankKeeper) GetBalance(ctx types.Context, addr types.AccAddress, denom string) types.Coin
- func (_m *BankKeeper) HasBalance(ctx types.Context, addr types.AccAddress, amt types.Coin) bool
- func (_m *BankKeeper) SendCoins(ctx types.Context, fromAddr types.AccAddress, toAddr types.AccAddress, ...) error
- func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx types.Context, senderAddr types.AccAddress, recipientModule string, ...) error
- func (_m *BankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, ...) error
- func (_m *BankKeeper) SendCoinsFromModuleToModule(ctx types.Context, senderModule string, recipientModule string, ...) error
- func (_m *BankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins
- type BankKeeper_BlockedAddr_Call
- func (_c *BankKeeper_BlockedAddr_Call) Return(_a0 bool) *BankKeeper_BlockedAddr_Call
- func (_c *BankKeeper_BlockedAddr_Call) Run(run func(addr types.AccAddress)) *BankKeeper_BlockedAddr_Call
- func (_c *BankKeeper_BlockedAddr_Call) RunAndReturn(run func(types.AccAddress) bool) *BankKeeper_BlockedAddr_Call
- type BankKeeper_Expecter
- func (_e *BankKeeper_Expecter) BlockedAddr(addr interface{}) *BankKeeper_BlockedAddr_Call
- func (_e *BankKeeper_Expecter) GetAllBalances(ctx interface{}, addr interface{}) *BankKeeper_GetAllBalances_Call
- func (_e *BankKeeper_Expecter) GetBalance(ctx interface{}, addr interface{}, denom interface{}) *BankKeeper_GetBalance_Call
- func (_e *BankKeeper_Expecter) HasBalance(ctx interface{}, addr interface{}, amt interface{}) *BankKeeper_HasBalance_Call
- func (_e *BankKeeper_Expecter) SendCoins(ctx interface{}, fromAddr interface{}, toAddr interface{}, amt interface{}) *BankKeeper_SendCoins_Call
- func (_e *BankKeeper_Expecter) SendCoinsFromAccountToModule(ctx interface{}, senderAddr interface{}, recipientModule interface{}, ...) *BankKeeper_SendCoinsFromAccountToModule_Call
- func (_e *BankKeeper_Expecter) SendCoinsFromModuleToAccount(ctx interface{}, senderModule interface{}, recipientAddr interface{}, ...) *BankKeeper_SendCoinsFromModuleToAccount_Call
- func (_e *BankKeeper_Expecter) SendCoinsFromModuleToModule(ctx interface{}, senderModule interface{}, recipientModule interface{}, ...) *BankKeeper_SendCoinsFromModuleToModule_Call
- func (_e *BankKeeper_Expecter) SpendableCoins(ctx interface{}, addr interface{}) *BankKeeper_SpendableCoins_Call
- type BankKeeper_GetAllBalances_Call
- func (_c *BankKeeper_GetAllBalances_Call) Return(_a0 types.Coins) *BankKeeper_GetAllBalances_Call
- func (_c *BankKeeper_GetAllBalances_Call) Run(run func(ctx types.Context, addr types.AccAddress)) *BankKeeper_GetAllBalances_Call
- func (_c *BankKeeper_GetAllBalances_Call) RunAndReturn(run func(types.Context, types.AccAddress) types.Coins) *BankKeeper_GetAllBalances_Call
- type BankKeeper_GetBalance_Call
- func (_c *BankKeeper_GetBalance_Call) Return(_a0 types.Coin) *BankKeeper_GetBalance_Call
- func (_c *BankKeeper_GetBalance_Call) Run(run func(ctx types.Context, addr types.AccAddress, denom string)) *BankKeeper_GetBalance_Call
- func (_c *BankKeeper_GetBalance_Call) RunAndReturn(run func(types.Context, types.AccAddress, string) types.Coin) *BankKeeper_GetBalance_Call
- type BankKeeper_HasBalance_Call
- func (_c *BankKeeper_HasBalance_Call) Return(_a0 bool) *BankKeeper_HasBalance_Call
- func (_c *BankKeeper_HasBalance_Call) Run(run func(ctx types.Context, addr types.AccAddress, amt types.Coin)) *BankKeeper_HasBalance_Call
- func (_c *BankKeeper_HasBalance_Call) RunAndReturn(run func(types.Context, types.AccAddress, types.Coin) bool) *BankKeeper_HasBalance_Call
- type BankKeeper_SendCoinsFromAccountToModule_Call
- func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) Return(_a0 error) *BankKeeper_SendCoinsFromAccountToModule_Call
- func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) Run(...) *BankKeeper_SendCoinsFromAccountToModule_Call
- func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) RunAndReturn(run func(types.Context, types.AccAddress, string, types.Coins) error) *BankKeeper_SendCoinsFromAccountToModule_Call
- type BankKeeper_SendCoinsFromModuleToAccount_Call
- func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) Return(_a0 error) *BankKeeper_SendCoinsFromModuleToAccount_Call
- func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) Run(...) *BankKeeper_SendCoinsFromModuleToAccount_Call
- func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) RunAndReturn(run func(types.Context, string, types.AccAddress, types.Coins) error) *BankKeeper_SendCoinsFromModuleToAccount_Call
- type BankKeeper_SendCoinsFromModuleToModule_Call
- func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) Return(_a0 error) *BankKeeper_SendCoinsFromModuleToModule_Call
- func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) Run(run func(ctx types.Context, senderModule string, recipientModule string, ...)) *BankKeeper_SendCoinsFromModuleToModule_Call
- func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn(run func(types.Context, string, string, types.Coins) error) *BankKeeper_SendCoinsFromModuleToModule_Call
- type BankKeeper_SendCoins_Call
- func (_c *BankKeeper_SendCoins_Call) Return(_a0 error) *BankKeeper_SendCoins_Call
- func (_c *BankKeeper_SendCoins_Call) Run(...) *BankKeeper_SendCoins_Call
- func (_c *BankKeeper_SendCoins_Call) RunAndReturn(run func(types.Context, types.AccAddress, types.AccAddress, types.Coins) error) *BankKeeper_SendCoins_Call
- type BankKeeper_SpendableCoins_Call
- func (_c *BankKeeper_SpendableCoins_Call) Return(_a0 types.Coins) *BankKeeper_SpendableCoins_Call
- func (_c *BankKeeper_SpendableCoins_Call) Run(run func(ctx types.Context, addr types.AccAddress)) *BankKeeper_SpendableCoins_Call
- func (_c *BankKeeper_SpendableCoins_Call) RunAndReturn(run func(types.Context, types.AccAddress) types.Coins) *BankKeeper_SpendableCoins_Call
- type CloseLongChecker
- func (_m *CloseLongChecker) EXPECT() *CloseLongChecker_Expecter
- func (_m *CloseLongChecker) EstimateAndRepay(ctx types.Context, mtp margintypes.MTP, pool margintypes.Pool, ...) (math.Int, error)
- func (_m *CloseLongChecker) GetAmmPool(ctx types.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error)
- func (_m *CloseLongChecker) GetMTP(ctx types.Context, mtpAddress string, id uint64) (margintypes.MTP, error)
- func (_m *CloseLongChecker) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
- func (_m *CloseLongChecker) HandleBorrowInterest(ctx types.Context, mtp *margintypes.MTP, pool *margintypes.Pool, ...) error
- func (_m *CloseLongChecker) TakeOutCustody(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool, ...) error
- type CloseLongChecker_EstimateAndRepay_Call
- func (_c *CloseLongChecker_EstimateAndRepay_Call) Return(_a0 math.Int, _a1 error) *CloseLongChecker_EstimateAndRepay_Call
- func (_c *CloseLongChecker_EstimateAndRepay_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool margintypes.Pool, ...)) *CloseLongChecker_EstimateAndRepay_Call
- func (_c *CloseLongChecker_EstimateAndRepay_Call) RunAndReturn(...) *CloseLongChecker_EstimateAndRepay_Call
- type CloseLongChecker_Expecter
- func (_e *CloseLongChecker_Expecter) EstimateAndRepay(ctx interface{}, mtp interface{}, pool interface{}, ammPool interface{}, ...) *CloseLongChecker_EstimateAndRepay_Call
- func (_e *CloseLongChecker_Expecter) GetAmmPool(ctx interface{}, poolId interface{}, tradingAsset interface{}) *CloseLongChecker_GetAmmPool_Call
- func (_e *CloseLongChecker_Expecter) GetMTP(ctx interface{}, mtpAddress interface{}, id interface{}) *CloseLongChecker_GetMTP_Call
- func (_e *CloseLongChecker_Expecter) GetPool(ctx interface{}, poolId interface{}) *CloseLongChecker_GetPool_Call
- func (_e *CloseLongChecker_Expecter) HandleBorrowInterest(ctx interface{}, mtp interface{}, pool interface{}, ammPool interface{}, ...) *CloseLongChecker_HandleBorrowInterest_Call
- func (_e *CloseLongChecker_Expecter) TakeOutCustody(ctx interface{}, mtp interface{}, pool interface{}, custodyAsset interface{}) *CloseLongChecker_TakeOutCustody_Call
- type CloseLongChecker_GetAmmPool_Call
- func (_c *CloseLongChecker_GetAmmPool_Call) Return(_a0 ammtypes.Pool, _a1 error) *CloseLongChecker_GetAmmPool_Call
- func (_c *CloseLongChecker_GetAmmPool_Call) Run(run func(ctx types.Context, poolId uint64, tradingAsset string)) *CloseLongChecker_GetAmmPool_Call
- func (_c *CloseLongChecker_GetAmmPool_Call) RunAndReturn(run func(types.Context, uint64, string) (ammtypes.Pool, error)) *CloseLongChecker_GetAmmPool_Call
- type CloseLongChecker_GetMTP_Call
- func (_c *CloseLongChecker_GetMTP_Call) Return(_a0 margintypes.MTP, _a1 error) *CloseLongChecker_GetMTP_Call
- func (_c *CloseLongChecker_GetMTP_Call) Run(run func(ctx types.Context, mtpAddress string, id uint64)) *CloseLongChecker_GetMTP_Call
- func (_c *CloseLongChecker_GetMTP_Call) RunAndReturn(run func(types.Context, string, uint64) (margintypes.MTP, error)) *CloseLongChecker_GetMTP_Call
- type CloseLongChecker_GetPool_Call
- func (_c *CloseLongChecker_GetPool_Call) Return(val margintypes.Pool, found bool) *CloseLongChecker_GetPool_Call
- func (_c *CloseLongChecker_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *CloseLongChecker_GetPool_Call
- func (_c *CloseLongChecker_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *CloseLongChecker_GetPool_Call
- type CloseLongChecker_HandleBorrowInterest_Call
- func (_c *CloseLongChecker_HandleBorrowInterest_Call) Return(_a0 error) *CloseLongChecker_HandleBorrowInterest_Call
- func (_c *CloseLongChecker_HandleBorrowInterest_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP, pool *margintypes.Pool, ...)) *CloseLongChecker_HandleBorrowInterest_Call
- func (_c *CloseLongChecker_HandleBorrowInterest_Call) RunAndReturn(...) *CloseLongChecker_HandleBorrowInterest_Call
- type CloseLongChecker_TakeOutCustody_Call
- func (_c *CloseLongChecker_TakeOutCustody_Call) Return(_a0 error) *CloseLongChecker_TakeOutCustody_Call
- func (_c *CloseLongChecker_TakeOutCustody_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool, ...)) *CloseLongChecker_TakeOutCustody_Call
- func (_c *CloseLongChecker_TakeOutCustody_Call) RunAndReturn(run func(types.Context, margintypes.MTP, *margintypes.Pool, string) error) *CloseLongChecker_TakeOutCustody_Call
- type CloseShortChecker
- func (_m *CloseShortChecker) EXPECT() *CloseShortChecker_Expecter
- func (_m *CloseShortChecker) EstimateAndRepay(ctx types.Context, mtp margintypes.MTP, pool margintypes.Pool, ...) (math.Int, error)
- func (_m *CloseShortChecker) GetAmmPool(ctx types.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error)
- func (_m *CloseShortChecker) GetMTP(ctx types.Context, mtpAddress string, id uint64) (margintypes.MTP, error)
- func (_m *CloseShortChecker) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
- func (_m *CloseShortChecker) HandleBorrowInterest(ctx types.Context, mtp *margintypes.MTP, pool *margintypes.Pool, ...) error
- func (_m *CloseShortChecker) TakeOutCustody(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool, ...) error
- type CloseShortChecker_EstimateAndRepay_Call
- func (_c *CloseShortChecker_EstimateAndRepay_Call) Return(_a0 math.Int, _a1 error) *CloseShortChecker_EstimateAndRepay_Call
- func (_c *CloseShortChecker_EstimateAndRepay_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool margintypes.Pool, ...)) *CloseShortChecker_EstimateAndRepay_Call
- func (_c *CloseShortChecker_EstimateAndRepay_Call) RunAndReturn(...) *CloseShortChecker_EstimateAndRepay_Call
- type CloseShortChecker_Expecter
- func (_e *CloseShortChecker_Expecter) EstimateAndRepay(ctx interface{}, mtp interface{}, pool interface{}, ammPool interface{}, ...) *CloseShortChecker_EstimateAndRepay_Call
- func (_e *CloseShortChecker_Expecter) GetAmmPool(ctx interface{}, poolId interface{}, tradingAsset interface{}) *CloseShortChecker_GetAmmPool_Call
- func (_e *CloseShortChecker_Expecter) GetMTP(ctx interface{}, mtpAddress interface{}, id interface{}) *CloseShortChecker_GetMTP_Call
- func (_e *CloseShortChecker_Expecter) GetPool(ctx interface{}, poolId interface{}) *CloseShortChecker_GetPool_Call
- func (_e *CloseShortChecker_Expecter) HandleBorrowInterest(ctx interface{}, mtp interface{}, pool interface{}, ammPool interface{}, ...) *CloseShortChecker_HandleBorrowInterest_Call
- func (_e *CloseShortChecker_Expecter) TakeOutCustody(ctx interface{}, mtp interface{}, pool interface{}, custodyAsset interface{}) *CloseShortChecker_TakeOutCustody_Call
- type CloseShortChecker_GetAmmPool_Call
- func (_c *CloseShortChecker_GetAmmPool_Call) Return(_a0 ammtypes.Pool, _a1 error) *CloseShortChecker_GetAmmPool_Call
- func (_c *CloseShortChecker_GetAmmPool_Call) Run(run func(ctx types.Context, poolId uint64, tradingAsset string)) *CloseShortChecker_GetAmmPool_Call
- func (_c *CloseShortChecker_GetAmmPool_Call) RunAndReturn(run func(types.Context, uint64, string) (ammtypes.Pool, error)) *CloseShortChecker_GetAmmPool_Call
- type CloseShortChecker_GetMTP_Call
- func (_c *CloseShortChecker_GetMTP_Call) Return(_a0 margintypes.MTP, _a1 error) *CloseShortChecker_GetMTP_Call
- func (_c *CloseShortChecker_GetMTP_Call) Run(run func(ctx types.Context, mtpAddress string, id uint64)) *CloseShortChecker_GetMTP_Call
- func (_c *CloseShortChecker_GetMTP_Call) RunAndReturn(run func(types.Context, string, uint64) (margintypes.MTP, error)) *CloseShortChecker_GetMTP_Call
- type CloseShortChecker_GetPool_Call
- func (_c *CloseShortChecker_GetPool_Call) Return(val margintypes.Pool, found bool) *CloseShortChecker_GetPool_Call
- func (_c *CloseShortChecker_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *CloseShortChecker_GetPool_Call
- func (_c *CloseShortChecker_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *CloseShortChecker_GetPool_Call
- type CloseShortChecker_HandleBorrowInterest_Call
- func (_c *CloseShortChecker_HandleBorrowInterest_Call) Return(_a0 error) *CloseShortChecker_HandleBorrowInterest_Call
- func (_c *CloseShortChecker_HandleBorrowInterest_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP, pool *margintypes.Pool, ...)) *CloseShortChecker_HandleBorrowInterest_Call
- func (_c *CloseShortChecker_HandleBorrowInterest_Call) RunAndReturn(...) *CloseShortChecker_HandleBorrowInterest_Call
- type CloseShortChecker_TakeOutCustody_Call
- func (_c *CloseShortChecker_TakeOutCustody_Call) Return(_a0 error) *CloseShortChecker_TakeOutCustody_Call
- func (_c *CloseShortChecker_TakeOutCustody_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool, ...)) *CloseShortChecker_TakeOutCustody_Call
- func (_c *CloseShortChecker_TakeOutCustody_Call) RunAndReturn(run func(types.Context, margintypes.MTP, *margintypes.Pool, string) error) *CloseShortChecker_TakeOutCustody_Call
- type OpenChecker
- func (_m *OpenChecker) CheckMaxOpenPositions(ctx types.Context) error
- func (_m *OpenChecker) CheckPoolHealth(ctx types.Context, poolId uint64) error
- func (_m *OpenChecker) CheckSameAssetPosition(ctx types.Context, msg *margintypes.MsgOpen) *margintypes.MTP
- func (_m *OpenChecker) CheckUserAuthorization(ctx types.Context, msg *margintypes.MsgOpen) error
- func (_m *OpenChecker) EXPECT() *OpenChecker_Expecter
- func (_m *OpenChecker) EmitOpenEvent(ctx types.Context, mtp *margintypes.MTP)
- func (_m *OpenChecker) GetMaxOpenPositions(ctx types.Context) uint64
- func (_m *OpenChecker) GetOpenMTPCount(ctx types.Context) uint64
- func (_m *OpenChecker) OpenLong(ctx types.Context, poolId uint64, msg *margintypes.MsgOpen, ...) (*margintypes.MTP, error)
- func (_m *OpenChecker) OpenShort(ctx types.Context, poolId uint64, msg *margintypes.MsgOpen, ...) (*margintypes.MTP, error)
- func (_m *OpenChecker) PreparePools(ctx types.Context, tradingAsset string) (uint64, ammtypes.Pool, margintypes.Pool, error)
- func (_m *OpenChecker) SetMTP(ctx types.Context, mtp *margintypes.MTP) error
- type OpenChecker_CheckMaxOpenPositions_Call
- func (_c *OpenChecker_CheckMaxOpenPositions_Call) Return(_a0 error) *OpenChecker_CheckMaxOpenPositions_Call
- func (_c *OpenChecker_CheckMaxOpenPositions_Call) Run(run func(ctx types.Context)) *OpenChecker_CheckMaxOpenPositions_Call
- func (_c *OpenChecker_CheckMaxOpenPositions_Call) RunAndReturn(run func(types.Context) error) *OpenChecker_CheckMaxOpenPositions_Call
- type OpenChecker_CheckPoolHealth_Call
- func (_c *OpenChecker_CheckPoolHealth_Call) Return(_a0 error) *OpenChecker_CheckPoolHealth_Call
- func (_c *OpenChecker_CheckPoolHealth_Call) Run(run func(ctx types.Context, poolId uint64)) *OpenChecker_CheckPoolHealth_Call
- func (_c *OpenChecker_CheckPoolHealth_Call) RunAndReturn(run func(types.Context, uint64) error) *OpenChecker_CheckPoolHealth_Call
- type OpenChecker_CheckSameAssetPosition_Call
- func (_c *OpenChecker_CheckSameAssetPosition_Call) Return(_a0 *margintypes.MTP) *OpenChecker_CheckSameAssetPosition_Call
- func (_c *OpenChecker_CheckSameAssetPosition_Call) Run(run func(ctx types.Context, msg *margintypes.MsgOpen)) *OpenChecker_CheckSameAssetPosition_Call
- func (_c *OpenChecker_CheckSameAssetPosition_Call) RunAndReturn(run func(types.Context, *margintypes.MsgOpen) *margintypes.MTP) *OpenChecker_CheckSameAssetPosition_Call
- type OpenChecker_CheckUserAuthorization_Call
- func (_c *OpenChecker_CheckUserAuthorization_Call) Return(_a0 error) *OpenChecker_CheckUserAuthorization_Call
- func (_c *OpenChecker_CheckUserAuthorization_Call) Run(run func(ctx types.Context, msg *margintypes.MsgOpen)) *OpenChecker_CheckUserAuthorization_Call
- func (_c *OpenChecker_CheckUserAuthorization_Call) RunAndReturn(run func(types.Context, *margintypes.MsgOpen) error) *OpenChecker_CheckUserAuthorization_Call
- type OpenChecker_EmitOpenEvent_Call
- func (_c *OpenChecker_EmitOpenEvent_Call) Return() *OpenChecker_EmitOpenEvent_Call
- func (_c *OpenChecker_EmitOpenEvent_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP)) *OpenChecker_EmitOpenEvent_Call
- func (_c *OpenChecker_EmitOpenEvent_Call) RunAndReturn(run func(types.Context, *margintypes.MTP)) *OpenChecker_EmitOpenEvent_Call
- type OpenChecker_Expecter
- func (_e *OpenChecker_Expecter) CheckMaxOpenPositions(ctx interface{}) *OpenChecker_CheckMaxOpenPositions_Call
- func (_e *OpenChecker_Expecter) CheckPoolHealth(ctx interface{}, poolId interface{}) *OpenChecker_CheckPoolHealth_Call
- func (_e *OpenChecker_Expecter) CheckSameAssetPosition(ctx interface{}, msg interface{}) *OpenChecker_CheckSameAssetPosition_Call
- func (_e *OpenChecker_Expecter) CheckUserAuthorization(ctx interface{}, msg interface{}) *OpenChecker_CheckUserAuthorization_Call
- func (_e *OpenChecker_Expecter) EmitOpenEvent(ctx interface{}, mtp interface{}) *OpenChecker_EmitOpenEvent_Call
- func (_e *OpenChecker_Expecter) GetMaxOpenPositions(ctx interface{}) *OpenChecker_GetMaxOpenPositions_Call
- func (_e *OpenChecker_Expecter) GetOpenMTPCount(ctx interface{}) *OpenChecker_GetOpenMTPCount_Call
- func (_e *OpenChecker_Expecter) OpenLong(ctx interface{}, poolId interface{}, msg interface{}, baseCurrency interface{}) *OpenChecker_OpenLong_Call
- func (_e *OpenChecker_Expecter) OpenShort(ctx interface{}, poolId interface{}, msg interface{}, baseCurrency interface{}) *OpenChecker_OpenShort_Call
- func (_e *OpenChecker_Expecter) PreparePools(ctx interface{}, tradingAsset interface{}) *OpenChecker_PreparePools_Call
- func (_e *OpenChecker_Expecter) SetMTP(ctx interface{}, mtp interface{}) *OpenChecker_SetMTP_Call
- type OpenChecker_GetMaxOpenPositions_Call
- func (_c *OpenChecker_GetMaxOpenPositions_Call) Return(_a0 uint64) *OpenChecker_GetMaxOpenPositions_Call
- func (_c *OpenChecker_GetMaxOpenPositions_Call) Run(run func(ctx types.Context)) *OpenChecker_GetMaxOpenPositions_Call
- func (_c *OpenChecker_GetMaxOpenPositions_Call) RunAndReturn(run func(types.Context) uint64) *OpenChecker_GetMaxOpenPositions_Call
- type OpenChecker_GetOpenMTPCount_Call
- func (_c *OpenChecker_GetOpenMTPCount_Call) Return(_a0 uint64) *OpenChecker_GetOpenMTPCount_Call
- func (_c *OpenChecker_GetOpenMTPCount_Call) Run(run func(ctx types.Context)) *OpenChecker_GetOpenMTPCount_Call
- func (_c *OpenChecker_GetOpenMTPCount_Call) RunAndReturn(run func(types.Context) uint64) *OpenChecker_GetOpenMTPCount_Call
- type OpenChecker_OpenLong_Call
- func (_c *OpenChecker_OpenLong_Call) Return(_a0 *margintypes.MTP, _a1 error) *OpenChecker_OpenLong_Call
- func (_c *OpenChecker_OpenLong_Call) Run(run func(ctx types.Context, poolId uint64, msg *margintypes.MsgOpen, ...)) *OpenChecker_OpenLong_Call
- func (_c *OpenChecker_OpenLong_Call) RunAndReturn(...) *OpenChecker_OpenLong_Call
- type OpenChecker_OpenShort_Call
- func (_c *OpenChecker_OpenShort_Call) Return(_a0 *margintypes.MTP, _a1 error) *OpenChecker_OpenShort_Call
- func (_c *OpenChecker_OpenShort_Call) Run(run func(ctx types.Context, poolId uint64, msg *margintypes.MsgOpen, ...)) *OpenChecker_OpenShort_Call
- func (_c *OpenChecker_OpenShort_Call) RunAndReturn(...) *OpenChecker_OpenShort_Call
- type OpenChecker_PreparePools_Call
- func (_c *OpenChecker_PreparePools_Call) Return(poolId uint64, ammPool ammtypes.Pool, pool margintypes.Pool, err error) *OpenChecker_PreparePools_Call
- func (_c *OpenChecker_PreparePools_Call) Run(run func(ctx types.Context, tradingAsset string)) *OpenChecker_PreparePools_Call
- func (_c *OpenChecker_PreparePools_Call) RunAndReturn(...) *OpenChecker_PreparePools_Call
- type OpenChecker_SetMTP_Call
- func (_c *OpenChecker_SetMTP_Call) Return(_a0 error) *OpenChecker_SetMTP_Call
- func (_c *OpenChecker_SetMTP_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP)) *OpenChecker_SetMTP_Call
- func (_c *OpenChecker_SetMTP_Call) RunAndReturn(run func(types.Context, *margintypes.MTP) error) *OpenChecker_SetMTP_Call
- type OpenLongChecker
- func (_m *OpenLongChecker) Borrow(ctx types.Context, collateralAsset string, custodyAsset string, ...) error
- func (_m *OpenLongChecker) CalcMTPConsolidateCollateral(ctx types.Context, mtp *margintypes.MTP, baseCurrency string) error
- func (_m *OpenLongChecker) CheckMinLiabilities(ctx types.Context, collateralTokenAmt types.Coin, eta math.LegacyDec, ...) error
- func (_m *OpenLongChecker) CheckSameAssetPosition(ctx types.Context, msg *margintypes.MsgOpen) *margintypes.MTP
- func (_m *OpenLongChecker) EXPECT() *OpenLongChecker_Expecter
- func (_m *OpenLongChecker) EstimateSwap(ctx types.Context, leveragedAmtTokenIn types.Coin, borrowAsset string, ...) (math.Int, error)
- func (_m *OpenLongChecker) EstimateSwapGivenOut(ctx types.Context, tokenOutAmount types.Coin, tokenInDenom string, ...) (math.Int, error)
- func (_m *OpenLongChecker) GetAmmPool(ctx types.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error)
- func (_m *OpenLongChecker) GetMaxLeverageParam(ctx types.Context) math.LegacyDec
- func (_m *OpenLongChecker) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
- func (_m *OpenLongChecker) GetSafetyFactor(ctx types.Context) math.LegacyDec
- func (_m *OpenLongChecker) IsPoolEnabled(ctx types.Context, poolId uint64) bool
- func (_m *OpenLongChecker) SetMTP(ctx types.Context, mtp *margintypes.MTP) error
- func (_m *OpenLongChecker) SetPool(ctx types.Context, pool margintypes.Pool)
- func (_m *OpenLongChecker) TakeInCustody(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool) error
- func (_m *OpenLongChecker) UpdateMTPHealth(ctx types.Context, mtp margintypes.MTP, ammPool ammtypes.Pool, ...) (math.LegacyDec, error)
- func (_m *OpenLongChecker) UpdatePoolHealth(ctx types.Context, pool *margintypes.Pool) error
- type OpenLongChecker_Borrow_Call
- func (_c *OpenLongChecker_Borrow_Call) Return(_a0 error) *OpenLongChecker_Borrow_Call
- func (_c *OpenLongChecker_Borrow_Call) Run(run func(ctx types.Context, collateralAsset string, custodyAsset string, ...)) *OpenLongChecker_Borrow_Call
- func (_c *OpenLongChecker_Borrow_Call) RunAndReturn(...) *OpenLongChecker_Borrow_Call
- type OpenLongChecker_CalcMTPConsolidateCollateral_Call
- func (_c *OpenLongChecker_CalcMTPConsolidateCollateral_Call) Return(_a0 error) *OpenLongChecker_CalcMTPConsolidateCollateral_Call
- func (_c *OpenLongChecker_CalcMTPConsolidateCollateral_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP, baseCurrency string)) *OpenLongChecker_CalcMTPConsolidateCollateral_Call
- func (_c *OpenLongChecker_CalcMTPConsolidateCollateral_Call) RunAndReturn(run func(types.Context, *margintypes.MTP, string) error) *OpenLongChecker_CalcMTPConsolidateCollateral_Call
- type OpenLongChecker_CheckMinLiabilities_Call
- func (_c *OpenLongChecker_CheckMinLiabilities_Call) Return(_a0 error) *OpenLongChecker_CheckMinLiabilities_Call
- func (_c *OpenLongChecker_CheckMinLiabilities_Call) Run(...) *OpenLongChecker_CheckMinLiabilities_Call
- func (_c *OpenLongChecker_CheckMinLiabilities_Call) RunAndReturn(...) *OpenLongChecker_CheckMinLiabilities_Call
- type OpenLongChecker_CheckSameAssetPosition_Call
- func (_c *OpenLongChecker_CheckSameAssetPosition_Call) Return(_a0 *margintypes.MTP) *OpenLongChecker_CheckSameAssetPosition_Call
- func (_c *OpenLongChecker_CheckSameAssetPosition_Call) Run(run func(ctx types.Context, msg *margintypes.MsgOpen)) *OpenLongChecker_CheckSameAssetPosition_Call
- func (_c *OpenLongChecker_CheckSameAssetPosition_Call) RunAndReturn(run func(types.Context, *margintypes.MsgOpen) *margintypes.MTP) *OpenLongChecker_CheckSameAssetPosition_Call
- type OpenLongChecker_EstimateSwapGivenOut_Call
- func (_c *OpenLongChecker_EstimateSwapGivenOut_Call) Return(_a0 math.Int, _a1 error) *OpenLongChecker_EstimateSwapGivenOut_Call
- func (_c *OpenLongChecker_EstimateSwapGivenOut_Call) Run(...) *OpenLongChecker_EstimateSwapGivenOut_Call
- func (_c *OpenLongChecker_EstimateSwapGivenOut_Call) RunAndReturn(run func(types.Context, types.Coin, string, ammtypes.Pool) (math.Int, error)) *OpenLongChecker_EstimateSwapGivenOut_Call
- type OpenLongChecker_EstimateSwap_Call
- func (_c *OpenLongChecker_EstimateSwap_Call) Return(_a0 math.Int, _a1 error) *OpenLongChecker_EstimateSwap_Call
- func (_c *OpenLongChecker_EstimateSwap_Call) Run(...) *OpenLongChecker_EstimateSwap_Call
- func (_c *OpenLongChecker_EstimateSwap_Call) RunAndReturn(run func(types.Context, types.Coin, string, ammtypes.Pool) (math.Int, error)) *OpenLongChecker_EstimateSwap_Call
- type OpenLongChecker_Expecter
- func (_e *OpenLongChecker_Expecter) Borrow(ctx interface{}, collateralAsset interface{}, custodyAsset interface{}, ...) *OpenLongChecker_Borrow_Call
- func (_e *OpenLongChecker_Expecter) CalcMTPConsolidateCollateral(ctx interface{}, mtp interface{}, baseCurrency interface{}) *OpenLongChecker_CalcMTPConsolidateCollateral_Call
- func (_e *OpenLongChecker_Expecter) CheckMinLiabilities(ctx interface{}, collateralTokenAmt interface{}, eta interface{}, ...) *OpenLongChecker_CheckMinLiabilities_Call
- func (_e *OpenLongChecker_Expecter) CheckSameAssetPosition(ctx interface{}, msg interface{}) *OpenLongChecker_CheckSameAssetPosition_Call
- func (_e *OpenLongChecker_Expecter) EstimateSwap(ctx interface{}, leveragedAmtTokenIn interface{}, borrowAsset interface{}, ...) *OpenLongChecker_EstimateSwap_Call
- func (_e *OpenLongChecker_Expecter) EstimateSwapGivenOut(ctx interface{}, tokenOutAmount interface{}, tokenInDenom interface{}, ...) *OpenLongChecker_EstimateSwapGivenOut_Call
- func (_e *OpenLongChecker_Expecter) GetAmmPool(ctx interface{}, poolId interface{}, tradingAsset interface{}) *OpenLongChecker_GetAmmPool_Call
- func (_e *OpenLongChecker_Expecter) GetMaxLeverageParam(ctx interface{}) *OpenLongChecker_GetMaxLeverageParam_Call
- func (_e *OpenLongChecker_Expecter) GetPool(ctx interface{}, poolId interface{}) *OpenLongChecker_GetPool_Call
- func (_e *OpenLongChecker_Expecter) GetSafetyFactor(ctx interface{}) *OpenLongChecker_GetSafetyFactor_Call
- func (_e *OpenLongChecker_Expecter) IsPoolEnabled(ctx interface{}, poolId interface{}) *OpenLongChecker_IsPoolEnabled_Call
- func (_e *OpenLongChecker_Expecter) SetMTP(ctx interface{}, mtp interface{}) *OpenLongChecker_SetMTP_Call
- func (_e *OpenLongChecker_Expecter) SetPool(ctx interface{}, pool interface{}) *OpenLongChecker_SetPool_Call
- func (_e *OpenLongChecker_Expecter) TakeInCustody(ctx interface{}, mtp interface{}, pool interface{}) *OpenLongChecker_TakeInCustody_Call
- func (_e *OpenLongChecker_Expecter) UpdateMTPHealth(ctx interface{}, mtp interface{}, ammPool interface{}, ...) *OpenLongChecker_UpdateMTPHealth_Call
- func (_e *OpenLongChecker_Expecter) UpdatePoolHealth(ctx interface{}, pool interface{}) *OpenLongChecker_UpdatePoolHealth_Call
- type OpenLongChecker_GetAmmPool_Call
- func (_c *OpenLongChecker_GetAmmPool_Call) Return(_a0 ammtypes.Pool, _a1 error) *OpenLongChecker_GetAmmPool_Call
- func (_c *OpenLongChecker_GetAmmPool_Call) Run(run func(ctx types.Context, poolId uint64, tradingAsset string)) *OpenLongChecker_GetAmmPool_Call
- func (_c *OpenLongChecker_GetAmmPool_Call) RunAndReturn(run func(types.Context, uint64, string) (ammtypes.Pool, error)) *OpenLongChecker_GetAmmPool_Call
- type OpenLongChecker_GetMaxLeverageParam_Call
- func (_c *OpenLongChecker_GetMaxLeverageParam_Call) Return(_a0 math.LegacyDec) *OpenLongChecker_GetMaxLeverageParam_Call
- func (_c *OpenLongChecker_GetMaxLeverageParam_Call) Run(run func(ctx types.Context)) *OpenLongChecker_GetMaxLeverageParam_Call
- func (_c *OpenLongChecker_GetMaxLeverageParam_Call) RunAndReturn(run func(types.Context) math.LegacyDec) *OpenLongChecker_GetMaxLeverageParam_Call
- type OpenLongChecker_GetPool_Call
- func (_c *OpenLongChecker_GetPool_Call) Return(_a0 margintypes.Pool, _a1 bool) *OpenLongChecker_GetPool_Call
- func (_c *OpenLongChecker_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *OpenLongChecker_GetPool_Call
- func (_c *OpenLongChecker_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *OpenLongChecker_GetPool_Call
- type OpenLongChecker_GetSafetyFactor_Call
- func (_c *OpenLongChecker_GetSafetyFactor_Call) Return(_a0 math.LegacyDec) *OpenLongChecker_GetSafetyFactor_Call
- func (_c *OpenLongChecker_GetSafetyFactor_Call) Run(run func(ctx types.Context)) *OpenLongChecker_GetSafetyFactor_Call
- func (_c *OpenLongChecker_GetSafetyFactor_Call) RunAndReturn(run func(types.Context) math.LegacyDec) *OpenLongChecker_GetSafetyFactor_Call
- type OpenLongChecker_IsPoolEnabled_Call
- func (_c *OpenLongChecker_IsPoolEnabled_Call) Return(_a0 bool) *OpenLongChecker_IsPoolEnabled_Call
- func (_c *OpenLongChecker_IsPoolEnabled_Call) Run(run func(ctx types.Context, poolId uint64)) *OpenLongChecker_IsPoolEnabled_Call
- func (_c *OpenLongChecker_IsPoolEnabled_Call) RunAndReturn(run func(types.Context, uint64) bool) *OpenLongChecker_IsPoolEnabled_Call
- type OpenLongChecker_SetMTP_Call
- func (_c *OpenLongChecker_SetMTP_Call) Return(_a0 error) *OpenLongChecker_SetMTP_Call
- func (_c *OpenLongChecker_SetMTP_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP)) *OpenLongChecker_SetMTP_Call
- func (_c *OpenLongChecker_SetMTP_Call) RunAndReturn(run func(types.Context, *margintypes.MTP) error) *OpenLongChecker_SetMTP_Call
- type OpenLongChecker_SetPool_Call
- func (_c *OpenLongChecker_SetPool_Call) Return() *OpenLongChecker_SetPool_Call
- func (_c *OpenLongChecker_SetPool_Call) Run(run func(ctx types.Context, pool margintypes.Pool)) *OpenLongChecker_SetPool_Call
- func (_c *OpenLongChecker_SetPool_Call) RunAndReturn(run func(types.Context, margintypes.Pool)) *OpenLongChecker_SetPool_Call
- type OpenLongChecker_TakeInCustody_Call
- func (_c *OpenLongChecker_TakeInCustody_Call) Return(_a0 error) *OpenLongChecker_TakeInCustody_Call
- func (_c *OpenLongChecker_TakeInCustody_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool)) *OpenLongChecker_TakeInCustody_Call
- func (_c *OpenLongChecker_TakeInCustody_Call) RunAndReturn(run func(types.Context, margintypes.MTP, *margintypes.Pool) error) *OpenLongChecker_TakeInCustody_Call
- type OpenLongChecker_UpdateMTPHealth_Call
- func (_c *OpenLongChecker_UpdateMTPHealth_Call) Return(_a0 math.LegacyDec, _a1 error) *OpenLongChecker_UpdateMTPHealth_Call
- func (_c *OpenLongChecker_UpdateMTPHealth_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, ammPool ammtypes.Pool, ...)) *OpenLongChecker_UpdateMTPHealth_Call
- func (_c *OpenLongChecker_UpdateMTPHealth_Call) RunAndReturn(...) *OpenLongChecker_UpdateMTPHealth_Call
- type OpenLongChecker_UpdatePoolHealth_Call
- func (_c *OpenLongChecker_UpdatePoolHealth_Call) Return(_a0 error) *OpenLongChecker_UpdatePoolHealth_Call
- func (_c *OpenLongChecker_UpdatePoolHealth_Call) Run(run func(ctx types.Context, pool *margintypes.Pool)) *OpenLongChecker_UpdatePoolHealth_Call
- func (_c *OpenLongChecker_UpdatePoolHealth_Call) RunAndReturn(run func(types.Context, *margintypes.Pool) error) *OpenLongChecker_UpdatePoolHealth_Call
- type OpenShortChecker
- func (_m *OpenShortChecker) Borrow(ctx types.Context, collateralAsset string, custodyAsset string, ...) error
- func (_m *OpenShortChecker) CalcMTPConsolidateCollateral(ctx types.Context, mtp *margintypes.MTP, baseCurrency string) error
- func (_m *OpenShortChecker) CheckMinLiabilities(ctx types.Context, collateralTokenAmt types.Coin, eta math.LegacyDec, ...) error
- func (_m *OpenShortChecker) CheckSameAssetPosition(ctx types.Context, msg *margintypes.MsgOpen) *margintypes.MTP
- func (_m *OpenShortChecker) EXPECT() *OpenShortChecker_Expecter
- func (_m *OpenShortChecker) EstimateSwap(ctx types.Context, leveragedAmtTokenIn types.Coin, borrowAsset string, ...) (math.Int, error)
- func (_m *OpenShortChecker) EstimateSwapGivenOut(ctx types.Context, tokenOutAmount types.Coin, tokenInDenom string, ...) (math.Int, error)
- func (_m *OpenShortChecker) GetAmmPool(ctx types.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error)
- func (_m *OpenShortChecker) GetMaxLeverageParam(ctx types.Context) math.LegacyDec
- func (_m *OpenShortChecker) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
- func (_m *OpenShortChecker) GetSafetyFactor(ctx types.Context) math.LegacyDec
- func (_m *OpenShortChecker) IsPoolEnabled(ctx types.Context, poolId uint64) bool
- func (_m *OpenShortChecker) SetMTP(ctx types.Context, mtp *margintypes.MTP) error
- func (_m *OpenShortChecker) SetPool(ctx types.Context, pool margintypes.Pool)
- func (_m *OpenShortChecker) TakeInCustody(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool) error
- func (_m *OpenShortChecker) UpdateMTPHealth(ctx types.Context, mtp margintypes.MTP, ammPool ammtypes.Pool, ...) (math.LegacyDec, error)
- func (_m *OpenShortChecker) UpdatePoolHealth(ctx types.Context, pool *margintypes.Pool) error
- type OpenShortChecker_Borrow_Call
- func (_c *OpenShortChecker_Borrow_Call) Return(_a0 error) *OpenShortChecker_Borrow_Call
- func (_c *OpenShortChecker_Borrow_Call) Run(run func(ctx types.Context, collateralAsset string, custodyAsset string, ...)) *OpenShortChecker_Borrow_Call
- func (_c *OpenShortChecker_Borrow_Call) RunAndReturn(...) *OpenShortChecker_Borrow_Call
- type OpenShortChecker_CalcMTPConsolidateCollateral_Call
- func (_c *OpenShortChecker_CalcMTPConsolidateCollateral_Call) Return(_a0 error) *OpenShortChecker_CalcMTPConsolidateCollateral_Call
- func (_c *OpenShortChecker_CalcMTPConsolidateCollateral_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP, baseCurrency string)) *OpenShortChecker_CalcMTPConsolidateCollateral_Call
- func (_c *OpenShortChecker_CalcMTPConsolidateCollateral_Call) RunAndReturn(run func(types.Context, *margintypes.MTP, string) error) *OpenShortChecker_CalcMTPConsolidateCollateral_Call
- type OpenShortChecker_CheckMinLiabilities_Call
- func (_c *OpenShortChecker_CheckMinLiabilities_Call) Return(_a0 error) *OpenShortChecker_CheckMinLiabilities_Call
- func (_c *OpenShortChecker_CheckMinLiabilities_Call) Run(...) *OpenShortChecker_CheckMinLiabilities_Call
- func (_c *OpenShortChecker_CheckMinLiabilities_Call) RunAndReturn(...) *OpenShortChecker_CheckMinLiabilities_Call
- type OpenShortChecker_CheckSameAssetPosition_Call
- func (_c *OpenShortChecker_CheckSameAssetPosition_Call) Return(_a0 *margintypes.MTP) *OpenShortChecker_CheckSameAssetPosition_Call
- func (_c *OpenShortChecker_CheckSameAssetPosition_Call) Run(run func(ctx types.Context, msg *margintypes.MsgOpen)) *OpenShortChecker_CheckSameAssetPosition_Call
- func (_c *OpenShortChecker_CheckSameAssetPosition_Call) RunAndReturn(run func(types.Context, *margintypes.MsgOpen) *margintypes.MTP) *OpenShortChecker_CheckSameAssetPosition_Call
- type OpenShortChecker_EstimateSwapGivenOut_Call
- func (_c *OpenShortChecker_EstimateSwapGivenOut_Call) Return(_a0 math.Int, _a1 error) *OpenShortChecker_EstimateSwapGivenOut_Call
- func (_c *OpenShortChecker_EstimateSwapGivenOut_Call) Run(...) *OpenShortChecker_EstimateSwapGivenOut_Call
- func (_c *OpenShortChecker_EstimateSwapGivenOut_Call) RunAndReturn(run func(types.Context, types.Coin, string, ammtypes.Pool) (math.Int, error)) *OpenShortChecker_EstimateSwapGivenOut_Call
- type OpenShortChecker_EstimateSwap_Call
- func (_c *OpenShortChecker_EstimateSwap_Call) Return(_a0 math.Int, _a1 error) *OpenShortChecker_EstimateSwap_Call
- func (_c *OpenShortChecker_EstimateSwap_Call) Run(...) *OpenShortChecker_EstimateSwap_Call
- func (_c *OpenShortChecker_EstimateSwap_Call) RunAndReturn(run func(types.Context, types.Coin, string, ammtypes.Pool) (math.Int, error)) *OpenShortChecker_EstimateSwap_Call
- type OpenShortChecker_Expecter
- func (_e *OpenShortChecker_Expecter) Borrow(ctx interface{}, collateralAsset interface{}, custodyAsset interface{}, ...) *OpenShortChecker_Borrow_Call
- func (_e *OpenShortChecker_Expecter) CalcMTPConsolidateCollateral(ctx interface{}, mtp interface{}, baseCurrency interface{}) *OpenShortChecker_CalcMTPConsolidateCollateral_Call
- func (_e *OpenShortChecker_Expecter) CheckMinLiabilities(ctx interface{}, collateralTokenAmt interface{}, eta interface{}, ...) *OpenShortChecker_CheckMinLiabilities_Call
- func (_e *OpenShortChecker_Expecter) CheckSameAssetPosition(ctx interface{}, msg interface{}) *OpenShortChecker_CheckSameAssetPosition_Call
- func (_e *OpenShortChecker_Expecter) EstimateSwap(ctx interface{}, leveragedAmtTokenIn interface{}, borrowAsset interface{}, ...) *OpenShortChecker_EstimateSwap_Call
- func (_e *OpenShortChecker_Expecter) EstimateSwapGivenOut(ctx interface{}, tokenOutAmount interface{}, tokenInDenom interface{}, ...) *OpenShortChecker_EstimateSwapGivenOut_Call
- func (_e *OpenShortChecker_Expecter) GetAmmPool(ctx interface{}, poolId interface{}, tradingAsset interface{}) *OpenShortChecker_GetAmmPool_Call
- func (_e *OpenShortChecker_Expecter) GetMaxLeverageParam(ctx interface{}) *OpenShortChecker_GetMaxLeverageParam_Call
- func (_e *OpenShortChecker_Expecter) GetPool(ctx interface{}, poolId interface{}) *OpenShortChecker_GetPool_Call
- func (_e *OpenShortChecker_Expecter) GetSafetyFactor(ctx interface{}) *OpenShortChecker_GetSafetyFactor_Call
- func (_e *OpenShortChecker_Expecter) IsPoolEnabled(ctx interface{}, poolId interface{}) *OpenShortChecker_IsPoolEnabled_Call
- func (_e *OpenShortChecker_Expecter) SetMTP(ctx interface{}, mtp interface{}) *OpenShortChecker_SetMTP_Call
- func (_e *OpenShortChecker_Expecter) SetPool(ctx interface{}, pool interface{}) *OpenShortChecker_SetPool_Call
- func (_e *OpenShortChecker_Expecter) TakeInCustody(ctx interface{}, mtp interface{}, pool interface{}) *OpenShortChecker_TakeInCustody_Call
- func (_e *OpenShortChecker_Expecter) UpdateMTPHealth(ctx interface{}, mtp interface{}, ammPool interface{}, ...) *OpenShortChecker_UpdateMTPHealth_Call
- func (_e *OpenShortChecker_Expecter) UpdatePoolHealth(ctx interface{}, pool interface{}) *OpenShortChecker_UpdatePoolHealth_Call
- type OpenShortChecker_GetAmmPool_Call
- func (_c *OpenShortChecker_GetAmmPool_Call) Return(_a0 ammtypes.Pool, _a1 error) *OpenShortChecker_GetAmmPool_Call
- func (_c *OpenShortChecker_GetAmmPool_Call) Run(run func(ctx types.Context, poolId uint64, tradingAsset string)) *OpenShortChecker_GetAmmPool_Call
- func (_c *OpenShortChecker_GetAmmPool_Call) RunAndReturn(run func(types.Context, uint64, string) (ammtypes.Pool, error)) *OpenShortChecker_GetAmmPool_Call
- type OpenShortChecker_GetMaxLeverageParam_Call
- func (_c *OpenShortChecker_GetMaxLeverageParam_Call) Return(_a0 math.LegacyDec) *OpenShortChecker_GetMaxLeverageParam_Call
- func (_c *OpenShortChecker_GetMaxLeverageParam_Call) Run(run func(ctx types.Context)) *OpenShortChecker_GetMaxLeverageParam_Call
- func (_c *OpenShortChecker_GetMaxLeverageParam_Call) RunAndReturn(run func(types.Context) math.LegacyDec) *OpenShortChecker_GetMaxLeverageParam_Call
- type OpenShortChecker_GetPool_Call
- func (_c *OpenShortChecker_GetPool_Call) Return(_a0 margintypes.Pool, _a1 bool) *OpenShortChecker_GetPool_Call
- func (_c *OpenShortChecker_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *OpenShortChecker_GetPool_Call
- func (_c *OpenShortChecker_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *OpenShortChecker_GetPool_Call
- type OpenShortChecker_GetSafetyFactor_Call
- func (_c *OpenShortChecker_GetSafetyFactor_Call) Return(_a0 math.LegacyDec) *OpenShortChecker_GetSafetyFactor_Call
- func (_c *OpenShortChecker_GetSafetyFactor_Call) Run(run func(ctx types.Context)) *OpenShortChecker_GetSafetyFactor_Call
- func (_c *OpenShortChecker_GetSafetyFactor_Call) RunAndReturn(run func(types.Context) math.LegacyDec) *OpenShortChecker_GetSafetyFactor_Call
- type OpenShortChecker_IsPoolEnabled_Call
- func (_c *OpenShortChecker_IsPoolEnabled_Call) Return(_a0 bool) *OpenShortChecker_IsPoolEnabled_Call
- func (_c *OpenShortChecker_IsPoolEnabled_Call) Run(run func(ctx types.Context, poolId uint64)) *OpenShortChecker_IsPoolEnabled_Call
- func (_c *OpenShortChecker_IsPoolEnabled_Call) RunAndReturn(run func(types.Context, uint64) bool) *OpenShortChecker_IsPoolEnabled_Call
- type OpenShortChecker_SetMTP_Call
- func (_c *OpenShortChecker_SetMTP_Call) Return(_a0 error) *OpenShortChecker_SetMTP_Call
- func (_c *OpenShortChecker_SetMTP_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP)) *OpenShortChecker_SetMTP_Call
- func (_c *OpenShortChecker_SetMTP_Call) RunAndReturn(run func(types.Context, *margintypes.MTP) error) *OpenShortChecker_SetMTP_Call
- type OpenShortChecker_SetPool_Call
- func (_c *OpenShortChecker_SetPool_Call) Return() *OpenShortChecker_SetPool_Call
- func (_c *OpenShortChecker_SetPool_Call) Run(run func(ctx types.Context, pool margintypes.Pool)) *OpenShortChecker_SetPool_Call
- func (_c *OpenShortChecker_SetPool_Call) RunAndReturn(run func(types.Context, margintypes.Pool)) *OpenShortChecker_SetPool_Call
- type OpenShortChecker_TakeInCustody_Call
- func (_c *OpenShortChecker_TakeInCustody_Call) Return(_a0 error) *OpenShortChecker_TakeInCustody_Call
- func (_c *OpenShortChecker_TakeInCustody_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool)) *OpenShortChecker_TakeInCustody_Call
- func (_c *OpenShortChecker_TakeInCustody_Call) RunAndReturn(run func(types.Context, margintypes.MTP, *margintypes.Pool) error) *OpenShortChecker_TakeInCustody_Call
- type OpenShortChecker_UpdateMTPHealth_Call
- func (_c *OpenShortChecker_UpdateMTPHealth_Call) Return(_a0 math.LegacyDec, _a1 error) *OpenShortChecker_UpdateMTPHealth_Call
- func (_c *OpenShortChecker_UpdateMTPHealth_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, ammPool ammtypes.Pool, ...)) *OpenShortChecker_UpdateMTPHealth_Call
- func (_c *OpenShortChecker_UpdateMTPHealth_Call) RunAndReturn(...) *OpenShortChecker_UpdateMTPHealth_Call
- type OpenShortChecker_UpdatePoolHealth_Call
- func (_c *OpenShortChecker_UpdatePoolHealth_Call) Return(_a0 error) *OpenShortChecker_UpdatePoolHealth_Call
- func (_c *OpenShortChecker_UpdatePoolHealth_Call) Run(run func(ctx types.Context, pool *margintypes.Pool)) *OpenShortChecker_UpdatePoolHealth_Call
- func (_c *OpenShortChecker_UpdatePoolHealth_Call) RunAndReturn(run func(types.Context, *margintypes.Pool) error) *OpenShortChecker_UpdatePoolHealth_Call
- type PoolChecker
- func (_m *PoolChecker) EXPECT() *PoolChecker_Expecter
- func (_m *PoolChecker) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
- func (_m *PoolChecker) GetPoolOpenThreshold(ctx types.Context) math.LegacyDec
- func (_m *PoolChecker) IsPoolClosed(ctx types.Context, poolId uint64) bool
- func (_m *PoolChecker) IsPoolEnabled(ctx types.Context, poolId uint64) bool
- type PoolChecker_Expecter
- func (_e *PoolChecker_Expecter) GetPool(ctx interface{}, poolId interface{}) *PoolChecker_GetPool_Call
- func (_e *PoolChecker_Expecter) GetPoolOpenThreshold(ctx interface{}) *PoolChecker_GetPoolOpenThreshold_Call
- func (_e *PoolChecker_Expecter) IsPoolClosed(ctx interface{}, poolId interface{}) *PoolChecker_IsPoolClosed_Call
- func (_e *PoolChecker_Expecter) IsPoolEnabled(ctx interface{}, poolId interface{}) *PoolChecker_IsPoolEnabled_Call
- type PoolChecker_GetPoolOpenThreshold_Call
- func (_c *PoolChecker_GetPoolOpenThreshold_Call) Return(_a0 math.LegacyDec) *PoolChecker_GetPoolOpenThreshold_Call
- func (_c *PoolChecker_GetPoolOpenThreshold_Call) Run(run func(ctx types.Context)) *PoolChecker_GetPoolOpenThreshold_Call
- func (_c *PoolChecker_GetPoolOpenThreshold_Call) RunAndReturn(run func(types.Context) math.LegacyDec) *PoolChecker_GetPoolOpenThreshold_Call
- type PoolChecker_GetPool_Call
- func (_c *PoolChecker_GetPool_Call) Return(_a0 margintypes.Pool, _a1 bool) *PoolChecker_GetPool_Call
- func (_c *PoolChecker_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *PoolChecker_GetPool_Call
- func (_c *PoolChecker_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *PoolChecker_GetPool_Call
- type PoolChecker_IsPoolClosed_Call
- func (_c *PoolChecker_IsPoolClosed_Call) Return(_a0 bool) *PoolChecker_IsPoolClosed_Call
- func (_c *PoolChecker_IsPoolClosed_Call) Run(run func(ctx types.Context, poolId uint64)) *PoolChecker_IsPoolClosed_Call
- func (_c *PoolChecker_IsPoolClosed_Call) RunAndReturn(run func(types.Context, uint64) bool) *PoolChecker_IsPoolClosed_Call
- type PoolChecker_IsPoolEnabled_Call
- func (_c *PoolChecker_IsPoolEnabled_Call) Return(_a0 bool) *PoolChecker_IsPoolEnabled_Call
- func (_c *PoolChecker_IsPoolEnabled_Call) Run(run func(ctx types.Context, poolId uint64)) *PoolChecker_IsPoolEnabled_Call
- func (_c *PoolChecker_IsPoolEnabled_Call) RunAndReturn(run func(types.Context, uint64) bool) *PoolChecker_IsPoolEnabled_Call
- type PositionChecker
- type PositionChecker_Expecter
- type PositionChecker_GetMaxOpenPositions_Call
- func (_c *PositionChecker_GetMaxOpenPositions_Call) Return(_a0 uint64) *PositionChecker_GetMaxOpenPositions_Call
- func (_c *PositionChecker_GetMaxOpenPositions_Call) Run(run func(ctx types.Context)) *PositionChecker_GetMaxOpenPositions_Call
- func (_c *PositionChecker_GetMaxOpenPositions_Call) RunAndReturn(run func(types.Context) uint64) *PositionChecker_GetMaxOpenPositions_Call
- type PositionChecker_GetOpenMTPCount_Call
- func (_c *PositionChecker_GetOpenMTPCount_Call) Return(_a0 uint64) *PositionChecker_GetOpenMTPCount_Call
- func (_c *PositionChecker_GetOpenMTPCount_Call) Run(run func(ctx types.Context)) *PositionChecker_GetOpenMTPCount_Call
- func (_c *PositionChecker_GetOpenMTPCount_Call) RunAndReturn(run func(types.Context) uint64) *PositionChecker_GetOpenMTPCount_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKeeper ¶
AccountKeeper is an autogenerated mock type for the AccountKeeper type
func NewAccountKeeper ¶
func NewAccountKeeper(t interface { mock.TestingT Cleanup(func()) }) *AccountKeeper
NewAccountKeeper creates a new instance of AccountKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AccountKeeper) EXPECT ¶
func (_m *AccountKeeper) EXPECT() *AccountKeeper_Expecter
func (*AccountKeeper) GetAccount ¶
func (_m *AccountKeeper) GetAccount(ctx types.Context, addr types.AccAddress) authtypes.AccountI
GetAccount provides a mock function with given fields: ctx, addr
type AccountKeeper_Expecter ¶
type AccountKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*AccountKeeper_Expecter) GetAccount ¶
func (_e *AccountKeeper_Expecter) GetAccount(ctx interface{}, addr interface{}) *AccountKeeper_GetAccount_Call
GetAccount is a helper method to define mock.On call
- ctx types.Context
- addr types.AccAddress
type AccountKeeper_GetAccount_Call ¶
AccountKeeper_GetAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccount'
func (*AccountKeeper_GetAccount_Call) Return ¶
func (_c *AccountKeeper_GetAccount_Call) Return(_a0 authtypes.AccountI) *AccountKeeper_GetAccount_Call
func (*AccountKeeper_GetAccount_Call) Run ¶
func (_c *AccountKeeper_GetAccount_Call) Run(run func(ctx types.Context, addr types.AccAddress)) *AccountKeeper_GetAccount_Call
func (*AccountKeeper_GetAccount_Call) RunAndReturn ¶
func (_c *AccountKeeper_GetAccount_Call) RunAndReturn(run func(types.Context, types.AccAddress) authtypes.AccountI) *AccountKeeper_GetAccount_Call
type AmmKeeper ¶
AmmKeeper is an autogenerated mock type for the AmmKeeper type
func NewAmmKeeper ¶
NewAmmKeeper creates a new instance of AmmKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AmmKeeper) CalcInAmtGivenOut ¶ added in v0.12.0
func (_m *AmmKeeper) CalcInAmtGivenOut(ctx types.Context, poolId uint64, oracle ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensOut types.Coins, tokenInDenom string, swapFee math.LegacyDec) (types.Coin, error)
CalcInAmtGivenOut provides a mock function with given fields: ctx, poolId, oracle, snapshot, tokensOut, tokenInDenom, swapFee
func (*AmmKeeper) CalcOutAmtGivenIn ¶ added in v0.11.0
func (_m *AmmKeeper) CalcOutAmtGivenIn(ctx types.Context, poolId uint64, oracle ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensIn types.Coins, tokenOutDenom string, swapFee math.LegacyDec) (types.Coin, error)
CalcOutAmtGivenIn provides a mock function with given fields: ctx, poolId, oracle, snapshot, tokensIn, tokenOutDenom, swapFee
func (*AmmKeeper) EXPECT ¶
func (_m *AmmKeeper) EXPECT() *AmmKeeper_Expecter
func (*AmmKeeper) GetAllPool ¶
GetAllPool provides a mock function with given fields: _a0
func (*AmmKeeper) GetAllPoolIdsWithDenom ¶
GetAllPoolIdsWithDenom provides a mock function with given fields: _a0, _a1
func (*AmmKeeper) GetPoolSnapshotOrSet ¶ added in v0.11.0
GetPoolSnapshotOrSet provides a mock function with given fields: ctx, pool
type AmmKeeper_CalcInAmtGivenOut_Call ¶ added in v0.12.0
AmmKeeper_CalcInAmtGivenOut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CalcInAmtGivenOut'
func (*AmmKeeper_CalcInAmtGivenOut_Call) Return ¶ added in v0.12.0
func (_c *AmmKeeper_CalcInAmtGivenOut_Call) Return(tokenIn types.Coin, err error) *AmmKeeper_CalcInAmtGivenOut_Call
func (*AmmKeeper_CalcInAmtGivenOut_Call) Run ¶ added in v0.12.0
func (_c *AmmKeeper_CalcInAmtGivenOut_Call) Run(run func(ctx types.Context, poolId uint64, oracle ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensOut types.Coins, tokenInDenom string, swapFee math.LegacyDec)) *AmmKeeper_CalcInAmtGivenOut_Call
func (*AmmKeeper_CalcInAmtGivenOut_Call) RunAndReturn ¶ added in v0.12.0
type AmmKeeper_CalcOutAmtGivenIn_Call ¶ added in v0.11.0
AmmKeeper_CalcOutAmtGivenIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CalcOutAmtGivenIn'
func (*AmmKeeper_CalcOutAmtGivenIn_Call) Return ¶ added in v0.11.0
func (_c *AmmKeeper_CalcOutAmtGivenIn_Call) Return(_a0 types.Coin, _a1 error) *AmmKeeper_CalcOutAmtGivenIn_Call
func (*AmmKeeper_CalcOutAmtGivenIn_Call) Run ¶ added in v0.11.0
func (_c *AmmKeeper_CalcOutAmtGivenIn_Call) Run(run func(ctx types.Context, poolId uint64, oracle ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensIn types.Coins, tokenOutDenom string, swapFee math.LegacyDec)) *AmmKeeper_CalcOutAmtGivenIn_Call
func (*AmmKeeper_CalcOutAmtGivenIn_Call) RunAndReturn ¶ added in v0.11.0
type AmmKeeper_Expecter ¶
type AmmKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*AmmKeeper_Expecter) CalcInAmtGivenOut ¶ added in v0.12.0
func (_e *AmmKeeper_Expecter) CalcInAmtGivenOut(ctx interface{}, poolId interface{}, oracle interface{}, snapshot interface{}, tokensOut interface{}, tokenInDenom interface{}, swapFee interface{}) *AmmKeeper_CalcInAmtGivenOut_Call
CalcInAmtGivenOut is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
- oracle ammtypes.OracleKeeper
- snapshot *ammtypes.Pool
- tokensOut types.Coins
- tokenInDenom string
- swapFee math.LegacyDec
func (*AmmKeeper_Expecter) CalcOutAmtGivenIn ¶ added in v0.11.0
func (_e *AmmKeeper_Expecter) CalcOutAmtGivenIn(ctx interface{}, poolId interface{}, oracle interface{}, snapshot interface{}, tokensIn interface{}, tokenOutDenom interface{}, swapFee interface{}) *AmmKeeper_CalcOutAmtGivenIn_Call
CalcOutAmtGivenIn is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
- oracle ammtypes.OracleKeeper
- snapshot *ammtypes.Pool
- tokensIn types.Coins
- tokenOutDenom string
- swapFee math.LegacyDec
func (*AmmKeeper_Expecter) GetAllPool ¶
func (_e *AmmKeeper_Expecter) GetAllPool(_a0 interface{}) *AmmKeeper_GetAllPool_Call
GetAllPool is a helper method to define mock.On call
- _a0 types.Context
func (*AmmKeeper_Expecter) GetAllPoolIdsWithDenom ¶
func (_e *AmmKeeper_Expecter) GetAllPoolIdsWithDenom(_a0 interface{}, _a1 interface{}) *AmmKeeper_GetAllPoolIdsWithDenom_Call
GetAllPoolIdsWithDenom is a helper method to define mock.On call
- _a0 types.Context
- _a1 string
func (*AmmKeeper_Expecter) GetPool ¶
func (_e *AmmKeeper_Expecter) GetPool(_a0 interface{}, _a1 interface{}) *AmmKeeper_GetPool_Call
GetPool is a helper method to define mock.On call
- _a0 types.Context
- _a1 uint64
func (*AmmKeeper_Expecter) GetPoolSnapshotOrSet ¶ added in v0.11.0
func (_e *AmmKeeper_Expecter) GetPoolSnapshotOrSet(ctx interface{}, pool interface{}) *AmmKeeper_GetPoolSnapshotOrSet_Call
GetPoolSnapshotOrSet is a helper method to define mock.On call
- ctx types.Context
- pool ammtypes.Pool
func (*AmmKeeper_Expecter) IterateLiquidityPools ¶
func (_e *AmmKeeper_Expecter) IterateLiquidityPools(_a0 interface{}, _a1 interface{}) *AmmKeeper_IterateLiquidityPools_Call
IterateLiquidityPools is a helper method to define mock.On call
- _a0 types.Context
- _a1 func(ammtypes.Pool) bool
type AmmKeeper_GetAllPoolIdsWithDenom_Call ¶
AmmKeeper_GetAllPoolIdsWithDenom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllPoolIdsWithDenom'
func (*AmmKeeper_GetAllPoolIdsWithDenom_Call) Return ¶
func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) Return(_a0 []uint64) *AmmKeeper_GetAllPoolIdsWithDenom_Call
func (*AmmKeeper_GetAllPoolIdsWithDenom_Call) Run ¶
func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) Run(run func(_a0 types.Context, _a1 string)) *AmmKeeper_GetAllPoolIdsWithDenom_Call
func (*AmmKeeper_GetAllPoolIdsWithDenom_Call) RunAndReturn ¶
func (_c *AmmKeeper_GetAllPoolIdsWithDenom_Call) RunAndReturn(run func(types.Context, string) []uint64) *AmmKeeper_GetAllPoolIdsWithDenom_Call
type AmmKeeper_GetAllPool_Call ¶
AmmKeeper_GetAllPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllPool'
func (*AmmKeeper_GetAllPool_Call) Return ¶
func (_c *AmmKeeper_GetAllPool_Call) Return(_a0 []ammtypes.Pool) *AmmKeeper_GetAllPool_Call
func (*AmmKeeper_GetAllPool_Call) Run ¶
func (_c *AmmKeeper_GetAllPool_Call) Run(run func(_a0 types.Context)) *AmmKeeper_GetAllPool_Call
func (*AmmKeeper_GetAllPool_Call) RunAndReturn ¶
func (_c *AmmKeeper_GetAllPool_Call) RunAndReturn(run func(types.Context) []ammtypes.Pool) *AmmKeeper_GetAllPool_Call
type AmmKeeper_GetPoolSnapshotOrSet_Call ¶ added in v0.11.0
AmmKeeper_GetPoolSnapshotOrSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPoolSnapshotOrSet'
func (*AmmKeeper_GetPoolSnapshotOrSet_Call) Return ¶ added in v0.11.0
func (_c *AmmKeeper_GetPoolSnapshotOrSet_Call) Return(val ammtypes.Pool) *AmmKeeper_GetPoolSnapshotOrSet_Call
func (*AmmKeeper_GetPoolSnapshotOrSet_Call) Run ¶ added in v0.11.0
func (_c *AmmKeeper_GetPoolSnapshotOrSet_Call) Run(run func(ctx types.Context, pool ammtypes.Pool)) *AmmKeeper_GetPoolSnapshotOrSet_Call
func (*AmmKeeper_GetPoolSnapshotOrSet_Call) RunAndReturn ¶ added in v0.11.0
func (_c *AmmKeeper_GetPoolSnapshotOrSet_Call) RunAndReturn(run func(types.Context, ammtypes.Pool) ammtypes.Pool) *AmmKeeper_GetPoolSnapshotOrSet_Call
type AmmKeeper_GetPool_Call ¶
AmmKeeper_GetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPool'
func (*AmmKeeper_GetPool_Call) Return ¶
func (_c *AmmKeeper_GetPool_Call) Return(_a0 ammtypes.Pool, _a1 bool) *AmmKeeper_GetPool_Call
func (*AmmKeeper_GetPool_Call) Run ¶
func (_c *AmmKeeper_GetPool_Call) Run(run func(_a0 types.Context, _a1 uint64)) *AmmKeeper_GetPool_Call
func (*AmmKeeper_GetPool_Call) RunAndReturn ¶
func (_c *AmmKeeper_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (ammtypes.Pool, bool)) *AmmKeeper_GetPool_Call
type AmmKeeper_IterateLiquidityPools_Call ¶
AmmKeeper_IterateLiquidityPools_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IterateLiquidityPools'
func (*AmmKeeper_IterateLiquidityPools_Call) Return ¶
func (_c *AmmKeeper_IterateLiquidityPools_Call) Return() *AmmKeeper_IterateLiquidityPools_Call
func (*AmmKeeper_IterateLiquidityPools_Call) Run ¶
func (_c *AmmKeeper_IterateLiquidityPools_Call) Run(run func(_a0 types.Context, _a1 func(ammtypes.Pool) bool)) *AmmKeeper_IterateLiquidityPools_Call
func (*AmmKeeper_IterateLiquidityPools_Call) RunAndReturn ¶
func (_c *AmmKeeper_IterateLiquidityPools_Call) RunAndReturn(run func(types.Context, func(ammtypes.Pool) bool)) *AmmKeeper_IterateLiquidityPools_Call
type AssetProfileKeeper ¶ added in v0.15.0
AssetProfileKeeper is an autogenerated mock type for the AssetProfileKeeper type
func NewAssetProfileKeeper ¶ added in v0.15.0
func NewAssetProfileKeeper(t interface { mock.TestingT Cleanup(func()) }) *AssetProfileKeeper
NewAssetProfileKeeper creates a new instance of AssetProfileKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AssetProfileKeeper) EXPECT ¶ added in v0.15.0
func (_m *AssetProfileKeeper) EXPECT() *AssetProfileKeeper_Expecter
func (*AssetProfileKeeper) GetEntry ¶ added in v0.15.0
func (_m *AssetProfileKeeper) GetEntry(ctx types.Context, baseDenom string) (assetprofiletypes.Entry, bool)
GetEntry provides a mock function with given fields: ctx, baseDenom
type AssetProfileKeeper_Expecter ¶ added in v0.15.0
type AssetProfileKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetProfileKeeper_Expecter) GetEntry ¶ added in v0.15.0
func (_e *AssetProfileKeeper_Expecter) GetEntry(ctx interface{}, baseDenom interface{}) *AssetProfileKeeper_GetEntry_Call
GetEntry is a helper method to define mock.On call
- ctx types.Context
- baseDenom string
type AssetProfileKeeper_GetEntry_Call ¶ added in v0.15.0
AssetProfileKeeper_GetEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntry'
func (*AssetProfileKeeper_GetEntry_Call) Return ¶ added in v0.15.0
func (_c *AssetProfileKeeper_GetEntry_Call) Return(val assetprofiletypes.Entry, found bool) *AssetProfileKeeper_GetEntry_Call
func (*AssetProfileKeeper_GetEntry_Call) Run ¶ added in v0.15.0
func (_c *AssetProfileKeeper_GetEntry_Call) Run(run func(ctx types.Context, baseDenom string)) *AssetProfileKeeper_GetEntry_Call
func (*AssetProfileKeeper_GetEntry_Call) RunAndReturn ¶ added in v0.15.0
func (_c *AssetProfileKeeper_GetEntry_Call) RunAndReturn(run func(types.Context, string) (assetprofiletypes.Entry, bool)) *AssetProfileKeeper_GetEntry_Call
type AuthorizationChecker ¶
AuthorizationChecker is an autogenerated mock type for the AuthorizationChecker type
func NewAuthorizationChecker ¶
func NewAuthorizationChecker(t interface { mock.TestingT Cleanup(func()) }) *AuthorizationChecker
NewAuthorizationChecker creates a new instance of AuthorizationChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AuthorizationChecker) CheckIfWhitelisted ¶
func (_m *AuthorizationChecker) CheckIfWhitelisted(ctx types.Context, creator string) bool
CheckIfWhitelisted provides a mock function with given fields: ctx, creator
func (*AuthorizationChecker) EXPECT ¶
func (_m *AuthorizationChecker) EXPECT() *AuthorizationChecker_Expecter
func (*AuthorizationChecker) IsWhitelistingEnabled ¶
func (_m *AuthorizationChecker) IsWhitelistingEnabled(ctx types.Context) bool
IsWhitelistingEnabled provides a mock function with given fields: ctx
type AuthorizationChecker_CheckIfWhitelisted_Call ¶
AuthorizationChecker_CheckIfWhitelisted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckIfWhitelisted'
func (*AuthorizationChecker_CheckIfWhitelisted_Call) Return ¶
func (_c *AuthorizationChecker_CheckIfWhitelisted_Call) Return(_a0 bool) *AuthorizationChecker_CheckIfWhitelisted_Call
func (*AuthorizationChecker_CheckIfWhitelisted_Call) Run ¶
func (_c *AuthorizationChecker_CheckIfWhitelisted_Call) Run(run func(ctx types.Context, creator string)) *AuthorizationChecker_CheckIfWhitelisted_Call
func (*AuthorizationChecker_CheckIfWhitelisted_Call) RunAndReturn ¶
func (_c *AuthorizationChecker_CheckIfWhitelisted_Call) RunAndReturn(run func(types.Context, string) bool) *AuthorizationChecker_CheckIfWhitelisted_Call
type AuthorizationChecker_Expecter ¶
type AuthorizationChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*AuthorizationChecker_Expecter) CheckIfWhitelisted ¶
func (_e *AuthorizationChecker_Expecter) CheckIfWhitelisted(ctx interface{}, creator interface{}) *AuthorizationChecker_CheckIfWhitelisted_Call
CheckIfWhitelisted is a helper method to define mock.On call
- ctx types.Context
- creator string
func (*AuthorizationChecker_Expecter) IsWhitelistingEnabled ¶
func (_e *AuthorizationChecker_Expecter) IsWhitelistingEnabled(ctx interface{}) *AuthorizationChecker_IsWhitelistingEnabled_Call
IsWhitelistingEnabled is a helper method to define mock.On call
- ctx types.Context
type AuthorizationChecker_IsWhitelistingEnabled_Call ¶
AuthorizationChecker_IsWhitelistingEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsWhitelistingEnabled'
func (*AuthorizationChecker_IsWhitelistingEnabled_Call) Return ¶
func (_c *AuthorizationChecker_IsWhitelistingEnabled_Call) Return(_a0 bool) *AuthorizationChecker_IsWhitelistingEnabled_Call
func (*AuthorizationChecker_IsWhitelistingEnabled_Call) Run ¶
func (_c *AuthorizationChecker_IsWhitelistingEnabled_Call) Run(run func(ctx types.Context)) *AuthorizationChecker_IsWhitelistingEnabled_Call
func (*AuthorizationChecker_IsWhitelistingEnabled_Call) RunAndReturn ¶
func (_c *AuthorizationChecker_IsWhitelistingEnabled_Call) RunAndReturn(run func(types.Context) bool) *AuthorizationChecker_IsWhitelistingEnabled_Call
type BankKeeper ¶
BankKeeper is an autogenerated mock type for the BankKeeper type
func NewBankKeeper ¶
func NewBankKeeper(t interface { mock.TestingT Cleanup(func()) }) *BankKeeper
NewBankKeeper creates a new instance of BankKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BankKeeper) BlockedAddr ¶
func (_m *BankKeeper) BlockedAddr(addr types.AccAddress) bool
BlockedAddr provides a mock function with given fields: addr
func (*BankKeeper) EXPECT ¶
func (_m *BankKeeper) EXPECT() *BankKeeper_Expecter
func (*BankKeeper) GetAllBalances ¶
func (_m *BankKeeper) GetAllBalances(ctx types.Context, addr types.AccAddress) types.Coins
GetAllBalances provides a mock function with given fields: ctx, addr
func (*BankKeeper) GetBalance ¶
func (_m *BankKeeper) GetBalance(ctx types.Context, addr types.AccAddress, denom string) types.Coin
GetBalance provides a mock function with given fields: ctx, addr, denom
func (*BankKeeper) HasBalance ¶
func (_m *BankKeeper) HasBalance(ctx types.Context, addr types.AccAddress, amt types.Coin) bool
HasBalance provides a mock function with given fields: ctx, addr, amt
func (*BankKeeper) SendCoins ¶ added in v0.11.0
func (_m *BankKeeper) SendCoins(ctx types.Context, fromAddr types.AccAddress, toAddr types.AccAddress, amt types.Coins) error
SendCoins provides a mock function with given fields: ctx, fromAddr, toAddr, amt
func (*BankKeeper) SendCoinsFromAccountToModule ¶
func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx types.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins) error
SendCoinsFromAccountToModule provides a mock function with given fields: ctx, senderAddr, recipientModule, amt
func (*BankKeeper) SendCoinsFromModuleToAccount ¶
func (_m *BankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error
SendCoinsFromModuleToAccount provides a mock function with given fields: ctx, senderModule, recipientAddr, amt
func (*BankKeeper) SendCoinsFromModuleToModule ¶
func (_m *BankKeeper) SendCoinsFromModuleToModule(ctx types.Context, senderModule string, recipientModule string, amt types.Coins) error
SendCoinsFromModuleToModule provides a mock function with given fields: ctx, senderModule, recipientModule, amt
func (*BankKeeper) SpendableCoins ¶
func (_m *BankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins
SpendableCoins provides a mock function with given fields: ctx, addr
type BankKeeper_BlockedAddr_Call ¶
BankKeeper_BlockedAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockedAddr'
func (*BankKeeper_BlockedAddr_Call) Return ¶
func (_c *BankKeeper_BlockedAddr_Call) Return(_a0 bool) *BankKeeper_BlockedAddr_Call
func (*BankKeeper_BlockedAddr_Call) Run ¶
func (_c *BankKeeper_BlockedAddr_Call) Run(run func(addr types.AccAddress)) *BankKeeper_BlockedAddr_Call
func (*BankKeeper_BlockedAddr_Call) RunAndReturn ¶
func (_c *BankKeeper_BlockedAddr_Call) RunAndReturn(run func(types.AccAddress) bool) *BankKeeper_BlockedAddr_Call
type BankKeeper_Expecter ¶
type BankKeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*BankKeeper_Expecter) BlockedAddr ¶
func (_e *BankKeeper_Expecter) BlockedAddr(addr interface{}) *BankKeeper_BlockedAddr_Call
BlockedAddr is a helper method to define mock.On call
- addr types.AccAddress
func (*BankKeeper_Expecter) GetAllBalances ¶
func (_e *BankKeeper_Expecter) GetAllBalances(ctx interface{}, addr interface{}) *BankKeeper_GetAllBalances_Call
GetAllBalances is a helper method to define mock.On call
- ctx types.Context
- addr types.AccAddress
func (*BankKeeper_Expecter) GetBalance ¶
func (_e *BankKeeper_Expecter) GetBalance(ctx interface{}, addr interface{}, denom interface{}) *BankKeeper_GetBalance_Call
GetBalance is a helper method to define mock.On call
- ctx types.Context
- addr types.AccAddress
- denom string
func (*BankKeeper_Expecter) HasBalance ¶
func (_e *BankKeeper_Expecter) HasBalance(ctx interface{}, addr interface{}, amt interface{}) *BankKeeper_HasBalance_Call
HasBalance is a helper method to define mock.On call
- ctx types.Context
- addr types.AccAddress
- amt types.Coin
func (*BankKeeper_Expecter) SendCoins ¶ added in v0.11.0
func (_e *BankKeeper_Expecter) SendCoins(ctx interface{}, fromAddr interface{}, toAddr interface{}, amt interface{}) *BankKeeper_SendCoins_Call
SendCoins is a helper method to define mock.On call
- ctx types.Context
- fromAddr types.AccAddress
- toAddr types.AccAddress
- amt types.Coins
func (*BankKeeper_Expecter) SendCoinsFromAccountToModule ¶
func (_e *BankKeeper_Expecter) SendCoinsFromAccountToModule(ctx interface{}, senderAddr interface{}, recipientModule interface{}, amt interface{}) *BankKeeper_SendCoinsFromAccountToModule_Call
SendCoinsFromAccountToModule is a helper method to define mock.On call
- ctx types.Context
- senderAddr types.AccAddress
- recipientModule string
- amt types.Coins
func (*BankKeeper_Expecter) SendCoinsFromModuleToAccount ¶
func (_e *BankKeeper_Expecter) SendCoinsFromModuleToAccount(ctx interface{}, senderModule interface{}, recipientAddr interface{}, amt interface{}) *BankKeeper_SendCoinsFromModuleToAccount_Call
SendCoinsFromModuleToAccount is a helper method to define mock.On call
- ctx types.Context
- senderModule string
- recipientAddr types.AccAddress
- amt types.Coins
func (*BankKeeper_Expecter) SendCoinsFromModuleToModule ¶
func (_e *BankKeeper_Expecter) SendCoinsFromModuleToModule(ctx interface{}, senderModule interface{}, recipientModule interface{}, amt interface{}) *BankKeeper_SendCoinsFromModuleToModule_Call
SendCoinsFromModuleToModule is a helper method to define mock.On call
- ctx types.Context
- senderModule string
- recipientModule string
- amt types.Coins
func (*BankKeeper_Expecter) SpendableCoins ¶
func (_e *BankKeeper_Expecter) SpendableCoins(ctx interface{}, addr interface{}) *BankKeeper_SpendableCoins_Call
SpendableCoins is a helper method to define mock.On call
- ctx types.Context
- addr types.AccAddress
type BankKeeper_GetAllBalances_Call ¶
BankKeeper_GetAllBalances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllBalances'
func (*BankKeeper_GetAllBalances_Call) Return ¶
func (_c *BankKeeper_GetAllBalances_Call) Return(_a0 types.Coins) *BankKeeper_GetAllBalances_Call
func (*BankKeeper_GetAllBalances_Call) Run ¶
func (_c *BankKeeper_GetAllBalances_Call) Run(run func(ctx types.Context, addr types.AccAddress)) *BankKeeper_GetAllBalances_Call
func (*BankKeeper_GetAllBalances_Call) RunAndReturn ¶
func (_c *BankKeeper_GetAllBalances_Call) RunAndReturn(run func(types.Context, types.AccAddress) types.Coins) *BankKeeper_GetAllBalances_Call
type BankKeeper_GetBalance_Call ¶
BankKeeper_GetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalance'
func (*BankKeeper_GetBalance_Call) Return ¶
func (_c *BankKeeper_GetBalance_Call) Return(_a0 types.Coin) *BankKeeper_GetBalance_Call
func (*BankKeeper_GetBalance_Call) Run ¶
func (_c *BankKeeper_GetBalance_Call) Run(run func(ctx types.Context, addr types.AccAddress, denom string)) *BankKeeper_GetBalance_Call
func (*BankKeeper_GetBalance_Call) RunAndReturn ¶
func (_c *BankKeeper_GetBalance_Call) RunAndReturn(run func(types.Context, types.AccAddress, string) types.Coin) *BankKeeper_GetBalance_Call
type BankKeeper_HasBalance_Call ¶
BankKeeper_HasBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasBalance'
func (*BankKeeper_HasBalance_Call) Return ¶
func (_c *BankKeeper_HasBalance_Call) Return(_a0 bool) *BankKeeper_HasBalance_Call
func (*BankKeeper_HasBalance_Call) Run ¶
func (_c *BankKeeper_HasBalance_Call) Run(run func(ctx types.Context, addr types.AccAddress, amt types.Coin)) *BankKeeper_HasBalance_Call
func (*BankKeeper_HasBalance_Call) RunAndReturn ¶
func (_c *BankKeeper_HasBalance_Call) RunAndReturn(run func(types.Context, types.AccAddress, types.Coin) bool) *BankKeeper_HasBalance_Call
type BankKeeper_SendCoinsFromAccountToModule_Call ¶
BankKeeper_SendCoinsFromAccountToModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromAccountToModule'
func (*BankKeeper_SendCoinsFromAccountToModule_Call) Return ¶
func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) Return(_a0 error) *BankKeeper_SendCoinsFromAccountToModule_Call
func (*BankKeeper_SendCoinsFromAccountToModule_Call) Run ¶
func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) Run(run func(ctx types.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins)) *BankKeeper_SendCoinsFromAccountToModule_Call
func (*BankKeeper_SendCoinsFromAccountToModule_Call) RunAndReturn ¶
func (_c *BankKeeper_SendCoinsFromAccountToModule_Call) RunAndReturn(run func(types.Context, types.AccAddress, string, types.Coins) error) *BankKeeper_SendCoinsFromAccountToModule_Call
type BankKeeper_SendCoinsFromModuleToAccount_Call ¶
BankKeeper_SendCoinsFromModuleToAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromModuleToAccount'
func (*BankKeeper_SendCoinsFromModuleToAccount_Call) Return ¶
func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) Return(_a0 error) *BankKeeper_SendCoinsFromModuleToAccount_Call
func (*BankKeeper_SendCoinsFromModuleToAccount_Call) Run ¶
func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) Run(run func(ctx types.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins)) *BankKeeper_SendCoinsFromModuleToAccount_Call
func (*BankKeeper_SendCoinsFromModuleToAccount_Call) RunAndReturn ¶
func (_c *BankKeeper_SendCoinsFromModuleToAccount_Call) RunAndReturn(run func(types.Context, string, types.AccAddress, types.Coins) error) *BankKeeper_SendCoinsFromModuleToAccount_Call
type BankKeeper_SendCoinsFromModuleToModule_Call ¶
BankKeeper_SendCoinsFromModuleToModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromModuleToModule'
func (*BankKeeper_SendCoinsFromModuleToModule_Call) Return ¶
func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) Return(_a0 error) *BankKeeper_SendCoinsFromModuleToModule_Call
func (*BankKeeper_SendCoinsFromModuleToModule_Call) Run ¶
func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) Run(run func(ctx types.Context, senderModule string, recipientModule string, amt types.Coins)) *BankKeeper_SendCoinsFromModuleToModule_Call
func (*BankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn ¶
func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn(run func(types.Context, string, string, types.Coins) error) *BankKeeper_SendCoinsFromModuleToModule_Call
type BankKeeper_SendCoins_Call ¶ added in v0.11.0
BankKeeper_SendCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoins'
func (*BankKeeper_SendCoins_Call) Return ¶ added in v0.11.0
func (_c *BankKeeper_SendCoins_Call) Return(_a0 error) *BankKeeper_SendCoins_Call
func (*BankKeeper_SendCoins_Call) Run ¶ added in v0.11.0
func (_c *BankKeeper_SendCoins_Call) Run(run func(ctx types.Context, fromAddr types.AccAddress, toAddr types.AccAddress, amt types.Coins)) *BankKeeper_SendCoins_Call
func (*BankKeeper_SendCoins_Call) RunAndReturn ¶ added in v0.11.0
func (_c *BankKeeper_SendCoins_Call) RunAndReturn(run func(types.Context, types.AccAddress, types.AccAddress, types.Coins) error) *BankKeeper_SendCoins_Call
type BankKeeper_SpendableCoins_Call ¶
BankKeeper_SpendableCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SpendableCoins'
func (*BankKeeper_SpendableCoins_Call) Return ¶
func (_c *BankKeeper_SpendableCoins_Call) Return(_a0 types.Coins) *BankKeeper_SpendableCoins_Call
func (*BankKeeper_SpendableCoins_Call) Run ¶
func (_c *BankKeeper_SpendableCoins_Call) Run(run func(ctx types.Context, addr types.AccAddress)) *BankKeeper_SpendableCoins_Call
func (*BankKeeper_SpendableCoins_Call) RunAndReturn ¶
func (_c *BankKeeper_SpendableCoins_Call) RunAndReturn(run func(types.Context, types.AccAddress) types.Coins) *BankKeeper_SpendableCoins_Call
type CloseLongChecker ¶ added in v0.12.0
CloseLongChecker is an autogenerated mock type for the CloseLongChecker type
func NewCloseLongChecker ¶ added in v0.12.0
func NewCloseLongChecker(t interface { mock.TestingT Cleanup(func()) }) *CloseLongChecker
NewCloseLongChecker creates a new instance of CloseLongChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CloseLongChecker) EXPECT ¶ added in v0.12.0
func (_m *CloseLongChecker) EXPECT() *CloseLongChecker_Expecter
func (*CloseLongChecker) EstimateAndRepay ¶ added in v0.12.0
func (_m *CloseLongChecker) EstimateAndRepay(ctx types.Context, mtp margintypes.MTP, pool margintypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string) (math.Int, error)
EstimateAndRepay provides a mock function with given fields: ctx, mtp, pool, ammPool, collateralAsset, custodyAsset
func (*CloseLongChecker) GetAmmPool ¶ added in v0.12.0
func (_m *CloseLongChecker) GetAmmPool(ctx types.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error)
GetAmmPool provides a mock function with given fields: ctx, poolId, tradingAsset
func (*CloseLongChecker) GetMTP ¶ added in v0.12.0
func (_m *CloseLongChecker) GetMTP(ctx types.Context, mtpAddress string, id uint64) (margintypes.MTP, error)
GetMTP provides a mock function with given fields: ctx, mtpAddress, id
func (*CloseLongChecker) GetPool ¶ added in v0.12.0
func (_m *CloseLongChecker) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
GetPool provides a mock function with given fields: ctx, poolId
func (*CloseLongChecker) HandleBorrowInterest ¶ added in v0.15.0
func (_m *CloseLongChecker) HandleBorrowInterest(ctx types.Context, mtp *margintypes.MTP, pool *margintypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string) error
HandleBorrowInterest provides a mock function with given fields: ctx, mtp, pool, ammPool, collateralAsset, custodyAsset
func (*CloseLongChecker) TakeOutCustody ¶ added in v0.12.0
func (_m *CloseLongChecker) TakeOutCustody(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool, custodyAsset string) error
TakeOutCustody provides a mock function with given fields: ctx, mtp, pool, custodyAsset
type CloseLongChecker_EstimateAndRepay_Call ¶ added in v0.12.0
CloseLongChecker_EstimateAndRepay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateAndRepay'
func (*CloseLongChecker_EstimateAndRepay_Call) Return ¶ added in v0.12.0
func (_c *CloseLongChecker_EstimateAndRepay_Call) Return(_a0 math.Int, _a1 error) *CloseLongChecker_EstimateAndRepay_Call
func (*CloseLongChecker_EstimateAndRepay_Call) Run ¶ added in v0.12.0
func (_c *CloseLongChecker_EstimateAndRepay_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool margintypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string)) *CloseLongChecker_EstimateAndRepay_Call
func (*CloseLongChecker_EstimateAndRepay_Call) RunAndReturn ¶ added in v0.12.0
func (_c *CloseLongChecker_EstimateAndRepay_Call) RunAndReturn(run func(types.Context, margintypes.MTP, margintypes.Pool, ammtypes.Pool, string, string) (math.Int, error)) *CloseLongChecker_EstimateAndRepay_Call
type CloseLongChecker_Expecter ¶ added in v0.12.0
type CloseLongChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*CloseLongChecker_Expecter) EstimateAndRepay ¶ added in v0.12.0
func (_e *CloseLongChecker_Expecter) EstimateAndRepay(ctx interface{}, mtp interface{}, pool interface{}, ammPool interface{}, collateralAsset interface{}, custodyAsset interface{}) *CloseLongChecker_EstimateAndRepay_Call
EstimateAndRepay is a helper method to define mock.On call
- ctx types.Context
- mtp margintypes.MTP
- pool margintypes.Pool
- ammPool ammtypes.Pool
- collateralAsset string
- custodyAsset string
func (*CloseLongChecker_Expecter) GetAmmPool ¶ added in v0.12.0
func (_e *CloseLongChecker_Expecter) GetAmmPool(ctx interface{}, poolId interface{}, tradingAsset interface{}) *CloseLongChecker_GetAmmPool_Call
GetAmmPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
- tradingAsset string
func (*CloseLongChecker_Expecter) GetMTP ¶ added in v0.12.0
func (_e *CloseLongChecker_Expecter) GetMTP(ctx interface{}, mtpAddress interface{}, id interface{}) *CloseLongChecker_GetMTP_Call
GetMTP is a helper method to define mock.On call
- ctx types.Context
- mtpAddress string
- id uint64
func (*CloseLongChecker_Expecter) GetPool ¶ added in v0.12.0
func (_e *CloseLongChecker_Expecter) GetPool(ctx interface{}, poolId interface{}) *CloseLongChecker_GetPool_Call
GetPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*CloseLongChecker_Expecter) HandleBorrowInterest ¶ added in v0.15.0
func (_e *CloseLongChecker_Expecter) HandleBorrowInterest(ctx interface{}, mtp interface{}, pool interface{}, ammPool interface{}, collateralAsset interface{}, custodyAsset interface{}) *CloseLongChecker_HandleBorrowInterest_Call
HandleBorrowInterest is a helper method to define mock.On call
- ctx types.Context
- mtp *margintypes.MTP
- pool *margintypes.Pool
- ammPool ammtypes.Pool
- collateralAsset string
- custodyAsset string
func (*CloseLongChecker_Expecter) TakeOutCustody ¶ added in v0.12.0
func (_e *CloseLongChecker_Expecter) TakeOutCustody(ctx interface{}, mtp interface{}, pool interface{}, custodyAsset interface{}) *CloseLongChecker_TakeOutCustody_Call
TakeOutCustody is a helper method to define mock.On call
- ctx types.Context
- mtp margintypes.MTP
- pool *margintypes.Pool
- custodyAsset string
type CloseLongChecker_GetAmmPool_Call ¶ added in v0.12.0
CloseLongChecker_GetAmmPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAmmPool'
func (*CloseLongChecker_GetAmmPool_Call) Return ¶ added in v0.12.0
func (_c *CloseLongChecker_GetAmmPool_Call) Return(_a0 ammtypes.Pool, _a1 error) *CloseLongChecker_GetAmmPool_Call
func (*CloseLongChecker_GetAmmPool_Call) Run ¶ added in v0.12.0
func (_c *CloseLongChecker_GetAmmPool_Call) Run(run func(ctx types.Context, poolId uint64, tradingAsset string)) *CloseLongChecker_GetAmmPool_Call
func (*CloseLongChecker_GetAmmPool_Call) RunAndReturn ¶ added in v0.12.0
func (_c *CloseLongChecker_GetAmmPool_Call) RunAndReturn(run func(types.Context, uint64, string) (ammtypes.Pool, error)) *CloseLongChecker_GetAmmPool_Call
type CloseLongChecker_GetMTP_Call ¶ added in v0.12.0
CloseLongChecker_GetMTP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMTP'
func (*CloseLongChecker_GetMTP_Call) Return ¶ added in v0.12.0
func (_c *CloseLongChecker_GetMTP_Call) Return(_a0 margintypes.MTP, _a1 error) *CloseLongChecker_GetMTP_Call
func (*CloseLongChecker_GetMTP_Call) Run ¶ added in v0.12.0
func (_c *CloseLongChecker_GetMTP_Call) Run(run func(ctx types.Context, mtpAddress string, id uint64)) *CloseLongChecker_GetMTP_Call
func (*CloseLongChecker_GetMTP_Call) RunAndReturn ¶ added in v0.12.0
func (_c *CloseLongChecker_GetMTP_Call) RunAndReturn(run func(types.Context, string, uint64) (margintypes.MTP, error)) *CloseLongChecker_GetMTP_Call
type CloseLongChecker_GetPool_Call ¶ added in v0.12.0
CloseLongChecker_GetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPool'
func (*CloseLongChecker_GetPool_Call) Return ¶ added in v0.12.0
func (_c *CloseLongChecker_GetPool_Call) Return(val margintypes.Pool, found bool) *CloseLongChecker_GetPool_Call
func (*CloseLongChecker_GetPool_Call) Run ¶ added in v0.12.0
func (_c *CloseLongChecker_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *CloseLongChecker_GetPool_Call
func (*CloseLongChecker_GetPool_Call) RunAndReturn ¶ added in v0.12.0
func (_c *CloseLongChecker_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *CloseLongChecker_GetPool_Call
type CloseLongChecker_HandleBorrowInterest_Call ¶ added in v0.15.0
CloseLongChecker_HandleBorrowInterest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleBorrowInterest'
func (*CloseLongChecker_HandleBorrowInterest_Call) Return ¶ added in v0.15.0
func (_c *CloseLongChecker_HandleBorrowInterest_Call) Return(_a0 error) *CloseLongChecker_HandleBorrowInterest_Call
func (*CloseLongChecker_HandleBorrowInterest_Call) Run ¶ added in v0.15.0
func (_c *CloseLongChecker_HandleBorrowInterest_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP, pool *margintypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string)) *CloseLongChecker_HandleBorrowInterest_Call
func (*CloseLongChecker_HandleBorrowInterest_Call) RunAndReturn ¶ added in v0.15.0
func (_c *CloseLongChecker_HandleBorrowInterest_Call) RunAndReturn(run func(types.Context, *margintypes.MTP, *margintypes.Pool, ammtypes.Pool, string, string) error) *CloseLongChecker_HandleBorrowInterest_Call
type CloseLongChecker_TakeOutCustody_Call ¶ added in v0.12.0
CloseLongChecker_TakeOutCustody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TakeOutCustody'
func (*CloseLongChecker_TakeOutCustody_Call) Return ¶ added in v0.12.0
func (_c *CloseLongChecker_TakeOutCustody_Call) Return(_a0 error) *CloseLongChecker_TakeOutCustody_Call
func (*CloseLongChecker_TakeOutCustody_Call) Run ¶ added in v0.12.0
func (_c *CloseLongChecker_TakeOutCustody_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool, custodyAsset string)) *CloseLongChecker_TakeOutCustody_Call
func (*CloseLongChecker_TakeOutCustody_Call) RunAndReturn ¶ added in v0.12.0
func (_c *CloseLongChecker_TakeOutCustody_Call) RunAndReturn(run func(types.Context, margintypes.MTP, *margintypes.Pool, string) error) *CloseLongChecker_TakeOutCustody_Call
type CloseShortChecker ¶ added in v0.12.0
CloseShortChecker is an autogenerated mock type for the CloseShortChecker type
func NewCloseShortChecker ¶ added in v0.12.0
func NewCloseShortChecker(t interface { mock.TestingT Cleanup(func()) }) *CloseShortChecker
NewCloseShortChecker creates a new instance of CloseShortChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CloseShortChecker) EXPECT ¶ added in v0.12.0
func (_m *CloseShortChecker) EXPECT() *CloseShortChecker_Expecter
func (*CloseShortChecker) EstimateAndRepay ¶ added in v0.12.0
func (_m *CloseShortChecker) EstimateAndRepay(ctx types.Context, mtp margintypes.MTP, pool margintypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string) (math.Int, error)
EstimateAndRepay provides a mock function with given fields: ctx, mtp, pool, ammPool, collateralAsset, custodyAsset
func (*CloseShortChecker) GetAmmPool ¶ added in v0.12.0
func (_m *CloseShortChecker) GetAmmPool(ctx types.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error)
GetAmmPool provides a mock function with given fields: ctx, poolId, tradingAsset
func (*CloseShortChecker) GetMTP ¶ added in v0.12.0
func (_m *CloseShortChecker) GetMTP(ctx types.Context, mtpAddress string, id uint64) (margintypes.MTP, error)
GetMTP provides a mock function with given fields: ctx, mtpAddress, id
func (*CloseShortChecker) GetPool ¶ added in v0.12.0
func (_m *CloseShortChecker) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
GetPool provides a mock function with given fields: ctx, poolId
func (*CloseShortChecker) HandleBorrowInterest ¶ added in v0.15.0
func (_m *CloseShortChecker) HandleBorrowInterest(ctx types.Context, mtp *margintypes.MTP, pool *margintypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string) error
HandleBorrowInterest provides a mock function with given fields: ctx, mtp, pool, ammPool, collateralAsset, custodyAsset
func (*CloseShortChecker) TakeOutCustody ¶ added in v0.12.0
func (_m *CloseShortChecker) TakeOutCustody(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool, custodyAsset string) error
TakeOutCustody provides a mock function with given fields: ctx, mtp, pool, custodyAsset
type CloseShortChecker_EstimateAndRepay_Call ¶ added in v0.12.0
CloseShortChecker_EstimateAndRepay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateAndRepay'
func (*CloseShortChecker_EstimateAndRepay_Call) Return ¶ added in v0.12.0
func (_c *CloseShortChecker_EstimateAndRepay_Call) Return(_a0 math.Int, _a1 error) *CloseShortChecker_EstimateAndRepay_Call
func (*CloseShortChecker_EstimateAndRepay_Call) Run ¶ added in v0.12.0
func (_c *CloseShortChecker_EstimateAndRepay_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool margintypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string)) *CloseShortChecker_EstimateAndRepay_Call
func (*CloseShortChecker_EstimateAndRepay_Call) RunAndReturn ¶ added in v0.12.0
func (_c *CloseShortChecker_EstimateAndRepay_Call) RunAndReturn(run func(types.Context, margintypes.MTP, margintypes.Pool, ammtypes.Pool, string, string) (math.Int, error)) *CloseShortChecker_EstimateAndRepay_Call
type CloseShortChecker_Expecter ¶ added in v0.12.0
type CloseShortChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*CloseShortChecker_Expecter) EstimateAndRepay ¶ added in v0.12.0
func (_e *CloseShortChecker_Expecter) EstimateAndRepay(ctx interface{}, mtp interface{}, pool interface{}, ammPool interface{}, collateralAsset interface{}, custodyAsset interface{}) *CloseShortChecker_EstimateAndRepay_Call
EstimateAndRepay is a helper method to define mock.On call
- ctx types.Context
- mtp margintypes.MTP
- pool margintypes.Pool
- ammPool ammtypes.Pool
- collateralAsset string
- custodyAsset string
func (*CloseShortChecker_Expecter) GetAmmPool ¶ added in v0.12.0
func (_e *CloseShortChecker_Expecter) GetAmmPool(ctx interface{}, poolId interface{}, tradingAsset interface{}) *CloseShortChecker_GetAmmPool_Call
GetAmmPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
- tradingAsset string
func (*CloseShortChecker_Expecter) GetMTP ¶ added in v0.12.0
func (_e *CloseShortChecker_Expecter) GetMTP(ctx interface{}, mtpAddress interface{}, id interface{}) *CloseShortChecker_GetMTP_Call
GetMTP is a helper method to define mock.On call
- ctx types.Context
- mtpAddress string
- id uint64
func (*CloseShortChecker_Expecter) GetPool ¶ added in v0.12.0
func (_e *CloseShortChecker_Expecter) GetPool(ctx interface{}, poolId interface{}) *CloseShortChecker_GetPool_Call
GetPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*CloseShortChecker_Expecter) HandleBorrowInterest ¶ added in v0.15.0
func (_e *CloseShortChecker_Expecter) HandleBorrowInterest(ctx interface{}, mtp interface{}, pool interface{}, ammPool interface{}, collateralAsset interface{}, custodyAsset interface{}) *CloseShortChecker_HandleBorrowInterest_Call
HandleBorrowInterest is a helper method to define mock.On call
- ctx types.Context
- mtp *margintypes.MTP
- pool *margintypes.Pool
- ammPool ammtypes.Pool
- collateralAsset string
- custodyAsset string
func (*CloseShortChecker_Expecter) TakeOutCustody ¶ added in v0.12.0
func (_e *CloseShortChecker_Expecter) TakeOutCustody(ctx interface{}, mtp interface{}, pool interface{}, custodyAsset interface{}) *CloseShortChecker_TakeOutCustody_Call
TakeOutCustody is a helper method to define mock.On call
- ctx types.Context
- mtp margintypes.MTP
- pool *margintypes.Pool
- custodyAsset string
type CloseShortChecker_GetAmmPool_Call ¶ added in v0.12.0
CloseShortChecker_GetAmmPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAmmPool'
func (*CloseShortChecker_GetAmmPool_Call) Return ¶ added in v0.12.0
func (_c *CloseShortChecker_GetAmmPool_Call) Return(_a0 ammtypes.Pool, _a1 error) *CloseShortChecker_GetAmmPool_Call
func (*CloseShortChecker_GetAmmPool_Call) Run ¶ added in v0.12.0
func (_c *CloseShortChecker_GetAmmPool_Call) Run(run func(ctx types.Context, poolId uint64, tradingAsset string)) *CloseShortChecker_GetAmmPool_Call
func (*CloseShortChecker_GetAmmPool_Call) RunAndReturn ¶ added in v0.12.0
func (_c *CloseShortChecker_GetAmmPool_Call) RunAndReturn(run func(types.Context, uint64, string) (ammtypes.Pool, error)) *CloseShortChecker_GetAmmPool_Call
type CloseShortChecker_GetMTP_Call ¶ added in v0.12.0
CloseShortChecker_GetMTP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMTP'
func (*CloseShortChecker_GetMTP_Call) Return ¶ added in v0.12.0
func (_c *CloseShortChecker_GetMTP_Call) Return(_a0 margintypes.MTP, _a1 error) *CloseShortChecker_GetMTP_Call
func (*CloseShortChecker_GetMTP_Call) Run ¶ added in v0.12.0
func (_c *CloseShortChecker_GetMTP_Call) Run(run func(ctx types.Context, mtpAddress string, id uint64)) *CloseShortChecker_GetMTP_Call
func (*CloseShortChecker_GetMTP_Call) RunAndReturn ¶ added in v0.12.0
func (_c *CloseShortChecker_GetMTP_Call) RunAndReturn(run func(types.Context, string, uint64) (margintypes.MTP, error)) *CloseShortChecker_GetMTP_Call
type CloseShortChecker_GetPool_Call ¶ added in v0.12.0
CloseShortChecker_GetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPool'
func (*CloseShortChecker_GetPool_Call) Return ¶ added in v0.12.0
func (_c *CloseShortChecker_GetPool_Call) Return(val margintypes.Pool, found bool) *CloseShortChecker_GetPool_Call
func (*CloseShortChecker_GetPool_Call) Run ¶ added in v0.12.0
func (_c *CloseShortChecker_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *CloseShortChecker_GetPool_Call
func (*CloseShortChecker_GetPool_Call) RunAndReturn ¶ added in v0.12.0
func (_c *CloseShortChecker_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *CloseShortChecker_GetPool_Call
type CloseShortChecker_HandleBorrowInterest_Call ¶ added in v0.15.0
CloseShortChecker_HandleBorrowInterest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleBorrowInterest'
func (*CloseShortChecker_HandleBorrowInterest_Call) Return ¶ added in v0.15.0
func (_c *CloseShortChecker_HandleBorrowInterest_Call) Return(_a0 error) *CloseShortChecker_HandleBorrowInterest_Call
func (*CloseShortChecker_HandleBorrowInterest_Call) Run ¶ added in v0.15.0
func (_c *CloseShortChecker_HandleBorrowInterest_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP, pool *margintypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string)) *CloseShortChecker_HandleBorrowInterest_Call
func (*CloseShortChecker_HandleBorrowInterest_Call) RunAndReturn ¶ added in v0.15.0
func (_c *CloseShortChecker_HandleBorrowInterest_Call) RunAndReturn(run func(types.Context, *margintypes.MTP, *margintypes.Pool, ammtypes.Pool, string, string) error) *CloseShortChecker_HandleBorrowInterest_Call
type CloseShortChecker_TakeOutCustody_Call ¶ added in v0.12.0
CloseShortChecker_TakeOutCustody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TakeOutCustody'
func (*CloseShortChecker_TakeOutCustody_Call) Return ¶ added in v0.12.0
func (_c *CloseShortChecker_TakeOutCustody_Call) Return(_a0 error) *CloseShortChecker_TakeOutCustody_Call
func (*CloseShortChecker_TakeOutCustody_Call) Run ¶ added in v0.12.0
func (_c *CloseShortChecker_TakeOutCustody_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool, custodyAsset string)) *CloseShortChecker_TakeOutCustody_Call
func (*CloseShortChecker_TakeOutCustody_Call) RunAndReturn ¶ added in v0.12.0
func (_c *CloseShortChecker_TakeOutCustody_Call) RunAndReturn(run func(types.Context, margintypes.MTP, *margintypes.Pool, string) error) *CloseShortChecker_TakeOutCustody_Call
type OpenChecker ¶ added in v0.12.0
OpenChecker is an autogenerated mock type for the OpenChecker type
func NewOpenChecker ¶ added in v0.12.0
func NewOpenChecker(t interface { mock.TestingT Cleanup(func()) }) *OpenChecker
NewOpenChecker creates a new instance of OpenChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OpenChecker) CheckMaxOpenPositions ¶ added in v0.12.0
func (_m *OpenChecker) CheckMaxOpenPositions(ctx types.Context) error
CheckMaxOpenPositions provides a mock function with given fields: ctx
func (*OpenChecker) CheckPoolHealth ¶ added in v0.12.0
func (_m *OpenChecker) CheckPoolHealth(ctx types.Context, poolId uint64) error
CheckPoolHealth provides a mock function with given fields: ctx, poolId
func (*OpenChecker) CheckSameAssetPosition ¶ added in v0.16.0
func (_m *OpenChecker) CheckSameAssetPosition(ctx types.Context, msg *margintypes.MsgOpen) *margintypes.MTP
CheckSameAssetPosition provides a mock function with given fields: ctx, msg
func (*OpenChecker) CheckUserAuthorization ¶ added in v0.12.0
func (_m *OpenChecker) CheckUserAuthorization(ctx types.Context, msg *margintypes.MsgOpen) error
CheckUserAuthorization provides a mock function with given fields: ctx, msg
func (*OpenChecker) EXPECT ¶ added in v0.12.0
func (_m *OpenChecker) EXPECT() *OpenChecker_Expecter
func (*OpenChecker) EmitOpenEvent ¶ added in v0.12.0
func (_m *OpenChecker) EmitOpenEvent(ctx types.Context, mtp *margintypes.MTP)
EmitOpenEvent provides a mock function with given fields: ctx, mtp
func (*OpenChecker) GetMaxOpenPositions ¶ added in v0.12.0
func (_m *OpenChecker) GetMaxOpenPositions(ctx types.Context) uint64
GetMaxOpenPositions provides a mock function with given fields: ctx
func (*OpenChecker) GetOpenMTPCount ¶ added in v0.12.0
func (_m *OpenChecker) GetOpenMTPCount(ctx types.Context) uint64
GetOpenMTPCount provides a mock function with given fields: ctx
func (*OpenChecker) OpenLong ¶ added in v0.12.0
func (_m *OpenChecker) OpenLong(ctx types.Context, poolId uint64, msg *margintypes.MsgOpen, baseCurrency string) (*margintypes.MTP, error)
OpenLong provides a mock function with given fields: ctx, poolId, msg, baseCurrency
func (*OpenChecker) OpenShort ¶ added in v0.12.0
func (_m *OpenChecker) OpenShort(ctx types.Context, poolId uint64, msg *margintypes.MsgOpen, baseCurrency string) (*margintypes.MTP, error)
OpenShort provides a mock function with given fields: ctx, poolId, msg, baseCurrency
func (*OpenChecker) PreparePools ¶ added in v0.12.0
func (_m *OpenChecker) PreparePools(ctx types.Context, tradingAsset string) (uint64, ammtypes.Pool, margintypes.Pool, error)
PreparePools provides a mock function with given fields: ctx, tradingAsset
func (*OpenChecker) SetMTP ¶ added in v0.12.0
func (_m *OpenChecker) SetMTP(ctx types.Context, mtp *margintypes.MTP) error
SetMTP provides a mock function with given fields: ctx, mtp
type OpenChecker_CheckMaxOpenPositions_Call ¶ added in v0.12.0
OpenChecker_CheckMaxOpenPositions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckMaxOpenPositions'
func (*OpenChecker_CheckMaxOpenPositions_Call) Return ¶ added in v0.12.0
func (_c *OpenChecker_CheckMaxOpenPositions_Call) Return(_a0 error) *OpenChecker_CheckMaxOpenPositions_Call
func (*OpenChecker_CheckMaxOpenPositions_Call) Run ¶ added in v0.12.0
func (_c *OpenChecker_CheckMaxOpenPositions_Call) Run(run func(ctx types.Context)) *OpenChecker_CheckMaxOpenPositions_Call
func (*OpenChecker_CheckMaxOpenPositions_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenChecker_CheckMaxOpenPositions_Call) RunAndReturn(run func(types.Context) error) *OpenChecker_CheckMaxOpenPositions_Call
type OpenChecker_CheckPoolHealth_Call ¶ added in v0.12.0
OpenChecker_CheckPoolHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckPoolHealth'
func (*OpenChecker_CheckPoolHealth_Call) Return ¶ added in v0.12.0
func (_c *OpenChecker_CheckPoolHealth_Call) Return(_a0 error) *OpenChecker_CheckPoolHealth_Call
func (*OpenChecker_CheckPoolHealth_Call) Run ¶ added in v0.12.0
func (_c *OpenChecker_CheckPoolHealth_Call) Run(run func(ctx types.Context, poolId uint64)) *OpenChecker_CheckPoolHealth_Call
func (*OpenChecker_CheckPoolHealth_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenChecker_CheckPoolHealth_Call) RunAndReturn(run func(types.Context, uint64) error) *OpenChecker_CheckPoolHealth_Call
type OpenChecker_CheckSameAssetPosition_Call ¶ added in v0.16.0
OpenChecker_CheckSameAssetPosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckSameAssetPosition'
func (*OpenChecker_CheckSameAssetPosition_Call) Return ¶ added in v0.16.0
func (_c *OpenChecker_CheckSameAssetPosition_Call) Return(_a0 *margintypes.MTP) *OpenChecker_CheckSameAssetPosition_Call
func (*OpenChecker_CheckSameAssetPosition_Call) Run ¶ added in v0.16.0
func (_c *OpenChecker_CheckSameAssetPosition_Call) Run(run func(ctx types.Context, msg *margintypes.MsgOpen)) *OpenChecker_CheckSameAssetPosition_Call
func (*OpenChecker_CheckSameAssetPosition_Call) RunAndReturn ¶ added in v0.16.0
func (_c *OpenChecker_CheckSameAssetPosition_Call) RunAndReturn(run func(types.Context, *margintypes.MsgOpen) *margintypes.MTP) *OpenChecker_CheckSameAssetPosition_Call
type OpenChecker_CheckUserAuthorization_Call ¶ added in v0.12.0
OpenChecker_CheckUserAuthorization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckUserAuthorization'
func (*OpenChecker_CheckUserAuthorization_Call) Return ¶ added in v0.12.0
func (_c *OpenChecker_CheckUserAuthorization_Call) Return(_a0 error) *OpenChecker_CheckUserAuthorization_Call
func (*OpenChecker_CheckUserAuthorization_Call) Run ¶ added in v0.12.0
func (_c *OpenChecker_CheckUserAuthorization_Call) Run(run func(ctx types.Context, msg *margintypes.MsgOpen)) *OpenChecker_CheckUserAuthorization_Call
func (*OpenChecker_CheckUserAuthorization_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenChecker_CheckUserAuthorization_Call) RunAndReturn(run func(types.Context, *margintypes.MsgOpen) error) *OpenChecker_CheckUserAuthorization_Call
type OpenChecker_EmitOpenEvent_Call ¶ added in v0.12.0
OpenChecker_EmitOpenEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EmitOpenEvent'
func (*OpenChecker_EmitOpenEvent_Call) Return ¶ added in v0.12.0
func (_c *OpenChecker_EmitOpenEvent_Call) Return() *OpenChecker_EmitOpenEvent_Call
func (*OpenChecker_EmitOpenEvent_Call) Run ¶ added in v0.12.0
func (_c *OpenChecker_EmitOpenEvent_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP)) *OpenChecker_EmitOpenEvent_Call
func (*OpenChecker_EmitOpenEvent_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenChecker_EmitOpenEvent_Call) RunAndReturn(run func(types.Context, *margintypes.MTP)) *OpenChecker_EmitOpenEvent_Call
type OpenChecker_Expecter ¶ added in v0.12.0
type OpenChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*OpenChecker_Expecter) CheckMaxOpenPositions ¶ added in v0.12.0
func (_e *OpenChecker_Expecter) CheckMaxOpenPositions(ctx interface{}) *OpenChecker_CheckMaxOpenPositions_Call
CheckMaxOpenPositions is a helper method to define mock.On call
- ctx types.Context
func (*OpenChecker_Expecter) CheckPoolHealth ¶ added in v0.12.0
func (_e *OpenChecker_Expecter) CheckPoolHealth(ctx interface{}, poolId interface{}) *OpenChecker_CheckPoolHealth_Call
CheckPoolHealth is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*OpenChecker_Expecter) CheckSameAssetPosition ¶ added in v0.16.0
func (_e *OpenChecker_Expecter) CheckSameAssetPosition(ctx interface{}, msg interface{}) *OpenChecker_CheckSameAssetPosition_Call
CheckSameAssetPosition is a helper method to define mock.On call
- ctx types.Context
- msg *margintypes.MsgOpen
func (*OpenChecker_Expecter) CheckUserAuthorization ¶ added in v0.12.0
func (_e *OpenChecker_Expecter) CheckUserAuthorization(ctx interface{}, msg interface{}) *OpenChecker_CheckUserAuthorization_Call
CheckUserAuthorization is a helper method to define mock.On call
- ctx types.Context
- msg *margintypes.MsgOpen
func (*OpenChecker_Expecter) EmitOpenEvent ¶ added in v0.12.0
func (_e *OpenChecker_Expecter) EmitOpenEvent(ctx interface{}, mtp interface{}) *OpenChecker_EmitOpenEvent_Call
EmitOpenEvent is a helper method to define mock.On call
- ctx types.Context
- mtp *margintypes.MTP
func (*OpenChecker_Expecter) GetMaxOpenPositions ¶ added in v0.12.0
func (_e *OpenChecker_Expecter) GetMaxOpenPositions(ctx interface{}) *OpenChecker_GetMaxOpenPositions_Call
GetMaxOpenPositions is a helper method to define mock.On call
- ctx types.Context
func (*OpenChecker_Expecter) GetOpenMTPCount ¶ added in v0.12.0
func (_e *OpenChecker_Expecter) GetOpenMTPCount(ctx interface{}) *OpenChecker_GetOpenMTPCount_Call
GetOpenMTPCount is a helper method to define mock.On call
- ctx types.Context
func (*OpenChecker_Expecter) OpenLong ¶ added in v0.12.0
func (_e *OpenChecker_Expecter) OpenLong(ctx interface{}, poolId interface{}, msg interface{}, baseCurrency interface{}) *OpenChecker_OpenLong_Call
OpenLong is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
- msg *margintypes.MsgOpen
- baseCurrency string
func (*OpenChecker_Expecter) OpenShort ¶ added in v0.12.0
func (_e *OpenChecker_Expecter) OpenShort(ctx interface{}, poolId interface{}, msg interface{}, baseCurrency interface{}) *OpenChecker_OpenShort_Call
OpenShort is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
- msg *margintypes.MsgOpen
- baseCurrency string
func (*OpenChecker_Expecter) PreparePools ¶ added in v0.12.0
func (_e *OpenChecker_Expecter) PreparePools(ctx interface{}, tradingAsset interface{}) *OpenChecker_PreparePools_Call
PreparePools is a helper method to define mock.On call
- ctx types.Context
- tradingAsset string
func (*OpenChecker_Expecter) SetMTP ¶ added in v0.12.0
func (_e *OpenChecker_Expecter) SetMTP(ctx interface{}, mtp interface{}) *OpenChecker_SetMTP_Call
SetMTP is a helper method to define mock.On call
- ctx types.Context
- mtp *margintypes.MTP
type OpenChecker_GetMaxOpenPositions_Call ¶ added in v0.12.0
OpenChecker_GetMaxOpenPositions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMaxOpenPositions'
func (*OpenChecker_GetMaxOpenPositions_Call) Return ¶ added in v0.12.0
func (_c *OpenChecker_GetMaxOpenPositions_Call) Return(_a0 uint64) *OpenChecker_GetMaxOpenPositions_Call
func (*OpenChecker_GetMaxOpenPositions_Call) Run ¶ added in v0.12.0
func (_c *OpenChecker_GetMaxOpenPositions_Call) Run(run func(ctx types.Context)) *OpenChecker_GetMaxOpenPositions_Call
func (*OpenChecker_GetMaxOpenPositions_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenChecker_GetMaxOpenPositions_Call) RunAndReturn(run func(types.Context) uint64) *OpenChecker_GetMaxOpenPositions_Call
type OpenChecker_GetOpenMTPCount_Call ¶ added in v0.12.0
OpenChecker_GetOpenMTPCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOpenMTPCount'
func (*OpenChecker_GetOpenMTPCount_Call) Return ¶ added in v0.12.0
func (_c *OpenChecker_GetOpenMTPCount_Call) Return(_a0 uint64) *OpenChecker_GetOpenMTPCount_Call
func (*OpenChecker_GetOpenMTPCount_Call) Run ¶ added in v0.12.0
func (_c *OpenChecker_GetOpenMTPCount_Call) Run(run func(ctx types.Context)) *OpenChecker_GetOpenMTPCount_Call
func (*OpenChecker_GetOpenMTPCount_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenChecker_GetOpenMTPCount_Call) RunAndReturn(run func(types.Context) uint64) *OpenChecker_GetOpenMTPCount_Call
type OpenChecker_OpenLong_Call ¶ added in v0.12.0
OpenChecker_OpenLong_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenLong'
func (*OpenChecker_OpenLong_Call) Return ¶ added in v0.12.0
func (_c *OpenChecker_OpenLong_Call) Return(_a0 *margintypes.MTP, _a1 error) *OpenChecker_OpenLong_Call
func (*OpenChecker_OpenLong_Call) Run ¶ added in v0.12.0
func (_c *OpenChecker_OpenLong_Call) Run(run func(ctx types.Context, poolId uint64, msg *margintypes.MsgOpen, baseCurrency string)) *OpenChecker_OpenLong_Call
func (*OpenChecker_OpenLong_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenChecker_OpenLong_Call) RunAndReturn(run func(types.Context, uint64, *margintypes.MsgOpen, string) (*margintypes.MTP, error)) *OpenChecker_OpenLong_Call
type OpenChecker_OpenShort_Call ¶ added in v0.12.0
OpenChecker_OpenShort_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenShort'
func (*OpenChecker_OpenShort_Call) Return ¶ added in v0.12.0
func (_c *OpenChecker_OpenShort_Call) Return(_a0 *margintypes.MTP, _a1 error) *OpenChecker_OpenShort_Call
func (*OpenChecker_OpenShort_Call) Run ¶ added in v0.12.0
func (_c *OpenChecker_OpenShort_Call) Run(run func(ctx types.Context, poolId uint64, msg *margintypes.MsgOpen, baseCurrency string)) *OpenChecker_OpenShort_Call
func (*OpenChecker_OpenShort_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenChecker_OpenShort_Call) RunAndReturn(run func(types.Context, uint64, *margintypes.MsgOpen, string) (*margintypes.MTP, error)) *OpenChecker_OpenShort_Call
type OpenChecker_PreparePools_Call ¶ added in v0.12.0
OpenChecker_PreparePools_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PreparePools'
func (*OpenChecker_PreparePools_Call) Return ¶ added in v0.12.0
func (_c *OpenChecker_PreparePools_Call) Return(poolId uint64, ammPool ammtypes.Pool, pool margintypes.Pool, err error) *OpenChecker_PreparePools_Call
func (*OpenChecker_PreparePools_Call) Run ¶ added in v0.12.0
func (_c *OpenChecker_PreparePools_Call) Run(run func(ctx types.Context, tradingAsset string)) *OpenChecker_PreparePools_Call
func (*OpenChecker_PreparePools_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenChecker_PreparePools_Call) RunAndReturn(run func(types.Context, string) (uint64, ammtypes.Pool, margintypes.Pool, error)) *OpenChecker_PreparePools_Call
type OpenChecker_SetMTP_Call ¶ added in v0.12.0
OpenChecker_SetMTP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMTP'
func (*OpenChecker_SetMTP_Call) Return ¶ added in v0.12.0
func (_c *OpenChecker_SetMTP_Call) Return(_a0 error) *OpenChecker_SetMTP_Call
func (*OpenChecker_SetMTP_Call) Run ¶ added in v0.12.0
func (_c *OpenChecker_SetMTP_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP)) *OpenChecker_SetMTP_Call
func (*OpenChecker_SetMTP_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenChecker_SetMTP_Call) RunAndReturn(run func(types.Context, *margintypes.MTP) error) *OpenChecker_SetMTP_Call
type OpenLongChecker ¶
OpenLongChecker is an autogenerated mock type for the OpenLongChecker type
func NewOpenLongChecker ¶
func NewOpenLongChecker(t interface { mock.TestingT Cleanup(func()) }) *OpenLongChecker
NewOpenLongChecker creates a new instance of OpenLongChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OpenLongChecker) Borrow ¶
func (_m *OpenLongChecker) Borrow(ctx types.Context, collateralAsset string, custodyAsset string, collateralAmount math.Int, custodyAmount math.Int, mtp *margintypes.MTP, ammPool *ammtypes.Pool, pool *margintypes.Pool, eta math.LegacyDec, baseCurrency string) error
Borrow provides a mock function with given fields: ctx, collateralAsset, custodyAsset, collateralAmount, custodyAmount, mtp, ammPool, pool, eta, baseCurrency
func (*OpenLongChecker) CalcMTPConsolidateCollateral ¶ added in v0.12.0
func (_m *OpenLongChecker) CalcMTPConsolidateCollateral(ctx types.Context, mtp *margintypes.MTP, baseCurrency string) error
CalcMTPConsolidateCollateral provides a mock function with given fields: ctx, mtp, baseCurrency
func (*OpenLongChecker) CheckMinLiabilities ¶
func (_m *OpenLongChecker) CheckMinLiabilities(ctx types.Context, collateralTokenAmt types.Coin, eta math.LegacyDec, pool margintypes.Pool, ammPool ammtypes.Pool, borrowAsset string) error
CheckMinLiabilities provides a mock function with given fields: ctx, collateralTokenAmt, eta, pool, ammPool, borrowAsset
func (*OpenLongChecker) CheckSameAssetPosition ¶ added in v0.16.0
func (_m *OpenLongChecker) CheckSameAssetPosition(ctx types.Context, msg *margintypes.MsgOpen) *margintypes.MTP
CheckSameAssetPosition provides a mock function with given fields: ctx, msg
func (*OpenLongChecker) EXPECT ¶
func (_m *OpenLongChecker) EXPECT() *OpenLongChecker_Expecter
func (*OpenLongChecker) EstimateSwap ¶
func (_m *OpenLongChecker) EstimateSwap(ctx types.Context, leveragedAmtTokenIn types.Coin, borrowAsset string, ammPool ammtypes.Pool) (math.Int, error)
EstimateSwap provides a mock function with given fields: ctx, leveragedAmtTokenIn, borrowAsset, ammPool
func (*OpenLongChecker) EstimateSwapGivenOut ¶ added in v0.12.0
func (_m *OpenLongChecker) EstimateSwapGivenOut(ctx types.Context, tokenOutAmount types.Coin, tokenInDenom string, ammPool ammtypes.Pool) (math.Int, error)
EstimateSwapGivenOut provides a mock function with given fields: ctx, tokenOutAmount, tokenInDenom, ammPool
func (*OpenLongChecker) GetAmmPool ¶
func (_m *OpenLongChecker) GetAmmPool(ctx types.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error)
GetAmmPool provides a mock function with given fields: ctx, poolId, tradingAsset
func (*OpenLongChecker) GetMaxLeverageParam ¶
func (_m *OpenLongChecker) GetMaxLeverageParam(ctx types.Context) math.LegacyDec
GetMaxLeverageParam provides a mock function with given fields: ctx
func (*OpenLongChecker) GetPool ¶
func (_m *OpenLongChecker) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
GetPool provides a mock function with given fields: ctx, poolId
func (*OpenLongChecker) GetSafetyFactor ¶
func (_m *OpenLongChecker) GetSafetyFactor(ctx types.Context) math.LegacyDec
GetSafetyFactor provides a mock function with given fields: ctx
func (*OpenLongChecker) IsPoolEnabled ¶
func (_m *OpenLongChecker) IsPoolEnabled(ctx types.Context, poolId uint64) bool
IsPoolEnabled provides a mock function with given fields: ctx, poolId
func (*OpenLongChecker) SetMTP ¶ added in v0.12.0
func (_m *OpenLongChecker) SetMTP(ctx types.Context, mtp *margintypes.MTP) error
SetMTP provides a mock function with given fields: ctx, mtp
func (*OpenLongChecker) SetPool ¶
func (_m *OpenLongChecker) SetPool(ctx types.Context, pool margintypes.Pool)
SetPool provides a mock function with given fields: ctx, pool
func (*OpenLongChecker) TakeInCustody ¶
func (_m *OpenLongChecker) TakeInCustody(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool) error
TakeInCustody provides a mock function with given fields: ctx, mtp, pool
func (*OpenLongChecker) UpdateMTPHealth ¶
func (_m *OpenLongChecker) UpdateMTPHealth(ctx types.Context, mtp margintypes.MTP, ammPool ammtypes.Pool, baseCurrency string) (math.LegacyDec, error)
UpdateMTPHealth provides a mock function with given fields: ctx, mtp, ammPool, baseCurrency
func (*OpenLongChecker) UpdatePoolHealth ¶
func (_m *OpenLongChecker) UpdatePoolHealth(ctx types.Context, pool *margintypes.Pool) error
UpdatePoolHealth provides a mock function with given fields: ctx, pool
type OpenLongChecker_Borrow_Call ¶
OpenLongChecker_Borrow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Borrow'
func (*OpenLongChecker_Borrow_Call) Return ¶
func (_c *OpenLongChecker_Borrow_Call) Return(_a0 error) *OpenLongChecker_Borrow_Call
func (*OpenLongChecker_Borrow_Call) Run ¶
func (_c *OpenLongChecker_Borrow_Call) Run(run func(ctx types.Context, collateralAsset string, custodyAsset string, collateralAmount math.Int, custodyAmount math.Int, mtp *margintypes.MTP, ammPool *ammtypes.Pool, pool *margintypes.Pool, eta math.LegacyDec, baseCurrency string)) *OpenLongChecker_Borrow_Call
func (*OpenLongChecker_Borrow_Call) RunAndReturn ¶
func (_c *OpenLongChecker_Borrow_Call) RunAndReturn(run func(types.Context, string, string, math.Int, math.Int, *margintypes.MTP, *ammtypes.Pool, *margintypes.Pool, math.LegacyDec, string) error) *OpenLongChecker_Borrow_Call
type OpenLongChecker_CalcMTPConsolidateCollateral_Call ¶ added in v0.12.0
OpenLongChecker_CalcMTPConsolidateCollateral_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CalcMTPConsolidateCollateral'
func (*OpenLongChecker_CalcMTPConsolidateCollateral_Call) Return ¶ added in v0.12.0
func (_c *OpenLongChecker_CalcMTPConsolidateCollateral_Call) Return(_a0 error) *OpenLongChecker_CalcMTPConsolidateCollateral_Call
func (*OpenLongChecker_CalcMTPConsolidateCollateral_Call) Run ¶ added in v0.12.0
func (_c *OpenLongChecker_CalcMTPConsolidateCollateral_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP, baseCurrency string)) *OpenLongChecker_CalcMTPConsolidateCollateral_Call
func (*OpenLongChecker_CalcMTPConsolidateCollateral_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenLongChecker_CalcMTPConsolidateCollateral_Call) RunAndReturn(run func(types.Context, *margintypes.MTP, string) error) *OpenLongChecker_CalcMTPConsolidateCollateral_Call
type OpenLongChecker_CheckMinLiabilities_Call ¶
OpenLongChecker_CheckMinLiabilities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckMinLiabilities'
func (*OpenLongChecker_CheckMinLiabilities_Call) Return ¶
func (_c *OpenLongChecker_CheckMinLiabilities_Call) Return(_a0 error) *OpenLongChecker_CheckMinLiabilities_Call
func (*OpenLongChecker_CheckMinLiabilities_Call) Run ¶
func (_c *OpenLongChecker_CheckMinLiabilities_Call) Run(run func(ctx types.Context, collateralTokenAmt types.Coin, eta math.LegacyDec, pool margintypes.Pool, ammPool ammtypes.Pool, borrowAsset string)) *OpenLongChecker_CheckMinLiabilities_Call
func (*OpenLongChecker_CheckMinLiabilities_Call) RunAndReturn ¶
func (_c *OpenLongChecker_CheckMinLiabilities_Call) RunAndReturn(run func(types.Context, types.Coin, math.LegacyDec, margintypes.Pool, ammtypes.Pool, string) error) *OpenLongChecker_CheckMinLiabilities_Call
type OpenLongChecker_CheckSameAssetPosition_Call ¶ added in v0.16.0
OpenLongChecker_CheckSameAssetPosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckSameAssetPosition'
func (*OpenLongChecker_CheckSameAssetPosition_Call) Return ¶ added in v0.16.0
func (_c *OpenLongChecker_CheckSameAssetPosition_Call) Return(_a0 *margintypes.MTP) *OpenLongChecker_CheckSameAssetPosition_Call
func (*OpenLongChecker_CheckSameAssetPosition_Call) Run ¶ added in v0.16.0
func (_c *OpenLongChecker_CheckSameAssetPosition_Call) Run(run func(ctx types.Context, msg *margintypes.MsgOpen)) *OpenLongChecker_CheckSameAssetPosition_Call
func (*OpenLongChecker_CheckSameAssetPosition_Call) RunAndReturn ¶ added in v0.16.0
func (_c *OpenLongChecker_CheckSameAssetPosition_Call) RunAndReturn(run func(types.Context, *margintypes.MsgOpen) *margintypes.MTP) *OpenLongChecker_CheckSameAssetPosition_Call
type OpenLongChecker_EstimateSwapGivenOut_Call ¶ added in v0.12.0
OpenLongChecker_EstimateSwapGivenOut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateSwapGivenOut'
func (*OpenLongChecker_EstimateSwapGivenOut_Call) Return ¶ added in v0.12.0
func (_c *OpenLongChecker_EstimateSwapGivenOut_Call) Return(_a0 math.Int, _a1 error) *OpenLongChecker_EstimateSwapGivenOut_Call
func (*OpenLongChecker_EstimateSwapGivenOut_Call) Run ¶ added in v0.12.0
func (_c *OpenLongChecker_EstimateSwapGivenOut_Call) Run(run func(ctx types.Context, tokenOutAmount types.Coin, tokenInDenom string, ammPool ammtypes.Pool)) *OpenLongChecker_EstimateSwapGivenOut_Call
func (*OpenLongChecker_EstimateSwapGivenOut_Call) RunAndReturn ¶ added in v0.12.0
type OpenLongChecker_EstimateSwap_Call ¶
OpenLongChecker_EstimateSwap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateSwap'
func (*OpenLongChecker_EstimateSwap_Call) Return ¶
func (_c *OpenLongChecker_EstimateSwap_Call) Return(_a0 math.Int, _a1 error) *OpenLongChecker_EstimateSwap_Call
func (*OpenLongChecker_EstimateSwap_Call) Run ¶
func (_c *OpenLongChecker_EstimateSwap_Call) Run(run func(ctx types.Context, leveragedAmtTokenIn types.Coin, borrowAsset string, ammPool ammtypes.Pool)) *OpenLongChecker_EstimateSwap_Call
func (*OpenLongChecker_EstimateSwap_Call) RunAndReturn ¶
type OpenLongChecker_Expecter ¶
type OpenLongChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*OpenLongChecker_Expecter) Borrow ¶
func (_e *OpenLongChecker_Expecter) Borrow(ctx interface{}, collateralAsset interface{}, custodyAsset interface{}, collateralAmount interface{}, custodyAmount interface{}, mtp interface{}, ammPool interface{}, pool interface{}, eta interface{}, baseCurrency interface{}) *OpenLongChecker_Borrow_Call
Borrow is a helper method to define mock.On call
- ctx types.Context
- collateralAsset string
- custodyAsset string
- collateralAmount math.Int
- custodyAmount math.Int
- mtp *margintypes.MTP
- ammPool *ammtypes.Pool
- pool *margintypes.Pool
- eta math.LegacyDec
- baseCurrency string
func (*OpenLongChecker_Expecter) CalcMTPConsolidateCollateral ¶ added in v0.12.0
func (_e *OpenLongChecker_Expecter) CalcMTPConsolidateCollateral(ctx interface{}, mtp interface{}, baseCurrency interface{}) *OpenLongChecker_CalcMTPConsolidateCollateral_Call
CalcMTPConsolidateCollateral is a helper method to define mock.On call
- ctx types.Context
- mtp *margintypes.MTP
- baseCurrency string
func (*OpenLongChecker_Expecter) CheckMinLiabilities ¶
func (_e *OpenLongChecker_Expecter) CheckMinLiabilities(ctx interface{}, collateralTokenAmt interface{}, eta interface{}, pool interface{}, ammPool interface{}, borrowAsset interface{}) *OpenLongChecker_CheckMinLiabilities_Call
CheckMinLiabilities is a helper method to define mock.On call
- ctx types.Context
- collateralTokenAmt types.Coin
- eta math.LegacyDec
- pool margintypes.Pool
- ammPool ammtypes.Pool
- borrowAsset string
func (*OpenLongChecker_Expecter) CheckSameAssetPosition ¶ added in v0.16.0
func (_e *OpenLongChecker_Expecter) CheckSameAssetPosition(ctx interface{}, msg interface{}) *OpenLongChecker_CheckSameAssetPosition_Call
CheckSameAssetPosition is a helper method to define mock.On call
- ctx types.Context
- msg *margintypes.MsgOpen
func (*OpenLongChecker_Expecter) EstimateSwap ¶
func (_e *OpenLongChecker_Expecter) EstimateSwap(ctx interface{}, leveragedAmtTokenIn interface{}, borrowAsset interface{}, ammPool interface{}) *OpenLongChecker_EstimateSwap_Call
EstimateSwap is a helper method to define mock.On call
- ctx types.Context
- leveragedAmtTokenIn types.Coin
- borrowAsset string
- ammPool ammtypes.Pool
func (*OpenLongChecker_Expecter) EstimateSwapGivenOut ¶ added in v0.12.0
func (_e *OpenLongChecker_Expecter) EstimateSwapGivenOut(ctx interface{}, tokenOutAmount interface{}, tokenInDenom interface{}, ammPool interface{}) *OpenLongChecker_EstimateSwapGivenOut_Call
EstimateSwapGivenOut is a helper method to define mock.On call
- ctx types.Context
- tokenOutAmount types.Coin
- tokenInDenom string
- ammPool ammtypes.Pool
func (*OpenLongChecker_Expecter) GetAmmPool ¶
func (_e *OpenLongChecker_Expecter) GetAmmPool(ctx interface{}, poolId interface{}, tradingAsset interface{}) *OpenLongChecker_GetAmmPool_Call
GetAmmPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
- tradingAsset string
func (*OpenLongChecker_Expecter) GetMaxLeverageParam ¶
func (_e *OpenLongChecker_Expecter) GetMaxLeverageParam(ctx interface{}) *OpenLongChecker_GetMaxLeverageParam_Call
GetMaxLeverageParam is a helper method to define mock.On call
- ctx types.Context
func (*OpenLongChecker_Expecter) GetPool ¶
func (_e *OpenLongChecker_Expecter) GetPool(ctx interface{}, poolId interface{}) *OpenLongChecker_GetPool_Call
GetPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*OpenLongChecker_Expecter) GetSafetyFactor ¶
func (_e *OpenLongChecker_Expecter) GetSafetyFactor(ctx interface{}) *OpenLongChecker_GetSafetyFactor_Call
GetSafetyFactor is a helper method to define mock.On call
- ctx types.Context
func (*OpenLongChecker_Expecter) IsPoolEnabled ¶
func (_e *OpenLongChecker_Expecter) IsPoolEnabled(ctx interface{}, poolId interface{}) *OpenLongChecker_IsPoolEnabled_Call
IsPoolEnabled is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*OpenLongChecker_Expecter) SetMTP ¶ added in v0.12.0
func (_e *OpenLongChecker_Expecter) SetMTP(ctx interface{}, mtp interface{}) *OpenLongChecker_SetMTP_Call
SetMTP is a helper method to define mock.On call
- ctx types.Context
- mtp *margintypes.MTP
func (*OpenLongChecker_Expecter) SetPool ¶
func (_e *OpenLongChecker_Expecter) SetPool(ctx interface{}, pool interface{}) *OpenLongChecker_SetPool_Call
SetPool is a helper method to define mock.On call
- ctx types.Context
- pool margintypes.Pool
func (*OpenLongChecker_Expecter) TakeInCustody ¶
func (_e *OpenLongChecker_Expecter) TakeInCustody(ctx interface{}, mtp interface{}, pool interface{}) *OpenLongChecker_TakeInCustody_Call
TakeInCustody is a helper method to define mock.On call
- ctx types.Context
- mtp margintypes.MTP
- pool *margintypes.Pool
func (*OpenLongChecker_Expecter) UpdateMTPHealth ¶
func (_e *OpenLongChecker_Expecter) UpdateMTPHealth(ctx interface{}, mtp interface{}, ammPool interface{}, baseCurrency interface{}) *OpenLongChecker_UpdateMTPHealth_Call
UpdateMTPHealth is a helper method to define mock.On call
- ctx types.Context
- mtp margintypes.MTP
- ammPool ammtypes.Pool
- baseCurrency string
func (*OpenLongChecker_Expecter) UpdatePoolHealth ¶
func (_e *OpenLongChecker_Expecter) UpdatePoolHealth(ctx interface{}, pool interface{}) *OpenLongChecker_UpdatePoolHealth_Call
UpdatePoolHealth is a helper method to define mock.On call
- ctx types.Context
- pool *margintypes.Pool
type OpenLongChecker_GetAmmPool_Call ¶
OpenLongChecker_GetAmmPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAmmPool'
func (*OpenLongChecker_GetAmmPool_Call) Return ¶
func (_c *OpenLongChecker_GetAmmPool_Call) Return(_a0 ammtypes.Pool, _a1 error) *OpenLongChecker_GetAmmPool_Call
func (*OpenLongChecker_GetAmmPool_Call) Run ¶
func (_c *OpenLongChecker_GetAmmPool_Call) Run(run func(ctx types.Context, poolId uint64, tradingAsset string)) *OpenLongChecker_GetAmmPool_Call
func (*OpenLongChecker_GetAmmPool_Call) RunAndReturn ¶
func (_c *OpenLongChecker_GetAmmPool_Call) RunAndReturn(run func(types.Context, uint64, string) (ammtypes.Pool, error)) *OpenLongChecker_GetAmmPool_Call
type OpenLongChecker_GetMaxLeverageParam_Call ¶
OpenLongChecker_GetMaxLeverageParam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMaxLeverageParam'
func (*OpenLongChecker_GetMaxLeverageParam_Call) Return ¶
func (_c *OpenLongChecker_GetMaxLeverageParam_Call) Return(_a0 math.LegacyDec) *OpenLongChecker_GetMaxLeverageParam_Call
func (*OpenLongChecker_GetMaxLeverageParam_Call) Run ¶
func (_c *OpenLongChecker_GetMaxLeverageParam_Call) Run(run func(ctx types.Context)) *OpenLongChecker_GetMaxLeverageParam_Call
func (*OpenLongChecker_GetMaxLeverageParam_Call) RunAndReturn ¶
func (_c *OpenLongChecker_GetMaxLeverageParam_Call) RunAndReturn(run func(types.Context) math.LegacyDec) *OpenLongChecker_GetMaxLeverageParam_Call
type OpenLongChecker_GetPool_Call ¶
OpenLongChecker_GetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPool'
func (*OpenLongChecker_GetPool_Call) Return ¶
func (_c *OpenLongChecker_GetPool_Call) Return(_a0 margintypes.Pool, _a1 bool) *OpenLongChecker_GetPool_Call
func (*OpenLongChecker_GetPool_Call) Run ¶
func (_c *OpenLongChecker_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *OpenLongChecker_GetPool_Call
func (*OpenLongChecker_GetPool_Call) RunAndReturn ¶
func (_c *OpenLongChecker_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *OpenLongChecker_GetPool_Call
type OpenLongChecker_GetSafetyFactor_Call ¶
OpenLongChecker_GetSafetyFactor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSafetyFactor'
func (*OpenLongChecker_GetSafetyFactor_Call) Return ¶
func (_c *OpenLongChecker_GetSafetyFactor_Call) Return(_a0 math.LegacyDec) *OpenLongChecker_GetSafetyFactor_Call
func (*OpenLongChecker_GetSafetyFactor_Call) Run ¶
func (_c *OpenLongChecker_GetSafetyFactor_Call) Run(run func(ctx types.Context)) *OpenLongChecker_GetSafetyFactor_Call
func (*OpenLongChecker_GetSafetyFactor_Call) RunAndReturn ¶
func (_c *OpenLongChecker_GetSafetyFactor_Call) RunAndReturn(run func(types.Context) math.LegacyDec) *OpenLongChecker_GetSafetyFactor_Call
type OpenLongChecker_IsPoolEnabled_Call ¶
OpenLongChecker_IsPoolEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPoolEnabled'
func (*OpenLongChecker_IsPoolEnabled_Call) Return ¶
func (_c *OpenLongChecker_IsPoolEnabled_Call) Return(_a0 bool) *OpenLongChecker_IsPoolEnabled_Call
func (*OpenLongChecker_IsPoolEnabled_Call) Run ¶
func (_c *OpenLongChecker_IsPoolEnabled_Call) Run(run func(ctx types.Context, poolId uint64)) *OpenLongChecker_IsPoolEnabled_Call
func (*OpenLongChecker_IsPoolEnabled_Call) RunAndReturn ¶
func (_c *OpenLongChecker_IsPoolEnabled_Call) RunAndReturn(run func(types.Context, uint64) bool) *OpenLongChecker_IsPoolEnabled_Call
type OpenLongChecker_SetMTP_Call ¶ added in v0.12.0
OpenLongChecker_SetMTP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMTP'
func (*OpenLongChecker_SetMTP_Call) Return ¶ added in v0.12.0
func (_c *OpenLongChecker_SetMTP_Call) Return(_a0 error) *OpenLongChecker_SetMTP_Call
func (*OpenLongChecker_SetMTP_Call) Run ¶ added in v0.12.0
func (_c *OpenLongChecker_SetMTP_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP)) *OpenLongChecker_SetMTP_Call
func (*OpenLongChecker_SetMTP_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenLongChecker_SetMTP_Call) RunAndReturn(run func(types.Context, *margintypes.MTP) error) *OpenLongChecker_SetMTP_Call
type OpenLongChecker_SetPool_Call ¶
OpenLongChecker_SetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPool'
func (*OpenLongChecker_SetPool_Call) Return ¶
func (_c *OpenLongChecker_SetPool_Call) Return() *OpenLongChecker_SetPool_Call
func (*OpenLongChecker_SetPool_Call) Run ¶
func (_c *OpenLongChecker_SetPool_Call) Run(run func(ctx types.Context, pool margintypes.Pool)) *OpenLongChecker_SetPool_Call
func (*OpenLongChecker_SetPool_Call) RunAndReturn ¶
func (_c *OpenLongChecker_SetPool_Call) RunAndReturn(run func(types.Context, margintypes.Pool)) *OpenLongChecker_SetPool_Call
type OpenLongChecker_TakeInCustody_Call ¶
OpenLongChecker_TakeInCustody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TakeInCustody'
func (*OpenLongChecker_TakeInCustody_Call) Return ¶
func (_c *OpenLongChecker_TakeInCustody_Call) Return(_a0 error) *OpenLongChecker_TakeInCustody_Call
func (*OpenLongChecker_TakeInCustody_Call) Run ¶
func (_c *OpenLongChecker_TakeInCustody_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool)) *OpenLongChecker_TakeInCustody_Call
func (*OpenLongChecker_TakeInCustody_Call) RunAndReturn ¶
func (_c *OpenLongChecker_TakeInCustody_Call) RunAndReturn(run func(types.Context, margintypes.MTP, *margintypes.Pool) error) *OpenLongChecker_TakeInCustody_Call
type OpenLongChecker_UpdateMTPHealth_Call ¶
OpenLongChecker_UpdateMTPHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateMTPHealth'
func (*OpenLongChecker_UpdateMTPHealth_Call) Return ¶
func (_c *OpenLongChecker_UpdateMTPHealth_Call) Return(_a0 math.LegacyDec, _a1 error) *OpenLongChecker_UpdateMTPHealth_Call
func (*OpenLongChecker_UpdateMTPHealth_Call) Run ¶
func (_c *OpenLongChecker_UpdateMTPHealth_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, ammPool ammtypes.Pool, baseCurrency string)) *OpenLongChecker_UpdateMTPHealth_Call
func (*OpenLongChecker_UpdateMTPHealth_Call) RunAndReturn ¶
func (_c *OpenLongChecker_UpdateMTPHealth_Call) RunAndReturn(run func(types.Context, margintypes.MTP, ammtypes.Pool, string) (math.LegacyDec, error)) *OpenLongChecker_UpdateMTPHealth_Call
type OpenLongChecker_UpdatePoolHealth_Call ¶
OpenLongChecker_UpdatePoolHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePoolHealth'
func (*OpenLongChecker_UpdatePoolHealth_Call) Return ¶
func (_c *OpenLongChecker_UpdatePoolHealth_Call) Return(_a0 error) *OpenLongChecker_UpdatePoolHealth_Call
func (*OpenLongChecker_UpdatePoolHealth_Call) Run ¶
func (_c *OpenLongChecker_UpdatePoolHealth_Call) Run(run func(ctx types.Context, pool *margintypes.Pool)) *OpenLongChecker_UpdatePoolHealth_Call
func (*OpenLongChecker_UpdatePoolHealth_Call) RunAndReturn ¶
func (_c *OpenLongChecker_UpdatePoolHealth_Call) RunAndReturn(run func(types.Context, *margintypes.Pool) error) *OpenLongChecker_UpdatePoolHealth_Call
type OpenShortChecker ¶ added in v0.12.0
OpenShortChecker is an autogenerated mock type for the OpenShortChecker type
func NewOpenShortChecker ¶ added in v0.12.0
func NewOpenShortChecker(t interface { mock.TestingT Cleanup(func()) }) *OpenShortChecker
NewOpenShortChecker creates a new instance of OpenShortChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OpenShortChecker) Borrow ¶ added in v0.12.0
func (_m *OpenShortChecker) Borrow(ctx types.Context, collateralAsset string, custodyAsset string, collateralAmount math.Int, custodyAmount math.Int, mtp *margintypes.MTP, ammPool *ammtypes.Pool, pool *margintypes.Pool, eta math.LegacyDec, baseCurrency string) error
Borrow provides a mock function with given fields: ctx, collateralAsset, custodyAsset, collateralAmount, custodyAmount, mtp, ammPool, pool, eta, baseCurrency
func (*OpenShortChecker) CalcMTPConsolidateCollateral ¶ added in v0.12.0
func (_m *OpenShortChecker) CalcMTPConsolidateCollateral(ctx types.Context, mtp *margintypes.MTP, baseCurrency string) error
CalcMTPConsolidateCollateral provides a mock function with given fields: ctx, mtp, baseCurrency
func (*OpenShortChecker) CheckMinLiabilities ¶ added in v0.12.0
func (_m *OpenShortChecker) CheckMinLiabilities(ctx types.Context, collateralTokenAmt types.Coin, eta math.LegacyDec, pool margintypes.Pool, ammPool ammtypes.Pool, borrowAsset string) error
CheckMinLiabilities provides a mock function with given fields: ctx, collateralTokenAmt, eta, pool, ammPool, borrowAsset
func (*OpenShortChecker) CheckSameAssetPosition ¶ added in v0.16.0
func (_m *OpenShortChecker) CheckSameAssetPosition(ctx types.Context, msg *margintypes.MsgOpen) *margintypes.MTP
CheckSameAssetPosition provides a mock function with given fields: ctx, msg
func (*OpenShortChecker) EXPECT ¶ added in v0.12.0
func (_m *OpenShortChecker) EXPECT() *OpenShortChecker_Expecter
func (*OpenShortChecker) EstimateSwap ¶ added in v0.12.0
func (_m *OpenShortChecker) EstimateSwap(ctx types.Context, leveragedAmtTokenIn types.Coin, borrowAsset string, ammPool ammtypes.Pool) (math.Int, error)
EstimateSwap provides a mock function with given fields: ctx, leveragedAmtTokenIn, borrowAsset, ammPool
func (*OpenShortChecker) EstimateSwapGivenOut ¶ added in v0.12.0
func (_m *OpenShortChecker) EstimateSwapGivenOut(ctx types.Context, tokenOutAmount types.Coin, tokenInDenom string, ammPool ammtypes.Pool) (math.Int, error)
EstimateSwapGivenOut provides a mock function with given fields: ctx, tokenOutAmount, tokenInDenom, ammPool
func (*OpenShortChecker) GetAmmPool ¶ added in v0.12.0
func (_m *OpenShortChecker) GetAmmPool(ctx types.Context, poolId uint64, tradingAsset string) (ammtypes.Pool, error)
GetAmmPool provides a mock function with given fields: ctx, poolId, tradingAsset
func (*OpenShortChecker) GetMaxLeverageParam ¶ added in v0.12.0
func (_m *OpenShortChecker) GetMaxLeverageParam(ctx types.Context) math.LegacyDec
GetMaxLeverageParam provides a mock function with given fields: ctx
func (*OpenShortChecker) GetPool ¶ added in v0.12.0
func (_m *OpenShortChecker) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
GetPool provides a mock function with given fields: ctx, poolId
func (*OpenShortChecker) GetSafetyFactor ¶ added in v0.12.0
func (_m *OpenShortChecker) GetSafetyFactor(ctx types.Context) math.LegacyDec
GetSafetyFactor provides a mock function with given fields: ctx
func (*OpenShortChecker) IsPoolEnabled ¶ added in v0.12.0
func (_m *OpenShortChecker) IsPoolEnabled(ctx types.Context, poolId uint64) bool
IsPoolEnabled provides a mock function with given fields: ctx, poolId
func (*OpenShortChecker) SetMTP ¶ added in v0.12.0
func (_m *OpenShortChecker) SetMTP(ctx types.Context, mtp *margintypes.MTP) error
SetMTP provides a mock function with given fields: ctx, mtp
func (*OpenShortChecker) SetPool ¶ added in v0.12.0
func (_m *OpenShortChecker) SetPool(ctx types.Context, pool margintypes.Pool)
SetPool provides a mock function with given fields: ctx, pool
func (*OpenShortChecker) TakeInCustody ¶ added in v0.12.0
func (_m *OpenShortChecker) TakeInCustody(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool) error
TakeInCustody provides a mock function with given fields: ctx, mtp, pool
func (*OpenShortChecker) UpdateMTPHealth ¶ added in v0.12.0
func (_m *OpenShortChecker) UpdateMTPHealth(ctx types.Context, mtp margintypes.MTP, ammPool ammtypes.Pool, baseCurrency string) (math.LegacyDec, error)
UpdateMTPHealth provides a mock function with given fields: ctx, mtp, ammPool, baseCurrency
func (*OpenShortChecker) UpdatePoolHealth ¶ added in v0.12.0
func (_m *OpenShortChecker) UpdatePoolHealth(ctx types.Context, pool *margintypes.Pool) error
UpdatePoolHealth provides a mock function with given fields: ctx, pool
type OpenShortChecker_Borrow_Call ¶ added in v0.12.0
OpenShortChecker_Borrow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Borrow'
func (*OpenShortChecker_Borrow_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_Borrow_Call) Return(_a0 error) *OpenShortChecker_Borrow_Call
func (*OpenShortChecker_Borrow_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_Borrow_Call) Run(run func(ctx types.Context, collateralAsset string, custodyAsset string, collateralAmount math.Int, custodyAmount math.Int, mtp *margintypes.MTP, ammPool *ammtypes.Pool, pool *margintypes.Pool, eta math.LegacyDec, baseCurrency string)) *OpenShortChecker_Borrow_Call
func (*OpenShortChecker_Borrow_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_Borrow_Call) RunAndReturn(run func(types.Context, string, string, math.Int, math.Int, *margintypes.MTP, *ammtypes.Pool, *margintypes.Pool, math.LegacyDec, string) error) *OpenShortChecker_Borrow_Call
type OpenShortChecker_CalcMTPConsolidateCollateral_Call ¶ added in v0.12.0
OpenShortChecker_CalcMTPConsolidateCollateral_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CalcMTPConsolidateCollateral'
func (*OpenShortChecker_CalcMTPConsolidateCollateral_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_CalcMTPConsolidateCollateral_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP, baseCurrency string)) *OpenShortChecker_CalcMTPConsolidateCollateral_Call
func (*OpenShortChecker_CalcMTPConsolidateCollateral_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_CalcMTPConsolidateCollateral_Call) RunAndReturn(run func(types.Context, *margintypes.MTP, string) error) *OpenShortChecker_CalcMTPConsolidateCollateral_Call
type OpenShortChecker_CheckMinLiabilities_Call ¶ added in v0.12.0
OpenShortChecker_CheckMinLiabilities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckMinLiabilities'
func (*OpenShortChecker_CheckMinLiabilities_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_CheckMinLiabilities_Call) Return(_a0 error) *OpenShortChecker_CheckMinLiabilities_Call
func (*OpenShortChecker_CheckMinLiabilities_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_CheckMinLiabilities_Call) Run(run func(ctx types.Context, collateralTokenAmt types.Coin, eta math.LegacyDec, pool margintypes.Pool, ammPool ammtypes.Pool, borrowAsset string)) *OpenShortChecker_CheckMinLiabilities_Call
func (*OpenShortChecker_CheckMinLiabilities_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_CheckMinLiabilities_Call) RunAndReturn(run func(types.Context, types.Coin, math.LegacyDec, margintypes.Pool, ammtypes.Pool, string) error) *OpenShortChecker_CheckMinLiabilities_Call
type OpenShortChecker_CheckSameAssetPosition_Call ¶ added in v0.16.0
OpenShortChecker_CheckSameAssetPosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckSameAssetPosition'
func (*OpenShortChecker_CheckSameAssetPosition_Call) Return ¶ added in v0.16.0
func (_c *OpenShortChecker_CheckSameAssetPosition_Call) Return(_a0 *margintypes.MTP) *OpenShortChecker_CheckSameAssetPosition_Call
func (*OpenShortChecker_CheckSameAssetPosition_Call) Run ¶ added in v0.16.0
func (_c *OpenShortChecker_CheckSameAssetPosition_Call) Run(run func(ctx types.Context, msg *margintypes.MsgOpen)) *OpenShortChecker_CheckSameAssetPosition_Call
func (*OpenShortChecker_CheckSameAssetPosition_Call) RunAndReturn ¶ added in v0.16.0
func (_c *OpenShortChecker_CheckSameAssetPosition_Call) RunAndReturn(run func(types.Context, *margintypes.MsgOpen) *margintypes.MTP) *OpenShortChecker_CheckSameAssetPosition_Call
type OpenShortChecker_EstimateSwapGivenOut_Call ¶ added in v0.12.0
OpenShortChecker_EstimateSwapGivenOut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateSwapGivenOut'
func (*OpenShortChecker_EstimateSwapGivenOut_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_EstimateSwapGivenOut_Call) Return(_a0 math.Int, _a1 error) *OpenShortChecker_EstimateSwapGivenOut_Call
func (*OpenShortChecker_EstimateSwapGivenOut_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_EstimateSwapGivenOut_Call) Run(run func(ctx types.Context, tokenOutAmount types.Coin, tokenInDenom string, ammPool ammtypes.Pool)) *OpenShortChecker_EstimateSwapGivenOut_Call
func (*OpenShortChecker_EstimateSwapGivenOut_Call) RunAndReturn ¶ added in v0.12.0
type OpenShortChecker_EstimateSwap_Call ¶ added in v0.12.0
OpenShortChecker_EstimateSwap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateSwap'
func (*OpenShortChecker_EstimateSwap_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_EstimateSwap_Call) Return(_a0 math.Int, _a1 error) *OpenShortChecker_EstimateSwap_Call
func (*OpenShortChecker_EstimateSwap_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_EstimateSwap_Call) Run(run func(ctx types.Context, leveragedAmtTokenIn types.Coin, borrowAsset string, ammPool ammtypes.Pool)) *OpenShortChecker_EstimateSwap_Call
func (*OpenShortChecker_EstimateSwap_Call) RunAndReturn ¶ added in v0.12.0
type OpenShortChecker_Expecter ¶ added in v0.12.0
type OpenShortChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*OpenShortChecker_Expecter) Borrow ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) Borrow(ctx interface{}, collateralAsset interface{}, custodyAsset interface{}, collateralAmount interface{}, custodyAmount interface{}, mtp interface{}, ammPool interface{}, pool interface{}, eta interface{}, baseCurrency interface{}) *OpenShortChecker_Borrow_Call
Borrow is a helper method to define mock.On call
- ctx types.Context
- collateralAsset string
- custodyAsset string
- collateralAmount math.Int
- custodyAmount math.Int
- mtp *margintypes.MTP
- ammPool *ammtypes.Pool
- pool *margintypes.Pool
- eta math.LegacyDec
- baseCurrency string
func (*OpenShortChecker_Expecter) CalcMTPConsolidateCollateral ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) CalcMTPConsolidateCollateral(ctx interface{}, mtp interface{}, baseCurrency interface{}) *OpenShortChecker_CalcMTPConsolidateCollateral_Call
CalcMTPConsolidateCollateral is a helper method to define mock.On call
- ctx types.Context
- mtp *margintypes.MTP
- baseCurrency string
func (*OpenShortChecker_Expecter) CheckMinLiabilities ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) CheckMinLiabilities(ctx interface{}, collateralTokenAmt interface{}, eta interface{}, pool interface{}, ammPool interface{}, borrowAsset interface{}) *OpenShortChecker_CheckMinLiabilities_Call
CheckMinLiabilities is a helper method to define mock.On call
- ctx types.Context
- collateralTokenAmt types.Coin
- eta math.LegacyDec
- pool margintypes.Pool
- ammPool ammtypes.Pool
- borrowAsset string
func (*OpenShortChecker_Expecter) CheckSameAssetPosition ¶ added in v0.16.0
func (_e *OpenShortChecker_Expecter) CheckSameAssetPosition(ctx interface{}, msg interface{}) *OpenShortChecker_CheckSameAssetPosition_Call
CheckSameAssetPosition is a helper method to define mock.On call
- ctx types.Context
- msg *margintypes.MsgOpen
func (*OpenShortChecker_Expecter) EstimateSwap ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) EstimateSwap(ctx interface{}, leveragedAmtTokenIn interface{}, borrowAsset interface{}, ammPool interface{}) *OpenShortChecker_EstimateSwap_Call
EstimateSwap is a helper method to define mock.On call
- ctx types.Context
- leveragedAmtTokenIn types.Coin
- borrowAsset string
- ammPool ammtypes.Pool
func (*OpenShortChecker_Expecter) EstimateSwapGivenOut ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) EstimateSwapGivenOut(ctx interface{}, tokenOutAmount interface{}, tokenInDenom interface{}, ammPool interface{}) *OpenShortChecker_EstimateSwapGivenOut_Call
EstimateSwapGivenOut is a helper method to define mock.On call
- ctx types.Context
- tokenOutAmount types.Coin
- tokenInDenom string
- ammPool ammtypes.Pool
func (*OpenShortChecker_Expecter) GetAmmPool ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) GetAmmPool(ctx interface{}, poolId interface{}, tradingAsset interface{}) *OpenShortChecker_GetAmmPool_Call
GetAmmPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
- tradingAsset string
func (*OpenShortChecker_Expecter) GetMaxLeverageParam ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) GetMaxLeverageParam(ctx interface{}) *OpenShortChecker_GetMaxLeverageParam_Call
GetMaxLeverageParam is a helper method to define mock.On call
- ctx types.Context
func (*OpenShortChecker_Expecter) GetPool ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) GetPool(ctx interface{}, poolId interface{}) *OpenShortChecker_GetPool_Call
GetPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*OpenShortChecker_Expecter) GetSafetyFactor ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) GetSafetyFactor(ctx interface{}) *OpenShortChecker_GetSafetyFactor_Call
GetSafetyFactor is a helper method to define mock.On call
- ctx types.Context
func (*OpenShortChecker_Expecter) IsPoolEnabled ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) IsPoolEnabled(ctx interface{}, poolId interface{}) *OpenShortChecker_IsPoolEnabled_Call
IsPoolEnabled is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*OpenShortChecker_Expecter) SetMTP ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) SetMTP(ctx interface{}, mtp interface{}) *OpenShortChecker_SetMTP_Call
SetMTP is a helper method to define mock.On call
- ctx types.Context
- mtp *margintypes.MTP
func (*OpenShortChecker_Expecter) SetPool ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) SetPool(ctx interface{}, pool interface{}) *OpenShortChecker_SetPool_Call
SetPool is a helper method to define mock.On call
- ctx types.Context
- pool margintypes.Pool
func (*OpenShortChecker_Expecter) TakeInCustody ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) TakeInCustody(ctx interface{}, mtp interface{}, pool interface{}) *OpenShortChecker_TakeInCustody_Call
TakeInCustody is a helper method to define mock.On call
- ctx types.Context
- mtp margintypes.MTP
- pool *margintypes.Pool
func (*OpenShortChecker_Expecter) UpdateMTPHealth ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) UpdateMTPHealth(ctx interface{}, mtp interface{}, ammPool interface{}, baseCurrency interface{}) *OpenShortChecker_UpdateMTPHealth_Call
UpdateMTPHealth is a helper method to define mock.On call
- ctx types.Context
- mtp margintypes.MTP
- ammPool ammtypes.Pool
- baseCurrency string
func (*OpenShortChecker_Expecter) UpdatePoolHealth ¶ added in v0.12.0
func (_e *OpenShortChecker_Expecter) UpdatePoolHealth(ctx interface{}, pool interface{}) *OpenShortChecker_UpdatePoolHealth_Call
UpdatePoolHealth is a helper method to define mock.On call
- ctx types.Context
- pool *margintypes.Pool
type OpenShortChecker_GetAmmPool_Call ¶ added in v0.12.0
OpenShortChecker_GetAmmPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAmmPool'
func (*OpenShortChecker_GetAmmPool_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_GetAmmPool_Call) Return(_a0 ammtypes.Pool, _a1 error) *OpenShortChecker_GetAmmPool_Call
func (*OpenShortChecker_GetAmmPool_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_GetAmmPool_Call) Run(run func(ctx types.Context, poolId uint64, tradingAsset string)) *OpenShortChecker_GetAmmPool_Call
func (*OpenShortChecker_GetAmmPool_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_GetAmmPool_Call) RunAndReturn(run func(types.Context, uint64, string) (ammtypes.Pool, error)) *OpenShortChecker_GetAmmPool_Call
type OpenShortChecker_GetMaxLeverageParam_Call ¶ added in v0.12.0
OpenShortChecker_GetMaxLeverageParam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMaxLeverageParam'
func (*OpenShortChecker_GetMaxLeverageParam_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_GetMaxLeverageParam_Call) Return(_a0 math.LegacyDec) *OpenShortChecker_GetMaxLeverageParam_Call
func (*OpenShortChecker_GetMaxLeverageParam_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_GetMaxLeverageParam_Call) Run(run func(ctx types.Context)) *OpenShortChecker_GetMaxLeverageParam_Call
func (*OpenShortChecker_GetMaxLeverageParam_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_GetMaxLeverageParam_Call) RunAndReturn(run func(types.Context) math.LegacyDec) *OpenShortChecker_GetMaxLeverageParam_Call
type OpenShortChecker_GetPool_Call ¶ added in v0.12.0
OpenShortChecker_GetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPool'
func (*OpenShortChecker_GetPool_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_GetPool_Call) Return(_a0 margintypes.Pool, _a1 bool) *OpenShortChecker_GetPool_Call
func (*OpenShortChecker_GetPool_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *OpenShortChecker_GetPool_Call
func (*OpenShortChecker_GetPool_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *OpenShortChecker_GetPool_Call
type OpenShortChecker_GetSafetyFactor_Call ¶ added in v0.12.0
OpenShortChecker_GetSafetyFactor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSafetyFactor'
func (*OpenShortChecker_GetSafetyFactor_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_GetSafetyFactor_Call) Return(_a0 math.LegacyDec) *OpenShortChecker_GetSafetyFactor_Call
func (*OpenShortChecker_GetSafetyFactor_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_GetSafetyFactor_Call) Run(run func(ctx types.Context)) *OpenShortChecker_GetSafetyFactor_Call
func (*OpenShortChecker_GetSafetyFactor_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_GetSafetyFactor_Call) RunAndReturn(run func(types.Context) math.LegacyDec) *OpenShortChecker_GetSafetyFactor_Call
type OpenShortChecker_IsPoolEnabled_Call ¶ added in v0.12.0
OpenShortChecker_IsPoolEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPoolEnabled'
func (*OpenShortChecker_IsPoolEnabled_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_IsPoolEnabled_Call) Return(_a0 bool) *OpenShortChecker_IsPoolEnabled_Call
func (*OpenShortChecker_IsPoolEnabled_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_IsPoolEnabled_Call) Run(run func(ctx types.Context, poolId uint64)) *OpenShortChecker_IsPoolEnabled_Call
func (*OpenShortChecker_IsPoolEnabled_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_IsPoolEnabled_Call) RunAndReturn(run func(types.Context, uint64) bool) *OpenShortChecker_IsPoolEnabled_Call
type OpenShortChecker_SetMTP_Call ¶ added in v0.12.0
OpenShortChecker_SetMTP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMTP'
func (*OpenShortChecker_SetMTP_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_SetMTP_Call) Return(_a0 error) *OpenShortChecker_SetMTP_Call
func (*OpenShortChecker_SetMTP_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_SetMTP_Call) Run(run func(ctx types.Context, mtp *margintypes.MTP)) *OpenShortChecker_SetMTP_Call
func (*OpenShortChecker_SetMTP_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_SetMTP_Call) RunAndReturn(run func(types.Context, *margintypes.MTP) error) *OpenShortChecker_SetMTP_Call
type OpenShortChecker_SetPool_Call ¶ added in v0.12.0
OpenShortChecker_SetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPool'
func (*OpenShortChecker_SetPool_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_SetPool_Call) Return() *OpenShortChecker_SetPool_Call
func (*OpenShortChecker_SetPool_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_SetPool_Call) Run(run func(ctx types.Context, pool margintypes.Pool)) *OpenShortChecker_SetPool_Call
func (*OpenShortChecker_SetPool_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_SetPool_Call) RunAndReturn(run func(types.Context, margintypes.Pool)) *OpenShortChecker_SetPool_Call
type OpenShortChecker_TakeInCustody_Call ¶ added in v0.12.0
OpenShortChecker_TakeInCustody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TakeInCustody'
func (*OpenShortChecker_TakeInCustody_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_TakeInCustody_Call) Return(_a0 error) *OpenShortChecker_TakeInCustody_Call
func (*OpenShortChecker_TakeInCustody_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_TakeInCustody_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, pool *margintypes.Pool)) *OpenShortChecker_TakeInCustody_Call
func (*OpenShortChecker_TakeInCustody_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_TakeInCustody_Call) RunAndReturn(run func(types.Context, margintypes.MTP, *margintypes.Pool) error) *OpenShortChecker_TakeInCustody_Call
type OpenShortChecker_UpdateMTPHealth_Call ¶ added in v0.12.0
OpenShortChecker_UpdateMTPHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateMTPHealth'
func (*OpenShortChecker_UpdateMTPHealth_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_UpdateMTPHealth_Call) Return(_a0 math.LegacyDec, _a1 error) *OpenShortChecker_UpdateMTPHealth_Call
func (*OpenShortChecker_UpdateMTPHealth_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_UpdateMTPHealth_Call) Run(run func(ctx types.Context, mtp margintypes.MTP, ammPool ammtypes.Pool, baseCurrency string)) *OpenShortChecker_UpdateMTPHealth_Call
func (*OpenShortChecker_UpdateMTPHealth_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_UpdateMTPHealth_Call) RunAndReturn(run func(types.Context, margintypes.MTP, ammtypes.Pool, string) (math.LegacyDec, error)) *OpenShortChecker_UpdateMTPHealth_Call
type OpenShortChecker_UpdatePoolHealth_Call ¶ added in v0.12.0
OpenShortChecker_UpdatePoolHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePoolHealth'
func (*OpenShortChecker_UpdatePoolHealth_Call) Return ¶ added in v0.12.0
func (_c *OpenShortChecker_UpdatePoolHealth_Call) Return(_a0 error) *OpenShortChecker_UpdatePoolHealth_Call
func (*OpenShortChecker_UpdatePoolHealth_Call) Run ¶ added in v0.12.0
func (_c *OpenShortChecker_UpdatePoolHealth_Call) Run(run func(ctx types.Context, pool *margintypes.Pool)) *OpenShortChecker_UpdatePoolHealth_Call
func (*OpenShortChecker_UpdatePoolHealth_Call) RunAndReturn ¶ added in v0.12.0
func (_c *OpenShortChecker_UpdatePoolHealth_Call) RunAndReturn(run func(types.Context, *margintypes.Pool) error) *OpenShortChecker_UpdatePoolHealth_Call
type PoolChecker ¶
PoolChecker is an autogenerated mock type for the PoolChecker type
func NewPoolChecker ¶
func NewPoolChecker(t interface { mock.TestingT Cleanup(func()) }) *PoolChecker
NewPoolChecker creates a new instance of PoolChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PoolChecker) EXPECT ¶
func (_m *PoolChecker) EXPECT() *PoolChecker_Expecter
func (*PoolChecker) GetPool ¶
func (_m *PoolChecker) GetPool(ctx types.Context, poolId uint64) (margintypes.Pool, bool)
GetPool provides a mock function with given fields: ctx, poolId
func (*PoolChecker) GetPoolOpenThreshold ¶
func (_m *PoolChecker) GetPoolOpenThreshold(ctx types.Context) math.LegacyDec
GetPoolOpenThreshold provides a mock function with given fields: ctx
func (*PoolChecker) IsPoolClosed ¶
func (_m *PoolChecker) IsPoolClosed(ctx types.Context, poolId uint64) bool
IsPoolClosed provides a mock function with given fields: ctx, poolId
func (*PoolChecker) IsPoolEnabled ¶
func (_m *PoolChecker) IsPoolEnabled(ctx types.Context, poolId uint64) bool
IsPoolEnabled provides a mock function with given fields: ctx, poolId
type PoolChecker_Expecter ¶
type PoolChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*PoolChecker_Expecter) GetPool ¶
func (_e *PoolChecker_Expecter) GetPool(ctx interface{}, poolId interface{}) *PoolChecker_GetPool_Call
GetPool is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*PoolChecker_Expecter) GetPoolOpenThreshold ¶
func (_e *PoolChecker_Expecter) GetPoolOpenThreshold(ctx interface{}) *PoolChecker_GetPoolOpenThreshold_Call
GetPoolOpenThreshold is a helper method to define mock.On call
- ctx types.Context
func (*PoolChecker_Expecter) IsPoolClosed ¶
func (_e *PoolChecker_Expecter) IsPoolClosed(ctx interface{}, poolId interface{}) *PoolChecker_IsPoolClosed_Call
IsPoolClosed is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
func (*PoolChecker_Expecter) IsPoolEnabled ¶
func (_e *PoolChecker_Expecter) IsPoolEnabled(ctx interface{}, poolId interface{}) *PoolChecker_IsPoolEnabled_Call
IsPoolEnabled is a helper method to define mock.On call
- ctx types.Context
- poolId uint64
type PoolChecker_GetPoolOpenThreshold_Call ¶
PoolChecker_GetPoolOpenThreshold_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPoolOpenThreshold'
func (*PoolChecker_GetPoolOpenThreshold_Call) Return ¶
func (_c *PoolChecker_GetPoolOpenThreshold_Call) Return(_a0 math.LegacyDec) *PoolChecker_GetPoolOpenThreshold_Call
func (*PoolChecker_GetPoolOpenThreshold_Call) Run ¶
func (_c *PoolChecker_GetPoolOpenThreshold_Call) Run(run func(ctx types.Context)) *PoolChecker_GetPoolOpenThreshold_Call
func (*PoolChecker_GetPoolOpenThreshold_Call) RunAndReturn ¶
func (_c *PoolChecker_GetPoolOpenThreshold_Call) RunAndReturn(run func(types.Context) math.LegacyDec) *PoolChecker_GetPoolOpenThreshold_Call
type PoolChecker_GetPool_Call ¶
PoolChecker_GetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPool'
func (*PoolChecker_GetPool_Call) Return ¶
func (_c *PoolChecker_GetPool_Call) Return(_a0 margintypes.Pool, _a1 bool) *PoolChecker_GetPool_Call
func (*PoolChecker_GetPool_Call) Run ¶
func (_c *PoolChecker_GetPool_Call) Run(run func(ctx types.Context, poolId uint64)) *PoolChecker_GetPool_Call
func (*PoolChecker_GetPool_Call) RunAndReturn ¶
func (_c *PoolChecker_GetPool_Call) RunAndReturn(run func(types.Context, uint64) (margintypes.Pool, bool)) *PoolChecker_GetPool_Call
type PoolChecker_IsPoolClosed_Call ¶
PoolChecker_IsPoolClosed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPoolClosed'
func (*PoolChecker_IsPoolClosed_Call) Return ¶
func (_c *PoolChecker_IsPoolClosed_Call) Return(_a0 bool) *PoolChecker_IsPoolClosed_Call
func (*PoolChecker_IsPoolClosed_Call) Run ¶
func (_c *PoolChecker_IsPoolClosed_Call) Run(run func(ctx types.Context, poolId uint64)) *PoolChecker_IsPoolClosed_Call
func (*PoolChecker_IsPoolClosed_Call) RunAndReturn ¶
func (_c *PoolChecker_IsPoolClosed_Call) RunAndReturn(run func(types.Context, uint64) bool) *PoolChecker_IsPoolClosed_Call
type PoolChecker_IsPoolEnabled_Call ¶
PoolChecker_IsPoolEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPoolEnabled'
func (*PoolChecker_IsPoolEnabled_Call) Return ¶
func (_c *PoolChecker_IsPoolEnabled_Call) Return(_a0 bool) *PoolChecker_IsPoolEnabled_Call
func (*PoolChecker_IsPoolEnabled_Call) Run ¶
func (_c *PoolChecker_IsPoolEnabled_Call) Run(run func(ctx types.Context, poolId uint64)) *PoolChecker_IsPoolEnabled_Call
func (*PoolChecker_IsPoolEnabled_Call) RunAndReturn ¶
func (_c *PoolChecker_IsPoolEnabled_Call) RunAndReturn(run func(types.Context, uint64) bool) *PoolChecker_IsPoolEnabled_Call
type PositionChecker ¶
PositionChecker is an autogenerated mock type for the PositionChecker type
func NewPositionChecker ¶
func NewPositionChecker(t interface { mock.TestingT Cleanup(func()) }) *PositionChecker
NewPositionChecker creates a new instance of PositionChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PositionChecker) EXPECT ¶
func (_m *PositionChecker) EXPECT() *PositionChecker_Expecter
func (*PositionChecker) GetMaxOpenPositions ¶
func (_m *PositionChecker) GetMaxOpenPositions(ctx types.Context) uint64
GetMaxOpenPositions provides a mock function with given fields: ctx
func (*PositionChecker) GetOpenMTPCount ¶
func (_m *PositionChecker) GetOpenMTPCount(ctx types.Context) uint64
GetOpenMTPCount provides a mock function with given fields: ctx
type PositionChecker_Expecter ¶
type PositionChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*PositionChecker_Expecter) GetMaxOpenPositions ¶
func (_e *PositionChecker_Expecter) GetMaxOpenPositions(ctx interface{}) *PositionChecker_GetMaxOpenPositions_Call
GetMaxOpenPositions is a helper method to define mock.On call
- ctx types.Context
func (*PositionChecker_Expecter) GetOpenMTPCount ¶
func (_e *PositionChecker_Expecter) GetOpenMTPCount(ctx interface{}) *PositionChecker_GetOpenMTPCount_Call
GetOpenMTPCount is a helper method to define mock.On call
- ctx types.Context
type PositionChecker_GetMaxOpenPositions_Call ¶
PositionChecker_GetMaxOpenPositions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMaxOpenPositions'
func (*PositionChecker_GetMaxOpenPositions_Call) Return ¶
func (_c *PositionChecker_GetMaxOpenPositions_Call) Return(_a0 uint64) *PositionChecker_GetMaxOpenPositions_Call
func (*PositionChecker_GetMaxOpenPositions_Call) Run ¶
func (_c *PositionChecker_GetMaxOpenPositions_Call) Run(run func(ctx types.Context)) *PositionChecker_GetMaxOpenPositions_Call
func (*PositionChecker_GetMaxOpenPositions_Call) RunAndReturn ¶
func (_c *PositionChecker_GetMaxOpenPositions_Call) RunAndReturn(run func(types.Context) uint64) *PositionChecker_GetMaxOpenPositions_Call
type PositionChecker_GetOpenMTPCount_Call ¶
PositionChecker_GetOpenMTPCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOpenMTPCount'
func (*PositionChecker_GetOpenMTPCount_Call) Return ¶
func (_c *PositionChecker_GetOpenMTPCount_Call) Return(_a0 uint64) *PositionChecker_GetOpenMTPCount_Call
func (*PositionChecker_GetOpenMTPCount_Call) Run ¶
func (_c *PositionChecker_GetOpenMTPCount_Call) Run(run func(ctx types.Context)) *PositionChecker_GetOpenMTPCount_Call
func (*PositionChecker_GetOpenMTPCount_Call) RunAndReturn ¶
func (_c *PositionChecker_GetOpenMTPCount_Call) RunAndReturn(run func(types.Context) uint64) *PositionChecker_GetOpenMTPCount_Call