txcommon

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 11 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 *core.Operation, approval *core.TokenApproval) (err error)

func AddTokenPoolActivateInputs added in v0.14.0

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

func AddTokenPoolCreateInputs added in v0.11.0

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

func AddTokenTransferInputs added in v0.11.0

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

func RetrieveTokenApprovalInputs added in v0.13.1

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

func RetrieveTokenPoolActivateInputs added in v0.14.0

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

func RetrieveTokenPoolCreateInputs added in v0.11.0

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

func RetrieveTokenTransferInputs added in v0.11.0

func RetrieveTokenTransferInputs(ctx context.Context, op *core.Operation) (*core.TokenTransfer, error)

Types

type Helper

type Helper interface {
	SubmitNewTransaction(ctx context.Context, txType core.TransactionType) (*fftypes.UUID, error)
	PersistTransaction(ctx context.Context, id *fftypes.UUID, txType core.TransactionType, blockchainTXID string) (valid bool, err error)
	AddBlockchainTX(ctx context.Context, tx *core.Transaction, blockchainTXID string) error
	InsertOrGetBlockchainEvent(ctx context.Context, event *core.BlockchainEvent) (existing *core.BlockchainEvent, err error)
	GetTransactionByIDCached(ctx context.Context, id *fftypes.UUID) (*core.Transaction, error)
	GetBlockchainEventByIDCached(ctx context.Context, id *fftypes.UUID) (*core.BlockchainEvent, error)
}

func NewTransactionHelper

func NewTransactionHelper(ctx context.Context, ns string, di database.Plugin, dm data.Manager, cacheManager cache.Manager) (Helper, error)

Jump to

Keyboard shortcuts

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