mocks

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeeper

type AccountKeeper struct {
	mock.Mock
}

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

type AccountKeeper_GetAccount_Call struct {
	*mock.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 (*AccountKeeper_GetAccount_Call) Run

func (*AccountKeeper_GetAccount_Call) RunAndReturn

type AmmKeeper

type AmmKeeper struct {
	mock.Mock
}

AmmKeeper is an autogenerated mock type for the AmmKeeper type

func NewAmmKeeper

func NewAmmKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *AmmKeeper

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

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

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

func (_m *AmmKeeper) ExitPool(ctx types.Context, sender types.AccAddress, poolId uint64, shareInAmount math.Int, tokenOutMins types.Coins, tokenOutDenom string) (types.Coins, error)

ExitPool provides a mock function with given fields: ctx, sender, poolId, shareInAmount, tokenOutMins, tokenOutDenom

func (*AmmKeeper) GetAllPool

func (_m *AmmKeeper) GetAllPool(_a0 types.Context) []ammtypes.Pool

GetAllPool provides a mock function with given fields: _a0

func (*AmmKeeper) GetAllPoolIdsWithDenom

func (_m *AmmKeeper) GetAllPoolIdsWithDenom(_a0 types.Context, _a1 string) []uint64

GetAllPoolIdsWithDenom provides a mock function with given fields: _a0, _a1

func (*AmmKeeper) GetPool

func (_m *AmmKeeper) GetPool(_a0 types.Context, _a1 uint64) (ammtypes.Pool, bool)

GetPool provides a mock function with given fields: _a0, _a1

func (*AmmKeeper) GetPoolSnapshotOrSet

func (_m *AmmKeeper) GetPoolSnapshotOrSet(ctx types.Context, pool ammtypes.Pool) ammtypes.Pool

GetPoolSnapshotOrSet provides a mock function with given fields: ctx, pool

func (*AmmKeeper) IterateLiquidityPools

func (_m *AmmKeeper) IterateLiquidityPools(_a0 types.Context, _a1 func(ammtypes.Pool) bool)

IterateLiquidityPools provides a mock function with given fields: _a0, _a1

func (*AmmKeeper) JoinPoolNoSwap

func (_m *AmmKeeper) JoinPoolNoSwap(ctx types.Context, sender types.AccAddress, poolId uint64, shareOutAmount math.Int, tokenInMaxs types.Coins, noRemaining bool) (types.Coins, math.Int, error)

JoinPoolNoSwap provides a mock function with given fields: ctx, sender, poolId, shareOutAmount, tokenInMaxs, noRemaining

type AmmKeeper_CalcInAmtGivenOut_Call

type AmmKeeper_CalcInAmtGivenOut_Call struct {
	*mock.Call
}

AmmKeeper_CalcInAmtGivenOut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CalcInAmtGivenOut'

func (*AmmKeeper_CalcInAmtGivenOut_Call) Return

func (*AmmKeeper_CalcInAmtGivenOut_Call) Run

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

type AmmKeeper_CalcOutAmtGivenIn_Call

type AmmKeeper_CalcOutAmtGivenIn_Call struct {
	*mock.Call
}

AmmKeeper_CalcOutAmtGivenIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CalcOutAmtGivenIn'

func (*AmmKeeper_CalcOutAmtGivenIn_Call) Return

func (*AmmKeeper_CalcOutAmtGivenIn_Call) Run

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

type AmmKeeper_ExitPool_Call

type AmmKeeper_ExitPool_Call struct {
	*mock.Call
}

AmmKeeper_ExitPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExitPool'

func (*AmmKeeper_ExitPool_Call) Return

func (_c *AmmKeeper_ExitPool_Call) Return(exitCoins types.Coins, err error) *AmmKeeper_ExitPool_Call

func (*AmmKeeper_ExitPool_Call) Run

func (_c *AmmKeeper_ExitPool_Call) Run(run func(ctx types.Context, sender types.AccAddress, poolId uint64, shareInAmount math.Int, tokenOutMins types.Coins, tokenOutDenom string)) *AmmKeeper_ExitPool_Call

func (*AmmKeeper_ExitPool_Call) RunAndReturn

type AmmKeeper_Expecter

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

func (*AmmKeeper_Expecter) CalcInAmtGivenOut

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

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

func (_e *AmmKeeper_Expecter) ExitPool(ctx interface{}, sender interface{}, poolId interface{}, shareInAmount interface{}, tokenOutMins interface{}, tokenOutDenom interface{}) *AmmKeeper_ExitPool_Call

ExitPool is a helper method to define mock.On call

  • ctx types.Context
  • sender types.AccAddress
  • poolId uint64
  • shareInAmount math.Int
  • tokenOutMins types.Coins
  • tokenOutDenom string

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

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

func (*AmmKeeper_Expecter) JoinPoolNoSwap

func (_e *AmmKeeper_Expecter) JoinPoolNoSwap(ctx interface{}, sender interface{}, poolId interface{}, shareOutAmount interface{}, tokenInMaxs interface{}, noRemaining interface{}) *AmmKeeper_JoinPoolNoSwap_Call

JoinPoolNoSwap is a helper method to define mock.On call

  • ctx types.Context
  • sender types.AccAddress
  • poolId uint64
  • shareOutAmount math.Int
  • tokenInMaxs types.Coins
  • noRemaining bool

type AmmKeeper_GetAllPoolIdsWithDenom_Call

type AmmKeeper_GetAllPoolIdsWithDenom_Call struct {
	*mock.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 (*AmmKeeper_GetAllPoolIdsWithDenom_Call) Run

func (*AmmKeeper_GetAllPoolIdsWithDenom_Call) RunAndReturn

type AmmKeeper_GetAllPool_Call

type AmmKeeper_GetAllPool_Call struct {
	*mock.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 (*AmmKeeper_GetAllPool_Call) Run

func (*AmmKeeper_GetAllPool_Call) RunAndReturn

type AmmKeeper_GetPoolSnapshotOrSet_Call

type AmmKeeper_GetPoolSnapshotOrSet_Call struct {
	*mock.Call
}

AmmKeeper_GetPoolSnapshotOrSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPoolSnapshotOrSet'

func (*AmmKeeper_GetPoolSnapshotOrSet_Call) Return

func (*AmmKeeper_GetPoolSnapshotOrSet_Call) Run

func (*AmmKeeper_GetPoolSnapshotOrSet_Call) RunAndReturn

type AmmKeeper_GetPool_Call

type AmmKeeper_GetPool_Call struct {
	*mock.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 (*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

type AmmKeeper_IterateLiquidityPools_Call

type AmmKeeper_IterateLiquidityPools_Call struct {
	*mock.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 (*AmmKeeper_IterateLiquidityPools_Call) Run

func (*AmmKeeper_IterateLiquidityPools_Call) RunAndReturn

type AmmKeeper_JoinPoolNoSwap_Call

type AmmKeeper_JoinPoolNoSwap_Call struct {
	*mock.Call
}

AmmKeeper_JoinPoolNoSwap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JoinPoolNoSwap'

func (*AmmKeeper_JoinPoolNoSwap_Call) Return

func (*AmmKeeper_JoinPoolNoSwap_Call) Run

func (_c *AmmKeeper_JoinPoolNoSwap_Call) Run(run func(ctx types.Context, sender types.AccAddress, poolId uint64, shareOutAmount math.Int, tokenInMaxs types.Coins, noRemaining bool)) *AmmKeeper_JoinPoolNoSwap_Call

func (*AmmKeeper_JoinPoolNoSwap_Call) RunAndReturn

type AuthorizationChecker

type AuthorizationChecker struct {
	mock.Mock
}

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 (*AuthorizationChecker) IsWhitelistingEnabled

func (_m *AuthorizationChecker) IsWhitelistingEnabled(ctx types.Context) bool

IsWhitelistingEnabled provides a mock function with given fields: ctx

type AuthorizationChecker_CheckIfWhitelisted_Call

type AuthorizationChecker_CheckIfWhitelisted_Call struct {
	*mock.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 (*AuthorizationChecker_CheckIfWhitelisted_Call) Run

func (*AuthorizationChecker_CheckIfWhitelisted_Call) RunAndReturn

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

type AuthorizationChecker_IsWhitelistingEnabled_Call struct {
	*mock.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 (*AuthorizationChecker_IsWhitelistingEnabled_Call) Run

func (*AuthorizationChecker_IsWhitelistingEnabled_Call) RunAndReturn

type BankKeeper

type BankKeeper struct {
	mock.Mock
}

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

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

type BankKeeper_BlockedAddr_Call struct {
	*mock.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 (*BankKeeper_BlockedAddr_Call) Run

func (*BankKeeper_BlockedAddr_Call) RunAndReturn

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

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

type BankKeeper_GetAllBalances_Call struct {
	*mock.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 (*BankKeeper_GetAllBalances_Call) Run

func (*BankKeeper_GetAllBalances_Call) RunAndReturn

type BankKeeper_GetBalance_Call

type BankKeeper_GetBalance_Call struct {
	*mock.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 (*BankKeeper_GetBalance_Call) Run

func (*BankKeeper_GetBalance_Call) RunAndReturn

type BankKeeper_HasBalance_Call

type BankKeeper_HasBalance_Call struct {
	*mock.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 (*BankKeeper_HasBalance_Call) Run

func (*BankKeeper_HasBalance_Call) RunAndReturn

type BankKeeper_SendCoinsFromAccountToModule_Call

type BankKeeper_SendCoinsFromAccountToModule_Call struct {
	*mock.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 (*BankKeeper_SendCoinsFromAccountToModule_Call) Run

func (*BankKeeper_SendCoinsFromAccountToModule_Call) RunAndReturn

type BankKeeper_SendCoinsFromModuleToAccount_Call

type BankKeeper_SendCoinsFromModuleToAccount_Call struct {
	*mock.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 (*BankKeeper_SendCoinsFromModuleToAccount_Call) Run

func (*BankKeeper_SendCoinsFromModuleToAccount_Call) RunAndReturn

type BankKeeper_SendCoinsFromModuleToModule_Call

type BankKeeper_SendCoinsFromModuleToModule_Call struct {
	*mock.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 (*BankKeeper_SendCoinsFromModuleToModule_Call) Run

func (*BankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn

type BankKeeper_SendCoins_Call

type BankKeeper_SendCoins_Call struct {
	*mock.Call
}

BankKeeper_SendCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoins'

func (*BankKeeper_SendCoins_Call) Return

func (*BankKeeper_SendCoins_Call) Run

func (*BankKeeper_SendCoins_Call) RunAndReturn

type BankKeeper_SpendableCoins_Call

type BankKeeper_SpendableCoins_Call struct {
	*mock.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 (*BankKeeper_SpendableCoins_Call) Run

func (*BankKeeper_SpendableCoins_Call) RunAndReturn

type CloseLongChecker

type CloseLongChecker struct {
	mock.Mock
}

CloseLongChecker is an autogenerated mock type for the CloseLongChecker type

func NewCloseLongChecker

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

func (*CloseLongChecker) EstimateAndRepay

func (_m *CloseLongChecker) EstimateAndRepay(ctx types.Context, position leveragelptypes.Position, pool leveragelptypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string) (math.Int, error)

EstimateAndRepay provides a mock function with given fields: ctx, position, pool, ammPool, collateralAsset, custodyAsset

func (*CloseLongChecker) GetAmmPool

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

func (_m *CloseLongChecker) GetPool(ctx types.Context, poolId uint64) (leveragelptypes.Pool, bool)

GetPool provides a mock function with given fields: ctx, poolId

func (*CloseLongChecker) GetPosition

func (_m *CloseLongChecker) GetPosition(ctx types.Context, positionAddress string, id uint64) (leveragelptypes.Position, error)

GetPosition provides a mock function with given fields: ctx, positionAddress, id

func (*CloseLongChecker) HandleInterest

func (_m *CloseLongChecker) HandleInterest(ctx types.Context, position *leveragelptypes.Position, pool *leveragelptypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string) error

HandleInterest provides a mock function with given fields: ctx, position, pool, ammPool, collateralAsset, custodyAsset

type CloseLongChecker_EstimateAndRepay_Call

type CloseLongChecker_EstimateAndRepay_Call struct {
	*mock.Call
}

CloseLongChecker_EstimateAndRepay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateAndRepay'

func (*CloseLongChecker_EstimateAndRepay_Call) Return

func (*CloseLongChecker_EstimateAndRepay_Call) Run

type CloseLongChecker_Expecter

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

func (*CloseLongChecker_Expecter) EstimateAndRepay

func (_e *CloseLongChecker_Expecter) EstimateAndRepay(ctx interface{}, position 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
  • position leveragelptypes.Position
  • pool leveragelptypes.Pool
  • ammPool ammtypes.Pool
  • collateralAsset string
  • custodyAsset string

func (*CloseLongChecker_Expecter) GetAmmPool

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

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

func (_e *CloseLongChecker_Expecter) GetPosition(ctx interface{}, positionAddress interface{}, id interface{}) *CloseLongChecker_GetPosition_Call

GetPosition is a helper method to define mock.On call

  • ctx types.Context
  • positionAddress string
  • id uint64

func (*CloseLongChecker_Expecter) HandleInterest

func (_e *CloseLongChecker_Expecter) HandleInterest(ctx interface{}, position interface{}, pool interface{}, ammPool interface{}, collateralAsset interface{}, custodyAsset interface{}) *CloseLongChecker_HandleInterest_Call

HandleInterest is a helper method to define mock.On call

  • ctx types.Context
  • position *leveragelptypes.Position
  • pool *leveragelptypes.Pool
  • ammPool ammtypes.Pool
  • collateralAsset string
  • custodyAsset string

type CloseLongChecker_GetAmmPool_Call

type CloseLongChecker_GetAmmPool_Call struct {
	*mock.Call
}

CloseLongChecker_GetAmmPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAmmPool'

func (*CloseLongChecker_GetAmmPool_Call) Return

func (*CloseLongChecker_GetAmmPool_Call) Run

func (_c *CloseLongChecker_GetAmmPool_Call) Run(run func(ctx types.Context, poolId uint64, tradingAsset string)) *CloseLongChecker_GetAmmPool_Call

func (*CloseLongChecker_GetAmmPool_Call) RunAndReturn

type CloseLongChecker_GetPool_Call

type CloseLongChecker_GetPool_Call struct {
	*mock.Call
}

CloseLongChecker_GetPool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPool'

func (*CloseLongChecker_GetPool_Call) Return

func (*CloseLongChecker_GetPool_Call) Run

func (*CloseLongChecker_GetPool_Call) RunAndReturn

type CloseLongChecker_GetPosition_Call

type CloseLongChecker_GetPosition_Call struct {
	*mock.Call
}

CloseLongChecker_GetPosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPosition'

func (*CloseLongChecker_GetPosition_Call) Return

func (*CloseLongChecker_GetPosition_Call) Run

func (*CloseLongChecker_GetPosition_Call) RunAndReturn

type CloseLongChecker_HandleInterest_Call

type CloseLongChecker_HandleInterest_Call struct {
	*mock.Call
}

CloseLongChecker_HandleInterest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleInterest'

func (*CloseLongChecker_HandleInterest_Call) Return

func (*CloseLongChecker_HandleInterest_Call) Run

func (_c *CloseLongChecker_HandleInterest_Call) Run(run func(ctx types.Context, position *leveragelptypes.Position, pool *leveragelptypes.Pool, ammPool ammtypes.Pool, collateralAsset string, custodyAsset string)) *CloseLongChecker_HandleInterest_Call

type OpenChecker

type OpenChecker struct {
	mock.Mock
}

OpenChecker is an autogenerated mock type for the OpenChecker type

func NewOpenChecker

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

func (_m *OpenChecker) CheckMaxOpenPositions(ctx types.Context) error

CheckMaxOpenPositions provides a mock function with given fields: ctx

func (*OpenChecker) CheckPoolHealth

func (_m *OpenChecker) CheckPoolHealth(ctx types.Context, poolId uint64) error

CheckPoolHealth provides a mock function with given fields: ctx, poolId

func (*OpenChecker) CheckSamePosition

func (_m *OpenChecker) CheckSamePosition(ctx types.Context, msg *leveragelptypes.MsgOpen) *leveragelptypes.Position

CheckSamePosition provides a mock function with given fields: ctx, msg

func (*OpenChecker) CheckUserAuthorization

func (_m *OpenChecker) CheckUserAuthorization(ctx types.Context, msg *leveragelptypes.MsgOpen) error

CheckUserAuthorization provides a mock function with given fields: ctx, msg

func (*OpenChecker) EXPECT

func (_m *OpenChecker) EXPECT() *OpenChecker_Expecter

func (*OpenChecker) EmitOpenEvent

func (_m *OpenChecker) EmitOpenEvent(ctx types.Context, position *leveragelptypes.Position)

EmitOpenEvent provides a mock function with given fields: ctx, position

func (*OpenChecker) GetMaxOpenPositions

func (_m *OpenChecker) GetMaxOpenPositions(ctx types.Context) uint64

GetMaxOpenPositions provides a mock function with given fields: ctx

func (*OpenChecker) GetOpenPositionCount

func (_m *OpenChecker) GetOpenPositionCount(ctx types.Context) uint64

GetOpenPositionCount provides a mock function with given fields: ctx

func (*OpenChecker) OpenLong

func (_m *OpenChecker) OpenLong(ctx types.Context, poolId uint64, msg *leveragelptypes.MsgOpen) (*leveragelptypes.Position, error)

OpenLong provides a mock function with given fields: ctx, poolId, msg

func (*OpenChecker) SetPosition

func (_m *OpenChecker) SetPosition(ctx types.Context, position *leveragelptypes.Position) error

SetPosition provides a mock function with given fields: ctx, position

type OpenChecker_CheckMaxOpenPositions_Call

type OpenChecker_CheckMaxOpenPositions_Call struct {
	*mock.Call
}

OpenChecker_CheckMaxOpenPositions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckMaxOpenPositions'

func (*OpenChecker_CheckMaxOpenPositions_Call) Return

func (*OpenChecker_CheckMaxOpenPositions_Call) Run

func (*OpenChecker_CheckMaxOpenPositions_Call) RunAndReturn

type OpenChecker_CheckPoolHealth_Call

type OpenChecker_CheckPoolHealth_Call struct {
	*mock.Call
}

OpenChecker_CheckPoolHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckPoolHealth'

func (*OpenChecker_CheckPoolHealth_Call) Return

func (*OpenChecker_CheckPoolHealth_Call) Run

func (*OpenChecker_CheckPoolHealth_Call) RunAndReturn

type OpenChecker_CheckSamePosition_Call

type OpenChecker_CheckSamePosition_Call struct {
	*mock.Call
}

OpenChecker_CheckSamePosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckSamePosition'

func (*OpenChecker_CheckSamePosition_Call) Return

func (*OpenChecker_CheckSamePosition_Call) Run

func (*OpenChecker_CheckSamePosition_Call) RunAndReturn

type OpenChecker_CheckUserAuthorization_Call

type OpenChecker_CheckUserAuthorization_Call struct {
	*mock.Call
}

OpenChecker_CheckUserAuthorization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckUserAuthorization'

func (*OpenChecker_CheckUserAuthorization_Call) Return

func (*OpenChecker_CheckUserAuthorization_Call) Run

func (*OpenChecker_CheckUserAuthorization_Call) RunAndReturn

type OpenChecker_EmitOpenEvent_Call

type OpenChecker_EmitOpenEvent_Call struct {
	*mock.Call
}

OpenChecker_EmitOpenEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EmitOpenEvent'

func (*OpenChecker_EmitOpenEvent_Call) Return

func (*OpenChecker_EmitOpenEvent_Call) Run

func (*OpenChecker_EmitOpenEvent_Call) RunAndReturn

type OpenChecker_Expecter

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

func (*OpenChecker_Expecter) CheckMaxOpenPositions

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

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

func (_e *OpenChecker_Expecter) CheckSamePosition(ctx interface{}, msg interface{}) *OpenChecker_CheckSamePosition_Call

CheckSamePosition is a helper method to define mock.On call

  • ctx types.Context
  • msg *leveragelptypes.MsgOpen

func (*OpenChecker_Expecter) CheckUserAuthorization

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 *leveragelptypes.MsgOpen

func (*OpenChecker_Expecter) EmitOpenEvent

func (_e *OpenChecker_Expecter) EmitOpenEvent(ctx interface{}, position interface{}) *OpenChecker_EmitOpenEvent_Call

EmitOpenEvent is a helper method to define mock.On call

  • ctx types.Context
  • position *leveragelptypes.Position

func (*OpenChecker_Expecter) GetMaxOpenPositions

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

func (_e *OpenChecker_Expecter) GetOpenPositionCount(ctx interface{}) *OpenChecker_GetOpenPositionCount_Call

GetOpenPositionCount is a helper method to define mock.On call

  • ctx types.Context

func (*OpenChecker_Expecter) OpenLong

func (_e *OpenChecker_Expecter) OpenLong(ctx interface{}, poolId interface{}, msg interface{}) *OpenChecker_OpenLong_Call

OpenLong is a helper method to define mock.On call

  • ctx types.Context
  • poolId uint64
  • msg *leveragelptypes.MsgOpen

func (*OpenChecker_Expecter) SetPosition

func (_e *OpenChecker_Expecter) SetPosition(ctx interface{}, position interface{}) *OpenChecker_SetPosition_Call

SetPosition is a helper method to define mock.On call

  • ctx types.Context
  • position *leveragelptypes.Position

type OpenChecker_GetMaxOpenPositions_Call

type OpenChecker_GetMaxOpenPositions_Call struct {
	*mock.Call
}

OpenChecker_GetMaxOpenPositions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMaxOpenPositions'

func (*OpenChecker_GetMaxOpenPositions_Call) Return

func (*OpenChecker_GetMaxOpenPositions_Call) Run

func (*OpenChecker_GetMaxOpenPositions_Call) RunAndReturn

type OpenChecker_GetOpenPositionCount_Call

type OpenChecker_GetOpenPositionCount_Call struct {
	*mock.Call
}

OpenChecker_GetOpenPositionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOpenPositionCount'

func (*OpenChecker_GetOpenPositionCount_Call) Return

func (*OpenChecker_GetOpenPositionCount_Call) Run

func (*OpenChecker_GetOpenPositionCount_Call) RunAndReturn

type OpenChecker_OpenLong_Call

type OpenChecker_OpenLong_Call struct {
	*mock.Call
}

OpenChecker_OpenLong_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenLong'

func (*OpenChecker_OpenLong_Call) Return

func (*OpenChecker_OpenLong_Call) Run

func (*OpenChecker_OpenLong_Call) RunAndReturn

type OpenChecker_SetPosition_Call

type OpenChecker_SetPosition_Call struct {
	*mock.Call
}

OpenChecker_SetPosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPosition'

func (*OpenChecker_SetPosition_Call) Return

func (*OpenChecker_SetPosition_Call) Run

func (*OpenChecker_SetPosition_Call) RunAndReturn

type OpenLongChecker

type OpenLongChecker struct {
	mock.Mock
}

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

func (_m *OpenLongChecker) CheckMinLiabilities(ctx types.Context, collateralTokenAmt types.Coin, eta math.LegacyDec, pool leveragelptypes.Pool, ammPool ammtypes.Pool, borrowAsset string) error

CheckMinLiabilities provides a mock function with given fields: ctx, collateralTokenAmt, eta, pool, ammPool, borrowAsset

func (*OpenLongChecker) CheckSamePosition

func (_m *OpenLongChecker) CheckSamePosition(ctx types.Context, msg *leveragelptypes.MsgOpen) *leveragelptypes.Position

CheckSamePosition provides a mock function with given fields: ctx, msg

func (*OpenLongChecker) EXPECT

func (*OpenLongChecker) EstimateSwapGivenOut

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) (ammtypes.Pool, error)

GetAmmPool provides a mock function with given fields: ctx, poolId

func (*OpenLongChecker) GetAmmPoolBalance

func (_m *OpenLongChecker) GetAmmPoolBalance(ctx types.Context, ammPool ammtypes.Pool, assetDenom string) (math.Int, error)

GetAmmPoolBalance provides a mock function with given fields: ctx, ammPool, assetDenom

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) (leveragelptypes.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) HasSufficientPoolBalance

func (_m *OpenLongChecker) HasSufficientPoolBalance(ctx types.Context, ammPool ammtypes.Pool, assetDenom string, requiredAmount math.Int) bool

HasSufficientPoolBalance provides a mock function with given fields: ctx, ammPool, assetDenom, requiredAmount

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

func (_m *OpenLongChecker) SetPool(ctx types.Context, pool leveragelptypes.Pool)

SetPool provides a mock function with given fields: ctx, pool

func (*OpenLongChecker) SetPosition

func (_m *OpenLongChecker) SetPosition(ctx types.Context, position *leveragelptypes.Position) error

SetPosition provides a mock function with given fields: ctx, position

func (*OpenLongChecker) UpdatePoolHealth

func (_m *OpenLongChecker) UpdatePoolHealth(ctx types.Context, pool *leveragelptypes.Pool) error

UpdatePoolHealth provides a mock function with given fields: ctx, pool

func (*OpenLongChecker) UpdatePositionHealth

func (_m *OpenLongChecker) UpdatePositionHealth(ctx types.Context, position leveragelptypes.Position, ammPool ammtypes.Pool) (math.LegacyDec, error)

UpdatePositionHealth provides a mock function with given fields: ctx, position, ammPool

type OpenLongChecker_CheckMinLiabilities_Call

type OpenLongChecker_CheckMinLiabilities_Call struct {
	*mock.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 (*OpenLongChecker_CheckMinLiabilities_Call) Run

type OpenLongChecker_CheckSamePosition_Call

type OpenLongChecker_CheckSamePosition_Call struct {
	*mock.Call
}

OpenLongChecker_CheckSamePosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckSamePosition'

func (*OpenLongChecker_CheckSamePosition_Call) Return

func (*OpenLongChecker_CheckSamePosition_Call) Run

type OpenLongChecker_EstimateSwapGivenOut_Call

type OpenLongChecker_EstimateSwapGivenOut_Call struct {
	*mock.Call
}

OpenLongChecker_EstimateSwapGivenOut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateSwapGivenOut'

func (*OpenLongChecker_EstimateSwapGivenOut_Call) Return

func (*OpenLongChecker_EstimateSwapGivenOut_Call) Run

func (*OpenLongChecker_EstimateSwapGivenOut_Call) RunAndReturn

type OpenLongChecker_Expecter

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

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 leveragelptypes.Pool
  • ammPool ammtypes.Pool
  • borrowAsset string

func (*OpenLongChecker_Expecter) CheckSamePosition

func (_e *OpenLongChecker_Expecter) CheckSamePosition(ctx interface{}, msg interface{}) *OpenLongChecker_CheckSamePosition_Call

CheckSamePosition is a helper method to define mock.On call

  • ctx types.Context
  • msg *leveragelptypes.MsgOpen

func (*OpenLongChecker_Expecter) EstimateSwapGivenOut

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{}) *OpenLongChecker_GetAmmPool_Call

GetAmmPool is a helper method to define mock.On call

  • ctx types.Context
  • poolId uint64

func (*OpenLongChecker_Expecter) GetAmmPoolBalance

func (_e *OpenLongChecker_Expecter) GetAmmPoolBalance(ctx interface{}, ammPool interface{}, assetDenom interface{}) *OpenLongChecker_GetAmmPoolBalance_Call

GetAmmPoolBalance is a helper method to define mock.On call

  • ctx types.Context
  • ammPool ammtypes.Pool
  • assetDenom 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) HasSufficientPoolBalance

func (_e *OpenLongChecker_Expecter) HasSufficientPoolBalance(ctx interface{}, ammPool interface{}, assetDenom interface{}, requiredAmount interface{}) *OpenLongChecker_HasSufficientPoolBalance_Call

HasSufficientPoolBalance is a helper method to define mock.On call

  • ctx types.Context
  • ammPool ammtypes.Pool
  • assetDenom string
  • requiredAmount math.Int

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) 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 leveragelptypes.Pool

func (*OpenLongChecker_Expecter) SetPosition

func (_e *OpenLongChecker_Expecter) SetPosition(ctx interface{}, position interface{}) *OpenLongChecker_SetPosition_Call

SetPosition is a helper method to define mock.On call

  • ctx types.Context
  • position *leveragelptypes.Position

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 *leveragelptypes.Pool

func (*OpenLongChecker_Expecter) UpdatePositionHealth

func (_e *OpenLongChecker_Expecter) UpdatePositionHealth(ctx interface{}, position interface{}, ammPool interface{}) *OpenLongChecker_UpdatePositionHealth_Call

UpdatePositionHealth is a helper method to define mock.On call

  • ctx types.Context
  • position leveragelptypes.Position
  • ammPool ammtypes.Pool

type OpenLongChecker_GetAmmPoolBalance_Call

type OpenLongChecker_GetAmmPoolBalance_Call struct {
	*mock.Call
}

OpenLongChecker_GetAmmPoolBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAmmPoolBalance'

func (*OpenLongChecker_GetAmmPoolBalance_Call) Return

func (*OpenLongChecker_GetAmmPoolBalance_Call) Run

func (*OpenLongChecker_GetAmmPoolBalance_Call) RunAndReturn

type OpenLongChecker_GetAmmPool_Call

type OpenLongChecker_GetAmmPool_Call struct {
	*mock.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 (*OpenLongChecker_GetAmmPool_Call) Run

func (*OpenLongChecker_GetAmmPool_Call) RunAndReturn

type OpenLongChecker_GetMaxLeverageParam_Call

type OpenLongChecker_GetMaxLeverageParam_Call struct {
	*mock.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 (*OpenLongChecker_GetMaxLeverageParam_Call) Run

func (*OpenLongChecker_GetMaxLeverageParam_Call) RunAndReturn

type OpenLongChecker_GetPool_Call

type OpenLongChecker_GetPool_Call struct {
	*mock.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 (*OpenLongChecker_GetPool_Call) Run

func (*OpenLongChecker_GetPool_Call) RunAndReturn

type OpenLongChecker_GetSafetyFactor_Call

type OpenLongChecker_GetSafetyFactor_Call struct {
	*mock.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 (*OpenLongChecker_GetSafetyFactor_Call) Run

func (*OpenLongChecker_GetSafetyFactor_Call) RunAndReturn

type OpenLongChecker_HasSufficientPoolBalance_Call

type OpenLongChecker_HasSufficientPoolBalance_Call struct {
	*mock.Call
}

OpenLongChecker_HasSufficientPoolBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasSufficientPoolBalance'

func (*OpenLongChecker_HasSufficientPoolBalance_Call) Return

func (*OpenLongChecker_HasSufficientPoolBalance_Call) Run

func (*OpenLongChecker_HasSufficientPoolBalance_Call) RunAndReturn

type OpenLongChecker_IsPoolEnabled_Call

type OpenLongChecker_IsPoolEnabled_Call struct {
	*mock.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 (*OpenLongChecker_IsPoolEnabled_Call) Run

func (*OpenLongChecker_IsPoolEnabled_Call) RunAndReturn

type OpenLongChecker_SetPool_Call

type OpenLongChecker_SetPool_Call struct {
	*mock.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 (*OpenLongChecker_SetPool_Call) Run

func (*OpenLongChecker_SetPool_Call) RunAndReturn

type OpenLongChecker_SetPosition_Call

type OpenLongChecker_SetPosition_Call struct {
	*mock.Call
}

OpenLongChecker_SetPosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPosition'

func (*OpenLongChecker_SetPosition_Call) Return

func (*OpenLongChecker_SetPosition_Call) Run

func (*OpenLongChecker_SetPosition_Call) RunAndReturn

type OpenLongChecker_UpdatePoolHealth_Call

type OpenLongChecker_UpdatePoolHealth_Call struct {
	*mock.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 (*OpenLongChecker_UpdatePoolHealth_Call) Run

func (*OpenLongChecker_UpdatePoolHealth_Call) RunAndReturn

type OpenLongChecker_UpdatePositionHealth_Call

type OpenLongChecker_UpdatePositionHealth_Call struct {
	*mock.Call
}

OpenLongChecker_UpdatePositionHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePositionHealth'

func (*OpenLongChecker_UpdatePositionHealth_Call) Return

func (*OpenLongChecker_UpdatePositionHealth_Call) Run

type PoolChecker

type PoolChecker struct {
	mock.Mock
}

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) (leveragelptypes.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

type PoolChecker_GetPoolOpenThreshold_Call struct {
	*mock.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 (*PoolChecker_GetPoolOpenThreshold_Call) Run

func (*PoolChecker_GetPoolOpenThreshold_Call) RunAndReturn

type PoolChecker_GetPool_Call

type PoolChecker_GetPool_Call struct {
	*mock.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 (*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

type PoolChecker_IsPoolClosed_Call

type PoolChecker_IsPoolClosed_Call struct {
	*mock.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 (*PoolChecker_IsPoolClosed_Call) Run

func (*PoolChecker_IsPoolClosed_Call) RunAndReturn

type PoolChecker_IsPoolEnabled_Call

type PoolChecker_IsPoolEnabled_Call struct {
	*mock.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 (*PoolChecker_IsPoolEnabled_Call) Run

func (*PoolChecker_IsPoolEnabled_Call) RunAndReturn

type PositionChecker

type PositionChecker struct {
	mock.Mock
}

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 (*PositionChecker) GetMaxOpenPositions

func (_m *PositionChecker) GetMaxOpenPositions(ctx types.Context) uint64

GetMaxOpenPositions provides a mock function with given fields: ctx

func (*PositionChecker) GetOpenPositionCount

func (_m *PositionChecker) GetOpenPositionCount(ctx types.Context) uint64

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

func (_e *PositionChecker_Expecter) GetOpenPositionCount(ctx interface{}) *PositionChecker_GetOpenPositionCount_Call

GetOpenPositionCount is a helper method to define mock.On call

  • ctx types.Context

type PositionChecker_GetMaxOpenPositions_Call

type PositionChecker_GetMaxOpenPositions_Call struct {
	*mock.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 (*PositionChecker_GetMaxOpenPositions_Call) Run

func (*PositionChecker_GetMaxOpenPositions_Call) RunAndReturn

type PositionChecker_GetOpenPositionCount_Call

type PositionChecker_GetOpenPositionCount_Call struct {
	*mock.Call
}

PositionChecker_GetOpenPositionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOpenPositionCount'

func (*PositionChecker_GetOpenPositionCount_Call) Return

func (*PositionChecker_GetOpenPositionCount_Call) Run

func (*PositionChecker_GetOpenPositionCount_Call) RunAndReturn

Jump to

Keyboard shortcuts

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