Documentation ¶
Index ¶
- type CurrencyPairStrategy
- func (_m *CurrencyPairStrategy) FromID(ctx types.Context, id uint64) (oracletypes.CurrencyPair, error)
- func (_m *CurrencyPairStrategy) GetDecodedPrice(ctx types.Context, cp oracletypes.CurrencyPair, priceBytes []byte) (*big.Int, error)
- func (_m *CurrencyPairStrategy) GetEncodedPrice(ctx types.Context, cp oracletypes.CurrencyPair, price *big.Int) ([]byte, error)
- func (_m *CurrencyPairStrategy) ID(ctx types.Context, cp oracletypes.CurrencyPair) (uint64, error)
- type OracleKeeper
- func (_m *OracleKeeper) GetAllCurrencyPairs(ctx types.Context) []oracletypes.CurrencyPair
- func (_m *OracleKeeper) GetCurrencyPairFromID(ctx types.Context, id uint64) (oracletypes.CurrencyPair, bool)
- func (_m *OracleKeeper) GetIDForCurrencyPair(ctx types.Context, cp oracletypes.CurrencyPair) (uint64, bool)
- func (_m *OracleKeeper) GetPriceForCurrencyPair(ctx types.Context, cp oracletypes.CurrencyPair) (oracletypes.QuotePrice, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrencyPairStrategy ¶
CurrencyPairStrategy is an autogenerated mock type for the CurrencyPairStrategy type
func NewCurrencyPairStrategy ¶
func NewCurrencyPairStrategy(t interface { mock.TestingT Cleanup(func()) }, ) *CurrencyPairStrategy
NewCurrencyPairStrategy creates a new instance of CurrencyPairStrategy. 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 (*CurrencyPairStrategy) FromID ¶
func (_m *CurrencyPairStrategy) FromID(ctx types.Context, id uint64) (oracletypes.CurrencyPair, error)
FromID provides a mock function with given fields: ctx, id
func (*CurrencyPairStrategy) GetDecodedPrice ¶
func (_m *CurrencyPairStrategy) GetDecodedPrice(ctx types.Context, cp oracletypes.CurrencyPair, priceBytes []byte) (*big.Int, error)
GetDecodedPrice provides a mock function with given fields: ctx, cp, priceBytes
func (*CurrencyPairStrategy) GetEncodedPrice ¶
func (_m *CurrencyPairStrategy) GetEncodedPrice(ctx types.Context, cp oracletypes.CurrencyPair, price *big.Int) ([]byte, error)
GetEncodedPrice provides a mock function with given fields: ctx, cp, price
func (*CurrencyPairStrategy) ID ¶
func (_m *CurrencyPairStrategy) ID(ctx types.Context, cp oracletypes.CurrencyPair) (uint64, error)
ID provides a mock function with given fields: ctx, cp
type OracleKeeper ¶
OracleKeeper is an autogenerated mock type for the OracleKeeper type
func NewOracleKeeper ¶
func NewOracleKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *OracleKeeper
NewOracleKeeper creates a new instance of OracleKeeper. 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 (*OracleKeeper) GetAllCurrencyPairs ¶
func (_m *OracleKeeper) GetAllCurrencyPairs(ctx types.Context) []oracletypes.CurrencyPair
GetAllCurrencyPairs provides a mock function with given fields: ctx
func (*OracleKeeper) GetCurrencyPairFromID ¶
func (_m *OracleKeeper) GetCurrencyPairFromID(ctx types.Context, id uint64) (oracletypes.CurrencyPair, bool)
GetCurrencyPairFromID provides a mock function with given fields: ctx, id
func (*OracleKeeper) GetIDForCurrencyPair ¶
func (_m *OracleKeeper) GetIDForCurrencyPair(ctx types.Context, cp oracletypes.CurrencyPair) (uint64, bool)
GetIDForCurrencyPair provides a mock function with given fields: ctx, cp
func (*OracleKeeper) GetPriceForCurrencyPair ¶
func (_m *OracleKeeper) GetPriceForCurrencyPair(ctx types.Context, cp oracletypes.CurrencyPair) (oracletypes.QuotePrice, error)
GetPriceForCurrencyPair provides a mock function with given fields: ctx, cp