transactions

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PayloadTypeAddFeeCredit      = "addFC"
	PayloadTypeCloseFeeCredit    = "closeFC"
	PayloadTypeReclaimFeeCredit  = "reclFC"
	PayloadTypeTransferFeeCredit = "transFC"
)

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 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 []byte // 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
}

Jump to

Keyboard shortcuts

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