Documentation
¶
Overview ¶
Package types contains data types related to Quai consensus.
Index ¶
- Constants
- Variables
- func AuxPowTxHash(PowID PowID, tx []byte) common.Hash
- func Bloom9(data []byte) []byte
- func BloomLookup(bin Bloom, topic bytesBacked) bool
- func BuildCoinbaseScriptSigWithNonce(blockHeight uint32, extraNonce1 uint32, extraNonce2 uint64, ...) []byte
- func CalcUncleHash(uncles []*WorkObjectHeader) (hash common.Hash)
- func CalculateBlockQiTxGas(transaction *Transaction, qiScalingFactor float64, location common.Location) uint64
- func CalculateIntrinsicQiTxGas(transaction *Transaction, scalingFactor float64) uint64
- func CalculateMerkleRoot(powId PowID, coinbaseTx []byte, merkleBranch [][]byte) [common.HashLength]byte
- func CalculateMerkleSlot(chainID uint32, merkleNonce uint32, merkleSize uint32) uint32
- func CalculateQiTxGas(transaction *Transaction, qiScalingFactor float64, location common.Location) uint64
- func CoinbaseLockupHash(ownerContract common.Address, beneficiaryMiner common.Address, ...) common.Hash
- func CompareFeeBetweenTx(a, b *Transaction) int
- func CreateAuxMerkleRoot(dogeHash common.Hash, quaiSealHash common.Hash) common.Hash
- func DeriveSha(list DerivableList, hasher TrieHasher) common.Hash
- func ExtractCoinbaseOutFromCoinbaseTx(coinbaseTx []byte) []byte
- func ExtractHeightFromCoinbase(scriptSig []byte) (uint32, error)
- func ExtractMerkleSizeAndNonceFromCoinbase(scriptSig []byte) (uint32, uint32, error)
- func ExtractScriptSigFromCoinbaseTx(coinbaseTx []byte) []byte
- func ExtractSealHashFromCoinbase(scriptSig []byte) (common.Hash, error)
- func ExtractSignatureTimeFromCoinbase(scriptSig []byte) (uint32, error)
- func HasWitnessCommitment(coinbaseOut []byte) bool
- func IsCoinBaseTx(tx *Transaction) bool
- func IsConversionTx(tx *Transaction) bool
- func IsQiToQuaiConversionTx(tx *Transaction) bool
- func IsQuaiToQiConversionTx(tx *Transaction) bool
- func LogsBloom(logs []*Log) []byte
- func NewAuxPowCoinbaseTx(powId PowID, height uint32, coinbaseOut []byte, auxMerkleRoot common.Hash, ...) []byte
- func NewBitcoinCashCoinbaseTx(height uint32, coinbaseOut []byte, sealHash common.Hash, signatureTime uint32) []byte
- func NewBitcoinCoinbaseTx(height uint32, coinbaseOut []byte, sealHash common.Hash, signatureTime uint32) []byte
- func NewLitecoinCoinbaseTx(height uint32, coinbaseOut []byte, auxMerkleRoot common.Hash, ...) []byte
- func NewRavencoinCoinbaseTx(height uint32, coinbaseOut []byte, sealHash common.Hash, signatureTime uint32) []byte
- func RlpHash(x interface{}) (h common.Hash)
- func Sender(signer Signer, tx *Transaction) (common.Address, error)
- func UTXOHash(txHash common.Hash, index uint16, utxo *UtxoEntry) common.Hash
- func ValidatePrevOutPointIndexAndSequenceOfCoinbase(coinbaseTx []byte) error
- type AccessList
- type AccessTuple
- type AddressUtxos
- type AuxHeaderData
- type AuxPow
- func (ap *AuxPow) AuxPow2() []byte
- func (ap *AuxPow) ConvertToTemplate() *AuxTemplate
- func (ap *AuxPow) Header() *AuxPowHeader
- func (ap *AuxPow) MerkleBranch() [][]byte
- func (ap *AuxPow) PowID() PowID
- func (ap *AuxPow) ProtoDecode(data *ProtoAuxPow) error
- func (ap *AuxPow) ProtoEncode() *ProtoAuxPow
- func (ap *AuxPow) RPCMarshal() map[string]interface{}
- func (ap *AuxPow) SetAuxPow2(auxPow2 []byte)
- func (ap *AuxPow) SetHeader(header *AuxPowHeader)
- func (ap *AuxPow) SetMerkleBranch(branch [][]byte)
- func (ap *AuxPow) SetPowID(id PowID)
- func (ap *AuxPow) SetSignature(sig []byte)
- func (ap *AuxPow) SetTransaction(tx []byte)
- func (ap *AuxPow) Signature() []byte
- func (ap *AuxPow) Transaction() []byte
- func (ap *AuxPow) UnmarshalJSON(data []byte) error
- type AuxPowHeader
- func (ah *AuxPowHeader) Bits() uint32
- func (ah *AuxPowHeader) BlockHash() common.Hash
- func (ah *AuxPowHeader) Bytes() []byte
- func (ah *AuxPowHeader) Copy() *AuxPowHeader
- func (ah *AuxPowHeader) Height() uint32
- func (ah *AuxPowHeader) MerkleRoot() [32]byte
- func (ah *AuxPowHeader) MixHash() common.Hash
- func (ah *AuxPowHeader) Nonce() uint32
- func (ah *AuxPowHeader) Nonce64() uint64
- func (ah *AuxPowHeader) PowHash() common.Hash
- func (ah *AuxPowHeader) PrevBlock() [32]byte
- func (ah *AuxPowHeader) SealHash() common.Hash
- func (ah *AuxPowHeader) SetHeight(height uint32)
- func (ah *AuxPowHeader) SetMixHash(mixHash common.Hash)
- func (ah *AuxPowHeader) SetNonce(nonce uint32)
- func (ah *AuxPowHeader) SetNonce64(nonce uint64)
- func (ah *AuxPowHeader) Timestamp() uint32
- func (ah *AuxPowHeader) Version() int32
- type AuxPowTx
- type AuxPowTxData
- type AuxTemplate
- func (at *AuxTemplate) AuxPow2() []byte
- func (at *AuxTemplate) Bits() uint32
- func (at *AuxTemplate) CoinbaseOut() []byte
- func (at *AuxTemplate) Hash() [32]byte
- func (at *AuxTemplate) Height() uint32
- func (at *AuxTemplate) MerkleBranch() [][]byte
- func (at *AuxTemplate) PowID() PowID
- func (at *AuxTemplate) PrevHash() [32]byte
- func (at *AuxTemplate) ProtoDecode(data *ProtoAuxTemplate) error
- func (at *AuxTemplate) ProtoEncode() *ProtoAuxTemplate
- func (at *AuxTemplate) SetAuxPow2(auxPow2 []byte)
- func (at *AuxTemplate) SetCoinbaseOut(out []byte)
- func (at *AuxTemplate) SetHeight(h uint32)
- func (at *AuxTemplate) SetMerkleBranch(branch [][]byte)
- func (at *AuxTemplate) SetNBits(bits uint32)
- func (at *AuxTemplate) SetPowID(id PowID)
- func (at *AuxTemplate) SetPrevHash(hash [32]byte)
- func (at *AuxTemplate) SetSignatureTime(time uint32)
- func (at *AuxTemplate) SetSigs(sigs []byte)
- func (at *AuxTemplate) SetVersion(v uint32)
- func (at *AuxTemplate) SignatureTime() uint32
- func (at *AuxTemplate) Sigs() []byte
- func (at *AuxTemplate) VerifySignature() bool
- func (at *AuxTemplate) Version() uint32
- type Betas
- type BitcoinCashHeaderWrapper
- func (bch *BitcoinCashHeaderWrapper) BlockHash() common.Hash
- func (bch *BitcoinCashHeaderWrapper) Copy() AuxHeaderData
- func (bch *BitcoinCashHeaderWrapper) Deserialize(r io.Reader) error
- func (bch *BitcoinCashHeaderWrapper) GetBits() uint32
- func (bch *BitcoinCashHeaderWrapper) GetHeight() uint32
- func (bch *BitcoinCashHeaderWrapper) GetMerkleRoot() [32]byte
- func (bch *BitcoinCashHeaderWrapper) GetMixHash() common.Hash
- func (bch *BitcoinCashHeaderWrapper) GetNonce() uint32
- func (bch *BitcoinCashHeaderWrapper) GetNonce64() uint64
- func (bch *BitcoinCashHeaderWrapper) GetPrevBlock() [32]byte
- func (bch *BitcoinCashHeaderWrapper) GetSealHash() common.Hash
- func (bch *BitcoinCashHeaderWrapper) GetTimestamp() uint32
- func (bch *BitcoinCashHeaderWrapper) GetVersion() int32
- func (bch *BitcoinCashHeaderWrapper) PowHash() common.Hash
- func (bch *BitcoinCashHeaderWrapper) Serialize(wr io.Writer) error
- func (bch *BitcoinCashHeaderWrapper) SetHeight(height uint32)
- func (bch *BitcoinCashHeaderWrapper) SetMixHash(mixHash common.Hash)
- func (bch *BitcoinCashHeaderWrapper) SetNonce(nonce uint32)
- func (bch *BitcoinCashHeaderWrapper) SetNonce64(nonce uint64)
- type BitcoinHeaderWrapper
- func (bth *BitcoinHeaderWrapper) BlockHash() common.Hash
- func (bth *BitcoinHeaderWrapper) Copy() AuxHeaderData
- func (bth *BitcoinHeaderWrapper) Deserialize(r io.Reader) error
- func (bth *BitcoinHeaderWrapper) GetBits() uint32
- func (bth *BitcoinHeaderWrapper) GetHeight() uint32
- func (bth *BitcoinHeaderWrapper) GetMerkleRoot() [32]byte
- func (bth *BitcoinHeaderWrapper) GetMixHash() common.Hash
- func (bth *BitcoinHeaderWrapper) GetNonce() uint32
- func (bth *BitcoinHeaderWrapper) GetNonce64() uint64
- func (bth *BitcoinHeaderWrapper) GetPrevBlock() [32]byte
- func (bth *BitcoinHeaderWrapper) GetSealHash() common.Hash
- func (bth *BitcoinHeaderWrapper) GetTimestamp() uint32
- func (bth *BitcoinHeaderWrapper) GetVersion() int32
- func (bth *BitcoinHeaderWrapper) PowHash() common.Hash
- func (bth *BitcoinHeaderWrapper) Serialize(wr io.Writer) error
- func (bth *BitcoinHeaderWrapper) SetHeight(height uint32)
- func (bth *BitcoinHeaderWrapper) SetMixHash(mixHash common.Hash)
- func (bth *BitcoinHeaderWrapper) SetNonce(nonce uint32)
- func (bth *BitcoinHeaderWrapper) SetNonce64(nonce uint64)
- type BlockManifest
- type BlockNonce
- type BlockRequest
- type Bloom
- func (b *Bloom) Add(d []byte)
- func (b Bloom) Big() *big.Int
- func (b Bloom) Bytes() []byte
- func (b Bloom) MarshalText() ([]byte, error)
- func (b *Bloom) ProtoDecode(data []byte) error
- func (b *Bloom) ProtoEncode() ([]byte, error)
- func (b *Bloom) SetBytes(d []byte)
- func (b Bloom) Test(topic []byte) bool
- func (b Bloom) ToLegacyBloom() LegacyBloom
- func (b *Bloom) UnmarshalText(input []byte) error
- type DerivableList
- type EtxSet
- func (set *EtxSet) GetHashAtIndex(index int) common.Hash
- func (set *EtxSet) Hash() common.Hash
- func (set *EtxSet) Len() int
- func (set *EtxSet) Pop() common.Hash
- func (set *EtxSet) ProtoDecode(protoSet *ProtoEtxSet) error
- func (set *EtxSet) ProtoEncode() *ProtoEtxSet
- func (set *EtxSet) Update(newInboundEtxs Transactions, nodeLocation common.Location, ...) error
- type ExternalTx
- type GasPool
- type HashAndLocation
- type HashAndNumber
- type Header
- func (h *Header) AvgTxFees() *big.Int
- func (h *Header) BaseFee() *big.Int
- func (h *Header) ConversionFlowAmount() *big.Int
- func (h *Header) EVMRoot() common.Hash
- func (h *Header) EfficiencyScore() uint16
- func (h *Header) EmptyBody(nodeCtx int) bool
- func (h *Header) EmptyEtxRollup() bool
- func (h *Header) EmptyManifest(nodeCtx int) bool
- func (h *Header) EmptyOutboundEtxs() bool
- func (h *Header) EmptyReceipts() bool
- func (h *Header) EmptyTxs() bool
- func (h *Header) EmptyUncles() bool
- func (h *Header) EtxEligibleSlices() common.Hash
- func (h *Header) EtxRollupHash() common.Hash
- func (h *Header) EtxSetRoot() common.Hash
- func (h *Header) ExchangeRate() *big.Int
- func (h *Header) ExpansionNumber() uint8
- func (h *Header) Extra() []byte
- func (h *Header) GasLimit() uint64
- func (h *Header) GasUsed() uint64
- func (h *Header) Hash() (hash common.Hash)
- func (h *Header) InterlinkRootHash() common.Hash
- func (h *Header) KQuaiDiscount() *big.Int
- func (h *Header) ManifestHash(nodeCtx int) common.Hash
- func (h *Header) ManifestHashArray() []common.Hash
- func (h Header) MarshalJSON() ([]byte, error)
- func (h *Header) MinerDifficulty() *big.Int
- func (h *Header) Number(nodeCtx int) *big.Int
- func (h *Header) NumberArray() []*big.Int
- func (h *Header) NumberU64(nodeCtx int) uint64
- func (h *Header) OutboundEtxHash() common.Hash
- func (h *Header) ParentDeltaEntropy(nodeCtx int) *big.Int
- func (h *Header) ParentEntropy(nodeCtx int) *big.Int
- func (h *Header) ParentHash(nodeCtx int) common.Hash
- func (h *Header) ParentHashArray() []common.Hash
- func (h *Header) ParentUncledDeltaEntropy(nodeCtx int) *big.Int
- func (h *Header) ParentUncledDeltaEntropyArray() []*big.Int
- func (h *Header) PrimeStateRoot() common.Hash
- func (h *Header) PrimeTerminusHash() common.Hash
- func (h *Header) ProtoDecode(protoHeader *ProtoHeader, location common.Location) error
- func (h *Header) ProtoEncode() (*ProtoHeader, error)
- func (h *Header) QuaiStateSize() *big.Int
- func (h *Header) RPCMarshalHeader() map[string]interface{}
- func (h *Header) ReceiptHash() common.Hash
- func (h *Header) RegionStateRoot() common.Hash
- func (h *Header) SanityCheck() error
- func (h *Header) SealEncode() *ProtoHeader
- func (h *Header) SetAvgTxFees(val *big.Int)
- func (h *Header) SetBaseFee(val *big.Int)
- func (h *Header) SetConversionFlowAmount(val *big.Int)
- func (h *Header) SetEVMRoot(val common.Hash)
- func (h *Header) SetEfficiencyScore(val uint16)
- func (h *Header) SetEtxEligibleSlices(val common.Hash)
- func (h *Header) SetEtxRollupHash(val common.Hash)
- func (h *Header) SetEtxSetRoot(val common.Hash)
- func (h *Header) SetExchangeRate(val *big.Int)
- func (h *Header) SetExpansionNumber(val uint8)
- func (h *Header) SetExtra(val []byte)
- func (h *Header) SetGasLimit(val uint64)
- func (h *Header) SetGasUsed(val uint64)
- func (h *Header) SetInterlinkRootHash(val common.Hash)
- func (h *Header) SetKQuaiDiscount(val *big.Int)
- func (h *Header) SetManifestHash(val common.Hash, nodeCtx int)
- func (h *Header) SetMinerDifficulty(val *big.Int)
- func (h *Header) SetNumber(val *big.Int, nodeCtx int)
- func (h *Header) SetOutboundEtxHash(val common.Hash)
- func (h *Header) SetParentDeltaEntropy(val *big.Int, nodeCtx int)
- func (h *Header) SetParentEntropy(val *big.Int, nodeCtx int)
- func (h *Header) SetParentHash(val common.Hash, nodeCtx int)
- func (h *Header) SetParentUncledDeltaEntropy(val *big.Int, nodeCtx int)
- func (h *Header) SetPrimeStateRoot(val common.Hash)
- func (h *Header) SetPrimeTerminusHash(val common.Hash)
- func (h *Header) SetQuaiStateSize(val *big.Int)
- func (h *Header) SetReceiptHash(val common.Hash)
- func (h *Header) SetRegionStateRoot(val common.Hash)
- func (h *Header) SetStateLimit(val uint64)
- func (h *Header) SetStateUsed(val uint64)
- func (h *Header) SetThresholdCount(val uint16)
- func (h *Header) SetTotalFees(val *big.Int)
- func (h *Header) SetTxHash(val common.Hash)
- func (h *Header) SetUTXORoot(val common.Hash)
- func (h *Header) SetUncleHash(val common.Hash)
- func (h *Header) SetUncledEntropy(val *big.Int)
- func (h *Header) Size() common.StorageSize
- func (h *Header) StateLimit() uint64
- func (h *Header) StateUsed() uint64
- func (h *Header) ThresholdCount() uint16
- func (h *Header) TotalFees() *big.Int
- func (h *Header) TxHash() common.Hash
- func (h *Header) UTXORoot() common.Hash
- func (h *Header) UncleHash() common.Hash
- func (h *Header) UncledEntropy() *big.Int
- func (h *Header) UnmarshalJSON(input []byte) error
- type LegacyBloom
- type LitecoinHeaderWrapper
- func (ltc *LitecoinHeaderWrapper) BlockHash() common.Hash
- func (ltc *LitecoinHeaderWrapper) Copy() AuxHeaderData
- func (ltc *LitecoinHeaderWrapper) Deserialize(r io.Reader) error
- func (ltc *LitecoinHeaderWrapper) GetBits() uint32
- func (ltc *LitecoinHeaderWrapper) GetHeight() uint32
- func (ltc *LitecoinHeaderWrapper) GetMerkleRoot() [32]byte
- func (ltc *LitecoinHeaderWrapper) GetMixHash() common.Hash
- func (ltc *LitecoinHeaderWrapper) GetNonce() uint32
- func (ltc *LitecoinHeaderWrapper) GetNonce64() uint64
- func (ltc *LitecoinHeaderWrapper) GetPrevBlock() [32]byte
- func (ltc *LitecoinHeaderWrapper) GetSealHash() common.Hash
- func (ltc *LitecoinHeaderWrapper) GetTimestamp() uint32
- func (ltc *LitecoinHeaderWrapper) GetVersion() int32
- func (ltc *LitecoinHeaderWrapper) PowHash() common.Hash
- func (ltc *LitecoinHeaderWrapper) Serialize(wr io.Writer) error
- func (ltc *LitecoinHeaderWrapper) SetHeight(height uint32)
- func (ltc *LitecoinHeaderWrapper) SetMixHash(mixHash common.Hash)
- func (ltc *LitecoinHeaderWrapper) SetNonce(nonce uint32)
- func (ltc *LitecoinHeaderWrapper) SetNonce64(nonce uint64)
- type Lockup
- type Log
- type LogForStorage
- type Logs
- type Message
- func (m Message) AccessList() AccessList
- func (m Message) Data() []byte
- func (m Message) ETXSender() common.Address
- func (m Message) From() common.Address
- func (m Message) Gas() uint64
- func (m Message) GasPrice() *big.Int
- func (m Message) Hash() common.Hash
- func (m Message) IsETX() bool
- func (m Message) Nonce() uint64
- func (m *Message) SetData(data []byte)
- func (m *Message) SetValue(v *big.Int)
- func (m Message) To() *common.Address
- func (m Message) Type() byte
- func (m Message) Value() *big.Int
- type MixedAccessList
- type MixedAccessTuple
- type OutPoint
- type OutpointAndDenomination
- func (outPoint OutpointAndDenomination) Key() string
- func (outPoint *OutpointAndDenomination) ProtoDecode(protoOutPoint *ProtoOutPointAndDenomination) error
- func (outPoint OutpointAndDenomination) ProtoEncode() (*ProtoOutPointAndDenomination, error)
- func (outpoint *OutpointAndDenomination) UnmarshalJSON(input []byte) error
- type OutpointJSON
- type PendingEtxs
- type PendingEtxsRollup
- type PendingHeader
- func (ph *PendingHeader) ProtoDecode(protoPendingHeader *ProtoPendingHeader, location common.Location) error
- func (ph PendingHeader) ProtoEncode() (*ProtoPendingHeader, error)
- func (ph *PendingHeader) SetHeader(header *WorkObject)
- func (ph *PendingHeader) SetTermini(termini Termini)
- func (ph *PendingHeader) SetWorkObject(wo *WorkObject)
- func (ph PendingHeader) Termini() Termini
- func (ph PendingHeader) WorkObject() *WorkObject
- type PowID
- type PowShareDiffAndCount
- func (p *PowShareDiffAndCount) Clone() *PowShareDiffAndCount
- func (p *PowShareDiffAndCount) Cmp(other *PowShareDiffAndCount) bool
- func (p *PowShareDiffAndCount) Count() *big.Int
- func (p *PowShareDiffAndCount) Difficulty() *big.Int
- func (p *PowShareDiffAndCount) ProtoDecode(protoShare *ProtoPowShareDiffAndCount)
- func (p *PowShareDiffAndCount) ProtoEncode() *ProtoPowShareDiffAndCount
- func (p *PowShareDiffAndCount) RPCMarshal() map[string]interface{}
- func (p *PowShareDiffAndCount) SetCount(count *big.Int)
- func (p *PowShareDiffAndCount) SetDifficulty(difficulty *big.Int)
- func (p *PowShareDiffAndCount) SetUncled(uncled *big.Int)
- func (p *PowShareDiffAndCount) Uncled() *big.Int
- func (p *PowShareDiffAndCount) UnmarshalJSON(data []byte) error
- type ProtoAccessList
- func (*ProtoAccessList) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoAccessList) GetAccessTuples() []*ProtoAccessTuple
- func (*ProtoAccessList) ProtoMessage()
- func (x *ProtoAccessList) ProtoReflect() protoreflect.Message
- func (x *ProtoAccessList) Reset()
- func (x *ProtoAccessList) String() string
- type ProtoAccessTuple
- func (*ProtoAccessTuple) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoAccessTuple) GetAddress() []byte
- func (x *ProtoAccessTuple) GetStorageKey() []*common.ProtoHash
- func (*ProtoAccessTuple) ProtoMessage()
- func (x *ProtoAccessTuple) ProtoReflect() protoreflect.Message
- func (x *ProtoAccessTuple) Reset()
- func (x *ProtoAccessTuple) String() string
- type ProtoAddressOutPoints
- func (*ProtoAddressOutPoints) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoAddressOutPoints) GetOutPoints() []*ProtoOutPointAndDenomination
- func (*ProtoAddressOutPoints) ProtoMessage()
- func (x *ProtoAddressOutPoints) ProtoReflect() protoreflect.Message
- func (x *ProtoAddressOutPoints) Reset()
- func (x *ProtoAddressOutPoints) String() string
- type ProtoAuxPow
- func (*ProtoAuxPow) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoAuxPow) GetAuxpow2() []byte
- func (x *ProtoAuxPow) GetChainId() uint32
- func (x *ProtoAuxPow) GetHeader() []byte
- func (x *ProtoAuxPow) GetMerkleBranch() [][]byte
- func (x *ProtoAuxPow) GetSignature() []byte
- func (x *ProtoAuxPow) GetSignatureTime() uint64
- func (x *ProtoAuxPow) GetTransaction() []byte
- func (*ProtoAuxPow) ProtoMessage()
- func (x *ProtoAuxPow) ProtoReflect() protoreflect.Message
- func (x *ProtoAuxPow) Reset()
- func (x *ProtoAuxPow) String() string
- type ProtoAuxTemplate
- func (*ProtoAuxTemplate) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoAuxTemplate) GetAuxPow2() []byte
- func (x *ProtoAuxTemplate) GetBits() uint32
- func (x *ProtoAuxTemplate) GetChainId() uint32
- func (x *ProtoAuxTemplate) GetCoinbaseOut() []byte
- func (x *ProtoAuxTemplate) GetHeight() uint32
- func (x *ProtoAuxTemplate) GetMerkleBranch() [][]byte
- func (x *ProtoAuxTemplate) GetPrevHash() []byte
- func (x *ProtoAuxTemplate) GetSignatureTime() uint32
- func (x *ProtoAuxTemplate) GetSigs() []byte
- func (x *ProtoAuxTemplate) GetVersion() uint32
- func (*ProtoAuxTemplate) ProtoMessage()
- func (x *ProtoAuxTemplate) ProtoReflect() protoreflect.Message
- func (x *ProtoAuxTemplate) Reset()
- func (x *ProtoAuxTemplate) String() string
- type ProtoBetas
- type ProtoEtxSet
- type ProtoHeader
- func (*ProtoHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoHeader) GetAvgTxFees() []byte
- func (x *ProtoHeader) GetBaseFee() []byte
- func (x *ProtoHeader) GetConversionFlowAmount() []byte
- func (x *ProtoHeader) GetDifficulty() []byte
- func (x *ProtoHeader) GetEfficiencyScore() uint64
- func (x *ProtoHeader) GetEtxEligibleSlices() *common.ProtoHash
- func (x *ProtoHeader) GetEtxRollupHash() *common.ProtoHash
- func (x *ProtoHeader) GetEtxSetRoot() *common.ProtoHash
- func (x *ProtoHeader) GetEvmRoot() *common.ProtoHash
- func (x *ProtoHeader) GetExchangeRate() []byte
- func (x *ProtoHeader) GetExpansionNumber() uint64
- func (x *ProtoHeader) GetExtra() []byte
- func (x *ProtoHeader) GetGasLimit() uint64
- func (x *ProtoHeader) GetGasUsed() uint64
- func (x *ProtoHeader) GetInterlinkRootHash() *common.ProtoHash
- func (x *ProtoHeader) GetKQuaiDiscount() []byte
- func (x *ProtoHeader) GetLocation() *common.ProtoLocation
- func (x *ProtoHeader) GetManifestHash() []*common.ProtoHash
- func (x *ProtoHeader) GetMinerDifficulty() []byte
- func (x *ProtoHeader) GetMixHash() *common.ProtoHash
- func (x *ProtoHeader) GetNonce() uint64
- func (x *ProtoHeader) GetNumber() [][]byte
- func (x *ProtoHeader) GetOutboundEtxHash() *common.ProtoHash
- func (x *ProtoHeader) GetParentDeltaEntropy() [][]byte
- func (x *ProtoHeader) GetParentEntropy() [][]byte
- func (x *ProtoHeader) GetParentHash() []*common.ProtoHash
- func (x *ProtoHeader) GetParentUncledDeltaEntropy() [][]byte
- func (x *ProtoHeader) GetPrimeStateRoot() *common.ProtoHash
- func (x *ProtoHeader) GetPrimeTerminusHash() *common.ProtoHash
- func (x *ProtoHeader) GetQuaiStateSize() []byte
- func (x *ProtoHeader) GetReceiptHash() *common.ProtoHash
- func (x *ProtoHeader) GetRegionStateRoot() *common.ProtoHash
- func (x *ProtoHeader) GetStateLimit() uint64
- func (x *ProtoHeader) GetStateUsed() uint64
- func (x *ProtoHeader) GetThresholdCount() uint64
- func (x *ProtoHeader) GetTotalFees() []byte
- func (x *ProtoHeader) GetTxHash() *common.ProtoHash
- func (x *ProtoHeader) GetUncleHash() *common.ProtoHash
- func (x *ProtoHeader) GetUncledEntropy() []byte
- func (x *ProtoHeader) GetUtxoRoot() *common.ProtoHash
- func (*ProtoHeader) ProtoMessage()
- func (x *ProtoHeader) ProtoReflect() protoreflect.Message
- func (x *ProtoHeader) Reset()
- func (x *ProtoHeader) String() string
- type ProtoHeaders
- type ProtoKeyValue
- func (*ProtoKeyValue) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoKeyValue) GetKey() []byte
- func (x *ProtoKeyValue) GetValue() []byte
- func (*ProtoKeyValue) ProtoMessage()
- func (x *ProtoKeyValue) ProtoReflect() protoreflect.Message
- func (x *ProtoKeyValue) Reset()
- func (x *ProtoKeyValue) String() string
- type ProtoKeys
- type ProtoKeysAndValues
- func (*ProtoKeysAndValues) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoKeysAndValues) GetKeysAndValues() []*ProtoKeyValue
- func (*ProtoKeysAndValues) ProtoMessage()
- func (x *ProtoKeysAndValues) ProtoReflect() protoreflect.Message
- func (x *ProtoKeysAndValues) Reset()
- func (x *ProtoKeysAndValues) String() string
- type ProtoLockedBalance
- func (*ProtoLockedBalance) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoLockedBalance) GetValue() []byte
- func (*ProtoLockedBalance) ProtoMessage()
- func (x *ProtoLockedBalance) ProtoReflect() protoreflect.Message
- func (x *ProtoLockedBalance) Reset()
- func (x *ProtoLockedBalance) String() string
- type ProtoLockup
- func (*ProtoLockup) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoLockup) GetAddress() *common.ProtoAddress
- func (x *ProtoLockup) GetUnlockHeight() uint64
- func (x *ProtoLockup) GetValue() []byte
- func (*ProtoLockup) ProtoMessage()
- func (x *ProtoLockup) ProtoReflect() protoreflect.Message
- func (x *ProtoLockup) Reset()
- func (x *ProtoLockup) String() string
- type ProtoLockups
- type ProtoLogForStorage
- func (*ProtoLogForStorage) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoLogForStorage) GetAddress() *common.ProtoAddress
- func (x *ProtoLogForStorage) GetData() []byte
- func (x *ProtoLogForStorage) GetTopics() []*common.ProtoHash
- func (*ProtoLogForStorage) ProtoMessage()
- func (x *ProtoLogForStorage) ProtoReflect() protoreflect.Message
- func (x *ProtoLogForStorage) Reset()
- func (x *ProtoLogForStorage) String() string
- type ProtoLogsForStorage
- func (*ProtoLogsForStorage) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoLogsForStorage) GetLogs() []*ProtoLogForStorage
- func (*ProtoLogsForStorage) ProtoMessage()
- func (x *ProtoLogsForStorage) ProtoReflect() protoreflect.Message
- func (x *ProtoLogsForStorage) Reset()
- func (x *ProtoLogsForStorage) String() string
- type ProtoManifest
- type ProtoOutPoint
- func (*ProtoOutPoint) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOutPoint) GetHash() *common.ProtoHash
- func (x *ProtoOutPoint) GetIndex() uint32
- func (*ProtoOutPoint) ProtoMessage()
- func (x *ProtoOutPoint) ProtoReflect() protoreflect.Message
- func (x *ProtoOutPoint) Reset()
- func (x *ProtoOutPoint) String() string
- type ProtoOutPointAndDenomination
- func (*ProtoOutPointAndDenomination) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOutPointAndDenomination) GetDenomination() uint32
- func (x *ProtoOutPointAndDenomination) GetHash() *common.ProtoHash
- func (x *ProtoOutPointAndDenomination) GetIndex() uint32
- func (x *ProtoOutPointAndDenomination) GetLock() []byte
- func (*ProtoOutPointAndDenomination) ProtoMessage()
- func (x *ProtoOutPointAndDenomination) ProtoReflect() protoreflect.Message
- func (x *ProtoOutPointAndDenomination) Reset()
- func (x *ProtoOutPointAndDenomination) String() string
- type ProtoPendingEtxs
- func (*ProtoPendingEtxs) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoPendingEtxs) GetHeader() *ProtoWorkObject
- func (x *ProtoPendingEtxs) GetOutboundEtxs() *ProtoTransactions
- func (*ProtoPendingEtxs) ProtoMessage()
- func (x *ProtoPendingEtxs) ProtoReflect() protoreflect.Message
- func (x *ProtoPendingEtxs) Reset()
- func (x *ProtoPendingEtxs) String() string
- type ProtoPendingEtxsRollup
- func (*ProtoPendingEtxsRollup) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoPendingEtxsRollup) GetEtxsRollup() *ProtoTransactions
- func (x *ProtoPendingEtxsRollup) GetHeader() *ProtoWorkObject
- func (*ProtoPendingEtxsRollup) ProtoMessage()
- func (x *ProtoPendingEtxsRollup) ProtoReflect() protoreflect.Message
- func (x *ProtoPendingEtxsRollup) Reset()
- func (x *ProtoPendingEtxsRollup) String() string
- type ProtoPendingHeader
- func (*ProtoPendingHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoPendingHeader) GetTermini() *ProtoTermini
- func (x *ProtoPendingHeader) GetWo() *ProtoWorkObject
- func (*ProtoPendingHeader) ProtoMessage()
- func (x *ProtoPendingHeader) ProtoReflect() protoreflect.Message
- func (x *ProtoPendingHeader) Reset()
- func (x *ProtoPendingHeader) String() string
- type ProtoPowShareDiffAndCount
- func (*ProtoPowShareDiffAndCount) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoPowShareDiffAndCount) GetCount() []byte
- func (x *ProtoPowShareDiffAndCount) GetDifficulty() []byte
- func (x *ProtoPowShareDiffAndCount) GetUncled() []byte
- func (*ProtoPowShareDiffAndCount) ProtoMessage()
- func (x *ProtoPowShareDiffAndCount) ProtoReflect() protoreflect.Message
- func (x *ProtoPowShareDiffAndCount) Reset()
- func (x *ProtoPowShareDiffAndCount) String() string
- type ProtoReceiptForStorage
- func (*ProtoReceiptForStorage) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoReceiptForStorage) GetContractAddress() *common.ProtoAddress
- func (x *ProtoReceiptForStorage) GetCumulativeGasUsed() uint64
- func (x *ProtoReceiptForStorage) GetGasUsed() uint64
- func (x *ProtoReceiptForStorage) GetLogs() *ProtoLogsForStorage
- func (x *ProtoReceiptForStorage) GetOutboundEtxs() *ProtoTransactions
- func (x *ProtoReceiptForStorage) GetPostStateOrStatus() []byte
- func (x *ProtoReceiptForStorage) GetTxHash() *common.ProtoHash
- func (*ProtoReceiptForStorage) ProtoMessage()
- func (x *ProtoReceiptForStorage) ProtoReflect() protoreflect.Message
- func (x *ProtoReceiptForStorage) Reset()
- func (x *ProtoReceiptForStorage) String() string
- type ProtoReceiptsForStorage
- func (*ProtoReceiptsForStorage) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoReceiptsForStorage) GetReceipts() []*ProtoReceiptForStorage
- func (*ProtoReceiptsForStorage) ProtoMessage()
- func (x *ProtoReceiptsForStorage) ProtoReflect() protoreflect.Message
- func (x *ProtoReceiptsForStorage) Reset()
- func (x *ProtoReceiptsForStorage) String() string
- type ProtoSpentUTXO
- func (*ProtoSpentUTXO) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoSpentUTXO) GetOutpoint() *ProtoOutPoint
- func (x *ProtoSpentUTXO) GetSutxo() *ProtoTxOut
- func (*ProtoSpentUTXO) ProtoMessage()
- func (x *ProtoSpentUTXO) ProtoReflect() protoreflect.Message
- func (x *ProtoSpentUTXO) Reset()
- func (x *ProtoSpentUTXO) String() string
- type ProtoSpentUTXOs
- type ProtoSupplyAnalytics
- func (*ProtoSupplyAnalytics) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoSupplyAnalytics) GetSupplyAddedQi() []byte
- func (x *ProtoSupplyAnalytics) GetSupplyAddedQuai() []byte
- func (x *ProtoSupplyAnalytics) GetSupplyRemovedQi() []byte
- func (x *ProtoSupplyAnalytics) GetSupplyRemovedQuai() []byte
- func (x *ProtoSupplyAnalytics) GetTotalSupplyQi() []byte
- func (x *ProtoSupplyAnalytics) GetTotalSupplyQuai() []byte
- func (*ProtoSupplyAnalytics) ProtoMessage()
- func (x *ProtoSupplyAnalytics) ProtoReflect() protoreflect.Message
- func (x *ProtoSupplyAnalytics) Reset()
- func (x *ProtoSupplyAnalytics) String() string
- type ProtoTermini
- func (*ProtoTermini) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoTermini) GetDomTermini() []*common.ProtoHash
- func (x *ProtoTermini) GetSubTermini() []*common.ProtoHash
- func (*ProtoTermini) ProtoMessage()
- func (x *ProtoTermini) ProtoReflect() protoreflect.Message
- func (x *ProtoTermini) Reset()
- func (x *ProtoTermini) String() string
- type ProtoTokenChoice
- func (*ProtoTokenChoice) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoTokenChoice) GetDiff() []byte
- func (x *ProtoTokenChoice) GetQi() uint64
- func (x *ProtoTokenChoice) GetQuai() uint64
- func (*ProtoTokenChoice) ProtoMessage()
- func (x *ProtoTokenChoice) ProtoReflect() protoreflect.Message
- func (x *ProtoTokenChoice) Reset()
- func (x *ProtoTokenChoice) String() string
- type ProtoTokenChoiceArray
- func (*ProtoTokenChoiceArray) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoTokenChoiceArray) GetTokenChoices() *ProtoTokenChoice
- func (*ProtoTokenChoiceArray) ProtoMessage()
- func (x *ProtoTokenChoiceArray) ProtoReflect() protoreflect.Message
- func (x *ProtoTokenChoiceArray) Reset()
- func (x *ProtoTokenChoiceArray) String() string
- type ProtoTokenChoiceSet
- func (*ProtoTokenChoiceSet) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoTokenChoiceSet) GetTokenChoiceArray() []*ProtoTokenChoiceArray
- func (*ProtoTokenChoiceSet) ProtoMessage()
- func (x *ProtoTokenChoiceSet) ProtoReflect() protoreflect.Message
- func (x *ProtoTokenChoiceSet) Reset()
- func (x *ProtoTokenChoiceSet) String() string
- type ProtoTransaction
- func (*ProtoTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoTransaction) GetAccessList() *ProtoAccessList
- func (x *ProtoTransaction) GetChainId() []byte
- func (x *ProtoTransaction) GetData() []byte
- func (x *ProtoTransaction) GetEtxIndex() uint32
- func (x *ProtoTransaction) GetEtxSender() []byte
- func (x *ProtoTransaction) GetEtxType() uint64
- func (x *ProtoTransaction) GetGas() uint64
- func (x *ProtoTransaction) GetGasPrice() []byte
- func (x *ProtoTransaction) GetMixHash() *common.ProtoHash
- func (x *ProtoTransaction) GetNonce() uint64
- func (x *ProtoTransaction) GetOriginatingTxHash() *common.ProtoHash
- func (x *ProtoTransaction) GetParentHash() *common.ProtoHash
- func (x *ProtoTransaction) GetR() []byte
- func (x *ProtoTransaction) GetS() []byte
- func (x *ProtoTransaction) GetSignature() []byte
- func (x *ProtoTransaction) GetTo() []byte
- func (x *ProtoTransaction) GetTxIns() *ProtoTxIns
- func (x *ProtoTransaction) GetTxOuts() *ProtoTxOuts
- func (x *ProtoTransaction) GetType() uint64
- func (x *ProtoTransaction) GetV() []byte
- func (x *ProtoTransaction) GetValue() []byte
- func (x *ProtoTransaction) GetWorkNonce() uint64
- func (*ProtoTransaction) ProtoMessage()
- func (x *ProtoTransaction) ProtoReflect() protoreflect.Message
- func (x *ProtoTransaction) Reset()
- func (x *ProtoTransaction) String() string
- type ProtoTransactions
- func (*ProtoTransactions) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoTransactions) GetTransactions() []*ProtoTransaction
- func (*ProtoTransactions) ProtoMessage()
- func (x *ProtoTransactions) ProtoReflect() protoreflect.Message
- func (x *ProtoTransactions) Reset()
- func (x *ProtoTransactions) String() string
- type ProtoTrimDepths
- type ProtoTxIn
- func (*ProtoTxIn) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoTxIn) GetPreviousOutPoint() *ProtoOutPoint
- func (x *ProtoTxIn) GetPubKey() []byte
- func (*ProtoTxIn) ProtoMessage()
- func (x *ProtoTxIn) ProtoReflect() protoreflect.Message
- func (x *ProtoTxIn) Reset()
- func (x *ProtoTxIn) String() string
- type ProtoTxIns
- type ProtoTxOut
- func (*ProtoTxOut) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoTxOut) GetAddress() []byte
- func (x *ProtoTxOut) GetDenomination() uint32
- func (x *ProtoTxOut) GetLock() []byte
- func (*ProtoTxOut) ProtoMessage()
- func (x *ProtoTxOut) ProtoReflect() protoreflect.Message
- func (x *ProtoTxOut) Reset()
- func (x *ProtoTxOut) String() string
- type ProtoTxOuts
- type ProtoUnlock
- func (*ProtoUnlock) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoUnlock) GetAddress() *common.ProtoAddress
- func (x *ProtoUnlock) GetValue() []byte
- func (*ProtoUnlock) ProtoMessage()
- func (x *ProtoUnlock) ProtoReflect() protoreflect.Message
- func (x *ProtoUnlock) Reset()
- func (x *ProtoUnlock) String() string
- type ProtoUnlocks
- type ProtoWorkObject
- func (*ProtoWorkObject) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoWorkObject) GetTx() *ProtoTransaction
- func (x *ProtoWorkObject) GetWoBody() *ProtoWorkObjectBody
- func (x *ProtoWorkObject) GetWoHeader() *ProtoWorkObjectHeader
- func (*ProtoWorkObject) ProtoMessage()
- func (x *ProtoWorkObject) ProtoReflect() protoreflect.Message
- func (x *ProtoWorkObject) Reset()
- func (x *ProtoWorkObject) String() string
- type ProtoWorkObjectBlockView
- func (*ProtoWorkObjectBlockView) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoWorkObjectBlockView) GetWorkObject() *ProtoWorkObject
- func (*ProtoWorkObjectBlockView) ProtoMessage()
- func (x *ProtoWorkObjectBlockView) ProtoReflect() protoreflect.Message
- func (x *ProtoWorkObjectBlockView) Reset()
- func (x *ProtoWorkObjectBlockView) String() string
- type ProtoWorkObjectBlocksView
- func (*ProtoWorkObjectBlocksView) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoWorkObjectBlocksView) GetWorkObjects() []*ProtoWorkObjectBlockView
- func (*ProtoWorkObjectBlocksView) ProtoMessage()
- func (x *ProtoWorkObjectBlocksView) ProtoReflect() protoreflect.Message
- func (x *ProtoWorkObjectBlocksView) Reset()
- func (x *ProtoWorkObjectBlocksView) String() string
- type ProtoWorkObjectBody
- func (*ProtoWorkObjectBody) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoWorkObjectBody) GetHeader() *ProtoHeader
- func (x *ProtoWorkObjectBody) GetInterlinkHashes() *common.ProtoHashes
- func (x *ProtoWorkObjectBody) GetManifest() *ProtoManifest
- func (x *ProtoWorkObjectBody) GetOutboundEtxs() *ProtoTransactions
- func (x *ProtoWorkObjectBody) GetTransactions() *ProtoTransactions
- func (x *ProtoWorkObjectBody) GetUncles() *ProtoWorkObjectHeaders
- func (*ProtoWorkObjectBody) ProtoMessage()
- func (x *ProtoWorkObjectBody) ProtoReflect() protoreflect.Message
- func (x *ProtoWorkObjectBody) Reset()
- func (x *ProtoWorkObjectBody) String() string
- type ProtoWorkObjectHeader
- func (*ProtoWorkObjectHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoWorkObjectHeader) GetAuxPow() *ProtoAuxPow
- func (x *ProtoWorkObjectHeader) GetData() []byte
- func (x *ProtoWorkObjectHeader) GetDifficulty() []byte
- func (x *ProtoWorkObjectHeader) GetHeaderHash() *common.ProtoHash
- func (x *ProtoWorkObjectHeader) GetKawpowDifficulty() []byte
- func (x *ProtoWorkObjectHeader) GetLocation() *common.ProtoLocation
- func (x *ProtoWorkObjectHeader) GetLock() uint32
- func (x *ProtoWorkObjectHeader) GetMixHash() *common.ProtoHash
- func (x *ProtoWorkObjectHeader) GetNonce() uint64
- func (x *ProtoWorkObjectHeader) GetNumber() []byte
- func (x *ProtoWorkObjectHeader) GetParentHash() *common.ProtoHash
- func (x *ProtoWorkObjectHeader) GetPrimaryCoinbase() *common.ProtoAddress
- func (x *ProtoWorkObjectHeader) GetPrimeTerminusNumber() []byte
- func (x *ProtoWorkObjectHeader) GetScryptDiffAndCount() *ProtoPowShareDiffAndCount
- func (x *ProtoWorkObjectHeader) GetScryptShareTarget() []byte
- func (x *ProtoWorkObjectHeader) GetShaDiffAndCount() *ProtoPowShareDiffAndCount
- func (x *ProtoWorkObjectHeader) GetShaShareTarget() []byte
- func (x *ProtoWorkObjectHeader) GetTime() uint64
- func (x *ProtoWorkObjectHeader) GetTxHash() *common.ProtoHash
- func (*ProtoWorkObjectHeader) ProtoMessage()
- func (x *ProtoWorkObjectHeader) ProtoReflect() protoreflect.Message
- func (x *ProtoWorkObjectHeader) Reset()
- func (x *ProtoWorkObjectHeader) String() string
- type ProtoWorkObjectHeaderView
- func (*ProtoWorkObjectHeaderView) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoWorkObjectHeaderView) GetWorkObject() *ProtoWorkObject
- func (*ProtoWorkObjectHeaderView) ProtoMessage()
- func (x *ProtoWorkObjectHeaderView) ProtoReflect() protoreflect.Message
- func (x *ProtoWorkObjectHeaderView) Reset()
- func (x *ProtoWorkObjectHeaderView) String() string
- type ProtoWorkObjectHeaders
- func (*ProtoWorkObjectHeaders) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoWorkObjectHeaders) GetWoHeaders() []*ProtoWorkObjectHeader
- func (*ProtoWorkObjectHeaders) ProtoMessage()
- func (x *ProtoWorkObjectHeaders) ProtoReflect() protoreflect.Message
- func (x *ProtoWorkObjectHeaders) Reset()
- func (x *ProtoWorkObjectHeaders) String() string
- type ProtoWorkObjectShareView
- func (*ProtoWorkObjectShareView) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoWorkObjectShareView) GetWorkObject() *ProtoWorkObject
- func (*ProtoWorkObjectShareView) ProtoMessage()
- func (x *ProtoWorkObjectShareView) ProtoReflect() protoreflect.Message
- func (x *ProtoWorkObjectShareView) Reset()
- func (x *ProtoWorkObjectShareView) String() string
- type ProtoWorkObjects
- func (*ProtoWorkObjects) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoWorkObjects) GetWorkObjects() []*ProtoWorkObject
- func (*ProtoWorkObjects) ProtoMessage()
- func (x *ProtoWorkObjects) ProtoReflect() protoreflect.Message
- func (x *ProtoWorkObjects) Reset()
- func (x *ProtoWorkObjects) String() string
- type QiTx
- type QuaiTx
- type RPCTxIn
- type RPCTxOut
- type RavencoinAddress
- type RavencoinBlockHeader
- func (h *RavencoinBlockHeader) BlockHash() common.Hash
- func (h *RavencoinBlockHeader) Copy() AuxHeaderData
- func (h *RavencoinBlockHeader) Deserialize(r io.Reader) error
- func (h *RavencoinBlockHeader) EncodeBinaryRavencoinHeader() []byte
- func (h *RavencoinBlockHeader) GetBits() uint32
- func (h *RavencoinBlockHeader) GetHeight() uint32
- func (h *RavencoinBlockHeader) GetKAWPOWHeaderHash() common.Hash
- func (h *RavencoinBlockHeader) GetMerkleRoot() [32]byte
- func (h *RavencoinBlockHeader) GetMixHash() common.Hash
- func (h *RavencoinBlockHeader) GetNonce() uint32
- func (h *RavencoinBlockHeader) GetNonce64() uint64
- func (h *RavencoinBlockHeader) GetPrevBlock() [32]byte
- func (h *RavencoinBlockHeader) GetSealHash() common.Hash
- func (h *RavencoinBlockHeader) GetTimestamp() uint32
- func (h *RavencoinBlockHeader) GetVersion() int32
- func (h *RavencoinBlockHeader) PowHash() common.Hash
- func (h *RavencoinBlockHeader) Serialize(w io.Writer) error
- func (h *RavencoinBlockHeader) SetHeight(height uint32)
- func (h *RavencoinBlockHeader) SetMixHash(mixHash common.Hash)
- func (h *RavencoinBlockHeader) SetNonce(nonce uint32)
- func (h *RavencoinBlockHeader) SetNonce64(nonce uint64)
- func (h *RavencoinBlockHeader) Size() int
- func (h *RavencoinBlockHeader) String() string
- type RavencoinKAWPOWInput
- type Receipt
- type ReceiptForStorage
- func (r *ReceiptForStorage) DecodeRLP(s *rlp.Stream) error
- func (r *ReceiptForStorage) EncodeRLP(w io.Writer) error
- func (r *ReceiptForStorage) ProtoDecode(protoReceipt *ProtoReceiptForStorage, location common.Location) error
- func (r *ReceiptForStorage) ProtoEncode() (*ProtoReceiptForStorage, error)
- type Receipts
- type ReceiptsForStorage
- type Signer
- type SignerV1
- func (s SignerV1) ChainID() *big.Int
- func (s SignerV1) Equal(s2 Signer) bool
- func (s SignerV1) Hash(tx *Transaction) (h common.Hash)
- func (s SignerV1) Location() common.Location
- func (s SignerV1) Sender(tx *Transaction) (common.Address, error)
- func (s SignerV1) SignatureValues(tx *Transaction, sig []byte) (R, S, V *big.Int, err error)
- type SpentTxOut
- type SpentUtxoEntry
- type Termini
- func (t Termini) DomTermini() []common.Hash
- func (t Termini) DomTerminiAtIndex(index int) common.Hash
- func (t Termini) DomTerminus(nodeLocation common.Location) common.Hash
- func (t *Termini) IsValid() bool
- func (t Termini) MarshalJSON() ([]byte, error)
- func (t *Termini) ProtoDecode(protoTermini *ProtoTermini) error
- func (t Termini) ProtoEncode() *ProtoTermini
- func (t Termini) RPCMarshalTermini() map[string]interface{}
- func (t *Termini) SetDomTermini(domTermini []common.Hash)
- func (t *Termini) SetDomTerminiAtIndex(val common.Hash, index int)
- func (t *Termini) SetSubTermini(subTermini []common.Hash)
- func (t *Termini) SetSubTerminiAtIndex(val common.Hash, index int)
- func (t Termini) String() string
- func (t Termini) SubTermini() []common.Hash
- func (t Termini) SubTerminiAtIndex(index int) common.Hash
- func (t *Termini) UnmarshalJSON(input []byte) error
- type TokenChoiceSet
- type TokenChoices
- type Transaction
- func MustSignNewTx(prv *ecdsa.PrivateKey, s Signer, txdata TxData) *Transaction
- func NewEmptyQuaiTx() *Transaction
- func NewTx(inner TxData) *Transaction
- func SignNewTx(prv *ecdsa.PrivateKey, s Signer, txdata TxData) (*Transaction, error)
- func SignTx(tx *Transaction, s Signer, prv *ecdsa.PrivateKey) (*Transaction, error)
- func (tx *Transaction) AccessList() AccessList
- func (tx *Transaction) AsMessage(s Signer, baseFee *big.Int) (Message, error)
- func (tx *Transaction) AsMessageWithSender(s Signer, baseFee *big.Int, sender *common.InternalAddress) (Message, error)
- func (tx *Transaction) ChainId() *big.Int
- func (tx *Transaction) CompareFee(newFee *big.Int) int
- func (tx *Transaction) Cost() *big.Int
- func (tx *Transaction) Data() []byte
- func (tx *Transaction) DecodeRLP(s *rlp.Stream) error
- func (tx *Transaction) ETXIndex() uint16
- func (tx *Transaction) ETXSender() common.Address
- func (tx *Transaction) EncodeRLP(w io.Writer) error
- func (tx *Transaction) EtxType() uint64
- func (tx *Transaction) From(nodeLocation common.Location) *common.Address
- func (tx *Transaction) FromChain(nodeLocation common.Location) common.Location
- func (tx *Transaction) Gas() uint64
- func (tx *Transaction) GasPrice() *big.Int
- func (tx *Transaction) GetEcdsaSignatureValues() (v, r, s *big.Int)
- func (tx *Transaction) GetSchnorrSignature() *schnorr.Signature
- func (tx *Transaction) Hash(location ...byte) (h common.Hash)
- func (tx *Transaction) Inner() TxData
- func (tx *Transaction) IsLocal() bool
- func (tx *Transaction) MarshalBinary() ([]byte, error)
- func (t *Transaction) MarshalJSON() ([]byte, error)
- func (tx *Transaction) MixHash() *common.Hash
- func (tx *Transaction) Nonce() uint64
- func (tx *Transaction) OriginatingTxHash() common.Hash
- func (tx *Transaction) ParentHash() *common.Hash
- func (tx *Transaction) ProtoDecode(protoTx *ProtoTransaction, location common.Location) error
- func (tx *Transaction) ProtoEncode() (*ProtoTransaction, error)
- func (tx *Transaction) ProtoEncodeTxSigningData() *ProtoTransaction
- func (tx *Transaction) SetEtxType(typ uint64)
- func (tx *Transaction) SetFrom(from common.Address, signer Signer)
- func (tx *Transaction) SetInner(inner TxData)
- func (tx *Transaction) SetLocal(local bool)
- func (tx *Transaction) SetTo(addr common.Address)
- func (tx *Transaction) SetValue(value *big.Int)
- func (tx *Transaction) Size() common.StorageSize
- func (tx *Transaction) Time() time.Time
- func (tx *Transaction) To() *common.Address
- func (tx *Transaction) TxIn() TxIns
- func (tx *Transaction) TxOut() TxOuts
- func (tx *Transaction) Type() uint8
- func (tx *Transaction) UnmarshalBinary(b []byte) error
- func (t *Transaction) UnmarshalJSON(input []byte) error
- func (tx *Transaction) Value() *big.Int
- func (tx *Transaction) WithSignature(signer Signer, sig []byte) (*Transaction, error)
- func (tx *Transaction) WorkNonce() *BlockNonce
- type Transactions
- func (s Transactions) EncodeIndex(i int, w *bytes.Buffer)
- func (s Transactions) FilterToLocation(l common.Location) Transactions
- func (s Transactions) FilterToSub(slice common.Location, nodeCtx int, order int) Transactions
- func (s Transactions) Len() int
- func (s *Transactions) ProtoDecode(transactions *ProtoTransactions, location common.Location) error
- func (s Transactions) ProtoEncode() (*ProtoTransactions, error)
- type TransactionsByPriceAndNonce
- type TrieHasher
- type TxByNonce
- type TxByPriceAndTime
- type TxData
- type TxIn
- type TxInJSON
- type TxIns
- type TxOut
- type TxOutJSON
- type TxOuts
- type TxWithMinerFee
- type UtxoEntry
- type WireQiTx
- type WorkObject
- func CopyWorkObject(wo *WorkObject) *WorkObject
- func EmptyWorkObject(nodeCtx int) *WorkObject
- func EmptyZoneWorkObject() *WorkObject
- func NewWorkObject(woHeader *WorkObjectHeader, woBody *WorkObjectBody, tx *Transaction) *WorkObject
- func NewWorkObjectWithHeader(header *WorkObject, tx *Transaction, nodeCtx int, woType WorkObjectView) *WorkObject
- func NewWorkObjectWithHeaderAndTx(header *WorkObjectHeader, tx *Transaction) *WorkObject
- func (wo *WorkObject) AuxPow() *AuxPow
- func (wo *WorkObject) AvgTxFees() *big.Int
- func (wo *WorkObject) BaseFee() *big.Int
- func (wo *WorkObject) Body() *WorkObjectBody
- func (wo *WorkObject) ConversionFlowAmount() *big.Int
- func (wo *WorkObject) ConvertToBlockView() *WorkObjectBlockView
- func (wo *WorkObject) ConvertToHeaderView() *WorkObjectHeaderView
- func (wo *WorkObject) ConvertToPEtxView() *WorkObject
- func (wo *WorkObject) ConvertToWorkObjectShareView(txs Transactions) *WorkObjectShareView
- func (wo *WorkObject) Data() []byte
- func (wo *WorkObject) Difficulty() *big.Int
- func (wo *WorkObject) EVMRoot() common.Hash
- func (wo *WorkObject) EfficiencyScore() uint16
- func (wo *WorkObject) EtxEligibleSlices() common.Hash
- func (wo *WorkObject) EtxRollupHash() common.Hash
- func (wo *WorkObject) EtxSetRoot() common.Hash
- func (wo *WorkObject) ExchangeRate() *big.Int
- func (wo *WorkObject) ExpansionNumber() uint8
- func (wo *WorkObject) Extra() []byte
- func (wo *WorkObject) GasLimit() uint64
- func (wo *WorkObject) GasUsed() uint64
- func (wo *WorkObject) GetAppendTime() time.Duration
- func (wo *WorkObject) GetPendingHeaderCreationTime() time.Duration
- func (wo *WorkObject) GetStateProcessTime() time.Duration
- func (wo *WorkObject) Hash() common.Hash
- func (wo *WorkObject) Header() *Header
- func (wo *WorkObject) HeaderHash() common.Hash
- func (wo *WorkObject) InterlinkHashes() common.Hashes
- func (wo *WorkObject) InterlinkRootHash() common.Hash
- func (wo *WorkObject) KQuaiDiscount() *big.Int
- func (wo *WorkObject) KawpowDifficulty() *big.Int
- func (wo *WorkObject) Location() common.Location
- func (wo *WorkObject) Lock() uint8
- func (wo *WorkObject) Manifest() BlockManifest
- func (wo *WorkObject) ManifestHash(nodeCtx int) common.Hash
- func (wo *WorkObject) MarshalJSON() ([]byte, error)
- func (wo *WorkObject) MinerDifficulty() *big.Int
- func (wo *WorkObject) MixHash() common.Hash
- func (wo *WorkObject) Nonce() BlockNonce
- func (wo *WorkObject) NonceU64() uint64
- func (wo *WorkObject) Number(nodeCtx int) *big.Int
- func (wo *WorkObject) NumberArray() []*big.Int
- func (wo *WorkObject) NumberU64(nodeCtx int) uint64
- func (wo *WorkObject) OutboundEtxHash() common.Hash
- func (wo *WorkObject) OutboundEtxs() Transactions
- func (wo *WorkObject) ParentDeltaEntropy(nodeCtx int) *big.Int
- func (wo *WorkObject) ParentEntropy(nodeCtx int) *big.Int
- func (wo *WorkObject) ParentHash(nodeCtx int) common.Hash
- func (wo *WorkObject) ParentHashArray() []common.Hash
- func (wo *WorkObject) ParentUncledDeltaEntropy(nodeCtx int) *big.Int
- func (wo *WorkObject) PrimaryCoinbase() common.Address
- func (wo *WorkObject) PrimeStateRoot() common.Hash
- func (wo *WorkObject) PrimeTerminusHash() common.Hash
- func (wo *WorkObject) PrimeTerminusNumber() *big.Int
- func (wo *WorkObject) ProtoDecode(data *ProtoWorkObject, location common.Location, woType WorkObjectView) error
- func (wo *WorkObject) ProtoEncode(woType WorkObjectView) (*ProtoWorkObject, error)
- func (wo *WorkObject) QiTransactions() []*Transaction
- func (wo *WorkObject) QiTransactionsWithoutCoinbase() []*Transaction
- func (wo *WorkObject) QuaiStateSize() *big.Int
- func (wo *WorkObject) RPCMarshalHeader(rpcVersion string) map[string]interface{}
- func (wo *WorkObject) RPCMarshalWorkObject(rpcVersion string) map[string]interface{}
- func (wo *WorkObject) ReceiptHash() common.Hash
- func (wo *WorkObject) RegionStateRoot() common.Hash
- func (wo *WorkObject) ScryptDiffAndCount() *PowShareDiffAndCount
- func (wo *WorkObject) ScryptShareTarget() *big.Int
- func (wo *WorkObject) SealHash() common.Hash
- func (wo *WorkObject) SetAppendTime(appendTime time.Duration)
- func (wo *WorkObject) SetBody(body *WorkObjectBody)
- func (wo *WorkObject) SetMixHash(mixHash common.Hash)
- func (wo *WorkObject) SetNumber(val *big.Int, nodeCtx int)
- func (wo *WorkObject) SetParentHash(val common.Hash, nodeCtx int)
- func (wo *WorkObject) SetPendingHeaderCreationTime(pendingHeaderCreationTime time.Duration)
- func (wo *WorkObject) SetStateProcessTime(stateProcessTimes time.Duration)
- func (wo *WorkObject) SetTx(tx *Transaction)
- func (wo *WorkObject) SetWorkObjectHeader(header *WorkObjectHeader)
- func (wo *WorkObject) ShaDiffAndCount() *PowShareDiffAndCount
- func (wo *WorkObject) ShaShareTarget() *big.Int
- func (wo *WorkObject) Size() common.StorageSize
- func (wo *WorkObject) StateLimit() uint64
- func (wo *WorkObject) StateUsed() uint64
- func (wo *WorkObject) ThresholdCount() uint16
- func (wo *WorkObject) Time() uint64
- func (wo *WorkObject) TotalFees() *big.Int
- func (wo *WorkObject) Transactions() Transactions
- func (wo *WorkObject) TransactionsInfo() map[string]interface{}
- func (wo *WorkObject) Tx() *Transaction
- func (wo *WorkObject) TxHash() common.Hash
- func (wo *WorkObject) UTXORoot() common.Hash
- func (wo *WorkObject) UncleHash() common.Hash
- func (wo *WorkObject) UncledEntropy() *big.Int
- func (wo *WorkObject) Uncles() []*WorkObjectHeader
- func (wo *WorkObject) UnmarshalJSON(input []byte) error
- func (wo *WorkObject) WithBody(header *Header, txs []*Transaction, etxs []*Transaction, ...) *WorkObject
- func (wo *WorkObject) WorkObjectHeader() *WorkObjectHeader
- func (wo *WorkObject) WorkObjectHeaderHash() common.Hash
- type WorkObjectBlockView
- type WorkObjectBody
- func CopyWorkObjectBody(wb *WorkObjectBody) *WorkObjectBody
- func EmptyWorkObjectBody() *WorkObjectBody
- func NewWoBody(header *Header, txs []*Transaction, etxs []*Transaction, ...) *WorkObjectBody
- func NewWorkObjectBody(header *Header, txs []*Transaction, etxs []*Transaction, ...) (*WorkObjectBody, error)
- func (wb *WorkObjectBody) ExternalTransactions() []*Transaction
- func (wb *WorkObjectBody) Header() *Header
- func (wb *WorkObjectBody) InterlinkHashes() common.Hashes
- func (wb *WorkObjectBody) Manifest() BlockManifest
- func (wb *WorkObjectBody) MarshalJSON() ([]byte, error)
- func (wb *WorkObjectBody) OutboundEtxs() []*Transaction
- func (wb *WorkObjectBody) ProtoDecode(data *ProtoWorkObjectBody, location common.Location, woType WorkObjectView) error
- func (wb *WorkObjectBody) ProtoDecodeHeader(data *ProtoWorkObjectBody, location common.Location) error
- func (wb *WorkObjectBody) ProtoEncode(woType WorkObjectView) (*ProtoWorkObjectBody, error)
- func (wb *WorkObjectBody) RPCMarshalWorkObjectBody(rpcVersion string) map[string]interface{}
- func (wb *WorkObjectBody) SetHeader(header *Header)
- func (wb *WorkObjectBody) SetInterlinkHashes(interlinkHashes common.Hashes)
- func (wb *WorkObjectBody) SetManifest(manifest BlockManifest)
- func (wb *WorkObjectBody) SetOutboundEtxs(transactions []*Transaction)
- func (wb *WorkObjectBody) SetTransactions(transactions []*Transaction)
- func (wb *WorkObjectBody) SetUncles(uncles []*WorkObjectHeader)
- func (wb *WorkObjectBody) Transactions() []*Transaction
- func (wb *WorkObjectBody) Uncles() []*WorkObjectHeader
- func (wb *WorkObjectBody) UnmarshalJSON(input []byte) error
- type WorkObjectHeader
- func (wh *WorkObjectHeader) AuxPow() *AuxPow
- func (wh *WorkObjectHeader) Data() []byte
- func (wh *WorkObjectHeader) Difficulty() *big.Int
- func (wh *WorkObjectHeader) Hash() common.Hash
- func (wh *WorkObjectHeader) HeaderHash() common.Hash
- func (wh *WorkObjectHeader) IsKawPowBlock() bool
- func (wh *WorkObjectHeader) IsShaOrScryptShareWithInvalidAddress() bool
- func (wh *WorkObjectHeader) IsTransitionProgPowBlock() bool
- func (wh *WorkObjectHeader) KawpowActivationHappened() bool
- func (wh *WorkObjectHeader) KawpowDifficulty() *big.Int
- func (wh *WorkObjectHeader) Location() common.Location
- func (wh *WorkObjectHeader) Lock() uint8
- func (wh *WorkObjectHeader) MarshalJSON() ([]byte, error)
- func (wh *WorkObjectHeader) MixHash() common.Hash
- func (wh *WorkObjectHeader) Nonce() BlockNonce
- func (wh *WorkObjectHeader) NonceU64() uint64
- func (wh *WorkObjectHeader) Number() *big.Int
- func (wh *WorkObjectHeader) NumberU64() uint64
- func (wh *WorkObjectHeader) ParentHash() common.Hash
- func (wh *WorkObjectHeader) PrimaryCoinbase() common.Address
- func (wh *WorkObjectHeader) PrimeTerminusNumber() *big.Int
- func (wh *WorkObjectHeader) ProtoDecode(data *ProtoWorkObjectHeader, location common.Location) error
- func (wh *WorkObjectHeader) ProtoEncode() (*ProtoWorkObjectHeader, error)
- func (wh *WorkObjectHeader) RPCMarshalWorkObjectHeader(rpcVersion string) map[string]interface{}
- func (wh *WorkObjectHeader) ScryptDiffAndCount() *PowShareDiffAndCount
- func (wh *WorkObjectHeader) ScryptShareTarget() *big.Int
- func (wh *WorkObjectHeader) SealEncode() *ProtoWorkObjectHeader
- func (wh *WorkObjectHeader) SealHash() (hash common.Hash)
- func (wh *WorkObjectHeader) SetAuxPow(auxPow *AuxPow)
- func (wh *WorkObjectHeader) SetData(val []byte)
- func (wh *WorkObjectHeader) SetDifficulty(difficulty *big.Int)
- func (wh *WorkObjectHeader) SetHeaderHash(headerHash common.Hash)
- func (wh *WorkObjectHeader) SetKawpowDifficulty(val *big.Int)
- func (wh *WorkObjectHeader) SetLocation(location common.Location)
- func (wh *WorkObjectHeader) SetLock(lock uint8)
- func (wh *WorkObjectHeader) SetMixHash(mixHash common.Hash)
- func (wh *WorkObjectHeader) SetNonce(nonce BlockNonce)
- func (wh *WorkObjectHeader) SetNumber(number *big.Int)
- func (wh *WorkObjectHeader) SetParentHash(parentHash common.Hash)
- func (wh *WorkObjectHeader) SetPrimaryCoinbase(coinbase common.Address)
- func (wh *WorkObjectHeader) SetPrimeTerminusNumber(primeTerminusNumber *big.Int)
- func (wh *WorkObjectHeader) SetScryptDiffAndCount(val *PowShareDiffAndCount)
- func (wh *WorkObjectHeader) SetScryptShareTarget(val *big.Int)
- func (wh *WorkObjectHeader) SetShaDiffAndCount(val *PowShareDiffAndCount)
- func (wh *WorkObjectHeader) SetShaShareTarget(val *big.Int)
- func (wh *WorkObjectHeader) SetTime(val uint64)
- func (wh *WorkObjectHeader) SetTxHash(txHash common.Hash)
- func (wh *WorkObjectHeader) ShaDiffAndCount() *PowShareDiffAndCount
- func (wh *WorkObjectHeader) ShaShareTarget() *big.Int
- func (wh *WorkObjectHeader) Time() uint64
- func (wh *WorkObjectHeader) TxHash() common.Hash
- func (wh *WorkObjectHeader) UnmarshalJSON(input []byte) error
- func (wh *WorkObjectHeader) WoCustomPowHash() (hash common.Hash)
- func (wh *WorkObjectHeader) WoProgpowHash() (hash common.Hash)
- type WorkObjectHeaderView
- type WorkObjectShareView
- type WorkObjectView
- type WorkObjects
- type WorkShareValidity
Constants ¶
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 )
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) )
const ( QuaiTxType = iota ExternalTxType QiTxType )
Transaction types.
const ( DefaultType = iota CoinbaseType ConversionType CoinbaseLockupType WrappingQiType ConversionRevertType UnwrapQiType )
ETX types
const ( MaxDenomination = 14 MaxOutputIndex = math.MaxUint16 MaxTrimDenomination = 5 )
const (
NonceLength = 8
)
Variables ¶
var ( EmptyRootHash = common.HexToHash("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421") EmptyMuHash = common.HexToHash("544eb3142c000f0ad2c76ac41f4222abbababed830eeafee4b6dc56b52d5cac0") EmptyUncleHash = RlpHash([]*Header(nil)) EmptyBodyHash = common.HexToHash("51e1b9c1426a03bf73da3d98d9f384a49ded6a4d705dcdf25433915c3306826c") EmptyHash = common.Hash{} )
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") )
var ( ErrUnsupportedTxType = errors.New("tx type is not supported by this signer") ErrInvalidChainId = errors.New("invalid chain id for signer") )
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")) QiToQuaiRevertTopic = crypto.Keccak256Hash([]byte("QiToQuaiRevert")) )
var Denominations map[uint8]*big.Int
Denominations is a map of denomination to number of Qi
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.
var File_core_types_proto_block_proto protoreflect.FileDescriptor
var ObjectPool = sync.Pool{ New: func() interface{} { return new(interface{}) }, }
var TrimDepths map[uint8]uint64
Functions ¶
func BloomLookup ¶
BloomLookup is a convenience-method to check presence int he bloom filter
func BuildCoinbaseScriptSigWithNonce ¶ added in v0.49.0
func BuildCoinbaseScriptSigWithNonce(blockHeight uint32, extraNonce1 uint32, extraNonce2 uint64, auxMerkleRoot common.Hash, merkleSize uint32, signatureTime uint32) []byte
BuildCoinbaseScriptSigWithNonce creates a scriptSig for AuxPow coinbase with the Bitcoin standard format Format:
OP_PUSH<n> <height(variable bytes)> ← BIP34 height (MINIMAL encoding)
OP_PUSH44 <fabe6d6d | AuxMerkleRoot(32 LE) | merkle_size(4 LE) | merkle_nonce(4 LE)>
OP_PUSH42 <extraNonce1(4) + extraNonce2(8) + extraData(30)>
OP_PUSH4 <signature_time> ← time from the aux template
func CalcUncleHash ¶
func CalcUncleHash(uncles []*WorkObjectHeader) (hash common.Hash)
func CalculateBlockQiTxGas ¶ added in v0.29.0
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 ¶ added in v0.29.0
func CalculateIntrinsicQiTxGas(transaction *Transaction, scalingFactor float64) uint64
CalculateIntrinsicQiTxGas calculates the intrinsic gas for a Qi tx without ETXs
func CalculateMerkleRoot ¶ added in v0.49.0
func CalculateMerkleRoot(powId PowID, coinbaseTx []byte, merkleBranch [][]byte) [common.HashLength]byte
VerifyMerkleProof verifies a merkle proof for a transaction at index 0 (coinbase) merkleBranch contains the sibling hashes from leaf to root
func CalculateMerkleSlot ¶ added in v0.49.0
calculateMerkleSlot calculates the slot position for a chain in the aux merkle tree using the algorithm from the Bitcoin merged mining specification.
func CalculateQiTxGas ¶ added in v0.29.0
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 ¶ added in v0.42.0
func CompareFeeBetweenTx ¶ added in v0.34.0
func CompareFeeBetweenTx(a, b *Transaction) int
func CreateAuxMerkleRoot ¶ added in v0.49.0
CreateAuxMerkleRoot creates an aux work merkle root for merged mining with multiple chains. According to the Bitcoin merged mining specification: - Each chain has a chain_id that determines its slot in the merkle tree - The merkle tree must have a power-of-two size (merkle_size) - A merkle_nonce is used to resolve slot collisions (though the algorithm is broken) - Block hashes are inserted in reversed byte order - The final merkle root is reversed before insertion into the coinbase
For Dogecoin + Quai merged mining: - Dogecoin chain_id = 98 - Quai chain_id = 9 - merkle_size = smallest power of 2 that fits both chains without collision - merkle_nonce = 0
Parameters:
- dogeHash: Dogecoin block hash (32 bytes)
- quaiSealHash: Quai seal hash (32 bytes)
Returns:
- auxMerkleRoot: The merkle root to insert into the Litecoin coinbase (32 bytes, byte-reversed)
func DeriveSha ¶
func DeriveSha(list DerivableList, hasher TrieHasher) common.Hash
DeriveSha creates the tree hashes of transactions and receipts in a block header.
func ExtractCoinbaseOutFromCoinbaseTx ¶ added in v0.49.0
ExtractCoinbaseOutFromCoinbaseTx extracts all the outputs including the outputs length (varint + serialized outputs).
func ExtractHeightFromCoinbase ¶ added in v0.49.0
ExtractHeightFromCoinbase extracts the block height from the coinbase scriptSig. The height is encoded at the beginning of the scriptSig using BIP34 minimal encoding. Format:
OP_PUSH<n> <height(variable bytes)> ← BIP34 height (minimal encoding, 0-5 bytes) ... (rest of scriptSig)
Returns the decoded height and an error if the scriptSig is invalid.
func ExtractMerkleSizeAndNonceFromCoinbase ¶ added in v0.49.0
func ExtractScriptSigFromCoinbaseTx ¶ added in v0.49.0
ExtractScriptSigFromCoinbaseTx extracts scriptSig from the first input.
func ExtractSealHashFromCoinbase ¶ added in v0.49.0
func ExtractSignatureTimeFromCoinbase ¶ added in v0.49.0
func HasWitnessCommitment ¶ added in v0.49.0
HasWitnessCommitment detects if coinbase output bytes contain a witness commitment. The witness commitment is an OP_RETURN output with the following format:
OP_RETURN (0x6a) 0x24 0xaa 0x21 0xa9 0xed <32-byte commitment>
This output must be the LAST output in the coinbase transaction. See Litecoin validation.cpp:3718-3720 and BIP 141 for specification.
The coinbaseOut parameter should be the serialized outputs section starting with the output count varint.
func IsCoinBaseTx ¶ added in v0.29.0
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 ¶ added in v0.30.0
func IsConversionTx(tx *Transaction) bool
It checks if an tx is a conversion type
func IsQiToQuaiConversionTx ¶ added in v0.42.0
func IsQiToQuaiConversionTx(tx *Transaction) bool
func IsQuaiToQiConversionTx ¶ added in v0.42.0
func IsQuaiToQiConversionTx(tx *Transaction) bool
func NewAuxPowCoinbaseTx ¶ added in v0.49.0
func NewBitcoinCashCoinbaseTx ¶ added in v0.49.0
func NewBitcoinCoinbaseTx ¶ added in v0.49.0
func NewLitecoinCoinbaseTx ¶ added in v0.49.0
func NewRavencoinCoinbaseTx ¶ added in v0.49.0
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 ValidatePrevOutPointIndexAndSequenceOfCoinbase ¶ added in v0.49.0
ValidatePrevOutPointIndexAndSequenceOfCoinbase validates the tx in part of the coinbase transaction 1) Number of inputs must be 1 2) prev_txid must be all zeros 3) prev_vout must be 0xffffffff 4) sequence must be 0xffffffff
Types ¶
type AccessList ¶
type AccessList []AccessTuple
AccessList is an access list.
func (*AccessList) ConvertToMixedCase ¶ added in v0.34.0
func (al *AccessList) ConvertToMixedCase() *MixedAccessList
func (*AccessList) ProtoDecode ¶ added in v0.29.0
func (al *AccessList) ProtoDecode(protoAccessList *ProtoAccessList, location common.Location) error
ProtoDecode deserializes the ProtoAccessList into the AccessList format
func (AccessList) ProtoEncode ¶ added in v0.29.0
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 ¶ added in v0.30.0
type AuxHeaderData ¶ added in v0.49.0
type AuxHeaderData interface {
Serialize(w io.Writer) error
Deserialize(r io.Reader) error
BlockHash() common.Hash
PowHash() common.Hash
Copy() AuxHeaderData
// Common blockchain header fields
GetVersion() int32
GetPrevBlock() [32]byte
GetMerkleRoot() [32]byte
GetTimestamp() uint32
GetBits() uint32
GetNonce() uint32
GetHeight() uint32 // For chains that include height in header (e.g., KAWPOW)
GetNonce64() uint64 // Only implemented for kawpow
GetMixHash() common.Hash // Only implemented for kawpow
GetSealHash() common.Hash // Only implemented for kawpow, this is the hash on which PoW is done
SetNonce(nonce uint32)
SetNonce64(nonce uint64) // Only implemented for kawpow
SetMixHash(mixHash common.Hash) // Only implemented for kawpow
SetHeight(height uint32) // Only implemented for kawpow
}
type AuxPow ¶ added in v0.49.0
type AuxPow struct {
// contains filtered or unexported fields
}
AuxPow represents auxiliary proof-of-work data
func CopyAuxPow ¶ added in v0.49.0
func (*AuxPow) ConvertToTemplate ¶ added in v0.49.0
func (ap *AuxPow) ConvertToTemplate() *AuxTemplate
func (*AuxPow) Header ¶ added in v0.49.0
func (ap *AuxPow) Header() *AuxPowHeader
func (*AuxPow) MerkleBranch ¶ added in v0.49.0
func (*AuxPow) ProtoDecode ¶ added in v0.49.0
func (ap *AuxPow) ProtoDecode(data *ProtoAuxPow) error
ProtoDecode populates AuxPow from its protobuf representation
func (*AuxPow) ProtoEncode ¶ added in v0.49.0
func (ap *AuxPow) ProtoEncode() *ProtoAuxPow
ProtoEncode converts AuxPow to its protobuf representation
func (*AuxPow) RPCMarshal ¶ added in v0.49.0
RPCMarshal converts AuxPow to a map for RPC serialization
func (*AuxPow) SetAuxPow2 ¶ added in v0.49.0
func (*AuxPow) SetHeader ¶ added in v0.49.0
func (ap *AuxPow) SetHeader(header *AuxPowHeader)
func (*AuxPow) SetMerkleBranch ¶ added in v0.49.0
func (*AuxPow) SetSignature ¶ added in v0.49.0
func (*AuxPow) SetTransaction ¶ added in v0.49.0
func (*AuxPow) Transaction ¶ added in v0.49.0
func (*AuxPow) UnmarshalJSON ¶ added in v0.49.0
UnmarshalJSON implements json.Unmarshaler for AuxPow
type AuxPowHeader ¶ added in v0.49.0
type AuxPowHeader struct {
// contains filtered or unexported fields
}
func NewAuxPowHeader ¶ added in v0.49.0
func NewAuxPowHeader(inner AuxHeaderData) *AuxPowHeader
func NewBlockHeader ¶ added in v0.49.0
func (*AuxPowHeader) Bits ¶ added in v0.49.0
func (ah *AuxPowHeader) Bits() uint32
func (*AuxPowHeader) BlockHash ¶ added in v0.49.0
func (ah *AuxPowHeader) BlockHash() common.Hash
func (*AuxPowHeader) Bytes ¶ added in v0.49.0
func (ah *AuxPowHeader) Bytes() []byte
func (*AuxPowHeader) Copy ¶ added in v0.49.0
func (ah *AuxPowHeader) Copy() *AuxPowHeader
func (*AuxPowHeader) Height ¶ added in v0.49.0
func (ah *AuxPowHeader) Height() uint32
func (*AuxPowHeader) MerkleRoot ¶ added in v0.49.0
func (ah *AuxPowHeader) MerkleRoot() [32]byte
func (*AuxPowHeader) MixHash ¶ added in v0.49.0
func (ah *AuxPowHeader) MixHash() common.Hash
func (*AuxPowHeader) Nonce ¶ added in v0.49.0
func (ah *AuxPowHeader) Nonce() uint32
func (*AuxPowHeader) Nonce64 ¶ added in v0.49.0
func (ah *AuxPowHeader) Nonce64() uint64
func (*AuxPowHeader) PowHash ¶ added in v0.49.0
func (ah *AuxPowHeader) PowHash() common.Hash
func (*AuxPowHeader) PrevBlock ¶ added in v0.49.0
func (ah *AuxPowHeader) PrevBlock() [32]byte
func (*AuxPowHeader) SealHash ¶ added in v0.49.0
func (ah *AuxPowHeader) SealHash() common.Hash
func (*AuxPowHeader) SetHeight ¶ added in v0.49.0
func (ah *AuxPowHeader) SetHeight(height uint32)
func (*AuxPowHeader) SetMixHash ¶ added in v0.49.0
func (ah *AuxPowHeader) SetMixHash(mixHash common.Hash)
func (*AuxPowHeader) SetNonce ¶ added in v0.49.0
func (ah *AuxPowHeader) SetNonce(nonce uint32)
func (*AuxPowHeader) SetNonce64 ¶ added in v0.49.0
func (ah *AuxPowHeader) SetNonce64(nonce uint64)
func (*AuxPowHeader) Timestamp ¶ added in v0.49.0
func (ah *AuxPowHeader) Timestamp() uint32
func (*AuxPowHeader) Version ¶ added in v0.49.0
func (ah *AuxPowHeader) Version() int32
Accessor methods that delegate to the inner header
type AuxPowTx ¶ added in v0.49.0
type AuxPowTx struct {
// contains filtered or unexported fields
}
func NewAuxPowTx ¶ added in v0.49.0
func NewAuxPowTx(inner AuxPowTxData) *AuxPowTx
NewAuxPowTx creates an AuxPowTx from an AuxPowTxData implementation
func (*AuxPowTx) Deserialize ¶ added in v0.49.0
type AuxPowTxData ¶ added in v0.49.0
type AuxTemplate ¶ added in v0.49.0
type AuxTemplate struct {
// contains filtered or unexported fields
}
AuxTemplate defines the template structure for auxiliary proof-of-work
func EmptyAuxTemplate ¶ added in v0.49.0
func EmptyAuxTemplate() *AuxTemplate
func NewAuxTemplate ¶ added in v0.49.0
func NewAuxTemplate() *AuxTemplate
func (*AuxTemplate) AuxPow2 ¶ added in v0.49.0
func (at *AuxTemplate) AuxPow2() []byte
func (*AuxTemplate) Bits ¶ added in v0.49.0
func (at *AuxTemplate) Bits() uint32
func (*AuxTemplate) CoinbaseOut ¶ added in v0.49.0
func (at *AuxTemplate) CoinbaseOut() []byte
func (*AuxTemplate) Hash ¶ added in v0.49.0
func (at *AuxTemplate) Hash() [32]byte
Hash returns the SHA256 hash of the AuxTemplate with signature fields set to nil This is the same hash used for signing and verification
func (*AuxTemplate) Height ¶ added in v0.49.0
func (at *AuxTemplate) Height() uint32
func (*AuxTemplate) MerkleBranch ¶ added in v0.49.0
func (at *AuxTemplate) MerkleBranch() [][]byte
func (*AuxTemplate) PowID ¶ added in v0.49.0
func (at *AuxTemplate) PowID() PowID
Getters for AuxTemplate fields
func (*AuxTemplate) PrevHash ¶ added in v0.49.0
func (at *AuxTemplate) PrevHash() [32]byte
func (*AuxTemplate) ProtoDecode ¶ added in v0.49.0
func (at *AuxTemplate) ProtoDecode(data *ProtoAuxTemplate) error
ProtoDecode populates AuxTemplate from its protobuf representation
func (*AuxTemplate) ProtoEncode ¶ added in v0.49.0
func (at *AuxTemplate) ProtoEncode() *ProtoAuxTemplate
ProtoEncode converts AuxTemplate to its protobuf representation
func (*AuxTemplate) SetAuxPow2 ¶ added in v0.49.0
func (at *AuxTemplate) SetAuxPow2(auxPow2 []byte)
func (*AuxTemplate) SetCoinbaseOut ¶ added in v0.49.0
func (at *AuxTemplate) SetCoinbaseOut(out []byte)
func (*AuxTemplate) SetHeight ¶ added in v0.49.0
func (at *AuxTemplate) SetHeight(h uint32)
func (*AuxTemplate) SetMerkleBranch ¶ added in v0.49.0
func (at *AuxTemplate) SetMerkleBranch(branch [][]byte)
func (*AuxTemplate) SetNBits ¶ added in v0.49.0
func (at *AuxTemplate) SetNBits(bits uint32)
func (*AuxTemplate) SetPowID ¶ added in v0.49.0
func (at *AuxTemplate) SetPowID(id PowID)
Setters for AuxTemplate fields
func (*AuxTemplate) SetPrevHash ¶ added in v0.49.0
func (at *AuxTemplate) SetPrevHash(hash [32]byte)
func (*AuxTemplate) SetSignatureTime ¶ added in v0.49.0
func (at *AuxTemplate) SetSignatureTime(time uint32)
func (*AuxTemplate) SetSigs ¶ added in v0.49.0
func (at *AuxTemplate) SetSigs(sigs []byte)
func (*AuxTemplate) SetVersion ¶ added in v0.49.0
func (at *AuxTemplate) SetVersion(v uint32)
func (*AuxTemplate) SignatureTime ¶ added in v0.49.0
func (at *AuxTemplate) SignatureTime() uint32
func (*AuxTemplate) Sigs ¶ added in v0.49.0
func (at *AuxTemplate) Sigs() []byte
func (*AuxTemplate) VerifySignature ¶ added in v0.49.0
func (at *AuxTemplate) VerifySignature() bool
VerifySignature verifies the composite MuSig2 signature over this AuxTemplate. It tries all possible 2-of-3 signer index combinations.
func (*AuxTemplate) Version ¶ added in v0.49.0
func (at *AuxTemplate) Version() uint32
type Betas ¶ added in v0.35.0
type Betas struct {
// contains filtered or unexported fields
}
Betas struct holds the beta0 and beta1 of the logistic regression for each prime block
func (*Betas) ProtoDecode ¶ added in v0.35.0
func (b *Betas) ProtoDecode(betas *ProtoBetas) error
func (*Betas) ProtoEncode ¶ added in v0.35.0
func (b *Betas) ProtoEncode() (*ProtoBetas, error)
type BitcoinCashHeaderWrapper ¶ added in v0.49.0
type BitcoinCashHeaderWrapper struct {
*bchdwire.BlockHeader
}
BitcoinCashHeaderWrapper wraps bchdwire.BlockHeader to implement AuxHeaderData
func NewBitcoinCashBlockHeader ¶ added in v0.49.0
func NewBitcoinCashHeaderWrapper ¶ added in v0.49.0
func NewBitcoinCashHeaderWrapper(header *bchdwire.BlockHeader) *BitcoinCashHeaderWrapper
func (*BitcoinCashHeaderWrapper) BlockHash ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) BlockHash() common.Hash
func (*BitcoinCashHeaderWrapper) Copy ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) Copy() AuxHeaderData
func (*BitcoinCashHeaderWrapper) Deserialize ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) Deserialize(r io.Reader) error
func (*BitcoinCashHeaderWrapper) GetBits ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) GetBits() uint32
func (*BitcoinCashHeaderWrapper) GetHeight ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) GetHeight() uint32
func (*BitcoinCashHeaderWrapper) GetMerkleRoot ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) GetMerkleRoot() [32]byte
func (*BitcoinCashHeaderWrapper) GetMixHash ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) GetMixHash() common.Hash
func (*BitcoinCashHeaderWrapper) GetNonce ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) GetNonce() uint32
func (*BitcoinCashHeaderWrapper) GetNonce64 ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) GetNonce64() uint64
func (*BitcoinCashHeaderWrapper) GetPrevBlock ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) GetPrevBlock() [32]byte
func (*BitcoinCashHeaderWrapper) GetSealHash ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) GetSealHash() common.Hash
func (*BitcoinCashHeaderWrapper) GetTimestamp ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) GetTimestamp() uint32
func (*BitcoinCashHeaderWrapper) GetVersion ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) GetVersion() int32
func (*BitcoinCashHeaderWrapper) PowHash ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) PowHash() common.Hash
func (*BitcoinCashHeaderWrapper) Serialize ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) Serialize(wr io.Writer) error
func (*BitcoinCashHeaderWrapper) SetHeight ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) SetHeight(height uint32)
func (*BitcoinCashHeaderWrapper) SetMixHash ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) SetMixHash(mixHash common.Hash)
func (*BitcoinCashHeaderWrapper) SetNonce ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) SetNonce(nonce uint32)
func (*BitcoinCashHeaderWrapper) SetNonce64 ¶ added in v0.49.0
func (bch *BitcoinCashHeaderWrapper) SetNonce64(nonce uint64)
type BitcoinHeaderWrapper ¶ added in v0.49.0
type BitcoinHeaderWrapper struct {
*btcdwire.BlockHeader
}
BitcoinHeaderWrapper wraps btcdwire.BlockHeader to implement AuxHeaderData
func NewBitcoinBlockHeader ¶ added in v0.49.0
func NewBitcoinHeaderWrapper ¶ added in v0.49.0
func NewBitcoinHeaderWrapper(header *btcdwire.BlockHeader) *BitcoinHeaderWrapper
func (*BitcoinHeaderWrapper) BlockHash ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) BlockHash() common.Hash
func (*BitcoinHeaderWrapper) Copy ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) Copy() AuxHeaderData
func (*BitcoinHeaderWrapper) Deserialize ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) Deserialize(r io.Reader) error
func (*BitcoinHeaderWrapper) GetBits ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) GetBits() uint32
func (*BitcoinHeaderWrapper) GetHeight ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) GetHeight() uint32
func (*BitcoinHeaderWrapper) GetMerkleRoot ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) GetMerkleRoot() [32]byte
func (*BitcoinHeaderWrapper) GetMixHash ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) GetMixHash() common.Hash
func (*BitcoinHeaderWrapper) GetNonce ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) GetNonce() uint32
func (*BitcoinHeaderWrapper) GetNonce64 ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) GetNonce64() uint64
func (*BitcoinHeaderWrapper) GetPrevBlock ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) GetPrevBlock() [32]byte
func (*BitcoinHeaderWrapper) GetSealHash ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) GetSealHash() common.Hash
func (*BitcoinHeaderWrapper) GetTimestamp ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) GetTimestamp() uint32
func (*BitcoinHeaderWrapper) GetVersion ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) GetVersion() int32
func (*BitcoinHeaderWrapper) PowHash ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) PowHash() common.Hash
func (*BitcoinHeaderWrapper) Serialize ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) Serialize(wr io.Writer) error
func (*BitcoinHeaderWrapper) SetHeight ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) SetHeight(height uint32)
func (*BitcoinHeaderWrapper) SetMixHash ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) SetMixHash(mixHash common.Hash)
func (*BitcoinHeaderWrapper) SetNonce ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) SetNonce(nonce uint32)
func (*BitcoinHeaderWrapper) SetNonce64 ¶ added in v0.49.0
func (bth *BitcoinHeaderWrapper) SetNonce64(nonce uint64)
type BlockManifest ¶
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) ProtoDecode ¶ added in v0.29.0
func (m *BlockManifest) ProtoDecode(protoManifest *ProtoManifest) error
ProtoDecode deserializes th ProtoManifest into the BlockManifest format
func (BlockManifest) ProtoEncode ¶ added in v0.29.0
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 Bloom ¶
type Bloom [BloomByteLength]byte
Bloom represents a 2048 bit bloom filter.
func BytesToBloom ¶
BytesToBloom converts a byte slice to a bloom filter. It panics if b is not of suitable size.
func CreateBloom ¶
CreateBloom creates a bloom filter out of the give Receipts (+Logs)
func (Bloom) Big ¶
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) MarshalText ¶
MarshalText encodes b as a hex string with 0x prefix.
func (*Bloom) ProtoDecode ¶ added in v0.29.0
ProtoDecode decodes b from a protobuf message.
func (*Bloom) ProtoEncode ¶ added in v0.29.0
ProtoEncode encodes b as a protobuf message.
func (*Bloom) SetBytes ¶
SetBytes sets the content of b to the given bytes. It panics if d is not of suitable size.
func (Bloom) ToLegacyBloom ¶ added in v0.41.0
func (b Bloom) ToLegacyBloom() LegacyBloom
func (*Bloom) UnmarshalText ¶
UnmarshalText b as a hex string with 0x prefix.
type DerivableList ¶
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 (*EtxSet) GetHashAtIndex ¶ added in v0.29.0
func (*EtxSet) Hash ¶ added in v0.29.0
Commit returns a hashed commitment of all ETX hashes in the ETX set
func (*EtxSet) ProtoDecode ¶ added in v0.29.0
func (set *EtxSet) ProtoDecode(protoSet *ProtoEtxSet) error
ProtoDecode decodes the EtxSet from protobuf format.
func (*EtxSet) ProtoEncode ¶ added in v0.29.0
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 GasPool ¶ added in v0.29.0
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.
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
Header represents a block header in the Quai blockchain.
func CopyHeader ¶
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) ConversionFlowAmount ¶ added in v0.42.0
func (*Header) EfficiencyScore ¶ added in v0.29.0
func (*Header) EmptyBody ¶
EmptyBody returns true if there is no additional 'body' to complete the header that is: no transactions and no uncles.
func (*Header) EmptyEtxRollup ¶
EmptyEtxs returns true if there are no etxs for this header/block.
func (*Header) EmptyManifest ¶
EmptyTxs returns true if there are no txs for this header/block.
func (*Header) EmptyOutboundEtxs ¶ added in v0.33.0
EmptyEtxs returns true if there are no etxs for this header/block.
func (*Header) EmptyReceipts ¶
EmptyReceipts returns true if there are no receipts for this header/block.
func (*Header) EmptyUncles ¶
EmptyUncles returns true if there are no uncles for this header/block.
func (*Header) EtxEligibleSlices ¶ added in v0.29.0
func (*Header) EtxRollupHash ¶
func (*Header) EtxSetRoot ¶ added in v0.29.0
func (*Header) ExchangeRate ¶ added in v0.34.0
func (*Header) ExpansionNumber ¶ added in v0.29.0
func (*Header) InterlinkRootHash ¶ added in v0.29.0
func (*Header) KQuaiDiscount ¶ added in v0.42.0
func (*Header) ManifestHashArray ¶
func (Header) MarshalJSON ¶
MarshalJSON marshals as JSON.
func (*Header) MinerDifficulty ¶ added in v0.42.0
func (*Header) NumberArray ¶
func (*Header) OutboundEtxHash ¶ added in v0.33.0
func (*Header) ParentDeltaEntropy ¶ added in v0.33.0
func (*Header) ParentHash ¶
Localized accessors
func (*Header) ParentUncledDeltaEntropy ¶ added in v0.33.0
func (*Header) ParentUncledDeltaEntropyArray ¶ added in v0.33.0
func (*Header) PrimeStateRoot ¶ added in v0.42.0
func (*Header) PrimeTerminusHash ¶ added in v0.33.0
func (*Header) ProtoDecode ¶ added in v0.29.0
func (h *Header) ProtoDecode(protoHeader *ProtoHeader, location common.Location) error
ProtoDecode deserializes the ProtoHeader into the Header format
func (*Header) ProtoEncode ¶ added in v0.29.0
func (h *Header) ProtoEncode() (*ProtoHeader, error)
ProtoEncode serializes h into the Quai Proto Header format
func (*Header) QuaiStateSize ¶ added in v0.32.0
func (*Header) RPCMarshalHeader ¶
RPCMarshalHeader converts the given header to the RPC output .
func (*Header) ReceiptHash ¶
func (*Header) RegionStateRoot ¶ added in v0.42.0
func (*Header) SanityCheck ¶
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 ¶ added in v0.29.0
func (h *Header) SealEncode() *ProtoHeader
SealEncode serializes s into the Quai Proto sealData format
func (*Header) SetAvgTxFees ¶ added in v0.42.0
func (*Header) SetBaseFee ¶
func (*Header) SetConversionFlowAmount ¶ added in v0.42.0
func (*Header) SetEVMRoot ¶ added in v0.29.0
func (*Header) SetEfficiencyScore ¶ added in v0.29.0
func (*Header) SetEtxEligibleSlices ¶ added in v0.29.0
func (*Header) SetEtxRollupHash ¶
func (*Header) SetEtxSetRoot ¶ added in v0.29.0
func (*Header) SetExchangeRate ¶ added in v0.34.0
func (*Header) SetExpansionNumber ¶ added in v0.29.0
func (*Header) SetGasLimit ¶
func (*Header) SetGasUsed ¶
func (*Header) SetInterlinkRootHash ¶ added in v0.29.0
func (*Header) SetKQuaiDiscount ¶ added in v0.42.0
func (*Header) SetMinerDifficulty ¶ added in v0.42.0
func (*Header) SetOutboundEtxHash ¶ added in v0.33.0
func (*Header) SetParentDeltaEntropy ¶ added in v0.33.0
func (*Header) SetParentUncledDeltaEntropy ¶ added in v0.33.0
func (*Header) SetPrimeStateRoot ¶ added in v0.42.0
func (*Header) SetPrimeTerminusHash ¶ added in v0.33.0
func (*Header) SetQuaiStateSize ¶ added in v0.32.0
func (*Header) SetReceiptHash ¶
func (*Header) SetRegionStateRoot ¶ added in v0.42.0
func (*Header) SetStateLimit ¶ added in v0.32.0
func (*Header) SetStateUsed ¶ added in v0.32.0
func (*Header) SetThresholdCount ¶ added in v0.29.0
func (*Header) SetTotalFees ¶ added in v0.42.0
func (*Header) SetUTXORoot ¶ added in v0.29.0
func (*Header) SetUncleHash ¶
func (*Header) SetUncledEntropy ¶ added in v0.33.0
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 ¶ added in v0.32.0
func (*Header) ThresholdCount ¶ added in v0.29.0
func (*Header) UncledEntropy ¶ added in v0.33.0
func (*Header) UnmarshalJSON ¶
UnmarshalJSON unmarshals from JSON.
type LegacyBloom ¶ added in v0.41.0
type LegacyBloom [256]byte
func (LegacyBloom) MarshalText ¶ added in v0.41.0
func (b LegacyBloom) MarshalText() ([]byte, error)
MarshalText encodes b as a hex string with 0x prefix.
type LitecoinHeaderWrapper ¶ added in v0.49.0
type LitecoinHeaderWrapper struct {
*ltcdwire.BlockHeader
}
LitecoinHeaderWrapper wraps ltcdwire.BlockHeader to implement AuxHeaderData
func NewLitecoinBlockHeader ¶ added in v0.49.0
func NewLitecoinHeaderWrapper ¶ added in v0.49.0
func NewLitecoinHeaderWrapper(header *ltcdwire.BlockHeader) *LitecoinHeaderWrapper
func (*LitecoinHeaderWrapper) BlockHash ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) BlockHash() common.Hash
func (*LitecoinHeaderWrapper) Copy ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) Copy() AuxHeaderData
func (*LitecoinHeaderWrapper) Deserialize ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) Deserialize(r io.Reader) error
func (*LitecoinHeaderWrapper) GetBits ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) GetBits() uint32
func (*LitecoinHeaderWrapper) GetHeight ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) GetHeight() uint32
func (*LitecoinHeaderWrapper) GetMerkleRoot ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) GetMerkleRoot() [32]byte
func (*LitecoinHeaderWrapper) GetMixHash ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) GetMixHash() common.Hash
func (*LitecoinHeaderWrapper) GetNonce ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) GetNonce() uint32
func (*LitecoinHeaderWrapper) GetNonce64 ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) GetNonce64() uint64
func (*LitecoinHeaderWrapper) GetPrevBlock ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) GetPrevBlock() [32]byte
func (*LitecoinHeaderWrapper) GetSealHash ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) GetSealHash() common.Hash
func (*LitecoinHeaderWrapper) GetTimestamp ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) GetTimestamp() uint32
func (*LitecoinHeaderWrapper) GetVersion ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) GetVersion() int32
func (*LitecoinHeaderWrapper) PowHash ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) PowHash() common.Hash
func (*LitecoinHeaderWrapper) Serialize ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) Serialize(wr io.Writer) error
func (*LitecoinHeaderWrapper) SetHeight ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) SetHeight(height uint32)
func (*LitecoinHeaderWrapper) SetMixHash ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) SetMixHash(mixHash common.Hash)
func (*LitecoinHeaderWrapper) SetNonce ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) SetNonce(nonce uint32)
func (*LitecoinHeaderWrapper) SetNonce64 ¶ added in v0.49.0
func (ltc *LitecoinHeaderWrapper) SetNonce64(nonce uint64)
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) UnmarshalJSON ¶
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 ¶ added in v0.29.0
func (l *LogForStorage) ProtoDecode(protoLog *ProtoLogForStorage, location common.Location) error
ProtoDecode converts the protobuf to a log representation.
func (LogForStorage) ProtoEncode ¶ added in v0.29.0
func (l LogForStorage) ProtoEncode() *ProtoLogForStorage
ProtoEncode converts the log to a protobuf representation.
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 (Message) AccessList ¶
func (m Message) AccessList() AccessList
type MixedAccessList ¶ added in v0.34.0
type MixedAccessList []MixedAccessTuple
MixedAccessList is an access list of MixedCaseAddresses
type MixedAccessTuple ¶ added in v0.34.0
type MixedAccessTuple struct {
Address common.MixedcaseAddress `json:"address" gencodec:"required"`
StorageKeys []common.Hash `json:"storageKeys" gencodec:"required"`
}
type OutPoint ¶ added in v0.29.0
OutPoint defines a Qi data type that is used to track previous outputs
func NewOutPoint ¶ added in v0.29.0
NewOutPoint returns a new Qi transaction outpoint point with the provided hash and index.
func (*OutPoint) ProtoDecode ¶ added in v0.29.0
func (outPoint *OutPoint) ProtoDecode(protoOutPoint *ProtoOutPoint) error
func (OutPoint) ProtoEncode ¶ added in v0.29.0
func (outPoint OutPoint) ProtoEncode() (*ProtoOutPoint, error)
type OutpointAndDenomination ¶ added in v0.30.0
type OutpointAndDenomination struct {
TxHash common.Hash `json:"txHash"`
Index uint16 `json:"index"`
Denomination uint8 `json:"denomination"`
Lock *big.Int `json:"lock"`
}
func (OutpointAndDenomination) Key ¶ added in v0.30.0
func (outPoint OutpointAndDenomination) Key() string
func (*OutpointAndDenomination) ProtoDecode ¶ added in v0.30.0
func (outPoint *OutpointAndDenomination) ProtoDecode(protoOutPoint *ProtoOutPointAndDenomination) error
func (OutpointAndDenomination) ProtoEncode ¶ added in v0.30.0
func (outPoint OutpointAndDenomination) ProtoEncode() (*ProtoOutPointAndDenomination, error)
func (*OutpointAndDenomination) UnmarshalJSON ¶ added in v0.39.0
func (outpoint *OutpointAndDenomination) UnmarshalJSON(input []byte) error
type OutpointJSON ¶ added in v0.31.0
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 ¶ added in v0.29.0
func (p *PendingEtxs) ProtoDecode(protoPendingEtxs *ProtoPendingEtxs, location common.Location) error
ProtoDecode decodes the protobuf to a PendingEtxs representation.
func (*PendingEtxs) ProtoEncode ¶ added in v0.29.0
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 ¶ added in v0.29.0
func (p *PendingEtxsRollup) ProtoDecode(protoPendingEtxsRollup *ProtoPendingEtxsRollup, location common.Location) error
ProtoDecode decodes the protobuf to a PendingEtxsRollup representation.
func (*PendingEtxsRollup) ProtoEncode ¶ added in v0.29.0
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 ¶ added in v0.29.0
func (ph *PendingHeader) ProtoDecode(protoPendingHeader *ProtoPendingHeader, location common.Location) error
ProtoEncode deserializes the ProtoHeader into the Header format
func (PendingHeader) ProtoEncode ¶ added in v0.29.0
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 ¶ added in v0.29.0
func (ph *PendingHeader) SetWorkObject(wo *WorkObject)
func (PendingHeader) Termini ¶
func (ph PendingHeader) Termini() Termini
func (PendingHeader) WorkObject ¶ added in v0.29.0
func (ph PendingHeader) WorkObject() *WorkObject
accessor methods for pending header
type PowID ¶ added in v0.49.0
type PowID uint32
PowID represents a unique identifier for a proof-of-work algorithm
type PowShareDiffAndCount ¶ added in v0.49.0
type PowShareDiffAndCount struct {
// contains filtered or unexported fields
}
func NewPowShareDiffAndCount ¶ added in v0.49.0
func (*PowShareDiffAndCount) Clone ¶ added in v0.49.0
func (p *PowShareDiffAndCount) Clone() *PowShareDiffAndCount
func (*PowShareDiffAndCount) Cmp ¶ added in v0.49.0
func (p *PowShareDiffAndCount) Cmp(other *PowShareDiffAndCount) bool
func (*PowShareDiffAndCount) Count ¶ added in v0.49.0
func (p *PowShareDiffAndCount) Count() *big.Int
func (*PowShareDiffAndCount) Difficulty ¶ added in v0.49.0
func (p *PowShareDiffAndCount) Difficulty() *big.Int
func (*PowShareDiffAndCount) ProtoDecode ¶ added in v0.49.0
func (p *PowShareDiffAndCount) ProtoDecode(protoShare *ProtoPowShareDiffAndCount)
func (*PowShareDiffAndCount) ProtoEncode ¶ added in v0.49.0
func (p *PowShareDiffAndCount) ProtoEncode() *ProtoPowShareDiffAndCount
func (*PowShareDiffAndCount) RPCMarshal ¶ added in v0.49.0
func (p *PowShareDiffAndCount) RPCMarshal() map[string]interface{}
func (*PowShareDiffAndCount) SetCount ¶ added in v0.49.0
func (p *PowShareDiffAndCount) SetCount(count *big.Int)
func (*PowShareDiffAndCount) SetDifficulty ¶ added in v0.49.0
func (p *PowShareDiffAndCount) SetDifficulty(difficulty *big.Int)
func (*PowShareDiffAndCount) SetUncled ¶ added in v0.49.0
func (p *PowShareDiffAndCount) SetUncled(uncled *big.Int)
func (*PowShareDiffAndCount) Uncled ¶ added in v0.49.0
func (p *PowShareDiffAndCount) Uncled() *big.Int
func (*PowShareDiffAndCount) UnmarshalJSON ¶ added in v0.49.0
func (p *PowShareDiffAndCount) UnmarshalJSON(data []byte) error
type ProtoAccessList ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoAccessList) Descriptor() ([]byte, []int)
Deprecated: Use ProtoAccessList.ProtoReflect.Descriptor instead.
func (*ProtoAccessList) GetAccessTuples ¶ added in v0.29.0
func (x *ProtoAccessList) GetAccessTuples() []*ProtoAccessTuple
func (*ProtoAccessList) ProtoMessage ¶ added in v0.29.0
func (*ProtoAccessList) ProtoMessage()
func (*ProtoAccessList) ProtoReflect ¶ added in v0.29.0
func (x *ProtoAccessList) ProtoReflect() protoreflect.Message
func (*ProtoAccessList) Reset ¶ added in v0.29.0
func (x *ProtoAccessList) Reset()
func (*ProtoAccessList) String ¶ added in v0.29.0
func (x *ProtoAccessList) String() string
type ProtoAccessTuple ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoAccessTuple) Descriptor() ([]byte, []int)
Deprecated: Use ProtoAccessTuple.ProtoReflect.Descriptor instead.
func (*ProtoAccessTuple) GetAddress ¶ added in v0.29.0
func (x *ProtoAccessTuple) GetAddress() []byte
func (*ProtoAccessTuple) GetStorageKey ¶ added in v0.29.0
func (x *ProtoAccessTuple) GetStorageKey() []*common.ProtoHash
func (*ProtoAccessTuple) ProtoMessage ¶ added in v0.29.0
func (*ProtoAccessTuple) ProtoMessage()
func (*ProtoAccessTuple) ProtoReflect ¶ added in v0.29.0
func (x *ProtoAccessTuple) ProtoReflect() protoreflect.Message
func (*ProtoAccessTuple) Reset ¶ added in v0.29.0
func (x *ProtoAccessTuple) Reset()
func (*ProtoAccessTuple) String ¶ added in v0.29.0
func (x *ProtoAccessTuple) String() string
type ProtoAddressOutPoints ¶ added in v0.30.0
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
added in
v0.30.0
func (*ProtoAddressOutPoints) Descriptor() ([]byte, []int)
Deprecated: Use ProtoAddressOutPoints.ProtoReflect.Descriptor instead.
func (*ProtoAddressOutPoints) GetOutPoints ¶ added in v0.30.0
func (x *ProtoAddressOutPoints) GetOutPoints() []*ProtoOutPointAndDenomination
func (*ProtoAddressOutPoints) ProtoMessage ¶ added in v0.30.0
func (*ProtoAddressOutPoints) ProtoMessage()
func (*ProtoAddressOutPoints) ProtoReflect ¶ added in v0.30.0
func (x *ProtoAddressOutPoints) ProtoReflect() protoreflect.Message
func (*ProtoAddressOutPoints) Reset ¶ added in v0.30.0
func (x *ProtoAddressOutPoints) Reset()
func (*ProtoAddressOutPoints) String ¶ added in v0.30.0
func (x *ProtoAddressOutPoints) String() string
type ProtoAuxPow ¶ added in v0.49.0
type ProtoAuxPow struct {
ChainId *uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3,oneof" json:"chain_id,omitempty"`
Header []byte `protobuf:"bytes,2,opt,name=header,proto3,oneof" json:"header,omitempty"` // 120B donor header for KAWPOW (was 80B for pre-KAWPOW)
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3,oneof" json:"signature,omitempty"` // Signature proving the work
MerkleBranch [][]byte `protobuf:"bytes,4,rep,name=merkle_branch,json=merkleBranch,proto3" json:"merkle_branch,omitempty"` // Merkle branch for coinbase
Transaction []byte `protobuf:"bytes,5,opt,name=transaction,proto3,oneof" json:"transaction,omitempty"` // Full coinbase transaction (serialized wire format, contains value in TxOut[0])
SignatureTime *uint64 `protobuf:"varint,6,opt,name=signature_time,json=signatureTime,proto3,oneof" json:"signature_time,omitempty"` // Timestamp when signature was created
Auxpow2 []byte `protobuf:"bytes,7,opt,name=auxpow2,proto3,oneof" json:"auxpow2,omitempty"` // Dogecoin block hash
// contains filtered or unexported fields
}
func (*ProtoAuxPow) Descriptor
deprecated
added in
v0.49.0
func (*ProtoAuxPow) Descriptor() ([]byte, []int)
Deprecated: Use ProtoAuxPow.ProtoReflect.Descriptor instead.
func (*ProtoAuxPow) GetAuxpow2 ¶ added in v0.49.0
func (x *ProtoAuxPow) GetAuxpow2() []byte
func (*ProtoAuxPow) GetChainId ¶ added in v0.49.0
func (x *ProtoAuxPow) GetChainId() uint32
func (*ProtoAuxPow) GetHeader ¶ added in v0.49.0
func (x *ProtoAuxPow) GetHeader() []byte
func (*ProtoAuxPow) GetMerkleBranch ¶ added in v0.49.0
func (x *ProtoAuxPow) GetMerkleBranch() [][]byte
func (*ProtoAuxPow) GetSignature ¶ added in v0.49.0
func (x *ProtoAuxPow) GetSignature() []byte
func (*ProtoAuxPow) GetSignatureTime ¶ added in v0.49.0
func (x *ProtoAuxPow) GetSignatureTime() uint64
func (*ProtoAuxPow) GetTransaction ¶ added in v0.49.0
func (x *ProtoAuxPow) GetTransaction() []byte
func (*ProtoAuxPow) ProtoMessage ¶ added in v0.49.0
func (*ProtoAuxPow) ProtoMessage()
func (*ProtoAuxPow) ProtoReflect ¶ added in v0.49.0
func (x *ProtoAuxPow) ProtoReflect() protoreflect.Message
func (*ProtoAuxPow) Reset ¶ added in v0.49.0
func (x *ProtoAuxPow) Reset()
func (*ProtoAuxPow) String ¶ added in v0.49.0
func (x *ProtoAuxPow) String() string
type ProtoAuxTemplate ¶ added in v0.49.0
type ProtoAuxTemplate struct {
// === Consensus-correspondence (signed; Quai validators check against AuxPoW) ===
ChainId *uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3,oneof" json:"chain_id,omitempty"` // must match ap.Chain (RVN)
PrevHash []byte `protobuf:"bytes,2,opt,name=prev_hash,json=prevHash,proto3,oneof" json:"prev_hash,omitempty"` // 32 bytes - must equal donor_header.hashPrevBlock
// === Header/DAA knobs for job construction (signed) ===
Version *uint32 `protobuf:"varint,3,opt,name=version,proto3,oneof" json:"version,omitempty"` // header.nVersion to use
Bits *uint32 `protobuf:"varint,4,opt,name=bits,proto3,oneof" json:"bits,omitempty"` // header.nBits
SignatureTime *uint32 `protobuf:"varint,5,opt,name=signature_time,json=signatureTime,proto3,oneof" json:"signature_time,omitempty"` // time at which the aux template was signed
Height *uint32 `protobuf:"varint,6,opt,name=height,proto3,oneof" json:"height,omitempty"` // BIP34 height (needed for scriptSig + KAWPOW epoch hint)
// CoinbaseOut is the coinbase payout
CoinbaseOut []byte `protobuf:"bytes,7,opt,name=coinbase_out,json=coinbaseOut,proto3,oneof" json:"coinbase_out,omitempty"` // full coinbase output script (scriptPubKey)
// Mode B: LOCKED TX SET (miners get fees; template is larger & updated more often)
MerkleBranch [][]byte `protobuf:"bytes,8,rep,name=merkle_branch,json=merkleBranch,proto3" json:"merkle_branch,omitempty"` // siblings for coinbase index=0 up to root (little endian 32-byte hashes)
// === Quorum signatures over CanonicalEncode(template WITHOUT Sigs) ===
Sigs []byte `protobuf:"bytes,9,opt,name=sigs,proto3,oneof" json:"sigs,omitempty"`
AuxPow2 []byte `protobuf:"bytes,10,opt,name=aux_pow2,json=auxPow2,proto3,oneof" json:"aux_pow2,omitempty"` // auxiliary proof-of-work data
// contains filtered or unexported fields
}
func (*ProtoAuxTemplate) Descriptor
deprecated
added in
v0.49.0
func (*ProtoAuxTemplate) Descriptor() ([]byte, []int)
Deprecated: Use ProtoAuxTemplate.ProtoReflect.Descriptor instead.
func (*ProtoAuxTemplate) GetAuxPow2 ¶ added in v0.49.0
func (x *ProtoAuxTemplate) GetAuxPow2() []byte
func (*ProtoAuxTemplate) GetBits ¶ added in v0.49.0
func (x *ProtoAuxTemplate) GetBits() uint32
func (*ProtoAuxTemplate) GetChainId ¶ added in v0.49.0
func (x *ProtoAuxTemplate) GetChainId() uint32
func (*ProtoAuxTemplate) GetCoinbaseOut ¶ added in v0.49.0
func (x *ProtoAuxTemplate) GetCoinbaseOut() []byte
func (*ProtoAuxTemplate) GetHeight ¶ added in v0.49.0
func (x *ProtoAuxTemplate) GetHeight() uint32
func (*ProtoAuxTemplate) GetMerkleBranch ¶ added in v0.49.0
func (x *ProtoAuxTemplate) GetMerkleBranch() [][]byte
func (*ProtoAuxTemplate) GetPrevHash ¶ added in v0.49.0
func (x *ProtoAuxTemplate) GetPrevHash() []byte
func (*ProtoAuxTemplate) GetSignatureTime ¶ added in v0.49.0
func (x *ProtoAuxTemplate) GetSignatureTime() uint32
func (*ProtoAuxTemplate) GetSigs ¶ added in v0.49.0
func (x *ProtoAuxTemplate) GetSigs() []byte
func (*ProtoAuxTemplate) GetVersion ¶ added in v0.49.0
func (x *ProtoAuxTemplate) GetVersion() uint32
func (*ProtoAuxTemplate) ProtoMessage ¶ added in v0.49.0
func (*ProtoAuxTemplate) ProtoMessage()
func (*ProtoAuxTemplate) ProtoReflect ¶ added in v0.49.0
func (x *ProtoAuxTemplate) ProtoReflect() protoreflect.Message
func (*ProtoAuxTemplate) Reset ¶ added in v0.49.0
func (x *ProtoAuxTemplate) Reset()
func (*ProtoAuxTemplate) String ¶ added in v0.49.0
func (x *ProtoAuxTemplate) String() string
type ProtoBetas ¶ added in v0.35.0
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
added in
v0.35.0
func (*ProtoBetas) Descriptor() ([]byte, []int)
Deprecated: Use ProtoBetas.ProtoReflect.Descriptor instead.
func (*ProtoBetas) GetBeta0 ¶ added in v0.35.0
func (x *ProtoBetas) GetBeta0() []byte
func (*ProtoBetas) GetBeta1 ¶ added in v0.35.0
func (x *ProtoBetas) GetBeta1() []byte
func (*ProtoBetas) ProtoMessage ¶ added in v0.35.0
func (*ProtoBetas) ProtoMessage()
func (*ProtoBetas) ProtoReflect ¶ added in v0.35.0
func (x *ProtoBetas) ProtoReflect() protoreflect.Message
func (*ProtoBetas) Reset ¶ added in v0.35.0
func (x *ProtoBetas) Reset()
func (*ProtoBetas) String ¶ added in v0.35.0
func (x *ProtoBetas) String() string
type ProtoEtxSet ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoEtxSet) Descriptor() ([]byte, []int)
Deprecated: Use ProtoEtxSet.ProtoReflect.Descriptor instead.
func (*ProtoEtxSet) GetEtxHashes ¶ added in v0.29.0
func (x *ProtoEtxSet) GetEtxHashes() []byte
func (*ProtoEtxSet) ProtoMessage ¶ added in v0.29.0
func (*ProtoEtxSet) ProtoMessage()
func (*ProtoEtxSet) ProtoReflect ¶ added in v0.29.0
func (x *ProtoEtxSet) ProtoReflect() protoreflect.Message
func (*ProtoEtxSet) Reset ¶ added in v0.29.0
func (x *ProtoEtxSet) Reset()
func (*ProtoEtxSet) String ¶ added in v0.29.0
func (x *ProtoEtxSet) String() string
type ProtoHeader ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoHeader) Descriptor() ([]byte, []int)
Deprecated: Use ProtoHeader.ProtoReflect.Descriptor instead.
func (*ProtoHeader) GetAvgTxFees ¶ added in v0.42.0
func (x *ProtoHeader) GetAvgTxFees() []byte
func (*ProtoHeader) GetBaseFee ¶ added in v0.29.0
func (x *ProtoHeader) GetBaseFee() []byte
func (*ProtoHeader) GetConversionFlowAmount ¶ added in v0.42.0
func (x *ProtoHeader) GetConversionFlowAmount() []byte
func (*ProtoHeader) GetDifficulty ¶ added in v0.29.0
func (x *ProtoHeader) GetDifficulty() []byte
func (*ProtoHeader) GetEfficiencyScore ¶ added in v0.29.0
func (x *ProtoHeader) GetEfficiencyScore() uint64
func (*ProtoHeader) GetEtxEligibleSlices ¶ added in v0.29.0
func (x *ProtoHeader) GetEtxEligibleSlices() *common.ProtoHash
func (*ProtoHeader) GetEtxRollupHash ¶ added in v0.29.0
func (x *ProtoHeader) GetEtxRollupHash() *common.ProtoHash
func (*ProtoHeader) GetEtxSetRoot ¶ added in v0.29.0
func (x *ProtoHeader) GetEtxSetRoot() *common.ProtoHash
func (*ProtoHeader) GetEvmRoot ¶ added in v0.29.0
func (x *ProtoHeader) GetEvmRoot() *common.ProtoHash
func (*ProtoHeader) GetExchangeRate ¶ added in v0.34.0
func (x *ProtoHeader) GetExchangeRate() []byte
func (*ProtoHeader) GetExpansionNumber ¶ added in v0.29.0
func (x *ProtoHeader) GetExpansionNumber() uint64
func (*ProtoHeader) GetExtra ¶ added in v0.29.0
func (x *ProtoHeader) GetExtra() []byte
func (*ProtoHeader) GetGasLimit ¶ added in v0.29.0
func (x *ProtoHeader) GetGasLimit() uint64
func (*ProtoHeader) GetGasUsed ¶ added in v0.29.0
func (x *ProtoHeader) GetGasUsed() uint64
func (*ProtoHeader) GetInterlinkRootHash ¶ added in v0.29.0
func (x *ProtoHeader) GetInterlinkRootHash() *common.ProtoHash
func (*ProtoHeader) GetKQuaiDiscount ¶ added in v0.42.0
func (x *ProtoHeader) GetKQuaiDiscount() []byte
func (*ProtoHeader) GetLocation ¶ added in v0.29.0
func (x *ProtoHeader) GetLocation() *common.ProtoLocation
func (*ProtoHeader) GetManifestHash ¶ added in v0.29.0
func (x *ProtoHeader) GetManifestHash() []*common.ProtoHash
func (*ProtoHeader) GetMinerDifficulty ¶ added in v0.42.0
func (x *ProtoHeader) GetMinerDifficulty() []byte
func (*ProtoHeader) GetMixHash ¶ added in v0.29.0
func (x *ProtoHeader) GetMixHash() *common.ProtoHash
func (*ProtoHeader) GetNonce ¶ added in v0.29.0
func (x *ProtoHeader) GetNonce() uint64
func (*ProtoHeader) GetNumber ¶ added in v0.29.0
func (x *ProtoHeader) GetNumber() [][]byte
func (*ProtoHeader) GetOutboundEtxHash ¶ added in v0.33.0
func (x *ProtoHeader) GetOutboundEtxHash() *common.ProtoHash
func (*ProtoHeader) GetParentDeltaEntropy ¶ added in v0.33.0
func (x *ProtoHeader) GetParentDeltaEntropy() [][]byte
func (*ProtoHeader) GetParentEntropy ¶ added in v0.29.0
func (x *ProtoHeader) GetParentEntropy() [][]byte
func (*ProtoHeader) GetParentHash ¶ added in v0.29.0
func (x *ProtoHeader) GetParentHash() []*common.ProtoHash
func (*ProtoHeader) GetParentUncledDeltaEntropy ¶ added in v0.33.0
func (x *ProtoHeader) GetParentUncledDeltaEntropy() [][]byte
func (*ProtoHeader) GetPrimeStateRoot ¶ added in v0.42.0
func (x *ProtoHeader) GetPrimeStateRoot() *common.ProtoHash
func (*ProtoHeader) GetPrimeTerminusHash ¶ added in v0.33.0
func (x *ProtoHeader) GetPrimeTerminusHash() *common.ProtoHash
func (*ProtoHeader) GetQuaiStateSize ¶ added in v0.32.0
func (x *ProtoHeader) GetQuaiStateSize() []byte
func (*ProtoHeader) GetReceiptHash ¶ added in v0.29.0
func (x *ProtoHeader) GetReceiptHash() *common.ProtoHash
func (*ProtoHeader) GetRegionStateRoot ¶ added in v0.42.0
func (x *ProtoHeader) GetRegionStateRoot() *common.ProtoHash
func (*ProtoHeader) GetStateLimit ¶ added in v0.32.0
func (x *ProtoHeader) GetStateLimit() uint64
func (*ProtoHeader) GetStateUsed ¶ added in v0.32.0
func (x *ProtoHeader) GetStateUsed() uint64
func (*ProtoHeader) GetThresholdCount ¶ added in v0.29.0
func (x *ProtoHeader) GetThresholdCount() uint64
func (*ProtoHeader) GetTotalFees ¶ added in v0.42.0
func (x *ProtoHeader) GetTotalFees() []byte
func (*ProtoHeader) GetTxHash ¶ added in v0.29.0
func (x *ProtoHeader) GetTxHash() *common.ProtoHash
func (*ProtoHeader) GetUncleHash ¶ added in v0.29.0
func (x *ProtoHeader) GetUncleHash() *common.ProtoHash
func (*ProtoHeader) GetUncledEntropy ¶ added in v0.33.0
func (x *ProtoHeader) GetUncledEntropy() []byte
func (*ProtoHeader) GetUtxoRoot ¶ added in v0.29.0
func (x *ProtoHeader) GetUtxoRoot() *common.ProtoHash
func (*ProtoHeader) ProtoMessage ¶ added in v0.29.0
func (*ProtoHeader) ProtoMessage()
func (*ProtoHeader) ProtoReflect ¶ added in v0.29.0
func (x *ProtoHeader) ProtoReflect() protoreflect.Message
func (*ProtoHeader) Reset ¶ added in v0.29.0
func (x *ProtoHeader) Reset()
func (*ProtoHeader) String ¶ added in v0.29.0
func (x *ProtoHeader) String() string
type ProtoHeaders ¶ added in v0.29.0
type ProtoHeaders struct {
Headers []*ProtoHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoHeaders) Descriptor
deprecated
added in
v0.29.0
func (*ProtoHeaders) Descriptor() ([]byte, []int)
Deprecated: Use ProtoHeaders.ProtoReflect.Descriptor instead.
func (*ProtoHeaders) GetHeaders ¶ added in v0.29.0
func (x *ProtoHeaders) GetHeaders() []*ProtoHeader
func (*ProtoHeaders) ProtoMessage ¶ added in v0.29.0
func (*ProtoHeaders) ProtoMessage()
func (*ProtoHeaders) ProtoReflect ¶ added in v0.29.0
func (x *ProtoHeaders) ProtoReflect() protoreflect.Message
func (*ProtoHeaders) Reset ¶ added in v0.29.0
func (x *ProtoHeaders) Reset()
func (*ProtoHeaders) String ¶ added in v0.29.0
func (x *ProtoHeaders) String() string
type ProtoKeyValue ¶ added in v0.42.0
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
added in
v0.42.0
func (*ProtoKeyValue) Descriptor() ([]byte, []int)
Deprecated: Use ProtoKeyValue.ProtoReflect.Descriptor instead.
func (*ProtoKeyValue) GetKey ¶ added in v0.42.0
func (x *ProtoKeyValue) GetKey() []byte
func (*ProtoKeyValue) GetValue ¶ added in v0.42.0
func (x *ProtoKeyValue) GetValue() []byte
func (*ProtoKeyValue) ProtoMessage ¶ added in v0.42.0
func (*ProtoKeyValue) ProtoMessage()
func (*ProtoKeyValue) ProtoReflect ¶ added in v0.42.0
func (x *ProtoKeyValue) ProtoReflect() protoreflect.Message
func (*ProtoKeyValue) Reset ¶ added in v0.42.0
func (x *ProtoKeyValue) Reset()
func (*ProtoKeyValue) String ¶ added in v0.42.0
func (x *ProtoKeyValue) String() string
type ProtoKeys ¶ added in v0.32.0
type ProtoKeys struct {
Keys [][]byte `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoKeys) Descriptor
deprecated
added in
v0.32.0
func (*ProtoKeys) ProtoMessage ¶ added in v0.32.0
func (*ProtoKeys) ProtoMessage()
func (*ProtoKeys) ProtoReflect ¶ added in v0.32.0
func (x *ProtoKeys) ProtoReflect() protoreflect.Message
type ProtoKeysAndValues ¶ added in v0.42.0
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
added in
v0.42.0
func (*ProtoKeysAndValues) Descriptor() ([]byte, []int)
Deprecated: Use ProtoKeysAndValues.ProtoReflect.Descriptor instead.
func (*ProtoKeysAndValues) GetKeysAndValues ¶ added in v0.42.0
func (x *ProtoKeysAndValues) GetKeysAndValues() []*ProtoKeyValue
func (*ProtoKeysAndValues) ProtoMessage ¶ added in v0.42.0
func (*ProtoKeysAndValues) ProtoMessage()
func (*ProtoKeysAndValues) ProtoReflect ¶ added in v0.42.0
func (x *ProtoKeysAndValues) ProtoReflect() protoreflect.Message
func (*ProtoKeysAndValues) Reset ¶ added in v0.42.0
func (x *ProtoKeysAndValues) Reset()
func (*ProtoKeysAndValues) String ¶ added in v0.42.0
func (x *ProtoKeysAndValues) String() string
type ProtoLockedBalance ¶ added in v0.43.2
type ProtoLockedBalance struct {
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoLockedBalance) Descriptor
deprecated
added in
v0.43.2
func (*ProtoLockedBalance) Descriptor() ([]byte, []int)
Deprecated: Use ProtoLockedBalance.ProtoReflect.Descriptor instead.
func (*ProtoLockedBalance) GetValue ¶ added in v0.43.2
func (x *ProtoLockedBalance) GetValue() []byte
func (*ProtoLockedBalance) ProtoMessage ¶ added in v0.43.2
func (*ProtoLockedBalance) ProtoMessage()
func (*ProtoLockedBalance) ProtoReflect ¶ added in v0.43.2
func (x *ProtoLockedBalance) ProtoReflect() protoreflect.Message
func (*ProtoLockedBalance) Reset ¶ added in v0.43.2
func (x *ProtoLockedBalance) Reset()
func (*ProtoLockedBalance) String ¶ added in v0.43.2
func (x *ProtoLockedBalance) String() string
type ProtoLockup ¶ added in v0.41.0
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
added in
v0.41.0
func (*ProtoLockup) Descriptor() ([]byte, []int)
Deprecated: Use ProtoLockup.ProtoReflect.Descriptor instead.
func (*ProtoLockup) GetAddress ¶ added in v0.43.2
func (x *ProtoLockup) GetAddress() *common.ProtoAddress
func (*ProtoLockup) GetUnlockHeight ¶ added in v0.41.0
func (x *ProtoLockup) GetUnlockHeight() uint64
func (*ProtoLockup) GetValue ¶ added in v0.41.0
func (x *ProtoLockup) GetValue() []byte
func (*ProtoLockup) ProtoMessage ¶ added in v0.41.0
func (*ProtoLockup) ProtoMessage()
func (*ProtoLockup) ProtoReflect ¶ added in v0.41.0
func (x *ProtoLockup) ProtoReflect() protoreflect.Message
func (*ProtoLockup) Reset ¶ added in v0.41.0
func (x *ProtoLockup) Reset()
func (*ProtoLockup) String ¶ added in v0.41.0
func (x *ProtoLockup) String() string
type ProtoLockups ¶ added in v0.41.0
type ProtoLockups struct {
Lockups []*ProtoLockup `protobuf:"bytes,1,rep,name=lockups,proto3" json:"lockups,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoLockups) Descriptor
deprecated
added in
v0.41.0
func (*ProtoLockups) Descriptor() ([]byte, []int)
Deprecated: Use ProtoLockups.ProtoReflect.Descriptor instead.
func (*ProtoLockups) GetLockups ¶ added in v0.41.0
func (x *ProtoLockups) GetLockups() []*ProtoLockup
func (*ProtoLockups) ProtoMessage ¶ added in v0.41.0
func (*ProtoLockups) ProtoMessage()
func (*ProtoLockups) ProtoReflect ¶ added in v0.41.0
func (x *ProtoLockups) ProtoReflect() protoreflect.Message
func (*ProtoLockups) Reset ¶ added in v0.41.0
func (x *ProtoLockups) Reset()
func (*ProtoLockups) String ¶ added in v0.41.0
func (x *ProtoLockups) String() string
type ProtoLogForStorage ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoLogForStorage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoLogForStorage.ProtoReflect.Descriptor instead.
func (*ProtoLogForStorage) GetAddress ¶ added in v0.29.0
func (x *ProtoLogForStorage) GetAddress() *common.ProtoAddress
func (*ProtoLogForStorage) GetData ¶ added in v0.29.0
func (x *ProtoLogForStorage) GetData() []byte
func (*ProtoLogForStorage) GetTopics ¶ added in v0.29.0
func (x *ProtoLogForStorage) GetTopics() []*common.ProtoHash
func (*ProtoLogForStorage) ProtoMessage ¶ added in v0.29.0
func (*ProtoLogForStorage) ProtoMessage()
func (*ProtoLogForStorage) ProtoReflect ¶ added in v0.29.0
func (x *ProtoLogForStorage) ProtoReflect() protoreflect.Message
func (*ProtoLogForStorage) Reset ¶ added in v0.29.0
func (x *ProtoLogForStorage) Reset()
func (*ProtoLogForStorage) String ¶ added in v0.29.0
func (x *ProtoLogForStorage) String() string
type ProtoLogsForStorage ¶ added in v0.29.0
type ProtoLogsForStorage struct {
Logs []*ProtoLogForStorage `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoLogsForStorage) Descriptor
deprecated
added in
v0.29.0
func (*ProtoLogsForStorage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoLogsForStorage.ProtoReflect.Descriptor instead.
func (*ProtoLogsForStorage) GetLogs ¶ added in v0.29.0
func (x *ProtoLogsForStorage) GetLogs() []*ProtoLogForStorage
func (*ProtoLogsForStorage) ProtoMessage ¶ added in v0.29.0
func (*ProtoLogsForStorage) ProtoMessage()
func (*ProtoLogsForStorage) ProtoReflect ¶ added in v0.29.0
func (x *ProtoLogsForStorage) ProtoReflect() protoreflect.Message
func (*ProtoLogsForStorage) Reset ¶ added in v0.29.0
func (x *ProtoLogsForStorage) Reset()
func (*ProtoLogsForStorage) String ¶ added in v0.29.0
func (x *ProtoLogsForStorage) String() string
type ProtoManifest ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoManifest) Descriptor() ([]byte, []int)
Deprecated: Use ProtoManifest.ProtoReflect.Descriptor instead.
func (*ProtoManifest) GetManifest ¶ added in v0.29.0
func (x *ProtoManifest) GetManifest() []*common.ProtoHash
func (*ProtoManifest) ProtoMessage ¶ added in v0.29.0
func (*ProtoManifest) ProtoMessage()
func (*ProtoManifest) ProtoReflect ¶ added in v0.29.0
func (x *ProtoManifest) ProtoReflect() protoreflect.Message
func (*ProtoManifest) Reset ¶ added in v0.29.0
func (x *ProtoManifest) Reset()
func (*ProtoManifest) String ¶ added in v0.29.0
func (x *ProtoManifest) String() string
type ProtoOutPoint ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoOutPoint) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOutPoint.ProtoReflect.Descriptor instead.
func (*ProtoOutPoint) GetHash ¶ added in v0.29.0
func (x *ProtoOutPoint) GetHash() *common.ProtoHash
func (*ProtoOutPoint) GetIndex ¶ added in v0.29.0
func (x *ProtoOutPoint) GetIndex() uint32
func (*ProtoOutPoint) ProtoMessage ¶ added in v0.29.0
func (*ProtoOutPoint) ProtoMessage()
func (*ProtoOutPoint) ProtoReflect ¶ added in v0.29.0
func (x *ProtoOutPoint) ProtoReflect() protoreflect.Message
func (*ProtoOutPoint) Reset ¶ added in v0.29.0
func (x *ProtoOutPoint) Reset()
func (*ProtoOutPoint) String ¶ added in v0.29.0
func (x *ProtoOutPoint) String() string
type ProtoOutPointAndDenomination ¶ added in v0.30.0
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
added in
v0.30.0
func (*ProtoOutPointAndDenomination) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOutPointAndDenomination.ProtoReflect.Descriptor instead.
func (*ProtoOutPointAndDenomination) GetDenomination ¶ added in v0.30.0
func (x *ProtoOutPointAndDenomination) GetDenomination() uint32
func (*ProtoOutPointAndDenomination) GetHash ¶ added in v0.30.0
func (x *ProtoOutPointAndDenomination) GetHash() *common.ProtoHash
func (*ProtoOutPointAndDenomination) GetIndex ¶ added in v0.30.0
func (x *ProtoOutPointAndDenomination) GetIndex() uint32
func (*ProtoOutPointAndDenomination) GetLock ¶ added in v0.38.0
func (x *ProtoOutPointAndDenomination) GetLock() []byte
func (*ProtoOutPointAndDenomination) ProtoMessage ¶ added in v0.30.0
func (*ProtoOutPointAndDenomination) ProtoMessage()
func (*ProtoOutPointAndDenomination) ProtoReflect ¶ added in v0.30.0
func (x *ProtoOutPointAndDenomination) ProtoReflect() protoreflect.Message
func (*ProtoOutPointAndDenomination) Reset ¶ added in v0.30.0
func (x *ProtoOutPointAndDenomination) Reset()
func (*ProtoOutPointAndDenomination) String ¶ added in v0.30.0
func (x *ProtoOutPointAndDenomination) String() string
type ProtoPendingEtxs ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoPendingEtxs) Descriptor() ([]byte, []int)
Deprecated: Use ProtoPendingEtxs.ProtoReflect.Descriptor instead.
func (*ProtoPendingEtxs) GetHeader ¶ added in v0.29.0
func (x *ProtoPendingEtxs) GetHeader() *ProtoWorkObject
func (*ProtoPendingEtxs) GetOutboundEtxs ¶ added in v0.33.0
func (x *ProtoPendingEtxs) GetOutboundEtxs() *ProtoTransactions
func (*ProtoPendingEtxs) ProtoMessage ¶ added in v0.29.0
func (*ProtoPendingEtxs) ProtoMessage()
func (*ProtoPendingEtxs) ProtoReflect ¶ added in v0.29.0
func (x *ProtoPendingEtxs) ProtoReflect() protoreflect.Message
func (*ProtoPendingEtxs) Reset ¶ added in v0.29.0
func (x *ProtoPendingEtxs) Reset()
func (*ProtoPendingEtxs) String ¶ added in v0.29.0
func (x *ProtoPendingEtxs) String() string
type ProtoPendingEtxsRollup ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoPendingEtxsRollup) Descriptor() ([]byte, []int)
Deprecated: Use ProtoPendingEtxsRollup.ProtoReflect.Descriptor instead.
func (*ProtoPendingEtxsRollup) GetEtxsRollup ¶ added in v0.29.0
func (x *ProtoPendingEtxsRollup) GetEtxsRollup() *ProtoTransactions
func (*ProtoPendingEtxsRollup) GetHeader ¶ added in v0.29.0
func (x *ProtoPendingEtxsRollup) GetHeader() *ProtoWorkObject
func (*ProtoPendingEtxsRollup) ProtoMessage ¶ added in v0.29.0
func (*ProtoPendingEtxsRollup) ProtoMessage()
func (*ProtoPendingEtxsRollup) ProtoReflect ¶ added in v0.29.0
func (x *ProtoPendingEtxsRollup) ProtoReflect() protoreflect.Message
func (*ProtoPendingEtxsRollup) Reset ¶ added in v0.29.0
func (x *ProtoPendingEtxsRollup) Reset()
func (*ProtoPendingEtxsRollup) String ¶ added in v0.29.0
func (x *ProtoPendingEtxsRollup) String() string
type ProtoPendingHeader ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoPendingHeader) Descriptor() ([]byte, []int)
Deprecated: Use ProtoPendingHeader.ProtoReflect.Descriptor instead.
func (*ProtoPendingHeader) GetTermini ¶ added in v0.29.0
func (x *ProtoPendingHeader) GetTermini() *ProtoTermini
func (*ProtoPendingHeader) GetWo ¶ added in v0.29.0
func (x *ProtoPendingHeader) GetWo() *ProtoWorkObject
func (*ProtoPendingHeader) ProtoMessage ¶ added in v0.29.0
func (*ProtoPendingHeader) ProtoMessage()
func (*ProtoPendingHeader) ProtoReflect ¶ added in v0.29.0
func (x *ProtoPendingHeader) ProtoReflect() protoreflect.Message
func (*ProtoPendingHeader) Reset ¶ added in v0.29.0
func (x *ProtoPendingHeader) Reset()
func (*ProtoPendingHeader) String ¶ added in v0.29.0
func (x *ProtoPendingHeader) String() string
type ProtoPowShareDiffAndCount ¶ added in v0.49.0
type ProtoPowShareDiffAndCount struct {
// contains filtered or unexported fields
}
func (*ProtoPowShareDiffAndCount) Descriptor
deprecated
added in
v0.49.0
func (*ProtoPowShareDiffAndCount) Descriptor() ([]byte, []int)
Deprecated: Use ProtoPowShareDiffAndCount.ProtoReflect.Descriptor instead.
func (*ProtoPowShareDiffAndCount) GetCount ¶ added in v0.49.0
func (x *ProtoPowShareDiffAndCount) GetCount() []byte
func (*ProtoPowShareDiffAndCount) GetDifficulty ¶ added in v0.49.0
func (x *ProtoPowShareDiffAndCount) GetDifficulty() []byte
func (*ProtoPowShareDiffAndCount) GetUncled ¶ added in v0.49.0
func (x *ProtoPowShareDiffAndCount) GetUncled() []byte
func (*ProtoPowShareDiffAndCount) ProtoMessage ¶ added in v0.49.0
func (*ProtoPowShareDiffAndCount) ProtoMessage()
func (*ProtoPowShareDiffAndCount) ProtoReflect ¶ added in v0.49.0
func (x *ProtoPowShareDiffAndCount) ProtoReflect() protoreflect.Message
func (*ProtoPowShareDiffAndCount) Reset ¶ added in v0.49.0
func (x *ProtoPowShareDiffAndCount) Reset()
func (*ProtoPowShareDiffAndCount) String ¶ added in v0.49.0
func (x *ProtoPowShareDiffAndCount) String() string
type ProtoReceiptForStorage ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoReceiptForStorage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoReceiptForStorage.ProtoReflect.Descriptor instead.
func (*ProtoReceiptForStorage) GetContractAddress ¶ added in v0.29.0
func (x *ProtoReceiptForStorage) GetContractAddress() *common.ProtoAddress
func (*ProtoReceiptForStorage) GetCumulativeGasUsed ¶ added in v0.29.0
func (x *ProtoReceiptForStorage) GetCumulativeGasUsed() uint64
func (*ProtoReceiptForStorage) GetGasUsed ¶ added in v0.29.0
func (x *ProtoReceiptForStorage) GetGasUsed() uint64
func (*ProtoReceiptForStorage) GetLogs ¶ added in v0.29.0
func (x *ProtoReceiptForStorage) GetLogs() *ProtoLogsForStorage
func (*ProtoReceiptForStorage) GetOutboundEtxs ¶ added in v0.33.0
func (x *ProtoReceiptForStorage) GetOutboundEtxs() *ProtoTransactions
func (*ProtoReceiptForStorage) GetPostStateOrStatus ¶ added in v0.29.0
func (x *ProtoReceiptForStorage) GetPostStateOrStatus() []byte
func (*ProtoReceiptForStorage) GetTxHash ¶ added in v0.29.0
func (x *ProtoReceiptForStorage) GetTxHash() *common.ProtoHash
func (*ProtoReceiptForStorage) ProtoMessage ¶ added in v0.29.0
func (*ProtoReceiptForStorage) ProtoMessage()
func (*ProtoReceiptForStorage) ProtoReflect ¶ added in v0.29.0
func (x *ProtoReceiptForStorage) ProtoReflect() protoreflect.Message
func (*ProtoReceiptForStorage) Reset ¶ added in v0.29.0
func (x *ProtoReceiptForStorage) Reset()
func (*ProtoReceiptForStorage) String ¶ added in v0.29.0
func (x *ProtoReceiptForStorage) String() string
type ProtoReceiptsForStorage ¶ added in v0.29.0
type ProtoReceiptsForStorage struct {
Receipts []*ProtoReceiptForStorage `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoReceiptsForStorage) Descriptor
deprecated
added in
v0.29.0
func (*ProtoReceiptsForStorage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoReceiptsForStorage.ProtoReflect.Descriptor instead.
func (*ProtoReceiptsForStorage) GetReceipts ¶ added in v0.29.0
func (x *ProtoReceiptsForStorage) GetReceipts() []*ProtoReceiptForStorage
func (*ProtoReceiptsForStorage) ProtoMessage ¶ added in v0.29.0
func (*ProtoReceiptsForStorage) ProtoMessage()
func (*ProtoReceiptsForStorage) ProtoReflect ¶ added in v0.29.0
func (x *ProtoReceiptsForStorage) ProtoReflect() protoreflect.Message
func (*ProtoReceiptsForStorage) Reset ¶ added in v0.29.0
func (x *ProtoReceiptsForStorage) Reset()
func (*ProtoReceiptsForStorage) String ¶ added in v0.29.0
func (x *ProtoReceiptsForStorage) String() string
type ProtoSpentUTXO ¶ added in v0.32.0
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
added in
v0.32.0
func (*ProtoSpentUTXO) Descriptor() ([]byte, []int)
Deprecated: Use ProtoSpentUTXO.ProtoReflect.Descriptor instead.
func (*ProtoSpentUTXO) GetOutpoint ¶ added in v0.32.0
func (x *ProtoSpentUTXO) GetOutpoint() *ProtoOutPoint
func (*ProtoSpentUTXO) GetSutxo ¶ added in v0.32.0
func (x *ProtoSpentUTXO) GetSutxo() *ProtoTxOut
func (*ProtoSpentUTXO) ProtoMessage ¶ added in v0.32.0
func (*ProtoSpentUTXO) ProtoMessage()
func (*ProtoSpentUTXO) ProtoReflect ¶ added in v0.32.0
func (x *ProtoSpentUTXO) ProtoReflect() protoreflect.Message
func (*ProtoSpentUTXO) Reset ¶ added in v0.32.0
func (x *ProtoSpentUTXO) Reset()
func (*ProtoSpentUTXO) String ¶ added in v0.32.0
func (x *ProtoSpentUTXO) String() string
type ProtoSpentUTXOs ¶ added in v0.32.0
type ProtoSpentUTXOs struct {
Sutxos []*ProtoSpentUTXO `protobuf:"bytes,1,rep,name=sutxos,proto3" json:"sutxos,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoSpentUTXOs) Descriptor
deprecated
added in
v0.32.0
func (*ProtoSpentUTXOs) Descriptor() ([]byte, []int)
Deprecated: Use ProtoSpentUTXOs.ProtoReflect.Descriptor instead.
func (*ProtoSpentUTXOs) GetSutxos ¶ added in v0.32.0
func (x *ProtoSpentUTXOs) GetSutxos() []*ProtoSpentUTXO
func (*ProtoSpentUTXOs) ProtoMessage ¶ added in v0.32.0
func (*ProtoSpentUTXOs) ProtoMessage()
func (*ProtoSpentUTXOs) ProtoReflect ¶ added in v0.32.0
func (x *ProtoSpentUTXOs) ProtoReflect() protoreflect.Message
func (*ProtoSpentUTXOs) Reset ¶ added in v0.32.0
func (x *ProtoSpentUTXOs) Reset()
func (*ProtoSpentUTXOs) String ¶ added in v0.32.0
func (x *ProtoSpentUTXOs) String() string
type ProtoSupplyAnalytics ¶ added in v0.42.2
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
added in
v0.42.2
func (*ProtoSupplyAnalytics) Descriptor() ([]byte, []int)
Deprecated: Use ProtoSupplyAnalytics.ProtoReflect.Descriptor instead.
func (*ProtoSupplyAnalytics) GetSupplyAddedQi ¶ added in v0.42.2
func (x *ProtoSupplyAnalytics) GetSupplyAddedQi() []byte
func (*ProtoSupplyAnalytics) GetSupplyAddedQuai ¶ added in v0.42.2
func (x *ProtoSupplyAnalytics) GetSupplyAddedQuai() []byte
func (*ProtoSupplyAnalytics) GetSupplyRemovedQi ¶ added in v0.42.2
func (x *ProtoSupplyAnalytics) GetSupplyRemovedQi() []byte
func (*ProtoSupplyAnalytics) GetSupplyRemovedQuai ¶ added in v0.42.2
func (x *ProtoSupplyAnalytics) GetSupplyRemovedQuai() []byte
func (*ProtoSupplyAnalytics) GetTotalSupplyQi ¶ added in v0.42.2
func (x *ProtoSupplyAnalytics) GetTotalSupplyQi() []byte
func (*ProtoSupplyAnalytics) GetTotalSupplyQuai ¶ added in v0.42.2
func (x *ProtoSupplyAnalytics) GetTotalSupplyQuai() []byte
func (*ProtoSupplyAnalytics) ProtoMessage ¶ added in v0.42.2
func (*ProtoSupplyAnalytics) ProtoMessage()
func (*ProtoSupplyAnalytics) ProtoReflect ¶ added in v0.42.2
func (x *ProtoSupplyAnalytics) ProtoReflect() protoreflect.Message
func (*ProtoSupplyAnalytics) Reset ¶ added in v0.42.2
func (x *ProtoSupplyAnalytics) Reset()
func (*ProtoSupplyAnalytics) String ¶ added in v0.42.2
func (x *ProtoSupplyAnalytics) String() string
type ProtoTermini ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoTermini) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTermini.ProtoReflect.Descriptor instead.
func (*ProtoTermini) GetDomTermini ¶ added in v0.29.0
func (x *ProtoTermini) GetDomTermini() []*common.ProtoHash
func (*ProtoTermini) GetSubTermini ¶ added in v0.29.0
func (x *ProtoTermini) GetSubTermini() []*common.ProtoHash
func (*ProtoTermini) ProtoMessage ¶ added in v0.29.0
func (*ProtoTermini) ProtoMessage()
func (*ProtoTermini) ProtoReflect ¶ added in v0.29.0
func (x *ProtoTermini) ProtoReflect() protoreflect.Message
func (*ProtoTermini) Reset ¶ added in v0.29.0
func (x *ProtoTermini) Reset()
func (*ProtoTermini) String ¶ added in v0.29.0
func (x *ProtoTermini) String() string
type ProtoTokenChoice ¶ added in v0.35.0
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
added in
v0.35.0
func (*ProtoTokenChoice) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTokenChoice.ProtoReflect.Descriptor instead.
func (*ProtoTokenChoice) GetDiff ¶ added in v0.35.0
func (x *ProtoTokenChoice) GetDiff() []byte
func (*ProtoTokenChoice) GetQi ¶ added in v0.35.0
func (x *ProtoTokenChoice) GetQi() uint64
func (*ProtoTokenChoice) GetQuai ¶ added in v0.35.0
func (x *ProtoTokenChoice) GetQuai() uint64
func (*ProtoTokenChoice) ProtoMessage ¶ added in v0.35.0
func (*ProtoTokenChoice) ProtoMessage()
func (*ProtoTokenChoice) ProtoReflect ¶ added in v0.35.0
func (x *ProtoTokenChoice) ProtoReflect() protoreflect.Message
func (*ProtoTokenChoice) Reset ¶ added in v0.35.0
func (x *ProtoTokenChoice) Reset()
func (*ProtoTokenChoice) String ¶ added in v0.35.0
func (x *ProtoTokenChoice) String() string
type ProtoTokenChoiceArray ¶ added in v0.35.0
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
added in
v0.35.0
func (*ProtoTokenChoiceArray) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTokenChoiceArray.ProtoReflect.Descriptor instead.
func (*ProtoTokenChoiceArray) GetTokenChoices ¶ added in v0.35.0
func (x *ProtoTokenChoiceArray) GetTokenChoices() *ProtoTokenChoice
func (*ProtoTokenChoiceArray) ProtoMessage ¶ added in v0.35.0
func (*ProtoTokenChoiceArray) ProtoMessage()
func (*ProtoTokenChoiceArray) ProtoReflect ¶ added in v0.35.0
func (x *ProtoTokenChoiceArray) ProtoReflect() protoreflect.Message
func (*ProtoTokenChoiceArray) Reset ¶ added in v0.35.0
func (x *ProtoTokenChoiceArray) Reset()
func (*ProtoTokenChoiceArray) String ¶ added in v0.35.0
func (x *ProtoTokenChoiceArray) String() string
type ProtoTokenChoiceSet ¶ added in v0.35.0
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
added in
v0.35.0
func (*ProtoTokenChoiceSet) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTokenChoiceSet.ProtoReflect.Descriptor instead.
func (*ProtoTokenChoiceSet) GetTokenChoiceArray ¶ added in v0.35.0
func (x *ProtoTokenChoiceSet) GetTokenChoiceArray() []*ProtoTokenChoiceArray
func (*ProtoTokenChoiceSet) ProtoMessage ¶ added in v0.35.0
func (*ProtoTokenChoiceSet) ProtoMessage()
func (*ProtoTokenChoiceSet) ProtoReflect ¶ added in v0.35.0
func (x *ProtoTokenChoiceSet) ProtoReflect() protoreflect.Message
func (*ProtoTokenChoiceSet) Reset ¶ added in v0.35.0
func (x *ProtoTokenChoiceSet) Reset()
func (*ProtoTokenChoiceSet) String ¶ added in v0.35.0
func (x *ProtoTokenChoiceSet) String() string
type ProtoTransaction ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoTransaction) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTransaction.ProtoReflect.Descriptor instead.
func (*ProtoTransaction) GetAccessList ¶ added in v0.29.0
func (x *ProtoTransaction) GetAccessList() *ProtoAccessList
func (*ProtoTransaction) GetChainId ¶ added in v0.29.0
func (x *ProtoTransaction) GetChainId() []byte
func (*ProtoTransaction) GetData ¶ added in v0.29.0
func (x *ProtoTransaction) GetData() []byte
func (*ProtoTransaction) GetEtxIndex ¶ added in v0.29.0
func (x *ProtoTransaction) GetEtxIndex() uint32
func (*ProtoTransaction) GetEtxSender ¶ added in v0.29.0
func (x *ProtoTransaction) GetEtxSender() []byte
func (*ProtoTransaction) GetEtxType ¶ added in v0.34.0
func (x *ProtoTransaction) GetEtxType() uint64
func (*ProtoTransaction) GetGas ¶ added in v0.29.0
func (x *ProtoTransaction) GetGas() uint64
func (*ProtoTransaction) GetGasPrice ¶ added in v0.34.0
func (x *ProtoTransaction) GetGasPrice() []byte
func (*ProtoTransaction) GetMixHash ¶ added in v0.29.0
func (x *ProtoTransaction) GetMixHash() *common.ProtoHash
func (*ProtoTransaction) GetNonce ¶ added in v0.29.0
func (x *ProtoTransaction) GetNonce() uint64
func (*ProtoTransaction) GetOriginatingTxHash ¶ added in v0.29.0
func (x *ProtoTransaction) GetOriginatingTxHash() *common.ProtoHash
func (*ProtoTransaction) GetParentHash ¶ added in v0.29.0
func (x *ProtoTransaction) GetParentHash() *common.ProtoHash
func (*ProtoTransaction) GetR ¶ added in v0.29.0
func (x *ProtoTransaction) GetR() []byte
func (*ProtoTransaction) GetS ¶ added in v0.29.0
func (x *ProtoTransaction) GetS() []byte
func (*ProtoTransaction) GetSignature ¶ added in v0.29.0
func (x *ProtoTransaction) GetSignature() []byte
func (*ProtoTransaction) GetTo ¶ added in v0.29.0
func (x *ProtoTransaction) GetTo() []byte
func (*ProtoTransaction) GetTxIns ¶ added in v0.29.0
func (x *ProtoTransaction) GetTxIns() *ProtoTxIns
func (*ProtoTransaction) GetTxOuts ¶ added in v0.29.0
func (x *ProtoTransaction) GetTxOuts() *ProtoTxOuts
func (*ProtoTransaction) GetType ¶ added in v0.29.0
func (x *ProtoTransaction) GetType() uint64
func (*ProtoTransaction) GetV ¶ added in v0.29.0
func (x *ProtoTransaction) GetV() []byte
func (*ProtoTransaction) GetValue ¶ added in v0.29.0
func (x *ProtoTransaction) GetValue() []byte
func (*ProtoTransaction) GetWorkNonce ¶ added in v0.29.0
func (x *ProtoTransaction) GetWorkNonce() uint64
func (*ProtoTransaction) ProtoMessage ¶ added in v0.29.0
func (*ProtoTransaction) ProtoMessage()
func (*ProtoTransaction) ProtoReflect ¶ added in v0.29.0
func (x *ProtoTransaction) ProtoReflect() protoreflect.Message
func (*ProtoTransaction) Reset ¶ added in v0.29.0
func (x *ProtoTransaction) Reset()
func (*ProtoTransaction) String ¶ added in v0.29.0
func (x *ProtoTransaction) String() string
type ProtoTransactions ¶ added in v0.29.0
type ProtoTransactions struct {
Transactions []*ProtoTransaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoTransactions) Descriptor
deprecated
added in
v0.29.0
func (*ProtoTransactions) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTransactions.ProtoReflect.Descriptor instead.
func (*ProtoTransactions) GetTransactions ¶ added in v0.29.0
func (x *ProtoTransactions) GetTransactions() []*ProtoTransaction
func (*ProtoTransactions) ProtoMessage ¶ added in v0.29.0
func (*ProtoTransactions) ProtoMessage()
func (*ProtoTransactions) ProtoReflect ¶ added in v0.29.0
func (x *ProtoTransactions) ProtoReflect() protoreflect.Message
func (*ProtoTransactions) Reset ¶ added in v0.29.0
func (x *ProtoTransactions) Reset()
func (*ProtoTransactions) String ¶ added in v0.29.0
func (x *ProtoTransactions) String() string
type ProtoTrimDepths ¶ added in v0.35.0
type ProtoTrimDepths struct {
TrimDepths map[uint32]uint64 `` /* 167-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ProtoTrimDepths) Descriptor
deprecated
added in
v0.35.0
func (*ProtoTrimDepths) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTrimDepths.ProtoReflect.Descriptor instead.
func (*ProtoTrimDepths) GetTrimDepths ¶ added in v0.35.0
func (x *ProtoTrimDepths) GetTrimDepths() map[uint32]uint64
func (*ProtoTrimDepths) ProtoMessage ¶ added in v0.35.0
func (*ProtoTrimDepths) ProtoMessage()
func (*ProtoTrimDepths) ProtoReflect ¶ added in v0.35.0
func (x *ProtoTrimDepths) ProtoReflect() protoreflect.Message
func (*ProtoTrimDepths) Reset ¶ added in v0.35.0
func (x *ProtoTrimDepths) Reset()
func (*ProtoTrimDepths) String ¶ added in v0.35.0
func (x *ProtoTrimDepths) String() string
type ProtoTxIn ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoTxIn) GetPreviousOutPoint ¶ added in v0.29.0
func (x *ProtoTxIn) GetPreviousOutPoint() *ProtoOutPoint
func (*ProtoTxIn) ProtoMessage ¶ added in v0.29.0
func (*ProtoTxIn) ProtoMessage()
func (*ProtoTxIn) ProtoReflect ¶ added in v0.29.0
func (x *ProtoTxIn) ProtoReflect() protoreflect.Message
type ProtoTxIns ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoTxIns) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTxIns.ProtoReflect.Descriptor instead.
func (*ProtoTxIns) GetTxIns ¶ added in v0.29.0
func (x *ProtoTxIns) GetTxIns() []*ProtoTxIn
func (*ProtoTxIns) ProtoMessage ¶ added in v0.29.0
func (*ProtoTxIns) ProtoMessage()
func (*ProtoTxIns) ProtoReflect ¶ added in v0.29.0
func (x *ProtoTxIns) ProtoReflect() protoreflect.Message
func (*ProtoTxIns) Reset ¶ added in v0.29.0
func (x *ProtoTxIns) Reset()
func (*ProtoTxIns) String ¶ added in v0.29.0
func (x *ProtoTxIns) String() string
type ProtoTxOut ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoTxOut) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTxOut.ProtoReflect.Descriptor instead.
func (*ProtoTxOut) GetAddress ¶ added in v0.29.0
func (x *ProtoTxOut) GetAddress() []byte
func (*ProtoTxOut) GetDenomination ¶ added in v0.29.0
func (x *ProtoTxOut) GetDenomination() uint32
func (*ProtoTxOut) GetLock ¶ added in v0.29.0
func (x *ProtoTxOut) GetLock() []byte
func (*ProtoTxOut) ProtoMessage ¶ added in v0.29.0
func (*ProtoTxOut) ProtoMessage()
func (*ProtoTxOut) ProtoReflect ¶ added in v0.29.0
func (x *ProtoTxOut) ProtoReflect() protoreflect.Message
func (*ProtoTxOut) Reset ¶ added in v0.29.0
func (x *ProtoTxOut) Reset()
func (*ProtoTxOut) String ¶ added in v0.29.0
func (x *ProtoTxOut) String() string
type ProtoTxOuts ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoTxOuts) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTxOuts.ProtoReflect.Descriptor instead.
func (*ProtoTxOuts) GetTxOuts ¶ added in v0.29.0
func (x *ProtoTxOuts) GetTxOuts() []*ProtoTxOut
func (*ProtoTxOuts) ProtoMessage ¶ added in v0.29.0
func (*ProtoTxOuts) ProtoMessage()
func (*ProtoTxOuts) ProtoReflect ¶ added in v0.29.0
func (x *ProtoTxOuts) ProtoReflect() protoreflect.Message
func (*ProtoTxOuts) Reset ¶ added in v0.29.0
func (x *ProtoTxOuts) Reset()
func (*ProtoTxOuts) String ¶ added in v0.29.0
func (x *ProtoTxOuts) String() string
type ProtoUnlock ¶ added in v0.43.2
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
added in
v0.43.2
func (*ProtoUnlock) Descriptor() ([]byte, []int)
Deprecated: Use ProtoUnlock.ProtoReflect.Descriptor instead.
func (*ProtoUnlock) GetAddress ¶ added in v0.43.2
func (x *ProtoUnlock) GetAddress() *common.ProtoAddress
func (*ProtoUnlock) GetValue ¶ added in v0.43.2
func (x *ProtoUnlock) GetValue() []byte
func (*ProtoUnlock) ProtoMessage ¶ added in v0.43.2
func (*ProtoUnlock) ProtoMessage()
func (*ProtoUnlock) ProtoReflect ¶ added in v0.43.2
func (x *ProtoUnlock) ProtoReflect() protoreflect.Message
func (*ProtoUnlock) Reset ¶ added in v0.43.2
func (x *ProtoUnlock) Reset()
func (*ProtoUnlock) String ¶ added in v0.43.2
func (x *ProtoUnlock) String() string
type ProtoUnlocks ¶ added in v0.43.2
type ProtoUnlocks struct {
Unlocks []*ProtoUnlock `protobuf:"bytes,1,rep,name=unlocks,proto3" json:"unlocks,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoUnlocks) Descriptor
deprecated
added in
v0.43.2
func (*ProtoUnlocks) Descriptor() ([]byte, []int)
Deprecated: Use ProtoUnlocks.ProtoReflect.Descriptor instead.
func (*ProtoUnlocks) GetUnlocks ¶ added in v0.43.2
func (x *ProtoUnlocks) GetUnlocks() []*ProtoUnlock
func (*ProtoUnlocks) ProtoMessage ¶ added in v0.43.2
func (*ProtoUnlocks) ProtoMessage()
func (*ProtoUnlocks) ProtoReflect ¶ added in v0.43.2
func (x *ProtoUnlocks) ProtoReflect() protoreflect.Message
func (*ProtoUnlocks) Reset ¶ added in v0.43.2
func (x *ProtoUnlocks) Reset()
func (*ProtoUnlocks) String ¶ added in v0.43.2
func (x *ProtoUnlocks) String() string
type ProtoWorkObject ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoWorkObject) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObject.ProtoReflect.Descriptor instead.
func (*ProtoWorkObject) GetTx ¶ added in v0.29.0
func (x *ProtoWorkObject) GetTx() *ProtoTransaction
func (*ProtoWorkObject) GetWoBody ¶ added in v0.29.0
func (x *ProtoWorkObject) GetWoBody() *ProtoWorkObjectBody
func (*ProtoWorkObject) GetWoHeader ¶ added in v0.29.0
func (x *ProtoWorkObject) GetWoHeader() *ProtoWorkObjectHeader
func (*ProtoWorkObject) ProtoMessage ¶ added in v0.29.0
func (*ProtoWorkObject) ProtoMessage()
func (*ProtoWorkObject) ProtoReflect ¶ added in v0.29.0
func (x *ProtoWorkObject) ProtoReflect() protoreflect.Message
func (*ProtoWorkObject) Reset ¶ added in v0.29.0
func (x *ProtoWorkObject) Reset()
func (*ProtoWorkObject) String ¶ added in v0.29.0
func (x *ProtoWorkObject) String() string
type ProtoWorkObjectBlockView ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoWorkObjectBlockView) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectBlockView.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectBlockView) GetWorkObject ¶ added in v0.30.0
func (x *ProtoWorkObjectBlockView) GetWorkObject() *ProtoWorkObject
func (*ProtoWorkObjectBlockView) ProtoMessage ¶ added in v0.29.0
func (*ProtoWorkObjectBlockView) ProtoMessage()
func (*ProtoWorkObjectBlockView) ProtoReflect ¶ added in v0.29.0
func (x *ProtoWorkObjectBlockView) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectBlockView) Reset ¶ added in v0.29.0
func (x *ProtoWorkObjectBlockView) Reset()
func (*ProtoWorkObjectBlockView) String ¶ added in v0.29.0
func (x *ProtoWorkObjectBlockView) String() string
type ProtoWorkObjectBlocksView ¶ added in v0.31.0
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
added in
v0.31.0
func (*ProtoWorkObjectBlocksView) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectBlocksView.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectBlocksView) GetWorkObjects ¶ added in v0.31.0
func (x *ProtoWorkObjectBlocksView) GetWorkObjects() []*ProtoWorkObjectBlockView
func (*ProtoWorkObjectBlocksView) ProtoMessage ¶ added in v0.31.0
func (*ProtoWorkObjectBlocksView) ProtoMessage()
func (*ProtoWorkObjectBlocksView) ProtoReflect ¶ added in v0.31.0
func (x *ProtoWorkObjectBlocksView) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectBlocksView) Reset ¶ added in v0.31.0
func (x *ProtoWorkObjectBlocksView) Reset()
func (*ProtoWorkObjectBlocksView) String ¶ added in v0.31.0
func (x *ProtoWorkObjectBlocksView) String() string
type ProtoWorkObjectBody ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoWorkObjectBody) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectBody.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectBody) GetHeader ¶ added in v0.29.0
func (x *ProtoWorkObjectBody) GetHeader() *ProtoHeader
func (*ProtoWorkObjectBody) GetInterlinkHashes ¶ added in v0.29.0
func (x *ProtoWorkObjectBody) GetInterlinkHashes() *common.ProtoHashes
func (*ProtoWorkObjectBody) GetManifest ¶ added in v0.29.0
func (x *ProtoWorkObjectBody) GetManifest() *ProtoManifest
func (*ProtoWorkObjectBody) GetOutboundEtxs ¶ added in v0.33.0
func (x *ProtoWorkObjectBody) GetOutboundEtxs() *ProtoTransactions
func (*ProtoWorkObjectBody) GetTransactions ¶ added in v0.29.0
func (x *ProtoWorkObjectBody) GetTransactions() *ProtoTransactions
func (*ProtoWorkObjectBody) GetUncles ¶ added in v0.29.0
func (x *ProtoWorkObjectBody) GetUncles() *ProtoWorkObjectHeaders
func (*ProtoWorkObjectBody) ProtoMessage ¶ added in v0.29.0
func (*ProtoWorkObjectBody) ProtoMessage()
func (*ProtoWorkObjectBody) ProtoReflect ¶ added in v0.29.0
func (x *ProtoWorkObjectBody) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectBody) Reset ¶ added in v0.29.0
func (x *ProtoWorkObjectBody) Reset()
func (*ProtoWorkObjectBody) String ¶ added in v0.29.0
func (x *ProtoWorkObjectBody) String() string
type ProtoWorkObjectHeader ¶ added in v0.29.0
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"`
AuxPow *ProtoAuxPow `protobuf:"bytes,14,opt,name=aux_pow,json=auxPow,proto3,oneof" json:"aux_pow,omitempty"` // New field for auxiliary proof-of-work
ScryptDiffAndCount *ProtoPowShareDiffAndCount `` /* 126-byte string literal not displayed */
ShaDiffAndCount *ProtoPowShareDiffAndCount `protobuf:"bytes,16,opt,name=sha_diff_and_count,json=shaDiffAndCount,proto3,oneof" json:"sha_diff_and_count,omitempty"`
KawpowDifficulty []byte `protobuf:"bytes,19,opt,name=kawpow_difficulty,json=kawpowDifficulty,proto3,oneof" json:"kawpow_difficulty,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoWorkObjectHeader) Descriptor
deprecated
added in
v0.29.0
func (*ProtoWorkObjectHeader) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectHeader.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectHeader) GetAuxPow ¶ added in v0.49.0
func (x *ProtoWorkObjectHeader) GetAuxPow() *ProtoAuxPow
func (*ProtoWorkObjectHeader) GetData ¶ added in v0.42.0
func (x *ProtoWorkObjectHeader) GetData() []byte
func (*ProtoWorkObjectHeader) GetDifficulty ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) GetDifficulty() []byte
func (*ProtoWorkObjectHeader) GetHeaderHash ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) GetHeaderHash() *common.ProtoHash
func (*ProtoWorkObjectHeader) GetKawpowDifficulty ¶ added in v0.49.0
func (x *ProtoWorkObjectHeader) GetKawpowDifficulty() []byte
func (*ProtoWorkObjectHeader) GetLocation ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) GetLocation() *common.ProtoLocation
func (*ProtoWorkObjectHeader) GetLock ¶ added in v0.34.0
func (x *ProtoWorkObjectHeader) GetLock() uint32
func (*ProtoWorkObjectHeader) GetMixHash ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) GetMixHash() *common.ProtoHash
func (*ProtoWorkObjectHeader) GetNonce ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) GetNonce() uint64
func (*ProtoWorkObjectHeader) GetNumber ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) GetNumber() []byte
func (*ProtoWorkObjectHeader) GetParentHash ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) GetParentHash() *common.ProtoHash
func (*ProtoWorkObjectHeader) GetPrimaryCoinbase ¶ added in v0.34.0
func (x *ProtoWorkObjectHeader) GetPrimaryCoinbase() *common.ProtoAddress
func (*ProtoWorkObjectHeader) GetPrimeTerminusNumber ¶ added in v0.30.0
func (x *ProtoWorkObjectHeader) GetPrimeTerminusNumber() []byte
func (*ProtoWorkObjectHeader) GetScryptDiffAndCount ¶ added in v0.49.0
func (x *ProtoWorkObjectHeader) GetScryptDiffAndCount() *ProtoPowShareDiffAndCount
func (*ProtoWorkObjectHeader) GetScryptShareTarget ¶ added in v0.49.0
func (x *ProtoWorkObjectHeader) GetScryptShareTarget() []byte
func (*ProtoWorkObjectHeader) GetShaDiffAndCount ¶ added in v0.49.0
func (x *ProtoWorkObjectHeader) GetShaDiffAndCount() *ProtoPowShareDiffAndCount
func (*ProtoWorkObjectHeader) GetShaShareTarget ¶ added in v0.49.0
func (x *ProtoWorkObjectHeader) GetShaShareTarget() []byte
func (*ProtoWorkObjectHeader) GetTime ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) GetTime() uint64
func (*ProtoWorkObjectHeader) GetTxHash ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) GetTxHash() *common.ProtoHash
func (*ProtoWorkObjectHeader) ProtoMessage ¶ added in v0.29.0
func (*ProtoWorkObjectHeader) ProtoMessage()
func (*ProtoWorkObjectHeader) ProtoReflect ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectHeader) Reset ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) Reset()
func (*ProtoWorkObjectHeader) String ¶ added in v0.29.0
func (x *ProtoWorkObjectHeader) String() string
type ProtoWorkObjectHeaderView ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoWorkObjectHeaderView) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectHeaderView.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectHeaderView) GetWorkObject ¶ added in v0.30.0
func (x *ProtoWorkObjectHeaderView) GetWorkObject() *ProtoWorkObject
func (*ProtoWorkObjectHeaderView) ProtoMessage ¶ added in v0.29.0
func (*ProtoWorkObjectHeaderView) ProtoMessage()
func (*ProtoWorkObjectHeaderView) ProtoReflect ¶ added in v0.29.0
func (x *ProtoWorkObjectHeaderView) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectHeaderView) Reset ¶ added in v0.29.0
func (x *ProtoWorkObjectHeaderView) Reset()
func (*ProtoWorkObjectHeaderView) String ¶ added in v0.29.0
func (x *ProtoWorkObjectHeaderView) String() string
type ProtoWorkObjectHeaders ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoWorkObjectHeaders) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectHeaders.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectHeaders) GetWoHeaders ¶ added in v0.29.0
func (x *ProtoWorkObjectHeaders) GetWoHeaders() []*ProtoWorkObjectHeader
func (*ProtoWorkObjectHeaders) ProtoMessage ¶ added in v0.29.0
func (*ProtoWorkObjectHeaders) ProtoMessage()
func (*ProtoWorkObjectHeaders) ProtoReflect ¶ added in v0.29.0
func (x *ProtoWorkObjectHeaders) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectHeaders) Reset ¶ added in v0.29.0
func (x *ProtoWorkObjectHeaders) Reset()
func (*ProtoWorkObjectHeaders) String ¶ added in v0.29.0
func (x *ProtoWorkObjectHeaders) String() string
type ProtoWorkObjectShareView ¶ added in v0.30.0
type ProtoWorkObjectShareView struct {
// contains filtered or unexported fields
}
func (*ProtoWorkObjectShareView) Descriptor
deprecated
added in
v0.30.0
func (*ProtoWorkObjectShareView) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectShareView.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectShareView) GetWorkObject ¶ added in v0.30.0
func (x *ProtoWorkObjectShareView) GetWorkObject() *ProtoWorkObject
func (*ProtoWorkObjectShareView) ProtoMessage ¶ added in v0.30.0
func (*ProtoWorkObjectShareView) ProtoMessage()
func (*ProtoWorkObjectShareView) ProtoReflect ¶ added in v0.30.0
func (x *ProtoWorkObjectShareView) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectShareView) Reset ¶ added in v0.30.0
func (x *ProtoWorkObjectShareView) Reset()
func (*ProtoWorkObjectShareView) String ¶ added in v0.30.0
func (x *ProtoWorkObjectShareView) String() string
type ProtoWorkObjects ¶ added in v0.29.0
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
added in
v0.29.0
func (*ProtoWorkObjects) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjects.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjects) GetWorkObjects ¶ added in v0.29.0
func (x *ProtoWorkObjects) GetWorkObjects() []*ProtoWorkObject
func (*ProtoWorkObjects) ProtoMessage ¶ added in v0.29.0
func (*ProtoWorkObjects) ProtoMessage()
func (*ProtoWorkObjects) ProtoReflect ¶ added in v0.29.0
func (x *ProtoWorkObjects) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjects) Reset ¶ added in v0.29.0
func (x *ProtoWorkObjects) Reset()
func (*ProtoWorkObjects) String ¶ added in v0.29.0
func (x *ProtoWorkObjects) String() string
type QuaiTx ¶ added in v0.29.0
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 ¶ added in v0.41.0
type RPCTxIn struct {
PreviousOutPoint OutpointJSON `json:"previousOutPoint"`
PubKey hexutil.Bytes `json:"pubKey"`
}
type RavencoinAddress ¶ added in v0.49.0
type RavencoinBlockHeader ¶ added in v0.49.0
type RavencoinBlockHeader struct {
// Standard Bitcoin-derived fields
Version int32 `json:"version" gencodec:"required"`
HashPrevBlock common.Hash `json:"hashPrevBlock" gencodec:"required"`
HashMerkleRoot common.Hash `json:"hashMerkleRoot" gencodec:"required"`
Time uint32 `json:"time" gencodec:"required"`
Bits uint32 `json:"bits" gencodec:"required"`
// KAWPOW-specific fields
Height uint32 `json:"height" gencodec:"required"`
Nonce64 uint64 `json:"nonce64" gencodec:"required"`
MixHash common.Hash `json:"mixHash" gencodec:"required"`
}
RavencoinBlockHeader represents the Ravencoin KAWPOW block header structure
func DecodeRavencoinHeader ¶ added in v0.49.0
func DecodeRavencoinHeader(data []byte) (*RavencoinBlockHeader, error)
DecodeRavencoinHeader decodes bytes into a RavencoinBlockHeader
func NewRavencoinBlockHeader ¶ added in v0.49.0
func NewRavencoinBlockHeader(version int32, prevBlockHash [32]byte, merkleRootHash [32]byte, time uint32, bits uint32, height uint32) *RavencoinBlockHeader
NewBlockHeader creates a new Ravencoin block header
func (*RavencoinBlockHeader) BlockHash ¶ added in v0.49.0
func (h *RavencoinBlockHeader) BlockHash() common.Hash
func (*RavencoinBlockHeader) Copy ¶ added in v0.49.0
func (h *RavencoinBlockHeader) Copy() AuxHeaderData
func (*RavencoinBlockHeader) Deserialize ¶ added in v0.49.0
func (h *RavencoinBlockHeader) Deserialize(r io.Reader) error
func (*RavencoinBlockHeader) EncodeBinaryRavencoinHeader ¶ added in v0.49.0
func (h *RavencoinBlockHeader) EncodeBinaryRavencoinHeader() []byte
EncodeBinary encodes the header to Ravencoin's binary format
func (*RavencoinBlockHeader) GetBits ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetBits() uint32
func (*RavencoinBlockHeader) GetHeight ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetHeight() uint32
func (*RavencoinBlockHeader) GetKAWPOWHeaderHash ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetKAWPOWHeaderHash() common.Hash
GetKAWPOWHeaderHash returns the header hash for KAWPOW input This excludes nNonce64 and mixHash, following Ravencoin's CKAWPOWInput
IMPORTANT: Returns the hash in BIG-ENDIAN byte order (SHA256 natural output). This matches the format miners submit. The kawpowLight algorithm expects the hash to be reversed to little-endian before hashing.
func (*RavencoinBlockHeader) GetMerkleRoot ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetMerkleRoot() [32]byte
func (*RavencoinBlockHeader) GetMixHash ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetMixHash() common.Hash
func (*RavencoinBlockHeader) GetNonce ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetNonce() uint32
func (*RavencoinBlockHeader) GetNonce64 ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetNonce64() uint64
func (*RavencoinBlockHeader) GetPrevBlock ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetPrevBlock() [32]byte
func (*RavencoinBlockHeader) GetSealHash ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetSealHash() common.Hash
func (*RavencoinBlockHeader) GetTimestamp ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetTimestamp() uint32
func (*RavencoinBlockHeader) GetVersion ¶ added in v0.49.0
func (h *RavencoinBlockHeader) GetVersion() int32
func (*RavencoinBlockHeader) PowHash ¶ added in v0.49.0
func (h *RavencoinBlockHeader) PowHash() common.Hash
func (*RavencoinBlockHeader) Serialize ¶ added in v0.49.0
func (h *RavencoinBlockHeader) Serialize(w io.Writer) error
Implement AuxHeaderData interface for RavencoinBlockHeader
func (*RavencoinBlockHeader) SetHeight ¶ added in v0.49.0
func (h *RavencoinBlockHeader) SetHeight(height uint32)
func (*RavencoinBlockHeader) SetMixHash ¶ added in v0.49.0
func (h *RavencoinBlockHeader) SetMixHash(mixHash common.Hash)
func (*RavencoinBlockHeader) SetNonce ¶ added in v0.49.0
func (h *RavencoinBlockHeader) SetNonce(nonce uint32)
func (*RavencoinBlockHeader) SetNonce64 ¶ added in v0.49.0
func (h *RavencoinBlockHeader) SetNonce64(nonce uint64)
func (*RavencoinBlockHeader) Size ¶ added in v0.49.0
func (h *RavencoinBlockHeader) Size() int
Size returns the size of the header in bytes
func (*RavencoinBlockHeader) String ¶ added in v0.49.0
func (h *RavencoinBlockHeader) String() string
String returns a string representation of the header
type RavencoinKAWPOWInput ¶ added in v0.49.0
type RavencoinKAWPOWInput struct {
Version int32 `json:"version" gencodec:"required"`
HashPrevBlock common.Hash `json:"hashPrevBlock" gencodec:"required"`
HashMerkleRoot common.Hash `json:"hashMerkleRoot" gencodec:"required"`
Time uint32 `json:"time" gencodec:"required"`
Bits uint32 `json:"bits" gencodec:"required"`
Height uint32 `json:"height" gencodec:"required"`
}
RavencoinKAWPOWInput represents the input structure for KAWPOW hashing This excludes nNonce64 and mixHash for header hash calculation
func (*RavencoinKAWPOWInput) EncodeBinaryRavencoinKAWPOW ¶ added in v0.49.0
func (input *RavencoinKAWPOWInput) EncodeBinaryRavencoinKAWPOW() []byte
EncodeBinary encodes the KAWPOW input structure (without nonce64 and mixHash)
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 ¶
NewReceipt creates a barebone transaction receipt, copying the init fields. Deprecated: create receipts using a struct literal instead.
func (*Receipt) DecodeRLP ¶
DecodeRLP implements rlp.Decoder, and loads the consensus fields of a receipt from an RLP stream.
func (*Receipt) EncodeRLP ¶
EncodeRLP implements rlp.Encoder, and flattens the consensus fields of a receipt into an RLP stream.
func (Receipt) MarshalJSON ¶
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) UnmarshalJSON ¶
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 ¶ added in v0.29.0
func (r *ReceiptForStorage) ProtoDecode(protoReceipt *ProtoReceiptForStorage, location common.Location) error
func (*ReceiptForStorage) ProtoEncode ¶ added in v0.29.0
func (r *ReceiptForStorage) ProtoEncode() (*ProtoReceiptForStorage, error)
type Receipts ¶
type Receipts []*Receipt
Receipts implements DerivableList for receipts.
func (Receipts) Bytes ¶ added in v0.31.0
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 ¶
EncodeIndex encodes the i'th receipt to w.
type ReceiptsForStorage ¶ added in v0.29.0
type ReceiptsForStorage []*ReceiptForStorage
ReceiptsForStorage is a list of ReceiptForStorage.
func (*ReceiptsForStorage) ProtoDecode ¶ added in v0.29.0
func (rs *ReceiptsForStorage) ProtoDecode(protoReceipts *ProtoReceiptsForStorage, location common.Location) error
ProtoDecode converts the protobuf to a receipts representation.
func (ReceiptsForStorage) ProtoEncode ¶ added in v0.29.0
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 ¶
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.
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) 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) SignatureValues ¶
type SpentTxOut ¶ added in v0.29.0
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 ¶ added in v0.32.0
SpentUtxoEntry houses details about a spent UtxoEntry.
func (*SpentUtxoEntry) ProtoDecode ¶ added in v0.32.0
func (sutxo *SpentUtxoEntry) ProtoDecode(protoSpentUtxoEntry *ProtoSpentUTXO) error
func (*SpentUtxoEntry) ProtoEncode ¶ added in v0.32.0
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 EmptyTermini ¶
func EmptyTermini() Termini
func (Termini) DomTermini ¶
func (Termini) MarshalJSON ¶
func (*Termini) ProtoDecode ¶ added in v0.29.0
func (t *Termini) ProtoDecode(protoTermini *ProtoTermini) error
ProtoDecode deserializes th ProtoTermini into the Termini format
func (Termini) ProtoEncode ¶ added in v0.29.0
func (t Termini) ProtoEncode() *ProtoTermini
ProtoEncode serializes t into the Quai Proto Termini format
func (Termini) RPCMarshalTermini ¶
func (*Termini) SetDomTermini ¶
func (*Termini) SetDomTerminiAtIndex ¶
func (*Termini) SetSubTermini ¶
func (*Termini) SetSubTerminiAtIndex ¶
func (Termini) SubTermini ¶
func (*Termini) UnmarshalJSON ¶
type TokenChoiceSet ¶ added in v0.35.0
type TokenChoiceSet [params.TokenChoiceSetSize]TokenChoices
func NewTokenChoiceSet ¶ added in v0.35.0
func NewTokenChoiceSet() TokenChoiceSet
func (*TokenChoiceSet) ProtoDecode ¶ added in v0.35.0
func (tcs *TokenChoiceSet) ProtoDecode(protoSet *ProtoTokenChoiceSet) error
func (*TokenChoiceSet) ProtoEncode ¶ added in v0.35.0
func (tcs *TokenChoiceSet) ProtoEncode() (*ProtoTokenChoiceSet, error)
type TokenChoices ¶ added in v0.35.0
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 ¶ added in v0.42.0
func NewEmptyQuaiTx() *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) 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 ¶ added in v0.34.0
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 ¶ added in v0.29.0
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 ¶ added in v0.34.0
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 ¶ added in v0.29.0
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 ¶ added in v0.29.0
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) Inner ¶ added in v0.44.0
func (tx *Transaction) Inner() TxData
func (*Transaction) IsLocal ¶ added in v0.29.0
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 ¶ added in v0.29.0
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 ¶ added in v0.29.0
func (tx *Transaction) OriginatingTxHash() common.Hash
func (*Transaction) ParentHash ¶ added in v0.29.0
func (tx *Transaction) ParentHash() *common.Hash
func (*Transaction) ProtoDecode ¶ added in v0.29.0
func (tx *Transaction) ProtoDecode(protoTx *ProtoTransaction, location common.Location) error
ProtoDecode deserializes the ProtoTransaction into the Transaction format
func (*Transaction) ProtoEncode ¶ added in v0.29.0
func (tx *Transaction) ProtoEncode() (*ProtoTransaction, error)
ProtoEncode serializes tx into the Quai Proto Transaction format
func (*Transaction) ProtoEncodeTxSigningData ¶ added in v0.29.0
func (tx *Transaction) ProtoEncodeTxSigningData() *ProtoTransaction
func (*Transaction) SetEtxType ¶ added in v0.45.0
func (tx *Transaction) SetEtxType(typ uint64)
func (*Transaction) SetFrom ¶ added in v0.32.0
func (tx *Transaction) SetFrom(from common.Address, signer Signer)
func (*Transaction) SetInner ¶ added in v0.29.0
func (tx *Transaction) SetInner(inner TxData)
func (*Transaction) SetLocal ¶ added in v0.29.0
func (tx *Transaction) SetLocal(local bool)
func (*Transaction) SetTo ¶ added in v0.29.0
func (tx *Transaction) SetTo(addr common.Address)
func (*Transaction) SetValue ¶ added in v0.35.0
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 ¶ added in v0.42.0
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 ¶ added in v0.29.0
func (tx *Transaction) TxIn() TxIns
func (*Transaction) TxOut ¶ added in v0.29.0
func (tx *Transaction) TxOut() TxOuts
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 ¶ added in v0.29.0
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 ¶ added in v0.31.0
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 ¶ added in v0.30.0
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) ProtoDecode ¶ added in v0.29.0
func (s *Transactions) ProtoDecode(transactions *ProtoTransactions, location common.Location) error
ProtoDecode decodes the ProtoTransactions into the Transactions format
func (Transactions) ProtoEncode ¶ added in v0.29.0
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 ¶
func (t *TransactionsByPriceAndNonce) Peek() *Transaction
Peek returns the next transaction by price.
func (*TransactionsByPriceAndNonce) PopNoSort ¶
func (t *TransactionsByPriceAndNonce) PopNoSort()
Pop the first transaction without sorting
type TrieHasher ¶
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.
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 ¶ added in v0.29.0
type TxIn struct {
PreviousOutPoint OutPoint `json:"previousOutPoint"`
PubKey []byte `json:"pubKey"`
}
TxIn defines a Qi transaction input
func NewTxIn ¶ added in v0.29.0
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 ¶ added in v0.29.0
func (TxIn) ProtoEncode ¶ added in v0.29.0
type TxInJSON ¶ added in v0.31.0
type TxInJSON struct {
PreviousOutPoint *OutpointJSON `json:"previousOutPoint"`
PubKey *hexutil.Bytes `json:"pubkey"`
}
type TxIns ¶ added in v0.29.0
type TxIns []TxIn
func (*TxIns) ProtoDecode ¶ added in v0.29.0
func (txIns *TxIns) ProtoDecode(protoTxIns *ProtoTxIns) error
func (TxIns) ProtoEncode ¶ added in v0.29.0
func (txIns TxIns) ProtoEncode() (*ProtoTxIns, error)
type TxOut ¶ added in v0.29.0
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 ¶ added in v0.29.0
NewTxOut returns a new Qi transaction output with the provided transaction value and address.
func (*TxOut) ProtoDecode ¶ added in v0.29.0
func (txOut *TxOut) ProtoDecode(protoTxOut *ProtoTxOut) error
func (TxOut) ProtoEncode ¶ added in v0.29.0
func (txOut TxOut) ProtoEncode() (*ProtoTxOut, error)
type TxOuts ¶ added in v0.29.0
type TxOuts []TxOut
func (*TxOuts) ProtoDecode ¶ added in v0.29.0
func (txOuts *TxOuts) ProtoDecode(protoTxOuts *ProtoTxOuts) error
func (TxOuts) ProtoEncode ¶ added in v0.29.0
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 ¶ added in v0.31.0
func (tx *TxWithMinerFee) MinerFee() *big.Int
func (*TxWithMinerFee) Received ¶ added in v0.34.0
func (tx *TxWithMinerFee) Received() time.Time
func (*TxWithMinerFee) Tx ¶ added in v0.31.0
func (tx *TxWithMinerFee) Tx() *Transaction
type UtxoEntry ¶ added in v0.29.0
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 ¶ added in v0.29.0
NewUtxoEntry returns a new UtxoEntry built from the arguments.
func (*UtxoEntry) ProtoDecode ¶ added in v0.32.0
func (utxo *UtxoEntry) ProtoDecode(protoTxOut *ProtoTxOut) error
func (*UtxoEntry) ProtoEncode ¶ added in v0.32.0
func (utxo *UtxoEntry) ProtoEncode() (*ProtoTxOut, error)
func (*UtxoEntry) UnmarshalJSON ¶ added in v0.39.0
type WorkObject ¶ added in v0.29.0
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 ¶ added in v0.29.0
func CopyWorkObject(wo *WorkObject) *WorkObject
func EmptyWorkObject ¶ added in v0.30.0
func EmptyWorkObject(nodeCtx int) *WorkObject
Construct an empty header
func EmptyZoneWorkObject ¶ added in v0.33.0
func EmptyZoneWorkObject() *WorkObject
func NewWorkObject ¶ added in v0.29.0
func NewWorkObject(woHeader *WorkObjectHeader, woBody *WorkObjectBody, tx *Transaction) *WorkObject
func NewWorkObjectWithHeader ¶ added in v0.29.0
func NewWorkObjectWithHeader(header *WorkObject, tx *Transaction, nodeCtx int, woType WorkObjectView) *WorkObject
func NewWorkObjectWithHeaderAndTx ¶ added in v0.29.0
func NewWorkObjectWithHeaderAndTx(header *WorkObjectHeader, tx *Transaction) *WorkObject
func (*WorkObject) AuxPow ¶ added in v0.49.0
func (wo *WorkObject) AuxPow() *AuxPow
New fields that were added on the kawpow fork block
func (*WorkObject) AvgTxFees ¶ added in v0.42.0
func (wo *WorkObject) AvgTxFees() *big.Int
func (*WorkObject) BaseFee ¶ added in v0.29.0
func (wo *WorkObject) BaseFee() *big.Int
func (*WorkObject) Body ¶ added in v0.29.0
func (wo *WorkObject) Body() *WorkObjectBody
func (*WorkObject) ConversionFlowAmount ¶ added in v0.42.0
func (wo *WorkObject) ConversionFlowAmount() *big.Int
func (*WorkObject) ConvertToBlockView ¶ added in v0.29.0
func (wo *WorkObject) ConvertToBlockView() *WorkObjectBlockView
func (*WorkObject) ConvertToHeaderView ¶ added in v0.29.0
func (wo *WorkObject) ConvertToHeaderView() *WorkObjectHeaderView
func (*WorkObject) ConvertToPEtxView ¶ added in v0.30.0
func (wo *WorkObject) ConvertToPEtxView() *WorkObject
func (*WorkObject) ConvertToWorkObjectShareView ¶ added in v0.30.0
func (wo *WorkObject) ConvertToWorkObjectShareView(txs Transactions) *WorkObjectShareView
func (*WorkObject) Data ¶ added in v0.42.0
func (wo *WorkObject) Data() []byte
func (*WorkObject) Difficulty ¶ added in v0.29.0
func (wo *WorkObject) Difficulty() *big.Int
func (*WorkObject) EVMRoot ¶ added in v0.29.0
func (wo *WorkObject) EVMRoot() common.Hash
func (*WorkObject) EfficiencyScore ¶ added in v0.29.0
func (wo *WorkObject) EfficiencyScore() uint16
func (*WorkObject) EtxEligibleSlices ¶ added in v0.29.0
func (wo *WorkObject) EtxEligibleSlices() common.Hash
func (*WorkObject) EtxRollupHash ¶ added in v0.29.0
func (wo *WorkObject) EtxRollupHash() common.Hash
func (*WorkObject) EtxSetRoot ¶ added in v0.29.0
func (wo *WorkObject) EtxSetRoot() common.Hash
func (*WorkObject) ExchangeRate ¶ added in v0.34.0
func (wo *WorkObject) ExchangeRate() *big.Int
func (*WorkObject) ExpansionNumber ¶ added in v0.29.0
func (wo *WorkObject) ExpansionNumber() uint8
func (*WorkObject) Extra ¶ added in v0.29.0
func (wo *WorkObject) Extra() []byte
func (*WorkObject) GasLimit ¶ added in v0.29.0
func (wo *WorkObject) GasLimit() uint64
func (*WorkObject) GasUsed ¶ added in v0.29.0
func (wo *WorkObject) GasUsed() uint64
func (*WorkObject) GetAppendTime ¶ added in v0.29.0
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 ¶ added in v0.32.0
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 ¶ added in v0.32.0
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 ¶ added in v0.29.0
func (wo *WorkObject) Hash() common.Hash
func (*WorkObject) Header ¶ added in v0.29.0
func (wo *WorkObject) Header() *Header
func (*WorkObject) HeaderHash ¶ added in v0.29.0
func (wo *WorkObject) HeaderHash() common.Hash
func (*WorkObject) InterlinkHashes ¶ added in v0.29.0
func (wo *WorkObject) InterlinkHashes() common.Hashes
func (*WorkObject) InterlinkRootHash ¶ added in v0.29.0
func (wo *WorkObject) InterlinkRootHash() common.Hash
func (*WorkObject) KQuaiDiscount ¶ added in v0.42.0
func (wo *WorkObject) KQuaiDiscount() *big.Int
func (*WorkObject) KawpowDifficulty ¶ added in v0.49.0
func (wo *WorkObject) KawpowDifficulty() *big.Int
func (*WorkObject) Location ¶ added in v0.29.0
func (wo *WorkObject) Location() common.Location
func (*WorkObject) Lock ¶ added in v0.34.0
func (wo *WorkObject) Lock() uint8
func (*WorkObject) Manifest ¶ added in v0.29.0
func (wo *WorkObject) Manifest() BlockManifest
func (*WorkObject) ManifestHash ¶ added in v0.29.0
func (wo *WorkObject) ManifestHash(nodeCtx int) common.Hash
func (*WorkObject) MarshalJSON ¶ added in v0.29.0
func (wo *WorkObject) MarshalJSON() ([]byte, error)
func (*WorkObject) MinerDifficulty ¶ added in v0.42.0
func (wo *WorkObject) MinerDifficulty() *big.Int
func (*WorkObject) MixHash ¶ added in v0.29.0
func (wo *WorkObject) MixHash() common.Hash
func (*WorkObject) Nonce ¶ added in v0.29.0
func (wo *WorkObject) Nonce() BlockNonce
func (*WorkObject) NonceU64 ¶ added in v0.29.0
func (wo *WorkObject) NonceU64() uint64
func (*WorkObject) NumberArray ¶ added in v0.29.0
func (wo *WorkObject) NumberArray() []*big.Int
func (*WorkObject) NumberU64 ¶ added in v0.29.0
func (wo *WorkObject) NumberU64(nodeCtx int) uint64
func (*WorkObject) OutboundEtxHash ¶ added in v0.33.0
func (wo *WorkObject) OutboundEtxHash() common.Hash
func (*WorkObject) OutboundEtxs ¶ added in v0.33.0
func (wo *WorkObject) OutboundEtxs() Transactions
func (*WorkObject) ParentDeltaEntropy ¶ added in v0.33.0
func (wo *WorkObject) ParentDeltaEntropy(nodeCtx int) *big.Int
func (*WorkObject) ParentEntropy ¶ added in v0.29.0
func (wo *WorkObject) ParentEntropy(nodeCtx int) *big.Int
func (*WorkObject) ParentHash ¶ added in v0.29.0
func (wo *WorkObject) ParentHash(nodeCtx int) common.Hash
func (*WorkObject) ParentHashArray ¶ added in v0.32.0
func (wo *WorkObject) ParentHashArray() []common.Hash
func (*WorkObject) ParentUncledDeltaEntropy ¶ added in v0.33.0
func (wo *WorkObject) ParentUncledDeltaEntropy(nodeCtx int) *big.Int
func (*WorkObject) PrimaryCoinbase ¶ added in v0.34.0
func (wo *WorkObject) PrimaryCoinbase() common.Address
func (*WorkObject) PrimeStateRoot ¶ added in v0.42.0
func (wo *WorkObject) PrimeStateRoot() common.Hash
func (*WorkObject) PrimeTerminusHash ¶ added in v0.33.0
func (wo *WorkObject) PrimeTerminusHash() common.Hash
func (*WorkObject) PrimeTerminusNumber ¶ added in v0.30.0
func (wo *WorkObject) PrimeTerminusNumber() *big.Int
func (*WorkObject) ProtoDecode ¶ added in v0.29.0
func (wo *WorkObject) ProtoDecode(data *ProtoWorkObject, location common.Location, woType WorkObjectView) error
func (*WorkObject) ProtoEncode ¶ added in v0.29.0
func (wo *WorkObject) ProtoEncode(woType WorkObjectView) (*ProtoWorkObject, error)
func (*WorkObject) QiTransactions ¶ added in v0.29.0
func (wo *WorkObject) QiTransactions() []*Transaction
func (*WorkObject) QiTransactionsWithoutCoinbase ¶ added in v0.29.0
func (wo *WorkObject) QiTransactionsWithoutCoinbase() []*Transaction
func (*WorkObject) QuaiStateSize ¶ added in v0.32.0
func (wo *WorkObject) QuaiStateSize() *big.Int
func (*WorkObject) RPCMarshalHeader ¶ added in v0.33.0
func (wo *WorkObject) RPCMarshalHeader(rpcVersion string) map[string]interface{}
RPCMarshalHeader returns a flattened header and woHeader as part of the header response
func (*WorkObject) RPCMarshalWorkObject ¶ added in v0.29.0
func (wo *WorkObject) RPCMarshalWorkObject(rpcVersion string) map[string]interface{}
func (*WorkObject) ReceiptHash ¶ added in v0.29.0
func (wo *WorkObject) ReceiptHash() common.Hash
func (*WorkObject) RegionStateRoot ¶ added in v0.42.0
func (wo *WorkObject) RegionStateRoot() common.Hash
func (*WorkObject) ScryptDiffAndCount ¶ added in v0.49.0
func (wo *WorkObject) ScryptDiffAndCount() *PowShareDiffAndCount
func (*WorkObject) ScryptShareTarget ¶ added in v0.49.0
func (wo *WorkObject) ScryptShareTarget() *big.Int
func (*WorkObject) SealHash ¶ added in v0.29.0
func (wo *WorkObject) SealHash() common.Hash
func (*WorkObject) SetAppendTime ¶ added in v0.29.0
func (wo *WorkObject) SetAppendTime(appendTime time.Duration)
func (*WorkObject) SetBody ¶ added in v0.29.0
func (wo *WorkObject) SetBody(body *WorkObjectBody)
func (*WorkObject) SetMixHash ¶ added in v0.29.0
func (wo *WorkObject) SetMixHash(mixHash common.Hash)
func (*WorkObject) SetNumber ¶ added in v0.29.0
func (wo *WorkObject) SetNumber(val *big.Int, nodeCtx int)
func (*WorkObject) SetParentHash ¶ added in v0.29.0
func (wo *WorkObject) SetParentHash(val common.Hash, nodeCtx int)
func (*WorkObject) SetPendingHeaderCreationTime ¶ added in v0.32.0
func (wo *WorkObject) SetPendingHeaderCreationTime(pendingHeaderCreationTime time.Duration)
func (*WorkObject) SetStateProcessTime ¶ added in v0.32.0
func (wo *WorkObject) SetStateProcessTime(stateProcessTimes time.Duration)
func (*WorkObject) SetTx ¶ added in v0.29.0
func (wo *WorkObject) SetTx(tx *Transaction)
func (*WorkObject) SetWorkObjectHeader ¶ added in v0.29.0
func (wo *WorkObject) SetWorkObjectHeader(header *WorkObjectHeader)
func (*WorkObject) ShaDiffAndCount ¶ added in v0.49.0
func (wo *WorkObject) ShaDiffAndCount() *PowShareDiffAndCount
func (*WorkObject) ShaShareTarget ¶ added in v0.49.0
func (wo *WorkObject) ShaShareTarget() *big.Int
func (*WorkObject) Size ¶ added in v0.29.0
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 ¶ added in v0.32.0
func (wo *WorkObject) StateLimit() uint64
func (*WorkObject) StateUsed ¶ added in v0.32.0
func (wo *WorkObject) StateUsed() uint64
func (*WorkObject) ThresholdCount ¶ added in v0.29.0
func (wo *WorkObject) ThresholdCount() uint16
func (*WorkObject) Time ¶ added in v0.29.0
func (wo *WorkObject) Time() uint64
func (*WorkObject) TotalFees ¶ added in v0.42.0
func (wo *WorkObject) TotalFees() *big.Int
func (*WorkObject) Transactions ¶ added in v0.29.0
func (wo *WorkObject) Transactions() Transactions
func (*WorkObject) TransactionsInfo ¶ added in v0.30.0
func (wo *WorkObject) TransactionsInfo() map[string]interface{}
func (*WorkObject) Tx ¶ added in v0.29.0
func (wo *WorkObject) Tx() *Transaction
func (*WorkObject) TxHash ¶ added in v0.29.0
func (wo *WorkObject) TxHash() common.Hash
func (*WorkObject) UTXORoot ¶ added in v0.29.0
func (wo *WorkObject) UTXORoot() common.Hash
func (*WorkObject) UncleHash ¶ added in v0.29.0
func (wo *WorkObject) UncleHash() common.Hash
func (*WorkObject) UncledEntropy ¶ added in v0.33.0
func (wo *WorkObject) UncledEntropy() *big.Int
func (*WorkObject) Uncles ¶ added in v0.29.0
func (wo *WorkObject) Uncles() []*WorkObjectHeader
func (*WorkObject) UnmarshalJSON ¶ added in v0.29.0
func (wo *WorkObject) UnmarshalJSON(input []byte) error
func (*WorkObject) WithBody ¶ added in v0.29.0
func (wo *WorkObject) WithBody(header *Header, txs []*Transaction, etxs []*Transaction, uncles []*WorkObjectHeader, manifest BlockManifest, interlinkHashes common.Hashes) *WorkObject
func (*WorkObject) WorkObjectHeader ¶ added in v0.29.0
func (wo *WorkObject) WorkObjectHeader() *WorkObjectHeader
func (*WorkObject) WorkObjectHeaderHash ¶ added in v0.49.0
func (wo *WorkObject) WorkObjectHeaderHash() common.Hash
type WorkObjectBlockView ¶ added in v0.29.0
type WorkObjectBlockView struct {
*WorkObject
}
func (*WorkObjectBlockView) ProtoDecode ¶ added in v0.29.0
func (wob *WorkObjectBlockView) ProtoDecode(data *ProtoWorkObjectBlockView, location common.Location) error
func (*WorkObjectBlockView) ProtoEncode ¶ added in v0.29.0
func (wo *WorkObjectBlockView) ProtoEncode() (*ProtoWorkObjectBlockView, error)
type WorkObjectBody ¶ added in v0.29.0
type WorkObjectBody struct {
// contains filtered or unexported fields
}
func CopyWorkObjectBody ¶ added in v0.29.0
func CopyWorkObjectBody(wb *WorkObjectBody) *WorkObjectBody
func EmptyWorkObjectBody ¶ added in v0.30.0
func EmptyWorkObjectBody() *WorkObjectBody
func NewWoBody ¶ added in v0.31.0
func NewWoBody(header *Header, txs []*Transaction, etxs []*Transaction, uncles []*WorkObjectHeader, manifest BlockManifest, interlinkHashes common.Hashes) *WorkObjectBody
func NewWorkObjectBody ¶ added in v0.29.0
func NewWorkObjectBody(header *Header, txs []*Transaction, etxs []*Transaction, uncles []*WorkObjectHeader, manifest BlockManifest, receipts []*Receipt, hasher TrieHasher, nodeCtx int) (*WorkObjectBody, error)
func (*WorkObjectBody) ExternalTransactions ¶ added in v0.29.0
func (wb *WorkObjectBody) ExternalTransactions() []*Transaction
func (*WorkObjectBody) Header ¶ added in v0.29.0
func (wb *WorkObjectBody) Header() *Header
func (*WorkObjectBody) InterlinkHashes ¶ added in v0.29.0
func (wb *WorkObjectBody) InterlinkHashes() common.Hashes
func (*WorkObjectBody) Manifest ¶ added in v0.29.0
func (wb *WorkObjectBody) Manifest() BlockManifest
func (*WorkObjectBody) MarshalJSON ¶ added in v0.29.0
func (wb *WorkObjectBody) MarshalJSON() ([]byte, error)
func (*WorkObjectBody) OutboundEtxs ¶ added in v0.33.0
func (wb *WorkObjectBody) OutboundEtxs() []*Transaction
func (*WorkObjectBody) ProtoDecode ¶ added in v0.29.0
func (wb *WorkObjectBody) ProtoDecode(data *ProtoWorkObjectBody, location common.Location, woType WorkObjectView) error
func (*WorkObjectBody) ProtoDecodeHeader ¶ added in v0.29.0
func (wb *WorkObjectBody) ProtoDecodeHeader(data *ProtoWorkObjectBody, location common.Location) error
func (*WorkObjectBody) ProtoEncode ¶ added in v0.29.0
func (wb *WorkObjectBody) ProtoEncode(woType WorkObjectView) (*ProtoWorkObjectBody, error)
func (*WorkObjectBody) RPCMarshalWorkObjectBody ¶ added in v0.29.0
func (wb *WorkObjectBody) RPCMarshalWorkObjectBody(rpcVersion string) map[string]interface{}
func (*WorkObjectBody) SetHeader ¶ added in v0.29.0
func (wb *WorkObjectBody) SetHeader(header *Header)
func (*WorkObjectBody) SetInterlinkHashes ¶ added in v0.29.0
func (wb *WorkObjectBody) SetInterlinkHashes(interlinkHashes common.Hashes)
func (*WorkObjectBody) SetManifest ¶ added in v0.29.0
func (wb *WorkObjectBody) SetManifest(manifest BlockManifest)
func (*WorkObjectBody) SetOutboundEtxs ¶ added in v0.33.0
func (wb *WorkObjectBody) SetOutboundEtxs(transactions []*Transaction)
func (*WorkObjectBody) SetTransactions ¶ added in v0.29.0
func (wb *WorkObjectBody) SetTransactions(transactions []*Transaction)
func (*WorkObjectBody) SetUncles ¶ added in v0.29.0
func (wb *WorkObjectBody) SetUncles(uncles []*WorkObjectHeader)
func (*WorkObjectBody) Transactions ¶ added in v0.29.0
func (wb *WorkObjectBody) Transactions() []*Transaction
func (*WorkObjectBody) Uncles ¶ added in v0.29.0
func (wb *WorkObjectBody) Uncles() []*WorkObjectHeader
func (*WorkObjectBody) UnmarshalJSON ¶ added in v0.29.0
func (wb *WorkObjectBody) UnmarshalJSON(input []byte) error
type WorkObjectHeader ¶ added in v0.29.0
type WorkObjectHeader struct {
PowHash atomic.Value
PowDigest atomic.Value
// contains filtered or unexported fields
}
func CopyWorkObjectHeader ¶ added in v0.29.0
func CopyWorkObjectHeader(wh *WorkObjectHeader) *WorkObjectHeader
func NewWorkObjectHeader ¶ added in v0.29.0
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, auxpow *AuxPow, scryptDiffAndCount, shaDiffAndCount *PowShareDiffAndCount, shaShareTarget, scryptShareTarget, kawpowDifficulty *big.Int) *WorkObjectHeader
func (*WorkObjectHeader) AuxPow ¶ added in v0.49.0
func (wh *WorkObjectHeader) AuxPow() *AuxPow
func (*WorkObjectHeader) Data ¶ added in v0.42.0
func (wh *WorkObjectHeader) Data() []byte
func (*WorkObjectHeader) Difficulty ¶ added in v0.29.0
func (wh *WorkObjectHeader) Difficulty() *big.Int
func (*WorkObjectHeader) Hash ¶ added in v0.29.0
func (wh *WorkObjectHeader) Hash() common.Hash
func (*WorkObjectHeader) HeaderHash ¶ added in v0.29.0
func (wh *WorkObjectHeader) HeaderHash() common.Hash
func (*WorkObjectHeader) IsKawPowBlock ¶ added in v0.49.0
func (wh *WorkObjectHeader) IsKawPowBlock() bool
func (*WorkObjectHeader) IsShaOrScryptShareWithInvalidAddress ¶ added in v0.49.0
func (wh *WorkObjectHeader) IsShaOrScryptShareWithInvalidAddress() bool
func (*WorkObjectHeader) IsTransitionProgPowBlock ¶ added in v0.49.0
func (wh *WorkObjectHeader) IsTransitionProgPowBlock() bool
IsTransitionProgPowBlock checks if the block is within the transition period
func (*WorkObjectHeader) KawpowActivationHappened ¶ added in v0.49.0
func (wh *WorkObjectHeader) KawpowActivationHappened() bool
KawpowActivationHappened checks if the AuxPow field is non-nil, indicating that Kawpow activation has occurred.
func (*WorkObjectHeader) KawpowDifficulty ¶ added in v0.49.0
func (wh *WorkObjectHeader) KawpowDifficulty() *big.Int
func (*WorkObjectHeader) Location ¶ added in v0.29.0
func (wh *WorkObjectHeader) Location() common.Location
func (*WorkObjectHeader) Lock ¶ added in v0.34.0
func (wh *WorkObjectHeader) Lock() uint8
func (*WorkObjectHeader) MarshalJSON ¶ added in v0.29.0
func (wh *WorkObjectHeader) MarshalJSON() ([]byte, error)
func (*WorkObjectHeader) MixHash ¶ added in v0.29.0
func (wh *WorkObjectHeader) MixHash() common.Hash
func (*WorkObjectHeader) Nonce ¶ added in v0.29.0
func (wh *WorkObjectHeader) Nonce() BlockNonce
func (*WorkObjectHeader) NonceU64 ¶ added in v0.29.0
func (wh *WorkObjectHeader) NonceU64() uint64
func (*WorkObjectHeader) Number ¶ added in v0.29.0
func (wh *WorkObjectHeader) Number() *big.Int
func (*WorkObjectHeader) NumberU64 ¶ added in v0.29.0
func (wh *WorkObjectHeader) NumberU64() uint64
func (*WorkObjectHeader) ParentHash ¶ added in v0.29.0
func (wh *WorkObjectHeader) ParentHash() common.Hash
func (*WorkObjectHeader) PrimaryCoinbase ¶ added in v0.34.0
func (wh *WorkObjectHeader) PrimaryCoinbase() common.Address
func (*WorkObjectHeader) PrimeTerminusNumber ¶ added in v0.30.0
func (wh *WorkObjectHeader) PrimeTerminusNumber() *big.Int
func (*WorkObjectHeader) ProtoDecode ¶ added in v0.29.0
func (wh *WorkObjectHeader) ProtoDecode(data *ProtoWorkObjectHeader, location common.Location) error
func (*WorkObjectHeader) ProtoEncode ¶ added in v0.29.0
func (wh *WorkObjectHeader) ProtoEncode() (*ProtoWorkObjectHeader, error)
func (*WorkObjectHeader) RPCMarshalWorkObjectHeader ¶ added in v0.29.0
func (wh *WorkObjectHeader) RPCMarshalWorkObjectHeader(rpcVersion string) map[string]interface{}
func (*WorkObjectHeader) ScryptDiffAndCount ¶ added in v0.49.0
func (wh *WorkObjectHeader) ScryptDiffAndCount() *PowShareDiffAndCount
func (*WorkObjectHeader) ScryptShareTarget ¶ added in v0.49.0
func (wh *WorkObjectHeader) ScryptShareTarget() *big.Int
func (*WorkObjectHeader) SealEncode ¶ added in v0.29.0
func (wh *WorkObjectHeader) SealEncode() *ProtoWorkObjectHeader
func (*WorkObjectHeader) SealHash ¶ added in v0.29.0
func (wh *WorkObjectHeader) SealHash() (hash common.Hash)
func (*WorkObjectHeader) SetAuxPow ¶ added in v0.49.0
func (wh *WorkObjectHeader) SetAuxPow(auxPow *AuxPow)
func (*WorkObjectHeader) SetData ¶ added in v0.42.0
func (wh *WorkObjectHeader) SetData(val []byte)
func (*WorkObjectHeader) SetDifficulty ¶ added in v0.29.0
func (wh *WorkObjectHeader) SetDifficulty(difficulty *big.Int)
func (*WorkObjectHeader) SetHeaderHash ¶ added in v0.29.0
func (wh *WorkObjectHeader) SetHeaderHash(headerHash common.Hash)
func (*WorkObjectHeader) SetKawpowDifficulty ¶ added in v0.49.0
func (wh *WorkObjectHeader) SetKawpowDifficulty(val *big.Int)
func (*WorkObjectHeader) SetLocation ¶ added in v0.29.0
func (wh *WorkObjectHeader) SetLocation(location common.Location)
func (*WorkObjectHeader) SetLock ¶ added in v0.34.0
func (wh *WorkObjectHeader) SetLock(lock uint8)
func (*WorkObjectHeader) SetMixHash ¶ added in v0.29.0
func (wh *WorkObjectHeader) SetMixHash(mixHash common.Hash)
func (*WorkObjectHeader) SetNonce ¶ added in v0.29.0
func (wh *WorkObjectHeader) SetNonce(nonce BlockNonce)
func (*WorkObjectHeader) SetNumber ¶ added in v0.29.0
func (wh *WorkObjectHeader) SetNumber(number *big.Int)
func (*WorkObjectHeader) SetParentHash ¶ added in v0.29.0
func (wh *WorkObjectHeader) SetParentHash(parentHash common.Hash)
func (*WorkObjectHeader) SetPrimaryCoinbase ¶ added in v0.34.0
func (wh *WorkObjectHeader) SetPrimaryCoinbase(coinbase common.Address)
func (*WorkObjectHeader) SetPrimeTerminusNumber ¶ added in v0.30.0
func (wh *WorkObjectHeader) SetPrimeTerminusNumber(primeTerminusNumber *big.Int)
func (*WorkObjectHeader) SetScryptDiffAndCount ¶ added in v0.49.0
func (wh *WorkObjectHeader) SetScryptDiffAndCount(val *PowShareDiffAndCount)
func (*WorkObjectHeader) SetScryptShareTarget ¶ added in v0.49.0
func (wh *WorkObjectHeader) SetScryptShareTarget(val *big.Int)
func (*WorkObjectHeader) SetShaDiffAndCount ¶ added in v0.49.0
func (wh *WorkObjectHeader) SetShaDiffAndCount(val *PowShareDiffAndCount)
func (*WorkObjectHeader) SetShaShareTarget ¶ added in v0.49.0
func (wh *WorkObjectHeader) SetShaShareTarget(val *big.Int)
func (*WorkObjectHeader) SetTime ¶ added in v0.29.0
func (wh *WorkObjectHeader) SetTime(val uint64)
func (*WorkObjectHeader) SetTxHash ¶ added in v0.29.0
func (wh *WorkObjectHeader) SetTxHash(txHash common.Hash)
func (*WorkObjectHeader) ShaDiffAndCount ¶ added in v0.49.0
func (wh *WorkObjectHeader) ShaDiffAndCount() *PowShareDiffAndCount
func (*WorkObjectHeader) ShaShareTarget ¶ added in v0.49.0
func (wh *WorkObjectHeader) ShaShareTarget() *big.Int
func (*WorkObjectHeader) Time ¶ added in v0.29.0
func (wh *WorkObjectHeader) Time() uint64
func (*WorkObjectHeader) TxHash ¶ added in v0.29.0
func (wh *WorkObjectHeader) TxHash() common.Hash
func (*WorkObjectHeader) UnmarshalJSON ¶ added in v0.29.0
func (wh *WorkObjectHeader) UnmarshalJSON(input []byte) error
func (*WorkObjectHeader) WoCustomPowHash ¶ added in v0.49.0
func (wh *WorkObjectHeader) WoCustomPowHash() (hash common.Hash)
func (*WorkObjectHeader) WoProgpowHash ¶ added in v0.49.0
func (wh *WorkObjectHeader) WoProgpowHash() (hash common.Hash)
type WorkObjectHeaderView ¶ added in v0.29.0
type WorkObjectHeaderView struct {
*WorkObject
}
func (*WorkObjectHeaderView) ProtoDecode ¶ added in v0.29.0
func (wo *WorkObjectHeaderView) ProtoDecode(data *ProtoWorkObjectHeaderView, location common.Location) error
func (*WorkObjectHeaderView) ProtoEncode ¶ added in v0.29.0
func (wo *WorkObjectHeaderView) ProtoEncode() (*ProtoWorkObjectHeaderView, error)
type WorkObjectShareView ¶ added in v0.30.0
type WorkObjectShareView struct {
}
func (*WorkObjectShareView) ProtoDecode ¶ added in v0.30.0
func (wos *WorkObjectShareView) ProtoDecode(data *ProtoWorkObjectShareView, location common.Location) error
func (*WorkObjectShareView) ProtoEncode ¶ added in v0.30.0
func (wo *WorkObjectShareView) ProtoEncode() (*ProtoWorkObjectShareView, error)
type WorkObjectView ¶ added in v0.29.0
type WorkObjectView int
const ( BlockObject WorkObjectView = iota BlockObjects PEtxObject HeaderObject )
Work object types
type WorkObjects ¶ added in v0.29.0
type WorkObjects []*WorkObject
type WorkShareValidity ¶ added in v0.32.0
type WorkShareValidity int
const ( Valid WorkShareValidity = iota Sub Invalid Block )
Source Files
¶
- auxpow.go
- auxpow_coinbase_utils.go
- bch.go
- block.go
- bloom9.go
- btc.go
- etx_set.go
- external_tx.go
- gaspool.go
- gen_access_tuple.go
- gen_header_json.go
- gen_log_json.go
- gen_receipt_json.go
- hashing.go
- log.go
- ltc.go
- proto_block.pb.go
- qi_tx.go
- quai_tx.go
- ravencoin.go
- receipt.go
- stxo.go
- token_choice.go
- transaction.go
- transaction_marshalling.go
- transaction_signing.go
- utxo.go
- utxo_validate.go
- wo.go