Documentation
¶
Index ¶
- type ChainReader
- func (_m *ChainReader) Bind(ctx context.Context, bindings []types.BoundContract) error
- func (_m *ChainReader) Close() error
- func (_m *ChainReader) GetLatestValue(ctx context.Context, contractName string, method string, params interface{}, ...) error
- func (_m *ChainReader) HealthReport() map[string]error
- func (_m *ChainReader) Name() string
- func (_m *ChainReader) QueryKey(ctx context.Context, contractName string, filter query.KeyFilter, ...) ([]types.Sequence, error)
- func (_m *ChainReader) Ready() error
- func (_m *ChainReader) Start(_a0 context.Context) error
- type ChainWriter
- func (_m *ChainWriter) GetFeeComponents(ctx context.Context) (*types.ChainFeeComponents, error)
- func (_m *ChainWriter) GetTransactionStatus(ctx context.Context, transactionID string) (types.TransactionStatus, error)
- func (_m *ChainWriter) SubmitTransaction(ctx context.Context, contractName string, method string, args interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainReader ¶
ChainReader is an autogenerated mock type for the ChainReader type
func NewChainReader ¶
func NewChainReader(t interface { mock.TestingT Cleanup(func()) }) *ChainReader
NewChainReader creates a new instance of ChainReader. 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 (*ChainReader) Bind ¶
func (_m *ChainReader) Bind(ctx context.Context, bindings []types.BoundContract) error
Bind provides a mock function with given fields: ctx, bindings
func (*ChainReader) Close ¶
func (_m *ChainReader) Close() error
Close provides a mock function with given fields:
func (*ChainReader) GetLatestValue ¶
func (_m *ChainReader) GetLatestValue(ctx context.Context, contractName string, method string, params interface{}, returnVal interface{}) error
GetLatestValue provides a mock function with given fields: ctx, contractName, method, params, returnVal
func (*ChainReader) HealthReport ¶
func (_m *ChainReader) HealthReport() map[string]error
HealthReport provides a mock function with given fields:
func (*ChainReader) Name ¶
func (_m *ChainReader) Name() string
Name provides a mock function with given fields:
func (*ChainReader) QueryKey ¶
func (_m *ChainReader) QueryKey(ctx context.Context, contractName string, filter query.KeyFilter, limitAndSort query.LimitAndSort, sequenceDataType interface{}) ([]types.Sequence, error)
QueryKey provides a mock function with given fields: ctx, contractName, filter, limitAndSort, sequenceDataType
func (*ChainReader) Ready ¶
func (_m *ChainReader) Ready() error
Ready provides a mock function with given fields:
type ChainWriter ¶
ChainWriter is an autogenerated mock type for the ChainWriter type
func NewChainWriter ¶
func NewChainWriter(t interface { mock.TestingT Cleanup(func()) }) *ChainWriter
NewChainWriter creates a new instance of ChainWriter. 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 (*ChainWriter) GetFeeComponents ¶
func (_m *ChainWriter) GetFeeComponents(ctx context.Context) (*types.ChainFeeComponents, error)
GetFeeComponents provides a mock function with given fields: ctx
func (*ChainWriter) GetTransactionStatus ¶
func (_m *ChainWriter) GetTransactionStatus(ctx context.Context, transactionID string) (types.TransactionStatus, error)
GetTransactionStatus provides a mock function with given fields: ctx, transactionID
func (*ChainWriter) SubmitTransaction ¶
func (_m *ChainWriter) 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