txcommon

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTokenPoolCreateInputs added in v0.11.0

func AddTokenPoolCreateInputs(op *fftypes.Operation, pool *fftypes.TokenPool)

func AddTokenTransferInputs added in v0.11.0

func AddTokenTransferInputs(op *fftypes.Operation, transfer *fftypes.TokenTransfer) (err error)

func RetrieveTokenPoolCreateInputs added in v0.11.0

func RetrieveTokenPoolCreateInputs(ctx context.Context, op *fftypes.Operation, pool *fftypes.TokenPool) (err error)

func RetrieveTokenTransferInputs added in v0.11.0

func RetrieveTokenTransferInputs(ctx context.Context, op *fftypes.Operation, transfer *fftypes.TokenTransfer) (err error)

Types

type Helper

type Helper interface {
	SubmitNewTransaction(ctx context.Context, ns string, txType fftypes.TransactionType) (*fftypes.UUID, error)
	PersistTransaction(ctx context.Context, ns string, id *fftypes.UUID, txType fftypes.TransactionType, blockchainTXID string) (valid bool, err error)
	AddBlockchainTX(ctx context.Context, id *fftypes.UUID, blockchainTXID string) error
	WriteOperationSuccess(ctx context.Context, opID *fftypes.UUID, output fftypes.JSONObject)
	WriteOperationFailure(ctx context.Context, opID *fftypes.UUID, err error)
}

func NewTransactionHelper

func NewTransactionHelper(di database.Plugin) Helper

Jump to

Keyboard shortcuts

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