Documentation ¶
Index ¶
Constants ¶
View Source
const ( TransactionTypeSetFeeCredit uint16 = 20 TransactionTypeDeleteFeeCredit uint16 = 21 )
Variables ¶
This section is empty.
Functions ¶
func IsFeeCreditTx ¶
func IsFeeCreditTx(tx *types.TransactionOrder) bool
Types ¶
type DeleteFeeCreditAttributes ¶
type DeleteFeeCreditAttributes struct { Counter uint64 // the transaction counter of the target fee credit record // contains filtered or unexported fields }
DeleteFeeCreditAttributes is transaction of type "delFC". The transaction is used to delete fee credit records created by "setFC" transactions. The transaction must be signed by the admin key.
type DeleteFeeCreditAuthProof ¶
type DeleteFeeCreditAuthProof struct { OwnerProof []byte // the owner proof signed by admin key // contains filtered or unexported fields }
type SetFeeCreditAttributes ¶
type SetFeeCreditAttributes struct { OwnerPredicate []byte // the owner predicate to be set to the fee credit record Amount uint64 // the fee credit amount to be added Counter *uint64 // the transaction counter of the target fee credit record, or nil if the record does not exist yet // contains filtered or unexported fields }
SetFeeCreditAttributes is transaction of type "setFC". The transaction is used to add fee credit records for users. The transaction must be signed by the admin key.
type SetFeeCreditAuthProof ¶
type SetFeeCreditAuthProof struct { OwnerProof []byte // the owner proof signed by admin key // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.