blockchainmocks

package
v1.1.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callbacks

type Callbacks struct {
	mock.Mock
}

Callbacks is an autogenerated mock type for the Callbacks type

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

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

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.NamespaceRef, 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) 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) GetFFIParamValidator added in v0.12.0

func (_m *Plugin) GetFFIParamValidator(ctx context.Context) (fftypes.FFIParamValidator, error)

GetFFIParamValidator provides a mock function with given fields: ctx

func (*Plugin) GetNetworkVersion added in v1.1.0

func (_m *Plugin) GetNetworkVersion(ctx context.Context, location *fftypes.JSONAny) (int, error)

GetNetworkVersion provides a mock function with given fields: ctx, location

func (*Plugin) Init

func (_m *Plugin) Init(ctx context.Context, _a1 config.Section, _a2 metrics.Manager) error

Init provides a mock function with given fields: ctx, _a1, _a2

func (*Plugin) InitConfig added in v1.1.0

func (_m *Plugin) InitConfig(_a0 config.Section)

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) Name

func (_m *Plugin) Name() string

Name provides a mock function with given fields:

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

func (_m *Plugin) NormalizeSigningKey(ctx context.Context, keyRef string) (string, error)

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

func (_m *Plugin) RemoveFireflySubscription(ctx context.Context, subID string)

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) Start

func (_m *Plugin) Start() error

Start provides a mock function with given fields:

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

func (_m *Plugin) VerifierType() fftypes.FFEnum

VerifierType provides a mock function with given fields:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL