transaction

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchTxoV1

func FetchTxoV1(t *testing.T, tx TxoV1Fetcher) *types.TransactionOrder

func NewTransactionOrder

func NewTransactionOrder(t *testing.T, options ...Option) *types.TransactionOrder

func NewTransactionOrderBytes

func NewTransactionOrderBytes(t *testing.T, options ...Option) types.TaggedCBOR

func NewTransactionRecord

func NewTransactionRecord(t *testing.T, options ...Option) *types.TransactionRecord

func TxoFromBytes

func TxoFromBytes(t *testing.T, txBytes types.TaggedCBOR) *types.TransactionOrder

func TxoToBytes

func TxoToBytes(t *testing.T, tx *types.TransactionOrder) types.TaggedCBOR

Types

type Option

type Option func(*types.TransactionOrder) error

func WithAttributes

func WithAttributes(attr any) Option

func WithAuthProof

func WithAuthProof(authProof any) Option

func WithClientMetadata

func WithClientMetadata(m *types.ClientMetadata) Option

func WithFeeProof

func WithFeeProof(feeProof []byte) Option

func WithNetworkID

func WithNetworkID(id types.NetworkID) Option

func WithPartitionID

func WithPartitionID(id types.PartitionID) Option

func WithStateLock

func WithStateLock(lock *types.StateLock) Option

func WithTransactionType

func WithTransactionType(t uint16) Option

func WithUnitID

func WithUnitID(id []byte) Option

func WithUnlockProof

func WithUnlockProof(unlockProof []byte) Option

type TxoV1Fetcher

type TxoV1Fetcher interface {
	GetTransactionOrderV1() (*types.TransactionOrder, error)
}

Jump to

Keyboard shortcuts

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