tokenmocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 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) TokenOpUpdate added in v0.11.0

func (_m *Callbacks) TokenOpUpdate(plugin tokens.Plugin, operationID *fftypes.UUID, txState fftypes.OpStatus, blockchainTXID string, errorMessage string, opOutput fftypes.JSONObject)

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

func (*Callbacks) TokenPoolCreated

func (_m *Callbacks) TokenPoolCreated(plugin tokens.Plugin, pool *tokens.TokenPool) error

TokenPoolCreated provides a mock function with given fields: plugin, pool

func (*Callbacks) TokensApproved added in v0.13.1

func (_m *Callbacks) TokensApproved(plugin tokens.Plugin, approval *tokens.TokenApproval) error

TokensApproved provides a mock function with given fields: plugin, approval

func (*Callbacks) TokensTransferred

func (_m *Callbacks) TokensTransferred(plugin tokens.Plugin, transfer *tokens.TokenTransfer) error

TokensTransferred provides a mock function with given fields: plugin, transfer

type Plugin

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func (*Plugin) ActivateTokenPool added in v0.11.0

func (_m *Plugin) ActivateTokenPool(ctx context.Context, opID *fftypes.UUID, pool *fftypes.TokenPool) (bool, error)

ActivateTokenPool provides a mock function with given fields: ctx, opID, pool

func (*Plugin) BurnTokens

func (_m *Plugin) BurnTokens(ctx context.Context, opID *fftypes.UUID, poolLocator string, burn *fftypes.TokenTransfer) error

BurnTokens provides a mock function with given fields: ctx, opID, poolLocator, burn

func (*Plugin) Capabilities

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

Capabilities provides a mock function with given fields:

func (*Plugin) CreateTokenPool

func (_m *Plugin) CreateTokenPool(ctx context.Context, opID *fftypes.UUID, pool *fftypes.TokenPool) (bool, error)

CreateTokenPool provides a mock function with given fields: ctx, opID, pool

func (*Plugin) Init

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

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

func (*Plugin) InitPrefix

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

InitPrefix provides a mock function with given fields: prefix

func (*Plugin) MintTokens

func (_m *Plugin) MintTokens(ctx context.Context, opID *fftypes.UUID, poolLocator string, mint *fftypes.TokenTransfer) error

MintTokens provides a mock function with given fields: ctx, opID, poolLocator, mint

func (*Plugin) Name

func (_m *Plugin) Name() string

Name provides a mock function with given fields:

func (*Plugin) Start

func (_m *Plugin) Start() error

Start provides a mock function with given fields:

func (*Plugin) TokensApproval added in v0.13.1

func (_m *Plugin) TokensApproval(ctx context.Context, opID *fftypes.UUID, poolLocator string, approval *fftypes.TokenApproval) error

TokensApproval provides a mock function with given fields: ctx, opID, poolLocator, approval

func (*Plugin) TransferTokens

func (_m *Plugin) TransferTokens(ctx context.Context, opID *fftypes.UUID, poolLocator string, transfer *fftypes.TokenTransfer) error

TransferTokens provides a mock function with given fields: ctx, opID, poolLocator, transfer

Jump to

Keyboard shortcuts

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