Documentation ¶
Index ¶
- type Callbacks
- func (_m *Callbacks) BatchPinComplete(namespace string, batch *blockchain.BatchPin, signingKey *core.VerifierRef) error
- func (_m *Callbacks) BlockchainEvent(event *blockchain.EventWithSubscription) error
- func (_m *Callbacks) BlockchainNetworkAction(action string, location *fftypes.JSONAny, event *blockchain.Event, ...) error
- type Plugin
- func (_m *Plugin) AddContractListener(ctx context.Context, subscription *core.ContractListenerInput) error
- func (_m *Plugin) AddFireflySubscription(ctx context.Context, namespace *core.Namespace, location *fftypes.JSONAny, ...) (string, error)
- func (_m *Plugin) Capabilities() *blockchain.Capabilities
- func (_m *Plugin) DeleteContractListener(ctx context.Context, subscription *core.ContractListener) error
- func (_m *Plugin) DeployContract(ctx context.Context, nsOpID string, signingKey string, ...) error
- func (_m *Plugin) GenerateEventSignature(ctx context.Context, event *fftypes.FFIEventDefinition) string
- func (_m *Plugin) GenerateFFI(ctx context.Context, generationRequest *fftypes.FFIGenerationRequest) (*fftypes.FFI, error)
- func (_m *Plugin) GetAndConvertDeprecatedContractConfig(ctx context.Context) (*fftypes.JSONAny, string, error)
- func (_m *Plugin) GetContractListenerStatus(ctx context.Context, subID string) (interface{}, error)
- func (_m *Plugin) GetFFIParamValidator(ctx context.Context) (fftypes.FFIParamValidator, error)
- func (_m *Plugin) GetNetworkVersion(ctx context.Context, location *fftypes.JSONAny) (int, error)
- func (_m *Plugin) Init(ctx context.Context, cancelCtx context.CancelFunc, _a2 config.Section, ...) error
- func (_m *Plugin) InitConfig(_a0 config.Section)
- func (_m *Plugin) InvokeContract(ctx context.Context, nsOpID string, signingKey string, ...) error
- func (_m *Plugin) Name() string
- func (_m *Plugin) NormalizeContractLocation(ctx context.Context, location *fftypes.JSONAny) (*fftypes.JSONAny, error)
- func (_m *Plugin) NormalizeSigningKey(ctx context.Context, keyRef string) (string, error)
- func (_m *Plugin) QueryContract(ctx context.Context, location *fftypes.JSONAny, method *fftypes.FFIMethod, ...) (interface{}, error)
- func (_m *Plugin) RemoveFireflySubscription(ctx context.Context, subID string)
- func (_m *Plugin) SetHandler(namespace string, handler blockchain.Callbacks)
- func (_m *Plugin) SetOperationHandler(namespace string, handler core.OperationCallbacks)
- func (_m *Plugin) Start() error
- func (_m *Plugin) SubmitBatchPin(ctx context.Context, nsOpID string, networkNamespace string, signingKey string, ...) error
- func (_m *Plugin) SubmitNetworkAction(ctx context.Context, nsOpID string, signingKey string, action fftypes.FFEnum, ...) error
- func (_m *Plugin) VerifierType() fftypes.FFEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callbacks ¶
Callbacks is an autogenerated mock type for the Callbacks type
func NewCallbacks ¶ added in v1.1.2
func NewCallbacks(t mockConstructorTestingTNewCallbacks) *Callbacks
NewCallbacks creates a new instance of Callbacks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Callbacks) BatchPinComplete ¶
func (_m *Callbacks) BatchPinComplete(namespace string, batch *blockchain.BatchPin, signingKey *core.VerifierRef) error
BatchPinComplete provides a mock function with given fields: namespace, batch, signingKey
func (*Callbacks) BlockchainEvent ¶ added in v0.12.0
func (_m *Callbacks) BlockchainEvent(event *blockchain.EventWithSubscription) error
BlockchainEvent provides a mock function with given fields: event
func (*Callbacks) BlockchainNetworkAction ¶ added in v1.1.0
func (_m *Callbacks) BlockchainNetworkAction(action string, location *fftypes.JSONAny, event *blockchain.Event, signingKey *core.VerifierRef) error
BlockchainNetworkAction provides a mock function with given fields: action, location, event, signingKey
type Plugin ¶
Plugin is an autogenerated mock type for the Plugin type
func NewPlugin ¶ added in v1.1.2
func NewPlugin(t mockConstructorTestingTNewPlugin) *Plugin
NewPlugin creates a new instance of Plugin. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Plugin) AddContractListener ¶ added in v0.14.0
func (_m *Plugin) AddContractListener(ctx context.Context, subscription *core.ContractListenerInput) error
AddContractListener provides a mock function with given fields: ctx, subscription
func (*Plugin) AddFireflySubscription ¶ added in v1.1.0
func (_m *Plugin) AddFireflySubscription(ctx context.Context, namespace *core.Namespace, location *fftypes.JSONAny, firstEvent string) (string, error)
AddFireflySubscription provides a mock function with given fields: ctx, namespace, location, firstEvent
func (*Plugin) Capabilities ¶
func (_m *Plugin) Capabilities() *blockchain.Capabilities
Capabilities provides a mock function with given fields:
func (*Plugin) DeleteContractListener ¶ added in v0.14.0
func (_m *Plugin) DeleteContractListener(ctx context.Context, subscription *core.ContractListener) error
DeleteContractListener provides a mock function with given fields: ctx, subscription
func (*Plugin) DeployContract ¶ added in v1.1.2
func (_m *Plugin) DeployContract(ctx context.Context, nsOpID string, signingKey string, definition *fftypes.JSONAny, contract *fftypes.JSONAny, input []interface{}, options map[string]interface{}) error
DeployContract provides a mock function with given fields: ctx, nsOpID, signingKey, definition, contract, input, options
func (*Plugin) GenerateEventSignature ¶ added in v1.0.0
func (_m *Plugin) GenerateEventSignature(ctx context.Context, event *fftypes.FFIEventDefinition) string
GenerateEventSignature provides a mock function with given fields: ctx, event
func (*Plugin) GenerateFFI ¶ added in v0.13.1
func (_m *Plugin) GenerateFFI(ctx context.Context, generationRequest *fftypes.FFIGenerationRequest) (*fftypes.FFI, error)
GenerateFFI provides a mock function with given fields: ctx, generationRequest
func (*Plugin) GetAndConvertDeprecatedContractConfig ¶ added in v1.1.0
func (_m *Plugin) GetAndConvertDeprecatedContractConfig(ctx context.Context) (*fftypes.JSONAny, string, error)
GetAndConvertDeprecatedContractConfig provides a mock function with given fields: ctx
func (*Plugin) GetContractListenerStatus ¶ added in v1.1.0
GetContractListenerStatus provides a mock function with given fields: ctx, subID
func (*Plugin) GetFFIParamValidator ¶ added in v0.12.0
GetFFIParamValidator provides a mock function with given fields: ctx
func (*Plugin) GetNetworkVersion ¶ added in v1.1.0
GetNetworkVersion provides a mock function with given fields: ctx, location
func (*Plugin) Init ¶
func (_m *Plugin) Init(ctx context.Context, cancelCtx context.CancelFunc, _a2 config.Section, _a3 metrics.Manager, cacheManager cache.Manager) error
Init provides a mock function with given fields: ctx, cancelCtx, _a2, _a3, cacheManager
func (*Plugin) InitConfig ¶ added in v1.1.0
InitConfig provides a mock function with given fields: _a0
func (*Plugin) InvokeContract ¶ added in v0.12.0
func (_m *Plugin) InvokeContract(ctx context.Context, nsOpID string, signingKey string, location *fftypes.JSONAny, method *fftypes.FFIMethod, input map[string]interface{}, options map[string]interface{}) error
InvokeContract provides a mock function with given fields: ctx, nsOpID, signingKey, location, method, input, options
func (*Plugin) NormalizeContractLocation ¶ added in v1.0.0
func (_m *Plugin) NormalizeContractLocation(ctx context.Context, location *fftypes.JSONAny) (*fftypes.JSONAny, error)
NormalizeContractLocation provides a mock function with given fields: ctx, location
func (*Plugin) NormalizeSigningKey ¶ added in v0.14.0
NormalizeSigningKey provides a mock function with given fields: ctx, keyRef
func (*Plugin) QueryContract ¶ added in v0.12.0
func (_m *Plugin) QueryContract(ctx context.Context, location *fftypes.JSONAny, method *fftypes.FFIMethod, input map[string]interface{}, options map[string]interface{}) (interface{}, error)
QueryContract provides a mock function with given fields: ctx, location, method, input, options
func (*Plugin) RemoveFireflySubscription ¶ added in v1.1.0
RemoveFireflySubscription provides a mock function with given fields: ctx, subID
func (*Plugin) SetHandler ¶ added in v1.1.0
func (_m *Plugin) SetHandler(namespace string, handler blockchain.Callbacks)
SetHandler provides a mock function with given fields: namespace, handler
func (*Plugin) SetOperationHandler ¶ added in v1.1.0
func (_m *Plugin) SetOperationHandler(namespace string, handler core.OperationCallbacks)
SetOperationHandler provides a mock function with given fields: namespace, handler
func (*Plugin) SubmitBatchPin ¶
func (_m *Plugin) SubmitBatchPin(ctx context.Context, nsOpID string, networkNamespace string, signingKey string, batch *blockchain.BatchPin, location *fftypes.JSONAny) error
SubmitBatchPin provides a mock function with given fields: ctx, nsOpID, networkNamespace, signingKey, batch, location
func (*Plugin) SubmitNetworkAction ¶ added in v1.1.0
func (_m *Plugin) SubmitNetworkAction(ctx context.Context, nsOpID string, signingKey string, action fftypes.FFEnum, location *fftypes.JSONAny) error
SubmitNetworkAction provides a mock function with given fields: ctx, nsOpID, signingKey, action, location
func (*Plugin) VerifierType ¶ added in v0.14.0
VerifierType provides a mock function with given fields: