testutils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMoneyUnitID

func DefaultMoneyUnitID() types.UnitID

func NewAddFCAttr

func NewAddFCAttr(t *testing.T, signer abcrypto.Signer, opts ...AddFeeCreditOption) *fc.AddFeeCreditAttributes

func NewCloseFCAttr

func NewCloseFCAttr(opts ...CloseFCOption) *fc.CloseFeeCreditAttributes

func NewDefaultCloseFCAttr

func NewDefaultCloseFCAttr() *fc.CloseFeeCreditAttributes

func NewDefaultTransferFCAttr

func NewDefaultTransferFCAttr(t *testing.T, signer abcrypto.Signer) *fc.TransferFeeCreditAttributes

func NewFeeCreditRecordID

func NewFeeCreditRecordID(t *testing.T, signer abcrypto.Signer) types.UnitID

func NewFeeCreditRecordIDAlwaysTrue

func NewFeeCreditRecordIDAlwaysTrue(t *testing.T) types.UnitID

func NewP2pkhPredicate

func NewP2pkhPredicate(t *testing.T, signer abcrypto.Signer) types.PredicateBytes

func NewTransferFeeCreditProof

func NewTransferFeeCreditProof(t *testing.T, signer abcrypto.Signer) *types.TxRecordProof

Types

type AddFeeCreditOption

type AddFeeCreditOption func(*fc.AddFeeCreditAttributes) AddFeeCreditOption

func WithFeeCreditOwnerPredicate

func WithFeeCreditOwnerPredicate(ownerPredicate []byte) AddFeeCreditOption

func WithTransferFCProof

func WithTransferFCProof(proof *types.TxRecordProof) AddFeeCreditOption

type CloseFCOption

type CloseFCOption func(*fc.CloseFeeCreditAttributes) CloseFCOption

func WithCloseFCAmount

func WithCloseFCAmount(amount uint64) CloseFCOption

func WithCloseFCCounter

func WithCloseFCCounter(counter uint64) CloseFCOption

func WithCloseFCTargetUnitCounter

func WithCloseFCTargetUnitCounter(counter uint64) CloseFCOption

func WithCloseFCTargetUnitID

func WithCloseFCTargetUnitID(targetUnitID []byte) CloseFCOption

type ReclaimFCOption

type ReclaimFCOption func(*fc.ReclaimFeeCreditAttributes) ReclaimFCOption

func WithReclaimFCClosureProof

func WithReclaimFCClosureProof(proof *types.TxRecordProof) ReclaimFCOption

type TransferFeeCreditOption

type TransferFeeCreditOption func(Attributes *fc.TransferFeeCreditAttributes) TransferFeeCreditOption

func WithAmount

func WithAmount(amount uint64) TransferFeeCreditOption

func WithCounter

func WithCounter(counter uint64) TransferFeeCreditOption

func WithLatestAdditionTime

func WithLatestAdditionTime(latestAdditionTime uint64) TransferFeeCreditOption

func WithTargetPartitionID

func WithTargetPartitionID(partitionID types.PartitionID) TransferFeeCreditOption

func WithTargetRecordID

func WithTargetRecordID(recordID []byte) TransferFeeCreditOption

func WithTargetUnitCounter

func WithTargetUnitCounter(targetUnitCounter uint64) TransferFeeCreditOption

Jump to

Keyboard shortcuts

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