Documentation ¶
Index ¶
- func NewAddFC(t *testing.T, signer abcrypto.Signer, ...) *types.TransactionOrder
- func NewAddFCAttr(t *testing.T, signer abcrypto.Signer, opts ...AddFeeCreditOption) *transactions.AddFeeCreditAttributes
- func NewCloseFC(t *testing.T, attr *transactions.CloseFeeCreditAttributes, ...) *types.TransactionOrder
- func NewCloseFCAttr(opts ...CloseFCOption) *transactions.CloseFeeCreditAttributes
- func NewDefaultCloseFCAttr() *transactions.CloseFeeCreditAttributes
- func NewDefaultLockFCAttr() *transactions.LockFeeCreditAttributes
- func NewDefaultReclaimFCAttr(t *testing.T, signer abcrypto.Signer) *transactions.ReclaimFeeCreditAttributes
- func NewDefaultTransferFCAttr() *transactions.TransferFeeCreditAttributes
- func NewDefaultUnlockFCAttr() *transactions.UnlockFeeCreditAttributes
- func NewLockFC(t *testing.T, attr *transactions.LockFeeCreditAttributes, ...) *types.TransactionOrder
- func NewLockFCAttr(opts ...LockFeeCreditOption) *transactions.LockFeeCreditAttributes
- func NewReclaimFC(t *testing.T, signer abcrypto.Signer, ...) *types.TransactionOrder
- func NewReclaimFCAttr(t *testing.T, signer abcrypto.Signer, opts ...ReclaimFCOption) *transactions.ReclaimFeeCreditAttributes
- func NewTransferFC(t *testing.T, attr *transactions.TransferFeeCreditAttributes, ...) *types.TransactionOrder
- func NewTransferFCAttr(opts ...TransferFeeCreditOption) *transactions.TransferFeeCreditAttributes
- func NewUnlockFC(t *testing.T, attr *transactions.UnlockFeeCreditAttributes, ...) *types.TransactionOrder
- func NewUnlockFCAttr(opts ...UnlockFeeCreditOption) *transactions.UnlockFeeCreditAttributes
- type AddFeeCreditOption
- type CloseFCOption
- type LockFeeCreditOption
- type ReclaimFCOption
- type TransferFeeCreditOption
- func WithAmount(amount uint64) TransferFeeCreditOption
- func WithBacklink(backlink []byte) TransferFeeCreditOption
- func WithEarliestAdditionTime(earliestAdditionTime uint64) TransferFeeCreditOption
- func WithLatestAdditionTime(latestAdditionTime uint64) TransferFeeCreditOption
- func WithTargetRecordID(recordID []byte) TransferFeeCreditOption
- func WithTargetSystemID(systemID types.SystemID) TransferFeeCreditOption
- func WithTargetUnitBacklink(targetUnitBacklink []byte) TransferFeeCreditOption
- type UnlockFeeCreditOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddFC ¶
func NewAddFC(t *testing.T, signer abcrypto.Signer, attr *transactions.AddFeeCreditAttributes, opts ...testtransaction.Option) *types.TransactionOrder
func NewAddFCAttr ¶
func NewAddFCAttr(t *testing.T, signer abcrypto.Signer, opts ...AddFeeCreditOption) *transactions.AddFeeCreditAttributes
func NewCloseFC ¶
func NewCloseFC(t *testing.T, attr *transactions.CloseFeeCreditAttributes, opts ...testtransaction.Option) *types.TransactionOrder
func NewCloseFCAttr ¶
func NewCloseFCAttr(opts ...CloseFCOption) *transactions.CloseFeeCreditAttributes
func NewDefaultCloseFCAttr ¶
func NewDefaultCloseFCAttr() *transactions.CloseFeeCreditAttributes
func NewDefaultLockFCAttr ¶
func NewDefaultLockFCAttr() *transactions.LockFeeCreditAttributes
func NewDefaultReclaimFCAttr ¶
func NewDefaultReclaimFCAttr(t *testing.T, signer abcrypto.Signer) *transactions.ReclaimFeeCreditAttributes
func NewDefaultTransferFCAttr ¶
func NewDefaultTransferFCAttr() *transactions.TransferFeeCreditAttributes
func NewDefaultUnlockFCAttr ¶
func NewDefaultUnlockFCAttr() *transactions.UnlockFeeCreditAttributes
func NewLockFC ¶
func NewLockFC(t *testing.T, attr *transactions.LockFeeCreditAttributes, opts ...testtransaction.Option) *types.TransactionOrder
func NewLockFCAttr ¶
func NewLockFCAttr(opts ...LockFeeCreditOption) *transactions.LockFeeCreditAttributes
func NewReclaimFC ¶
func NewReclaimFC(t *testing.T, signer abcrypto.Signer, reclaimFCAttr *transactions.ReclaimFeeCreditAttributes, opts ...testtransaction.Option) *types.TransactionOrder
func NewReclaimFCAttr ¶
func NewReclaimFCAttr(t *testing.T, signer abcrypto.Signer, opts ...ReclaimFCOption) *transactions.ReclaimFeeCreditAttributes
func NewTransferFC ¶
func NewTransferFC(t *testing.T, attr *transactions.TransferFeeCreditAttributes, opts ...testtransaction.Option) *types.TransactionOrder
func NewTransferFCAttr ¶
func NewTransferFCAttr(opts ...TransferFeeCreditOption) *transactions.TransferFeeCreditAttributes
func NewUnlockFC ¶
func NewUnlockFC(t *testing.T, attr *transactions.UnlockFeeCreditAttributes, opts ...testtransaction.Option) *types.TransactionOrder
func NewUnlockFCAttr ¶
func NewUnlockFCAttr(opts ...UnlockFeeCreditOption) *transactions.UnlockFeeCreditAttributes
Types ¶
type AddFeeCreditOption ¶
type AddFeeCreditOption func(*transactions.AddFeeCreditAttributes) AddFeeCreditOption
func WithFCOwnerCondition ¶
func WithFCOwnerCondition(ownerCondition []byte) AddFeeCreditOption
func WithTransferFCProof ¶
func WithTransferFCProof(proof *types.TxProof) AddFeeCreditOption
func WithTransferFCTx ¶
func WithTransferFCTx(ttx *types.TransactionRecord) AddFeeCreditOption
type CloseFCOption ¶
type CloseFCOption func(*transactions.CloseFeeCreditAttributes) CloseFCOption
func WithCloseFCAmount ¶
func WithCloseFCAmount(amount uint64) CloseFCOption
func WithCloseFCTargetUnitBacklink ¶
func WithCloseFCTargetUnitBacklink(targetUnitBacklink []byte) CloseFCOption
func WithCloseFCTargetUnitID ¶
func WithCloseFCTargetUnitID(targetUnitID []byte) CloseFCOption
type LockFeeCreditOption ¶
type LockFeeCreditOption func(Attributes *transactions.LockFeeCreditAttributes)
func WithLockFCBacklink ¶
func WithLockFCBacklink(backlink []byte) LockFeeCreditOption
func WithLockStatus ¶
func WithLockStatus(lockStatus uint64) LockFeeCreditOption
type ReclaimFCOption ¶
type ReclaimFCOption func(*transactions.ReclaimFeeCreditAttributes) ReclaimFCOption
func WithReclaimFCBacklink ¶
func WithReclaimFCBacklink(backlink []byte) ReclaimFCOption
func WithReclaimFCClosureProof ¶
func WithReclaimFCClosureProof(proof *types.TxProof) ReclaimFCOption
func WithReclaimFCClosureTx ¶
func WithReclaimFCClosureTx(closeFCTx *types.TransactionRecord) ReclaimFCOption
type TransferFeeCreditOption ¶
type TransferFeeCreditOption func(Attributes *transactions.TransferFeeCreditAttributes) TransferFeeCreditOption
func WithAmount ¶
func WithAmount(amount uint64) TransferFeeCreditOption
func WithBacklink ¶
func WithBacklink(backlink []byte) TransferFeeCreditOption
func WithEarliestAdditionTime ¶
func WithEarliestAdditionTime(earliestAdditionTime uint64) TransferFeeCreditOption
func WithLatestAdditionTime ¶
func WithLatestAdditionTime(latestAdditionTime uint64) TransferFeeCreditOption
func WithTargetRecordID ¶
func WithTargetRecordID(recordID []byte) TransferFeeCreditOption
func WithTargetSystemID ¶
func WithTargetSystemID(systemID types.SystemID) TransferFeeCreditOption
func WithTargetUnitBacklink ¶
func WithTargetUnitBacklink(targetUnitBacklink []byte) TransferFeeCreditOption
type UnlockFeeCreditOption ¶
type UnlockFeeCreditOption func(Attributes *transactions.UnlockFeeCreditAttributes)
func WithUnlockFCBacklink ¶
func WithUnlockFCBacklink(backlink []byte) UnlockFeeCreditOption
Click to show internal directories.
Click to hide internal directories.