Documentation ¶
Index ¶
- type AccountKeeper
- type BankKeeper
- func (_m *BankKeeper) BurnCoins(ctx context.Context, moduleName string, amt types.Coins) error
- func (_m *BankKeeper) GetBalance(ctx context.Context, addr types.AccAddress, denom string) types.Coin
- func (_m *BankKeeper) GetSupply(ctx context.Context, denom string) types.Coin
- func (_m *BankKeeper) HasBalance(ctx context.Context, addr types.AccAddress, amt types.Coin) bool
- func (_m *BankKeeper) InputOutputCoins(ctx context.Context, inputs banktypes.Input, outputs []banktypes.Output) error
- func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types.AccAddress, recipientModule string, ...) error
- func (_m *BankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, ...) error
- func (_m *BankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule string, recipientModule string, ...) error
- func (_m *BankKeeper) SpendableCoins(ctx context.Context, addr types.AccAddress) types.Coins
- type OracleKeeper
- func (_m *OracleKeeper) FlagAggregateReport(ctx context.Context, report types.MicroReport) error
- func (_m *OracleKeeper) GetTipsAtBlockForTipper(ctx context.Context, blockNumber uint64, tipper cosmos_sdktypes.AccAddress) (math.Int, error)
- func (_m *OracleKeeper) GetTotalTips(ctx context.Context) (math.Int, error)
- func (_m *OracleKeeper) GetTotalTipsAtBlock(ctx context.Context, blockNumber uint64) (math.Int, error)
- func (_m *OracleKeeper) GetUserTips(ctx context.Context, tipper cosmos_sdktypes.AccAddress) (math.Int, error)
- type ReporterKeeper
- func (_m *ReporterKeeper) AddAmountToStake(ctx context.Context, acc types.AccAddress, amt math.Int) error
- func (_m *ReporterKeeper) Delegation(ctx context.Context, delegator types.AccAddress) (reportertypes.Selection, error)
- func (_m *ReporterKeeper) EscrowReporterStake(ctx context.Context, reporterAddr types.AccAddress, power uint64, ...) error
- func (_m *ReporterKeeper) FeeRefund(ctx context.Context, hashId []byte, amt math.Int) error
- func (_m *ReporterKeeper) FeefromReporterStake(ctx context.Context, reporterAddr types.AccAddress, amt math.Int, ...) error
- func (_m *ReporterKeeper) GetDelegatorTokensAtBlock(ctx context.Context, delegator []byte, blockNumber uint64) (math.Int, error)
- func (_m *ReporterKeeper) GetReporterTokensAtBlock(ctx context.Context, reporter []byte, blockNumber uint64) (math.Int, error)
- func (_m *ReporterKeeper) JailReporter(ctx context.Context, reporterAddr types.AccAddress, jailDuration uint64) error
- func (_m *ReporterKeeper) ReturnSlashedTokens(ctx context.Context, amt math.Int, hashId []byte) error
- func (_m *ReporterKeeper) TotalReporterPower(ctx context.Context) (math.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKeeper ¶
AccountKeeper is an autogenerated mock type for the AccountKeeper type
func NewAccountKeeper ¶
func NewAccountKeeper(t 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
func (*AccountKeeper) GetModuleAddress ¶
func (_m *AccountKeeper) GetModuleAddress(moduleName string) types.AccAddress
GetModuleAddress provides a mock function with given fields: moduleName
type BankKeeper ¶
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 ¶
BurnCoins provides a mock function with given fields: ctx, moduleName, amt
func (*BankKeeper) GetBalance ¶
func (_m *BankKeeper) GetBalance(ctx context.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 context.Context, addr types.AccAddress, amt types.Coin) bool
HasBalance provides a mock function with given fields: ctx, addr, amt
func (*BankKeeper) InputOutputCoins ¶
func (_m *BankKeeper) InputOutputCoins(ctx context.Context, inputs banktypes.Input, outputs []banktypes.Output) error
InputOutputCoins provides a mock function with given fields: ctx, inputs, outputs
func (*BankKeeper) SendCoinsFromAccountToModule ¶
func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx context.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 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) SendCoinsFromModuleToModule ¶
func (_m *BankKeeper) SendCoinsFromModuleToModule(ctx context.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 context.Context, addr types.AccAddress) types.Coins
SpendableCoins provides a mock function with given fields: ctx, addr
type OracleKeeper ¶
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) FlagAggregateReport ¶
func (_m *OracleKeeper) FlagAggregateReport(ctx context.Context, report types.MicroReport) error
FlagAggregateReport provides a mock function with given fields: ctx, report
func (*OracleKeeper) GetTipsAtBlockForTipper ¶
func (_m *OracleKeeper) GetTipsAtBlockForTipper(ctx context.Context, blockNumber uint64, tipper cosmos_sdktypes.AccAddress) (math.Int, error)
GetTipsAtBlockForTipper provides a mock function with given fields: ctx, blockNumber, tipper
func (*OracleKeeper) GetTotalTips ¶
GetTotalTips provides a mock function with given fields: ctx
func (*OracleKeeper) GetTotalTipsAtBlock ¶
func (_m *OracleKeeper) GetTotalTipsAtBlock(ctx context.Context, blockNumber uint64) (math.Int, error)
GetTotalTipsAtBlock provides a mock function with given fields: ctx, blockNumber
func (*OracleKeeper) GetUserTips ¶
func (_m *OracleKeeper) GetUserTips(ctx context.Context, tipper cosmos_sdktypes.AccAddress) (math.Int, error)
GetUserTips provides a mock function with given fields: ctx, tipper
type ReporterKeeper ¶
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) AddAmountToStake ¶
func (_m *ReporterKeeper) AddAmountToStake(ctx context.Context, acc types.AccAddress, amt math.Int) error
AddAmountToStake provides a mock function with given fields: ctx, acc, amt
func (*ReporterKeeper) Delegation ¶
func (_m *ReporterKeeper) Delegation(ctx context.Context, delegator types.AccAddress) (reportertypes.Selection, error)
Delegation provides a mock function with given fields: ctx, delegator
func (*ReporterKeeper) EscrowReporterStake ¶
func (_m *ReporterKeeper) EscrowReporterStake(ctx context.Context, reporterAddr types.AccAddress, power uint64, height uint64, amt math.Int, hashId []byte) error
EscrowReporterStake provides a mock function with given fields: ctx, reporterAddr, power, height, amt, hashId
func (*ReporterKeeper) FeeRefund ¶
FeeRefund provides a mock function with given fields: ctx, hashId, amt
func (*ReporterKeeper) FeefromReporterStake ¶
func (_m *ReporterKeeper) FeefromReporterStake(ctx context.Context, reporterAddr types.AccAddress, amt math.Int, hashId []byte) error
FeefromReporterStake provides a mock function with given fields: ctx, reporterAddr, amt, hashId
func (*ReporterKeeper) GetDelegatorTokensAtBlock ¶
func (_m *ReporterKeeper) GetDelegatorTokensAtBlock(ctx context.Context, delegator []byte, blockNumber uint64) (math.Int, error)
GetDelegatorTokensAtBlock provides a mock function with given fields: ctx, delegator, blockNumber
func (*ReporterKeeper) GetReporterTokensAtBlock ¶
func (_m *ReporterKeeper) GetReporterTokensAtBlock(ctx context.Context, reporter []byte, blockNumber uint64) (math.Int, error)
GetReporterTokensAtBlock provides a mock function with given fields: ctx, reporter, blockNumber
func (*ReporterKeeper) JailReporter ¶
func (_m *ReporterKeeper) JailReporter(ctx context.Context, reporterAddr types.AccAddress, jailDuration uint64) error
JailReporter provides a mock function with given fields: ctx, reporterAddr, jailDuration
func (*ReporterKeeper) ReturnSlashedTokens ¶
func (_m *ReporterKeeper) ReturnSlashedTokens(ctx context.Context, amt math.Int, hashId []byte) error
ReturnSlashedTokens provides a mock function with given fields: ctx, amt, hashId
func (*ReporterKeeper) TotalReporterPower ¶
TotalReporterPower provides a mock function with given fields: ctx