Documentation ¶
Index ¶
- type ORM
- func (_m *ORM) ClearGasPricesByDestChain(ctx context.Context, destChainSelector uint64, expireSec int) error
- func (_m *ORM) ClearTokenPricesByDestChain(ctx context.Context, destChainSelector uint64, expireSec int) error
- func (_m *ORM) EXPECT() *ORM_Expecter
- func (_m *ORM) GetGasPricesByDestChain(ctx context.Context, destChainSelector uint64) ([]ccip.GasPrice, error)
- func (_m *ORM) GetTokenPricesByDestChain(ctx context.Context, destChainSelector uint64) ([]ccip.TokenPrice, error)
- func (_m *ORM) InsertGasPricesForDestChain(ctx context.Context, destChainSelector uint64, jobId int32, ...) error
- func (_m *ORM) InsertTokenPricesForDestChain(ctx context.Context, destChainSelector uint64, jobId int32, ...) error
- type ORM_ClearGasPricesByDestChain_Call
- func (_c *ORM_ClearGasPricesByDestChain_Call) Return(_a0 error) *ORM_ClearGasPricesByDestChain_Call
- func (_c *ORM_ClearGasPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, expireSec int)) *ORM_ClearGasPricesByDestChain_Call
- func (_c *ORM_ClearGasPricesByDestChain_Call) RunAndReturn(run func(context.Context, uint64, int) error) *ORM_ClearGasPricesByDestChain_Call
- type ORM_ClearTokenPricesByDestChain_Call
- func (_c *ORM_ClearTokenPricesByDestChain_Call) Return(_a0 error) *ORM_ClearTokenPricesByDestChain_Call
- func (_c *ORM_ClearTokenPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, expireSec int)) *ORM_ClearTokenPricesByDestChain_Call
- func (_c *ORM_ClearTokenPricesByDestChain_Call) RunAndReturn(run func(context.Context, uint64, int) error) *ORM_ClearTokenPricesByDestChain_Call
- type ORM_Expecter
- func (_e *ORM_Expecter) ClearGasPricesByDestChain(ctx interface{}, destChainSelector interface{}, expireSec interface{}) *ORM_ClearGasPricesByDestChain_Call
- func (_e *ORM_Expecter) ClearTokenPricesByDestChain(ctx interface{}, destChainSelector interface{}, expireSec interface{}) *ORM_ClearTokenPricesByDestChain_Call
- func (_e *ORM_Expecter) GetGasPricesByDestChain(ctx interface{}, destChainSelector interface{}) *ORM_GetGasPricesByDestChain_Call
- func (_e *ORM_Expecter) GetTokenPricesByDestChain(ctx interface{}, destChainSelector interface{}) *ORM_GetTokenPricesByDestChain_Call
- func (_e *ORM_Expecter) InsertGasPricesForDestChain(ctx interface{}, destChainSelector interface{}, jobId interface{}, ...) *ORM_InsertGasPricesForDestChain_Call
- func (_e *ORM_Expecter) InsertTokenPricesForDestChain(ctx interface{}, destChainSelector interface{}, jobId interface{}, ...) *ORM_InsertTokenPricesForDestChain_Call
- type ORM_GetGasPricesByDestChain_Call
- func (_c *ORM_GetGasPricesByDestChain_Call) Return(_a0 []ccip.GasPrice, _a1 error) *ORM_GetGasPricesByDestChain_Call
- func (_c *ORM_GetGasPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64)) *ORM_GetGasPricesByDestChain_Call
- func (_c *ORM_GetGasPricesByDestChain_Call) RunAndReturn(run func(context.Context, uint64) ([]ccip.GasPrice, error)) *ORM_GetGasPricesByDestChain_Call
- type ORM_GetTokenPricesByDestChain_Call
- func (_c *ORM_GetTokenPricesByDestChain_Call) Return(_a0 []ccip.TokenPrice, _a1 error) *ORM_GetTokenPricesByDestChain_Call
- func (_c *ORM_GetTokenPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64)) *ORM_GetTokenPricesByDestChain_Call
- func (_c *ORM_GetTokenPricesByDestChain_Call) RunAndReturn(run func(context.Context, uint64) ([]ccip.TokenPrice, error)) *ORM_GetTokenPricesByDestChain_Call
- type ORM_InsertGasPricesForDestChain_Call
- func (_c *ORM_InsertGasPricesForDestChain_Call) Return(_a0 error) *ORM_InsertGasPricesForDestChain_Call
- func (_c *ORM_InsertGasPricesForDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, jobId int32, ...)) *ORM_InsertGasPricesForDestChain_Call
- func (_c *ORM_InsertGasPricesForDestChain_Call) RunAndReturn(run func(context.Context, uint64, int32, []ccip.GasPriceUpdate) error) *ORM_InsertGasPricesForDestChain_Call
- type ORM_InsertTokenPricesForDestChain_Call
- func (_c *ORM_InsertTokenPricesForDestChain_Call) Return(_a0 error) *ORM_InsertTokenPricesForDestChain_Call
- func (_c *ORM_InsertTokenPricesForDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, jobId int32, ...)) *ORM_InsertTokenPricesForDestChain_Call
- func (_c *ORM_InsertTokenPricesForDestChain_Call) RunAndReturn(run func(context.Context, uint64, int32, []ccip.TokenPriceUpdate) error) *ORM_InsertTokenPricesForDestChain_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func NewORM ¶
NewORM creates a new instance of ORM. 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 (*ORM) ClearGasPricesByDestChain ¶
func (_m *ORM) ClearGasPricesByDestChain(ctx context.Context, destChainSelector uint64, expireSec int) error
ClearGasPricesByDestChain provides a mock function with given fields: ctx, destChainSelector, expireSec
func (*ORM) ClearTokenPricesByDestChain ¶
func (_m *ORM) ClearTokenPricesByDestChain(ctx context.Context, destChainSelector uint64, expireSec int) error
ClearTokenPricesByDestChain provides a mock function with given fields: ctx, destChainSelector, expireSec
func (*ORM) EXPECT ¶ added in v2.15.0
func (_m *ORM) EXPECT() *ORM_Expecter
func (*ORM) GetGasPricesByDestChain ¶
func (_m *ORM) GetGasPricesByDestChain(ctx context.Context, destChainSelector uint64) ([]ccip.GasPrice, error)
GetGasPricesByDestChain provides a mock function with given fields: ctx, destChainSelector
func (*ORM) GetTokenPricesByDestChain ¶
func (_m *ORM) GetTokenPricesByDestChain(ctx context.Context, destChainSelector uint64) ([]ccip.TokenPrice, error)
GetTokenPricesByDestChain provides a mock function with given fields: ctx, destChainSelector
func (*ORM) InsertGasPricesForDestChain ¶
func (_m *ORM) InsertGasPricesForDestChain(ctx context.Context, destChainSelector uint64, jobId int32, gasPrices []ccip.GasPriceUpdate) error
InsertGasPricesForDestChain provides a mock function with given fields: ctx, destChainSelector, jobId, gasPrices
func (*ORM) InsertTokenPricesForDestChain ¶
func (_m *ORM) InsertTokenPricesForDestChain(ctx context.Context, destChainSelector uint64, jobId int32, tokenPrices []ccip.TokenPriceUpdate) error
InsertTokenPricesForDestChain provides a mock function with given fields: ctx, destChainSelector, jobId, tokenPrices
type ORM_ClearGasPricesByDestChain_Call ¶ added in v2.15.0
ORM_ClearGasPricesByDestChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearGasPricesByDestChain'
func (*ORM_ClearGasPricesByDestChain_Call) Return ¶ added in v2.15.0
func (_c *ORM_ClearGasPricesByDestChain_Call) Return(_a0 error) *ORM_ClearGasPricesByDestChain_Call
func (*ORM_ClearGasPricesByDestChain_Call) Run ¶ added in v2.15.0
func (_c *ORM_ClearGasPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, expireSec int)) *ORM_ClearGasPricesByDestChain_Call
func (*ORM_ClearGasPricesByDestChain_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_ClearGasPricesByDestChain_Call) RunAndReturn(run func(context.Context, uint64, int) error) *ORM_ClearGasPricesByDestChain_Call
type ORM_ClearTokenPricesByDestChain_Call ¶ added in v2.15.0
ORM_ClearTokenPricesByDestChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearTokenPricesByDestChain'
func (*ORM_ClearTokenPricesByDestChain_Call) Return ¶ added in v2.15.0
func (_c *ORM_ClearTokenPricesByDestChain_Call) Return(_a0 error) *ORM_ClearTokenPricesByDestChain_Call
func (*ORM_ClearTokenPricesByDestChain_Call) Run ¶ added in v2.15.0
func (_c *ORM_ClearTokenPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, expireSec int)) *ORM_ClearTokenPricesByDestChain_Call
func (*ORM_ClearTokenPricesByDestChain_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_ClearTokenPricesByDestChain_Call) RunAndReturn(run func(context.Context, uint64, int) error) *ORM_ClearTokenPricesByDestChain_Call
type ORM_Expecter ¶ added in v2.15.0
type ORM_Expecter struct {
// contains filtered or unexported fields
}
func (*ORM_Expecter) ClearGasPricesByDestChain ¶ added in v2.15.0
func (_e *ORM_Expecter) ClearGasPricesByDestChain(ctx interface{}, destChainSelector interface{}, expireSec interface{}) *ORM_ClearGasPricesByDestChain_Call
ClearGasPricesByDestChain is a helper method to define mock.On call
- ctx context.Context
- destChainSelector uint64
- expireSec int
func (*ORM_Expecter) ClearTokenPricesByDestChain ¶ added in v2.15.0
func (_e *ORM_Expecter) ClearTokenPricesByDestChain(ctx interface{}, destChainSelector interface{}, expireSec interface{}) *ORM_ClearTokenPricesByDestChain_Call
ClearTokenPricesByDestChain is a helper method to define mock.On call
- ctx context.Context
- destChainSelector uint64
- expireSec int
func (*ORM_Expecter) GetGasPricesByDestChain ¶ added in v2.15.0
func (_e *ORM_Expecter) GetGasPricesByDestChain(ctx interface{}, destChainSelector interface{}) *ORM_GetGasPricesByDestChain_Call
GetGasPricesByDestChain is a helper method to define mock.On call
- ctx context.Context
- destChainSelector uint64
func (*ORM_Expecter) GetTokenPricesByDestChain ¶ added in v2.15.0
func (_e *ORM_Expecter) GetTokenPricesByDestChain(ctx interface{}, destChainSelector interface{}) *ORM_GetTokenPricesByDestChain_Call
GetTokenPricesByDestChain is a helper method to define mock.On call
- ctx context.Context
- destChainSelector uint64
func (*ORM_Expecter) InsertGasPricesForDestChain ¶ added in v2.15.0
func (_e *ORM_Expecter) InsertGasPricesForDestChain(ctx interface{}, destChainSelector interface{}, jobId interface{}, gasPrices interface{}) *ORM_InsertGasPricesForDestChain_Call
InsertGasPricesForDestChain is a helper method to define mock.On call
- ctx context.Context
- destChainSelector uint64
- jobId int32
- gasPrices []ccip.GasPriceUpdate
func (*ORM_Expecter) InsertTokenPricesForDestChain ¶ added in v2.15.0
func (_e *ORM_Expecter) InsertTokenPricesForDestChain(ctx interface{}, destChainSelector interface{}, jobId interface{}, tokenPrices interface{}) *ORM_InsertTokenPricesForDestChain_Call
InsertTokenPricesForDestChain is a helper method to define mock.On call
- ctx context.Context
- destChainSelector uint64
- jobId int32
- tokenPrices []ccip.TokenPriceUpdate
type ORM_GetGasPricesByDestChain_Call ¶ added in v2.15.0
ORM_GetGasPricesByDestChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGasPricesByDestChain'
func (*ORM_GetGasPricesByDestChain_Call) Return ¶ added in v2.15.0
func (_c *ORM_GetGasPricesByDestChain_Call) Return(_a0 []ccip.GasPrice, _a1 error) *ORM_GetGasPricesByDestChain_Call
func (*ORM_GetGasPricesByDestChain_Call) Run ¶ added in v2.15.0
func (_c *ORM_GetGasPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64)) *ORM_GetGasPricesByDestChain_Call
func (*ORM_GetGasPricesByDestChain_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_GetGasPricesByDestChain_Call) RunAndReturn(run func(context.Context, uint64) ([]ccip.GasPrice, error)) *ORM_GetGasPricesByDestChain_Call
type ORM_GetTokenPricesByDestChain_Call ¶ added in v2.15.0
ORM_GetTokenPricesByDestChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTokenPricesByDestChain'
func (*ORM_GetTokenPricesByDestChain_Call) Return ¶ added in v2.15.0
func (_c *ORM_GetTokenPricesByDestChain_Call) Return(_a0 []ccip.TokenPrice, _a1 error) *ORM_GetTokenPricesByDestChain_Call
func (*ORM_GetTokenPricesByDestChain_Call) Run ¶ added in v2.15.0
func (_c *ORM_GetTokenPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64)) *ORM_GetTokenPricesByDestChain_Call
func (*ORM_GetTokenPricesByDestChain_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_GetTokenPricesByDestChain_Call) RunAndReturn(run func(context.Context, uint64) ([]ccip.TokenPrice, error)) *ORM_GetTokenPricesByDestChain_Call
type ORM_InsertGasPricesForDestChain_Call ¶ added in v2.15.0
ORM_InsertGasPricesForDestChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertGasPricesForDestChain'
func (*ORM_InsertGasPricesForDestChain_Call) Return ¶ added in v2.15.0
func (_c *ORM_InsertGasPricesForDestChain_Call) Return(_a0 error) *ORM_InsertGasPricesForDestChain_Call
func (*ORM_InsertGasPricesForDestChain_Call) Run ¶ added in v2.15.0
func (_c *ORM_InsertGasPricesForDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, jobId int32, gasPrices []ccip.GasPriceUpdate)) *ORM_InsertGasPricesForDestChain_Call
func (*ORM_InsertGasPricesForDestChain_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_InsertGasPricesForDestChain_Call) RunAndReturn(run func(context.Context, uint64, int32, []ccip.GasPriceUpdate) error) *ORM_InsertGasPricesForDestChain_Call
type ORM_InsertTokenPricesForDestChain_Call ¶ added in v2.15.0
ORM_InsertTokenPricesForDestChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertTokenPricesForDestChain'
func (*ORM_InsertTokenPricesForDestChain_Call) Return ¶ added in v2.15.0
func (_c *ORM_InsertTokenPricesForDestChain_Call) Return(_a0 error) *ORM_InsertTokenPricesForDestChain_Call
func (*ORM_InsertTokenPricesForDestChain_Call) Run ¶ added in v2.15.0
func (_c *ORM_InsertTokenPricesForDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, jobId int32, tokenPrices []ccip.TokenPriceUpdate)) *ORM_InsertTokenPricesForDestChain_Call
func (*ORM_InsertTokenPricesForDestChain_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ORM_InsertTokenPricesForDestChain_Call) RunAndReturn(run func(context.Context, uint64, int32, []ccip.TokenPriceUpdate) error) *ORM_InsertTokenPricesForDestChain_Call