transaction

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TypeSpawn is type of the spawn transaction.
	TypeSpawn = 1 + iota
	// TypeMultisigSpawn is type of the multisig spawn transaction.
	TypeMultisigSpawn
	// TypeSpend is type of the spend transaction.
	TypeSpend
	// TypeMultisigSpend is type of the multisig spend transaction.
	TypeMultisigSpend
	TypeVestingSpawn
	TypeVaultSpawn
	TypeDrainVault
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodedSignature added in v1.7.2

type DecodedSignature interface {
	GetSignature() []byte
	GetSignatures() []multisig.Part
}

type DecodedTransactioner

type DecodedTransactioner interface {
	GetType() uint8
	GetAmount() uint64
	GetCounter() uint64
	GetReceiver() address.Address
	GetGasPrice() uint64
	GetPrincipal() address.Address
	GetPublicKeys() [][]byte
}

DecodedTransactioner is an interface for transaction decoded from raw bytes.

type DecodedVault added in v1.7.2

type DecodedVault interface {
	GetVault() core.Address
	GetOwner() core.Address
	GetTotalAmount() uint64
	GetInitialUnlockAmount() uint64
	GetVestingStart() core.LayerID
	GetVestingEnd() core.LayerID
}

type TransactionData added in v1.7.2

type TransactionData struct {
	Tx         DecodedTransactioner
	Sig        *core.Signature
	Signatures *multisig.Signatures
	Vault      DecodedVault
	Type       int
}

Jump to

Keyboard shortcuts

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