blockchainmocks

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 5 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(batch *blockchain.BatchPin, signingIdentity string) error

BatchPinComplete provides a mock function with given fields: batch, signingIdentity

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

func (_m *Callbacks) BlockchainOpUpdate(operationID *fftypes.UUID, txState fftypes.OpStatus, blockchainTXID string, errorMessage string, opOutput fftypes.JSONObject) error

BlockchainOpUpdate provides a mock function with given fields: operationID, txState, blockchainTXID, errorMessage, opOutput

type Plugin

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func (*Plugin) AddSubscription added in v0.12.0

func (_m *Plugin) AddSubscription(ctx context.Context, subscription *fftypes.ContractSubscriptionInput) error

AddSubscription provides a mock function with given fields: ctx, subscription

func (*Plugin) Capabilities

func (_m *Plugin) Capabilities() *blockchain.Capabilities

Capabilities provides a mock function with given fields:

func (*Plugin) DeleteSubscription added in v0.12.0

func (_m *Plugin) DeleteSubscription(ctx context.Context, subscription *fftypes.ContractSubscription) error

DeleteSubscription provides a mock function with given fields: ctx, subscription

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

func (_m *Plugin) Init(ctx context.Context, prefix config.Prefix, callbacks blockchain.Callbacks) error

Init provides a mock function with given fields: ctx, prefix, callbacks

func (*Plugin) InitPrefix

func (_m *Plugin) InitPrefix(prefix config.Prefix)

InitPrefix provides a mock function with given fields: prefix

func (*Plugin) InvokeContract added in v0.12.0

func (_m *Plugin) InvokeContract(ctx context.Context, operationID *fftypes.UUID, signingKey string, location *fftypes.JSONAny, method *fftypes.FFIMethod, input map[string]interface{}) (interface{}, error)

InvokeContract provides a mock function with given fields: ctx, operationID, signingKey, location, method, input

func (*Plugin) Name

func (_m *Plugin) Name() string

Name provides a mock function with given fields:

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{}) (interface{}, error)

QueryContract provides a mock function with given fields: ctx, location, method, input

func (*Plugin) ResolveSigningKey

func (_m *Plugin) ResolveSigningKey(ctx context.Context, signingKey string) (string, error)

ResolveSigningKey provides a mock function with given fields: ctx, signingKey

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, operationID *fftypes.UUID, ledgerID *fftypes.UUID, signingKey string, batch *blockchain.BatchPin) error

SubmitBatchPin provides a mock function with given fields: ctx, operationID, ledgerID, signingKey, batch

func (*Plugin) ValidateContractLocation added in v0.12.0

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

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

Jump to

Keyboard shortcuts

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