Documentation
¶
Index ¶
- func DefaultMoneyUnitID() types.UnitID
- func NewAddFC(t *testing.T, signer abcrypto.Signer, attr *fc.AddFeeCreditAttributes, ...) *types.TransactionOrder
- func NewAddFCAttr(t *testing.T, signer abcrypto.Signer, opts ...AddFeeCreditOption) *fc.AddFeeCreditAttributes
- func NewCloseFC(t *testing.T, signer abcrypto.Signer, attr *fc.CloseFeeCreditAttributes, ...) *types.TransactionOrder
- func NewCloseFCAttr(opts ...CloseFCOption) *fc.CloseFeeCreditAttributes
- func NewDefaultCloseFCAttr() *fc.CloseFeeCreditAttributes
- func NewDefaultReclaimFCAttr(t *testing.T, pdr *types.PartitionDescriptionRecord, signer abcrypto.Signer) *fc.ReclaimFeeCreditAttributes
- func NewDefaultTransferFCAttr(t *testing.T, signer abcrypto.Signer) *fc.TransferFeeCreditAttributes
- func NewFeeCreditRecordID(t *testing.T, signer abcrypto.Signer) types.UnitID
- func NewFeeCreditRecordIDAlwaysTrue(t *testing.T) types.UnitID
- func NewP2pkhPredicate(t *testing.T, signer abcrypto.Signer) types.PredicateBytes
- func NewReclaimFC(t *testing.T, pdr *types.PartitionDescriptionRecord, signer abcrypto.Signer, ...) *types.TransactionOrder
- func NewReclaimFCAttr(t *testing.T, pdr *types.PartitionDescriptionRecord, signer abcrypto.Signer, ...) *fc.ReclaimFeeCreditAttributes
- func NewTransferFC(t *testing.T, signer abcrypto.Signer, attr *fc.TransferFeeCreditAttributes, ...) *types.TransactionOrder
- func NewTransferFCAttr(t *testing.T, signer abcrypto.Signer, opts ...TransferFeeCreditOption) *fc.TransferFeeCreditAttributes
- func NewTransferFeeCreditProof(t *testing.T, signer abcrypto.Signer) *types.TxRecordProof
- type AddFeeCreditOption
- type CloseFCOption
- type ReclaimFCOption
- type TransferFeeCreditOption
- func WithAmount(amount uint64) TransferFeeCreditOption
- func WithCounter(counter uint64) TransferFeeCreditOption
- func WithLatestAdditionTime(latestAdditionTime uint64) TransferFeeCreditOption
- func WithTargetPartitionID(partitionID types.PartitionID) TransferFeeCreditOption
- func WithTargetRecordID(recordID []byte) TransferFeeCreditOption
- func WithTargetUnitCounter(targetUnitCounter uint64) TransferFeeCreditOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMoneyUnitID ¶
func NewAddFC ¶
func NewAddFC(t *testing.T, signer abcrypto.Signer, attr *fc.AddFeeCreditAttributes, opts ...testtransaction.Option) *types.TransactionOrder
func NewAddFCAttr ¶
func NewAddFCAttr(t *testing.T, signer abcrypto.Signer, opts ...AddFeeCreditOption) *fc.AddFeeCreditAttributes
func NewCloseFC ¶
func NewCloseFC(t *testing.T, signer abcrypto.Signer, attr *fc.CloseFeeCreditAttributes, opts ...testtransaction.Option) *types.TransactionOrder
func NewCloseFCAttr ¶
func NewCloseFCAttr(opts ...CloseFCOption) *fc.CloseFeeCreditAttributes
func NewDefaultCloseFCAttr ¶
func NewDefaultCloseFCAttr() *fc.CloseFeeCreditAttributes
func NewDefaultReclaimFCAttr ¶
func NewDefaultReclaimFCAttr(t *testing.T, pdr *types.PartitionDescriptionRecord, signer abcrypto.Signer) *fc.ReclaimFeeCreditAttributes
func NewFeeCreditRecordID ¶
func NewP2pkhPredicate ¶
func NewReclaimFC ¶
func NewReclaimFC(t *testing.T, pdr *types.PartitionDescriptionRecord, signer abcrypto.Signer, reclaimFCAttr *fc.ReclaimFeeCreditAttributes, opts ...testtransaction.Option) *types.TransactionOrder
func NewReclaimFCAttr ¶
func NewReclaimFCAttr(t *testing.T, pdr *types.PartitionDescriptionRecord, signer abcrypto.Signer, opts ...ReclaimFCOption) *fc.ReclaimFeeCreditAttributes
func NewTransferFC ¶
func NewTransferFC(t *testing.T, signer abcrypto.Signer, attr *fc.TransferFeeCreditAttributes, opts ...testtransaction.Option) *types.TransactionOrder
func NewTransferFCAttr ¶
func NewTransferFCAttr(t *testing.T, signer abcrypto.Signer, opts ...TransferFeeCreditOption) *fc.TransferFeeCreditAttributes
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
Click to show internal directories.
Click to hide internal directories.