Documentation ¶
Index ¶
- type PriceApplier
- func (_m *PriceApplier) ApplyPricesFromVoteExtensions(ctx types.Context, req *abcitypes.RequestFinalizeBlock) (map[pkgtypes.CurrencyPair]*big.Int, error)
- func (_m *PriceApplier) EXPECT() *PriceApplier_Expecter
- func (_m *PriceApplier) GetPricesForValidator(validator types.ConsAddress) map[pkgtypes.CurrencyPair]*big.Int
- type PriceApplier_ApplyPricesFromVoteExtensions_Call
- func (_c *PriceApplier_ApplyPricesFromVoteExtensions_Call) Return(_a0 map[pkgtypes.CurrencyPair]*big.Int, _a1 error) *PriceApplier_ApplyPricesFromVoteExtensions_Call
- func (_c *PriceApplier_ApplyPricesFromVoteExtensions_Call) Run(run func(ctx types.Context, req *abcitypes.RequestFinalizeBlock)) *PriceApplier_ApplyPricesFromVoteExtensions_Call
- func (_c *PriceApplier_ApplyPricesFromVoteExtensions_Call) RunAndReturn(...) *PriceApplier_ApplyPricesFromVoteExtensions_Call
- type PriceApplier_Expecter
- type PriceApplier_GetPricesForValidator_Call
- func (_c *PriceApplier_GetPricesForValidator_Call) Return(_a0 map[pkgtypes.CurrencyPair]*big.Int) *PriceApplier_GetPricesForValidator_Call
- func (_c *PriceApplier_GetPricesForValidator_Call) Run(run func(validator types.ConsAddress)) *PriceApplier_GetPricesForValidator_Call
- func (_c *PriceApplier_GetPricesForValidator_Call) RunAndReturn(run func(types.ConsAddress) map[pkgtypes.CurrencyPair]*big.Int) *PriceApplier_GetPricesForValidator_Call
- type VoteAggregator
- func (_m *VoteAggregator) AggregateOracleVotes(ctx types.Context, votes []aggregator.Vote) (map[pkgtypes.CurrencyPair]*big.Int, error)
- func (_m *VoteAggregator) EXPECT() *VoteAggregator_Expecter
- func (_m *VoteAggregator) GetPriceForValidator(validator types.ConsAddress) map[pkgtypes.CurrencyPair]*big.Int
- type VoteAggregator_AggregateOracleVotes_Call
- func (_c *VoteAggregator_AggregateOracleVotes_Call) Return(_a0 map[pkgtypes.CurrencyPair]*big.Int, _a1 error) *VoteAggregator_AggregateOracleVotes_Call
- func (_c *VoteAggregator_AggregateOracleVotes_Call) Run(run func(ctx types.Context, votes []aggregator.Vote)) *VoteAggregator_AggregateOracleVotes_Call
- func (_c *VoteAggregator_AggregateOracleVotes_Call) RunAndReturn(...) *VoteAggregator_AggregateOracleVotes_Call
- type VoteAggregator_Expecter
- type VoteAggregator_GetPriceForValidator_Call
- func (_c *VoteAggregator_GetPriceForValidator_Call) Return(_a0 map[pkgtypes.CurrencyPair]*big.Int) *VoteAggregator_GetPriceForValidator_Call
- func (_c *VoteAggregator_GetPriceForValidator_Call) Run(run func(validator types.ConsAddress)) *VoteAggregator_GetPriceForValidator_Call
- func (_c *VoteAggregator_GetPriceForValidator_Call) RunAndReturn(run func(types.ConsAddress) map[pkgtypes.CurrencyPair]*big.Int) *VoteAggregator_GetPriceForValidator_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriceApplier ¶
PriceApplier is an autogenerated mock type for the PriceApplier type
func NewPriceApplier ¶
func NewPriceApplier(t interface { mock.TestingT Cleanup(func()) }) *PriceApplier
NewPriceApplier creates a new instance of PriceApplier. 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 (*PriceApplier) ApplyPricesFromVoteExtensions ¶
func (_m *PriceApplier) ApplyPricesFromVoteExtensions(ctx types.Context, req *abcitypes.RequestFinalizeBlock) (map[pkgtypes.CurrencyPair]*big.Int, error)
ApplyPricesFromVoteExtensions provides a mock function with given fields: ctx, req
func (*PriceApplier) EXPECT ¶
func (_m *PriceApplier) EXPECT() *PriceApplier_Expecter
func (*PriceApplier) GetPricesForValidator ¶
func (_m *PriceApplier) GetPricesForValidator(validator types.ConsAddress) map[pkgtypes.CurrencyPair]*big.Int
GetPricesForValidator provides a mock function with given fields: validator
type PriceApplier_ApplyPricesFromVoteExtensions_Call ¶
PriceApplier_ApplyPricesFromVoteExtensions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyPricesFromVoteExtensions'
func (*PriceApplier_ApplyPricesFromVoteExtensions_Call) Return ¶
func (_c *PriceApplier_ApplyPricesFromVoteExtensions_Call) Return(_a0 map[pkgtypes.CurrencyPair]*big.Int, _a1 error) *PriceApplier_ApplyPricesFromVoteExtensions_Call
func (*PriceApplier_ApplyPricesFromVoteExtensions_Call) Run ¶
func (_c *PriceApplier_ApplyPricesFromVoteExtensions_Call) Run(run func(ctx types.Context, req *abcitypes.RequestFinalizeBlock)) *PriceApplier_ApplyPricesFromVoteExtensions_Call
func (*PriceApplier_ApplyPricesFromVoteExtensions_Call) RunAndReturn ¶
func (_c *PriceApplier_ApplyPricesFromVoteExtensions_Call) RunAndReturn(run func(types.Context, *abcitypes.RequestFinalizeBlock) (map[pkgtypes.CurrencyPair]*big.Int, error)) *PriceApplier_ApplyPricesFromVoteExtensions_Call
type PriceApplier_Expecter ¶
type PriceApplier_Expecter struct {
// contains filtered or unexported fields
}
func (*PriceApplier_Expecter) ApplyPricesFromVoteExtensions ¶
func (_e *PriceApplier_Expecter) ApplyPricesFromVoteExtensions(ctx interface{}, req interface{}) *PriceApplier_ApplyPricesFromVoteExtensions_Call
ApplyPricesFromVoteExtensions is a helper method to define mock.On call
- ctx types.Context
- req *abcitypes.RequestFinalizeBlock
func (*PriceApplier_Expecter) GetPricesForValidator ¶
func (_e *PriceApplier_Expecter) GetPricesForValidator(validator interface{}) *PriceApplier_GetPricesForValidator_Call
GetPricesForValidator is a helper method to define mock.On call
- validator types.ConsAddress
type PriceApplier_GetPricesForValidator_Call ¶
PriceApplier_GetPricesForValidator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPricesForValidator'
func (*PriceApplier_GetPricesForValidator_Call) Return ¶
func (_c *PriceApplier_GetPricesForValidator_Call) Return(_a0 map[pkgtypes.CurrencyPair]*big.Int) *PriceApplier_GetPricesForValidator_Call
func (*PriceApplier_GetPricesForValidator_Call) Run ¶
func (_c *PriceApplier_GetPricesForValidator_Call) Run(run func(validator types.ConsAddress)) *PriceApplier_GetPricesForValidator_Call
func (*PriceApplier_GetPricesForValidator_Call) RunAndReturn ¶
func (_c *PriceApplier_GetPricesForValidator_Call) RunAndReturn(run func(types.ConsAddress) map[pkgtypes.CurrencyPair]*big.Int) *PriceApplier_GetPricesForValidator_Call
type VoteAggregator ¶
VoteAggregator is an autogenerated mock type for the VoteAggregator type
func NewVoteAggregator ¶
func NewVoteAggregator(t interface { mock.TestingT Cleanup(func()) }) *VoteAggregator
NewVoteAggregator creates a new instance of VoteAggregator. 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 (*VoteAggregator) AggregateOracleVotes ¶
func (_m *VoteAggregator) AggregateOracleVotes(ctx types.Context, votes []aggregator.Vote) (map[pkgtypes.CurrencyPair]*big.Int, error)
AggregateOracleVotes provides a mock function with given fields: ctx, votes
func (*VoteAggregator) EXPECT ¶
func (_m *VoteAggregator) EXPECT() *VoteAggregator_Expecter
func (*VoteAggregator) GetPriceForValidator ¶
func (_m *VoteAggregator) GetPriceForValidator(validator types.ConsAddress) map[pkgtypes.CurrencyPair]*big.Int
GetPriceForValidator provides a mock function with given fields: validator
type VoteAggregator_AggregateOracleVotes_Call ¶
VoteAggregator_AggregateOracleVotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AggregateOracleVotes'
func (*VoteAggregator_AggregateOracleVotes_Call) Return ¶
func (_c *VoteAggregator_AggregateOracleVotes_Call) Return(_a0 map[pkgtypes.CurrencyPair]*big.Int, _a1 error) *VoteAggregator_AggregateOracleVotes_Call
func (*VoteAggregator_AggregateOracleVotes_Call) Run ¶
func (_c *VoteAggregator_AggregateOracleVotes_Call) Run(run func(ctx types.Context, votes []aggregator.Vote)) *VoteAggregator_AggregateOracleVotes_Call
func (*VoteAggregator_AggregateOracleVotes_Call) RunAndReturn ¶
func (_c *VoteAggregator_AggregateOracleVotes_Call) RunAndReturn(run func(types.Context, []aggregator.Vote) (map[pkgtypes.CurrencyPair]*big.Int, error)) *VoteAggregator_AggregateOracleVotes_Call
type VoteAggregator_Expecter ¶
type VoteAggregator_Expecter struct {
// contains filtered or unexported fields
}
func (*VoteAggregator_Expecter) AggregateOracleVotes ¶
func (_e *VoteAggregator_Expecter) AggregateOracleVotes(ctx interface{}, votes interface{}) *VoteAggregator_AggregateOracleVotes_Call
AggregateOracleVotes is a helper method to define mock.On call
- ctx types.Context
- votes []aggregator.Vote
func (*VoteAggregator_Expecter) GetPriceForValidator ¶
func (_e *VoteAggregator_Expecter) GetPriceForValidator(validator interface{}) *VoteAggregator_GetPriceForValidator_Call
GetPriceForValidator is a helper method to define mock.On call
- validator types.ConsAddress
type VoteAggregator_GetPriceForValidator_Call ¶
VoteAggregator_GetPriceForValidator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPriceForValidator'
func (*VoteAggregator_GetPriceForValidator_Call) Return ¶
func (_c *VoteAggregator_GetPriceForValidator_Call) Return(_a0 map[pkgtypes.CurrencyPair]*big.Int) *VoteAggregator_GetPriceForValidator_Call
func (*VoteAggregator_GetPriceForValidator_Call) Run ¶
func (_c *VoteAggregator_GetPriceForValidator_Call) Run(run func(validator types.ConsAddress)) *VoteAggregator_GetPriceForValidator_Call
func (*VoteAggregator_GetPriceForValidator_Call) RunAndReturn ¶
func (_c *VoteAggregator_GetPriceForValidator_Call) RunAndReturn(run func(types.ConsAddress) map[pkgtypes.CurrencyPair]*big.Int) *VoteAggregator_GetPriceForValidator_Call