transactions

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

View Source
const (
	PayloadTypeAddFeeCredit      = "addFC"
	PayloadTypeCloseFeeCredit    = "closeFC"
	PayloadTypeReclaimFeeCredit  = "reclFC"
	PayloadTypeTransferFeeCredit = "transFC"
	PayloadTypeLockFeeCredit     = "lockFC"
	PayloadTypeUnlockFeeCredit   = "unlockFC"
)

Variables

This section is empty.

Functions

func IsFeeCreditTx

func IsFeeCreditTx(tx *types.TransactionOrder) bool

Types

type AddFeeCreditAttributes

type AddFeeCreditAttributes struct {
	FeeCreditOwnerCondition []byte                   // target fee credit record owner condition
	FeeCreditTransfer       *types.TransactionRecord // bill transfer record of type "transfer fee credit"
	FeeCreditTransferProof  *types.TxProof           // transaction proof of "transfer fee credit" transaction
	// contains filtered or unexported fields
}

type CloseFeeCreditAttributes

type CloseFeeCreditAttributes struct {
	Amount             uint64 // current balance of the fee credit record
	TargetUnitID       []byte // target unit id in money partition
	TargetUnitBacklink []byte // the current state hash of the target unit in money partition
	// contains filtered or unexported fields
}

type LockFeeCreditAttributes

type LockFeeCreditAttributes struct {
	LockStatus uint64 // status of the lock, non-zero value means locked
	Backlink   []byte // hash of last "addFC", "closeFC", "lockFC" or "unlockFC" transaction
	// contains filtered or unexported fields
}

type ReclaimFeeCreditAttributes

type ReclaimFeeCreditAttributes struct {
	CloseFeeCreditTransfer *types.TransactionRecord // bill transfer record of type "close fee credit"
	CloseFeeCreditProof    *types.TxProof           // transaction proof of "close fee credit" transaction
	Backlink               []byte                   // hash of this unit's previous transaction
	// contains filtered or unexported fields
}

type TransferFeeCreditAttributes

type TransferFeeCreditAttributes struct {
	Amount                 uint64         // amount to transfer
	TargetSystemIdentifier types.SystemID // system_identifier of the target partition
	TargetRecordID         []byte         // unit id of the corresponding “add fee credit” transaction
	EarliestAdditionTime   uint64         // earliest round when the corresponding “add fee credit” transaction can be executed in the target system
	LatestAdditionTime     uint64         // latest round when the corresponding “add fee credit” transaction can be executed in the target system
	TargetUnitBacklink     []byte         // current state hash of the target credit record if the record exists, or nil if the record does not exist yet
	Backlink               []byte         // hash of this unit's previous transaction
	// contains filtered or unexported fields
}

type UnlockFeeCreditAttributes

type UnlockFeeCreditAttributes struct {
	Backlink []byte // hash of last "addFC", "closeFC", "lockFC" or "unlockFC" transaction
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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