permissioned

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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