Documentation ¶
Index ¶
- func AddTokenApprovalInputs(op *core.Operation, approval *core.TokenApproval) (err error)
- func AddTokenPoolActivateInputs(op *core.Operation, poolID *fftypes.UUID)
- func AddTokenPoolCreateInputs(op *core.Operation, pool *core.TokenPool) (err error)
- func AddTokenTransferInputs(op *core.Operation, transfer *core.TokenTransfer) (err error)
- func OpBlockchainInvoke(op *core.Operation, req *core.ContractCallRequest, batch *BatchPinData) *core.PreparedOperation
- func RetrieveBlockchainInvokeInputs(ctx context.Context, op *core.Operation) (*core.ContractCallRequest, error)
- func RetrieveTokenApprovalInputs(ctx context.Context, op *core.Operation) (approval *core.TokenApproval, err error)
- func RetrieveTokenPoolActivateInputs(ctx context.Context, op *core.Operation) (*fftypes.UUID, error)
- func RetrieveTokenPoolCreateInputs(ctx context.Context, op *core.Operation) (*core.TokenPool, error)
- func RetrieveTokenTransferInputs(ctx context.Context, op *core.Operation) (*core.TokenTransfer, error)
- type BatchPinData
- type BatchedTransactionInsert
- type BlockchainInvokeData
- type Helper
- type TransactionInsertInput
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 AddTokenPoolCreateInputs ¶ added in v0.11.0
func AddTokenTransferInputs ¶ added in v0.11.0
func AddTokenTransferInputs(op *core.Operation, transfer *core.TokenTransfer) (err error)
func OpBlockchainInvoke ¶ added in v1.3.0
func OpBlockchainInvoke(op *core.Operation, req *core.ContractCallRequest, batch *BatchPinData) *core.PreparedOperation
func RetrieveBlockchainInvokeInputs ¶ added in v1.3.0
func RetrieveTokenApprovalInputs ¶ added in v0.13.1
func RetrieveTokenPoolActivateInputs ¶ added in v0.14.0
func RetrieveTokenPoolCreateInputs ¶ added in v0.11.0
func RetrieveTokenTransferInputs ¶ added in v0.11.0
Types ¶
type BatchPinData ¶ added in v1.3.0
type BatchPinData struct { Batch *core.BatchPersisted `json:"batch"` Contexts []*fftypes.Bytes32 `json:"contexts"` PayloadRef string `json:"payloadRef"` }
type BatchedTransactionInsert ¶ added in v1.3.0
type BatchedTransactionInsert struct { Input TransactionInsertInput Output struct { IdempotencyError error Transaction *core.Transaction } }
type BlockchainInvokeData ¶ added in v1.3.0
type BlockchainInvokeData struct { Request *core.ContractCallRequest `json:"request"` BatchPin *BatchPinData `json:"batchPin"` }
type Helper ¶
type Helper interface { SubmitNewTransaction(ctx context.Context, txType core.TransactionType, idempotencyKey core.IdempotencyKey) (*fftypes.UUID, error) SubmitNewTransactionBatch(ctx context.Context, namespace string, batch []*BatchedTransactionInsert) 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) InsertNewBlockchainEvents(ctx context.Context, events []*core.BlockchainEvent) (inserted []*core.BlockchainEvent, err error) GetTransactionByIDCached(ctx context.Context, id *fftypes.UUID) (*core.Transaction, error) GetBlockchainEventByIDCached(ctx context.Context, id *fftypes.UUID) (*core.BlockchainEvent, error) FindOperationInTransaction(ctx context.Context, tx *fftypes.UUID, opType core.OpType) (*core.Operation, error) }
type TransactionInsertInput ¶ added in v1.3.0
type TransactionInsertInput struct { Type core.TransactionType IdempotencyKey core.IdempotencyKey }
Click to show internal directories.
Click to hide internal directories.