mocks

package
v0.0.0-...-13c6ecf Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_types is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPokePoolExtension

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

MockPokePoolExtension is a mock of PokePoolExtension interface.

func NewMockPokePoolExtension

func NewMockPokePoolExtension(ctrl *gomock.Controller) *MockPokePoolExtension

NewMockPokePoolExtension creates a new mock instance.

func (*MockPokePoolExtension) CalcExitPoolCoinsFromShares

func (m *MockPokePoolExtension) CalcExitPoolCoinsFromShares(ctx types.Context, numShares types.Int, exitFee types.Dec) (types.Coins, error)

CalcExitPoolCoinsFromShares mocks base method.

func (*MockPokePoolExtension) CalcInAmtGivenOut

func (m *MockPokePoolExtension) CalcInAmtGivenOut(ctx types.Context, tokenOut types.Coins, tokenInDenom string, swapFee types.Dec) (types.Coin, error)

CalcInAmtGivenOut mocks base method.

func (*MockPokePoolExtension) CalcJoinPoolNoSwapShares

func (m *MockPokePoolExtension) CalcJoinPoolNoSwapShares(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, types.Coins, error)

CalcJoinPoolNoSwapShares mocks base method.

func (*MockPokePoolExtension) CalcJoinPoolShares

func (m *MockPokePoolExtension) CalcJoinPoolShares(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, types.Coins, error)

CalcJoinPoolShares mocks base method.

func (*MockPokePoolExtension) CalcOutAmtGivenIn

func (m *MockPokePoolExtension) CalcOutAmtGivenIn(ctx types.Context, tokenIn types.Coins, tokenOutDenom string, swapFee types.Dec) (types.Coin, error)

CalcOutAmtGivenIn mocks base method.

func (*MockPokePoolExtension) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPokePoolExtension) ExitPool

func (m *MockPokePoolExtension) ExitPool(ctx types.Context, numShares types.Int, exitFee types.Dec) (types.Coins, error)

ExitPool mocks base method.

func (*MockPokePoolExtension) GetAddress

func (m *MockPokePoolExtension) GetAddress() types.AccAddress

GetAddress mocks base method.

func (*MockPokePoolExtension) GetExitFee

func (m *MockPokePoolExtension) GetExitFee(ctx types.Context) types.Dec

GetExitFee mocks base method.

func (*MockPokePoolExtension) GetId

func (m *MockPokePoolExtension) GetId() uint64

GetId mocks base method.

func (*MockPokePoolExtension) GetSwapFee

func (m *MockPokePoolExtension) GetSwapFee(ctx types.Context) types.Dec

GetSwapFee mocks base method.

func (*MockPokePoolExtension) GetTotalPoolLiquidity

func (m *MockPokePoolExtension) GetTotalPoolLiquidity(ctx types.Context) types.Coins

GetTotalPoolLiquidity mocks base method.

func (*MockPokePoolExtension) GetTotalShares

func (m *MockPokePoolExtension) GetTotalShares() types.Int

GetTotalShares mocks base method.

func (*MockPokePoolExtension) IsActive

func (m *MockPokePoolExtension) IsActive(ctx types.Context) bool

IsActive mocks base method.

func (*MockPokePoolExtension) JoinPool

func (m *MockPokePoolExtension) JoinPool(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, error)

JoinPool mocks base method.

func (*MockPokePoolExtension) JoinPoolNoSwap

func (m *MockPokePoolExtension) JoinPoolNoSwap(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, error)

JoinPoolNoSwap mocks base method.

func (*MockPokePoolExtension) PokePool

func (m *MockPokePoolExtension) PokePool(blockTime time.Time)

PokePool mocks base method.

func (*MockPokePoolExtension) ProtoMessage

func (m *MockPokePoolExtension) ProtoMessage()

ProtoMessage mocks base method.

func (*MockPokePoolExtension) Reset

func (m *MockPokePoolExtension) Reset()

Reset mocks base method.

func (*MockPokePoolExtension) SpotPrice

func (m *MockPokePoolExtension) SpotPrice(ctx types.Context, baseAssetDenom, quoteAssetDenom string) (types.Dec, error)

SpotPrice mocks base method.

func (*MockPokePoolExtension) String

func (m *MockPokePoolExtension) String() string

String mocks base method.

func (*MockPokePoolExtension) SwapInAmtGivenOut

func (m *MockPokePoolExtension) SwapInAmtGivenOut(ctx types.Context, tokenOut types.Coins, tokenInDenom string, swapFee types.Dec) (types.Coin, error)

SwapInAmtGivenOut mocks base method.

func (*MockPokePoolExtension) SwapOutAmtGivenIn

func (m *MockPokePoolExtension) SwapOutAmtGivenIn(ctx types.Context, tokenIn types.Coins, tokenOutDenom string, swapFee types.Dec) (types.Coin, error)

SwapOutAmtGivenIn mocks base method.

type MockPokePoolExtensionMockRecorder

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

MockPokePoolExtensionMockRecorder is the mock recorder for MockPokePoolExtension.

func (*MockPokePoolExtensionMockRecorder) CalcExitPoolCoinsFromShares

func (mr *MockPokePoolExtensionMockRecorder) CalcExitPoolCoinsFromShares(ctx, numShares, exitFee interface{}) *gomock.Call

CalcExitPoolCoinsFromShares indicates an expected call of CalcExitPoolCoinsFromShares.

func (*MockPokePoolExtensionMockRecorder) CalcInAmtGivenOut

func (mr *MockPokePoolExtensionMockRecorder) CalcInAmtGivenOut(ctx, tokenOut, tokenInDenom, swapFee interface{}) *gomock.Call

CalcInAmtGivenOut indicates an expected call of CalcInAmtGivenOut.

func (*MockPokePoolExtensionMockRecorder) CalcJoinPoolNoSwapShares

func (mr *MockPokePoolExtensionMockRecorder) CalcJoinPoolNoSwapShares(ctx, tokensIn, swapFee interface{}) *gomock.Call

CalcJoinPoolNoSwapShares indicates an expected call of CalcJoinPoolNoSwapShares.

func (*MockPokePoolExtensionMockRecorder) CalcJoinPoolShares

func (mr *MockPokePoolExtensionMockRecorder) CalcJoinPoolShares(ctx, tokensIn, swapFee interface{}) *gomock.Call

CalcJoinPoolShares indicates an expected call of CalcJoinPoolShares.

func (*MockPokePoolExtensionMockRecorder) CalcOutAmtGivenIn

func (mr *MockPokePoolExtensionMockRecorder) CalcOutAmtGivenIn(ctx, tokenIn, tokenOutDenom, swapFee interface{}) *gomock.Call

CalcOutAmtGivenIn indicates an expected call of CalcOutAmtGivenIn.

func (*MockPokePoolExtensionMockRecorder) ExitPool

func (mr *MockPokePoolExtensionMockRecorder) ExitPool(ctx, numShares, exitFee interface{}) *gomock.Call

ExitPool indicates an expected call of ExitPool.

func (*MockPokePoolExtensionMockRecorder) GetAddress

func (mr *MockPokePoolExtensionMockRecorder) GetAddress() *gomock.Call

GetAddress indicates an expected call of GetAddress.

func (*MockPokePoolExtensionMockRecorder) GetExitFee

func (mr *MockPokePoolExtensionMockRecorder) GetExitFee(ctx interface{}) *gomock.Call

GetExitFee indicates an expected call of GetExitFee.

func (*MockPokePoolExtensionMockRecorder) GetId

GetId indicates an expected call of GetId.

func (*MockPokePoolExtensionMockRecorder) GetSwapFee

func (mr *MockPokePoolExtensionMockRecorder) GetSwapFee(ctx interface{}) *gomock.Call

GetSwapFee indicates an expected call of GetSwapFee.

func (*MockPokePoolExtensionMockRecorder) GetTotalPoolLiquidity

func (mr *MockPokePoolExtensionMockRecorder) GetTotalPoolLiquidity(ctx interface{}) *gomock.Call

GetTotalPoolLiquidity indicates an expected call of GetTotalPoolLiquidity.

func (*MockPokePoolExtensionMockRecorder) GetTotalShares

func (mr *MockPokePoolExtensionMockRecorder) GetTotalShares() *gomock.Call

GetTotalShares indicates an expected call of GetTotalShares.

func (*MockPokePoolExtensionMockRecorder) IsActive

func (mr *MockPokePoolExtensionMockRecorder) IsActive(ctx interface{}) *gomock.Call

IsActive indicates an expected call of IsActive.

func (*MockPokePoolExtensionMockRecorder) JoinPool

func (mr *MockPokePoolExtensionMockRecorder) JoinPool(ctx, tokensIn, swapFee interface{}) *gomock.Call

JoinPool indicates an expected call of JoinPool.

func (*MockPokePoolExtensionMockRecorder) JoinPoolNoSwap

func (mr *MockPokePoolExtensionMockRecorder) JoinPoolNoSwap(ctx, tokensIn, swapFee interface{}) *gomock.Call

JoinPoolNoSwap indicates an expected call of JoinPoolNoSwap.

func (*MockPokePoolExtensionMockRecorder) PokePool

func (mr *MockPokePoolExtensionMockRecorder) PokePool(blockTime interface{}) *gomock.Call

PokePool indicates an expected call of PokePool.

func (*MockPokePoolExtensionMockRecorder) ProtoMessage

func (mr *MockPokePoolExtensionMockRecorder) ProtoMessage() *gomock.Call

ProtoMessage indicates an expected call of ProtoMessage.

func (*MockPokePoolExtensionMockRecorder) Reset

Reset indicates an expected call of Reset.

func (*MockPokePoolExtensionMockRecorder) SpotPrice

func (mr *MockPokePoolExtensionMockRecorder) SpotPrice(ctx, baseAssetDenom, quoteAssetDenom interface{}) *gomock.Call

SpotPrice indicates an expected call of SpotPrice.

func (*MockPokePoolExtensionMockRecorder) String

String indicates an expected call of String.

func (*MockPokePoolExtensionMockRecorder) SwapInAmtGivenOut

func (mr *MockPokePoolExtensionMockRecorder) SwapInAmtGivenOut(ctx, tokenOut, tokenInDenom, swapFee interface{}) *gomock.Call

SwapInAmtGivenOut indicates an expected call of SwapInAmtGivenOut.

func (*MockPokePoolExtensionMockRecorder) SwapOutAmtGivenIn

func (mr *MockPokePoolExtensionMockRecorder) SwapOutAmtGivenIn(ctx, tokenIn, tokenOutDenom, swapFee interface{}) *gomock.Call

SwapOutAmtGivenIn indicates an expected call of SwapOutAmtGivenIn.

type MockPoolAmountOutExtension

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

MockPoolAmountOutExtension is a mock of PoolAmountOutExtension interface.

func NewMockPoolAmountOutExtension

func NewMockPoolAmountOutExtension(ctrl *gomock.Controller) *MockPoolAmountOutExtension

NewMockPoolAmountOutExtension creates a new mock instance.

func (*MockPoolAmountOutExtension) CalcExitPoolCoinsFromShares

func (m *MockPoolAmountOutExtension) CalcExitPoolCoinsFromShares(ctx types.Context, numShares types.Int, exitFee types.Dec) (types.Coins, error)

CalcExitPoolCoinsFromShares mocks base method.

func (*MockPoolAmountOutExtension) CalcInAmtGivenOut

func (m *MockPoolAmountOutExtension) CalcInAmtGivenOut(ctx types.Context, tokenOut types.Coins, tokenInDenom string, swapFee types.Dec) (types.Coin, error)

CalcInAmtGivenOut mocks base method.

func (*MockPoolAmountOutExtension) CalcJoinPoolNoSwapShares

func (m *MockPoolAmountOutExtension) CalcJoinPoolNoSwapShares(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, types.Coins, error)

CalcJoinPoolNoSwapShares mocks base method.

func (*MockPoolAmountOutExtension) CalcJoinPoolShares

func (m *MockPoolAmountOutExtension) CalcJoinPoolShares(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, types.Coins, error)

CalcJoinPoolShares mocks base method.

func (*MockPoolAmountOutExtension) CalcOutAmtGivenIn

func (m *MockPoolAmountOutExtension) CalcOutAmtGivenIn(ctx types.Context, tokenIn types.Coins, tokenOutDenom string, swapFee types.Dec) (types.Coin, error)

CalcOutAmtGivenIn mocks base method.

func (*MockPoolAmountOutExtension) CalcTokenInShareAmountOut

func (m *MockPoolAmountOutExtension) CalcTokenInShareAmountOut(ctx types.Context, tokenInDenom string, shareOutAmount types.Int, swapFee types.Dec) (types.Int, error)

CalcTokenInShareAmountOut mocks base method.

func (*MockPoolAmountOutExtension) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPoolAmountOutExtension) ExitPool

func (m *MockPoolAmountOutExtension) ExitPool(ctx types.Context, numShares types.Int, exitFee types.Dec) (types.Coins, error)

ExitPool mocks base method.

func (*MockPoolAmountOutExtension) ExitSwapExactAmountOut

func (m *MockPoolAmountOutExtension) ExitSwapExactAmountOut(ctx types.Context, tokenOut types.Coin, shareInMaxAmount types.Int) (types.Int, error)

ExitSwapExactAmountOut mocks base method.

func (*MockPoolAmountOutExtension) GetAddress

GetAddress mocks base method.

func (*MockPoolAmountOutExtension) GetExitFee

func (m *MockPoolAmountOutExtension) GetExitFee(ctx types.Context) types.Dec

GetExitFee mocks base method.

func (*MockPoolAmountOutExtension) GetId

GetId mocks base method.

func (*MockPoolAmountOutExtension) GetSwapFee

func (m *MockPoolAmountOutExtension) GetSwapFee(ctx types.Context) types.Dec

GetSwapFee mocks base method.

func (*MockPoolAmountOutExtension) GetTotalPoolLiquidity

func (m *MockPoolAmountOutExtension) GetTotalPoolLiquidity(ctx types.Context) types.Coins

GetTotalPoolLiquidity mocks base method.

func (*MockPoolAmountOutExtension) GetTotalShares

func (m *MockPoolAmountOutExtension) GetTotalShares() types.Int

GetTotalShares mocks base method.

func (*MockPoolAmountOutExtension) IncreaseLiquidity

func (m *MockPoolAmountOutExtension) IncreaseLiquidity(sharesOut types.Int, coinsIn types.Coins)

IncreaseLiquidity mocks base method.

func (*MockPoolAmountOutExtension) IsActive

func (m *MockPoolAmountOutExtension) IsActive(ctx types.Context) bool

IsActive mocks base method.

func (*MockPoolAmountOutExtension) JoinPool

func (m *MockPoolAmountOutExtension) JoinPool(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, error)

JoinPool mocks base method.

func (*MockPoolAmountOutExtension) JoinPoolNoSwap

func (m *MockPoolAmountOutExtension) JoinPoolNoSwap(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, error)

JoinPoolNoSwap mocks base method.

func (*MockPoolAmountOutExtension) JoinPoolTokenInMaxShareAmountOut

func (m *MockPoolAmountOutExtension) JoinPoolTokenInMaxShareAmountOut(ctx types.Context, tokenInDenom string, shareOutAmount types.Int) (types.Int, error)

JoinPoolTokenInMaxShareAmountOut mocks base method.

func (*MockPoolAmountOutExtension) ProtoMessage

func (m *MockPoolAmountOutExtension) ProtoMessage()

ProtoMessage mocks base method.

func (*MockPoolAmountOutExtension) Reset

func (m *MockPoolAmountOutExtension) Reset()

Reset mocks base method.

func (*MockPoolAmountOutExtension) SpotPrice

func (m *MockPoolAmountOutExtension) SpotPrice(ctx types.Context, baseAssetDenom, quoteAssetDenom string) (types.Dec, error)

SpotPrice mocks base method.

func (*MockPoolAmountOutExtension) String

func (m *MockPoolAmountOutExtension) String() string

String mocks base method.

func (*MockPoolAmountOutExtension) SwapInAmtGivenOut

func (m *MockPoolAmountOutExtension) SwapInAmtGivenOut(ctx types.Context, tokenOut types.Coins, tokenInDenom string, swapFee types.Dec) (types.Coin, error)

SwapInAmtGivenOut mocks base method.

func (*MockPoolAmountOutExtension) SwapOutAmtGivenIn

func (m *MockPoolAmountOutExtension) SwapOutAmtGivenIn(ctx types.Context, tokenIn types.Coins, tokenOutDenom string, swapFee types.Dec) (types.Coin, error)

SwapOutAmtGivenIn mocks base method.

type MockPoolAmountOutExtensionMockRecorder

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

MockPoolAmountOutExtensionMockRecorder is the mock recorder for MockPoolAmountOutExtension.

func (*MockPoolAmountOutExtensionMockRecorder) CalcExitPoolCoinsFromShares

func (mr *MockPoolAmountOutExtensionMockRecorder) CalcExitPoolCoinsFromShares(ctx, numShares, exitFee interface{}) *gomock.Call

CalcExitPoolCoinsFromShares indicates an expected call of CalcExitPoolCoinsFromShares.

func (*MockPoolAmountOutExtensionMockRecorder) CalcInAmtGivenOut

func (mr *MockPoolAmountOutExtensionMockRecorder) CalcInAmtGivenOut(ctx, tokenOut, tokenInDenom, swapFee interface{}) *gomock.Call

CalcInAmtGivenOut indicates an expected call of CalcInAmtGivenOut.

func (*MockPoolAmountOutExtensionMockRecorder) CalcJoinPoolNoSwapShares

func (mr *MockPoolAmountOutExtensionMockRecorder) CalcJoinPoolNoSwapShares(ctx, tokensIn, swapFee interface{}) *gomock.Call

CalcJoinPoolNoSwapShares indicates an expected call of CalcJoinPoolNoSwapShares.

func (*MockPoolAmountOutExtensionMockRecorder) CalcJoinPoolShares

func (mr *MockPoolAmountOutExtensionMockRecorder) CalcJoinPoolShares(ctx, tokensIn, swapFee interface{}) *gomock.Call

CalcJoinPoolShares indicates an expected call of CalcJoinPoolShares.

func (*MockPoolAmountOutExtensionMockRecorder) CalcOutAmtGivenIn

func (mr *MockPoolAmountOutExtensionMockRecorder) CalcOutAmtGivenIn(ctx, tokenIn, tokenOutDenom, swapFee interface{}) *gomock.Call

CalcOutAmtGivenIn indicates an expected call of CalcOutAmtGivenIn.

func (*MockPoolAmountOutExtensionMockRecorder) CalcTokenInShareAmountOut

func (mr *MockPoolAmountOutExtensionMockRecorder) CalcTokenInShareAmountOut(ctx, tokenInDenom, shareOutAmount, swapFee interface{}) *gomock.Call

CalcTokenInShareAmountOut indicates an expected call of CalcTokenInShareAmountOut.

func (*MockPoolAmountOutExtensionMockRecorder) ExitPool

func (mr *MockPoolAmountOutExtensionMockRecorder) ExitPool(ctx, numShares, exitFee interface{}) *gomock.Call

ExitPool indicates an expected call of ExitPool.

func (*MockPoolAmountOutExtensionMockRecorder) ExitSwapExactAmountOut

func (mr *MockPoolAmountOutExtensionMockRecorder) ExitSwapExactAmountOut(ctx, tokenOut, shareInMaxAmount interface{}) *gomock.Call

ExitSwapExactAmountOut indicates an expected call of ExitSwapExactAmountOut.

func (*MockPoolAmountOutExtensionMockRecorder) GetAddress

GetAddress indicates an expected call of GetAddress.

func (*MockPoolAmountOutExtensionMockRecorder) GetExitFee

func (mr *MockPoolAmountOutExtensionMockRecorder) GetExitFee(ctx interface{}) *gomock.Call

GetExitFee indicates an expected call of GetExitFee.

func (*MockPoolAmountOutExtensionMockRecorder) GetId

GetId indicates an expected call of GetId.

func (*MockPoolAmountOutExtensionMockRecorder) GetSwapFee

func (mr *MockPoolAmountOutExtensionMockRecorder) GetSwapFee(ctx interface{}) *gomock.Call

GetSwapFee indicates an expected call of GetSwapFee.

func (*MockPoolAmountOutExtensionMockRecorder) GetTotalPoolLiquidity

func (mr *MockPoolAmountOutExtensionMockRecorder) GetTotalPoolLiquidity(ctx interface{}) *gomock.Call

GetTotalPoolLiquidity indicates an expected call of GetTotalPoolLiquidity.

func (*MockPoolAmountOutExtensionMockRecorder) GetTotalShares

func (mr *MockPoolAmountOutExtensionMockRecorder) GetTotalShares() *gomock.Call

GetTotalShares indicates an expected call of GetTotalShares.

func (*MockPoolAmountOutExtensionMockRecorder) IncreaseLiquidity

func (mr *MockPoolAmountOutExtensionMockRecorder) IncreaseLiquidity(sharesOut, coinsIn interface{}) *gomock.Call

IncreaseLiquidity indicates an expected call of IncreaseLiquidity.

func (*MockPoolAmountOutExtensionMockRecorder) IsActive

func (mr *MockPoolAmountOutExtensionMockRecorder) IsActive(ctx interface{}) *gomock.Call

IsActive indicates an expected call of IsActive.

func (*MockPoolAmountOutExtensionMockRecorder) JoinPool

func (mr *MockPoolAmountOutExtensionMockRecorder) JoinPool(ctx, tokensIn, swapFee interface{}) *gomock.Call

JoinPool indicates an expected call of JoinPool.

func (*MockPoolAmountOutExtensionMockRecorder) JoinPoolNoSwap

func (mr *MockPoolAmountOutExtensionMockRecorder) JoinPoolNoSwap(ctx, tokensIn, swapFee interface{}) *gomock.Call

JoinPoolNoSwap indicates an expected call of JoinPoolNoSwap.

func (*MockPoolAmountOutExtensionMockRecorder) JoinPoolTokenInMaxShareAmountOut

func (mr *MockPoolAmountOutExtensionMockRecorder) JoinPoolTokenInMaxShareAmountOut(ctx, tokenInDenom, shareOutAmount interface{}) *gomock.Call

JoinPoolTokenInMaxShareAmountOut indicates an expected call of JoinPoolTokenInMaxShareAmountOut.

func (*MockPoolAmountOutExtensionMockRecorder) ProtoMessage

ProtoMessage indicates an expected call of ProtoMessage.

func (*MockPoolAmountOutExtensionMockRecorder) Reset

Reset indicates an expected call of Reset.

func (*MockPoolAmountOutExtensionMockRecorder) SpotPrice

func (mr *MockPoolAmountOutExtensionMockRecorder) SpotPrice(ctx, baseAssetDenom, quoteAssetDenom interface{}) *gomock.Call

SpotPrice indicates an expected call of SpotPrice.

func (*MockPoolAmountOutExtensionMockRecorder) String

String indicates an expected call of String.

func (*MockPoolAmountOutExtensionMockRecorder) SwapInAmtGivenOut

func (mr *MockPoolAmountOutExtensionMockRecorder) SwapInAmtGivenOut(ctx, tokenOut, tokenInDenom, swapFee interface{}) *gomock.Call

SwapInAmtGivenOut indicates an expected call of SwapInAmtGivenOut.

func (*MockPoolAmountOutExtensionMockRecorder) SwapOutAmtGivenIn

func (mr *MockPoolAmountOutExtensionMockRecorder) SwapOutAmtGivenIn(ctx, tokenIn, tokenOutDenom, swapFee interface{}) *gomock.Call

SwapOutAmtGivenIn indicates an expected call of SwapOutAmtGivenIn.

type MockPoolI

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

MockPoolI is a mock of PoolI interface.

func NewMockPoolI

func NewMockPoolI(ctrl *gomock.Controller) *MockPoolI

NewMockPoolI creates a new mock instance.

func (*MockPoolI) CalcExitPoolCoinsFromShares

func (m *MockPoolI) CalcExitPoolCoinsFromShares(ctx types.Context, numShares types.Int, exitFee types.Dec) (types.Coins, error)

CalcExitPoolCoinsFromShares mocks base method.

func (*MockPoolI) CalcInAmtGivenOut

func (m *MockPoolI) CalcInAmtGivenOut(ctx types.Context, tokenOut types.Coins, tokenInDenom string, swapFee types.Dec) (types.Coin, error)

CalcInAmtGivenOut mocks base method.

func (*MockPoolI) CalcJoinPoolNoSwapShares

func (m *MockPoolI) CalcJoinPoolNoSwapShares(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, types.Coins, error)

CalcJoinPoolNoSwapShares mocks base method.

func (*MockPoolI) CalcJoinPoolShares

func (m *MockPoolI) CalcJoinPoolShares(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, types.Coins, error)

CalcJoinPoolShares mocks base method.

func (*MockPoolI) CalcOutAmtGivenIn

func (m *MockPoolI) CalcOutAmtGivenIn(ctx types.Context, tokenIn types.Coins, tokenOutDenom string, swapFee types.Dec) (types.Coin, error)

CalcOutAmtGivenIn mocks base method.

func (*MockPoolI) EXPECT

func (m *MockPoolI) EXPECT() *MockPoolIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPoolI) ExitPool

func (m *MockPoolI) ExitPool(ctx types.Context, numShares types.Int, exitFee types.Dec) (types.Coins, error)

ExitPool mocks base method.

func (*MockPoolI) GetAddress

func (m *MockPoolI) GetAddress() types.AccAddress

GetAddress mocks base method.

func (*MockPoolI) GetExitFee

func (m *MockPoolI) GetExitFee(ctx types.Context) types.Dec

GetExitFee mocks base method.

func (*MockPoolI) GetId

func (m *MockPoolI) GetId() uint64

GetId mocks base method.

func (*MockPoolI) GetSwapFee

func (m *MockPoolI) GetSwapFee(ctx types.Context) types.Dec

GetSwapFee mocks base method.

func (*MockPoolI) GetTotalPoolLiquidity

func (m *MockPoolI) GetTotalPoolLiquidity(ctx types.Context) types.Coins

GetTotalPoolLiquidity mocks base method.

func (*MockPoolI) GetTotalShares

func (m *MockPoolI) GetTotalShares() types.Int

GetTotalShares mocks base method.

func (*MockPoolI) IsActive

func (m *MockPoolI) IsActive(ctx types.Context) bool

IsActive mocks base method.

func (*MockPoolI) JoinPool

func (m *MockPoolI) JoinPool(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, error)

JoinPool mocks base method.

func (*MockPoolI) JoinPoolNoSwap

func (m *MockPoolI) JoinPoolNoSwap(ctx types.Context, tokensIn types.Coins, swapFee types.Dec) (types.Int, error)

JoinPoolNoSwap mocks base method.

func (*MockPoolI) ProtoMessage

func (m *MockPoolI) ProtoMessage()

ProtoMessage mocks base method.

func (*MockPoolI) Reset

func (m *MockPoolI) Reset()

Reset mocks base method.

func (*MockPoolI) SpotPrice

func (m *MockPoolI) SpotPrice(ctx types.Context, baseAssetDenom, quoteAssetDenom string) (types.Dec, error)

SpotPrice mocks base method.

func (*MockPoolI) String

func (m *MockPoolI) String() string

String mocks base method.

func (*MockPoolI) SwapInAmtGivenOut

func (m *MockPoolI) SwapInAmtGivenOut(ctx types.Context, tokenOut types.Coins, tokenInDenom string, swapFee types.Dec) (types.Coin, error)

SwapInAmtGivenOut mocks base method.

func (*MockPoolI) SwapOutAmtGivenIn

func (m *MockPoolI) SwapOutAmtGivenIn(ctx types.Context, tokenIn types.Coins, tokenOutDenom string, swapFee types.Dec) (types.Coin, error)

SwapOutAmtGivenIn mocks base method.

type MockPoolIMockRecorder

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

MockPoolIMockRecorder is the mock recorder for MockPoolI.

func (*MockPoolIMockRecorder) CalcExitPoolCoinsFromShares

func (mr *MockPoolIMockRecorder) CalcExitPoolCoinsFromShares(ctx, numShares, exitFee interface{}) *gomock.Call

CalcExitPoolCoinsFromShares indicates an expected call of CalcExitPoolCoinsFromShares.

func (*MockPoolIMockRecorder) CalcInAmtGivenOut

func (mr *MockPoolIMockRecorder) CalcInAmtGivenOut(ctx, tokenOut, tokenInDenom, swapFee interface{}) *gomock.Call

CalcInAmtGivenOut indicates an expected call of CalcInAmtGivenOut.

func (*MockPoolIMockRecorder) CalcJoinPoolNoSwapShares

func (mr *MockPoolIMockRecorder) CalcJoinPoolNoSwapShares(ctx, tokensIn, swapFee interface{}) *gomock.Call

CalcJoinPoolNoSwapShares indicates an expected call of CalcJoinPoolNoSwapShares.

func (*MockPoolIMockRecorder) CalcJoinPoolShares

func (mr *MockPoolIMockRecorder) CalcJoinPoolShares(ctx, tokensIn, swapFee interface{}) *gomock.Call

CalcJoinPoolShares indicates an expected call of CalcJoinPoolShares.

func (*MockPoolIMockRecorder) CalcOutAmtGivenIn

func (mr *MockPoolIMockRecorder) CalcOutAmtGivenIn(ctx, tokenIn, tokenOutDenom, swapFee interface{}) *gomock.Call

CalcOutAmtGivenIn indicates an expected call of CalcOutAmtGivenIn.

func (*MockPoolIMockRecorder) ExitPool

func (mr *MockPoolIMockRecorder) ExitPool(ctx, numShares, exitFee interface{}) *gomock.Call

ExitPool indicates an expected call of ExitPool.

func (*MockPoolIMockRecorder) GetAddress

func (mr *MockPoolIMockRecorder) GetAddress() *gomock.Call

GetAddress indicates an expected call of GetAddress.

func (*MockPoolIMockRecorder) GetExitFee

func (mr *MockPoolIMockRecorder) GetExitFee(ctx interface{}) *gomock.Call

GetExitFee indicates an expected call of GetExitFee.

func (*MockPoolIMockRecorder) GetId

func (mr *MockPoolIMockRecorder) GetId() *gomock.Call

GetId indicates an expected call of GetId.

func (*MockPoolIMockRecorder) GetSwapFee

func (mr *MockPoolIMockRecorder) GetSwapFee(ctx interface{}) *gomock.Call

GetSwapFee indicates an expected call of GetSwapFee.

func (*MockPoolIMockRecorder) GetTotalPoolLiquidity

func (mr *MockPoolIMockRecorder) GetTotalPoolLiquidity(ctx interface{}) *gomock.Call

GetTotalPoolLiquidity indicates an expected call of GetTotalPoolLiquidity.

func (*MockPoolIMockRecorder) GetTotalShares

func (mr *MockPoolIMockRecorder) GetTotalShares() *gomock.Call

GetTotalShares indicates an expected call of GetTotalShares.

func (*MockPoolIMockRecorder) IsActive

func (mr *MockPoolIMockRecorder) IsActive(ctx interface{}) *gomock.Call

IsActive indicates an expected call of IsActive.

func (*MockPoolIMockRecorder) JoinPool

func (mr *MockPoolIMockRecorder) JoinPool(ctx, tokensIn, swapFee interface{}) *gomock.Call

JoinPool indicates an expected call of JoinPool.

func (*MockPoolIMockRecorder) JoinPoolNoSwap

func (mr *MockPoolIMockRecorder) JoinPoolNoSwap(ctx, tokensIn, swapFee interface{}) *gomock.Call

JoinPoolNoSwap indicates an expected call of JoinPoolNoSwap.

func (*MockPoolIMockRecorder) ProtoMessage

func (mr *MockPoolIMockRecorder) ProtoMessage() *gomock.Call

ProtoMessage indicates an expected call of ProtoMessage.

func (*MockPoolIMockRecorder) Reset

func (mr *MockPoolIMockRecorder) Reset() *gomock.Call

Reset indicates an expected call of Reset.

func (*MockPoolIMockRecorder) SpotPrice

func (mr *MockPoolIMockRecorder) SpotPrice(ctx, baseAssetDenom, quoteAssetDenom interface{}) *gomock.Call

SpotPrice indicates an expected call of SpotPrice.

func (*MockPoolIMockRecorder) String

func (mr *MockPoolIMockRecorder) String() *gomock.Call

String indicates an expected call of String.

func (*MockPoolIMockRecorder) SwapInAmtGivenOut

func (mr *MockPoolIMockRecorder) SwapInAmtGivenOut(ctx, tokenOut, tokenInDenom, swapFee interface{}) *gomock.Call

SwapInAmtGivenOut indicates an expected call of SwapInAmtGivenOut.

func (*MockPoolIMockRecorder) SwapOutAmtGivenIn

func (mr *MockPoolIMockRecorder) SwapOutAmtGivenIn(ctx, tokenIn, tokenOutDenom, swapFee interface{}) *gomock.Call

SwapOutAmtGivenIn indicates an expected call of SwapOutAmtGivenIn.

Jump to

Keyboard shortcuts

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