Documentation
¶
Index ¶
- type Callbacks
- func (_m *Callbacks) TokenOpUpdate(plugin tokens.Plugin, nsOpID string, txState core.OpStatus, ...)
- func (_m *Callbacks) TokenPoolCreated(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, nsOpID string, pool *core.TokenPool) (bool, error)
- func (_m *Plugin) BurnTokens(ctx context.Context, nsOpID string, poolLocator string, ...) error
- func (_m *Plugin) Capabilities() *tokens.Capabilities
- func (_m *Plugin) CreateTokenPool(ctx context.Context, nsOpID string, pool *core.TokenPool) (bool, error)
- func (_m *Plugin) Init(ctx context.Context, name string, _a2 config.Section, ...) error
- func (_m *Plugin) InitConfig(_a0 config.KeySet)
- func (_m *Plugin) MintTokens(ctx context.Context, nsOpID string, poolLocator string, ...) error
- func (_m *Plugin) Name() string
- func (_m *Plugin) Start() 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 (*Callbacks) TokenOpUpdate ¶ added in v0.11.0
func (_m *Callbacks) TokenOpUpdate(plugin tokens.Plugin, nsOpID string, txState core.OpStatus, blockchainTXID string, errorMessage string, opOutput fftypes.JSONObject)
TokenOpUpdate provides a mock function with given fields: plugin, nsOpID, txState, blockchainTXID, errorMessage, opOutput
func (*Callbacks) TokenPoolCreated ¶
TokenPoolCreated provides a mock function with given fields: 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 (*Plugin) ActivateTokenPool ¶ added in v0.11.0
func (_m *Plugin) ActivateTokenPool(ctx context.Context, nsOpID string, pool *core.TokenPool) (bool, error)
ActivateTokenPool provides a mock function with given fields: ctx, nsOpID, pool
func (*Plugin) BurnTokens ¶
func (_m *Plugin) BurnTokens(ctx context.Context, nsOpID string, poolLocator string, burn *core.TokenTransfer) error
BurnTokens provides a mock function with given fields: ctx, nsOpID, 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, nsOpID string, pool *core.TokenPool) (bool, error)
CreateTokenPool provides a mock function with given fields: ctx, nsOpID, pool
func (*Plugin) Init ¶
func (_m *Plugin) Init(ctx context.Context, name string, _a2 config.Section, callbacks tokens.Callbacks) error
Init provides a mock function with given fields: ctx, name, _a2, callbacks
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) error
MintTokens provides a mock function with given fields: ctx, nsOpID, poolLocator, mint
func (*Plugin) TokensApproval ¶ added in v0.13.1
func (_m *Plugin) TokensApproval(ctx context.Context, nsOpID string, poolLocator string, approval *core.TokenApproval) error
TokensApproval provides a mock function with given fields: ctx, nsOpID, poolLocator, approval
func (*Plugin) TransferTokens ¶
func (_m *Plugin) TransferTokens(ctx context.Context, nsOpID string, poolLocator string, transfer *core.TokenTransfer) error
TransferTokens provides a mock function with given fields: ctx, nsOpID, poolLocator, transfer