txcommon

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTokenApprovalInputs added in v0.13.1

func AddTokenApprovalInputs(op *fftypes.Operation, approval *fftypes.TokenApproval) (err error)

func AddTokenPoolActivateInputs added in v0.14.0

func AddTokenPoolActivateInputs(op *fftypes.Operation, poolID *fftypes.UUID)

func AddTokenPoolCreateInputs added in v0.11.0

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

func AddTokenTransferInputs added in v0.11.0

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

func RetrieveTokenApprovalInputs added in v0.13.1

func RetrieveTokenApprovalInputs(ctx context.Context, op *fftypes.Operation) (approval *fftypes.TokenApproval, err error)

func RetrieveTokenPoolActivateInputs added in v0.14.0

func RetrieveTokenPoolActivateInputs(ctx context.Context, op *fftypes.Operation) (*fftypes.UUID, error)

func RetrieveTokenPoolCreateInputs added in v0.11.0

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

func RetrieveTokenTransferInputs added in v0.11.0

func RetrieveTokenTransferInputs(ctx context.Context, op *fftypes.Operation) (*fftypes.TokenTransfer, 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, tx *fftypes.Transaction, blockchainTXID string) error
	InsertBlockchainEvent(ctx context.Context, chainEvent *fftypes.BlockchainEvent) error
	EnrichEvent(ctx context.Context, event *fftypes.Event) (*fftypes.EnrichedEvent, error)
	GetTransactionByIDCached(ctx context.Context, id *fftypes.UUID) (*fftypes.Transaction, error)
	GetBlockchainEventByIDCached(ctx context.Context, id *fftypes.UUID) (*fftypes.BlockchainEvent, error)
}

func NewTransactionHelper

func NewTransactionHelper(di database.Plugin, dm data.Manager) Helper

Jump to

Keyboard shortcuts

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