Documentation ¶
Index ¶
- type Callbacks
- func (_m *Callbacks) TokenPoolCreated(ctx context.Context, plugin tokens.Plugin, pool *tokens.TokenPool) error
- func (_m *Callbacks) TokensApproved(plugin tokens.Plugin, approval *tokens.TokenApproval) error
- func (_m *Callbacks) TokensTransferred(plugin tokens.Plugin, transfer *tokens.TokenTransfer) error
- type Plugin
- func (_m *Plugin) ActivateTokenPool(ctx context.Context, pool *core.TokenPool) (core.OpPhase, error)
- func (_m *Plugin) BurnTokens(ctx context.Context, nsOpID string, poolLocator string, ...) error
- func (_m *Plugin) Capabilities() *tokens.Capabilities
- func (_m *Plugin) CheckInterface(ctx context.Context, pool *core.TokenPool, methods []*fftypes.FFIMethod) (*fftypes.JSONAny, error)
- func (_m *Plugin) ConnectorName() string
- func (_m *Plugin) CreateTokenPool(ctx context.Context, nsOpID string, pool *core.TokenPool) (core.OpPhase, error)
- func (_m *Plugin) DeactivateTokenPool(ctx context.Context, pool *core.TokenPool) error
- func (_m *Plugin) Init(ctx context.Context, cancelCtx context.CancelFunc, name string, ...) error
- func (_m *Plugin) InitConfig(_a0 config.Section)
- func (_m *Plugin) MintTokens(ctx context.Context, nsOpID string, poolLocator string, ...) error
- func (_m *Plugin) Name() string
- func (_m *Plugin) SetHandler(namespace string, handler tokens.Callbacks)
- func (_m *Plugin) SetOperationHandler(namespace string, handler core.OperationCallbacks)
- func (_m *Plugin) StartNamespace(ctx context.Context, namespace string, tokenPools []*core.TokenPool) error
- func (_m *Plugin) StopNamespace(ctx context.Context, namespace string) error
- func (_m *Plugin) TokensApproval(ctx context.Context, nsOpID string, poolLocator string, ...) error
- func (_m *Plugin) TransferTokens(ctx context.Context, nsOpID string, poolLocator string, ...) error
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
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. The first argument is typically a *testing.T value.
func (*Callbacks) TokenPoolCreated ¶
func (_m *Callbacks) TokenPoolCreated(ctx context.Context, plugin tokens.Plugin, pool *tokens.TokenPool) error
TokenPoolCreated provides a mock function with given fields: ctx, plugin, pool
func (*Callbacks) TokensApproved ¶ added in v0.13.1
TokensApproved provides a mock function with given fields: plugin, approval
func (*Callbacks) TokensTransferred ¶
TokensTransferred provides a mock function with given fields: plugin, transfer
type Plugin ¶
Plugin is an autogenerated mock type for the Plugin type
func NewPlugin ¶ added in v1.1.2
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. The first argument is typically a *testing.T value.
func (*Plugin) ActivateTokenPool ¶ added in v0.11.0
func (_m *Plugin) ActivateTokenPool(ctx context.Context, pool *core.TokenPool) (core.OpPhase, error)
ActivateTokenPool provides a mock function with given fields: ctx, pool
func (*Plugin) BurnTokens ¶
func (_m *Plugin) BurnTokens(ctx context.Context, nsOpID string, poolLocator string, burn *core.TokenTransfer, methods *fftypes.JSONAny) error
BurnTokens provides a mock function with given fields: ctx, nsOpID, poolLocator, burn, methods
func (*Plugin) Capabilities ¶
func (_m *Plugin) Capabilities() *tokens.Capabilities
Capabilities provides a mock function with given fields:
func (*Plugin) CheckInterface ¶ added in v1.1.3
func (_m *Plugin) CheckInterface(ctx context.Context, pool *core.TokenPool, methods []*fftypes.FFIMethod) (*fftypes.JSONAny, error)
CheckInterface provides a mock function with given fields: ctx, pool, methods
func (*Plugin) ConnectorName ¶ added in v1.3.0
ConnectorName provides a mock function with given fields:
func (*Plugin) CreateTokenPool ¶
func (_m *Plugin) CreateTokenPool(ctx context.Context, nsOpID string, pool *core.TokenPool) (core.OpPhase, error)
CreateTokenPool provides a mock function with given fields: ctx, nsOpID, pool
func (*Plugin) DeactivateTokenPool ¶ added in v1.3.0
DeactivateTokenPool provides a mock function with given fields: ctx, pool
func (*Plugin) Init ¶
func (_m *Plugin) Init(ctx context.Context, cancelCtx context.CancelFunc, name string, _a3 config.Section) error
Init provides a mock function with given fields: ctx, cancelCtx, name, _a3
func (*Plugin) InitConfig ¶ added in v1.1.0
InitConfig provides a mock function with given fields: _a0
func (*Plugin) MintTokens ¶
func (_m *Plugin) MintTokens(ctx context.Context, nsOpID string, poolLocator string, mint *core.TokenTransfer, methods *fftypes.JSONAny) error
MintTokens provides a mock function with given fields: ctx, nsOpID, poolLocator, mint, methods
func (*Plugin) SetHandler ¶ added in v1.1.0
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) StartNamespace ¶ added in v1.3.0
func (_m *Plugin) StartNamespace(ctx context.Context, namespace string, tokenPools []*core.TokenPool) error
StartNamespace provides a mock function with given fields: ctx, namespace, tokenPools
func (*Plugin) StopNamespace ¶ added in v1.3.0
StopNamespace provides a mock function with given fields: ctx, namespace
func (*Plugin) TokensApproval ¶ added in v0.13.1
func (_m *Plugin) TokensApproval(ctx context.Context, nsOpID string, poolLocator string, approval *core.TokenApproval, methods *fftypes.JSONAny) error
TokensApproval provides a mock function with given fields: ctx, nsOpID, poolLocator, approval, methods