types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Overview

Package types contains data types related to Quai consensus.

Index

Constants

View Source
const (
	// BloomByteLength represents the number of bytes used in a header log bloom.
	BloomByteLength = 10240

	// BloomBitLength represents the number of bits used in a header log bloom.
	BloomBitLength = 8 * BloomByteLength
)
View Source
const (
	// ReceiptStatusFailed is the status code of a transaction if execution failed.
	ReceiptStatusFailed = uint64(0)

	// ReceiptStatusSuccessful is the status code of a transaction if execution succeeded.
	ReceiptStatusSuccessful = uint64(1)

	// ReceiptStatusLocked is the status code of a transaction if the transaction value is locked.
	// Used for coinbases and conversions.
	ReceiptStatusLocked = uint64(2)
)
View Source
const (
	QuaiTxType = iota
	ExternalTxType
	QiTxType
)

Transaction types.

View Source
const (
	DefaultType = iota
	CoinbaseType
	ConversionType
	CoinbaseLockupType
	WrappingQiType
)

ETX types

View Source
const (
	MaxDenomination = 14

	MaxOutputIndex      = math.MaxUint16
	MaxTrimDenomination = 5
)
View Source
const (
	C_tokenChoiceSetSize = 100
)
View Source
const (
	NonceLength = 8
)

Variables

View Source
var (
	EmptyRootHash  = common.HexToHash("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421")
	EmptyMuHash    = common.HexToHash("544eb3142c000f0ad2c76ac41f4222abbababed830eeafee4b6dc56b52d5cac0")
	EmptyUncleHash = RlpHash([]*Header(nil))
	EmptyBodyHash  = common.HexToHash("51e1b9c1426a03bf73da3d98d9f384a49ded6a4d705dcdf25433915c3306826c")
	EmptyHash      = common.Hash{}
)
View Source
var (
	ErrInvalidSig         = errors.New("invalid transaction v, r, s values")
	ErrInvalidSchnorrSig  = errors.New("invalid transaction scnhorr signature")
	ErrExpectedProtection = errors.New("transaction signature is not protected")
	ErrTxTypeNotSupported = errors.New("transaction type not supported")
)
View Source
var (
	ErrUnsupportedTxType = errors.New("tx type is not supported by this signer")
	ErrInvalidChainId    = errors.New("invalid chain id for signer")
)
View Source
var (
	MaxQi                   = new(big.Int).Mul(big.NewInt(math.MaxInt64), big.NewInt(params.Ether)) // This is just a default; determine correct value later
	QuaiToQiConversionTopic = crypto.Keccak256Hash([]byte("QuaiToQiConversion"))
	QuaiCoinbaseLockupTopic = crypto.Keccak256Hash([]byte("QuaiCoinbaseLockup"))
	QiCoinbaseLockupTopic   = crypto.Keccak256Hash([]byte("QiCoinbaseLockup"))
)
View Source
var Denominations map[uint8]*big.Int

Denominations is a map of denomination to number of Qi

View Source
var ErrGasLimitReached = errors.New("gas limit reached")

ErrGasLimitReached is returned by the gas pool if the amount of gas required by a transaction is higher than what's left in the block.

View Source
var File_core_types_proto_block_proto protoreflect.FileDescriptor
View Source
var ObjectPool = sync.Pool{
	New: func() interface{} {
		return new(interface{})
	},
}
View Source
var TrimDepths map[uint8]uint64

Functions

func Bloom9

func Bloom9(data []byte) []byte

Bloom9 returns the bloom filter for the given data

func BloomLookup

func BloomLookup(bin Bloom, topic bytesBacked) bool

BloomLookup is a convenience-method to check presence int he bloom filter

func CalcUncleHash

func CalcUncleHash(uncles []*WorkObjectHeader) (hash common.Hash)

func CalculateBlockQiTxGas

func CalculateBlockQiTxGas(transaction *Transaction, qiScalingFactor float64, location common.Location) uint64

CalculateBlockQiTxGas calculates the amount of gas a Qi tx uses in a block (for block gas limit calculation)

func CalculateIntrinsicQiTxGas

func CalculateIntrinsicQiTxGas(transaction *Transaction, scalingFactor float64) uint64

CalculateIntrinsicQiTxGas calculates the intrinsic gas for a Qi tx without ETXs

func CalculateQiTxGas

func CalculateQiTxGas(transaction *Transaction, qiScalingFactor float64, location common.Location) uint64

CalculateQiTxGas calculates the total amount of gas a Qi tx uses (for fee calculation)

func CoinbaseLockupHash

func CoinbaseLockupHash(ownerContract common.Address, beneficiaryMiner common.Address, delegate common.Address, lockupByte byte, epoch uint32, balance *big.Int, unlockHeight uint32, elements uint16) common.Hash

func CompareFeeBetweenTx

func CompareFeeBetweenTx(a, b *Transaction) int

func DeriveSha

func DeriveSha(list DerivableList, hasher TrieHasher) common.Hash

DeriveSha creates the tree hashes of transactions and receipts in a block header.

func IsCoinBaseTx

func IsCoinBaseTx(tx *Transaction) bool

IsCoinBaseTx determines whether or not a transaction is a coinbase. A coinbase is a special transaction created by miners that has no inputs. This is represented in the block chain by a transaction with a single input that has a previous output transaction index set to the maximum value along with a zero hash.

This function only differs from IsCoinBase in that it works with a raw wire transaction as opposed to a higher level util transaction.

func IsConversionTx

func IsConversionTx(tx *Transaction) bool

It checks if an tx is a conversion type

func IsQiToQuaiConversionTx

func IsQiToQuaiConversionTx(tx *Transaction) bool

func IsQuaiToQiConversionTx

func IsQuaiToQiConversionTx(tx *Transaction) bool

func LogsBloom

func LogsBloom(logs []*Log) []byte

LogsBloom returns the bloom bytes for the given logs

func RlpHash

func RlpHash(x interface{}) (h common.Hash)

RlpHash encodes x and hashes the encoded bytes.

func Sender

func Sender(signer Signer, tx *Transaction) (common.Address, error)

Sender returns the address derived from the signature (V, R, S) using secp256k1 elliptic curve and an error if it failed deriving or upon an incorrect signature.

Sender may cache the address, allowing it to be used regardless of signing method. The cache is invalidated if the cached signer does not match the signer used in the current call.

func UTXOHash

func UTXOHash(txHash common.Hash, index uint16, utxo *UtxoEntry) common.Hash

Types

type AccessList

type AccessList []AccessTuple

AccessList is an access list.

func (*AccessList) ConvertToMixedCase

func (al *AccessList) ConvertToMixedCase() *MixedAccessList

func (*AccessList) ProtoDecode

func (al *AccessList) ProtoDecode(protoAccessList *ProtoAccessList, location common.Location) error

ProtoDecode deserializes the ProtoAccessList into the AccessList format

func (AccessList) ProtoEncode

func (al AccessList) ProtoEncode() *ProtoAccessList

ProtoEncode serializes al into the Quai Proto AccessList format

func (AccessList) StorageKeys

func (al AccessList) StorageKeys() int

StorageKeys returns the total number of storage keys in the access list.

type AccessTuple

type AccessTuple struct {
	Address     common.Address `json:"address"        gencodec:"required"`
	StorageKeys []common.Hash  `json:"storageKeys"    gencodec:"required"`
}

AccessTuple is the element type of an access list.

func (AccessTuple) MarshalJSON

func (a AccessTuple) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*AccessTuple) UnmarshalJSON

func (a *AccessTuple) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type AddressUtxos

type AddressUtxos struct {
	Address common.Address
	Utxos   []*UtxoEntry
}

type Betas

type Betas struct {
	// contains filtered or unexported fields
}

Betas struct holds the beta0 and beta1 of the logistic regression for each prime block

func NewBetas

func NewBetas(beta0, beta1 *big.Float) *Betas

func (*Betas) Beta0

func (b *Betas) Beta0() *big.Float

func (*Betas) Beta1

func (b *Betas) Beta1() *big.Float

func (*Betas) ProtoDecode

func (b *Betas) ProtoDecode(betas *ProtoBetas) error

func (*Betas) ProtoEncode

func (b *Betas) ProtoEncode() (*ProtoBetas, error)

type BlockManifest

type BlockManifest []common.Hash

BlockManifest is a list of block hashes, which implements DerivableList

func (BlockManifest) EncodeIndex

func (m BlockManifest) EncodeIndex(i int, w *bytes.Buffer)

EncodeIndex encodes the i'th blockhash to w.

func (BlockManifest) Len

func (m BlockManifest) Len() int

Len returns the length of s.

func (*BlockManifest) ProtoDecode

func (m *BlockManifest) ProtoDecode(protoManifest *ProtoManifest) error

ProtoDecode deserializes th ProtoManifest into the BlockManifest format

func (BlockManifest) ProtoEncode

func (m BlockManifest) ProtoEncode() (*ProtoManifest, error)

ProtoEncode serializes m into the Quai Proto BlockManifest format

func (BlockManifest) Size

func (m BlockManifest) Size() common.StorageSize

Size returns the approximate memory used by all internal contents. It is used to approximate and limit the memory consumption of various caches.

type BlockNonce

type BlockNonce [NonceLength]byte

A BlockNonce is a 64-bit hash which proves (combined with the mix-hash) that a sufficient amount of computation has been carried out on a block.

func EncodeNonce

func EncodeNonce(i uint64) BlockNonce

EncodeNonce converts the given integer to a block nonce.

func (BlockNonce) Bytes

func (n BlockNonce) Bytes() []byte

Bytes() returns the raw bytes of the block nonce

func (BlockNonce) MarshalText

func (n BlockNonce) MarshalText() ([]byte, error)

MarshalText encodes n as a hex string with 0x prefix.

func (BlockNonce) Uint64

func (n BlockNonce) Uint64() uint64

Uint64 returns the integer value of a block nonce.

func (*BlockNonce) UnmarshalText

func (n *BlockNonce) UnmarshalText(input []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

type BlockRequest

type BlockRequest struct {
	Hash    common.Hash
	Entropy *big.Int
}

type Bloom

type Bloom [BloomByteLength]byte

Bloom represents a 2048 bit bloom filter.

func BytesToBloom

func BytesToBloom(b []byte) Bloom

BytesToBloom converts a byte slice to a bloom filter. It panics if b is not of suitable size.

func CreateBloom

func CreateBloom(receipts Receipts) Bloom

CreateBloom creates a bloom filter out of the give Receipts (+Logs)

func (*Bloom) Add

func (b *Bloom) Add(d []byte)

Add adds d to the filter. Future calls of Test(d) will return true.

func (Bloom) Big

func (b Bloom) Big() *big.Int

Big converts b to a big integer. Note: Converting a bloom filter to a big.Int and then calling GetBytes does not return the same bytes, since big.Int will trim leading zeroes

func (Bloom) Bytes

func (b Bloom) Bytes() []byte

Bytes returns the backing byte slice of the bloom

func (Bloom) MarshalText

func (b Bloom) MarshalText() ([]byte, error)

MarshalText encodes b as a hex string with 0x prefix.

func (*Bloom) ProtoDecode

func (b *Bloom) ProtoDecode(data []byte) error

ProtoDecode decodes b from a protobuf message.

func (*Bloom) ProtoEncode

func (b *Bloom) ProtoEncode() ([]byte, error)

ProtoEncode encodes b as a protobuf message.

func (*Bloom) SetBytes

func (b *Bloom) SetBytes(d []byte)

SetBytes sets the content of b to the given bytes. It panics if d is not of suitable size.

func (Bloom) Test

func (b Bloom) Test(topic []byte) bool

Test checks if the given topic is present in the bloom filter

func (Bloom) ToLegacyBloom

func (b Bloom) ToLegacyBloom() LegacyBloom

func (*Bloom) UnmarshalText

func (b *Bloom) UnmarshalText(input []byte) error

UnmarshalText b as a hex string with 0x prefix.

type DerivableList

type DerivableList interface {
	Len() int
	EncodeIndex(int, *bytes.Buffer)
}

DerivableList is the input to DeriveSha. It is implemented by the 'Transactions' and 'Receipts' types. This is internal, do not use these methods.

type EtxSet

type EtxSet struct {
	ETXHashes []byte
}

The EtxSet is a list of ETX hashes, ETXs and the block heights in which they became available. If no entry exists for a given ETX hash, then that ETX is not available.

func NewEtxSet

func NewEtxSet() *EtxSet

func (*EtxSet) GetHashAtIndex

func (set *EtxSet) GetHashAtIndex(index int) common.Hash

func (*EtxSet) Hash

func (set *EtxSet) Hash() common.Hash

Commit returns a hashed commitment of all ETX hashes in the ETX set

func (*EtxSet) Len

func (set *EtxSet) Len() int

func (*EtxSet) Pop

func (set *EtxSet) Pop() common.Hash

func (*EtxSet) ProtoDecode

func (set *EtxSet) ProtoDecode(protoSet *ProtoEtxSet) error

ProtoDecode decodes the EtxSet from protobuf format.

func (*EtxSet) ProtoEncode

func (set *EtxSet) ProtoEncode() *ProtoEtxSet

ProtoEncode encodes the EtxSet to protobuf format.

func (*EtxSet) Update

func (set *EtxSet) Update(newInboundEtxs Transactions, nodeLocation common.Location, WriteETXFunc func(hash common.Hash, etx *Transaction)) error

updateInboundEtxs updates the set of inbound ETXs available to be mined into a block in this location. This method adds any new ETXs to the set and removes expired ETXs.

type ExternalTx

type ExternalTx struct {
	OriginatingTxHash common.Hash
	ETXIndex          uint16
	Gas               uint64
	To                *common.Address `rlp:"nilString"` // nil means contract creation
	Value             *big.Int
	Data              []byte
	AccessList        AccessList
	Sender            common.Address
	EtxType           uint64
}

type GasPool

type GasPool uint64

GasPool tracks the amount of gas available during execution of the transactions in a block. The zero value is a pool with zero gas available.

func (*GasPool) AddGas

func (gp *GasPool) AddGas(amount uint64) *GasPool

AddGas makes gas available for execution.

func (*GasPool) Gas

func (gp *GasPool) Gas() uint64

Gas returns the amount of gas remaining in the pool.

func (*GasPool) String

func (gp *GasPool) String() string

func (*GasPool) SubGas

func (gp *GasPool) SubGas(amount uint64) error

SubGas deducts the given amount from the pool if enough gas is available and returns an error otherwise.

type HashAndLocation

type HashAndLocation struct {
	Hash     common.Hash
	Location common.Location
}

type HashAndNumber

type HashAndNumber struct {
	Hash    common.Hash
	Number  uint64
	Entropy *big.Int
}
type Header struct {
	// contains filtered or unexported fields
}

Header represents a block header in the Quai blockchain.

func CopyHeader

func CopyHeader(h *Header) *Header

CopyHeader creates a deep copy of a block header to prevent side effects from modifying a header variable.

func EmptyHeader

func EmptyHeader() *Header

func (*Header) AvgTxFees

func (h *Header) AvgTxFees() *big.Int

func (*Header) BaseFee

func (h *Header) BaseFee() *big.Int

func (*Header) ConversionFlowAmount

func (h *Header) ConversionFlowAmount() *big.Int

func (*Header) EVMRoot

func (h *Header) EVMRoot() common.Hash

func (*Header) EfficiencyScore

func (h *Header) EfficiencyScore() uint16

func (*Header) EmptyBody

func (h *Header) EmptyBody(nodeCtx int) bool

EmptyBody returns true if there is no additional 'body' to complete the header that is: no transactions and no uncles.

func (*Header) EmptyEtxRollup

func (h *Header) EmptyEtxRollup() bool

EmptyEtxs returns true if there are no etxs for this header/block.

func (*Header) EmptyManifest

func (h *Header) EmptyManifest(nodeCtx int) bool

EmptyTxs returns true if there are no txs for this header/block.

func (*Header) EmptyOutboundEtxs

func (h *Header) EmptyOutboundEtxs() bool

EmptyEtxs returns true if there are no etxs for this header/block.

func (*Header) EmptyReceipts

func (h *Header) EmptyReceipts() bool

EmptyReceipts returns true if there are no receipts for this header/block.

func (*Header) EmptyTxs

func (h *Header) EmptyTxs() bool

EmptyTxs returns true if there are no txs for this header/block.

func (*Header) EmptyUncles

func (h *Header) EmptyUncles() bool

EmptyUncles returns true if there are no uncles for this header/block.

func (*Header) EtxEligibleSlices

func (h *Header) EtxEligibleSlices() common.Hash

func (*Header) EtxRollupHash

func (h *Header) EtxRollupHash() common.Hash

func (*Header) EtxSetRoot

func (h *Header) EtxSetRoot() common.Hash

func (*Header) ExchangeRate

func (h *Header) ExchangeRate() *big.Int

func (*Header) ExpansionNumber

func (h *Header) ExpansionNumber() uint8

func (*Header) Extra

func (h *Header) Extra() []byte

func (*Header) GasLimit

func (h *Header) GasLimit() uint64

func (*Header) GasUsed

func (h *Header) GasUsed() uint64

func (*Header) Hash

func (h *Header) Hash() (hash common.Hash)

SealHash returns the hash of a block prior to it being sealed.

func (*Header) InterlinkRootHash

func (h *Header) InterlinkRootHash() common.Hash

func (*Header) KQuaiDiscount

func (h *Header) KQuaiDiscount() *big.Int

func (*Header) ManifestHash

func (h *Header) ManifestHash(nodeCtx int) common.Hash

func (*Header) ManifestHashArray

func (h *Header) ManifestHashArray() []common.Hash

func (Header) MarshalJSON

func (h Header) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*Header) MinerDifficulty

func (h *Header) MinerDifficulty() *big.Int

func (*Header) Number

func (h *Header) Number(nodeCtx int) *big.Int

func (*Header) NumberArray

func (h *Header) NumberArray() []*big.Int

func (*Header) NumberU64

func (h *Header) NumberU64(nodeCtx int) uint64

func (*Header) OutboundEtxHash

func (h *Header) OutboundEtxHash() common.Hash

func (*Header) ParentDeltaEntropy

func (h *Header) ParentDeltaEntropy(nodeCtx int) *big.Int

func (*Header) ParentEntropy

func (h *Header) ParentEntropy(nodeCtx int) *big.Int

func (*Header) ParentHash

func (h *Header) ParentHash(nodeCtx int) common.Hash

Localized accessors

func (*Header) ParentHashArray

func (h *Header) ParentHashArray() []common.Hash

Array accessors

func (*Header) ParentUncledDeltaEntropy

func (h *Header) ParentUncledDeltaEntropy(nodeCtx int) *big.Int

func (*Header) ParentUncledDeltaEntropyArray

func (h *Header) ParentUncledDeltaEntropyArray() []*big.Int

func (*Header) PrimeStateRoot

func (h *Header) PrimeStateRoot() common.Hash

func (*Header) PrimeTerminusHash

func (h *Header) PrimeTerminusHash() common.Hash

func (*Header) ProtoDecode

func (h *Header) ProtoDecode(protoHeader *ProtoHeader, location common.Location) error

ProtoDecode deserializes the ProtoHeader into the Header format

func (*Header) ProtoEncode

func (h *Header) ProtoEncode() (*ProtoHeader, error)

ProtoEncode serializes h into the Quai Proto Header format

func (*Header) QuaiStateSize

func (h *Header) QuaiStateSize() *big.Int

func (*Header) RPCMarshalHeader

func (h *Header) RPCMarshalHeader() map[string]interface{}

RPCMarshalHeader converts the given header to the RPC output .

func (*Header) ReceiptHash

func (h *Header) ReceiptHash() common.Hash

func (*Header) RegionStateRoot

func (h *Header) RegionStateRoot() common.Hash

func (*Header) SanityCheck

func (h *Header) SanityCheck() error

SanityCheck checks a few basic things -- these checks are way beyond what any 'sane' production values should hold, and can mainly be used to prevent that the unbounded fields are stuffed with junk data to add processing overhead

func (*Header) SealEncode

func (h *Header) SealEncode() *ProtoHeader

SealEncode serializes s into the Quai Proto sealData format

func (*Header) SetAvgTxFees

func (h *Header) SetAvgTxFees(val *big.Int)

func (*Header) SetBaseFee

func (h *Header) SetBaseFee(val *big.Int)

func (*Header) SetConversionFlowAmount

func (h *Header) SetConversionFlowAmount(val *big.Int)

func (*Header) SetEVMRoot

func (h *Header) SetEVMRoot(val common.Hash)

func (*Header) SetEfficiencyScore

func (h *Header) SetEfficiencyScore(val uint16)

func (*Header) SetEtxEligibleSlices

func (h *Header) SetEtxEligibleSlices(val common.Hash)

func (*Header) SetEtxRollupHash

func (h *Header) SetEtxRollupHash(val common.Hash)

func (*Header) SetEtxSetRoot

func (h *Header) SetEtxSetRoot(val common.Hash)

func (*Header) SetExchangeRate

func (h *Header) SetExchangeRate(val *big.Int)

func (*Header) SetExpansionNumber

func (h *Header) SetExpansionNumber(val uint8)

func (*Header) SetExtra

func (h *Header) SetExtra(val []byte)

func (*Header) SetGasLimit

func (h *Header) SetGasLimit(val uint64)

func (*Header) SetGasUsed

func (h *Header) SetGasUsed(val uint64)

func (*Header) SetInterlinkRootHash

func (h *Header) SetInterlinkRootHash(val common.Hash)

func (*Header) SetKQuaiDiscount

func (h *Header) SetKQuaiDiscount(val *big.Int)

func (*Header) SetManifestHash

func (h *Header) SetManifestHash(val common.Hash, nodeCtx int)

func (*Header) SetMinerDifficulty

func (h *Header) SetMinerDifficulty(val *big.Int)

func (*Header) SetNumber

func (h *Header) SetNumber(val *big.Int, nodeCtx int)

func (*Header) SetOutboundEtxHash

func (h *Header) SetOutboundEtxHash(val common.Hash)

func (*Header) SetParentDeltaEntropy

func (h *Header) SetParentDeltaEntropy(val *big.Int, nodeCtx int)

func (*Header) SetParentEntropy

func (h *Header) SetParentEntropy(val *big.Int, nodeCtx int)

func (*Header) SetParentHash

func (h *Header) SetParentHash(val common.Hash, nodeCtx int)

func (*Header) SetParentUncledDeltaEntropy

func (h *Header) SetParentUncledDeltaEntropy(val *big.Int, nodeCtx int)

func (*Header) SetPrimeStateRoot

func (h *Header) SetPrimeStateRoot(val common.Hash)

func (*Header) SetPrimeTerminusHash

func (h *Header) SetPrimeTerminusHash(val common.Hash)

func (*Header) SetQuaiStateSize

func (h *Header) SetQuaiStateSize(val *big.Int)

func (*Header) SetReceiptHash

func (h *Header) SetReceiptHash(val common.Hash)

func (*Header) SetRegionStateRoot

func (h *Header) SetRegionStateRoot(val common.Hash)

func (*Header) SetStateLimit

func (h *Header) SetStateLimit(val uint64)

func (*Header) SetStateUsed

func (h *Header) SetStateUsed(val uint64)

func (*Header) SetThresholdCount

func (h *Header) SetThresholdCount(val uint16)

func (*Header) SetTotalFees

func (h *Header) SetTotalFees(val *big.Int)

func (*Header) SetTxHash

func (h *Header) SetTxHash(val common.Hash)

func (*Header) SetUTXORoot

func (h *Header) SetUTXORoot(val common.Hash)

func (*Header) SetUncleHash

func (h *Header) SetUncleHash(val common.Hash)

func (*Header) SetUncledEntropy

func (h *Header) SetUncledEntropy(val *big.Int)

func (*Header) Size

func (h *Header) Size() common.StorageSize

Size returns the approximate memory used by all internal contents. It is used to approximate and limit the memory consumption of various caches.

func (*Header) StateLimit

func (h *Header) StateLimit() uint64

func (*Header) StateUsed

func (h *Header) StateUsed() uint64

func (*Header) ThresholdCount

func (h *Header) ThresholdCount() uint16

func (*Header) TotalFees

func (h *Header) TotalFees() *big.Int

func (*Header) TxHash

func (h *Header) TxHash() common.Hash

func (*Header) UTXORoot

func (h *Header) UTXORoot() common.Hash

func (*Header) UncleHash

func (h *Header) UncleHash() common.Hash

func (*Header) UncledEntropy

func (h *Header) UncledEntropy() *big.Int

func (*Header) UnmarshalJSON

func (h *Header) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type LegacyBloom

type LegacyBloom [256]byte

func (LegacyBloom) MarshalText

func (b LegacyBloom) MarshalText() ([]byte, error)

MarshalText encodes b as a hex string with 0x prefix.

type Lockup

type Lockup struct {
	UnlockHeight uint64
	Value        *big.Int
}

type Log

type Log struct {
	// Consensus fields:
	// address of the contract that generated the event
	Address common.Address `json:"address" gencodec:"required"`
	// list of topics provided by the contract.
	Topics []common.Hash `json:"topics" gencodec:"required"`
	// supplied by the contract, usually ABI-encoded
	Data []byte `json:"data" gencodec:"required"`

	// Derived fields. These fields are filled in by the node
	// but not secured by consensus.
	// block in which the transaction was included
	BlockNumber uint64 `json:"blockNumber"`
	// hash of the transaction
	TxHash common.Hash `json:"transactionHash" gencodec:"required"`
	// index of the transaction in the block
	TxIndex uint `json:"transactionIndex"`
	// hash of the block in which the transaction was included
	BlockHash common.Hash `json:"blockHash"`
	// index of the log in the block
	Index uint `json:"logIndex"`

	// The Removed field is true if this log was reverted due to a chain reorganisation.
	// You must pay attention to this field if you receive logs through a filter query.
	Removed bool `json:"removed"`
}

Log represents a contract log event. These events are generated by the LOG opcode and stored/indexed by the node.

func (*Log) DecodeRLP

func (l *Log) DecodeRLP(s *rlp.Stream) error

DecodeRLP implements rlp.Decoder.

func (*Log) EncodeRLP

func (l *Log) EncodeRLP(w io.Writer) error

EncodeRLP implements rlp.Encoder.

func (Log) MarshalJSON

func (l Log) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*Log) UnmarshalJSON

func (l *Log) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type LogForStorage

type LogForStorage Log

LogForStorage is a wrapper around a Log that flattens and parses the entire content of a log including non-consensus fields.

func (*LogForStorage) DecodeRLP

func (l *LogForStorage) DecodeRLP(s *rlp.Stream) error

DecodeRLP implements rlp.Decoder.

Note some redundant fields(e.g. block number, tx hash etc) will be assembled later.

func (*LogForStorage) EncodeRLP

func (l *LogForStorage) EncodeRLP(w io.Writer) error

EncodeRLP implements rlp.Encoder.

func (*LogForStorage) ProtoDecode

func (l *LogForStorage) ProtoDecode(protoLog *ProtoLogForStorage, location common.Location) error

ProtoDecode converts the protobuf to a log representation.

func (LogForStorage) ProtoEncode

func (l LogForStorage) ProtoEncode() *ProtoLogForStorage

ProtoEncode converts the log to a protobuf representation.

type Logs

type Logs []*Log

Logs is a list of log objects.

type Message

type Message struct {
	// contains filtered or unexported fields
}

Message is a fully derived transaction and implements core.Message

NOTE: In a future PR this will be removed.

func NewMessage

func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte, accessList AccessList, isETX bool) Message

func (Message) AccessList

func (m Message) AccessList() AccessList

func (Message) Data

func (m Message) Data() []byte

func (Message) ETXSender

func (m Message) ETXSender() common.Address

func (Message) From

func (m Message) From() common.Address

func (Message) Gas

func (m Message) Gas() uint64

func (Message) GasPrice

func (m Message) GasPrice() *big.Int

func (Message) Hash

func (m Message) Hash() common.Hash

func (Message) IsETX

func (m Message) IsETX() bool

func (Message) Nonce

func (m Message) Nonce() uint64

func (*Message) SetData

func (m *Message) SetData(data []byte)

func (*Message) SetValue

func (m *Message) SetValue(v *big.Int)

func (Message) To

func (m Message) To() *common.Address

func (Message) Type

func (m Message) Type() byte

func (Message) Value

func (m Message) Value() *big.Int

type MixedAccessList

type MixedAccessList []MixedAccessTuple

MixedAccessList is an access list of MixedCaseAddresses

type MixedAccessTuple

type MixedAccessTuple struct {
	Address     common.MixedcaseAddress `json:"address"        gencodec:"required"`
	StorageKeys []common.Hash           `json:"storageKeys"    gencodec:"required"`
}

type OutPoint

type OutPoint struct {
	TxHash common.Hash `json:"txHash"`
	Index  uint16      `json:"index"`
}

OutPoint defines a Qi data type that is used to track previous outputs

func NewOutPoint

func NewOutPoint(txHash *common.Hash, index uint16) *OutPoint

NewOutPoint returns a new Qi transaction outpoint point with the provided hash and index.

func (OutPoint) Key

func (outPoint OutPoint) Key() string

func (*OutPoint) ProtoDecode

func (outPoint *OutPoint) ProtoDecode(protoOutPoint *ProtoOutPoint) error

func (OutPoint) ProtoEncode

func (outPoint OutPoint) ProtoEncode() (*ProtoOutPoint, error)

type OutpointAndDenomination

type OutpointAndDenomination struct {
	TxHash       common.Hash `json:"txHash"`
	Index        uint16      `json:"index"`
	Denomination uint8       `json:"denomination"`
	Lock         *big.Int    `json:"lock"`
}

func (OutpointAndDenomination) Key

func (outPoint OutpointAndDenomination) Key() string

func (*OutpointAndDenomination) ProtoDecode

func (outPoint *OutpointAndDenomination) ProtoDecode(protoOutPoint *ProtoOutPointAndDenomination) error

func (OutpointAndDenomination) ProtoEncode

func (outPoint OutpointAndDenomination) ProtoEncode() (*ProtoOutPointAndDenomination, error)

func (*OutpointAndDenomination) UnmarshalJSON

func (outpoint *OutpointAndDenomination) UnmarshalJSON(input []byte) error

type OutpointJSON

type OutpointJSON struct {
	TxHash common.Hash    `json:"txHash"`
	Index  hexutil.Uint64 `json:"index"`
}

type PendingEtxs

type PendingEtxs struct {
	Header       *WorkObject  `json:"header" gencodec:"required"`
	OutboundEtxs Transactions `json:"outboundEtxs"   gencodec:"required"`
}

PendingEtxs are ETXs which have been emitted from the zone which produced the given block. Specifically, it contains the collection of ETXs emitted since our prior coincident with our sub in that slice. In Prime context, our subordinate will be a region node, so the Etxs list will contain the rollup of ETXs emitted from each zone block since the zone's prior coincidence with the region. In Region context, our subordinate chain will be the zone itself, so the Etxs list will just contain the ETXs emitted directly in that zone block (a.k.a. a singleton).

func (*PendingEtxs) IsValid

func (p *PendingEtxs) IsValid(hasher TrieHasher) bool

func (*PendingEtxs) ProtoDecode

func (p *PendingEtxs) ProtoDecode(protoPendingEtxs *ProtoPendingEtxs, location common.Location) error

ProtoDecode decodes the protobuf to a PendingEtxs representation.

func (*PendingEtxs) ProtoEncode

func (p *PendingEtxs) ProtoEncode() (*ProtoPendingEtxs, error)

ProtoEncode encodes the PendingEtxs to protobuf format.

type PendingEtxsRollup

type PendingEtxsRollup struct {
	Header     *WorkObject  `json:"header" gencodec:"required"`
	EtxsRollup Transactions `json:"etxsrollup" gencodec:"required"`
}

PendingEtxsRollup is Header and EtxRollups of that header that should be forward propagated

func (*PendingEtxsRollup) IsValid

func (p *PendingEtxsRollup) IsValid(hasher TrieHasher) bool

func (*PendingEtxsRollup) ProtoDecode

func (p *PendingEtxsRollup) ProtoDecode(protoPendingEtxsRollup *ProtoPendingEtxsRollup, location common.Location) error

ProtoDecode decodes the protobuf to a PendingEtxsRollup representation.

func (*PendingEtxsRollup) ProtoEncode

func (p *PendingEtxsRollup) ProtoEncode() (*ProtoPendingEtxsRollup, error)

ProtoEncode encodes the PendingEtxsRollup to protobuf format.

type PendingHeader

type PendingHeader struct {
	// contains filtered or unexported fields
}

PendingHeader stores the header and termini value associated with the header.

func CopyPendingHeader

func CopyPendingHeader(ph *PendingHeader) *PendingHeader

func EmptyPendingHeader

func EmptyPendingHeader() PendingHeader

func NewPendingHeader

func NewPendingHeader(wo *WorkObject, termini Termini) PendingHeader

func (*PendingHeader) ProtoDecode

func (ph *PendingHeader) ProtoDecode(protoPendingHeader *ProtoPendingHeader, location common.Location) error

ProtoEncode deserializes the ProtoHeader into the Header format

func (PendingHeader) ProtoEncode

func (ph PendingHeader) ProtoEncode() (*ProtoPendingHeader, error)

ProtoEncode serializes h into the Quai Proto PendingHeader format

func (*PendingHeader) SetHeader

func (ph *PendingHeader) SetHeader(header *WorkObject)

func (*PendingHeader) SetTermini

func (ph *PendingHeader) SetTermini(termini Termini)

func (*PendingHeader) SetWorkObject

func (ph *PendingHeader) SetWorkObject(wo *WorkObject)

func (PendingHeader) Termini

func (ph PendingHeader) Termini() Termini

func (PendingHeader) WorkObject

func (ph PendingHeader) WorkObject() *WorkObject

accessor methods for pending header

type ProtoAccessList

type ProtoAccessList struct {
	AccessTuples []*ProtoAccessTuple `protobuf:"bytes,1,rep,name=access_tuples,json=accessTuples,proto3" json:"access_tuples,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoAccessList) Descriptor deprecated

func (*ProtoAccessList) Descriptor() ([]byte, []int)

Deprecated: Use ProtoAccessList.ProtoReflect.Descriptor instead.

func (*ProtoAccessList) GetAccessTuples

func (x *ProtoAccessList) GetAccessTuples() []*ProtoAccessTuple

func (*ProtoAccessList) ProtoMessage

func (*ProtoAccessList) ProtoMessage()

func (*ProtoAccessList) ProtoReflect

func (x *ProtoAccessList) ProtoReflect() protoreflect.Message

func (*ProtoAccessList) Reset

func (x *ProtoAccessList) Reset()

func (*ProtoAccessList) String

func (x *ProtoAccessList) String() string

type ProtoAccessTuple

type ProtoAccessTuple struct {
	Address    []byte              `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	StorageKey []*common.ProtoHash `protobuf:"bytes,2,rep,name=storage_key,json=storageKey,proto3" json:"storage_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoAccessTuple) Descriptor deprecated

func (*ProtoAccessTuple) Descriptor() ([]byte, []int)

Deprecated: Use ProtoAccessTuple.ProtoReflect.Descriptor instead.

func (*ProtoAccessTuple) GetAddress

func (x *ProtoAccessTuple) GetAddress() []byte

func (*ProtoAccessTuple) GetStorageKey

func (x *ProtoAccessTuple) GetStorageKey() []*common.ProtoHash

func (*ProtoAccessTuple) ProtoMessage

func (*ProtoAccessTuple) ProtoMessage()

func (*ProtoAccessTuple) ProtoReflect

func (x *ProtoAccessTuple) ProtoReflect() protoreflect.Message

func (*ProtoAccessTuple) Reset

func (x *ProtoAccessTuple) Reset()

func (*ProtoAccessTuple) String

func (x *ProtoAccessTuple) String() string

type ProtoAddressOutPoints

type ProtoAddressOutPoints struct {
	OutPoints []*ProtoOutPointAndDenomination `protobuf:"bytes,1,rep,name=out_points,json=outPoints,proto3" json:"out_points,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoAddressOutPoints) Descriptor deprecated

func (*ProtoAddressOutPoints) Descriptor() ([]byte, []int)

Deprecated: Use ProtoAddressOutPoints.ProtoReflect.Descriptor instead.

func (*ProtoAddressOutPoints) GetOutPoints

func (*ProtoAddressOutPoints) ProtoMessage

func (*ProtoAddressOutPoints) ProtoMessage()

func (*ProtoAddressOutPoints) ProtoReflect

func (x *ProtoAddressOutPoints) ProtoReflect() protoreflect.Message

func (*ProtoAddressOutPoints) Reset

func (x *ProtoAddressOutPoints) Reset()

func (*ProtoAddressOutPoints) String

func (x *ProtoAddressOutPoints) String() string

type ProtoBetas

type ProtoBetas struct {
	Beta0 []byte `protobuf:"bytes,1,opt,name=beta0,proto3" json:"beta0,omitempty"`
	Beta1 []byte `protobuf:"bytes,2,opt,name=beta1,proto3" json:"beta1,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoBetas) Descriptor deprecated

func (*ProtoBetas) Descriptor() ([]byte, []int)

Deprecated: Use ProtoBetas.ProtoReflect.Descriptor instead.

func (*ProtoBetas) GetBeta0

func (x *ProtoBetas) GetBeta0() []byte

func (*ProtoBetas) GetBeta1

func (x *ProtoBetas) GetBeta1() []byte

func (*ProtoBetas) ProtoMessage

func (*ProtoBetas) ProtoMessage()

func (*ProtoBetas) ProtoReflect

func (x *ProtoBetas) ProtoReflect() protoreflect.Message

func (*ProtoBetas) Reset

func (x *ProtoBetas) Reset()

func (*ProtoBetas) String

func (x *ProtoBetas) String() string

type ProtoEtxSet

type ProtoEtxSet struct {
	EtxHashes []byte `protobuf:"bytes,1,opt,name=etx_hashes,json=etxHashes,proto3,oneof" json:"etx_hashes,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoEtxSet) Descriptor deprecated

func (*ProtoEtxSet) Descriptor() ([]byte, []int)

Deprecated: Use ProtoEtxSet.ProtoReflect.Descriptor instead.

func (*ProtoEtxSet) GetEtxHashes

func (x *ProtoEtxSet) GetEtxHashes() []byte

func (*ProtoEtxSet) ProtoMessage

func (*ProtoEtxSet) ProtoMessage()

func (*ProtoEtxSet) ProtoReflect

func (x *ProtoEtxSet) ProtoReflect() protoreflect.Message

func (*ProtoEtxSet) Reset

func (x *ProtoEtxSet) Reset()

func (*ProtoEtxSet) String

func (x *ProtoEtxSet) String() string

type ProtoHeader

type ProtoHeader struct {
	ParentHash               []*common.ProtoHash   `protobuf:"bytes,1,rep,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
	UncleHash                *common.ProtoHash     `protobuf:"bytes,2,opt,name=uncle_hash,json=uncleHash,proto3,oneof" json:"uncle_hash,omitempty"`
	EvmRoot                  *common.ProtoHash     `protobuf:"bytes,3,opt,name=evm_root,json=evmRoot,proto3,oneof" json:"evm_root,omitempty"`
	TxHash                   *common.ProtoHash     `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3,oneof" json:"tx_hash,omitempty"`
	OutboundEtxHash          *common.ProtoHash     `protobuf:"bytes,5,opt,name=outbound_etx_hash,json=outboundEtxHash,proto3,oneof" json:"outbound_etx_hash,omitempty"`
	EtxRollupHash            *common.ProtoHash     `protobuf:"bytes,6,opt,name=etx_rollup_hash,json=etxRollupHash,proto3,oneof" json:"etx_rollup_hash,omitempty"`
	ManifestHash             []*common.ProtoHash   `protobuf:"bytes,7,rep,name=manifest_hash,json=manifestHash,proto3" json:"manifest_hash,omitempty"`
	ReceiptHash              *common.ProtoHash     `protobuf:"bytes,8,opt,name=receipt_hash,json=receiptHash,proto3,oneof" json:"receipt_hash,omitempty"`
	Difficulty               []byte                `protobuf:"bytes,9,opt,name=difficulty,proto3,oneof" json:"difficulty,omitempty"`
	ParentEntropy            [][]byte              `protobuf:"bytes,10,rep,name=parent_entropy,json=parentEntropy,proto3" json:"parent_entropy,omitempty"`
	ParentDeltaEntropy       [][]byte              `protobuf:"bytes,11,rep,name=parent_delta_entropy,json=parentDeltaEntropy,proto3" json:"parent_delta_entropy,omitempty"`
	ParentUncledDeltaEntropy [][]byte              `` /* 138-byte string literal not displayed */
	UncledEntropy            []byte                `protobuf:"bytes,13,opt,name=uncled_entropy,json=uncledEntropy,proto3,oneof" json:"uncled_entropy,omitempty"`
	Number                   [][]byte              `protobuf:"bytes,14,rep,name=number,proto3" json:"number,omitempty"`
	GasLimit                 *uint64               `protobuf:"varint,15,opt,name=gas_limit,json=gasLimit,proto3,oneof" json:"gas_limit,omitempty"`
	GasUsed                  *uint64               `protobuf:"varint,16,opt,name=gas_used,json=gasUsed,proto3,oneof" json:"gas_used,omitempty"`
	BaseFee                  []byte                `protobuf:"bytes,17,opt,name=base_fee,json=baseFee,proto3,oneof" json:"base_fee,omitempty"`
	Location                 *common.ProtoLocation `protobuf:"bytes,18,opt,name=location,proto3,oneof" json:"location,omitempty"`
	Extra                    []byte                `protobuf:"bytes,19,opt,name=extra,proto3,oneof" json:"extra,omitempty"`
	MixHash                  *common.ProtoHash     `protobuf:"bytes,20,opt,name=mix_hash,json=mixHash,proto3,oneof" json:"mix_hash,omitempty"`
	Nonce                    *uint64               `protobuf:"varint,21,opt,name=nonce,proto3,oneof" json:"nonce,omitempty"`
	UtxoRoot                 *common.ProtoHash     `protobuf:"bytes,22,opt,name=utxo_root,json=utxoRoot,proto3,oneof" json:"utxo_root,omitempty"`
	EtxSetRoot               *common.ProtoHash     `protobuf:"bytes,23,opt,name=etx_set_root,json=etxSetRoot,proto3,oneof" json:"etx_set_root,omitempty"`
	EfficiencyScore          *uint64               `protobuf:"varint,24,opt,name=efficiency_score,json=efficiencyScore,proto3,oneof" json:"efficiency_score,omitempty"`
	ThresholdCount           *uint64               `protobuf:"varint,25,opt,name=threshold_count,json=thresholdCount,proto3,oneof" json:"threshold_count,omitempty"`
	ExpansionNumber          *uint64               `protobuf:"varint,26,opt,name=expansion_number,json=expansionNumber,proto3,oneof" json:"expansion_number,omitempty"`
	EtxEligibleSlices        *common.ProtoHash     `protobuf:"bytes,27,opt,name=etx_eligible_slices,json=etxEligibleSlices,proto3,oneof" json:"etx_eligible_slices,omitempty"`
	PrimeTerminusHash        *common.ProtoHash     `protobuf:"bytes,28,opt,name=prime_terminus_hash,json=primeTerminusHash,proto3,oneof" json:"prime_terminus_hash,omitempty"`
	InterlinkRootHash        *common.ProtoHash     `protobuf:"bytes,29,opt,name=interlink_root_hash,json=interlinkRootHash,proto3,oneof" json:"interlink_root_hash,omitempty"`
	StateLimit               *uint64               `protobuf:"varint,30,opt,name=state_limit,json=stateLimit,proto3,oneof" json:"state_limit,omitempty"`
	StateUsed                *uint64               `protobuf:"varint,31,opt,name=state_used,json=stateUsed,proto3,oneof" json:"state_used,omitempty"`
	QuaiStateSize            []byte                `protobuf:"bytes,32,opt,name=quai_state_size,json=quaiStateSize,proto3,oneof" json:"quai_state_size,omitempty"`
	ExchangeRate             []byte                `protobuf:"bytes,33,opt,name=exchange_rate,json=exchangeRate,proto3,oneof" json:"exchange_rate,omitempty"`
	AvgTxFees                []byte                `protobuf:"bytes,35,opt,name=avg_tx_fees,json=avgTxFees,proto3,oneof" json:"avg_tx_fees,omitempty"`
	TotalFees                []byte                `protobuf:"bytes,36,opt,name=total_fees,json=totalFees,proto3,oneof" json:"total_fees,omitempty"`
	KQuaiDiscount            []byte                `protobuf:"bytes,37,opt,name=k_quai_discount,json=kQuaiDiscount,proto3,oneof" json:"k_quai_discount,omitempty"`
	ConversionFlowAmount     []byte                `` /* 130-byte string literal not displayed */
	MinerDifficulty          []byte                `protobuf:"bytes,39,opt,name=miner_difficulty,json=minerDifficulty,proto3,oneof" json:"miner_difficulty,omitempty"`
	PrimeStateRoot           *common.ProtoHash     `protobuf:"bytes,40,opt,name=prime_state_root,json=primeStateRoot,proto3,oneof" json:"prime_state_root,omitempty"`
	RegionStateRoot          *common.ProtoHash     `protobuf:"bytes,41,opt,name=region_state_root,json=regionStateRoot,proto3,oneof" json:"region_state_root,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoHeader) Descriptor deprecated

func (*ProtoHeader) Descriptor() ([]byte, []int)

Deprecated: Use ProtoHeader.ProtoReflect.Descriptor instead.

func (*ProtoHeader) GetAvgTxFees

func (x *ProtoHeader) GetAvgTxFees() []byte

func (*ProtoHeader) GetBaseFee

func (x *ProtoHeader) GetBaseFee() []byte

func (*ProtoHeader) GetConversionFlowAmount

func (x *ProtoHeader) GetConversionFlowAmount() []byte

func (*ProtoHeader) GetDifficulty

func (x *ProtoHeader) GetDifficulty() []byte

func (*ProtoHeader) GetEfficiencyScore

func (x *ProtoHeader) GetEfficiencyScore() uint64

func (*ProtoHeader) GetEtxEligibleSlices

func (x *ProtoHeader) GetEtxEligibleSlices() *common.ProtoHash

func (*ProtoHeader) GetEtxRollupHash

func (x *ProtoHeader) GetEtxRollupHash() *common.ProtoHash

func (*ProtoHeader) GetEtxSetRoot

func (x *ProtoHeader) GetEtxSetRoot() *common.ProtoHash

func (*ProtoHeader) GetEvmRoot

func (x *ProtoHeader) GetEvmRoot() *common.ProtoHash

func (*ProtoHeader) GetExchangeRate

func (x *ProtoHeader) GetExchangeRate() []byte

func (*ProtoHeader) GetExpansionNumber

func (x *ProtoHeader) GetExpansionNumber() uint64

func (*ProtoHeader) GetExtra

func (x *ProtoHeader) GetExtra() []byte

func (*ProtoHeader) GetGasLimit

func (x *ProtoHeader) GetGasLimit() uint64

func (*ProtoHeader) GetGasUsed

func (x *ProtoHeader) GetGasUsed() uint64

func (*ProtoHeader) GetInterlinkRootHash

func (x *ProtoHeader) GetInterlinkRootHash() *common.ProtoHash

func (*ProtoHeader) GetKQuaiDiscount

func (x *ProtoHeader) GetKQuaiDiscount() []byte

func (*ProtoHeader) GetLocation

func (x *ProtoHeader) GetLocation() *common.ProtoLocation

func (*ProtoHeader) GetManifestHash

func (x *ProtoHeader) GetManifestHash() []*common.ProtoHash

func (*ProtoHeader) GetMinerDifficulty

func (x *ProtoHeader) GetMinerDifficulty() []byte

func (*ProtoHeader) GetMixHash

func (x *ProtoHeader) GetMixHash() *common.ProtoHash

func (*ProtoHeader) GetNonce

func (x *ProtoHeader) GetNonce() uint64

func (*ProtoHeader) GetNumber

func (x *ProtoHeader) GetNumber() [][]byte

func (*ProtoHeader) GetOutboundEtxHash

func (x *ProtoHeader) GetOutboundEtxHash() *common.ProtoHash

func (*ProtoHeader) GetParentDeltaEntropy

func (x *ProtoHeader) GetParentDeltaEntropy() [][]byte

func (*ProtoHeader) GetParentEntropy

func (x *ProtoHeader) GetParentEntropy() [][]byte

func (*ProtoHeader) GetParentHash

func (x *ProtoHeader) GetParentHash() []*common.ProtoHash

func (*ProtoHeader) GetParentUncledDeltaEntropy

func (x *ProtoHeader) GetParentUncledDeltaEntropy() [][]byte

func (*ProtoHeader) GetPrimeStateRoot

func (x *ProtoHeader) GetPrimeStateRoot() *common.ProtoHash

func (*ProtoHeader) GetPrimeTerminusHash

func (x *ProtoHeader) GetPrimeTerminusHash() *common.ProtoHash

func (*ProtoHeader) GetQuaiStateSize

func (x *ProtoHeader) GetQuaiStateSize() []byte

func (*ProtoHeader) GetReceiptHash

func (x *ProtoHeader) GetReceiptHash() *common.ProtoHash

func (*ProtoHeader) GetRegionStateRoot

func (x *ProtoHeader) GetRegionStateRoot() *common.ProtoHash

func (*ProtoHeader) GetStateLimit

func (x *ProtoHeader) GetStateLimit() uint64

func (*ProtoHeader) GetStateUsed

func (x *ProtoHeader) GetStateUsed() uint64

func (*ProtoHeader) GetThresholdCount

func (x *ProtoHeader) GetThresholdCount() uint64

func (*ProtoHeader) GetTotalFees

func (x *ProtoHeader) GetTotalFees() []byte

func (*ProtoHeader) GetTxHash

func (x *ProtoHeader) GetTxHash() *common.ProtoHash

func (*ProtoHeader) GetUncleHash

func (x *ProtoHeader) GetUncleHash() *common.ProtoHash

func (*ProtoHeader) GetUncledEntropy

func (x *ProtoHeader) GetUncledEntropy() []byte

func (*ProtoHeader) GetUtxoRoot

func (x *ProtoHeader) GetUtxoRoot() *common.ProtoHash

func (*ProtoHeader) ProtoMessage

func (*ProtoHeader) ProtoMessage()

func (*ProtoHeader) ProtoReflect

func (x *ProtoHeader) ProtoReflect() protoreflect.Message

func (*ProtoHeader) Reset

func (x *ProtoHeader) Reset()

func (*ProtoHeader) String

func (x *ProtoHeader) String() string

type ProtoHeaders

type ProtoHeaders struct {
	Headers []*ProtoHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoHeaders) Descriptor deprecated

func (*ProtoHeaders) Descriptor() ([]byte, []int)

Deprecated: Use ProtoHeaders.ProtoReflect.Descriptor instead.

func (*ProtoHeaders) GetHeaders

func (x *ProtoHeaders) GetHeaders() []*ProtoHeader

func (*ProtoHeaders) ProtoMessage

func (*ProtoHeaders) ProtoMessage()

func (*ProtoHeaders) ProtoReflect

func (x *ProtoHeaders) ProtoReflect() protoreflect.Message

func (*ProtoHeaders) Reset

func (x *ProtoHeaders) Reset()

func (*ProtoHeaders) String

func (x *ProtoHeaders) String() string

type ProtoKeyValue

type ProtoKeyValue struct {
	Key   []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoKeyValue) Descriptor deprecated

func (*ProtoKeyValue) Descriptor() ([]byte, []int)

Deprecated: Use ProtoKeyValue.ProtoReflect.Descriptor instead.

func (*ProtoKeyValue) GetKey

func (x *ProtoKeyValue) GetKey() []byte

func (*ProtoKeyValue) GetValue

func (x *ProtoKeyValue) GetValue() []byte

func (*ProtoKeyValue) ProtoMessage

func (*ProtoKeyValue) ProtoMessage()

func (*ProtoKeyValue) ProtoReflect

func (x *ProtoKeyValue) ProtoReflect() protoreflect.Message

func (*ProtoKeyValue) Reset

func (x *ProtoKeyValue) Reset()

func (*ProtoKeyValue) String

func (x *ProtoKeyValue) String() string

type ProtoKeys

type ProtoKeys struct {
	Keys [][]byte `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoKeys) Descriptor deprecated

func (*ProtoKeys) Descriptor() ([]byte, []int)

Deprecated: Use ProtoKeys.ProtoReflect.Descriptor instead.

func (*ProtoKeys) GetKeys

func (x *ProtoKeys) GetKeys() [][]byte

func (*ProtoKeys) ProtoMessage

func (*ProtoKeys) ProtoMessage()

func (*ProtoKeys) ProtoReflect

func (x *ProtoKeys) ProtoReflect() protoreflect.Message

func (*ProtoKeys) Reset

func (x *ProtoKeys) Reset()

func (*ProtoKeys) String

func (x *ProtoKeys) String() string

type ProtoKeysAndValues

type ProtoKeysAndValues struct {
	KeysAndValues []*ProtoKeyValue `protobuf:"bytes,1,rep,name=keys_and_values,json=keysAndValues,proto3" json:"keys_and_values,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoKeysAndValues) Descriptor deprecated

func (*ProtoKeysAndValues) Descriptor() ([]byte, []int)

Deprecated: Use ProtoKeysAndValues.ProtoReflect.Descriptor instead.

func (*ProtoKeysAndValues) GetKeysAndValues

func (x *ProtoKeysAndValues) GetKeysAndValues() []*ProtoKeyValue

func (*ProtoKeysAndValues) ProtoMessage

func (*ProtoKeysAndValues) ProtoMessage()

func (*ProtoKeysAndValues) ProtoReflect

func (x *ProtoKeysAndValues) ProtoReflect() protoreflect.Message

func (*ProtoKeysAndValues) Reset

func (x *ProtoKeysAndValues) Reset()

func (*ProtoKeysAndValues) String

func (x *ProtoKeysAndValues) String() string

type ProtoLockedBalance

type ProtoLockedBalance struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoLockedBalance) Descriptor deprecated

func (*ProtoLockedBalance) Descriptor() ([]byte, []int)

Deprecated: Use ProtoLockedBalance.ProtoReflect.Descriptor instead.

func (*ProtoLockedBalance) GetValue

func (x *ProtoLockedBalance) GetValue() []byte

func (*ProtoLockedBalance) ProtoMessage

func (*ProtoLockedBalance) ProtoMessage()

func (*ProtoLockedBalance) ProtoReflect

func (x *ProtoLockedBalance) ProtoReflect() protoreflect.Message

func (*ProtoLockedBalance) Reset

func (x *ProtoLockedBalance) Reset()

func (*ProtoLockedBalance) String

func (x *ProtoLockedBalance) String() string

type ProtoLockup

type ProtoLockup struct {
	Value        []byte               `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	UnlockHeight uint64               `protobuf:"varint,2,opt,name=unlock_height,json=unlockHeight,proto3" json:"unlock_height,omitempty"`
	Address      *common.ProtoAddress `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoLockup) Descriptor deprecated

func (*ProtoLockup) Descriptor() ([]byte, []int)

Deprecated: Use ProtoLockup.ProtoReflect.Descriptor instead.

func (*ProtoLockup) GetAddress

func (x *ProtoLockup) GetAddress() *common.ProtoAddress

func (*ProtoLockup) GetUnlockHeight

func (x *ProtoLockup) GetUnlockHeight() uint64

func (*ProtoLockup) GetValue

func (x *ProtoLockup) GetValue() []byte

func (*ProtoLockup) ProtoMessage

func (*ProtoLockup) ProtoMessage()

func (*ProtoLockup) ProtoReflect

func (x *ProtoLockup) ProtoReflect() protoreflect.Message

func (*ProtoLockup) Reset

func (x *ProtoLockup) Reset()

func (*ProtoLockup) String

func (x *ProtoLockup) String() string

type ProtoLockups

type ProtoLockups struct {
	Lockups []*ProtoLockup `protobuf:"bytes,1,rep,name=lockups,proto3" json:"lockups,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoLockups) Descriptor deprecated

func (*ProtoLockups) Descriptor() ([]byte, []int)

Deprecated: Use ProtoLockups.ProtoReflect.Descriptor instead.

func (*ProtoLockups) GetLockups

func (x *ProtoLockups) GetLockups() []*ProtoLockup

func (*ProtoLockups) ProtoMessage

func (*ProtoLockups) ProtoMessage()

func (*ProtoLockups) ProtoReflect

func (x *ProtoLockups) ProtoReflect() protoreflect.Message

func (*ProtoLockups) Reset

func (x *ProtoLockups) Reset()

func (*ProtoLockups) String

func (x *ProtoLockups) String() string

type ProtoLogForStorage

type ProtoLogForStorage struct {
	Address *common.ProtoAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Topics  []*common.ProtoHash  `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`
	Data    []byte               `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoLogForStorage) Descriptor deprecated

func (*ProtoLogForStorage) Descriptor() ([]byte, []int)

Deprecated: Use ProtoLogForStorage.ProtoReflect.Descriptor instead.

func (*ProtoLogForStorage) GetAddress

func (x *ProtoLogForStorage) GetAddress() *common.ProtoAddress

func (*ProtoLogForStorage) GetData

func (x *ProtoLogForStorage) GetData() []byte

func (*ProtoLogForStorage) GetTopics

func (x *ProtoLogForStorage) GetTopics() []*common.ProtoHash

func (*ProtoLogForStorage) ProtoMessage

func (*ProtoLogForStorage) ProtoMessage()

func (*ProtoLogForStorage) ProtoReflect

func (x *ProtoLogForStorage) ProtoReflect() protoreflect.Message

func (*ProtoLogForStorage) Reset

func (x *ProtoLogForStorage) Reset()

func (*ProtoLogForStorage) String

func (x *ProtoLogForStorage) String() string

type ProtoLogsForStorage

type ProtoLogsForStorage struct {
	Logs []*ProtoLogForStorage `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoLogsForStorage) Descriptor deprecated

func (*ProtoLogsForStorage) Descriptor() ([]byte, []int)

Deprecated: Use ProtoLogsForStorage.ProtoReflect.Descriptor instead.

func (*ProtoLogsForStorage) GetLogs

func (x *ProtoLogsForStorage) GetLogs() []*ProtoLogForStorage

func (*ProtoLogsForStorage) ProtoMessage

func (*ProtoLogsForStorage) ProtoMessage()

func (*ProtoLogsForStorage) ProtoReflect

func (x *ProtoLogsForStorage) ProtoReflect() protoreflect.Message

func (*ProtoLogsForStorage) Reset

func (x *ProtoLogsForStorage) Reset()

func (*ProtoLogsForStorage) String

func (x *ProtoLogsForStorage) String() string

type ProtoManifest

type ProtoManifest struct {
	Manifest []*common.ProtoHash `protobuf:"bytes,1,rep,name=manifest,proto3" json:"manifest,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoManifest) Descriptor deprecated

func (*ProtoManifest) Descriptor() ([]byte, []int)

Deprecated: Use ProtoManifest.ProtoReflect.Descriptor instead.

func (*ProtoManifest) GetManifest

func (x *ProtoManifest) GetManifest() []*common.ProtoHash

func (*ProtoManifest) ProtoMessage

func (*ProtoManifest) ProtoMessage()

func (*ProtoManifest) ProtoReflect

func (x *ProtoManifest) ProtoReflect() protoreflect.Message

func (*ProtoManifest) Reset

func (x *ProtoManifest) Reset()

func (*ProtoManifest) String

func (x *ProtoManifest) String() string

type ProtoOutPoint

type ProtoOutPoint struct {
	Hash  *common.ProtoHash `protobuf:"bytes,1,opt,name=hash,proto3,oneof" json:"hash,omitempty"`
	Index *uint32           `protobuf:"varint,2,opt,name=index,proto3,oneof" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoOutPoint) Descriptor deprecated

func (*ProtoOutPoint) Descriptor() ([]byte, []int)

Deprecated: Use ProtoOutPoint.ProtoReflect.Descriptor instead.

func (*ProtoOutPoint) GetHash

func (x *ProtoOutPoint) GetHash() *common.ProtoHash

func (*ProtoOutPoint) GetIndex

func (x *ProtoOutPoint) GetIndex() uint32

func (*ProtoOutPoint) ProtoMessage

func (*ProtoOutPoint) ProtoMessage()

func (*ProtoOutPoint) ProtoReflect

func (x *ProtoOutPoint) ProtoReflect() protoreflect.Message

func (*ProtoOutPoint) Reset

func (x *ProtoOutPoint) Reset()

func (*ProtoOutPoint) String

func (x *ProtoOutPoint) String() string

type ProtoOutPointAndDenomination

type ProtoOutPointAndDenomination struct {
	Hash         *common.ProtoHash `protobuf:"bytes,1,opt,name=hash,proto3,oneof" json:"hash,omitempty"`
	Index        *uint32           `protobuf:"varint,2,opt,name=index,proto3,oneof" json:"index,omitempty"`
	Denomination *uint32           `protobuf:"varint,3,opt,name=denomination,proto3,oneof" json:"denomination,omitempty"`
	Lock         []byte            `protobuf:"bytes,4,opt,name=lock,proto3,oneof" json:"lock,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoOutPointAndDenomination) Descriptor deprecated

func (*ProtoOutPointAndDenomination) Descriptor() ([]byte, []int)

Deprecated: Use ProtoOutPointAndDenomination.ProtoReflect.Descriptor instead.

func (*ProtoOutPointAndDenomination) GetDenomination

func (x *ProtoOutPointAndDenomination) GetDenomination() uint32

func (*ProtoOutPointAndDenomination) GetHash

func (*ProtoOutPointAndDenomination) GetIndex

func (x *ProtoOutPointAndDenomination) GetIndex() uint32

func (*ProtoOutPointAndDenomination) GetLock

func (x *ProtoOutPointAndDenomination) GetLock() []byte

func (*ProtoOutPointAndDenomination) ProtoMessage

func (*ProtoOutPointAndDenomination) ProtoMessage()

func (*ProtoOutPointAndDenomination) ProtoReflect

func (*ProtoOutPointAndDenomination) Reset

func (x *ProtoOutPointAndDenomination) Reset()

func (*ProtoOutPointAndDenomination) String

type ProtoPendingEtxs

type ProtoPendingEtxs struct {
	Header       *ProtoWorkObject   `protobuf:"bytes,1,opt,name=header,proto3,oneof" json:"header,omitempty"`
	OutboundEtxs *ProtoTransactions `protobuf:"bytes,2,opt,name=outbound_etxs,json=outboundEtxs,proto3,oneof" json:"outbound_etxs,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoPendingEtxs) Descriptor deprecated

func (*ProtoPendingEtxs) Descriptor() ([]byte, []int)

Deprecated: Use ProtoPendingEtxs.ProtoReflect.Descriptor instead.

func (*ProtoPendingEtxs) GetHeader

func (x *ProtoPendingEtxs) GetHeader() *ProtoWorkObject

func (*ProtoPendingEtxs) GetOutboundEtxs

func (x *ProtoPendingEtxs) GetOutboundEtxs() *ProtoTransactions

func (*ProtoPendingEtxs) ProtoMessage

func (*ProtoPendingEtxs) ProtoMessage()

func (*ProtoPendingEtxs) ProtoReflect

func (x *ProtoPendingEtxs) ProtoReflect() protoreflect.Message

func (*ProtoPendingEtxs) Reset

func (x *ProtoPendingEtxs) Reset()

func (*ProtoPendingEtxs) String

func (x *ProtoPendingEtxs) String() string

type ProtoPendingEtxsRollup

type ProtoPendingEtxsRollup struct {
	Header     *ProtoWorkObject   `protobuf:"bytes,1,opt,name=header,proto3,oneof" json:"header,omitempty"`
	EtxsRollup *ProtoTransactions `protobuf:"bytes,2,opt,name=etxs_rollup,json=etxsRollup,proto3,oneof" json:"etxs_rollup,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoPendingEtxsRollup) Descriptor deprecated

func (*ProtoPendingEtxsRollup) Descriptor() ([]byte, []int)

Deprecated: Use ProtoPendingEtxsRollup.ProtoReflect.Descriptor instead.

func (*ProtoPendingEtxsRollup) GetEtxsRollup

func (x *ProtoPendingEtxsRollup) GetEtxsRollup() *ProtoTransactions

func (*ProtoPendingEtxsRollup) GetHeader

func (x *ProtoPendingEtxsRollup) GetHeader() *ProtoWorkObject

func (*ProtoPendingEtxsRollup) ProtoMessage

func (*ProtoPendingEtxsRollup) ProtoMessage()

func (*ProtoPendingEtxsRollup) ProtoReflect

func (x *ProtoPendingEtxsRollup) ProtoReflect() protoreflect.Message

func (*ProtoPendingEtxsRollup) Reset

func (x *ProtoPendingEtxsRollup) Reset()

func (*ProtoPendingEtxsRollup) String

func (x *ProtoPendingEtxsRollup) String() string

type ProtoPendingHeader

type ProtoPendingHeader struct {
	Wo      *ProtoWorkObject `protobuf:"bytes,1,opt,name=wo,proto3,oneof" json:"wo,omitempty"`
	Termini *ProtoTermini    `protobuf:"bytes,2,opt,name=termini,proto3,oneof" json:"termini,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoPendingHeader) Descriptor deprecated

func (*ProtoPendingHeader) Descriptor() ([]byte, []int)

Deprecated: Use ProtoPendingHeader.ProtoReflect.Descriptor instead.

func (*ProtoPendingHeader) GetTermini

func (x *ProtoPendingHeader) GetTermini() *ProtoTermini

func (*ProtoPendingHeader) GetWo

func (x *ProtoPendingHeader) GetWo() *ProtoWorkObject

func (*ProtoPendingHeader) ProtoMessage

func (*ProtoPendingHeader) ProtoMessage()

func (*ProtoPendingHeader) ProtoReflect

func (x *ProtoPendingHeader) ProtoReflect() protoreflect.Message

func (*ProtoPendingHeader) Reset

func (x *ProtoPendingHeader) Reset()

func (*ProtoPendingHeader) String

func (x *ProtoPendingHeader) String() string

type ProtoReceiptForStorage

type ProtoReceiptForStorage struct {
	PostStateOrStatus []byte               `protobuf:"bytes,1,opt,name=post_state_or_status,json=postStateOrStatus,proto3" json:"post_state_or_status,omitempty"`
	CumulativeGasUsed uint64               `protobuf:"varint,2,opt,name=cumulative_gas_used,json=cumulativeGasUsed,proto3" json:"cumulative_gas_used,omitempty"`
	Logs              *ProtoLogsForStorage `protobuf:"bytes,3,opt,name=logs,proto3" json:"logs,omitempty"`
	TxHash            *common.ProtoHash    `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	ContractAddress   *common.ProtoAddress `protobuf:"bytes,5,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	GasUsed           uint64               `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	OutboundEtxs      *ProtoTransactions   `protobuf:"bytes,7,opt,name=outbound_etxs,json=outboundEtxs,proto3" json:"outbound_etxs,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoReceiptForStorage) Descriptor deprecated

func (*ProtoReceiptForStorage) Descriptor() ([]byte, []int)

Deprecated: Use ProtoReceiptForStorage.ProtoReflect.Descriptor instead.

func (*ProtoReceiptForStorage) GetContractAddress

func (x *ProtoReceiptForStorage) GetContractAddress() *common.ProtoAddress

func (*ProtoReceiptForStorage) GetCumulativeGasUsed

func (x *ProtoReceiptForStorage) GetCumulativeGasUsed() uint64

func (*ProtoReceiptForStorage) GetGasUsed

func (x *ProtoReceiptForStorage) GetGasUsed() uint64

func (*ProtoReceiptForStorage) GetLogs

func (*ProtoReceiptForStorage) GetOutboundEtxs

func (x *ProtoReceiptForStorage) GetOutboundEtxs() *ProtoTransactions

func (*ProtoReceiptForStorage) GetPostStateOrStatus

func (x *ProtoReceiptForStorage) GetPostStateOrStatus() []byte

func (*ProtoReceiptForStorage) GetTxHash

func (x *ProtoReceiptForStorage) GetTxHash() *common.ProtoHash

func (*ProtoReceiptForStorage) ProtoMessage

func (*ProtoReceiptForStorage) ProtoMessage()

func (*ProtoReceiptForStorage) ProtoReflect

func (x *ProtoReceiptForStorage) ProtoReflect() protoreflect.Message

func (*ProtoReceiptForStorage) Reset

func (x *ProtoReceiptForStorage) Reset()

func (*ProtoReceiptForStorage) String

func (x *ProtoReceiptForStorage) String() string

type ProtoReceiptsForStorage

type ProtoReceiptsForStorage struct {
	Receipts []*ProtoReceiptForStorage `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoReceiptsForStorage) Descriptor deprecated

func (*ProtoReceiptsForStorage) Descriptor() ([]byte, []int)

Deprecated: Use ProtoReceiptsForStorage.ProtoReflect.Descriptor instead.

func (*ProtoReceiptsForStorage) GetReceipts

func (x *ProtoReceiptsForStorage) GetReceipts() []*ProtoReceiptForStorage

func (*ProtoReceiptsForStorage) ProtoMessage

func (*ProtoReceiptsForStorage) ProtoMessage()

func (*ProtoReceiptsForStorage) ProtoReflect

func (x *ProtoReceiptsForStorage) ProtoReflect() protoreflect.Message

func (*ProtoReceiptsForStorage) Reset

func (x *ProtoReceiptsForStorage) Reset()

func (*ProtoReceiptsForStorage) String

func (x *ProtoReceiptsForStorage) String() string

type ProtoSpentUTXO

type ProtoSpentUTXO struct {
	Outpoint *ProtoOutPoint `protobuf:"bytes,1,opt,name=outpoint,proto3,oneof" json:"outpoint,omitempty"`
	Sutxo    *ProtoTxOut    `protobuf:"bytes,2,opt,name=sutxo,proto3,oneof" json:"sutxo,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoSpentUTXO) Descriptor deprecated

func (*ProtoSpentUTXO) Descriptor() ([]byte, []int)

Deprecated: Use ProtoSpentUTXO.ProtoReflect.Descriptor instead.

func (*ProtoSpentUTXO) GetOutpoint

func (x *ProtoSpentUTXO) GetOutpoint() *ProtoOutPoint

func (*ProtoSpentUTXO) GetSutxo

func (x *ProtoSpentUTXO) GetSutxo() *ProtoTxOut

func (*ProtoSpentUTXO) ProtoMessage

func (*ProtoSpentUTXO) ProtoMessage()

func (*ProtoSpentUTXO) ProtoReflect

func (x *ProtoSpentUTXO) ProtoReflect() protoreflect.Message

func (*ProtoSpentUTXO) Reset

func (x *ProtoSpentUTXO) Reset()

func (*ProtoSpentUTXO) String

func (x *ProtoSpentUTXO) String() string

type ProtoSpentUTXOs

type ProtoSpentUTXOs struct {
	Sutxos []*ProtoSpentUTXO `protobuf:"bytes,1,rep,name=sutxos,proto3" json:"sutxos,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoSpentUTXOs) Descriptor deprecated

func (*ProtoSpentUTXOs) Descriptor() ([]byte, []int)

Deprecated: Use ProtoSpentUTXOs.ProtoReflect.Descriptor instead.

func (*ProtoSpentUTXOs) GetSutxos

func (x *ProtoSpentUTXOs) GetSutxos() []*ProtoSpentUTXO

func (*ProtoSpentUTXOs) ProtoMessage

func (*ProtoSpentUTXOs) ProtoMessage()

func (*ProtoSpentUTXOs) ProtoReflect

func (x *ProtoSpentUTXOs) ProtoReflect() protoreflect.Message

func (*ProtoSpentUTXOs) Reset

func (x *ProtoSpentUTXOs) Reset()

func (*ProtoSpentUTXOs) String

func (x *ProtoSpentUTXOs) String() string

type ProtoSupplyAnalytics

type ProtoSupplyAnalytics struct {
	SupplyAddedQuai   []byte `protobuf:"bytes,1,opt,name=supply_added_quai,json=supplyAddedQuai,proto3" json:"supply_added_quai,omitempty"`
	SupplyRemovedQuai []byte `protobuf:"bytes,2,opt,name=supply_removed_quai,json=supplyRemovedQuai,proto3" json:"supply_removed_quai,omitempty"`
	SupplyAddedQi     []byte `protobuf:"bytes,3,opt,name=supply_added_qi,json=supplyAddedQi,proto3" json:"supply_added_qi,omitempty"`
	SupplyRemovedQi   []byte `protobuf:"bytes,4,opt,name=supply_removed_qi,json=supplyRemovedQi,proto3" json:"supply_removed_qi,omitempty"`
	TotalSupplyQuai   []byte `protobuf:"bytes,5,opt,name=total_supply_quai,json=totalSupplyQuai,proto3" json:"total_supply_quai,omitempty"`
	TotalSupplyQi     []byte `protobuf:"bytes,6,opt,name=total_supply_qi,json=totalSupplyQi,proto3" json:"total_supply_qi,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoSupplyAnalytics) Descriptor deprecated

func (*ProtoSupplyAnalytics) Descriptor() ([]byte, []int)

Deprecated: Use ProtoSupplyAnalytics.ProtoReflect.Descriptor instead.

func (*ProtoSupplyAnalytics) GetSupplyAddedQi

func (x *ProtoSupplyAnalytics) GetSupplyAddedQi() []byte

func (*ProtoSupplyAnalytics) GetSupplyAddedQuai

func (x *ProtoSupplyAnalytics) GetSupplyAddedQuai() []byte

func (*ProtoSupplyAnalytics) GetSupplyRemovedQi

func (x *ProtoSupplyAnalytics) GetSupplyRemovedQi() []byte

func (*ProtoSupplyAnalytics) GetSupplyRemovedQuai

func (x *ProtoSupplyAnalytics) GetSupplyRemovedQuai() []byte

func (*ProtoSupplyAnalytics) GetTotalSupplyQi

func (x *ProtoSupplyAnalytics) GetTotalSupplyQi() []byte

func (*ProtoSupplyAnalytics) GetTotalSupplyQuai

func (x *ProtoSupplyAnalytics) GetTotalSupplyQuai() []byte

func (*ProtoSupplyAnalytics) ProtoMessage

func (*ProtoSupplyAnalytics) ProtoMessage()

func (*ProtoSupplyAnalytics) ProtoReflect

func (x *ProtoSupplyAnalytics) ProtoReflect() protoreflect.Message

func (*ProtoSupplyAnalytics) Reset

func (x *ProtoSupplyAnalytics) Reset()

func (*ProtoSupplyAnalytics) String

func (x *ProtoSupplyAnalytics) String() string

type ProtoTermini

type ProtoTermini struct {
	DomTermini []*common.ProtoHash `protobuf:"bytes,1,rep,name=dom_termini,json=domTermini,proto3" json:"dom_termini,omitempty"`
	SubTermini []*common.ProtoHash `protobuf:"bytes,2,rep,name=sub_termini,json=subTermini,proto3" json:"sub_termini,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoTermini) Descriptor deprecated

func (*ProtoTermini) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTermini.ProtoReflect.Descriptor instead.

func (*ProtoTermini) GetDomTermini

func (x *ProtoTermini) GetDomTermini() []*common.ProtoHash

func (*ProtoTermini) GetSubTermini

func (x *ProtoTermini) GetSubTermini() []*common.ProtoHash

func (*ProtoTermini) ProtoMessage

func (*ProtoTermini) ProtoMessage()

func (*ProtoTermini) ProtoReflect

func (x *ProtoTermini) ProtoReflect() protoreflect.Message

func (*ProtoTermini) Reset

func (x *ProtoTermini) Reset()

func (*ProtoTermini) String

func (x *ProtoTermini) String() string

type ProtoTokenChoice

type ProtoTokenChoice struct {
	Quai uint64 `protobuf:"varint,1,opt,name=quai,proto3" json:"quai,omitempty"`
	Qi   uint64 `protobuf:"varint,2,opt,name=qi,proto3" json:"qi,omitempty"`
	Diff []byte `protobuf:"bytes,3,opt,name=diff,proto3" json:"diff,omitempty"` // big.Int as bytes
	// contains filtered or unexported fields
}

func (*ProtoTokenChoice) Descriptor deprecated

func (*ProtoTokenChoice) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTokenChoice.ProtoReflect.Descriptor instead.

func (*ProtoTokenChoice) GetDiff

func (x *ProtoTokenChoice) GetDiff() []byte

func (*ProtoTokenChoice) GetQi

func (x *ProtoTokenChoice) GetQi() uint64

func (*ProtoTokenChoice) GetQuai

func (x *ProtoTokenChoice) GetQuai() uint64

func (*ProtoTokenChoice) ProtoMessage

func (*ProtoTokenChoice) ProtoMessage()

func (*ProtoTokenChoice) ProtoReflect

func (x *ProtoTokenChoice) ProtoReflect() protoreflect.Message

func (*ProtoTokenChoice) Reset

func (x *ProtoTokenChoice) Reset()

func (*ProtoTokenChoice) String

func (x *ProtoTokenChoice) String() string

type ProtoTokenChoiceArray

type ProtoTokenChoiceArray struct {
	TokenChoices *ProtoTokenChoice `protobuf:"bytes,1,opt,name=token_choices,json=tokenChoices,proto3,oneof" json:"token_choices,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoTokenChoiceArray) Descriptor deprecated

func (*ProtoTokenChoiceArray) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTokenChoiceArray.ProtoReflect.Descriptor instead.

func (*ProtoTokenChoiceArray) GetTokenChoices

func (x *ProtoTokenChoiceArray) GetTokenChoices() *ProtoTokenChoice

func (*ProtoTokenChoiceArray) ProtoMessage

func (*ProtoTokenChoiceArray) ProtoMessage()

func (*ProtoTokenChoiceArray) ProtoReflect

func (x *ProtoTokenChoiceArray) ProtoReflect() protoreflect.Message

func (*ProtoTokenChoiceArray) Reset

func (x *ProtoTokenChoiceArray) Reset()

func (*ProtoTokenChoiceArray) String

func (x *ProtoTokenChoiceArray) String() string

type ProtoTokenChoiceSet

type ProtoTokenChoiceSet struct {
	TokenChoiceArray []*ProtoTokenChoiceArray `protobuf:"bytes,1,rep,name=token_choice_array,json=tokenChoiceArray,proto3" json:"token_choice_array,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoTokenChoiceSet) Descriptor deprecated

func (*ProtoTokenChoiceSet) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTokenChoiceSet.ProtoReflect.Descriptor instead.

func (*ProtoTokenChoiceSet) GetTokenChoiceArray

func (x *ProtoTokenChoiceSet) GetTokenChoiceArray() []*ProtoTokenChoiceArray

func (*ProtoTokenChoiceSet) ProtoMessage

func (*ProtoTokenChoiceSet) ProtoMessage()

func (*ProtoTokenChoiceSet) ProtoReflect

func (x *ProtoTokenChoiceSet) ProtoReflect() protoreflect.Message

func (*ProtoTokenChoiceSet) Reset

func (x *ProtoTokenChoiceSet) Reset()

func (*ProtoTokenChoiceSet) String

func (x *ProtoTokenChoiceSet) String() string

type ProtoTransaction

type ProtoTransaction struct {
	Type              *uint64           `protobuf:"varint,1,opt,name=type,proto3,oneof" json:"type,omitempty"`
	To                []byte            `protobuf:"bytes,2,opt,name=to,proto3,oneof" json:"to,omitempty"`
	Nonce             *uint64           `protobuf:"varint,3,opt,name=nonce,proto3,oneof" json:"nonce,omitempty"`
	Value             []byte            `protobuf:"bytes,4,opt,name=value,proto3,oneof" json:"value,omitempty"`
	Gas               *uint64           `protobuf:"varint,5,opt,name=gas,proto3,oneof" json:"gas,omitempty"`
	Data              []byte            `protobuf:"bytes,6,opt,name=data,proto3,oneof" json:"data,omitempty"`
	ChainId           []byte            `protobuf:"bytes,7,opt,name=chain_id,json=chainId,proto3,oneof" json:"chain_id,omitempty"`
	GasPrice          []byte            `protobuf:"bytes,8,opt,name=gas_price,json=gasPrice,proto3,oneof" json:"gas_price,omitempty"`
	AccessList        *ProtoAccessList  `protobuf:"bytes,9,opt,name=access_list,json=accessList,proto3,oneof" json:"access_list,omitempty"`
	V                 []byte            `protobuf:"bytes,10,opt,name=v,proto3,oneof" json:"v,omitempty"`
	R                 []byte            `protobuf:"bytes,11,opt,name=r,proto3,oneof" json:"r,omitempty"`
	S                 []byte            `protobuf:"bytes,12,opt,name=s,proto3,oneof" json:"s,omitempty"`
	OriginatingTxHash *common.ProtoHash `protobuf:"bytes,13,opt,name=originating_tx_hash,json=originatingTxHash,proto3,oneof" json:"originating_tx_hash,omitempty"`
	EtxIndex          *uint32           `protobuf:"varint,14,opt,name=etx_index,json=etxIndex,proto3,oneof" json:"etx_index,omitempty"`
	TxIns             *ProtoTxIns       `protobuf:"bytes,15,opt,name=tx_ins,json=txIns,proto3,oneof" json:"tx_ins,omitempty"`
	TxOuts            *ProtoTxOuts      `protobuf:"bytes,16,opt,name=tx_outs,json=txOuts,proto3,oneof" json:"tx_outs,omitempty"`
	Signature         []byte            `protobuf:"bytes,17,opt,name=signature,proto3,oneof" json:"signature,omitempty"`
	EtxSender         []byte            `protobuf:"bytes,18,opt,name=etx_sender,json=etxSender,proto3,oneof" json:"etx_sender,omitempty"`
	ParentHash        *common.ProtoHash `protobuf:"bytes,19,opt,name=parent_hash,json=parentHash,proto3,oneof" json:"parent_hash,omitempty"`
	MixHash           *common.ProtoHash `protobuf:"bytes,20,opt,name=mix_hash,json=mixHash,proto3,oneof" json:"mix_hash,omitempty"`
	WorkNonce         *uint64           `protobuf:"varint,21,opt,name=work_nonce,json=workNonce,proto3,oneof" json:"work_nonce,omitempty"`
	EtxType           *uint64           `protobuf:"varint,22,opt,name=etx_type,json=etxType,proto3,oneof" json:"etx_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoTransaction) Descriptor deprecated

func (*ProtoTransaction) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTransaction.ProtoReflect.Descriptor instead.

func (*ProtoTransaction) GetAccessList

func (x *ProtoTransaction) GetAccessList() *ProtoAccessList

func (*ProtoTransaction) GetChainId

func (x *ProtoTransaction) GetChainId() []byte

func (*ProtoTransaction) GetData

func (x *ProtoTransaction) GetData() []byte

func (*ProtoTransaction) GetEtxIndex

func (x *ProtoTransaction) GetEtxIndex() uint32

func (*ProtoTransaction) GetEtxSender

func (x *ProtoTransaction) GetEtxSender() []byte

func (*ProtoTransaction) GetEtxType

func (x *ProtoTransaction) GetEtxType() uint64

func (*ProtoTransaction) GetGas

func (x *ProtoTransaction) GetGas() uint64

func (*ProtoTransaction) GetGasPrice

func (x *ProtoTransaction) GetGasPrice() []byte

func (*ProtoTransaction) GetMixHash

func (x *ProtoTransaction) GetMixHash() *common.ProtoHash

func (*ProtoTransaction) GetNonce

func (x *ProtoTransaction) GetNonce() uint64

func (*ProtoTransaction) GetOriginatingTxHash

func (x *ProtoTransaction) GetOriginatingTxHash() *common.ProtoHash

func (*ProtoTransaction) GetParentHash

func (x *ProtoTransaction) GetParentHash() *common.ProtoHash

func (*ProtoTransaction) GetR

func (x *ProtoTransaction) GetR() []byte

func (*ProtoTransaction) GetS

func (x *ProtoTransaction) GetS() []byte

func (*ProtoTransaction) GetSignature

func (x *ProtoTransaction) GetSignature() []byte

func (*ProtoTransaction) GetTo

func (x *ProtoTransaction) GetTo() []byte

func (*ProtoTransaction) GetTxIns

func (x *ProtoTransaction) GetTxIns() *ProtoTxIns

func (*ProtoTransaction) GetTxOuts

func (x *ProtoTransaction) GetTxOuts() *ProtoTxOuts

func (*ProtoTransaction) GetType

func (x *ProtoTransaction) GetType() uint64

func (*ProtoTransaction) GetV

func (x *ProtoTransaction) GetV() []byte

func (*ProtoTransaction) GetValue

func (x *ProtoTransaction) GetValue() []byte

func (*ProtoTransaction) GetWorkNonce

func (x *ProtoTransaction) GetWorkNonce() uint64

func (*ProtoTransaction) ProtoMessage

func (*ProtoTransaction) ProtoMessage()

func (*ProtoTransaction) ProtoReflect

func (x *ProtoTransaction) ProtoReflect() protoreflect.Message

func (*ProtoTransaction) Reset

func (x *ProtoTransaction) Reset()

func (*ProtoTransaction) String

func (x *ProtoTransaction) String() string

type ProtoTransactions

type ProtoTransactions struct {
	Transactions []*ProtoTransaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoTransactions) Descriptor deprecated

func (*ProtoTransactions) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTransactions.ProtoReflect.Descriptor instead.

func (*ProtoTransactions) GetTransactions

func (x *ProtoTransactions) GetTransactions() []*ProtoTransaction

func (*ProtoTransactions) ProtoMessage

func (*ProtoTransactions) ProtoMessage()

func (*ProtoTransactions) ProtoReflect

func (x *ProtoTransactions) ProtoReflect() protoreflect.Message

func (*ProtoTransactions) Reset

func (x *ProtoTransactions) Reset()

func (*ProtoTransactions) String

func (x *ProtoTransactions) String() string

type ProtoTrimDepths

type ProtoTrimDepths struct {
	TrimDepths map[uint32]uint64 `` /* 181-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ProtoTrimDepths) Descriptor deprecated

func (*ProtoTrimDepths) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTrimDepths.ProtoReflect.Descriptor instead.

func (*ProtoTrimDepths) GetTrimDepths

func (x *ProtoTrimDepths) GetTrimDepths() map[uint32]uint64

func (*ProtoTrimDepths) ProtoMessage

func (*ProtoTrimDepths) ProtoMessage()

func (*ProtoTrimDepths) ProtoReflect

func (x *ProtoTrimDepths) ProtoReflect() protoreflect.Message

func (*ProtoTrimDepths) Reset

func (x *ProtoTrimDepths) Reset()

func (*ProtoTrimDepths) String

func (x *ProtoTrimDepths) String() string

type ProtoTxIn

type ProtoTxIn struct {
	PreviousOutPoint *ProtoOutPoint `protobuf:"bytes,1,opt,name=previous_out_point,json=previousOutPoint,proto3,oneof" json:"previous_out_point,omitempty"`
	PubKey           []byte         `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3,oneof" json:"pub_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoTxIn) Descriptor deprecated

func (*ProtoTxIn) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTxIn.ProtoReflect.Descriptor instead.

func (*ProtoTxIn) GetPreviousOutPoint

func (x *ProtoTxIn) GetPreviousOutPoint() *ProtoOutPoint

func (*ProtoTxIn) GetPubKey

func (x *ProtoTxIn) GetPubKey() []byte

func (*ProtoTxIn) ProtoMessage

func (*ProtoTxIn) ProtoMessage()

func (*ProtoTxIn) ProtoReflect

func (x *ProtoTxIn) ProtoReflect() protoreflect.Message

func (*ProtoTxIn) Reset

func (x *ProtoTxIn) Reset()

func (*ProtoTxIn) String

func (x *ProtoTxIn) String() string

type ProtoTxIns

type ProtoTxIns struct {
	TxIns []*ProtoTxIn `protobuf:"bytes,1,rep,name=tx_ins,json=txIns,proto3" json:"tx_ins,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoTxIns) Descriptor deprecated

func (*ProtoTxIns) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTxIns.ProtoReflect.Descriptor instead.

func (*ProtoTxIns) GetTxIns

func (x *ProtoTxIns) GetTxIns() []*ProtoTxIn

func (*ProtoTxIns) ProtoMessage

func (*ProtoTxIns) ProtoMessage()

func (*ProtoTxIns) ProtoReflect

func (x *ProtoTxIns) ProtoReflect() protoreflect.Message

func (*ProtoTxIns) Reset

func (x *ProtoTxIns) Reset()

func (*ProtoTxIns) String

func (x *ProtoTxIns) String() string

type ProtoTxOut

type ProtoTxOut struct {
	Denomination *uint32 `protobuf:"varint,1,opt,name=denomination,proto3,oneof" json:"denomination,omitempty"`
	Address      []byte  `protobuf:"bytes,2,opt,name=address,proto3,oneof" json:"address,omitempty"`
	Lock         []byte  `protobuf:"bytes,3,opt,name=lock,proto3,oneof" json:"lock,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoTxOut) Descriptor deprecated

func (*ProtoTxOut) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTxOut.ProtoReflect.Descriptor instead.

func (*ProtoTxOut) GetAddress

func (x *ProtoTxOut) GetAddress() []byte

func (*ProtoTxOut) GetDenomination

func (x *ProtoTxOut) GetDenomination() uint32

func (*ProtoTxOut) GetLock

func (x *ProtoTxOut) GetLock() []byte

func (*ProtoTxOut) ProtoMessage

func (*ProtoTxOut) ProtoMessage()

func (*ProtoTxOut) ProtoReflect

func (x *ProtoTxOut) ProtoReflect() protoreflect.Message

func (*ProtoTxOut) Reset

func (x *ProtoTxOut) Reset()

func (*ProtoTxOut) String

func (x *ProtoTxOut) String() string

type ProtoTxOuts

type ProtoTxOuts struct {
	TxOuts []*ProtoTxOut `protobuf:"bytes,1,rep,name=tx_outs,json=txOuts,proto3" json:"tx_outs,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoTxOuts) Descriptor deprecated

func (*ProtoTxOuts) Descriptor() ([]byte, []int)

Deprecated: Use ProtoTxOuts.ProtoReflect.Descriptor instead.

func (*ProtoTxOuts) GetTxOuts

func (x *ProtoTxOuts) GetTxOuts() []*ProtoTxOut

func (*ProtoTxOuts) ProtoMessage

func (*ProtoTxOuts) ProtoMessage()

func (*ProtoTxOuts) ProtoReflect

func (x *ProtoTxOuts) ProtoReflect() protoreflect.Message

func (*ProtoTxOuts) Reset

func (x *ProtoTxOuts) Reset()

func (*ProtoTxOuts) String

func (x *ProtoTxOuts) String() string

type ProtoUnlock

type ProtoUnlock struct {
	Value   []byte               `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Address *common.ProtoAddress `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoUnlock) Descriptor deprecated

func (*ProtoUnlock) Descriptor() ([]byte, []int)

Deprecated: Use ProtoUnlock.ProtoReflect.Descriptor instead.

func (*ProtoUnlock) GetAddress

func (x *ProtoUnlock) GetAddress() *common.ProtoAddress

func (*ProtoUnlock) GetValue

func (x *ProtoUnlock) GetValue() []byte

func (*ProtoUnlock) ProtoMessage

func (*ProtoUnlock) ProtoMessage()

func (*ProtoUnlock) ProtoReflect

func (x *ProtoUnlock) ProtoReflect() protoreflect.Message

func (*ProtoUnlock) Reset

func (x *ProtoUnlock) Reset()

func (*ProtoUnlock) String

func (x *ProtoUnlock) String() string

type ProtoUnlocks

type ProtoUnlocks struct {
	Unlocks []*ProtoUnlock `protobuf:"bytes,1,rep,name=unlocks,proto3" json:"unlocks,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoUnlocks) Descriptor deprecated

func (*ProtoUnlocks) Descriptor() ([]byte, []int)

Deprecated: Use ProtoUnlocks.ProtoReflect.Descriptor instead.

func (*ProtoUnlocks) GetUnlocks

func (x *ProtoUnlocks) GetUnlocks() []*ProtoUnlock

func (*ProtoUnlocks) ProtoMessage

func (*ProtoUnlocks) ProtoMessage()

func (*ProtoUnlocks) ProtoReflect

func (x *ProtoUnlocks) ProtoReflect() protoreflect.Message

func (*ProtoUnlocks) Reset

func (x *ProtoUnlocks) Reset()

func (*ProtoUnlocks) String

func (x *ProtoUnlocks) String() string

type ProtoWorkObject

type ProtoWorkObject struct {
	WoHeader *ProtoWorkObjectHeader `protobuf:"bytes,1,opt,name=wo_header,json=woHeader,proto3,oneof" json:"wo_header,omitempty"`
	WoBody   *ProtoWorkObjectBody   `protobuf:"bytes,2,opt,name=wo_body,json=woBody,proto3,oneof" json:"wo_body,omitempty"`
	Tx       *ProtoTransaction      `protobuf:"bytes,3,opt,name=tx,proto3,oneof" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoWorkObject) Descriptor deprecated

func (*ProtoWorkObject) Descriptor() ([]byte, []int)

Deprecated: Use ProtoWorkObject.ProtoReflect.Descriptor instead.

func (*ProtoWorkObject) GetTx

func (x *ProtoWorkObject) GetTx() *ProtoTransaction

func (*ProtoWorkObject) GetWoBody

func (x *ProtoWorkObject) GetWoBody() *ProtoWorkObjectBody

func (*ProtoWorkObject) GetWoHeader

func (x *ProtoWorkObject) GetWoHeader() *ProtoWorkObjectHeader

func (*ProtoWorkObject) ProtoMessage

func (*ProtoWorkObject) ProtoMessage()

func (*ProtoWorkObject) ProtoReflect

func (x *ProtoWorkObject) ProtoReflect() protoreflect.Message

func (*ProtoWorkObject) Reset

func (x *ProtoWorkObject) Reset()

func (*ProtoWorkObject) String

func (x *ProtoWorkObject) String() string

type ProtoWorkObjectBlockView

type ProtoWorkObjectBlockView struct {
	WorkObject *ProtoWorkObject `protobuf:"bytes,1,opt,name=work_object,json=workObject,proto3,oneof" json:"work_object,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoWorkObjectBlockView) Descriptor deprecated

func (*ProtoWorkObjectBlockView) Descriptor() ([]byte, []int)

Deprecated: Use ProtoWorkObjectBlockView.ProtoReflect.Descriptor instead.

func (*ProtoWorkObjectBlockView) GetWorkObject

func (x *ProtoWorkObjectBlockView) GetWorkObject() *ProtoWorkObject

func (*ProtoWorkObjectBlockView) ProtoMessage

func (*ProtoWorkObjectBlockView) ProtoMessage()

func (*ProtoWorkObjectBlockView) ProtoReflect

func (x *ProtoWorkObjectBlockView) ProtoReflect() protoreflect.Message

func (*ProtoWorkObjectBlockView) Reset

func (x *ProtoWorkObjectBlockView) Reset()

func (*ProtoWorkObjectBlockView) String

func (x *ProtoWorkObjectBlockView) String() string

type ProtoWorkObjectBlocksView

type ProtoWorkObjectBlocksView struct {
	WorkObjects []*ProtoWorkObjectBlockView `protobuf:"bytes,1,rep,name=work_objects,json=workObjects,proto3" json:"work_objects,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoWorkObjectBlocksView) Descriptor deprecated

func (*ProtoWorkObjectBlocksView) Descriptor() ([]byte, []int)

Deprecated: Use ProtoWorkObjectBlocksView.ProtoReflect.Descriptor instead.

func (*ProtoWorkObjectBlocksView) GetWorkObjects

func (x *ProtoWorkObjectBlocksView) GetWorkObjects() []*ProtoWorkObjectBlockView

func (*ProtoWorkObjectBlocksView) ProtoMessage

func (*ProtoWorkObjectBlocksView) ProtoMessage()

func (*ProtoWorkObjectBlocksView) ProtoReflect

func (*ProtoWorkObjectBlocksView) Reset

func (x *ProtoWorkObjectBlocksView) Reset()

func (*ProtoWorkObjectBlocksView) String

func (x *ProtoWorkObjectBlocksView) String() string

type ProtoWorkObjectBody

type ProtoWorkObjectBody struct {
	Header          *ProtoHeader            `protobuf:"bytes,1,opt,name=header,proto3,oneof" json:"header,omitempty"`
	Transactions    *ProtoTransactions      `protobuf:"bytes,2,opt,name=transactions,proto3,oneof" json:"transactions,omitempty"`
	Uncles          *ProtoWorkObjectHeaders `protobuf:"bytes,3,opt,name=uncles,proto3,oneof" json:"uncles,omitempty"`
	OutboundEtxs    *ProtoTransactions      `protobuf:"bytes,4,opt,name=outbound_etxs,json=outboundEtxs,proto3,oneof" json:"outbound_etxs,omitempty"`
	Manifest        *ProtoManifest          `protobuf:"bytes,5,opt,name=manifest,proto3,oneof" json:"manifest,omitempty"`
	InterlinkHashes *common.ProtoHashes     `protobuf:"bytes,6,opt,name=interlink_hashes,json=interlinkHashes,proto3,oneof" json:"interlink_hashes,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoWorkObjectBody) Descriptor deprecated

func (*ProtoWorkObjectBody) Descriptor() ([]byte, []int)

Deprecated: Use ProtoWorkObjectBody.ProtoReflect.Descriptor instead.

func (*ProtoWorkObjectBody) GetHeader

func (x *ProtoWorkObjectBody) GetHeader() *ProtoHeader

func (*ProtoWorkObjectBody) GetInterlinkHashes

func (x *ProtoWorkObjectBody) GetInterlinkHashes() *common.ProtoHashes

func (*ProtoWorkObjectBody) GetManifest

func (x *ProtoWorkObjectBody) GetManifest() *ProtoManifest

func (*ProtoWorkObjectBody) GetOutboundEtxs

func (x *ProtoWorkObjectBody) GetOutboundEtxs() *ProtoTransactions

func (*ProtoWorkObjectBody) GetTransactions

func (x *ProtoWorkObjectBody) GetTransactions() *ProtoTransactions

func (*ProtoWorkObjectBody) GetUncles

func (*ProtoWorkObjectBody) ProtoMessage

func (*ProtoWorkObjectBody) ProtoMessage()

func (*ProtoWorkObjectBody) ProtoReflect

func (x *ProtoWorkObjectBody) ProtoReflect() protoreflect.Message

func (*ProtoWorkObjectBody) Reset

func (x *ProtoWorkObjectBody) Reset()

func (*ProtoWorkObjectBody) String

func (x *ProtoWorkObjectBody) String() string

type ProtoWorkObjectHeader

type ProtoWorkObjectHeader struct {
	HeaderHash          *common.ProtoHash     `protobuf:"bytes,1,opt,name=header_hash,json=headerHash,proto3,oneof" json:"header_hash,omitempty"`
	ParentHash          *common.ProtoHash     `protobuf:"bytes,2,opt,name=parent_hash,json=parentHash,proto3,oneof" json:"parent_hash,omitempty"`
	Number              []byte                `protobuf:"bytes,3,opt,name=number,proto3,oneof" json:"number,omitempty"`
	Difficulty          []byte                `protobuf:"bytes,4,opt,name=difficulty,proto3,oneof" json:"difficulty,omitempty"`
	TxHash              *common.ProtoHash     `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3,oneof" json:"tx_hash,omitempty"`
	Nonce               *uint64               `protobuf:"varint,6,opt,name=nonce,proto3,oneof" json:"nonce,omitempty"`
	Location            *common.ProtoLocation `protobuf:"bytes,7,opt,name=location,proto3,oneof" json:"location,omitempty"`
	MixHash             *common.ProtoHash     `protobuf:"bytes,8,opt,name=mix_hash,json=mixHash,proto3,oneof" json:"mix_hash,omitempty"`
	Time                *uint64               `protobuf:"varint,9,opt,name=time,proto3,oneof" json:"time,omitempty"`
	PrimeTerminusNumber []byte                `` /* 127-byte string literal not displayed */
	Lock                *uint32               `protobuf:"varint,11,opt,name=lock,proto3,oneof" json:"lock,omitempty"`
	PrimaryCoinbase     *common.ProtoAddress  `protobuf:"bytes,12,opt,name=primary_coinbase,json=primaryCoinbase,proto3,oneof" json:"primary_coinbase,omitempty"`
	Data                []byte                `protobuf:"bytes,13,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoWorkObjectHeader) Descriptor deprecated

func (*ProtoWorkObjectHeader) Descriptor() ([]byte, []int)

Deprecated: Use ProtoWorkObjectHeader.ProtoReflect.Descriptor instead.

func (*ProtoWorkObjectHeader) GetData

func (x *ProtoWorkObjectHeader) GetData() []byte

func (*ProtoWorkObjectHeader) GetDifficulty

func (x *ProtoWorkObjectHeader) GetDifficulty() []byte

func (*ProtoWorkObjectHeader) GetHeaderHash

func (x *ProtoWorkObjectHeader) GetHeaderHash() *common.ProtoHash

func (*ProtoWorkObjectHeader) GetLocation

func (x *ProtoWorkObjectHeader) GetLocation() *common.ProtoLocation

func (*ProtoWorkObjectHeader) GetLock

func (x *ProtoWorkObjectHeader) GetLock() uint32

func (*ProtoWorkObjectHeader) GetMixHash

func (x *ProtoWorkObjectHeader) GetMixHash() *common.ProtoHash

func (*ProtoWorkObjectHeader) GetNonce

func (x *ProtoWorkObjectHeader) GetNonce() uint64

func (*ProtoWorkObjectHeader) GetNumber

func (x *ProtoWorkObjectHeader) GetNumber() []byte

func (*ProtoWorkObjectHeader) GetParentHash

func (x *ProtoWorkObjectHeader) GetParentHash() *common.ProtoHash

func (*ProtoWorkObjectHeader) GetPrimaryCoinbase

func (x *ProtoWorkObjectHeader) GetPrimaryCoinbase() *common.ProtoAddress

func (*ProtoWorkObjectHeader) GetPrimeTerminusNumber

func (x *ProtoWorkObjectHeader) GetPrimeTerminusNumber() []byte

func (*ProtoWorkObjectHeader) GetTime

func (x *ProtoWorkObjectHeader) GetTime() uint64

func (*ProtoWorkObjectHeader) GetTxHash

func (x *ProtoWorkObjectHeader) GetTxHash() *common.ProtoHash

func (*ProtoWorkObjectHeader) ProtoMessage

func (*ProtoWorkObjectHeader) ProtoMessage()

func (*ProtoWorkObjectHeader) ProtoReflect

func (x *ProtoWorkObjectHeader) ProtoReflect() protoreflect.Message

func (*ProtoWorkObjectHeader) Reset

func (x *ProtoWorkObjectHeader) Reset()

func (*ProtoWorkObjectHeader) String

func (x *ProtoWorkObjectHeader) String() string

type ProtoWorkObjectHeaderView

type ProtoWorkObjectHeaderView struct {
	WorkObject *ProtoWorkObject `protobuf:"bytes,1,opt,name=work_object,json=workObject,proto3,oneof" json:"work_object,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoWorkObjectHeaderView) Descriptor deprecated

func (*ProtoWorkObjectHeaderView) Descriptor() ([]byte, []int)

Deprecated: Use ProtoWorkObjectHeaderView.ProtoReflect.Descriptor instead.

func (*ProtoWorkObjectHeaderView) GetWorkObject

func (x *ProtoWorkObjectHeaderView) GetWorkObject() *ProtoWorkObject

func (*ProtoWorkObjectHeaderView) ProtoMessage

func (*ProtoWorkObjectHeaderView) ProtoMessage()

func (*ProtoWorkObjectHeaderView) ProtoReflect

func (*ProtoWorkObjectHeaderView) Reset

func (x *ProtoWorkObjectHeaderView) Reset()

func (*ProtoWorkObjectHeaderView) String

func (x *ProtoWorkObjectHeaderView) String() string

type ProtoWorkObjectHeaders

type ProtoWorkObjectHeaders struct {
	WoHeaders []*ProtoWorkObjectHeader `protobuf:"bytes,1,rep,name=wo_headers,json=woHeaders,proto3" json:"wo_headers,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoWorkObjectHeaders) Descriptor deprecated

func (*ProtoWorkObjectHeaders) Descriptor() ([]byte, []int)

Deprecated: Use ProtoWorkObjectHeaders.ProtoReflect.Descriptor instead.

func (*ProtoWorkObjectHeaders) GetWoHeaders

func (x *ProtoWorkObjectHeaders) GetWoHeaders() []*ProtoWorkObjectHeader

func (*ProtoWorkObjectHeaders) ProtoMessage

func (*ProtoWorkObjectHeaders) ProtoMessage()

func (*ProtoWorkObjectHeaders) ProtoReflect

func (x *ProtoWorkObjectHeaders) ProtoReflect() protoreflect.Message

func (*ProtoWorkObjectHeaders) Reset

func (x *ProtoWorkObjectHeaders) Reset()

func (*ProtoWorkObjectHeaders) String

func (x *ProtoWorkObjectHeaders) String() string

type ProtoWorkObjectShareView

type ProtoWorkObjectShareView struct {
	WorkObject *ProtoWorkObject `protobuf:"bytes,1,opt,name=work_object,json=workObject,proto3,oneof" json:"work_object,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoWorkObjectShareView) Descriptor deprecated

func (*ProtoWorkObjectShareView) Descriptor() ([]byte, []int)

Deprecated: Use ProtoWorkObjectShareView.ProtoReflect.Descriptor instead.

func (*ProtoWorkObjectShareView) GetWorkObject

func (x *ProtoWorkObjectShareView) GetWorkObject() *ProtoWorkObject

func (*ProtoWorkObjectShareView) ProtoMessage

func (*ProtoWorkObjectShareView) ProtoMessage()

func (*ProtoWorkObjectShareView) ProtoReflect

func (x *ProtoWorkObjectShareView) ProtoReflect() protoreflect.Message

func (*ProtoWorkObjectShareView) Reset

func (x *ProtoWorkObjectShareView) Reset()

func (*ProtoWorkObjectShareView) String

func (x *ProtoWorkObjectShareView) String() string

type ProtoWorkObjects

type ProtoWorkObjects struct {
	WorkObjects []*ProtoWorkObject `protobuf:"bytes,1,rep,name=work_objects,json=workObjects,proto3" json:"work_objects,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtoWorkObjects) Descriptor deprecated

func (*ProtoWorkObjects) Descriptor() ([]byte, []int)

Deprecated: Use ProtoWorkObjects.ProtoReflect.Descriptor instead.

func (*ProtoWorkObjects) GetWorkObjects

func (x *ProtoWorkObjects) GetWorkObjects() []*ProtoWorkObject

func (*ProtoWorkObjects) ProtoMessage

func (*ProtoWorkObjects) ProtoMessage()

func (*ProtoWorkObjects) ProtoReflect

func (x *ProtoWorkObjects) ProtoReflect() protoreflect.Message

func (*ProtoWorkObjects) Reset

func (x *ProtoWorkObjects) Reset()

func (*ProtoWorkObjects) String

func (x *ProtoWorkObjects) String() string

type QiTx

type QiTx struct {
	ChainID *big.Int // replay protection
	TxIn    TxIns    `json:"txIns"`
	TxOut   TxOuts   `json:"txOuts"`

	Signature *schnorr.Signature
	Data      []byte // Data is currently only used for wrapping Qi in the EVM

	// Work fields
	ParentHash *common.Hash
	MixHash    *common.Hash
	WorkNonce  *BlockNonce
}

type QuaiTx

type QuaiTx struct {
	ChainID    *big.Int
	Nonce      uint64
	GasPrice   *big.Int
	Gas        uint64
	To         *common.Address `rlp:"nilString"` // nil means contract creation
	Value      *big.Int
	Data       []byte
	AccessList AccessList

	// Signature values
	V *big.Int `json:"v" gencodec:"required"`
	R *big.Int `json:"r" gencodec:"required"`
	S *big.Int `json:"s" gencodec:"required"`

	// Work fields
	ParentHash *common.Hash
	MixHash    *common.Hash
	WorkNonce  *BlockNonce
}

type RPCTxIn

type RPCTxIn struct {
	PreviousOutPoint OutpointJSON  `json:"previousOutPoint"`
	PubKey           hexutil.Bytes `json:"pubKey"`
}

type RPCTxOut

type RPCTxOut struct {
	Denomination hexutil.Uint            `json:"denomination"`
	Address      common.MixedcaseAddress `json:"address"`
	Lock         *hexutil.Big            `json:"lock"`
}

type Receipt

type Receipt struct {
	// Consensus fields: These fields are defined by the Yellow Paper
	Type              uint8  `json:"type,omitempty"`
	PostState         []byte `json:"root"`
	Status            uint64 `json:"status"`
	CumulativeGasUsed uint64 `json:"cumulativeGasUsed" gencodec:"required"`
	Bloom             Bloom  `json:"logsBloom"         gencodec:"required"`
	Logs              Logs   `json:"logs"              gencodec:"required"`

	// Implementation fields: These fields are added by quai when processing a transaction.
	// They are stored in the chain database.
	TxHash          common.Hash    `json:"transactionHash" gencodec:"required"`
	ContractAddress common.Address `json:"contractAddress"`
	GasUsed         uint64         `json:"gasUsed" gencodec:"required"`

	// Inclusion information: These fields provide information about the inclusion of the
	// transaction corresponding to this receipt.
	BlockHash        common.Hash  `json:"blockHash,omitempty"`
	BlockNumber      *big.Int     `json:"blockNumber,omitempty"`
	TransactionIndex uint         `json:"transactionIndex"`
	OutboundEtxs     Transactions `json:"outboundEtxs"`

	// Cached values: These fields are used to cache values that are expensive to compute and are not stored in the database.
	CoinbaseLockupDeletedHashes []*common.Hash
	CoinbaseLockupsDeleted      map[[47]byte][]byte
}

Receipt represents the results of a transaction.

func NewReceipt

func NewReceipt(root []byte, failed bool, cumulativeGasUsed uint64) *Receipt

NewReceipt creates a barebone transaction receipt, copying the init fields. Deprecated: create receipts using a struct literal instead.

func (*Receipt) DecodeRLP

func (r *Receipt) DecodeRLP(s *rlp.Stream) error

DecodeRLP implements rlp.Decoder, and loads the consensus fields of a receipt from an RLP stream.

func (*Receipt) EncodeRLP

func (r *Receipt) EncodeRLP(w io.Writer) error

EncodeRLP implements rlp.Encoder, and flattens the consensus fields of a receipt into an RLP stream.

func (Receipt) MarshalJSON

func (r Receipt) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*Receipt) Size

func (r *Receipt) Size() common.StorageSize

Size returns the approximate memory used by all internal contents. It is used to approximate and limit the memory consumption of various caches.

func (Receipt) Supported

func (r Receipt) Supported() bool

Supported returns true if the receipt type is supported

func (*Receipt) UnmarshalJSON

func (r *Receipt) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

type ReceiptForStorage

type ReceiptForStorage Receipt

ReceiptForStorage is a wrapper around a Receipt that flattens and parses the entire content of a receipt, as opposed to only the consensus fields originally.

func (*ReceiptForStorage) DecodeRLP

func (r *ReceiptForStorage) DecodeRLP(s *rlp.Stream) error

DecodeRLP implements rlp.Decoder, and loads both consensus and implementation fields of a receipt from an RLP stream.

func (*ReceiptForStorage) EncodeRLP

func (r *ReceiptForStorage) EncodeRLP(w io.Writer) error

EncodeRLP implements rlp.Encoder, and flattens all content fields of a receipt into an RLP stream.

func (*ReceiptForStorage) ProtoDecode

func (r *ReceiptForStorage) ProtoDecode(protoReceipt *ProtoReceiptForStorage, location common.Location) error

func (*ReceiptForStorage) ProtoEncode

func (r *ReceiptForStorage) ProtoEncode() (*ProtoReceiptForStorage, error)

type Receipts

type Receipts []*Receipt

Receipts implements DerivableList for receipts.

func (Receipts) Bytes

func (rs Receipts) Bytes(logger *logrus.Logger) []byte

Convert the receipts into their storage form and serialize them

func (Receipts) DeriveFields

func (r Receipts) DeriveFields(config *params.ChainConfig, hash common.Hash, number uint64, txs Transactions) error

DeriveFields fills the receipts with their computed fields based on consensus data and contextual infos like containing block and transactions.

func (Receipts) EncodeIndex

func (rs Receipts) EncodeIndex(i int, w *bytes.Buffer)

EncodeIndex encodes the i'th receipt to w.

func (Receipts) Len

func (rs Receipts) Len() int

Len returns the number of receipts in this list.

type ReceiptsForStorage

type ReceiptsForStorage []*ReceiptForStorage

ReceiptsForStorage is a list of ReceiptForStorage.

func (*ReceiptsForStorage) ProtoDecode

func (rs *ReceiptsForStorage) ProtoDecode(protoReceipts *ProtoReceiptsForStorage, location common.Location) error

ProtoDecode converts the protobuf to a receipts representation.

func (ReceiptsForStorage) ProtoEncode

func (rs ReceiptsForStorage) ProtoEncode() (*ProtoReceiptsForStorage, error)

ProtoEncode converts the receipts to a protobuf representation.

type Signer

type Signer interface {
	// Sender returns the sender address of the transaction.
	Sender(tx *Transaction) (common.Address, error)

	// SignatureValues returns the raw R, S, V values corresponding to the
	// given signature.
	SignatureValues(tx *Transaction, sig []byte) (r, s, v *big.Int, err error)
	ChainID() *big.Int

	// Hash returns 'signature hash', i.e. the transaction hash that is signed by the
	// private key. This hash does not uniquely identify the transaction.
	Hash(tx *Transaction) common.Hash

	// Equal returns true if the given signer is the same as the receiver.
	Equal(Signer) bool

	Location() common.Location
}

Signer encapsulates transaction signature handling. The name of this type is slightly misleading because Signers don't actually sign, they're just for validating and processing of signatures.

func LatestSigner

func LatestSigner(config *params.ChainConfig) Signer

LatestSigner returns the 'most permissive' Signer available for the given chain configuration. Use this in transaction-handling code where the current block number is unknown. If you have the current block number available, use MakeSigner instead.

func LatestSignerForChainID

func LatestSignerForChainID(chainID *big.Int, nodeLocation common.Location) Signer

LatestSigner returns the 'most permissive' Signer available for the given chain configuration. Use this in transaction-handling code where the current block number is unknown. If you have the current block number available, use MakeSigner instead.

Use this in transaction-handling code where the current block number and fork configuration are unknown. If you have a ChainConfig, use LatestSigner instead. If you have a ChainConfig and know the current block number, use MakeSigner instead.

func MakeSigner

func MakeSigner(config *params.ChainConfig, blockNumber *big.Int) Signer

MakeSigner returns a Signer based on the given chain config and block number.

func NewSigner

func NewSigner(chainId *big.Int, nodeLocation common.Location) Signer

NewSigner instantiates a new signer object

type SignerV1

type SignerV1 struct {
	// contains filtered or unexported fields
}

SignerV1 is the mainnet launch version of the signer module. Future versions may be defined if protocol changes are required

func (SignerV1) ChainID

func (s SignerV1) ChainID() *big.Int

func (SignerV1) Equal

func (s SignerV1) Equal(s2 Signer) bool

func (SignerV1) Hash

func (s SignerV1) Hash(tx *Transaction) (h common.Hash)

Hash returns the hash to be signed by the sender. It does not uniquely identify the transaction.

func (SignerV1) Location

func (s SignerV1) Location() common.Location

func (SignerV1) Sender

func (s SignerV1) Sender(tx *Transaction) (common.Address, error)

func (SignerV1) SignatureValues

func (s SignerV1) SignatureValues(tx *Transaction, sig []byte) (R, S, V *big.Int, err error)

type SpentTxOut

type SpentTxOut struct {
	// Amount is the amount of the output.
	Denomination uint8

	// Address is the output holder's address.
	Address []byte

	// Height is the height of the block containing the creating tx.
	Height uint64

	// Denotes if the creating tx is a coinbase.
	IsCoinBase bool
}

SpentTxOut contains a spent transaction output and potentially additional contextual information such as whether or not it was contained in a coinbase transaction, the version of the transaction it was contained in, and which block height the containing transaction was included in. As described in the comments above, the additional contextual information will only be valid when this spent txout is spending the last unspent output of the containing transaction.

type SpentUtxoEntry

type SpentUtxoEntry struct {
	OutPoint
	*UtxoEntry
}

SpentUtxoEntry houses details about a spent UtxoEntry.

func (*SpentUtxoEntry) ProtoDecode

func (sutxo *SpentUtxoEntry) ProtoDecode(protoSpentUtxoEntry *ProtoSpentUTXO) error

func (*SpentUtxoEntry) ProtoEncode

func (sutxo *SpentUtxoEntry) ProtoEncode() (*ProtoSpentUTXO, error)

type Termini

type Termini struct {
	// contains filtered or unexported fields
}

Termini stores the dom terminus (i.e the previous dom block) and subTermini(i.e the dom blocks that have occured in the subordinate chains)

func CopyTermini

func CopyTermini(termini Termini) Termini

func EmptyTermini

func EmptyTermini() Termini

func (Termini) DomTermini

func (t Termini) DomTermini() []common.Hash

func (Termini) DomTerminiAtIndex

func (t Termini) DomTerminiAtIndex(index int) common.Hash

func (Termini) DomTerminus

func (t Termini) DomTerminus(nodeLocation common.Location) common.Hash

func (*Termini) IsValid

func (t *Termini) IsValid() bool

func (Termini) MarshalJSON

func (t Termini) MarshalJSON() ([]byte, error)

func (*Termini) ProtoDecode

func (t *Termini) ProtoDecode(protoTermini *ProtoTermini) error

ProtoDecode deserializes th ProtoTermini into the Termini format

func (Termini) ProtoEncode

func (t Termini) ProtoEncode() *ProtoTermini

ProtoEncode serializes t into the Quai Proto Termini format

func (Termini) RPCMarshalTermini

func (t Termini) RPCMarshalTermini() map[string]interface{}

func (*Termini) SetDomTermini

func (t *Termini) SetDomTermini(domTermini []common.Hash)

func (*Termini) SetDomTerminiAtIndex

func (t *Termini) SetDomTerminiAtIndex(val common.Hash, index int)

func (*Termini) SetSubTermini

func (t *Termini) SetSubTermini(subTermini []common.Hash)

func (*Termini) SetSubTerminiAtIndex

func (t *Termini) SetSubTerminiAtIndex(val common.Hash, index int)

func (Termini) String

func (t Termini) String() string

func (Termini) SubTermini

func (t Termini) SubTermini() []common.Hash

func (Termini) SubTerminiAtIndex

func (t Termini) SubTerminiAtIndex(index int) common.Hash

func (*Termini) UnmarshalJSON

func (t *Termini) UnmarshalJSON(input []byte) error

type TokenChoiceSet

type TokenChoiceSet [C_tokenChoiceSetSize]TokenChoices

func NewTokenChoiceSet

func NewTokenChoiceSet() TokenChoiceSet

func (*TokenChoiceSet) ProtoDecode

func (tcs *TokenChoiceSet) ProtoDecode(protoSet *ProtoTokenChoiceSet) error

func (*TokenChoiceSet) ProtoEncode

func (tcs *TokenChoiceSet) ProtoEncode() (*ProtoTokenChoiceSet, error)

type TokenChoices

type TokenChoices struct {
	Quai uint64
	Qi   uint64
	Diff *big.Int
}

type Transaction

type Transaction struct {
	// contains filtered or unexported fields
}

Transaction can be a Quai, Qi, or External transaction.

func MustSignNewTx

func MustSignNewTx(prv *ecdsa.PrivateKey, s Signer, txdata TxData) *Transaction

MustSignNewTx creates a transaction and signs it. This panics if the transaction cannot be signed.

func NewEmptyQuaiTx

func NewEmptyQuaiTx() *Transaction

func NewTx

func NewTx(inner TxData) *Transaction

NewTx creates a new transaction.

func SignNewTx

func SignNewTx(prv *ecdsa.PrivateKey, s Signer, txdata TxData) (*Transaction, error)

SignNewTx creates a transaction and signs it.

func SignTx

func SignTx(tx *Transaction, s Signer, prv *ecdsa.PrivateKey) (*Transaction, error)

SignTx signs the transaction using the given signer and private key.

func (*Transaction) AccessList

func (tx *Transaction) AccessList() AccessList

AccessList returns the access list of the transaction.

func (*Transaction) AsMessage

func (tx *Transaction) AsMessage(s Signer, baseFee *big.Int) (Message, error)

AsMessage returns the transaction as a core.Message.

func (*Transaction) AsMessageWithSender

func (tx *Transaction) AsMessageWithSender(s Signer, baseFee *big.Int, sender *common.InternalAddress) (Message, error)

AsMessageWithSender returns the transaction as a core.Message.

func (*Transaction) ChainId

func (tx *Transaction) ChainId() *big.Int

ChainId returns the chain ID of the transaction. The return value will always be non-nil.

func (*Transaction) CompareFee

func (tx *Transaction) CompareFee(newFee *big.Int) int

CompareFee compares new fee and the tx.Fee() two transactions and returns the output of bigInt Cmp method

func (*Transaction) Cost

func (tx *Transaction) Cost() *big.Int

Cost returns gas * gasPrice + value.

func (*Transaction) Data

func (tx *Transaction) Data() []byte

Data returns the input data of the transaction.

func (*Transaction) DecodeRLP

func (tx *Transaction) DecodeRLP(s *rlp.Stream) error

DecodeRLP implements rlp.Decoder

func (*Transaction) ETXIndex

func (tx *Transaction) ETXIndex() uint16

func (*Transaction) ETXSender

func (tx *Transaction) ETXSender() common.Address

func (*Transaction) EncodeRLP

func (tx *Transaction) EncodeRLP(w io.Writer) error

EncodeRLP implements rlp.Encoder

func (*Transaction) EtxType

func (tx *Transaction) EtxType() uint64

EtxType returns the type of etx

func (*Transaction) From

func (tx *Transaction) From(nodeLocation common.Location) *common.Address

func (*Transaction) FromChain

func (tx *Transaction) FromChain(nodeLocation common.Location) common.Location

FromChain returns the chain location this transaction originated from

func (*Transaction) Gas

func (tx *Transaction) Gas() uint64

Gas returns the gas limit of the transaction.

func (*Transaction) GasPrice

func (tx *Transaction) GasPrice() *big.Int

GasPrice returns the gas price of the transaction.

func (*Transaction) GetEcdsaSignatureValues

func (tx *Transaction) GetEcdsaSignatureValues() (v, r, s *big.Int)

GetEcdsaSignatureValues returns the V, R, S signature values of the transaction. The return values should not be modified by the caller.

func (*Transaction) GetSchnorrSignature

func (tx *Transaction) GetSchnorrSignature() *schnorr.Signature

func (*Transaction) Hash

func (tx *Transaction) Hash(location ...byte) (h common.Hash)

Hash returns the transaction hash.

func (*Transaction) IsLocal

func (tx *Transaction) IsLocal() bool

func (*Transaction) MarshalBinary

func (tx *Transaction) MarshalBinary() ([]byte, error)

MarshalBinary returns the canonical encoding of the transaction.

func (*Transaction) MarshalJSON

func (t *Transaction) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON with a hash.

func (*Transaction) MixHash

func (tx *Transaction) MixHash() *common.Hash

func (*Transaction) Nonce

func (tx *Transaction) Nonce() uint64

Nonce returns the sender account nonce of the transaction.

func (*Transaction) OriginatingTxHash

func (tx *Transaction) OriginatingTxHash() common.Hash

func (*Transaction) ParentHash

func (tx *Transaction) ParentHash() *common.Hash

func (*Transaction) ProtoDecode

func (tx *Transaction) ProtoDecode(protoTx *ProtoTransaction, location common.Location) error

ProtoDecode deserializes the ProtoTransaction into the Transaction format

func (*Transaction) ProtoEncode

func (tx *Transaction) ProtoEncode() (*ProtoTransaction, error)

ProtoEncode serializes tx into the Quai Proto Transaction format

func (*Transaction) ProtoEncodeTxSigningData

func (tx *Transaction) ProtoEncodeTxSigningData() *ProtoTransaction

func (*Transaction) SetFrom

func (tx *Transaction) SetFrom(from common.Address, signer Signer)

func (*Transaction) SetInner

func (tx *Transaction) SetInner(inner TxData)

func (*Transaction) SetLocal

func (tx *Transaction) SetLocal(local bool)

func (*Transaction) SetTo

func (tx *Transaction) SetTo(addr common.Address)

func (*Transaction) SetValue

func (tx *Transaction) SetValue(value *big.Int)

func (*Transaction) Size

func (tx *Transaction) Size() common.StorageSize

Size returns the true RLP encoded storage size of the transaction, either by encoding and returning it, or returning a previously cached value.

func (*Transaction) Time

func (tx *Transaction) Time() time.Time

func (*Transaction) To

func (tx *Transaction) To() *common.Address

To returns the recipient address of the transaction. For contract-creation transactions, To returns nil.

func (*Transaction) TxIn

func (tx *Transaction) TxIn() TxIns

func (*Transaction) TxOut

func (tx *Transaction) TxOut() TxOuts

func (*Transaction) Type

func (tx *Transaction) Type() uint8

Type returns the transaction type.

func (*Transaction) UnmarshalBinary

func (tx *Transaction) UnmarshalBinary(b []byte) error

UnmarshalBinary decodes the canonical encoding of transactions.

func (*Transaction) UnmarshalJSON

func (t *Transaction) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

func (*Transaction) Value

func (tx *Transaction) Value() *big.Int

Value returns the ether amount of the transaction.

func (*Transaction) WithSignature

func (tx *Transaction) WithSignature(signer Signer, sig []byte) (*Transaction, error)

WithSignature returns a new transaction with the given signature. This signature needs to be in the [R || S || V] format where V is 0 or 1.

func (*Transaction) WorkNonce

func (tx *Transaction) WorkNonce() *BlockNonce

type Transactions

type Transactions []*Transaction

Transactions implements DerivableList for transactions.

func TxDifference

func TxDifference(a, b Transactions) Transactions

TxDifference returns a new set which is the difference between a and b.

func TxDifferenceWithoutETXs

func TxDifferenceWithoutETXs(a, b Transactions) Transactions

TxDifference returns a new set which is the difference between a and b without including ETXs.

func (Transactions) EncodeIndex

func (s Transactions) EncodeIndex(i int, w *bytes.Buffer)

EncodeIndex encodes the i'th transaction to w. Note that this does not check for errors because we assume that *Transaction will only ever contain valid txs that were either constructed by decoding or via public API in this package.

func (Transactions) FilterToLocation

func (s Transactions) FilterToLocation(l common.Location) Transactions

FilterByLocation returns the subset of transactions with a 'to' address which belongs the given chain location

func (Transactions) FilterToSub

func (s Transactions) FilterToSub(slice common.Location, nodeCtx int, order int) Transactions

FilterToSlice returns the subset of transactions with a 'to' address which belongs to the given sub location, at or above the given minimum context

func (Transactions) Len

func (s Transactions) Len() int

Len returns the length of s.

func (*Transactions) ProtoDecode

func (s *Transactions) ProtoDecode(transactions *ProtoTransactions, location common.Location) error

ProtoDecode decodes the ProtoTransactions into the Transactions format

func (Transactions) ProtoEncode

func (s Transactions) ProtoEncode() (*ProtoTransactions, error)

ProtoEncode encodes the transactions to the ProtoTransactions format

type TransactionsByPriceAndNonce

type TransactionsByPriceAndNonce struct {
	// contains filtered or unexported fields
}

TransactionsByPriceAndNonce represents a set of transactions that can return transactions in a profit-maximizing sorted order, while supporting removing entire batches of transactions for non-executable accounts.

func NewTransactionsByPriceAndNonce

func NewTransactionsByPriceAndNonce(signer Signer, qiTxs []*TxWithMinerFee, txs map[common.AddressBytes]Transactions) *TransactionsByPriceAndNonce

NewTransactionsByPriceAndNonce creates a transaction set that can retrieve price sorted transactions in a nonce-honouring way.

Note, the input map is reowned so the caller should not interact any more with if after providing it to the constructor.

func (*TransactionsByPriceAndNonce) Peek

Peek returns the next transaction by price.

func (*TransactionsByPriceAndNonce) PopNoSort

func (t *TransactionsByPriceAndNonce) PopNoSort()

Pop the first transaction without sorting

type TrieHasher

type TrieHasher interface {
	Reset()
	Update([]byte, []byte)
	Hash() common.Hash
}

TrieHasher is the tool used to calculate the hash of derivable list. This is internal, do not use.

type TxByNonce

type TxByNonce Transactions

TxByNonce implements the sort interface to allow sorting a list of transactions by their nonces. This is usually only useful for sorting transactions from a single account, otherwise a nonce comparison doesn't make much sense.

func (TxByNonce) Len

func (s TxByNonce) Len() int

func (TxByNonce) Less

func (s TxByNonce) Less(i, j int) bool

func (TxByNonce) Swap

func (s TxByNonce) Swap(i, j int)

type TxByPriceAndTime

type TxByPriceAndTime []*TxWithMinerFee

TxByPriceAndTime implements both the sort and the heap interface, making it useful for all at once sorting as well as individually adding and removing elements.

func (TxByPriceAndTime) Len

func (s TxByPriceAndTime) Len() int

func (TxByPriceAndTime) Less

func (s TxByPriceAndTime) Less(i, j int) bool

func (*TxByPriceAndTime) Pop

func (s *TxByPriceAndTime) Pop() interface{}

func (*TxByPriceAndTime) Push

func (s *TxByPriceAndTime) Push(x interface{})

func (TxByPriceAndTime) Swap

func (s TxByPriceAndTime) Swap(i, j int)

type TxData

type TxData interface {
	// contains filtered or unexported methods
}

TxData is the underlying data of a transaction.

This is implemented by QuaiTx, ExternalTx, InternalToExternal, and QiTx.

func GetInnerForTesting

func GetInnerForTesting(tx *Transaction) TxData

This function must only be used by tests

type TxIn

type TxIn struct {
	PreviousOutPoint OutPoint `json:"previousOutPoint"`
	PubKey           []byte   `json:"pubKey"`
}

TxIn defines a Qi transaction input

func NewTxIn

func NewTxIn(prevOut *OutPoint, pubkey []byte, witness [][]byte) *TxIn

NewTxIn returns a new bitcoin transaction input with the provided previous outpoint point and signature script with a default sequence of MaxTxInSequenceNum.

func (*TxIn) ProtoDecode

func (txIn *TxIn) ProtoDecode(protoTxIn *ProtoTxIn) error

func (TxIn) ProtoEncode

func (txIn TxIn) ProtoEncode() (*ProtoTxIn, error)

type TxInJSON

type TxInJSON struct {
	PreviousOutPoint *OutpointJSON  `json:"previousOutPoint"`
	PubKey           *hexutil.Bytes `json:"pubkey"`
}

type TxIns

type TxIns []TxIn

func (*TxIns) ProtoDecode

func (txIns *TxIns) ProtoDecode(protoTxIns *ProtoTxIns) error

func (TxIns) ProtoEncode

func (txIns TxIns) ProtoEncode() (*ProtoTxIns, error)

type TxOut

type TxOut struct {
	Denomination uint8
	Address      []byte
	Lock         *big.Int // Block height the entry unlocks. 0 or nil = unlocked
}

TxOut defines a Qi transaction output.

func NewTxOut

func NewTxOut(denomination uint8, address []byte, lock *big.Int) *TxOut

NewTxOut returns a new Qi transaction output with the provided transaction value and address.

func (*TxOut) ProtoDecode

func (txOut *TxOut) ProtoDecode(protoTxOut *ProtoTxOut) error

func (TxOut) ProtoEncode

func (txOut TxOut) ProtoEncode() (*ProtoTxOut, error)

type TxOutJSON

type TxOutJSON struct {
	Address      *hexutil.Bytes  `json:"address"`
	Denomination *hexutil.Uint64 `json:"denomination"`
	Lock         *hexutil.Big    `json:"lock,omitempty"`
}

type TxOuts

type TxOuts []TxOut

func (*TxOuts) ProtoDecode

func (txOuts *TxOuts) ProtoDecode(protoTxOuts *ProtoTxOuts) error

func (TxOuts) ProtoEncode

func (txOuts TxOuts) ProtoEncode() (*ProtoTxOuts, error)

type TxWithMinerFee

type TxWithMinerFee struct {
	// contains filtered or unexported fields
}

TxWithMinerFee wraps a transaction with its gas price or effective miner gasTipCap

func NewTxWithMinerFee

func NewTxWithMinerFee(tx *Transaction, qiTxFee *big.Int, received time.Time) (*TxWithMinerFee, error)

NewTxWithMinerFee creates a wrapped transaction, calculating the effective miner gasTipCap if a base fee is provided. Returns error in case of a negative effective miner gasTipCap.

func (*TxWithMinerFee) MinerFee

func (tx *TxWithMinerFee) MinerFee() *big.Int

func (*TxWithMinerFee) Received

func (tx *TxWithMinerFee) Received() time.Time

func (*TxWithMinerFee) Tx

func (tx *TxWithMinerFee) Tx() *Transaction

type UtxoEntry

type UtxoEntry struct {
	Denomination uint8    `json:"denomination"`
	Address      []byte   `json:"address"` // The address of the output holder.
	Lock         *big.Int `json:"lock"`    // Block height the entry unlocks. 0 = unlocked
}

UtxoEntry houses details about an individual transaction output in a utxo view such as whether or not it was contained in a coinbase tx, the height of the block that contains the tx, whether or not it is spent, its public key script, and how much it pays.

func NewUtxoEntry

func NewUtxoEntry(txOut *TxOut) *UtxoEntry

NewUtxoEntry returns a new UtxoEntry built from the arguments.

func (*UtxoEntry) ProtoDecode

func (utxo *UtxoEntry) ProtoDecode(protoTxOut *ProtoTxOut) error

func (*UtxoEntry) ProtoEncode

func (utxo *UtxoEntry) ProtoEncode() (*ProtoTxOut, error)

func (*UtxoEntry) UnmarshalJSON

func (utxo *UtxoEntry) UnmarshalJSON(input []byte) error

type WireQiTx

type WireQiTx struct {
	ChainID   *big.Int // replay protection
	TxIn      TxIns
	TxOut     TxOuts
	Signature []byte
}

type WorkObject

type WorkObject struct {

	// These fields are used to track
	// inter-peer block relay.
	ReceivedAt   time.Time
	ReceivedFrom interface{}
	// contains filtered or unexported fields
}

func CopyWorkObject

func CopyWorkObject(wo *WorkObject) *WorkObject

func EmptyWorkObject

func EmptyWorkObject(nodeCtx int) *WorkObject

Construct an empty header

func EmptyZoneWorkObject

func EmptyZoneWorkObject() *WorkObject

func NewWorkObject

func NewWorkObject(woHeader *WorkObjectHeader, woBody *WorkObjectBody, tx *Transaction) *WorkObject

func NewWorkObjectWithHeader

func NewWorkObjectWithHeader(header *WorkObject, tx *Transaction, nodeCtx int, woType WorkObjectView) *WorkObject

func NewWorkObjectWithHeaderAndTx

func NewWorkObjectWithHeaderAndTx(header *WorkObjectHeader, tx *Transaction) *WorkObject

func (*WorkObject) AvgTxFees

func (wo *WorkObject) AvgTxFees() *big.Int

func (*WorkObject) BaseFee

func (wo *WorkObject) BaseFee() *big.Int

func (*WorkObject) Body

func (wo *WorkObject) Body() *WorkObjectBody

func (*WorkObject) ConversionFlowAmount

func (wo *WorkObject) ConversionFlowAmount() *big.Int

func (*WorkObject) ConvertToBlockView

func (wo *WorkObject) ConvertToBlockView() *WorkObjectBlockView

func (*WorkObject) ConvertToHeaderView

func (wo *WorkObject) ConvertToHeaderView() *WorkObjectHeaderView

func (*WorkObject) ConvertToPEtxView

func (wo *WorkObject) ConvertToPEtxView() *WorkObject

func (*WorkObject) ConvertToWorkObjectShareView

func (wo *WorkObject) ConvertToWorkObjectShareView(txs Transactions) *WorkObjectShareView

func (*WorkObject) Data

func (wo *WorkObject) Data() []byte

func (*WorkObject) Difficulty

func (wo *WorkObject) Difficulty() *big.Int

func (*WorkObject) EVMRoot

func (wo *WorkObject) EVMRoot() common.Hash

func (*WorkObject) EfficiencyScore

func (wo *WorkObject) EfficiencyScore() uint16

func (*WorkObject) EtxEligibleSlices

func (wo *WorkObject) EtxEligibleSlices() common.Hash

func (*WorkObject) EtxRollupHash

func (wo *WorkObject) EtxRollupHash() common.Hash

func (*WorkObject) EtxSetRoot

func (wo *WorkObject) EtxSetRoot() common.Hash

func (*WorkObject) ExchangeRate

func (wo *WorkObject) ExchangeRate() *big.Int

func (*WorkObject) ExpansionNumber

func (wo *WorkObject) ExpansionNumber() uint8

func (*WorkObject) Extra

func (wo *WorkObject) Extra() []byte

func (*WorkObject) GasLimit

func (wo *WorkObject) GasLimit() uint64

func (*WorkObject) GasUsed

func (wo *WorkObject) GasUsed() uint64

func (*WorkObject) GetAppendTime

func (wo *WorkObject) GetAppendTime() time.Duration

GetAppendTime returns the appendTime of the block The appendTime is computed on the first call and cached thereafter.

func (*WorkObject) GetPendingHeaderCreationTime

func (wo *WorkObject) GetPendingHeaderCreationTime() time.Duration

GetPendingHeaderCreationTime returns the pendingHeaderTime of the block The pendingHeaderTime is computed on the first call and cached thereafter.

func (*WorkObject) GetStateProcessTime

func (wo *WorkObject) GetStateProcessTime() time.Duration

GetStateProcessTime returns the stateProcessTIme of the block The stateProcessTime is computed on the first call and cached thereafter.

func (*WorkObject) Hash

func (wo *WorkObject) Hash() common.Hash

func (*WorkObject) Header

func (wo *WorkObject) Header() *Header

func (*WorkObject) HeaderHash

func (wo *WorkObject) HeaderHash() common.Hash

func (*WorkObject) InterlinkHashes

func (wo *WorkObject) InterlinkHashes() common.Hashes

func (*WorkObject) InterlinkRootHash

func (wo *WorkObject) InterlinkRootHash() common.Hash

func (*WorkObject) KQuaiDiscount

func (wo *WorkObject) KQuaiDiscount() *big.Int

func (*WorkObject) Location

func (wo *WorkObject) Location() common.Location

func (*WorkObject) Lock

func (wo *WorkObject) Lock() uint8

func (*WorkObject) Manifest

func (wo *WorkObject) Manifest() BlockManifest

func (*WorkObject) ManifestHash

func (wo *WorkObject) ManifestHash(nodeCtx int) common.Hash

func (*WorkObject) MarshalJSON

func (wo *WorkObject) MarshalJSON() ([]byte, error)

func (*WorkObject) MinerDifficulty

func (wo *WorkObject) MinerDifficulty() *big.Int

func (*WorkObject) MixHash

func (wo *WorkObject) MixHash() common.Hash

func (*WorkObject) Nonce

func (wo *WorkObject) Nonce() BlockNonce

func (*WorkObject) NonceU64

func (wo *WorkObject) NonceU64() uint64

func (*WorkObject) Number

func (wo *WorkObject) Number(nodeCtx int) *big.Int

func (*WorkObject) NumberArray

func (wo *WorkObject) NumberArray() []*big.Int

func (*WorkObject) NumberU64

func (wo *WorkObject) NumberU64(nodeCtx int) uint64

func (*WorkObject) OutboundEtxHash

func (wo *WorkObject) OutboundEtxHash() common.Hash

func (*WorkObject) OutboundEtxs

func (wo *WorkObject) OutboundEtxs() Transactions

func (*WorkObject) ParentDeltaEntropy

func (wo *WorkObject) ParentDeltaEntropy(nodeCtx int) *big.Int

func (*WorkObject) ParentEntropy

func (wo *WorkObject) ParentEntropy(nodeCtx int) *big.Int

func (*WorkObject) ParentHash

func (wo *WorkObject) ParentHash(nodeCtx int) common.Hash

func (*WorkObject) ParentHashArray

func (wo *WorkObject) ParentHashArray() []common.Hash

func (*WorkObject) ParentUncledDeltaEntropy

func (wo *WorkObject) ParentUncledDeltaEntropy(nodeCtx int) *big.Int

func (*WorkObject) PrimaryCoinbase

func (wo *WorkObject) PrimaryCoinbase() common.Address

func (*WorkObject) PrimeStateRoot

func (wo *WorkObject) PrimeStateRoot() common.Hash

func (*WorkObject) PrimeTerminusHash

func (wo *WorkObject) PrimeTerminusHash() common.Hash

func (*WorkObject) PrimeTerminusNumber

func (wo *WorkObject) PrimeTerminusNumber() *big.Int

func (*WorkObject) ProtoDecode

func (wo *WorkObject) ProtoDecode(data *ProtoWorkObject, location common.Location, woType WorkObjectView) error

func (*WorkObject) ProtoEncode

func (wo *WorkObject) ProtoEncode(woType WorkObjectView) (*ProtoWorkObject, error)

func (*WorkObject) QiTransactions

func (wo *WorkObject) QiTransactions() []*Transaction

func (*WorkObject) QiTransactionsWithoutCoinbase

func (wo *WorkObject) QiTransactionsWithoutCoinbase() []*Transaction

func (*WorkObject) QuaiStateSize

func (wo *WorkObject) QuaiStateSize() *big.Int

func (*WorkObject) RPCMarshalHeader

func (wo *WorkObject) RPCMarshalHeader() map[string]interface{}

RPCMarshalHeader returns a flattened header and woHeader as part of the header response

func (*WorkObject) RPCMarshalWorkObject

func (wo *WorkObject) RPCMarshalWorkObject() map[string]interface{}

func (*WorkObject) ReceiptHash

func (wo *WorkObject) ReceiptHash() common.Hash

func (*WorkObject) RegionStateRoot

func (wo *WorkObject) RegionStateRoot() common.Hash

func (*WorkObject) SealHash

func (wo *WorkObject) SealHash() common.Hash

func (*WorkObject) SetAppendTime

func (wo *WorkObject) SetAppendTime(appendTime time.Duration)

func (*WorkObject) SetBody

func (wo *WorkObject) SetBody(body *WorkObjectBody)

func (*WorkObject) SetMixHash

func (wo *WorkObject) SetMixHash(mixHash common.Hash)

func (*WorkObject) SetNumber

func (wo *WorkObject) SetNumber(val *big.Int, nodeCtx int)

func (*WorkObject) SetParentHash

func (wo *WorkObject) SetParentHash(val common.Hash, nodeCtx int)

func (*WorkObject) SetPendingHeaderCreationTime

func (wo *WorkObject) SetPendingHeaderCreationTime(pendingHeaderCreationTime time.Duration)

func (*WorkObject) SetStateProcessTime

func (wo *WorkObject) SetStateProcessTime(stateProcessTimes time.Duration)

func (*WorkObject) SetTx

func (wo *WorkObject) SetTx(tx *Transaction)

func (*WorkObject) SetWorkObjectHeader

func (wo *WorkObject) SetWorkObjectHeader(header *WorkObjectHeader)

func (*WorkObject) Size

func (wo *WorkObject) Size() common.StorageSize

Size returns the true RLP encoded storage size of the block, either by encoding and returning it, or returning a previsouly cached value.

func (*WorkObject) StateLimit

func (wo *WorkObject) StateLimit() uint64

func (*WorkObject) StateUsed

func (wo *WorkObject) StateUsed() uint64

func (*WorkObject) ThresholdCount

func (wo *WorkObject) ThresholdCount() uint16

func (*WorkObject) Time

func (wo *WorkObject) Time() uint64

func (*WorkObject) TotalFees

func (wo *WorkObject) TotalFees() *big.Int

func (*WorkObject) Transactions

func (wo *WorkObject) Transactions() Transactions

func (*WorkObject) TransactionsInfo

func (wo *WorkObject) TransactionsInfo() map[string]interface{}

func (*WorkObject) Tx

func (wo *WorkObject) Tx() *Transaction

func (*WorkObject) TxHash

func (wo *WorkObject) TxHash() common.Hash

func (*WorkObject) UTXORoot

func (wo *WorkObject) UTXORoot() common.Hash

func (*WorkObject) UncleHash

func (wo *WorkObject) UncleHash() common.Hash

func (*WorkObject) UncledEntropy

func (wo *WorkObject) UncledEntropy() *big.Int

func (*WorkObject) Uncles

func (wo *WorkObject) Uncles() []*WorkObjectHeader

func (*WorkObject) UnmarshalJSON

func (wo *WorkObject) UnmarshalJSON(input []byte) error

func (*WorkObject) WithBody

func (wo *WorkObject) WithBody(header *Header, txs []*Transaction, etxs []*Transaction, uncles []*WorkObjectHeader, manifest BlockManifest, interlinkHashes common.Hashes) *WorkObject

func (*WorkObject) WorkObjectHeader

func (wo *WorkObject) WorkObjectHeader() *WorkObjectHeader

type WorkObjectBlockView

type WorkObjectBlockView struct {
	*WorkObject
}

func (*WorkObjectBlockView) ProtoDecode

func (wob *WorkObjectBlockView) ProtoDecode(data *ProtoWorkObjectBlockView, location common.Location) error

func (*WorkObjectBlockView) ProtoEncode

func (wo *WorkObjectBlockView) ProtoEncode() (*ProtoWorkObjectBlockView, error)

type WorkObjectBody

type WorkObjectBody struct {
	// contains filtered or unexported fields
}

func CopyWorkObjectBody

func CopyWorkObjectBody(wb *WorkObjectBody) *WorkObjectBody

func EmptyWorkObjectBody

func EmptyWorkObjectBody() *WorkObjectBody

func NewWoBody

func NewWoBody(header *Header, txs []*Transaction, etxs []*Transaction, uncles []*WorkObjectHeader, manifest BlockManifest, interlinkHashes common.Hashes) *WorkObjectBody

func NewWorkObjectBody

func NewWorkObjectBody(header *Header, txs []*Transaction, etxs []*Transaction, uncles []*WorkObjectHeader, manifest BlockManifest, receipts []*Receipt, hasher TrieHasher, nodeCtx int) (*WorkObjectBody, error)

func (*WorkObjectBody) ExternalTransactions

func (wb *WorkObjectBody) ExternalTransactions() []*Transaction

func (*WorkObjectBody) Header

func (wb *WorkObjectBody) Header() *Header

func (*WorkObjectBody) InterlinkHashes

func (wb *WorkObjectBody) InterlinkHashes() common.Hashes

func (*WorkObjectBody) Manifest

func (wb *WorkObjectBody) Manifest() BlockManifest

func (*WorkObjectBody) MarshalJSON

func (wb *WorkObjectBody) MarshalJSON() ([]byte, error)

func (*WorkObjectBody) OutboundEtxs

func (wb *WorkObjectBody) OutboundEtxs() []*Transaction

func (*WorkObjectBody) ProtoDecode

func (wb *WorkObjectBody) ProtoDecode(data *ProtoWorkObjectBody, location common.Location, woType WorkObjectView) error

func (*WorkObjectBody) ProtoDecodeHeader

func (wb *WorkObjectBody) ProtoDecodeHeader(data *ProtoWorkObjectBody, location common.Location) error

func (*WorkObjectBody) ProtoEncode

func (wb *WorkObjectBody) ProtoEncode(woType WorkObjectView) (*ProtoWorkObjectBody, error)

func (*WorkObjectBody) RPCMarshalWorkObjectBody

func (wb *WorkObjectBody) RPCMarshalWorkObjectBody() map[string]interface{}

func (*WorkObjectBody) SetHeader

func (wb *WorkObjectBody) SetHeader(header *Header)

func (*WorkObjectBody) SetInterlinkHashes

func (wb *WorkObjectBody) SetInterlinkHashes(interlinkHashes common.Hashes)

func (*WorkObjectBody) SetManifest

func (wb *WorkObjectBody) SetManifest(manifest BlockManifest)

func (*WorkObjectBody) SetOutboundEtxs

func (wb *WorkObjectBody) SetOutboundEtxs(transactions []*Transaction)

func (*WorkObjectBody) SetTransactions

func (wb *WorkObjectBody) SetTransactions(transactions []*Transaction)

func (*WorkObjectBody) SetUncles

func (wb *WorkObjectBody) SetUncles(uncles []*WorkObjectHeader)

func (*WorkObjectBody) Transactions

func (wb *WorkObjectBody) Transactions() []*Transaction

func (*WorkObjectBody) Uncles

func (wb *WorkObjectBody) Uncles() []*WorkObjectHeader

func (*WorkObjectBody) UnmarshalJSON

func (wb *WorkObjectBody) UnmarshalJSON(input []byte) error

type WorkObjectHeader

type WorkObjectHeader struct {
	PowHash   atomic.Value
	PowDigest atomic.Value
	// contains filtered or unexported fields
}

func CopyWorkObjectHeader

func CopyWorkObjectHeader(wh *WorkObjectHeader) *WorkObjectHeader

func NewWorkObjectHeader

func NewWorkObjectHeader(headerHash common.Hash, parentHash common.Hash, number *big.Int, difficulty *big.Int, primeTerminusNumber *big.Int, txHash common.Hash, nonce BlockNonce, lock uint8, time uint64, location common.Location, primaryCoinbase common.Address, data []byte) *WorkObjectHeader

func (*WorkObjectHeader) Data

func (wh *WorkObjectHeader) Data() []byte

func (*WorkObjectHeader) Difficulty

func (wh *WorkObjectHeader) Difficulty() *big.Int

func (*WorkObjectHeader) Hash

func (wh *WorkObjectHeader) Hash() (hash common.Hash)

func (*WorkObjectHeader) HeaderHash

func (wh *WorkObjectHeader) HeaderHash() common.Hash

func (*WorkObjectHeader) Location

func (wh *WorkObjectHeader) Location() common.Location

func (*WorkObjectHeader) Lock

func (wh *WorkObjectHeader) Lock() uint8

func (*WorkObjectHeader) MarshalJSON

func (wh *WorkObjectHeader) MarshalJSON() ([]byte, error)

func (*WorkObjectHeader) MixHash

func (wh *WorkObjectHeader) MixHash() common.Hash

func (*WorkObjectHeader) Nonce

func (wh *WorkObjectHeader) Nonce() BlockNonce

func (*WorkObjectHeader) NonceU64

func (wh *WorkObjectHeader) NonceU64() uint64

func (*WorkObjectHeader) Number

func (wh *WorkObjectHeader) Number() *big.Int

func (*WorkObjectHeader) NumberU64

func (wh *WorkObjectHeader) NumberU64() uint64

func (*WorkObjectHeader) ParentHash

func (wh *WorkObjectHeader) ParentHash() common.Hash

func (*WorkObjectHeader) PrimaryCoinbase

func (wh *WorkObjectHeader) PrimaryCoinbase() common.Address

func (*WorkObjectHeader) PrimeTerminusNumber

func (wh *WorkObjectHeader) PrimeTerminusNumber() *big.Int

func (*WorkObjectHeader) ProtoDecode

func (wh *WorkObjectHeader) ProtoDecode(data *ProtoWorkObjectHeader, location common.Location) error

func (*WorkObjectHeader) ProtoEncode

func (wh *WorkObjectHeader) ProtoEncode() (*ProtoWorkObjectHeader, error)

func (*WorkObjectHeader) RPCMarshalWorkObjectHeader

func (wh *WorkObjectHeader) RPCMarshalWorkObjectHeader() map[string]interface{}

func (*WorkObjectHeader) SealEncode

func (wh *WorkObjectHeader) SealEncode() *ProtoWorkObjectHeader

func (*WorkObjectHeader) SealHash

func (wh *WorkObjectHeader) SealHash() (hash common.Hash)

func (*WorkObjectHeader) SetData

func (wh *WorkObjectHeader) SetData(val []byte)

func (*WorkObjectHeader) SetDifficulty

func (wh *WorkObjectHeader) SetDifficulty(difficulty *big.Int)

func (*WorkObjectHeader) SetHeaderHash

func (wh *WorkObjectHeader) SetHeaderHash(headerHash common.Hash)

func (*WorkObjectHeader) SetLocation

func (wh *WorkObjectHeader) SetLocation(location common.Location)

func (*WorkObjectHeader) SetLock

func (wh *WorkObjectHeader) SetLock(lock uint8)

func (*WorkObjectHeader) SetMixHash

func (wh *WorkObjectHeader) SetMixHash(mixHash common.Hash)

func (*WorkObjectHeader) SetNonce

func (wh *WorkObjectHeader) SetNonce(nonce BlockNonce)

func (*WorkObjectHeader) SetNumber

func (wh *WorkObjectHeader) SetNumber(number *big.Int)

func (*WorkObjectHeader) SetParentHash

func (wh *WorkObjectHeader) SetParentHash(parentHash common.Hash)

func (*WorkObjectHeader) SetPrimaryCoinbase

func (wh *WorkObjectHeader) SetPrimaryCoinbase(coinbase common.Address)

func (*WorkObjectHeader) SetPrimeTerminusNumber

func (wh *WorkObjectHeader) SetPrimeTerminusNumber(primeTerminusNumber *big.Int)

func (*WorkObjectHeader) SetTime

func (wh *WorkObjectHeader) SetTime(val uint64)

func (*WorkObjectHeader) SetTxHash

func (wh *WorkObjectHeader) SetTxHash(txHash common.Hash)

func (*WorkObjectHeader) Time

func (wh *WorkObjectHeader) Time() uint64

func (*WorkObjectHeader) TxHash

func (wh *WorkObjectHeader) TxHash() common.Hash

func (*WorkObjectHeader) UnmarshalJSON

func (wh *WorkObjectHeader) UnmarshalJSON(input []byte) error

type WorkObjectHeaderView

type WorkObjectHeaderView struct {
	*WorkObject
}

func (*WorkObjectHeaderView) ProtoDecode

func (wo *WorkObjectHeaderView) ProtoDecode(data *ProtoWorkObjectHeaderView, location common.Location) error

func (*WorkObjectHeaderView) ProtoEncode

type WorkObjectShareView

type WorkObjectShareView struct {
	*WorkObject
}

func (*WorkObjectShareView) ProtoDecode

func (wos *WorkObjectShareView) ProtoDecode(data *ProtoWorkObjectShareView, location common.Location) error

func (*WorkObjectShareView) ProtoEncode

func (wo *WorkObjectShareView) ProtoEncode() (*ProtoWorkObjectShareView, error)

type WorkObjectView

type WorkObjectView int
const (
	BlockObject WorkObjectView = iota
	BlockObjects
	PEtxObject
	HeaderObject
	WorkShareObject
	WorkShareTxObject
)

Work object types

type WorkObjects

type WorkObjects []*WorkObject

type WorkShareValidity

type WorkShareValidity int
const (
	Valid WorkShareValidity = iota
	Sub
	Invalid
)

Jump to

Keyboard shortcuts

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