mocks

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 7 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 mockConstructorTestingTNewAccountKeeper) *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.

func (*AccountKeeper) GetAccount

func (_m *AccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI

GetAccount provides a mock function with given fields: ctx, addr

type BankKeeper

type BankKeeper struct {
	mock.Mock
}

BankKeeper is an autogenerated mock type for the BankKeeper type

func NewBankKeeper

func NewBankKeeper(t mockConstructorTestingTNewBankKeeper) *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.

func (*BankKeeper) BurnCoins

func (_m *BankKeeper) BurnCoins(ctx context.Context, moduleName string, amts types.Coins) error

BurnCoins provides a mock function with given fields: ctx, moduleName, amts

func (*BankKeeper) MintCoins

func (_m *BankKeeper) MintCoins(ctx context.Context, name string, amt types.Coins) error

MintCoins provides a mock function with given fields: ctx, name, amt

func (*BankKeeper) SendCoinsFromAccountToModule

func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types.AccAddress, recipientModule string, amts types.Coins) error

SendCoinsFromAccountToModule provides a mock function with given fields: ctx, senderAddr, recipientModule, amts

func (*BankKeeper) SendCoinsFromModuleToAccount

func (_m *BankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error

SendCoinsFromModuleToAccount provides a mock function with given fields: ctx, senderModule, recipientAddr, amt

func (*BankKeeper) SpendableCoins

func (_m *BankKeeper) SpendableCoins(ctx context.Context, addr types.AccAddress) types.Coins

SpendableCoins provides a mock function with given fields: ctx, addr

type OracleKeeper

type OracleKeeper struct {
	mock.Mock
}

OracleKeeper is an autogenerated mock type for the OracleKeeper type

func NewOracleKeeper

func NewOracleKeeper(t mockConstructorTestingTNewOracleKeeper) *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.

func (*OracleKeeper) GetAggregateBefore

func (_m *OracleKeeper) GetAggregateBefore(ctx context.Context, queryId []byte, timestampBefore time.Time) (*types.Aggregate, time.Time, error)

GetAggregateBefore provides a mock function with given fields: ctx, queryId, timestampBefore

func (*OracleKeeper) GetAggregateByIndex

func (_m *OracleKeeper) GetAggregateByIndex(ctx context.Context, queryId []byte, index uint64) (*types.Aggregate, time.Time, error)

GetAggregateByIndex provides a mock function with given fields: ctx, queryId, index

func (*OracleKeeper) GetAggregateByTimestamp

func (_m *OracleKeeper) GetAggregateByTimestamp(ctx context.Context, queryId []byte, timestamp time.Time) (types.Aggregate, error)

GetAggregateByTimestamp provides a mock function with given fields: ctx, queryId, timestamp

func (*OracleKeeper) GetAggregatedReportsByHeight

func (_m *OracleKeeper) GetAggregatedReportsByHeight(ctx context.Context, height uint64) []types.Aggregate

GetAggregatedReportsByHeight provides a mock function with given fields: ctx, height

func (*OracleKeeper) GetTimestampAfter

func (_m *OracleKeeper) GetTimestampAfter(ctx context.Context, queryId []byte, timestamp time.Time) (time.Time, error)

GetTimestampAfter provides a mock function with given fields: ctx, queryId, timestamp

func (*OracleKeeper) GetTimestampBefore

func (_m *OracleKeeper) GetTimestampBefore(ctx context.Context, queryId []byte, timestamp time.Time) (time.Time, error)

GetTimestampBefore provides a mock function with given fields: ctx, queryId, timestamp

func (*OracleKeeper) SetAggregate

func (_m *OracleKeeper) SetAggregate(ctx context.Context, report *types.Aggregate) error

SetAggregate provides a mock function with given fields: ctx, report

type ReporterKeeper

type ReporterKeeper struct {
	mock.Mock
}

ReporterKeeper is an autogenerated mock type for the ReporterKeeper type

func NewReporterKeeper

func NewReporterKeeper(t mockConstructorTestingTNewReporterKeeper) *ReporterKeeper

NewReporterKeeper creates a new instance of ReporterKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ReporterKeeper) TotalReporterPower

func (_m *ReporterKeeper) TotalReporterPower(ctx context.Context) (math.Int, error)

TotalReporterPower provides a mock function with given fields: ctx

type StakingKeeper

type StakingKeeper struct {
	mock.Mock
}

StakingKeeper is an autogenerated mock type for the StakingKeeper type

func NewStakingKeeper

func NewStakingKeeper(t mockConstructorTestingTNewStakingKeeper) *StakingKeeper

NewStakingKeeper creates a new instance of StakingKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StakingKeeper) GetAllValidators

func (_m *StakingKeeper) GetAllValidators(ctx context.Context) ([]types.Validator, error)

GetAllValidators provides a mock function with given fields: ctx

func (*StakingKeeper) GetValidator

GetValidator provides a mock function with given fields: ctx, addr

func (*StakingKeeper) GetValidators

func (_m *StakingKeeper) GetValidators(ctx context.Context, maxRetrieve uint32) ([]types.Validator, error)

GetValidators provides a mock function with given fields: ctx, maxRetrieve

func (*StakingKeeper) TotalBondedTokens

func (_m *StakingKeeper) TotalBondedTokens(ctx context.Context) (math.Int, error)

TotalBondedTokens provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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