Documentation
¶
Index ¶
- type ChainService
- type ChainService_Expecter
- type ChainService_LatestHead_Call
- func (_c *ChainService_LatestHead_Call) Return(_a0 types.Head, _a1 error) *ChainService_LatestHead_Call
- func (_c *ChainService_LatestHead_Call) Run(run func(ctx context.Context)) *ChainService_LatestHead_Call
- func (_c *ChainService_LatestHead_Call) RunAndReturn(run func(context.Context) (types.Head, error)) *ChainService_LatestHead_Call
- type ContractReader
- type ContractReader_Expecter
- type ContractReader_GetLatestValue_Call
- func (_c *ContractReader_GetLatestValue_Call) Return(_a0 error) *ContractReader_GetLatestValue_Call
- func (_c *ContractReader_GetLatestValue_Call) Run(run func(ctx context.Context, readIdentifier string, ...)) *ContractReader_GetLatestValue_Call
- func (_c *ContractReader_GetLatestValue_Call) RunAndReturn(...) *ContractReader_GetLatestValue_Call
- type ContractWriter
- func (_m *ContractWriter) Close() error
- func (_m *ContractWriter) EXPECT() *ContractWriter_Expecter
- func (_m *ContractWriter) GetEstimateFee(ctx context.Context, contract string, method string, args interface{}, ...) (types.EstimateFee, error)
- func (_m *ContractWriter) GetFeeComponents(ctx context.Context) (*types.ChainFeeComponents, error)
- func (_m *ContractWriter) GetTransactionFee(ctx context.Context, transactionID string) (decimal.Decimal, error)
- func (_m *ContractWriter) GetTransactionStatus(ctx context.Context, transactionID string) (types.TransactionStatus, error)
- func (_m *ContractWriter) HealthReport() map[string]error
- func (_m *ContractWriter) Name() string
- func (_m *ContractWriter) Ready() error
- func (_m *ContractWriter) Start(_a0 context.Context) error
- func (_m *ContractWriter) SubmitTransaction(ctx context.Context, contractName string, method string, args interface{}, ...) error
- type ContractWriter_Close_Call
- type ContractWriter_Expecter
- func (_e *ContractWriter_Expecter) Close() *ContractWriter_Close_Call
- func (_e *ContractWriter_Expecter) GetEstimateFee(ctx interface{}, contract interface{}, method interface{}, args interface{}, ...) *ContractWriter_GetEstimateFee_Call
- func (_e *ContractWriter_Expecter) GetFeeComponents(ctx interface{}) *ContractWriter_GetFeeComponents_Call
- func (_e *ContractWriter_Expecter) GetTransactionFee(ctx interface{}, transactionID interface{}) *ContractWriter_GetTransactionFee_Call
- func (_e *ContractWriter_Expecter) GetTransactionStatus(ctx interface{}, transactionID interface{}) *ContractWriter_GetTransactionStatus_Call
- func (_e *ContractWriter_Expecter) HealthReport() *ContractWriter_HealthReport_Call
- func (_e *ContractWriter_Expecter) Name() *ContractWriter_Name_Call
- func (_e *ContractWriter_Expecter) Ready() *ContractWriter_Ready_Call
- func (_e *ContractWriter_Expecter) Start(_a0 interface{}) *ContractWriter_Start_Call
- func (_e *ContractWriter_Expecter) SubmitTransaction(ctx interface{}, contractName interface{}, method interface{}, ...) *ContractWriter_SubmitTransaction_Call
- type ContractWriter_GetEstimateFee_Call
- func (_c *ContractWriter_GetEstimateFee_Call) Return(_a0 types.EstimateFee, _a1 error) *ContractWriter_GetEstimateFee_Call
- func (_c *ContractWriter_GetEstimateFee_Call) Run(...) *ContractWriter_GetEstimateFee_Call
- func (_c *ContractWriter_GetEstimateFee_Call) RunAndReturn(...) *ContractWriter_GetEstimateFee_Call
- type ContractWriter_GetFeeComponents_Call
- func (_c *ContractWriter_GetFeeComponents_Call) Return(_a0 *types.ChainFeeComponents, _a1 error) *ContractWriter_GetFeeComponents_Call
- func (_c *ContractWriter_GetFeeComponents_Call) Run(run func(ctx context.Context)) *ContractWriter_GetFeeComponents_Call
- func (_c *ContractWriter_GetFeeComponents_Call) RunAndReturn(run func(context.Context) (*types.ChainFeeComponents, error)) *ContractWriter_GetFeeComponents_Call
- type ContractWriter_GetTransactionFee_Call
- func (_c *ContractWriter_GetTransactionFee_Call) Return(_a0 decimal.Decimal, _a1 error) *ContractWriter_GetTransactionFee_Call
- func (_c *ContractWriter_GetTransactionFee_Call) Run(run func(ctx context.Context, transactionID string)) *ContractWriter_GetTransactionFee_Call
- func (_c *ContractWriter_GetTransactionFee_Call) RunAndReturn(run func(context.Context, string) (decimal.Decimal, error)) *ContractWriter_GetTransactionFee_Call
- type ContractWriter_GetTransactionStatus_Call
- func (_c *ContractWriter_GetTransactionStatus_Call) Return(_a0 types.TransactionStatus, _a1 error) *ContractWriter_GetTransactionStatus_Call
- func (_c *ContractWriter_GetTransactionStatus_Call) Run(run func(ctx context.Context, transactionID string)) *ContractWriter_GetTransactionStatus_Call
- func (_c *ContractWriter_GetTransactionStatus_Call) RunAndReturn(run func(context.Context, string) (types.TransactionStatus, error)) *ContractWriter_GetTransactionStatus_Call
- type ContractWriter_HealthReport_Call
- func (_c *ContractWriter_HealthReport_Call) Return(_a0 map[string]error) *ContractWriter_HealthReport_Call
- func (_c *ContractWriter_HealthReport_Call) Run(run func()) *ContractWriter_HealthReport_Call
- func (_c *ContractWriter_HealthReport_Call) RunAndReturn(run func() map[string]error) *ContractWriter_HealthReport_Call
- type ContractWriter_Name_Call
- type ContractWriter_Ready_Call
- type ContractWriter_Start_Call
- type ContractWriter_SubmitTransaction_Call
- func (_c *ContractWriter_SubmitTransaction_Call) Return(_a0 error) *ContractWriter_SubmitTransaction_Call
- func (_c *ContractWriter_SubmitTransaction_Call) Run(...) *ContractWriter_SubmitTransaction_Call
- func (_c *ContractWriter_SubmitTransaction_Call) RunAndReturn(...) *ContractWriter_SubmitTransaction_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainService ¶
ChainService is an autogenerated mock type for the chainService type
func NewChainService ¶
func NewChainService(t interface {
mock.TestingT
Cleanup(func())
}) *ChainService
NewChainService creates a new instance of ChainService. 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 (*ChainService) EXPECT ¶
func (_m *ChainService) EXPECT() *ChainService_Expecter
func (*ChainService) LatestHead ¶
LatestHead provides a mock function with given fields: ctx
type ChainService_Expecter ¶
type ChainService_Expecter struct {
// contains filtered or unexported fields
}
func (*ChainService_Expecter) LatestHead ¶
func (_e *ChainService_Expecter) LatestHead(ctx interface{}) *ChainService_LatestHead_Call
LatestHead is a helper method to define mock.On call
- ctx context.Context
type ChainService_LatestHead_Call ¶
ChainService_LatestHead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestHead'
func (*ChainService_LatestHead_Call) Return ¶
func (_c *ChainService_LatestHead_Call) Return(_a0 types.Head, _a1 error) *ChainService_LatestHead_Call
func (*ChainService_LatestHead_Call) Run ¶
func (_c *ChainService_LatestHead_Call) Run(run func(ctx context.Context)) *ChainService_LatestHead_Call
func (*ChainService_LatestHead_Call) RunAndReturn ¶
func (_c *ChainService_LatestHead_Call) RunAndReturn(run func(context.Context) (types.Head, error)) *ChainService_LatestHead_Call
type ContractReader ¶
ContractReader is an autogenerated mock type for the contractReader type
func NewContractReader ¶
func NewContractReader(t interface {
mock.TestingT
Cleanup(func())
}) *ContractReader
NewContractReader creates a new instance of ContractReader. 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 (*ContractReader) EXPECT ¶
func (_m *ContractReader) EXPECT() *ContractReader_Expecter
func (*ContractReader) GetLatestValue ¶
func (_m *ContractReader) GetLatestValue(ctx context.Context, readIdentifier string, confidenceLevel primitives.ConfidenceLevel, params interface{}, returnVal interface{}) error
GetLatestValue provides a mock function with given fields: ctx, readIdentifier, confidenceLevel, params, returnVal
type ContractReader_Expecter ¶
type ContractReader_Expecter struct {
// contains filtered or unexported fields
}
func (*ContractReader_Expecter) GetLatestValue ¶
func (_e *ContractReader_Expecter) GetLatestValue(ctx interface{}, readIdentifier interface{}, confidenceLevel interface{}, params interface{}, returnVal interface{}) *ContractReader_GetLatestValue_Call
GetLatestValue is a helper method to define mock.On call
- ctx context.Context
- readIdentifier string
- confidenceLevel primitives.ConfidenceLevel
- params interface{}
- returnVal interface{}
type ContractReader_GetLatestValue_Call ¶
ContractReader_GetLatestValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestValue'
func (*ContractReader_GetLatestValue_Call) Return ¶
func (_c *ContractReader_GetLatestValue_Call) Return(_a0 error) *ContractReader_GetLatestValue_Call
func (*ContractReader_GetLatestValue_Call) Run ¶
func (_c *ContractReader_GetLatestValue_Call) Run(run func(ctx context.Context, readIdentifier string, confidenceLevel primitives.ConfidenceLevel, params interface{}, returnVal interface{})) *ContractReader_GetLatestValue_Call
func (*ContractReader_GetLatestValue_Call) RunAndReturn ¶
func (_c *ContractReader_GetLatestValue_Call) RunAndReturn(run func(context.Context, string, primitives.ConfidenceLevel, interface{}, interface{}) error) *ContractReader_GetLatestValue_Call
type ContractWriter ¶
ContractWriter is an autogenerated mock type for the contractWriter type
func NewContractWriter ¶
func NewContractWriter(t interface {
mock.TestingT
Cleanup(func())
}) *ContractWriter
NewContractWriter creates a new instance of ContractWriter. 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 (*ContractWriter) Close ¶
func (_m *ContractWriter) Close() error
Close provides a mock function with no fields
func (*ContractWriter) EXPECT ¶
func (_m *ContractWriter) EXPECT() *ContractWriter_Expecter
func (*ContractWriter) GetEstimateFee ¶
func (_m *ContractWriter) GetEstimateFee(ctx context.Context, contract string, method string, args interface{}, toAddress string, meta *types.TxMeta, val *big.Int) (types.EstimateFee, error)
GetEstimateFee provides a mock function with given fields: ctx, contract, method, args, toAddress, meta, val
func (*ContractWriter) GetFeeComponents ¶
func (_m *ContractWriter) GetFeeComponents(ctx context.Context) (*types.ChainFeeComponents, error)
GetFeeComponents provides a mock function with given fields: ctx
func (*ContractWriter) GetTransactionFee ¶
func (_m *ContractWriter) GetTransactionFee(ctx context.Context, transactionID string) (decimal.Decimal, error)
GetTransactionFee provides a mock function with given fields: ctx, transactionID
func (*ContractWriter) GetTransactionStatus ¶
func (_m *ContractWriter) GetTransactionStatus(ctx context.Context, transactionID string) (types.TransactionStatus, error)
GetTransactionStatus provides a mock function with given fields: ctx, transactionID
func (*ContractWriter) HealthReport ¶
func (_m *ContractWriter) HealthReport() map[string]error
HealthReport provides a mock function with no fields
func (*ContractWriter) Name ¶
func (_m *ContractWriter) Name() string
Name provides a mock function with no fields
func (*ContractWriter) Ready ¶
func (_m *ContractWriter) Ready() error
Ready provides a mock function with no fields
func (*ContractWriter) Start ¶
func (_m *ContractWriter) Start(_a0 context.Context) error
Start provides a mock function with given fields: _a0
func (*ContractWriter) SubmitTransaction ¶
func (_m *ContractWriter) SubmitTransaction(ctx context.Context, contractName string, method string, args interface{}, transactionID string, toAddress string, meta *types.TxMeta, value *big.Int) error
SubmitTransaction provides a mock function with given fields: ctx, contractName, method, args, transactionID, toAddress, meta, value
type ContractWriter_Close_Call ¶
ContractWriter_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*ContractWriter_Close_Call) Return ¶
func (_c *ContractWriter_Close_Call) Return(_a0 error) *ContractWriter_Close_Call
func (*ContractWriter_Close_Call) Run ¶
func (_c *ContractWriter_Close_Call) Run(run func()) *ContractWriter_Close_Call
func (*ContractWriter_Close_Call) RunAndReturn ¶
func (_c *ContractWriter_Close_Call) RunAndReturn(run func() error) *ContractWriter_Close_Call
type ContractWriter_Expecter ¶
type ContractWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*ContractWriter_Expecter) Close ¶
func (_e *ContractWriter_Expecter) Close() *ContractWriter_Close_Call
Close is a helper method to define mock.On call
func (*ContractWriter_Expecter) GetEstimateFee ¶
func (_e *ContractWriter_Expecter) GetEstimateFee(ctx interface{}, contract interface{}, method interface{}, args interface{}, toAddress interface{}, meta interface{}, val interface{}) *ContractWriter_GetEstimateFee_Call
GetEstimateFee is a helper method to define mock.On call
- ctx context.Context
- contract string
- method string
- args interface{}
- toAddress string
- meta *types.TxMeta
- val *big.Int
func (*ContractWriter_Expecter) GetFeeComponents ¶
func (_e *ContractWriter_Expecter) GetFeeComponents(ctx interface{}) *ContractWriter_GetFeeComponents_Call
GetFeeComponents is a helper method to define mock.On call
- ctx context.Context
func (*ContractWriter_Expecter) GetTransactionFee ¶
func (_e *ContractWriter_Expecter) GetTransactionFee(ctx interface{}, transactionID interface{}) *ContractWriter_GetTransactionFee_Call
GetTransactionFee is a helper method to define mock.On call
- ctx context.Context
- transactionID string
func (*ContractWriter_Expecter) GetTransactionStatus ¶
func (_e *ContractWriter_Expecter) GetTransactionStatus(ctx interface{}, transactionID interface{}) *ContractWriter_GetTransactionStatus_Call
GetTransactionStatus is a helper method to define mock.On call
- ctx context.Context
- transactionID string
func (*ContractWriter_Expecter) HealthReport ¶
func (_e *ContractWriter_Expecter) HealthReport() *ContractWriter_HealthReport_Call
HealthReport is a helper method to define mock.On call
func (*ContractWriter_Expecter) Name ¶
func (_e *ContractWriter_Expecter) Name() *ContractWriter_Name_Call
Name is a helper method to define mock.On call
func (*ContractWriter_Expecter) Ready ¶
func (_e *ContractWriter_Expecter) Ready() *ContractWriter_Ready_Call
Ready is a helper method to define mock.On call
func (*ContractWriter_Expecter) Start ¶
func (_e *ContractWriter_Expecter) Start(_a0 interface{}) *ContractWriter_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
func (*ContractWriter_Expecter) SubmitTransaction ¶
func (_e *ContractWriter_Expecter) SubmitTransaction(ctx interface{}, contractName interface{}, method interface{}, args interface{}, transactionID interface{}, toAddress interface{}, meta interface{}, value interface{}) *ContractWriter_SubmitTransaction_Call
SubmitTransaction is a helper method to define mock.On call
- ctx context.Context
- contractName string
- method string
- args interface{}
- transactionID string
- toAddress string
- meta *types.TxMeta
- value *big.Int
type ContractWriter_GetEstimateFee_Call ¶
ContractWriter_GetEstimateFee_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEstimateFee'
func (*ContractWriter_GetEstimateFee_Call) Return ¶
func (_c *ContractWriter_GetEstimateFee_Call) Return(_a0 types.EstimateFee, _a1 error) *ContractWriter_GetEstimateFee_Call
func (*ContractWriter_GetEstimateFee_Call) RunAndReturn ¶
func (_c *ContractWriter_GetEstimateFee_Call) RunAndReturn(run func(context.Context, string, string, interface{}, string, *types.TxMeta, *big.Int) (types.EstimateFee, error)) *ContractWriter_GetEstimateFee_Call
type ContractWriter_GetFeeComponents_Call ¶
ContractWriter_GetFeeComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFeeComponents'
func (*ContractWriter_GetFeeComponents_Call) Return ¶
func (_c *ContractWriter_GetFeeComponents_Call) Return(_a0 *types.ChainFeeComponents, _a1 error) *ContractWriter_GetFeeComponents_Call
func (*ContractWriter_GetFeeComponents_Call) Run ¶
func (_c *ContractWriter_GetFeeComponents_Call) Run(run func(ctx context.Context)) *ContractWriter_GetFeeComponents_Call
func (*ContractWriter_GetFeeComponents_Call) RunAndReturn ¶
func (_c *ContractWriter_GetFeeComponents_Call) RunAndReturn(run func(context.Context) (*types.ChainFeeComponents, error)) *ContractWriter_GetFeeComponents_Call
type ContractWriter_GetTransactionFee_Call ¶
ContractWriter_GetTransactionFee_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactionFee'
func (*ContractWriter_GetTransactionFee_Call) Return ¶
func (_c *ContractWriter_GetTransactionFee_Call) Return(_a0 decimal.Decimal, _a1 error) *ContractWriter_GetTransactionFee_Call
func (*ContractWriter_GetTransactionFee_Call) Run ¶
func (_c *ContractWriter_GetTransactionFee_Call) Run(run func(ctx context.Context, transactionID string)) *ContractWriter_GetTransactionFee_Call
func (*ContractWriter_GetTransactionFee_Call) RunAndReturn ¶
func (_c *ContractWriter_GetTransactionFee_Call) RunAndReturn(run func(context.Context, string) (decimal.Decimal, error)) *ContractWriter_GetTransactionFee_Call
type ContractWriter_GetTransactionStatus_Call ¶
ContractWriter_GetTransactionStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactionStatus'
func (*ContractWriter_GetTransactionStatus_Call) Return ¶
func (_c *ContractWriter_GetTransactionStatus_Call) Return(_a0 types.TransactionStatus, _a1 error) *ContractWriter_GetTransactionStatus_Call
func (*ContractWriter_GetTransactionStatus_Call) Run ¶
func (_c *ContractWriter_GetTransactionStatus_Call) Run(run func(ctx context.Context, transactionID string)) *ContractWriter_GetTransactionStatus_Call
func (*ContractWriter_GetTransactionStatus_Call) RunAndReturn ¶
func (_c *ContractWriter_GetTransactionStatus_Call) RunAndReturn(run func(context.Context, string) (types.TransactionStatus, error)) *ContractWriter_GetTransactionStatus_Call
type ContractWriter_HealthReport_Call ¶
ContractWriter_HealthReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HealthReport'
func (*ContractWriter_HealthReport_Call) Return ¶
func (_c *ContractWriter_HealthReport_Call) Return(_a0 map[string]error) *ContractWriter_HealthReport_Call
func (*ContractWriter_HealthReport_Call) Run ¶
func (_c *ContractWriter_HealthReport_Call) Run(run func()) *ContractWriter_HealthReport_Call
func (*ContractWriter_HealthReport_Call) RunAndReturn ¶
func (_c *ContractWriter_HealthReport_Call) RunAndReturn(run func() map[string]error) *ContractWriter_HealthReport_Call
type ContractWriter_Name_Call ¶
ContractWriter_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*ContractWriter_Name_Call) Return ¶
func (_c *ContractWriter_Name_Call) Return(_a0 string) *ContractWriter_Name_Call
func (*ContractWriter_Name_Call) Run ¶
func (_c *ContractWriter_Name_Call) Run(run func()) *ContractWriter_Name_Call
func (*ContractWriter_Name_Call) RunAndReturn ¶
func (_c *ContractWriter_Name_Call) RunAndReturn(run func() string) *ContractWriter_Name_Call
type ContractWriter_Ready_Call ¶
ContractWriter_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*ContractWriter_Ready_Call) Return ¶
func (_c *ContractWriter_Ready_Call) Return(_a0 error) *ContractWriter_Ready_Call
func (*ContractWriter_Ready_Call) Run ¶
func (_c *ContractWriter_Ready_Call) Run(run func()) *ContractWriter_Ready_Call
func (*ContractWriter_Ready_Call) RunAndReturn ¶
func (_c *ContractWriter_Ready_Call) RunAndReturn(run func() error) *ContractWriter_Ready_Call
type ContractWriter_Start_Call ¶
ContractWriter_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*ContractWriter_Start_Call) Return ¶
func (_c *ContractWriter_Start_Call) Return(_a0 error) *ContractWriter_Start_Call
func (*ContractWriter_Start_Call) Run ¶
func (_c *ContractWriter_Start_Call) Run(run func(_a0 context.Context)) *ContractWriter_Start_Call
func (*ContractWriter_Start_Call) RunAndReturn ¶
func (_c *ContractWriter_Start_Call) RunAndReturn(run func(context.Context) error) *ContractWriter_Start_Call
type ContractWriter_SubmitTransaction_Call ¶
ContractWriter_SubmitTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubmitTransaction'
func (*ContractWriter_SubmitTransaction_Call) Return ¶
func (_c *ContractWriter_SubmitTransaction_Call) Return(_a0 error) *ContractWriter_SubmitTransaction_Call