Documentation
¶
Overview ¶
Package types contains data types related to Quai consensus.
Index ¶
- Constants
- Variables
- func Bloom9(data []byte) []byte
- func BloomLookup(bin Bloom, topic bytesBacked) bool
- 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 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 DeriveSha(list DerivableList, hasher TrieHasher) common.Hash
- 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 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
- type AccessList
- type AccessTuple
- type AddressUtxos
- type Betas
- 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 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 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 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 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) GetData() []byte
- func (x *ProtoWorkObjectHeader) GetDifficulty() []byte
- func (x *ProtoWorkObjectHeader) GetHeaderHash() *common.ProtoHash
- 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) 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 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) 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) 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) 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) 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() map[string]interface{}
- func (wo *WorkObject) RPCMarshalWorkObject() map[string]interface{}
- func (wo *WorkObject) ReceiptHash() common.Hash
- func (wo *WorkObject) RegionStateRoot() common.Hash
- 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) 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
- 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() 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) Data() []byte
- func (wh *WorkObjectHeader) Difficulty() *big.Int
- func (wh *WorkObjectHeader) Hash() (hash common.Hash)
- func (wh *WorkObjectHeader) HeaderHash() common.Hash
- 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() map[string]interface{}
- func (wh *WorkObjectHeader) SealEncode() *ProtoWorkObjectHeader
- func (wh *WorkObjectHeader) SealHash() (hash common.Hash)
- func (wh *WorkObjectHeader) SetData(val []byte)
- func (wh *WorkObjectHeader) SetDifficulty(difficulty *big.Int)
- func (wh *WorkObjectHeader) SetHeaderHash(headerHash common.Hash)
- 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) SetTime(val uint64)
- func (wh *WorkObjectHeader) SetTxHash(txHash common.Hash)
- func (wh *WorkObjectHeader) Time() uint64
- func (wh *WorkObjectHeader) TxHash() common.Hash
- func (wh *WorkObjectHeader) UnmarshalJSON(input []byte) error
- 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 )
ETX types
const ( MaxDenomination = 14 MaxOutputIndex = math.MaxUint16 MaxTrimDenomination = 5 )
const (
C_tokenChoiceSetSize = 100
)
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")) )
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 CalcUncleHash ¶
func CalcUncleHash(uncles []*WorkObjectHeader) (hash common.Hash)
func CalculateBlockQiTxGas ¶
func CalculateBlockQiTxGas(transaction *Transaction, qiScalingFactor float64, location common.Location) uint64
CalculateBlockQiTxGas calculates the amount of gas a Qi tx uses in a block (for block gas limit calculation)
func CalculateIntrinsicQiTxGas ¶
func CalculateIntrinsicQiTxGas(transaction *Transaction, scalingFactor float64) uint64
CalculateIntrinsicQiTxGas calculates the intrinsic gas for a Qi tx without ETXs
func CalculateQiTxGas ¶
func CalculateQiTxGas(transaction *Transaction, qiScalingFactor float64, location common.Location) uint64
CalculateQiTxGas calculates the total amount of gas a Qi tx uses (for fee calculation)
func CoinbaseLockupHash ¶
func CompareFeeBetweenTx ¶
func CompareFeeBetweenTx(a, b *Transaction) int
func DeriveSha ¶
func DeriveSha(list DerivableList, hasher TrieHasher) common.Hash
DeriveSha creates the tree hashes of transactions and receipts in a block header.
func IsCoinBaseTx ¶
func IsCoinBaseTx(tx *Transaction) bool
IsCoinBaseTx determines whether or not a transaction is a coinbase. A coinbase is a special transaction created by miners that has no inputs. This is represented in the block chain by a transaction with a single input that has a previous output transaction index set to the maximum value along with a zero hash.
This function only differs from IsCoinBase in that it works with a raw wire transaction as opposed to a higher level util transaction.
func IsConversionTx ¶
func IsConversionTx(tx *Transaction) bool
It checks if an tx is a conversion type
func IsQiToQuaiConversionTx ¶
func IsQiToQuaiConversionTx(tx *Transaction) bool
func IsQuaiToQiConversionTx ¶
func IsQuaiToQiConversionTx(tx *Transaction) bool
func 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.
Types ¶
type AccessList ¶
type AccessList []AccessTuple
AccessList is an access list.
func (*AccessList) ConvertToMixedCase ¶
func (al *AccessList) ConvertToMixedCase() *MixedAccessList
func (*AccessList) ProtoDecode ¶
func (al *AccessList) ProtoDecode(protoAccessList *ProtoAccessList, location common.Location) error
ProtoDecode deserializes the ProtoAccessList into the AccessList format
func (AccessList) ProtoEncode ¶
func (al AccessList) ProtoEncode() *ProtoAccessList
ProtoEncode serializes al into the Quai Proto AccessList format
func (AccessList) StorageKeys ¶
func (al AccessList) StorageKeys() int
StorageKeys returns the total number of storage keys in the access list.
type AccessTuple ¶
type AccessTuple struct { Address common.Address `json:"address" gencodec:"required"` StorageKeys []common.Hash `json:"storageKeys" gencodec:"required"` }
AccessTuple is the element type of an access list.
func (AccessTuple) MarshalJSON ¶
func (a AccessTuple) MarshalJSON() ([]byte, error)
MarshalJSON marshals as JSON.
func (*AccessTuple) UnmarshalJSON ¶
func (a *AccessTuple) UnmarshalJSON(input []byte) error
UnmarshalJSON unmarshals from JSON.
type AddressUtxos ¶
type Betas ¶
type Betas struct {
// contains filtered or unexported fields
}
Betas struct holds the beta0 and beta1 of the logistic regression for each prime block
func (*Betas) ProtoDecode ¶
func (b *Betas) ProtoDecode(betas *ProtoBetas) error
func (*Betas) ProtoEncode ¶
func (b *Betas) ProtoEncode() (*ProtoBetas, error)
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 ¶
func (m *BlockManifest) ProtoDecode(protoManifest *ProtoManifest) error
ProtoDecode deserializes th ProtoManifest into the BlockManifest format
func (BlockManifest) ProtoEncode ¶
func (m BlockManifest) ProtoEncode() (*ProtoManifest, error)
ProtoEncode serializes m into the Quai Proto BlockManifest format
func (BlockManifest) Size ¶
func (m BlockManifest) Size() common.StorageSize
Size returns the approximate memory used by all internal contents. It is used to approximate and limit the memory consumption of various caches.
type BlockNonce ¶
type BlockNonce [NonceLength]byte
A BlockNonce is a 64-bit hash which proves (combined with the mix-hash) that a sufficient amount of computation has been carried out on a block.
func EncodeNonce ¶
func EncodeNonce(i uint64) BlockNonce
EncodeNonce converts the given integer to a block nonce.
func (BlockNonce) Bytes ¶
func (n BlockNonce) Bytes() []byte
Bytes() returns the raw bytes of the block nonce
func (BlockNonce) MarshalText ¶
func (n BlockNonce) MarshalText() ([]byte, error)
MarshalText encodes n as a hex string with 0x prefix.
func (BlockNonce) Uint64 ¶
func (n BlockNonce) Uint64() uint64
Uint64 returns the integer value of a block nonce.
func (*BlockNonce) UnmarshalText ¶
func (n *BlockNonce) UnmarshalText(input []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
type 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 ¶
ProtoDecode decodes b from a protobuf message.
func (*Bloom) ProtoEncode ¶
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 ¶
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) ProtoDecode ¶
func (set *EtxSet) ProtoDecode(protoSet *ProtoEtxSet) error
ProtoDecode decodes the EtxSet from protobuf format.
func (*EtxSet) ProtoEncode ¶
func (set *EtxSet) ProtoEncode() *ProtoEtxSet
ProtoEncode encodes the EtxSet to protobuf format.
func (*EtxSet) Update ¶
func (set *EtxSet) Update(newInboundEtxs Transactions, nodeLocation common.Location, WriteETXFunc func(hash common.Hash, etx *Transaction)) error
updateInboundEtxs updates the set of inbound ETXs available to be mined into a block in this location. This method adds any new ETXs to the set and removes expired ETXs.
type ExternalTx ¶
type GasPool ¶
type GasPool uint64
GasPool tracks the amount of gas available during execution of the transactions in a block. The zero value is a pool with zero gas available.
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 ¶
func (*Header) EfficiencyScore ¶
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 ¶
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 ¶
func (*Header) EtxRollupHash ¶
func (*Header) EtxSetRoot ¶
func (*Header) ExchangeRate ¶
func (*Header) ExpansionNumber ¶
func (*Header) InterlinkRootHash ¶
func (*Header) KQuaiDiscount ¶
func (*Header) ManifestHashArray ¶
func (Header) MarshalJSON ¶
MarshalJSON marshals as JSON.
func (*Header) MinerDifficulty ¶
func (*Header) NumberArray ¶
func (*Header) OutboundEtxHash ¶
func (*Header) ParentHash ¶
Localized accessors
func (*Header) ParentUncledDeltaEntropy ¶
func (*Header) ParentUncledDeltaEntropyArray ¶
func (*Header) PrimeStateRoot ¶
func (*Header) PrimeTerminusHash ¶
func (*Header) ProtoDecode ¶
func (h *Header) ProtoDecode(protoHeader *ProtoHeader, location common.Location) error
ProtoDecode deserializes the ProtoHeader into the Header format
func (*Header) ProtoEncode ¶
func (h *Header) ProtoEncode() (*ProtoHeader, error)
ProtoEncode serializes h into the Quai Proto Header format
func (*Header) QuaiStateSize ¶
func (*Header) RPCMarshalHeader ¶
RPCMarshalHeader converts the given header to the RPC output .
func (*Header) ReceiptHash ¶
func (*Header) RegionStateRoot ¶
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 ¶
func (h *Header) SealEncode() *ProtoHeader
SealEncode serializes s into the Quai Proto sealData format
func (*Header) SetAvgTxFees ¶
func (*Header) SetBaseFee ¶
func (*Header) SetConversionFlowAmount ¶
func (*Header) SetEVMRoot ¶
func (*Header) SetEfficiencyScore ¶
func (*Header) SetEtxEligibleSlices ¶
func (*Header) SetEtxRollupHash ¶
func (*Header) SetEtxSetRoot ¶
func (*Header) SetExchangeRate ¶
func (*Header) SetExpansionNumber ¶
func (*Header) SetGasLimit ¶
func (*Header) SetGasUsed ¶
func (*Header) SetInterlinkRootHash ¶
func (*Header) SetKQuaiDiscount ¶
func (*Header) SetMinerDifficulty ¶
func (*Header) SetOutboundEtxHash ¶
func (*Header) SetParentDeltaEntropy ¶
func (*Header) SetParentUncledDeltaEntropy ¶
func (*Header) SetPrimeStateRoot ¶
func (*Header) SetPrimeTerminusHash ¶
func (*Header) SetQuaiStateSize ¶
func (*Header) SetReceiptHash ¶
func (*Header) SetRegionStateRoot ¶
func (*Header) SetStateLimit ¶
func (*Header) SetStateUsed ¶
func (*Header) SetThresholdCount ¶
func (*Header) SetTotalFees ¶
func (*Header) SetUTXORoot ¶
func (*Header) SetUncleHash ¶
func (*Header) SetUncledEntropy ¶
func (*Header) Size ¶
func (h *Header) Size() common.StorageSize
Size returns the approximate memory used by all internal contents. It is used to approximate and limit the memory consumption of various caches.
func (*Header) StateLimit ¶
func (*Header) ThresholdCount ¶
func (*Header) UncledEntropy ¶
func (*Header) UnmarshalJSON ¶
UnmarshalJSON unmarshals from JSON.
type LegacyBloom ¶
type LegacyBloom [256]byte
func (LegacyBloom) MarshalText ¶
func (b LegacyBloom) MarshalText() ([]byte, error)
MarshalText encodes b as a hex string with 0x prefix.
type 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 ¶
func (l *LogForStorage) ProtoDecode(protoLog *ProtoLogForStorage, location common.Location) error
ProtoDecode converts the protobuf to a log representation.
func (LogForStorage) ProtoEncode ¶
func (l LogForStorage) ProtoEncode() *ProtoLogForStorage
ProtoEncode converts the log to a protobuf representation.
type 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 ¶
type MixedAccessList []MixedAccessTuple
MixedAccessList is an access list of MixedCaseAddresses
type MixedAccessTuple ¶
type MixedAccessTuple struct { Address common.MixedcaseAddress `json:"address" gencodec:"required"` StorageKeys []common.Hash `json:"storageKeys" gencodec:"required"` }
type OutPoint ¶
OutPoint defines a Qi data type that is used to track previous outputs
func NewOutPoint ¶
NewOutPoint returns a new Qi transaction outpoint point with the provided hash and index.
func (*OutPoint) ProtoDecode ¶
func (outPoint *OutPoint) ProtoDecode(protoOutPoint *ProtoOutPoint) error
func (OutPoint) ProtoEncode ¶
func (outPoint OutPoint) ProtoEncode() (*ProtoOutPoint, error)
type OutpointAndDenomination ¶
type OutpointAndDenomination struct { TxHash common.Hash `json:"txHash"` Index uint16 `json:"index"` Denomination uint8 `json:"denomination"` Lock *big.Int `json:"lock"` }
func (OutpointAndDenomination) Key ¶
func (outPoint OutpointAndDenomination) Key() string
func (*OutpointAndDenomination) ProtoDecode ¶
func (outPoint *OutpointAndDenomination) ProtoDecode(protoOutPoint *ProtoOutPointAndDenomination) error
func (OutpointAndDenomination) ProtoEncode ¶
func (outPoint OutpointAndDenomination) ProtoEncode() (*ProtoOutPointAndDenomination, error)
func (*OutpointAndDenomination) UnmarshalJSON ¶
func (outpoint *OutpointAndDenomination) UnmarshalJSON(input []byte) error
type OutpointJSON ¶
type PendingEtxs ¶
type PendingEtxs struct { Header *WorkObject `json:"header" gencodec:"required"` OutboundEtxs Transactions `json:"outboundEtxs" gencodec:"required"` }
PendingEtxs are ETXs which have been emitted from the zone which produced the given block. Specifically, it contains the collection of ETXs emitted since our prior coincident with our sub in that slice. In Prime context, our subordinate will be a region node, so the Etxs list will contain the rollup of ETXs emitted from each zone block since the zone's prior coincidence with the region. In Region context, our subordinate chain will be the zone itself, so the Etxs list will just contain the ETXs emitted directly in that zone block (a.k.a. a singleton).
func (*PendingEtxs) IsValid ¶
func (p *PendingEtxs) IsValid(hasher TrieHasher) bool
func (*PendingEtxs) ProtoDecode ¶
func (p *PendingEtxs) ProtoDecode(protoPendingEtxs *ProtoPendingEtxs, location common.Location) error
ProtoDecode decodes the protobuf to a PendingEtxs representation.
func (*PendingEtxs) ProtoEncode ¶
func (p *PendingEtxs) ProtoEncode() (*ProtoPendingEtxs, error)
ProtoEncode encodes the PendingEtxs to protobuf format.
type PendingEtxsRollup ¶
type PendingEtxsRollup struct { Header *WorkObject `json:"header" gencodec:"required"` EtxsRollup Transactions `json:"etxsrollup" gencodec:"required"` }
PendingEtxsRollup is Header and EtxRollups of that header that should be forward propagated
func (*PendingEtxsRollup) IsValid ¶
func (p *PendingEtxsRollup) IsValid(hasher TrieHasher) bool
func (*PendingEtxsRollup) ProtoDecode ¶
func (p *PendingEtxsRollup) ProtoDecode(protoPendingEtxsRollup *ProtoPendingEtxsRollup, location common.Location) error
ProtoDecode decodes the protobuf to a PendingEtxsRollup representation.
func (*PendingEtxsRollup) ProtoEncode ¶
func (p *PendingEtxsRollup) ProtoEncode() (*ProtoPendingEtxsRollup, error)
ProtoEncode encodes the PendingEtxsRollup to protobuf format.
type PendingHeader ¶
type PendingHeader struct {
// contains filtered or unexported fields
}
PendingHeader stores the header and termini value associated with the header.
func CopyPendingHeader ¶
func CopyPendingHeader(ph *PendingHeader) *PendingHeader
func EmptyPendingHeader ¶
func EmptyPendingHeader() PendingHeader
func NewPendingHeader ¶
func NewPendingHeader(wo *WorkObject, termini Termini) PendingHeader
func (*PendingHeader) ProtoDecode ¶
func (ph *PendingHeader) ProtoDecode(protoPendingHeader *ProtoPendingHeader, location common.Location) error
ProtoEncode deserializes the ProtoHeader into the Header format
func (PendingHeader) ProtoEncode ¶
func (ph PendingHeader) ProtoEncode() (*ProtoPendingHeader, error)
ProtoEncode serializes h into the Quai Proto PendingHeader format
func (*PendingHeader) SetHeader ¶
func (ph *PendingHeader) SetHeader(header *WorkObject)
func (*PendingHeader) SetTermini ¶
func (ph *PendingHeader) SetTermini(termini Termini)
func (*PendingHeader) SetWorkObject ¶
func (ph *PendingHeader) SetWorkObject(wo *WorkObject)
func (PendingHeader) Termini ¶
func (ph PendingHeader) Termini() Termini
func (PendingHeader) WorkObject ¶
func (ph PendingHeader) WorkObject() *WorkObject
accessor methods for pending header
type ProtoAccessList ¶
type ProtoAccessList struct { AccessTuples []*ProtoAccessTuple `protobuf:"bytes,1,rep,name=access_tuples,json=accessTuples,proto3" json:"access_tuples,omitempty"` // contains filtered or unexported fields }
func (*ProtoAccessList) Descriptor
deprecated
func (*ProtoAccessList) Descriptor() ([]byte, []int)
Deprecated: Use ProtoAccessList.ProtoReflect.Descriptor instead.
func (*ProtoAccessList) GetAccessTuples ¶
func (x *ProtoAccessList) GetAccessTuples() []*ProtoAccessTuple
func (*ProtoAccessList) ProtoMessage ¶
func (*ProtoAccessList) ProtoMessage()
func (*ProtoAccessList) ProtoReflect ¶
func (x *ProtoAccessList) ProtoReflect() protoreflect.Message
func (*ProtoAccessList) Reset ¶
func (x *ProtoAccessList) Reset()
func (*ProtoAccessList) String ¶
func (x *ProtoAccessList) String() string
type ProtoAccessTuple ¶
type ProtoAccessTuple struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` StorageKey []*common.ProtoHash `protobuf:"bytes,2,rep,name=storage_key,json=storageKey,proto3" json:"storage_key,omitempty"` // contains filtered or unexported fields }
func (*ProtoAccessTuple) Descriptor
deprecated
func (*ProtoAccessTuple) Descriptor() ([]byte, []int)
Deprecated: Use ProtoAccessTuple.ProtoReflect.Descriptor instead.
func (*ProtoAccessTuple) GetAddress ¶
func (x *ProtoAccessTuple) GetAddress() []byte
func (*ProtoAccessTuple) GetStorageKey ¶
func (x *ProtoAccessTuple) GetStorageKey() []*common.ProtoHash
func (*ProtoAccessTuple) ProtoMessage ¶
func (*ProtoAccessTuple) ProtoMessage()
func (*ProtoAccessTuple) ProtoReflect ¶
func (x *ProtoAccessTuple) ProtoReflect() protoreflect.Message
func (*ProtoAccessTuple) Reset ¶
func (x *ProtoAccessTuple) Reset()
func (*ProtoAccessTuple) String ¶
func (x *ProtoAccessTuple) String() string
type ProtoAddressOutPoints ¶
type ProtoAddressOutPoints struct { OutPoints []*ProtoOutPointAndDenomination `protobuf:"bytes,1,rep,name=out_points,json=outPoints,proto3" json:"out_points,omitempty"` // contains filtered or unexported fields }
func (*ProtoAddressOutPoints) Descriptor
deprecated
func (*ProtoAddressOutPoints) Descriptor() ([]byte, []int)
Deprecated: Use ProtoAddressOutPoints.ProtoReflect.Descriptor instead.
func (*ProtoAddressOutPoints) GetOutPoints ¶
func (x *ProtoAddressOutPoints) GetOutPoints() []*ProtoOutPointAndDenomination
func (*ProtoAddressOutPoints) ProtoMessage ¶
func (*ProtoAddressOutPoints) ProtoMessage()
func (*ProtoAddressOutPoints) ProtoReflect ¶
func (x *ProtoAddressOutPoints) ProtoReflect() protoreflect.Message
func (*ProtoAddressOutPoints) Reset ¶
func (x *ProtoAddressOutPoints) Reset()
func (*ProtoAddressOutPoints) String ¶
func (x *ProtoAddressOutPoints) String() string
type ProtoBetas ¶
type ProtoBetas struct { Beta0 []byte `protobuf:"bytes,1,opt,name=beta0,proto3" json:"beta0,omitempty"` Beta1 []byte `protobuf:"bytes,2,opt,name=beta1,proto3" json:"beta1,omitempty"` // contains filtered or unexported fields }
func (*ProtoBetas) Descriptor
deprecated
func (*ProtoBetas) Descriptor() ([]byte, []int)
Deprecated: Use ProtoBetas.ProtoReflect.Descriptor instead.
func (*ProtoBetas) GetBeta0 ¶
func (x *ProtoBetas) GetBeta0() []byte
func (*ProtoBetas) GetBeta1 ¶
func (x *ProtoBetas) GetBeta1() []byte
func (*ProtoBetas) ProtoMessage ¶
func (*ProtoBetas) ProtoMessage()
func (*ProtoBetas) ProtoReflect ¶
func (x *ProtoBetas) ProtoReflect() protoreflect.Message
func (*ProtoBetas) Reset ¶
func (x *ProtoBetas) Reset()
func (*ProtoBetas) String ¶
func (x *ProtoBetas) String() string
type ProtoEtxSet ¶
type ProtoEtxSet struct { EtxHashes []byte `protobuf:"bytes,1,opt,name=etx_hashes,json=etxHashes,proto3,oneof" json:"etx_hashes,omitempty"` // contains filtered or unexported fields }
func (*ProtoEtxSet) Descriptor
deprecated
func (*ProtoEtxSet) Descriptor() ([]byte, []int)
Deprecated: Use ProtoEtxSet.ProtoReflect.Descriptor instead.
func (*ProtoEtxSet) GetEtxHashes ¶
func (x *ProtoEtxSet) GetEtxHashes() []byte
func (*ProtoEtxSet) ProtoMessage ¶
func (*ProtoEtxSet) ProtoMessage()
func (*ProtoEtxSet) ProtoReflect ¶
func (x *ProtoEtxSet) ProtoReflect() protoreflect.Message
func (*ProtoEtxSet) Reset ¶
func (x *ProtoEtxSet) Reset()
func (*ProtoEtxSet) String ¶
func (x *ProtoEtxSet) String() string
type ProtoHeader ¶
type ProtoHeader struct { ParentHash []*common.ProtoHash `protobuf:"bytes,1,rep,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` UncleHash *common.ProtoHash `protobuf:"bytes,2,opt,name=uncle_hash,json=uncleHash,proto3,oneof" json:"uncle_hash,omitempty"` EvmRoot *common.ProtoHash `protobuf:"bytes,3,opt,name=evm_root,json=evmRoot,proto3,oneof" json:"evm_root,omitempty"` TxHash *common.ProtoHash `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3,oneof" json:"tx_hash,omitempty"` OutboundEtxHash *common.ProtoHash `protobuf:"bytes,5,opt,name=outbound_etx_hash,json=outboundEtxHash,proto3,oneof" json:"outbound_etx_hash,omitempty"` EtxRollupHash *common.ProtoHash `protobuf:"bytes,6,opt,name=etx_rollup_hash,json=etxRollupHash,proto3,oneof" json:"etx_rollup_hash,omitempty"` ManifestHash []*common.ProtoHash `protobuf:"bytes,7,rep,name=manifest_hash,json=manifestHash,proto3" json:"manifest_hash,omitempty"` ReceiptHash *common.ProtoHash `protobuf:"bytes,8,opt,name=receipt_hash,json=receiptHash,proto3,oneof" json:"receipt_hash,omitempty"` Difficulty []byte `protobuf:"bytes,9,opt,name=difficulty,proto3,oneof" json:"difficulty,omitempty"` ParentEntropy [][]byte `protobuf:"bytes,10,rep,name=parent_entropy,json=parentEntropy,proto3" json:"parent_entropy,omitempty"` ParentDeltaEntropy [][]byte `protobuf:"bytes,11,rep,name=parent_delta_entropy,json=parentDeltaEntropy,proto3" json:"parent_delta_entropy,omitempty"` ParentUncledDeltaEntropy [][]byte `` /* 138-byte string literal not displayed */ UncledEntropy []byte `protobuf:"bytes,13,opt,name=uncled_entropy,json=uncledEntropy,proto3,oneof" json:"uncled_entropy,omitempty"` Number [][]byte `protobuf:"bytes,14,rep,name=number,proto3" json:"number,omitempty"` GasLimit *uint64 `protobuf:"varint,15,opt,name=gas_limit,json=gasLimit,proto3,oneof" json:"gas_limit,omitempty"` GasUsed *uint64 `protobuf:"varint,16,opt,name=gas_used,json=gasUsed,proto3,oneof" json:"gas_used,omitempty"` BaseFee []byte `protobuf:"bytes,17,opt,name=base_fee,json=baseFee,proto3,oneof" json:"base_fee,omitempty"` Location *common.ProtoLocation `protobuf:"bytes,18,opt,name=location,proto3,oneof" json:"location,omitempty"` Extra []byte `protobuf:"bytes,19,opt,name=extra,proto3,oneof" json:"extra,omitempty"` MixHash *common.ProtoHash `protobuf:"bytes,20,opt,name=mix_hash,json=mixHash,proto3,oneof" json:"mix_hash,omitempty"` Nonce *uint64 `protobuf:"varint,21,opt,name=nonce,proto3,oneof" json:"nonce,omitempty"` UtxoRoot *common.ProtoHash `protobuf:"bytes,22,opt,name=utxo_root,json=utxoRoot,proto3,oneof" json:"utxo_root,omitempty"` EtxSetRoot *common.ProtoHash `protobuf:"bytes,23,opt,name=etx_set_root,json=etxSetRoot,proto3,oneof" json:"etx_set_root,omitempty"` EfficiencyScore *uint64 `protobuf:"varint,24,opt,name=efficiency_score,json=efficiencyScore,proto3,oneof" json:"efficiency_score,omitempty"` ThresholdCount *uint64 `protobuf:"varint,25,opt,name=threshold_count,json=thresholdCount,proto3,oneof" json:"threshold_count,omitempty"` ExpansionNumber *uint64 `protobuf:"varint,26,opt,name=expansion_number,json=expansionNumber,proto3,oneof" json:"expansion_number,omitempty"` EtxEligibleSlices *common.ProtoHash `protobuf:"bytes,27,opt,name=etx_eligible_slices,json=etxEligibleSlices,proto3,oneof" json:"etx_eligible_slices,omitempty"` PrimeTerminusHash *common.ProtoHash `protobuf:"bytes,28,opt,name=prime_terminus_hash,json=primeTerminusHash,proto3,oneof" json:"prime_terminus_hash,omitempty"` InterlinkRootHash *common.ProtoHash `protobuf:"bytes,29,opt,name=interlink_root_hash,json=interlinkRootHash,proto3,oneof" json:"interlink_root_hash,omitempty"` StateLimit *uint64 `protobuf:"varint,30,opt,name=state_limit,json=stateLimit,proto3,oneof" json:"state_limit,omitempty"` StateUsed *uint64 `protobuf:"varint,31,opt,name=state_used,json=stateUsed,proto3,oneof" json:"state_used,omitempty"` QuaiStateSize []byte `protobuf:"bytes,32,opt,name=quai_state_size,json=quaiStateSize,proto3,oneof" json:"quai_state_size,omitempty"` ExchangeRate []byte `protobuf:"bytes,33,opt,name=exchange_rate,json=exchangeRate,proto3,oneof" json:"exchange_rate,omitempty"` AvgTxFees []byte `protobuf:"bytes,35,opt,name=avg_tx_fees,json=avgTxFees,proto3,oneof" json:"avg_tx_fees,omitempty"` TotalFees []byte `protobuf:"bytes,36,opt,name=total_fees,json=totalFees,proto3,oneof" json:"total_fees,omitempty"` KQuaiDiscount []byte `protobuf:"bytes,37,opt,name=k_quai_discount,json=kQuaiDiscount,proto3,oneof" json:"k_quai_discount,omitempty"` ConversionFlowAmount []byte `` /* 130-byte string literal not displayed */ MinerDifficulty []byte `protobuf:"bytes,39,opt,name=miner_difficulty,json=minerDifficulty,proto3,oneof" json:"miner_difficulty,omitempty"` PrimeStateRoot *common.ProtoHash `protobuf:"bytes,40,opt,name=prime_state_root,json=primeStateRoot,proto3,oneof" json:"prime_state_root,omitempty"` RegionStateRoot *common.ProtoHash `protobuf:"bytes,41,opt,name=region_state_root,json=regionStateRoot,proto3,oneof" json:"region_state_root,omitempty"` // contains filtered or unexported fields }
func (*ProtoHeader) Descriptor
deprecated
func (*ProtoHeader) Descriptor() ([]byte, []int)
Deprecated: Use ProtoHeader.ProtoReflect.Descriptor instead.
func (*ProtoHeader) GetAvgTxFees ¶
func (x *ProtoHeader) GetAvgTxFees() []byte
func (*ProtoHeader) GetBaseFee ¶
func (x *ProtoHeader) GetBaseFee() []byte
func (*ProtoHeader) GetConversionFlowAmount ¶
func (x *ProtoHeader) GetConversionFlowAmount() []byte
func (*ProtoHeader) GetDifficulty ¶
func (x *ProtoHeader) GetDifficulty() []byte
func (*ProtoHeader) GetEfficiencyScore ¶
func (x *ProtoHeader) GetEfficiencyScore() uint64
func (*ProtoHeader) GetEtxEligibleSlices ¶
func (x *ProtoHeader) GetEtxEligibleSlices() *common.ProtoHash
func (*ProtoHeader) GetEtxRollupHash ¶
func (x *ProtoHeader) GetEtxRollupHash() *common.ProtoHash
func (*ProtoHeader) GetEtxSetRoot ¶
func (x *ProtoHeader) GetEtxSetRoot() *common.ProtoHash
func (*ProtoHeader) GetEvmRoot ¶
func (x *ProtoHeader) GetEvmRoot() *common.ProtoHash
func (*ProtoHeader) GetExchangeRate ¶
func (x *ProtoHeader) GetExchangeRate() []byte
func (*ProtoHeader) GetExpansionNumber ¶
func (x *ProtoHeader) GetExpansionNumber() uint64
func (*ProtoHeader) GetExtra ¶
func (x *ProtoHeader) GetExtra() []byte
func (*ProtoHeader) GetGasLimit ¶
func (x *ProtoHeader) GetGasLimit() uint64
func (*ProtoHeader) GetGasUsed ¶
func (x *ProtoHeader) GetGasUsed() uint64
func (*ProtoHeader) GetInterlinkRootHash ¶
func (x *ProtoHeader) GetInterlinkRootHash() *common.ProtoHash
func (*ProtoHeader) GetKQuaiDiscount ¶
func (x *ProtoHeader) GetKQuaiDiscount() []byte
func (*ProtoHeader) GetLocation ¶
func (x *ProtoHeader) GetLocation() *common.ProtoLocation
func (*ProtoHeader) GetManifestHash ¶
func (x *ProtoHeader) GetManifestHash() []*common.ProtoHash
func (*ProtoHeader) GetMinerDifficulty ¶
func (x *ProtoHeader) GetMinerDifficulty() []byte
func (*ProtoHeader) GetMixHash ¶
func (x *ProtoHeader) GetMixHash() *common.ProtoHash
func (*ProtoHeader) GetNonce ¶
func (x *ProtoHeader) GetNonce() uint64
func (*ProtoHeader) GetNumber ¶
func (x *ProtoHeader) GetNumber() [][]byte
func (*ProtoHeader) GetOutboundEtxHash ¶
func (x *ProtoHeader) GetOutboundEtxHash() *common.ProtoHash
func (*ProtoHeader) GetParentDeltaEntropy ¶
func (x *ProtoHeader) GetParentDeltaEntropy() [][]byte
func (*ProtoHeader) GetParentEntropy ¶
func (x *ProtoHeader) GetParentEntropy() [][]byte
func (*ProtoHeader) GetParentHash ¶
func (x *ProtoHeader) GetParentHash() []*common.ProtoHash
func (*ProtoHeader) GetParentUncledDeltaEntropy ¶
func (x *ProtoHeader) GetParentUncledDeltaEntropy() [][]byte
func (*ProtoHeader) GetPrimeStateRoot ¶
func (x *ProtoHeader) GetPrimeStateRoot() *common.ProtoHash
func (*ProtoHeader) GetPrimeTerminusHash ¶
func (x *ProtoHeader) GetPrimeTerminusHash() *common.ProtoHash
func (*ProtoHeader) GetQuaiStateSize ¶
func (x *ProtoHeader) GetQuaiStateSize() []byte
func (*ProtoHeader) GetReceiptHash ¶
func (x *ProtoHeader) GetReceiptHash() *common.ProtoHash
func (*ProtoHeader) GetRegionStateRoot ¶
func (x *ProtoHeader) GetRegionStateRoot() *common.ProtoHash
func (*ProtoHeader) GetStateLimit ¶
func (x *ProtoHeader) GetStateLimit() uint64
func (*ProtoHeader) GetStateUsed ¶
func (x *ProtoHeader) GetStateUsed() uint64
func (*ProtoHeader) GetThresholdCount ¶
func (x *ProtoHeader) GetThresholdCount() uint64
func (*ProtoHeader) GetTotalFees ¶
func (x *ProtoHeader) GetTotalFees() []byte
func (*ProtoHeader) GetTxHash ¶
func (x *ProtoHeader) GetTxHash() *common.ProtoHash
func (*ProtoHeader) GetUncleHash ¶
func (x *ProtoHeader) GetUncleHash() *common.ProtoHash
func (*ProtoHeader) GetUncledEntropy ¶
func (x *ProtoHeader) GetUncledEntropy() []byte
func (*ProtoHeader) GetUtxoRoot ¶
func (x *ProtoHeader) GetUtxoRoot() *common.ProtoHash
func (*ProtoHeader) ProtoMessage ¶
func (*ProtoHeader) ProtoMessage()
func (*ProtoHeader) ProtoReflect ¶
func (x *ProtoHeader) ProtoReflect() protoreflect.Message
func (*ProtoHeader) Reset ¶
func (x *ProtoHeader) Reset()
func (*ProtoHeader) String ¶
func (x *ProtoHeader) String() string
type ProtoHeaders ¶
type ProtoHeaders struct { Headers []*ProtoHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` // contains filtered or unexported fields }
func (*ProtoHeaders) Descriptor
deprecated
func (*ProtoHeaders) Descriptor() ([]byte, []int)
Deprecated: Use ProtoHeaders.ProtoReflect.Descriptor instead.
func (*ProtoHeaders) GetHeaders ¶
func (x *ProtoHeaders) GetHeaders() []*ProtoHeader
func (*ProtoHeaders) ProtoMessage ¶
func (*ProtoHeaders) ProtoMessage()
func (*ProtoHeaders) ProtoReflect ¶
func (x *ProtoHeaders) ProtoReflect() protoreflect.Message
func (*ProtoHeaders) Reset ¶
func (x *ProtoHeaders) Reset()
func (*ProtoHeaders) String ¶
func (x *ProtoHeaders) String() string
type ProtoKeyValue ¶
type ProtoKeyValue struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ProtoKeyValue) Descriptor
deprecated
func (*ProtoKeyValue) Descriptor() ([]byte, []int)
Deprecated: Use ProtoKeyValue.ProtoReflect.Descriptor instead.
func (*ProtoKeyValue) GetKey ¶
func (x *ProtoKeyValue) GetKey() []byte
func (*ProtoKeyValue) GetValue ¶
func (x *ProtoKeyValue) GetValue() []byte
func (*ProtoKeyValue) ProtoMessage ¶
func (*ProtoKeyValue) ProtoMessage()
func (*ProtoKeyValue) ProtoReflect ¶
func (x *ProtoKeyValue) ProtoReflect() protoreflect.Message
func (*ProtoKeyValue) Reset ¶
func (x *ProtoKeyValue) Reset()
func (*ProtoKeyValue) String ¶
func (x *ProtoKeyValue) String() string
type ProtoKeys ¶
type ProtoKeys struct { Keys [][]byte `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*ProtoKeys) Descriptor
deprecated
func (*ProtoKeys) ProtoMessage ¶
func (*ProtoKeys) ProtoMessage()
func (*ProtoKeys) ProtoReflect ¶
func (x *ProtoKeys) ProtoReflect() protoreflect.Message
type ProtoKeysAndValues ¶
type ProtoKeysAndValues struct { KeysAndValues []*ProtoKeyValue `protobuf:"bytes,1,rep,name=keys_and_values,json=keysAndValues,proto3" json:"keys_and_values,omitempty"` // contains filtered or unexported fields }
func (*ProtoKeysAndValues) Descriptor
deprecated
func (*ProtoKeysAndValues) Descriptor() ([]byte, []int)
Deprecated: Use ProtoKeysAndValues.ProtoReflect.Descriptor instead.
func (*ProtoKeysAndValues) GetKeysAndValues ¶
func (x *ProtoKeysAndValues) GetKeysAndValues() []*ProtoKeyValue
func (*ProtoKeysAndValues) ProtoMessage ¶
func (*ProtoKeysAndValues) ProtoMessage()
func (*ProtoKeysAndValues) ProtoReflect ¶
func (x *ProtoKeysAndValues) ProtoReflect() protoreflect.Message
func (*ProtoKeysAndValues) Reset ¶
func (x *ProtoKeysAndValues) Reset()
func (*ProtoKeysAndValues) String ¶
func (x *ProtoKeysAndValues) String() string
type ProtoLockedBalance ¶
type ProtoLockedBalance struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ProtoLockedBalance) Descriptor
deprecated
func (*ProtoLockedBalance) Descriptor() ([]byte, []int)
Deprecated: Use ProtoLockedBalance.ProtoReflect.Descriptor instead.
func (*ProtoLockedBalance) GetValue ¶
func (x *ProtoLockedBalance) GetValue() []byte
func (*ProtoLockedBalance) ProtoMessage ¶
func (*ProtoLockedBalance) ProtoMessage()
func (*ProtoLockedBalance) ProtoReflect ¶
func (x *ProtoLockedBalance) ProtoReflect() protoreflect.Message
func (*ProtoLockedBalance) Reset ¶
func (x *ProtoLockedBalance) Reset()
func (*ProtoLockedBalance) String ¶
func (x *ProtoLockedBalance) String() string
type ProtoLockup ¶
type ProtoLockup struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` UnlockHeight uint64 `protobuf:"varint,2,opt,name=unlock_height,json=unlockHeight,proto3" json:"unlock_height,omitempty"` Address *common.ProtoAddress `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*ProtoLockup) Descriptor
deprecated
func (*ProtoLockup) Descriptor() ([]byte, []int)
Deprecated: Use ProtoLockup.ProtoReflect.Descriptor instead.
func (*ProtoLockup) GetAddress ¶
func (x *ProtoLockup) GetAddress() *common.ProtoAddress
func (*ProtoLockup) GetUnlockHeight ¶
func (x *ProtoLockup) GetUnlockHeight() uint64
func (*ProtoLockup) GetValue ¶
func (x *ProtoLockup) GetValue() []byte
func (*ProtoLockup) ProtoMessage ¶
func (*ProtoLockup) ProtoMessage()
func (*ProtoLockup) ProtoReflect ¶
func (x *ProtoLockup) ProtoReflect() protoreflect.Message
func (*ProtoLockup) Reset ¶
func (x *ProtoLockup) Reset()
func (*ProtoLockup) String ¶
func (x *ProtoLockup) String() string
type ProtoLockups ¶
type ProtoLockups struct { Lockups []*ProtoLockup `protobuf:"bytes,1,rep,name=lockups,proto3" json:"lockups,omitempty"` // contains filtered or unexported fields }
func (*ProtoLockups) Descriptor
deprecated
func (*ProtoLockups) Descriptor() ([]byte, []int)
Deprecated: Use ProtoLockups.ProtoReflect.Descriptor instead.
func (*ProtoLockups) GetLockups ¶
func (x *ProtoLockups) GetLockups() []*ProtoLockup
func (*ProtoLockups) ProtoMessage ¶
func (*ProtoLockups) ProtoMessage()
func (*ProtoLockups) ProtoReflect ¶
func (x *ProtoLockups) ProtoReflect() protoreflect.Message
func (*ProtoLockups) Reset ¶
func (x *ProtoLockups) Reset()
func (*ProtoLockups) String ¶
func (x *ProtoLockups) String() string
type ProtoLogForStorage ¶
type ProtoLogForStorage struct { Address *common.ProtoAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Topics []*common.ProtoHash `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ProtoLogForStorage) Descriptor
deprecated
func (*ProtoLogForStorage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoLogForStorage.ProtoReflect.Descriptor instead.
func (*ProtoLogForStorage) GetAddress ¶
func (x *ProtoLogForStorage) GetAddress() *common.ProtoAddress
func (*ProtoLogForStorage) GetData ¶
func (x *ProtoLogForStorage) GetData() []byte
func (*ProtoLogForStorage) GetTopics ¶
func (x *ProtoLogForStorage) GetTopics() []*common.ProtoHash
func (*ProtoLogForStorage) ProtoMessage ¶
func (*ProtoLogForStorage) ProtoMessage()
func (*ProtoLogForStorage) ProtoReflect ¶
func (x *ProtoLogForStorage) ProtoReflect() protoreflect.Message
func (*ProtoLogForStorage) Reset ¶
func (x *ProtoLogForStorage) Reset()
func (*ProtoLogForStorage) String ¶
func (x *ProtoLogForStorage) String() string
type ProtoLogsForStorage ¶
type ProtoLogsForStorage struct { Logs []*ProtoLogForStorage `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` // contains filtered or unexported fields }
func (*ProtoLogsForStorage) Descriptor
deprecated
func (*ProtoLogsForStorage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoLogsForStorage.ProtoReflect.Descriptor instead.
func (*ProtoLogsForStorage) GetLogs ¶
func (x *ProtoLogsForStorage) GetLogs() []*ProtoLogForStorage
func (*ProtoLogsForStorage) ProtoMessage ¶
func (*ProtoLogsForStorage) ProtoMessage()
func (*ProtoLogsForStorage) ProtoReflect ¶
func (x *ProtoLogsForStorage) ProtoReflect() protoreflect.Message
func (*ProtoLogsForStorage) Reset ¶
func (x *ProtoLogsForStorage) Reset()
func (*ProtoLogsForStorage) String ¶
func (x *ProtoLogsForStorage) String() string
type ProtoManifest ¶
type ProtoManifest struct { Manifest []*common.ProtoHash `protobuf:"bytes,1,rep,name=manifest,proto3" json:"manifest,omitempty"` // contains filtered or unexported fields }
func (*ProtoManifest) Descriptor
deprecated
func (*ProtoManifest) Descriptor() ([]byte, []int)
Deprecated: Use ProtoManifest.ProtoReflect.Descriptor instead.
func (*ProtoManifest) GetManifest ¶
func (x *ProtoManifest) GetManifest() []*common.ProtoHash
func (*ProtoManifest) ProtoMessage ¶
func (*ProtoManifest) ProtoMessage()
func (*ProtoManifest) ProtoReflect ¶
func (x *ProtoManifest) ProtoReflect() protoreflect.Message
func (*ProtoManifest) Reset ¶
func (x *ProtoManifest) Reset()
func (*ProtoManifest) String ¶
func (x *ProtoManifest) String() string
type ProtoOutPoint ¶
type ProtoOutPoint struct { Hash *common.ProtoHash `protobuf:"bytes,1,opt,name=hash,proto3,oneof" json:"hash,omitempty"` Index *uint32 `protobuf:"varint,2,opt,name=index,proto3,oneof" json:"index,omitempty"` // contains filtered or unexported fields }
func (*ProtoOutPoint) Descriptor
deprecated
func (*ProtoOutPoint) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOutPoint.ProtoReflect.Descriptor instead.
func (*ProtoOutPoint) GetHash ¶
func (x *ProtoOutPoint) GetHash() *common.ProtoHash
func (*ProtoOutPoint) GetIndex ¶
func (x *ProtoOutPoint) GetIndex() uint32
func (*ProtoOutPoint) ProtoMessage ¶
func (*ProtoOutPoint) ProtoMessage()
func (*ProtoOutPoint) ProtoReflect ¶
func (x *ProtoOutPoint) ProtoReflect() protoreflect.Message
func (*ProtoOutPoint) Reset ¶
func (x *ProtoOutPoint) Reset()
func (*ProtoOutPoint) String ¶
func (x *ProtoOutPoint) String() string
type ProtoOutPointAndDenomination ¶
type ProtoOutPointAndDenomination struct { Hash *common.ProtoHash `protobuf:"bytes,1,opt,name=hash,proto3,oneof" json:"hash,omitempty"` Index *uint32 `protobuf:"varint,2,opt,name=index,proto3,oneof" json:"index,omitempty"` Denomination *uint32 `protobuf:"varint,3,opt,name=denomination,proto3,oneof" json:"denomination,omitempty"` Lock []byte `protobuf:"bytes,4,opt,name=lock,proto3,oneof" json:"lock,omitempty"` // contains filtered or unexported fields }
func (*ProtoOutPointAndDenomination) Descriptor
deprecated
func (*ProtoOutPointAndDenomination) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOutPointAndDenomination.ProtoReflect.Descriptor instead.
func (*ProtoOutPointAndDenomination) GetDenomination ¶
func (x *ProtoOutPointAndDenomination) GetDenomination() uint32
func (*ProtoOutPointAndDenomination) GetHash ¶
func (x *ProtoOutPointAndDenomination) GetHash() *common.ProtoHash
func (*ProtoOutPointAndDenomination) GetIndex ¶
func (x *ProtoOutPointAndDenomination) GetIndex() uint32
func (*ProtoOutPointAndDenomination) GetLock ¶
func (x *ProtoOutPointAndDenomination) GetLock() []byte
func (*ProtoOutPointAndDenomination) ProtoMessage ¶
func (*ProtoOutPointAndDenomination) ProtoMessage()
func (*ProtoOutPointAndDenomination) ProtoReflect ¶
func (x *ProtoOutPointAndDenomination) ProtoReflect() protoreflect.Message
func (*ProtoOutPointAndDenomination) Reset ¶
func (x *ProtoOutPointAndDenomination) Reset()
func (*ProtoOutPointAndDenomination) String ¶
func (x *ProtoOutPointAndDenomination) String() string
type ProtoPendingEtxs ¶
type ProtoPendingEtxs struct { Header *ProtoWorkObject `protobuf:"bytes,1,opt,name=header,proto3,oneof" json:"header,omitempty"` OutboundEtxs *ProtoTransactions `protobuf:"bytes,2,opt,name=outbound_etxs,json=outboundEtxs,proto3,oneof" json:"outbound_etxs,omitempty"` // contains filtered or unexported fields }
func (*ProtoPendingEtxs) Descriptor
deprecated
func (*ProtoPendingEtxs) Descriptor() ([]byte, []int)
Deprecated: Use ProtoPendingEtxs.ProtoReflect.Descriptor instead.
func (*ProtoPendingEtxs) GetHeader ¶
func (x *ProtoPendingEtxs) GetHeader() *ProtoWorkObject
func (*ProtoPendingEtxs) GetOutboundEtxs ¶
func (x *ProtoPendingEtxs) GetOutboundEtxs() *ProtoTransactions
func (*ProtoPendingEtxs) ProtoMessage ¶
func (*ProtoPendingEtxs) ProtoMessage()
func (*ProtoPendingEtxs) ProtoReflect ¶
func (x *ProtoPendingEtxs) ProtoReflect() protoreflect.Message
func (*ProtoPendingEtxs) Reset ¶
func (x *ProtoPendingEtxs) Reset()
func (*ProtoPendingEtxs) String ¶
func (x *ProtoPendingEtxs) String() string
type ProtoPendingEtxsRollup ¶
type ProtoPendingEtxsRollup struct { Header *ProtoWorkObject `protobuf:"bytes,1,opt,name=header,proto3,oneof" json:"header,omitempty"` EtxsRollup *ProtoTransactions `protobuf:"bytes,2,opt,name=etxs_rollup,json=etxsRollup,proto3,oneof" json:"etxs_rollup,omitempty"` // contains filtered or unexported fields }
func (*ProtoPendingEtxsRollup) Descriptor
deprecated
func (*ProtoPendingEtxsRollup) Descriptor() ([]byte, []int)
Deprecated: Use ProtoPendingEtxsRollup.ProtoReflect.Descriptor instead.
func (*ProtoPendingEtxsRollup) GetEtxsRollup ¶
func (x *ProtoPendingEtxsRollup) GetEtxsRollup() *ProtoTransactions
func (*ProtoPendingEtxsRollup) GetHeader ¶
func (x *ProtoPendingEtxsRollup) GetHeader() *ProtoWorkObject
func (*ProtoPendingEtxsRollup) ProtoMessage ¶
func (*ProtoPendingEtxsRollup) ProtoMessage()
func (*ProtoPendingEtxsRollup) ProtoReflect ¶
func (x *ProtoPendingEtxsRollup) ProtoReflect() protoreflect.Message
func (*ProtoPendingEtxsRollup) Reset ¶
func (x *ProtoPendingEtxsRollup) Reset()
func (*ProtoPendingEtxsRollup) String ¶
func (x *ProtoPendingEtxsRollup) String() string
type ProtoPendingHeader ¶
type ProtoPendingHeader struct { Wo *ProtoWorkObject `protobuf:"bytes,1,opt,name=wo,proto3,oneof" json:"wo,omitempty"` Termini *ProtoTermini `protobuf:"bytes,2,opt,name=termini,proto3,oneof" json:"termini,omitempty"` // contains filtered or unexported fields }
func (*ProtoPendingHeader) Descriptor
deprecated
func (*ProtoPendingHeader) Descriptor() ([]byte, []int)
Deprecated: Use ProtoPendingHeader.ProtoReflect.Descriptor instead.
func (*ProtoPendingHeader) GetTermini ¶
func (x *ProtoPendingHeader) GetTermini() *ProtoTermini
func (*ProtoPendingHeader) GetWo ¶
func (x *ProtoPendingHeader) GetWo() *ProtoWorkObject
func (*ProtoPendingHeader) ProtoMessage ¶
func (*ProtoPendingHeader) ProtoMessage()
func (*ProtoPendingHeader) ProtoReflect ¶
func (x *ProtoPendingHeader) ProtoReflect() protoreflect.Message
func (*ProtoPendingHeader) Reset ¶
func (x *ProtoPendingHeader) Reset()
func (*ProtoPendingHeader) String ¶
func (x *ProtoPendingHeader) String() string
type ProtoReceiptForStorage ¶
type ProtoReceiptForStorage struct { PostStateOrStatus []byte `protobuf:"bytes,1,opt,name=post_state_or_status,json=postStateOrStatus,proto3" json:"post_state_or_status,omitempty"` CumulativeGasUsed uint64 `protobuf:"varint,2,opt,name=cumulative_gas_used,json=cumulativeGasUsed,proto3" json:"cumulative_gas_used,omitempty"` Logs *ProtoLogsForStorage `protobuf:"bytes,3,opt,name=logs,proto3" json:"logs,omitempty"` TxHash *common.ProtoHash `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` ContractAddress *common.ProtoAddress `protobuf:"bytes,5,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` GasUsed uint64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` OutboundEtxs *ProtoTransactions `protobuf:"bytes,7,opt,name=outbound_etxs,json=outboundEtxs,proto3" json:"outbound_etxs,omitempty"` // contains filtered or unexported fields }
func (*ProtoReceiptForStorage) Descriptor
deprecated
func (*ProtoReceiptForStorage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoReceiptForStorage.ProtoReflect.Descriptor instead.
func (*ProtoReceiptForStorage) GetContractAddress ¶
func (x *ProtoReceiptForStorage) GetContractAddress() *common.ProtoAddress
func (*ProtoReceiptForStorage) GetCumulativeGasUsed ¶
func (x *ProtoReceiptForStorage) GetCumulativeGasUsed() uint64
func (*ProtoReceiptForStorage) GetGasUsed ¶
func (x *ProtoReceiptForStorage) GetGasUsed() uint64
func (*ProtoReceiptForStorage) GetLogs ¶
func (x *ProtoReceiptForStorage) GetLogs() *ProtoLogsForStorage
func (*ProtoReceiptForStorage) GetOutboundEtxs ¶
func (x *ProtoReceiptForStorage) GetOutboundEtxs() *ProtoTransactions
func (*ProtoReceiptForStorage) GetPostStateOrStatus ¶
func (x *ProtoReceiptForStorage) GetPostStateOrStatus() []byte
func (*ProtoReceiptForStorage) GetTxHash ¶
func (x *ProtoReceiptForStorage) GetTxHash() *common.ProtoHash
func (*ProtoReceiptForStorage) ProtoMessage ¶
func (*ProtoReceiptForStorage) ProtoMessage()
func (*ProtoReceiptForStorage) ProtoReflect ¶
func (x *ProtoReceiptForStorage) ProtoReflect() protoreflect.Message
func (*ProtoReceiptForStorage) Reset ¶
func (x *ProtoReceiptForStorage) Reset()
func (*ProtoReceiptForStorage) String ¶
func (x *ProtoReceiptForStorage) String() string
type ProtoReceiptsForStorage ¶
type ProtoReceiptsForStorage struct { Receipts []*ProtoReceiptForStorage `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"` // contains filtered or unexported fields }
func (*ProtoReceiptsForStorage) Descriptor
deprecated
func (*ProtoReceiptsForStorage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoReceiptsForStorage.ProtoReflect.Descriptor instead.
func (*ProtoReceiptsForStorage) GetReceipts ¶
func (x *ProtoReceiptsForStorage) GetReceipts() []*ProtoReceiptForStorage
func (*ProtoReceiptsForStorage) ProtoMessage ¶
func (*ProtoReceiptsForStorage) ProtoMessage()
func (*ProtoReceiptsForStorage) ProtoReflect ¶
func (x *ProtoReceiptsForStorage) ProtoReflect() protoreflect.Message
func (*ProtoReceiptsForStorage) Reset ¶
func (x *ProtoReceiptsForStorage) Reset()
func (*ProtoReceiptsForStorage) String ¶
func (x *ProtoReceiptsForStorage) String() string
type ProtoSpentUTXO ¶
type ProtoSpentUTXO struct { Outpoint *ProtoOutPoint `protobuf:"bytes,1,opt,name=outpoint,proto3,oneof" json:"outpoint,omitempty"` Sutxo *ProtoTxOut `protobuf:"bytes,2,opt,name=sutxo,proto3,oneof" json:"sutxo,omitempty"` // contains filtered or unexported fields }
func (*ProtoSpentUTXO) Descriptor
deprecated
func (*ProtoSpentUTXO) Descriptor() ([]byte, []int)
Deprecated: Use ProtoSpentUTXO.ProtoReflect.Descriptor instead.
func (*ProtoSpentUTXO) GetOutpoint ¶
func (x *ProtoSpentUTXO) GetOutpoint() *ProtoOutPoint
func (*ProtoSpentUTXO) GetSutxo ¶
func (x *ProtoSpentUTXO) GetSutxo() *ProtoTxOut
func (*ProtoSpentUTXO) ProtoMessage ¶
func (*ProtoSpentUTXO) ProtoMessage()
func (*ProtoSpentUTXO) ProtoReflect ¶
func (x *ProtoSpentUTXO) ProtoReflect() protoreflect.Message
func (*ProtoSpentUTXO) Reset ¶
func (x *ProtoSpentUTXO) Reset()
func (*ProtoSpentUTXO) String ¶
func (x *ProtoSpentUTXO) String() string
type ProtoSpentUTXOs ¶
type ProtoSpentUTXOs struct { Sutxos []*ProtoSpentUTXO `protobuf:"bytes,1,rep,name=sutxos,proto3" json:"sutxos,omitempty"` // contains filtered or unexported fields }
func (*ProtoSpentUTXOs) Descriptor
deprecated
func (*ProtoSpentUTXOs) Descriptor() ([]byte, []int)
Deprecated: Use ProtoSpentUTXOs.ProtoReflect.Descriptor instead.
func (*ProtoSpentUTXOs) GetSutxos ¶
func (x *ProtoSpentUTXOs) GetSutxos() []*ProtoSpentUTXO
func (*ProtoSpentUTXOs) ProtoMessage ¶
func (*ProtoSpentUTXOs) ProtoMessage()
func (*ProtoSpentUTXOs) ProtoReflect ¶
func (x *ProtoSpentUTXOs) ProtoReflect() protoreflect.Message
func (*ProtoSpentUTXOs) Reset ¶
func (x *ProtoSpentUTXOs) Reset()
func (*ProtoSpentUTXOs) String ¶
func (x *ProtoSpentUTXOs) String() string
type ProtoSupplyAnalytics ¶
type ProtoSupplyAnalytics struct { SupplyAddedQuai []byte `protobuf:"bytes,1,opt,name=supply_added_quai,json=supplyAddedQuai,proto3" json:"supply_added_quai,omitempty"` SupplyRemovedQuai []byte `protobuf:"bytes,2,opt,name=supply_removed_quai,json=supplyRemovedQuai,proto3" json:"supply_removed_quai,omitempty"` SupplyAddedQi []byte `protobuf:"bytes,3,opt,name=supply_added_qi,json=supplyAddedQi,proto3" json:"supply_added_qi,omitempty"` SupplyRemovedQi []byte `protobuf:"bytes,4,opt,name=supply_removed_qi,json=supplyRemovedQi,proto3" json:"supply_removed_qi,omitempty"` TotalSupplyQuai []byte `protobuf:"bytes,5,opt,name=total_supply_quai,json=totalSupplyQuai,proto3" json:"total_supply_quai,omitempty"` TotalSupplyQi []byte `protobuf:"bytes,6,opt,name=total_supply_qi,json=totalSupplyQi,proto3" json:"total_supply_qi,omitempty"` // contains filtered or unexported fields }
func (*ProtoSupplyAnalytics) Descriptor
deprecated
func (*ProtoSupplyAnalytics) Descriptor() ([]byte, []int)
Deprecated: Use ProtoSupplyAnalytics.ProtoReflect.Descriptor instead.
func (*ProtoSupplyAnalytics) GetSupplyAddedQi ¶
func (x *ProtoSupplyAnalytics) GetSupplyAddedQi() []byte
func (*ProtoSupplyAnalytics) GetSupplyAddedQuai ¶
func (x *ProtoSupplyAnalytics) GetSupplyAddedQuai() []byte
func (*ProtoSupplyAnalytics) GetSupplyRemovedQi ¶
func (x *ProtoSupplyAnalytics) GetSupplyRemovedQi() []byte
func (*ProtoSupplyAnalytics) GetSupplyRemovedQuai ¶
func (x *ProtoSupplyAnalytics) GetSupplyRemovedQuai() []byte
func (*ProtoSupplyAnalytics) GetTotalSupplyQi ¶
func (x *ProtoSupplyAnalytics) GetTotalSupplyQi() []byte
func (*ProtoSupplyAnalytics) GetTotalSupplyQuai ¶
func (x *ProtoSupplyAnalytics) GetTotalSupplyQuai() []byte
func (*ProtoSupplyAnalytics) ProtoMessage ¶
func (*ProtoSupplyAnalytics) ProtoMessage()
func (*ProtoSupplyAnalytics) ProtoReflect ¶
func (x *ProtoSupplyAnalytics) ProtoReflect() protoreflect.Message
func (*ProtoSupplyAnalytics) Reset ¶
func (x *ProtoSupplyAnalytics) Reset()
func (*ProtoSupplyAnalytics) String ¶
func (x *ProtoSupplyAnalytics) String() string
type ProtoTermini ¶
type ProtoTermini struct { DomTermini []*common.ProtoHash `protobuf:"bytes,1,rep,name=dom_termini,json=domTermini,proto3" json:"dom_termini,omitempty"` SubTermini []*common.ProtoHash `protobuf:"bytes,2,rep,name=sub_termini,json=subTermini,proto3" json:"sub_termini,omitempty"` // contains filtered or unexported fields }
func (*ProtoTermini) Descriptor
deprecated
func (*ProtoTermini) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTermini.ProtoReflect.Descriptor instead.
func (*ProtoTermini) GetDomTermini ¶
func (x *ProtoTermini) GetDomTermini() []*common.ProtoHash
func (*ProtoTermini) GetSubTermini ¶
func (x *ProtoTermini) GetSubTermini() []*common.ProtoHash
func (*ProtoTermini) ProtoMessage ¶
func (*ProtoTermini) ProtoMessage()
func (*ProtoTermini) ProtoReflect ¶
func (x *ProtoTermini) ProtoReflect() protoreflect.Message
func (*ProtoTermini) Reset ¶
func (x *ProtoTermini) Reset()
func (*ProtoTermini) String ¶
func (x *ProtoTermini) String() string
type ProtoTokenChoice ¶
type ProtoTokenChoice struct { Quai uint64 `protobuf:"varint,1,opt,name=quai,proto3" json:"quai,omitempty"` Qi uint64 `protobuf:"varint,2,opt,name=qi,proto3" json:"qi,omitempty"` Diff []byte `protobuf:"bytes,3,opt,name=diff,proto3" json:"diff,omitempty"` // big.Int as bytes // contains filtered or unexported fields }
func (*ProtoTokenChoice) Descriptor
deprecated
func (*ProtoTokenChoice) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTokenChoice.ProtoReflect.Descriptor instead.
func (*ProtoTokenChoice) GetDiff ¶
func (x *ProtoTokenChoice) GetDiff() []byte
func (*ProtoTokenChoice) GetQi ¶
func (x *ProtoTokenChoice) GetQi() uint64
func (*ProtoTokenChoice) GetQuai ¶
func (x *ProtoTokenChoice) GetQuai() uint64
func (*ProtoTokenChoice) ProtoMessage ¶
func (*ProtoTokenChoice) ProtoMessage()
func (*ProtoTokenChoice) ProtoReflect ¶
func (x *ProtoTokenChoice) ProtoReflect() protoreflect.Message
func (*ProtoTokenChoice) Reset ¶
func (x *ProtoTokenChoice) Reset()
func (*ProtoTokenChoice) String ¶
func (x *ProtoTokenChoice) String() string
type ProtoTokenChoiceArray ¶
type ProtoTokenChoiceArray struct { TokenChoices *ProtoTokenChoice `protobuf:"bytes,1,opt,name=token_choices,json=tokenChoices,proto3,oneof" json:"token_choices,omitempty"` // contains filtered or unexported fields }
func (*ProtoTokenChoiceArray) Descriptor
deprecated
func (*ProtoTokenChoiceArray) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTokenChoiceArray.ProtoReflect.Descriptor instead.
func (*ProtoTokenChoiceArray) GetTokenChoices ¶
func (x *ProtoTokenChoiceArray) GetTokenChoices() *ProtoTokenChoice
func (*ProtoTokenChoiceArray) ProtoMessage ¶
func (*ProtoTokenChoiceArray) ProtoMessage()
func (*ProtoTokenChoiceArray) ProtoReflect ¶
func (x *ProtoTokenChoiceArray) ProtoReflect() protoreflect.Message
func (*ProtoTokenChoiceArray) Reset ¶
func (x *ProtoTokenChoiceArray) Reset()
func (*ProtoTokenChoiceArray) String ¶
func (x *ProtoTokenChoiceArray) String() string
type ProtoTokenChoiceSet ¶
type ProtoTokenChoiceSet struct { TokenChoiceArray []*ProtoTokenChoiceArray `protobuf:"bytes,1,rep,name=token_choice_array,json=tokenChoiceArray,proto3" json:"token_choice_array,omitempty"` // contains filtered or unexported fields }
func (*ProtoTokenChoiceSet) Descriptor
deprecated
func (*ProtoTokenChoiceSet) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTokenChoiceSet.ProtoReflect.Descriptor instead.
func (*ProtoTokenChoiceSet) GetTokenChoiceArray ¶
func (x *ProtoTokenChoiceSet) GetTokenChoiceArray() []*ProtoTokenChoiceArray
func (*ProtoTokenChoiceSet) ProtoMessage ¶
func (*ProtoTokenChoiceSet) ProtoMessage()
func (*ProtoTokenChoiceSet) ProtoReflect ¶
func (x *ProtoTokenChoiceSet) ProtoReflect() protoreflect.Message
func (*ProtoTokenChoiceSet) Reset ¶
func (x *ProtoTokenChoiceSet) Reset()
func (*ProtoTokenChoiceSet) String ¶
func (x *ProtoTokenChoiceSet) String() string
type ProtoTransaction ¶
type ProtoTransaction struct { Type *uint64 `protobuf:"varint,1,opt,name=type,proto3,oneof" json:"type,omitempty"` To []byte `protobuf:"bytes,2,opt,name=to,proto3,oneof" json:"to,omitempty"` Nonce *uint64 `protobuf:"varint,3,opt,name=nonce,proto3,oneof" json:"nonce,omitempty"` Value []byte `protobuf:"bytes,4,opt,name=value,proto3,oneof" json:"value,omitempty"` Gas *uint64 `protobuf:"varint,5,opt,name=gas,proto3,oneof" json:"gas,omitempty"` Data []byte `protobuf:"bytes,6,opt,name=data,proto3,oneof" json:"data,omitempty"` ChainId []byte `protobuf:"bytes,7,opt,name=chain_id,json=chainId,proto3,oneof" json:"chain_id,omitempty"` GasPrice []byte `protobuf:"bytes,8,opt,name=gas_price,json=gasPrice,proto3,oneof" json:"gas_price,omitempty"` AccessList *ProtoAccessList `protobuf:"bytes,9,opt,name=access_list,json=accessList,proto3,oneof" json:"access_list,omitempty"` V []byte `protobuf:"bytes,10,opt,name=v,proto3,oneof" json:"v,omitempty"` R []byte `protobuf:"bytes,11,opt,name=r,proto3,oneof" json:"r,omitempty"` S []byte `protobuf:"bytes,12,opt,name=s,proto3,oneof" json:"s,omitempty"` OriginatingTxHash *common.ProtoHash `protobuf:"bytes,13,opt,name=originating_tx_hash,json=originatingTxHash,proto3,oneof" json:"originating_tx_hash,omitempty"` EtxIndex *uint32 `protobuf:"varint,14,opt,name=etx_index,json=etxIndex,proto3,oneof" json:"etx_index,omitempty"` TxIns *ProtoTxIns `protobuf:"bytes,15,opt,name=tx_ins,json=txIns,proto3,oneof" json:"tx_ins,omitempty"` TxOuts *ProtoTxOuts `protobuf:"bytes,16,opt,name=tx_outs,json=txOuts,proto3,oneof" json:"tx_outs,omitempty"` Signature []byte `protobuf:"bytes,17,opt,name=signature,proto3,oneof" json:"signature,omitempty"` EtxSender []byte `protobuf:"bytes,18,opt,name=etx_sender,json=etxSender,proto3,oneof" json:"etx_sender,omitempty"` ParentHash *common.ProtoHash `protobuf:"bytes,19,opt,name=parent_hash,json=parentHash,proto3,oneof" json:"parent_hash,omitempty"` MixHash *common.ProtoHash `protobuf:"bytes,20,opt,name=mix_hash,json=mixHash,proto3,oneof" json:"mix_hash,omitempty"` WorkNonce *uint64 `protobuf:"varint,21,opt,name=work_nonce,json=workNonce,proto3,oneof" json:"work_nonce,omitempty"` EtxType *uint64 `protobuf:"varint,22,opt,name=etx_type,json=etxType,proto3,oneof" json:"etx_type,omitempty"` // contains filtered or unexported fields }
func (*ProtoTransaction) Descriptor
deprecated
func (*ProtoTransaction) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTransaction.ProtoReflect.Descriptor instead.
func (*ProtoTransaction) GetAccessList ¶
func (x *ProtoTransaction) GetAccessList() *ProtoAccessList
func (*ProtoTransaction) GetChainId ¶
func (x *ProtoTransaction) GetChainId() []byte
func (*ProtoTransaction) GetData ¶
func (x *ProtoTransaction) GetData() []byte
func (*ProtoTransaction) GetEtxIndex ¶
func (x *ProtoTransaction) GetEtxIndex() uint32
func (*ProtoTransaction) GetEtxSender ¶
func (x *ProtoTransaction) GetEtxSender() []byte
func (*ProtoTransaction) GetEtxType ¶
func (x *ProtoTransaction) GetEtxType() uint64
func (*ProtoTransaction) GetGas ¶
func (x *ProtoTransaction) GetGas() uint64
func (*ProtoTransaction) GetGasPrice ¶
func (x *ProtoTransaction) GetGasPrice() []byte
func (*ProtoTransaction) GetMixHash ¶
func (x *ProtoTransaction) GetMixHash() *common.ProtoHash
func (*ProtoTransaction) GetNonce ¶
func (x *ProtoTransaction) GetNonce() uint64
func (*ProtoTransaction) GetOriginatingTxHash ¶
func (x *ProtoTransaction) GetOriginatingTxHash() *common.ProtoHash
func (*ProtoTransaction) GetParentHash ¶
func (x *ProtoTransaction) GetParentHash() *common.ProtoHash
func (*ProtoTransaction) GetR ¶
func (x *ProtoTransaction) GetR() []byte
func (*ProtoTransaction) GetS ¶
func (x *ProtoTransaction) GetS() []byte
func (*ProtoTransaction) GetSignature ¶
func (x *ProtoTransaction) GetSignature() []byte
func (*ProtoTransaction) GetTo ¶
func (x *ProtoTransaction) GetTo() []byte
func (*ProtoTransaction) GetTxIns ¶
func (x *ProtoTransaction) GetTxIns() *ProtoTxIns
func (*ProtoTransaction) GetTxOuts ¶
func (x *ProtoTransaction) GetTxOuts() *ProtoTxOuts
func (*ProtoTransaction) GetType ¶
func (x *ProtoTransaction) GetType() uint64
func (*ProtoTransaction) GetV ¶
func (x *ProtoTransaction) GetV() []byte
func (*ProtoTransaction) GetValue ¶
func (x *ProtoTransaction) GetValue() []byte
func (*ProtoTransaction) GetWorkNonce ¶
func (x *ProtoTransaction) GetWorkNonce() uint64
func (*ProtoTransaction) ProtoMessage ¶
func (*ProtoTransaction) ProtoMessage()
func (*ProtoTransaction) ProtoReflect ¶
func (x *ProtoTransaction) ProtoReflect() protoreflect.Message
func (*ProtoTransaction) Reset ¶
func (x *ProtoTransaction) Reset()
func (*ProtoTransaction) String ¶
func (x *ProtoTransaction) String() string
type ProtoTransactions ¶
type ProtoTransactions struct { Transactions []*ProtoTransaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` // contains filtered or unexported fields }
func (*ProtoTransactions) Descriptor
deprecated
func (*ProtoTransactions) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTransactions.ProtoReflect.Descriptor instead.
func (*ProtoTransactions) GetTransactions ¶
func (x *ProtoTransactions) GetTransactions() []*ProtoTransaction
func (*ProtoTransactions) ProtoMessage ¶
func (*ProtoTransactions) ProtoMessage()
func (*ProtoTransactions) ProtoReflect ¶
func (x *ProtoTransactions) ProtoReflect() protoreflect.Message
func (*ProtoTransactions) Reset ¶
func (x *ProtoTransactions) Reset()
func (*ProtoTransactions) String ¶
func (x *ProtoTransactions) String() string
type ProtoTrimDepths ¶
type ProtoTrimDepths struct { TrimDepths map[uint32]uint64 `` /* 181-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ProtoTrimDepths) Descriptor
deprecated
func (*ProtoTrimDepths) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTrimDepths.ProtoReflect.Descriptor instead.
func (*ProtoTrimDepths) GetTrimDepths ¶
func (x *ProtoTrimDepths) GetTrimDepths() map[uint32]uint64
func (*ProtoTrimDepths) ProtoMessage ¶
func (*ProtoTrimDepths) ProtoMessage()
func (*ProtoTrimDepths) ProtoReflect ¶
func (x *ProtoTrimDepths) ProtoReflect() protoreflect.Message
func (*ProtoTrimDepths) Reset ¶
func (x *ProtoTrimDepths) Reset()
func (*ProtoTrimDepths) String ¶
func (x *ProtoTrimDepths) String() string
type ProtoTxIn ¶
type ProtoTxIn struct { PreviousOutPoint *ProtoOutPoint `protobuf:"bytes,1,opt,name=previous_out_point,json=previousOutPoint,proto3,oneof" json:"previous_out_point,omitempty"` PubKey []byte `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3,oneof" json:"pub_key,omitempty"` // contains filtered or unexported fields }
func (*ProtoTxIn) Descriptor
deprecated
func (*ProtoTxIn) GetPreviousOutPoint ¶
func (x *ProtoTxIn) GetPreviousOutPoint() *ProtoOutPoint
func (*ProtoTxIn) ProtoMessage ¶
func (*ProtoTxIn) ProtoMessage()
func (*ProtoTxIn) ProtoReflect ¶
func (x *ProtoTxIn) ProtoReflect() protoreflect.Message
type ProtoTxIns ¶
type ProtoTxIns struct { TxIns []*ProtoTxIn `protobuf:"bytes,1,rep,name=tx_ins,json=txIns,proto3" json:"tx_ins,omitempty"` // contains filtered or unexported fields }
func (*ProtoTxIns) Descriptor
deprecated
func (*ProtoTxIns) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTxIns.ProtoReflect.Descriptor instead.
func (*ProtoTxIns) GetTxIns ¶
func (x *ProtoTxIns) GetTxIns() []*ProtoTxIn
func (*ProtoTxIns) ProtoMessage ¶
func (*ProtoTxIns) ProtoMessage()
func (*ProtoTxIns) ProtoReflect ¶
func (x *ProtoTxIns) ProtoReflect() protoreflect.Message
func (*ProtoTxIns) Reset ¶
func (x *ProtoTxIns) Reset()
func (*ProtoTxIns) String ¶
func (x *ProtoTxIns) String() string
type ProtoTxOut ¶
type ProtoTxOut struct { Denomination *uint32 `protobuf:"varint,1,opt,name=denomination,proto3,oneof" json:"denomination,omitempty"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3,oneof" json:"address,omitempty"` Lock []byte `protobuf:"bytes,3,opt,name=lock,proto3,oneof" json:"lock,omitempty"` // contains filtered or unexported fields }
func (*ProtoTxOut) Descriptor
deprecated
func (*ProtoTxOut) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTxOut.ProtoReflect.Descriptor instead.
func (*ProtoTxOut) GetAddress ¶
func (x *ProtoTxOut) GetAddress() []byte
func (*ProtoTxOut) GetDenomination ¶
func (x *ProtoTxOut) GetDenomination() uint32
func (*ProtoTxOut) GetLock ¶
func (x *ProtoTxOut) GetLock() []byte
func (*ProtoTxOut) ProtoMessage ¶
func (*ProtoTxOut) ProtoMessage()
func (*ProtoTxOut) ProtoReflect ¶
func (x *ProtoTxOut) ProtoReflect() protoreflect.Message
func (*ProtoTxOut) Reset ¶
func (x *ProtoTxOut) Reset()
func (*ProtoTxOut) String ¶
func (x *ProtoTxOut) String() string
type ProtoTxOuts ¶
type ProtoTxOuts struct { TxOuts []*ProtoTxOut `protobuf:"bytes,1,rep,name=tx_outs,json=txOuts,proto3" json:"tx_outs,omitempty"` // contains filtered or unexported fields }
func (*ProtoTxOuts) Descriptor
deprecated
func (*ProtoTxOuts) Descriptor() ([]byte, []int)
Deprecated: Use ProtoTxOuts.ProtoReflect.Descriptor instead.
func (*ProtoTxOuts) GetTxOuts ¶
func (x *ProtoTxOuts) GetTxOuts() []*ProtoTxOut
func (*ProtoTxOuts) ProtoMessage ¶
func (*ProtoTxOuts) ProtoMessage()
func (*ProtoTxOuts) ProtoReflect ¶
func (x *ProtoTxOuts) ProtoReflect() protoreflect.Message
func (*ProtoTxOuts) Reset ¶
func (x *ProtoTxOuts) Reset()
func (*ProtoTxOuts) String ¶
func (x *ProtoTxOuts) String() string
type ProtoUnlock ¶
type ProtoUnlock struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Address *common.ProtoAddress `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*ProtoUnlock) Descriptor
deprecated
func (*ProtoUnlock) Descriptor() ([]byte, []int)
Deprecated: Use ProtoUnlock.ProtoReflect.Descriptor instead.
func (*ProtoUnlock) GetAddress ¶
func (x *ProtoUnlock) GetAddress() *common.ProtoAddress
func (*ProtoUnlock) GetValue ¶
func (x *ProtoUnlock) GetValue() []byte
func (*ProtoUnlock) ProtoMessage ¶
func (*ProtoUnlock) ProtoMessage()
func (*ProtoUnlock) ProtoReflect ¶
func (x *ProtoUnlock) ProtoReflect() protoreflect.Message
func (*ProtoUnlock) Reset ¶
func (x *ProtoUnlock) Reset()
func (*ProtoUnlock) String ¶
func (x *ProtoUnlock) String() string
type ProtoUnlocks ¶
type ProtoUnlocks struct { Unlocks []*ProtoUnlock `protobuf:"bytes,1,rep,name=unlocks,proto3" json:"unlocks,omitempty"` // contains filtered or unexported fields }
func (*ProtoUnlocks) Descriptor
deprecated
func (*ProtoUnlocks) Descriptor() ([]byte, []int)
Deprecated: Use ProtoUnlocks.ProtoReflect.Descriptor instead.
func (*ProtoUnlocks) GetUnlocks ¶
func (x *ProtoUnlocks) GetUnlocks() []*ProtoUnlock
func (*ProtoUnlocks) ProtoMessage ¶
func (*ProtoUnlocks) ProtoMessage()
func (*ProtoUnlocks) ProtoReflect ¶
func (x *ProtoUnlocks) ProtoReflect() protoreflect.Message
func (*ProtoUnlocks) Reset ¶
func (x *ProtoUnlocks) Reset()
func (*ProtoUnlocks) String ¶
func (x *ProtoUnlocks) String() string
type ProtoWorkObject ¶
type ProtoWorkObject struct { WoHeader *ProtoWorkObjectHeader `protobuf:"bytes,1,opt,name=wo_header,json=woHeader,proto3,oneof" json:"wo_header,omitempty"` WoBody *ProtoWorkObjectBody `protobuf:"bytes,2,opt,name=wo_body,json=woBody,proto3,oneof" json:"wo_body,omitempty"` Tx *ProtoTransaction `protobuf:"bytes,3,opt,name=tx,proto3,oneof" json:"tx,omitempty"` // contains filtered or unexported fields }
func (*ProtoWorkObject) Descriptor
deprecated
func (*ProtoWorkObject) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObject.ProtoReflect.Descriptor instead.
func (*ProtoWorkObject) GetTx ¶
func (x *ProtoWorkObject) GetTx() *ProtoTransaction
func (*ProtoWorkObject) GetWoBody ¶
func (x *ProtoWorkObject) GetWoBody() *ProtoWorkObjectBody
func (*ProtoWorkObject) GetWoHeader ¶
func (x *ProtoWorkObject) GetWoHeader() *ProtoWorkObjectHeader
func (*ProtoWorkObject) ProtoMessage ¶
func (*ProtoWorkObject) ProtoMessage()
func (*ProtoWorkObject) ProtoReflect ¶
func (x *ProtoWorkObject) ProtoReflect() protoreflect.Message
func (*ProtoWorkObject) Reset ¶
func (x *ProtoWorkObject) Reset()
func (*ProtoWorkObject) String ¶
func (x *ProtoWorkObject) String() string
type ProtoWorkObjectBlockView ¶
type ProtoWorkObjectBlockView struct { WorkObject *ProtoWorkObject `protobuf:"bytes,1,opt,name=work_object,json=workObject,proto3,oneof" json:"work_object,omitempty"` // contains filtered or unexported fields }
func (*ProtoWorkObjectBlockView) Descriptor
deprecated
func (*ProtoWorkObjectBlockView) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectBlockView.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectBlockView) GetWorkObject ¶
func (x *ProtoWorkObjectBlockView) GetWorkObject() *ProtoWorkObject
func (*ProtoWorkObjectBlockView) ProtoMessage ¶
func (*ProtoWorkObjectBlockView) ProtoMessage()
func (*ProtoWorkObjectBlockView) ProtoReflect ¶
func (x *ProtoWorkObjectBlockView) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectBlockView) Reset ¶
func (x *ProtoWorkObjectBlockView) Reset()
func (*ProtoWorkObjectBlockView) String ¶
func (x *ProtoWorkObjectBlockView) String() string
type ProtoWorkObjectBlocksView ¶
type ProtoWorkObjectBlocksView struct { WorkObjects []*ProtoWorkObjectBlockView `protobuf:"bytes,1,rep,name=work_objects,json=workObjects,proto3" json:"work_objects,omitempty"` // contains filtered or unexported fields }
func (*ProtoWorkObjectBlocksView) Descriptor
deprecated
func (*ProtoWorkObjectBlocksView) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectBlocksView.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectBlocksView) GetWorkObjects ¶
func (x *ProtoWorkObjectBlocksView) GetWorkObjects() []*ProtoWorkObjectBlockView
func (*ProtoWorkObjectBlocksView) ProtoMessage ¶
func (*ProtoWorkObjectBlocksView) ProtoMessage()
func (*ProtoWorkObjectBlocksView) ProtoReflect ¶
func (x *ProtoWorkObjectBlocksView) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectBlocksView) Reset ¶
func (x *ProtoWorkObjectBlocksView) Reset()
func (*ProtoWorkObjectBlocksView) String ¶
func (x *ProtoWorkObjectBlocksView) String() string
type ProtoWorkObjectBody ¶
type ProtoWorkObjectBody struct { Header *ProtoHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof" json:"header,omitempty"` Transactions *ProtoTransactions `protobuf:"bytes,2,opt,name=transactions,proto3,oneof" json:"transactions,omitempty"` Uncles *ProtoWorkObjectHeaders `protobuf:"bytes,3,opt,name=uncles,proto3,oneof" json:"uncles,omitempty"` OutboundEtxs *ProtoTransactions `protobuf:"bytes,4,opt,name=outbound_etxs,json=outboundEtxs,proto3,oneof" json:"outbound_etxs,omitempty"` Manifest *ProtoManifest `protobuf:"bytes,5,opt,name=manifest,proto3,oneof" json:"manifest,omitempty"` InterlinkHashes *common.ProtoHashes `protobuf:"bytes,6,opt,name=interlink_hashes,json=interlinkHashes,proto3,oneof" json:"interlink_hashes,omitempty"` // contains filtered or unexported fields }
func (*ProtoWorkObjectBody) Descriptor
deprecated
func (*ProtoWorkObjectBody) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectBody.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectBody) GetHeader ¶
func (x *ProtoWorkObjectBody) GetHeader() *ProtoHeader
func (*ProtoWorkObjectBody) GetInterlinkHashes ¶
func (x *ProtoWorkObjectBody) GetInterlinkHashes() *common.ProtoHashes
func (*ProtoWorkObjectBody) GetManifest ¶
func (x *ProtoWorkObjectBody) GetManifest() *ProtoManifest
func (*ProtoWorkObjectBody) GetOutboundEtxs ¶
func (x *ProtoWorkObjectBody) GetOutboundEtxs() *ProtoTransactions
func (*ProtoWorkObjectBody) GetTransactions ¶
func (x *ProtoWorkObjectBody) GetTransactions() *ProtoTransactions
func (*ProtoWorkObjectBody) GetUncles ¶
func (x *ProtoWorkObjectBody) GetUncles() *ProtoWorkObjectHeaders
func (*ProtoWorkObjectBody) ProtoMessage ¶
func (*ProtoWorkObjectBody) ProtoMessage()
func (*ProtoWorkObjectBody) ProtoReflect ¶
func (x *ProtoWorkObjectBody) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectBody) Reset ¶
func (x *ProtoWorkObjectBody) Reset()
func (*ProtoWorkObjectBody) String ¶
func (x *ProtoWorkObjectBody) String() string
type ProtoWorkObjectHeader ¶
type ProtoWorkObjectHeader struct { HeaderHash *common.ProtoHash `protobuf:"bytes,1,opt,name=header_hash,json=headerHash,proto3,oneof" json:"header_hash,omitempty"` ParentHash *common.ProtoHash `protobuf:"bytes,2,opt,name=parent_hash,json=parentHash,proto3,oneof" json:"parent_hash,omitempty"` Number []byte `protobuf:"bytes,3,opt,name=number,proto3,oneof" json:"number,omitempty"` Difficulty []byte `protobuf:"bytes,4,opt,name=difficulty,proto3,oneof" json:"difficulty,omitempty"` TxHash *common.ProtoHash `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3,oneof" json:"tx_hash,omitempty"` Nonce *uint64 `protobuf:"varint,6,opt,name=nonce,proto3,oneof" json:"nonce,omitempty"` Location *common.ProtoLocation `protobuf:"bytes,7,opt,name=location,proto3,oneof" json:"location,omitempty"` MixHash *common.ProtoHash `protobuf:"bytes,8,opt,name=mix_hash,json=mixHash,proto3,oneof" json:"mix_hash,omitempty"` Time *uint64 `protobuf:"varint,9,opt,name=time,proto3,oneof" json:"time,omitempty"` PrimeTerminusNumber []byte `` /* 127-byte string literal not displayed */ Lock *uint32 `protobuf:"varint,11,opt,name=lock,proto3,oneof" json:"lock,omitempty"` PrimaryCoinbase *common.ProtoAddress `protobuf:"bytes,12,opt,name=primary_coinbase,json=primaryCoinbase,proto3,oneof" json:"primary_coinbase,omitempty"` Data []byte `protobuf:"bytes,13,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ProtoWorkObjectHeader) Descriptor
deprecated
func (*ProtoWorkObjectHeader) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectHeader.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectHeader) GetData ¶
func (x *ProtoWorkObjectHeader) GetData() []byte
func (*ProtoWorkObjectHeader) GetDifficulty ¶
func (x *ProtoWorkObjectHeader) GetDifficulty() []byte
func (*ProtoWorkObjectHeader) GetHeaderHash ¶
func (x *ProtoWorkObjectHeader) GetHeaderHash() *common.ProtoHash
func (*ProtoWorkObjectHeader) GetLocation ¶
func (x *ProtoWorkObjectHeader) GetLocation() *common.ProtoLocation
func (*ProtoWorkObjectHeader) GetLock ¶
func (x *ProtoWorkObjectHeader) GetLock() uint32
func (*ProtoWorkObjectHeader) GetMixHash ¶
func (x *ProtoWorkObjectHeader) GetMixHash() *common.ProtoHash
func (*ProtoWorkObjectHeader) GetNonce ¶
func (x *ProtoWorkObjectHeader) GetNonce() uint64
func (*ProtoWorkObjectHeader) GetNumber ¶
func (x *ProtoWorkObjectHeader) GetNumber() []byte
func (*ProtoWorkObjectHeader) GetParentHash ¶
func (x *ProtoWorkObjectHeader) GetParentHash() *common.ProtoHash
func (*ProtoWorkObjectHeader) GetPrimaryCoinbase ¶
func (x *ProtoWorkObjectHeader) GetPrimaryCoinbase() *common.ProtoAddress
func (*ProtoWorkObjectHeader) GetPrimeTerminusNumber ¶
func (x *ProtoWorkObjectHeader) GetPrimeTerminusNumber() []byte
func (*ProtoWorkObjectHeader) GetTime ¶
func (x *ProtoWorkObjectHeader) GetTime() uint64
func (*ProtoWorkObjectHeader) GetTxHash ¶
func (x *ProtoWorkObjectHeader) GetTxHash() *common.ProtoHash
func (*ProtoWorkObjectHeader) ProtoMessage ¶
func (*ProtoWorkObjectHeader) ProtoMessage()
func (*ProtoWorkObjectHeader) ProtoReflect ¶
func (x *ProtoWorkObjectHeader) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectHeader) Reset ¶
func (x *ProtoWorkObjectHeader) Reset()
func (*ProtoWorkObjectHeader) String ¶
func (x *ProtoWorkObjectHeader) String() string
type ProtoWorkObjectHeaderView ¶
type ProtoWorkObjectHeaderView struct { WorkObject *ProtoWorkObject `protobuf:"bytes,1,opt,name=work_object,json=workObject,proto3,oneof" json:"work_object,omitempty"` // contains filtered or unexported fields }
func (*ProtoWorkObjectHeaderView) Descriptor
deprecated
func (*ProtoWorkObjectHeaderView) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectHeaderView.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectHeaderView) GetWorkObject ¶
func (x *ProtoWorkObjectHeaderView) GetWorkObject() *ProtoWorkObject
func (*ProtoWorkObjectHeaderView) ProtoMessage ¶
func (*ProtoWorkObjectHeaderView) ProtoMessage()
func (*ProtoWorkObjectHeaderView) ProtoReflect ¶
func (x *ProtoWorkObjectHeaderView) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectHeaderView) Reset ¶
func (x *ProtoWorkObjectHeaderView) Reset()
func (*ProtoWorkObjectHeaderView) String ¶
func (x *ProtoWorkObjectHeaderView) String() string
type ProtoWorkObjectHeaders ¶
type ProtoWorkObjectHeaders struct { WoHeaders []*ProtoWorkObjectHeader `protobuf:"bytes,1,rep,name=wo_headers,json=woHeaders,proto3" json:"wo_headers,omitempty"` // contains filtered or unexported fields }
func (*ProtoWorkObjectHeaders) Descriptor
deprecated
func (*ProtoWorkObjectHeaders) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectHeaders.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectHeaders) GetWoHeaders ¶
func (x *ProtoWorkObjectHeaders) GetWoHeaders() []*ProtoWorkObjectHeader
func (*ProtoWorkObjectHeaders) ProtoMessage ¶
func (*ProtoWorkObjectHeaders) ProtoMessage()
func (*ProtoWorkObjectHeaders) ProtoReflect ¶
func (x *ProtoWorkObjectHeaders) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectHeaders) Reset ¶
func (x *ProtoWorkObjectHeaders) Reset()
func (*ProtoWorkObjectHeaders) String ¶
func (x *ProtoWorkObjectHeaders) String() string
type ProtoWorkObjectShareView ¶
type ProtoWorkObjectShareView struct { // contains filtered or unexported fields }
func (*ProtoWorkObjectShareView) Descriptor
deprecated
func (*ProtoWorkObjectShareView) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjectShareView.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjectShareView) GetWorkObject ¶
func (x *ProtoWorkObjectShareView) GetWorkObject() *ProtoWorkObject
func (*ProtoWorkObjectShareView) ProtoMessage ¶
func (*ProtoWorkObjectShareView) ProtoMessage()
func (*ProtoWorkObjectShareView) ProtoReflect ¶
func (x *ProtoWorkObjectShareView) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjectShareView) Reset ¶
func (x *ProtoWorkObjectShareView) Reset()
func (*ProtoWorkObjectShareView) String ¶
func (x *ProtoWorkObjectShareView) String() string
type ProtoWorkObjects ¶
type ProtoWorkObjects struct { WorkObjects []*ProtoWorkObject `protobuf:"bytes,1,rep,name=work_objects,json=workObjects,proto3" json:"work_objects,omitempty"` // contains filtered or unexported fields }
func (*ProtoWorkObjects) Descriptor
deprecated
func (*ProtoWorkObjects) Descriptor() ([]byte, []int)
Deprecated: Use ProtoWorkObjects.ProtoReflect.Descriptor instead.
func (*ProtoWorkObjects) GetWorkObjects ¶
func (x *ProtoWorkObjects) GetWorkObjects() []*ProtoWorkObject
func (*ProtoWorkObjects) ProtoMessage ¶
func (*ProtoWorkObjects) ProtoMessage()
func (*ProtoWorkObjects) ProtoReflect ¶
func (x *ProtoWorkObjects) ProtoReflect() protoreflect.Message
func (*ProtoWorkObjects) Reset ¶
func (x *ProtoWorkObjects) Reset()
func (*ProtoWorkObjects) String ¶
func (x *ProtoWorkObjects) String() string
type QuaiTx ¶
type QuaiTx struct { ChainID *big.Int Nonce uint64 GasPrice *big.Int Gas uint64 To *common.Address `rlp:"nilString"` // nil means contract creation Value *big.Int Data []byte AccessList AccessList // Signature values V *big.Int `json:"v" gencodec:"required"` R *big.Int `json:"r" gencodec:"required"` S *big.Int `json:"s" gencodec:"required"` // Work fields ParentHash *common.Hash MixHash *common.Hash WorkNonce *BlockNonce }
type RPCTxIn ¶
type RPCTxIn struct { PreviousOutPoint OutpointJSON `json:"previousOutPoint"` PubKey hexutil.Bytes `json:"pubKey"` }
type 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 ¶
func (r *ReceiptForStorage) ProtoDecode(protoReceipt *ProtoReceiptForStorage, location common.Location) error
func (*ReceiptForStorage) ProtoEncode ¶
func (r *ReceiptForStorage) ProtoEncode() (*ProtoReceiptForStorage, error)
type Receipts ¶
type Receipts []*Receipt
Receipts implements DerivableList for receipts.
func (Receipts) 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 ¶
type ReceiptsForStorage []*ReceiptForStorage
ReceiptsForStorage is a list of ReceiptForStorage.
func (*ReceiptsForStorage) ProtoDecode ¶
func (rs *ReceiptsForStorage) ProtoDecode(protoReceipts *ProtoReceiptsForStorage, location common.Location) error
ProtoDecode converts the protobuf to a receipts representation.
func (ReceiptsForStorage) ProtoEncode ¶
func (rs ReceiptsForStorage) ProtoEncode() (*ProtoReceiptsForStorage, error)
ProtoEncode converts the receipts to a protobuf representation.
type Signer ¶
type Signer interface { // Sender returns the sender address of the transaction. Sender(tx *Transaction) (common.Address, error) // SignatureValues returns the raw R, S, V values corresponding to the // given signature. SignatureValues(tx *Transaction, sig []byte) (r, s, v *big.Int, err error) ChainID() *big.Int // Hash returns 'signature hash', i.e. the transaction hash that is signed by the // private key. This hash does not uniquely identify the transaction. Hash(tx *Transaction) common.Hash // Equal returns true if the given signer is the same as the receiver. Equal(Signer) bool Location() common.Location }
Signer encapsulates transaction signature handling. The name of this type is slightly misleading because Signers don't actually sign, they're just for validating and processing of signatures.
func LatestSigner ¶
func LatestSigner(config *params.ChainConfig) Signer
LatestSigner returns the 'most permissive' Signer available for the given chain configuration. Use this in transaction-handling code where the current block number is unknown. If you have the current block number available, use MakeSigner instead.
func LatestSignerForChainID ¶
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 ¶
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 ¶
SpentUtxoEntry houses details about a spent UtxoEntry.
func (*SpentUtxoEntry) ProtoDecode ¶
func (sutxo *SpentUtxoEntry) ProtoDecode(protoSpentUtxoEntry *ProtoSpentUTXO) error
func (*SpentUtxoEntry) ProtoEncode ¶
func (sutxo *SpentUtxoEntry) ProtoEncode() (*ProtoSpentUTXO, error)
type Termini ¶
type Termini struct {
// contains filtered or unexported fields
}
Termini stores the dom terminus (i.e the previous dom block) and subTermini(i.e the dom blocks that have occured in the subordinate chains)
func CopyTermini ¶
func EmptyTermini ¶
func EmptyTermini() Termini
func (Termini) DomTermini ¶
func (Termini) MarshalJSON ¶
func (*Termini) ProtoDecode ¶
func (t *Termini) ProtoDecode(protoTermini *ProtoTermini) error
ProtoDecode deserializes th ProtoTermini into the Termini format
func (Termini) ProtoEncode ¶
func (t Termini) ProtoEncode() *ProtoTermini
ProtoEncode serializes t into the Quai Proto Termini format
func (Termini) RPCMarshalTermini ¶
func (*Termini) SetDomTermini ¶
func (*Termini) SetDomTerminiAtIndex ¶
func (*Termini) SetSubTermini ¶
func (*Termini) SetSubTerminiAtIndex ¶
func (Termini) SubTermini ¶
func (*Termini) UnmarshalJSON ¶
type TokenChoiceSet ¶
type TokenChoiceSet [C_tokenChoiceSetSize]TokenChoices
func NewTokenChoiceSet ¶
func NewTokenChoiceSet() TokenChoiceSet
func (*TokenChoiceSet) ProtoDecode ¶
func (tcs *TokenChoiceSet) ProtoDecode(protoSet *ProtoTokenChoiceSet) error
func (*TokenChoiceSet) ProtoEncode ¶
func (tcs *TokenChoiceSet) ProtoEncode() (*ProtoTokenChoiceSet, error)
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
Transaction can be a Quai, Qi, or External transaction.
func MustSignNewTx ¶
func MustSignNewTx(prv *ecdsa.PrivateKey, s Signer, txdata TxData) *Transaction
MustSignNewTx creates a transaction and signs it. This panics if the transaction cannot be signed.
func NewEmptyQuaiTx ¶
func NewEmptyQuaiTx() *Transaction
func 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 ¶
func (tx *Transaction) CompareFee(newFee *big.Int) int
CompareFee compares new fee and the tx.Fee() two transactions and returns the output of bigInt Cmp method
func (*Transaction) Cost ¶
func (tx *Transaction) Cost() *big.Int
Cost returns gas * gasPrice + value.
func (*Transaction) Data ¶
func (tx *Transaction) Data() []byte
Data returns the input data of the transaction.
func (*Transaction) DecodeRLP ¶
func (tx *Transaction) DecodeRLP(s *rlp.Stream) error
DecodeRLP implements rlp.Decoder
func (*Transaction) ETXIndex ¶
func (tx *Transaction) ETXIndex() uint16
func (*Transaction) ETXSender ¶
func (tx *Transaction) ETXSender() common.Address
func (*Transaction) EncodeRLP ¶
func (tx *Transaction) EncodeRLP(w io.Writer) error
EncodeRLP implements rlp.Encoder
func (*Transaction) EtxType ¶
func (tx *Transaction) EtxType() uint64
EtxType returns the type of etx
func (*Transaction) From ¶
func (tx *Transaction) From(nodeLocation common.Location) *common.Address
func (*Transaction) FromChain ¶
func (tx *Transaction) FromChain(nodeLocation common.Location) common.Location
FromChain returns the chain location this transaction originated from
func (*Transaction) Gas ¶
func (tx *Transaction) Gas() uint64
Gas returns the gas limit of the transaction.
func (*Transaction) GasPrice ¶
func (tx *Transaction) GasPrice() *big.Int
GasPrice returns the gas price of the transaction.
func (*Transaction) GetEcdsaSignatureValues ¶
func (tx *Transaction) GetEcdsaSignatureValues() (v, r, s *big.Int)
GetEcdsaSignatureValues returns the V, R, S signature values of the transaction. The return values should not be modified by the caller.
func (*Transaction) GetSchnorrSignature ¶
func (tx *Transaction) GetSchnorrSignature() *schnorr.Signature
func (*Transaction) Hash ¶
func (tx *Transaction) Hash(location ...byte) (h common.Hash)
Hash returns the transaction hash.
func (*Transaction) IsLocal ¶
func (tx *Transaction) IsLocal() bool
func (*Transaction) MarshalBinary ¶
func (tx *Transaction) MarshalBinary() ([]byte, error)
MarshalBinary returns the canonical encoding of the transaction.
func (*Transaction) MarshalJSON ¶
func (t *Transaction) MarshalJSON() ([]byte, error)
MarshalJSON marshals as JSON with a hash.
func (*Transaction) MixHash ¶
func (tx *Transaction) MixHash() *common.Hash
func (*Transaction) Nonce ¶
func (tx *Transaction) Nonce() uint64
Nonce returns the sender account nonce of the transaction.
func (*Transaction) OriginatingTxHash ¶
func (tx *Transaction) OriginatingTxHash() common.Hash
func (*Transaction) ParentHash ¶
func (tx *Transaction) ParentHash() *common.Hash
func (*Transaction) ProtoDecode ¶
func (tx *Transaction) ProtoDecode(protoTx *ProtoTransaction, location common.Location) error
ProtoDecode deserializes the ProtoTransaction into the Transaction format
func (*Transaction) ProtoEncode ¶
func (tx *Transaction) ProtoEncode() (*ProtoTransaction, error)
ProtoEncode serializes tx into the Quai Proto Transaction format
func (*Transaction) ProtoEncodeTxSigningData ¶
func (tx *Transaction) ProtoEncodeTxSigningData() *ProtoTransaction
func (*Transaction) SetInner ¶
func (tx *Transaction) SetInner(inner TxData)
func (*Transaction) SetLocal ¶
func (tx *Transaction) SetLocal(local bool)
func (*Transaction) SetTo ¶
func (tx *Transaction) SetTo(addr common.Address)
func (*Transaction) SetValue ¶
func (tx *Transaction) SetValue(value *big.Int)
func (*Transaction) Size ¶
func (tx *Transaction) Size() common.StorageSize
Size returns the true RLP encoded storage size of the transaction, either by encoding and returning it, or returning a previously cached value.
func (*Transaction) Time ¶
func (tx *Transaction) Time() time.Time
func (*Transaction) To ¶
func (tx *Transaction) To() *common.Address
To returns the recipient address of the transaction. For contract-creation transactions, To returns nil.
func (*Transaction) TxIn ¶
func (tx *Transaction) TxIn() TxIns
func (*Transaction) TxOut ¶
func (tx *Transaction) TxOut() TxOuts
func (*Transaction) UnmarshalBinary ¶
func (tx *Transaction) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes the canonical encoding of transactions.
func (*Transaction) UnmarshalJSON ¶
func (t *Transaction) UnmarshalJSON(input []byte) error
UnmarshalJSON unmarshals from JSON.
func (*Transaction) Value ¶
func (tx *Transaction) Value() *big.Int
Value returns the ether amount of the transaction.
func (*Transaction) WithSignature ¶
func (tx *Transaction) WithSignature(signer Signer, sig []byte) (*Transaction, error)
WithSignature returns a new transaction with the given signature. This signature needs to be in the [R || S || V] format where V is 0 or 1.
func (*Transaction) WorkNonce ¶
func (tx *Transaction) WorkNonce() *BlockNonce
type Transactions ¶
type Transactions []*Transaction
Transactions implements DerivableList for transactions.
func TxDifference ¶
func TxDifference(a, b Transactions) Transactions
TxDifference returns a new set which is the difference between a and b.
func TxDifferenceWithoutETXs ¶
func TxDifferenceWithoutETXs(a, b Transactions) Transactions
TxDifference returns a new set which is the difference between a and b without including ETXs.
func (Transactions) EncodeIndex ¶
func (s Transactions) EncodeIndex(i int, w *bytes.Buffer)
EncodeIndex encodes the i'th transaction to w. Note that this does not check for errors because we assume that *Transaction will only ever contain valid txs that were either constructed by decoding or via public API in this package.
func (Transactions) FilterToLocation ¶
func (s Transactions) FilterToLocation(l common.Location) Transactions
FilterByLocation returns the subset of transactions with a 'to' address which belongs the given chain location
func (Transactions) FilterToSub ¶
func (s Transactions) FilterToSub(slice common.Location, nodeCtx int, order int) Transactions
FilterToSlice returns the subset of transactions with a 'to' address which belongs to the given sub location, at or above the given minimum context
func (*Transactions) ProtoDecode ¶
func (s *Transactions) ProtoDecode(transactions *ProtoTransactions, location common.Location) error
ProtoDecode decodes the ProtoTransactions into the Transactions format
func (Transactions) ProtoEncode ¶
func (s Transactions) ProtoEncode() (*ProtoTransactions, error)
ProtoEncode encodes the transactions to the ProtoTransactions format
type TransactionsByPriceAndNonce ¶
type TransactionsByPriceAndNonce struct {
// contains filtered or unexported fields
}
TransactionsByPriceAndNonce represents a set of transactions that can return transactions in a profit-maximizing sorted order, while supporting removing entire batches of transactions for non-executable accounts.
func NewTransactionsByPriceAndNonce ¶
func NewTransactionsByPriceAndNonce(signer Signer, qiTxs []*TxWithMinerFee, txs map[common.AddressBytes]Transactions) *TransactionsByPriceAndNonce
NewTransactionsByPriceAndNonce creates a transaction set that can retrieve price sorted transactions in a nonce-honouring way.
Note, the input map is reowned so the caller should not interact any more with if after providing it to the constructor.
func (*TransactionsByPriceAndNonce) Peek ¶
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 ¶
type TxIn struct { PreviousOutPoint OutPoint `json:"previousOutPoint"` PubKey []byte `json:"pubKey"` }
TxIn defines a Qi transaction input
func NewTxIn ¶
NewTxIn returns a new bitcoin transaction input with the provided previous outpoint point and signature script with a default sequence of MaxTxInSequenceNum.
func (*TxIn) ProtoDecode ¶
func (TxIn) ProtoEncode ¶
type TxInJSON ¶
type TxInJSON struct { PreviousOutPoint *OutpointJSON `json:"previousOutPoint"` PubKey *hexutil.Bytes `json:"pubkey"` }
type TxIns ¶
type TxIns []TxIn
func (*TxIns) ProtoDecode ¶
func (txIns *TxIns) ProtoDecode(protoTxIns *ProtoTxIns) error
func (TxIns) ProtoEncode ¶
func (txIns TxIns) ProtoEncode() (*ProtoTxIns, error)
type TxOut ¶
type TxOut struct { Denomination uint8 Address []byte Lock *big.Int // Block height the entry unlocks. 0 or nil = unlocked }
TxOut defines a Qi transaction output.
func NewTxOut ¶
NewTxOut returns a new Qi transaction output with the provided transaction value and address.
func (*TxOut) ProtoDecode ¶
func (txOut *TxOut) ProtoDecode(protoTxOut *ProtoTxOut) error
func (TxOut) ProtoEncode ¶
func (txOut TxOut) ProtoEncode() (*ProtoTxOut, error)
type TxOuts ¶
type TxOuts []TxOut
func (*TxOuts) ProtoDecode ¶
func (txOuts *TxOuts) ProtoDecode(protoTxOuts *ProtoTxOuts) error
func (TxOuts) ProtoEncode ¶
func (txOuts TxOuts) ProtoEncode() (*ProtoTxOuts, error)
type TxWithMinerFee ¶
type TxWithMinerFee struct {
// contains filtered or unexported fields
}
TxWithMinerFee wraps a transaction with its gas price or effective miner gasTipCap
func NewTxWithMinerFee ¶
func NewTxWithMinerFee(tx *Transaction, qiTxFee *big.Int, received time.Time) (*TxWithMinerFee, error)
NewTxWithMinerFee creates a wrapped transaction, calculating the effective miner gasTipCap if a base fee is provided. Returns error in case of a negative effective miner gasTipCap.
func (*TxWithMinerFee) MinerFee ¶
func (tx *TxWithMinerFee) MinerFee() *big.Int
func (*TxWithMinerFee) Received ¶
func (tx *TxWithMinerFee) Received() time.Time
func (*TxWithMinerFee) Tx ¶
func (tx *TxWithMinerFee) Tx() *Transaction
type UtxoEntry ¶
type UtxoEntry struct { Denomination uint8 `json:"denomination"` Address []byte `json:"address"` // The address of the output holder. Lock *big.Int `json:"lock"` // Block height the entry unlocks. 0 = unlocked }
UtxoEntry houses details about an individual transaction output in a utxo view such as whether or not it was contained in a coinbase tx, the height of the block that contains the tx, whether or not it is spent, its public key script, and how much it pays.
func NewUtxoEntry ¶
NewUtxoEntry returns a new UtxoEntry built from the arguments.
func (*UtxoEntry) ProtoDecode ¶
func (utxo *UtxoEntry) ProtoDecode(protoTxOut *ProtoTxOut) error
func (*UtxoEntry) ProtoEncode ¶
func (utxo *UtxoEntry) ProtoEncode() (*ProtoTxOut, error)
func (*UtxoEntry) UnmarshalJSON ¶
type WorkObject ¶
type WorkObject struct { // These fields are used to track // inter-peer block relay. ReceivedAt time.Time ReceivedFrom interface{} // contains filtered or unexported fields }
func CopyWorkObject ¶
func CopyWorkObject(wo *WorkObject) *WorkObject
func EmptyZoneWorkObject ¶
func EmptyZoneWorkObject() *WorkObject
func NewWorkObject ¶
func NewWorkObject(woHeader *WorkObjectHeader, woBody *WorkObjectBody, tx *Transaction) *WorkObject
func NewWorkObjectWithHeader ¶
func NewWorkObjectWithHeader(header *WorkObject, tx *Transaction, nodeCtx int, woType WorkObjectView) *WorkObject
func NewWorkObjectWithHeaderAndTx ¶
func NewWorkObjectWithHeaderAndTx(header *WorkObjectHeader, tx *Transaction) *WorkObject
func (*WorkObject) AvgTxFees ¶
func (wo *WorkObject) AvgTxFees() *big.Int
func (*WorkObject) BaseFee ¶
func (wo *WorkObject) BaseFee() *big.Int
func (*WorkObject) Body ¶
func (wo *WorkObject) Body() *WorkObjectBody
func (*WorkObject) ConversionFlowAmount ¶
func (wo *WorkObject) ConversionFlowAmount() *big.Int
func (*WorkObject) ConvertToBlockView ¶
func (wo *WorkObject) ConvertToBlockView() *WorkObjectBlockView
func (*WorkObject) ConvertToHeaderView ¶
func (wo *WorkObject) ConvertToHeaderView() *WorkObjectHeaderView
func (*WorkObject) ConvertToPEtxView ¶
func (wo *WorkObject) ConvertToPEtxView() *WorkObject
func (*WorkObject) ConvertToWorkObjectShareView ¶
func (wo *WorkObject) ConvertToWorkObjectShareView(txs Transactions) *WorkObjectShareView
func (*WorkObject) Data ¶
func (wo *WorkObject) Data() []byte
func (*WorkObject) Difficulty ¶
func (wo *WorkObject) Difficulty() *big.Int
func (*WorkObject) EVMRoot ¶
func (wo *WorkObject) EVMRoot() common.Hash
func (*WorkObject) EfficiencyScore ¶
func (wo *WorkObject) EfficiencyScore() uint16
func (*WorkObject) EtxEligibleSlices ¶
func (wo *WorkObject) EtxEligibleSlices() common.Hash
func (*WorkObject) EtxRollupHash ¶
func (wo *WorkObject) EtxRollupHash() common.Hash
func (*WorkObject) EtxSetRoot ¶
func (wo *WorkObject) EtxSetRoot() common.Hash
func (*WorkObject) ExchangeRate ¶
func (wo *WorkObject) ExchangeRate() *big.Int
func (*WorkObject) ExpansionNumber ¶
func (wo *WorkObject) ExpansionNumber() uint8
func (*WorkObject) Extra ¶
func (wo *WorkObject) Extra() []byte
func (*WorkObject) GasLimit ¶
func (wo *WorkObject) GasLimit() uint64
func (*WorkObject) GasUsed ¶
func (wo *WorkObject) GasUsed() uint64
func (*WorkObject) GetAppendTime ¶
func (wo *WorkObject) GetAppendTime() time.Duration
GetAppendTime returns the appendTime of the block The appendTime is computed on the first call and cached thereafter.
func (*WorkObject) GetPendingHeaderCreationTime ¶
func (wo *WorkObject) GetPendingHeaderCreationTime() time.Duration
GetPendingHeaderCreationTime returns the pendingHeaderTime of the block The pendingHeaderTime is computed on the first call and cached thereafter.
func (*WorkObject) GetStateProcessTime ¶
func (wo *WorkObject) GetStateProcessTime() time.Duration
GetStateProcessTime returns the stateProcessTIme of the block The stateProcessTime is computed on the first call and cached thereafter.
func (*WorkObject) Hash ¶
func (wo *WorkObject) Hash() common.Hash
func (*WorkObject) Header ¶
func (wo *WorkObject) Header() *Header
func (*WorkObject) HeaderHash ¶
func (wo *WorkObject) HeaderHash() common.Hash
func (*WorkObject) InterlinkHashes ¶
func (wo *WorkObject) InterlinkHashes() common.Hashes
func (*WorkObject) InterlinkRootHash ¶
func (wo *WorkObject) InterlinkRootHash() common.Hash
func (*WorkObject) KQuaiDiscount ¶
func (wo *WorkObject) KQuaiDiscount() *big.Int
func (*WorkObject) Location ¶
func (wo *WorkObject) Location() common.Location
func (*WorkObject) Lock ¶
func (wo *WorkObject) Lock() uint8
func (*WorkObject) Manifest ¶
func (wo *WorkObject) Manifest() BlockManifest
func (*WorkObject) ManifestHash ¶
func (wo *WorkObject) ManifestHash(nodeCtx int) common.Hash
func (*WorkObject) MarshalJSON ¶
func (wo *WorkObject) MarshalJSON() ([]byte, error)
func (*WorkObject) MinerDifficulty ¶
func (wo *WorkObject) MinerDifficulty() *big.Int
func (*WorkObject) MixHash ¶
func (wo *WorkObject) MixHash() common.Hash
func (*WorkObject) Nonce ¶
func (wo *WorkObject) Nonce() BlockNonce
func (*WorkObject) NonceU64 ¶
func (wo *WorkObject) NonceU64() uint64
func (*WorkObject) NumberArray ¶
func (wo *WorkObject) NumberArray() []*big.Int
func (*WorkObject) NumberU64 ¶
func (wo *WorkObject) NumberU64(nodeCtx int) uint64
func (*WorkObject) OutboundEtxHash ¶
func (wo *WorkObject) OutboundEtxHash() common.Hash
func (*WorkObject) OutboundEtxs ¶
func (wo *WorkObject) OutboundEtxs() Transactions
func (*WorkObject) ParentDeltaEntropy ¶
func (wo *WorkObject) ParentDeltaEntropy(nodeCtx int) *big.Int
func (*WorkObject) ParentEntropy ¶
func (wo *WorkObject) ParentEntropy(nodeCtx int) *big.Int
func (*WorkObject) ParentHash ¶
func (wo *WorkObject) ParentHash(nodeCtx int) common.Hash
func (*WorkObject) ParentHashArray ¶
func (wo *WorkObject) ParentHashArray() []common.Hash
func (*WorkObject) ParentUncledDeltaEntropy ¶
func (wo *WorkObject) ParentUncledDeltaEntropy(nodeCtx int) *big.Int
func (*WorkObject) PrimaryCoinbase ¶
func (wo *WorkObject) PrimaryCoinbase() common.Address
func (*WorkObject) PrimeStateRoot ¶
func (wo *WorkObject) PrimeStateRoot() common.Hash
func (*WorkObject) PrimeTerminusHash ¶
func (wo *WorkObject) PrimeTerminusHash() common.Hash
func (*WorkObject) PrimeTerminusNumber ¶
func (wo *WorkObject) PrimeTerminusNumber() *big.Int
func (*WorkObject) ProtoDecode ¶
func (wo *WorkObject) ProtoDecode(data *ProtoWorkObject, location common.Location, woType WorkObjectView) error
func (*WorkObject) ProtoEncode ¶
func (wo *WorkObject) ProtoEncode(woType WorkObjectView) (*ProtoWorkObject, error)
func (*WorkObject) QiTransactions ¶
func (wo *WorkObject) QiTransactions() []*Transaction
func (*WorkObject) QiTransactionsWithoutCoinbase ¶
func (wo *WorkObject) QiTransactionsWithoutCoinbase() []*Transaction
func (*WorkObject) QuaiStateSize ¶
func (wo *WorkObject) QuaiStateSize() *big.Int
func (*WorkObject) RPCMarshalHeader ¶
func (wo *WorkObject) RPCMarshalHeader() map[string]interface{}
RPCMarshalHeader returns a flattened header and woHeader as part of the header response
func (*WorkObject) RPCMarshalWorkObject ¶
func (wo *WorkObject) RPCMarshalWorkObject() map[string]interface{}
func (*WorkObject) ReceiptHash ¶
func (wo *WorkObject) ReceiptHash() common.Hash
func (*WorkObject) RegionStateRoot ¶
func (wo *WorkObject) RegionStateRoot() common.Hash
func (*WorkObject) SealHash ¶
func (wo *WorkObject) SealHash() common.Hash
func (*WorkObject) SetAppendTime ¶
func (wo *WorkObject) SetAppendTime(appendTime time.Duration)
func (*WorkObject) SetBody ¶
func (wo *WorkObject) SetBody(body *WorkObjectBody)
func (*WorkObject) SetMixHash ¶
func (wo *WorkObject) SetMixHash(mixHash common.Hash)
func (*WorkObject) SetParentHash ¶
func (wo *WorkObject) SetParentHash(val common.Hash, nodeCtx int)
func (*WorkObject) SetPendingHeaderCreationTime ¶
func (wo *WorkObject) SetPendingHeaderCreationTime(pendingHeaderCreationTime time.Duration)
func (*WorkObject) SetStateProcessTime ¶
func (wo *WorkObject) SetStateProcessTime(stateProcessTimes time.Duration)
func (*WorkObject) SetTx ¶
func (wo *WorkObject) SetTx(tx *Transaction)
func (*WorkObject) SetWorkObjectHeader ¶
func (wo *WorkObject) SetWorkObjectHeader(header *WorkObjectHeader)
func (*WorkObject) Size ¶
func (wo *WorkObject) Size() common.StorageSize
Size returns the true RLP encoded storage size of the block, either by encoding and returning it, or returning a previsouly cached value.
func (*WorkObject) StateLimit ¶
func (wo *WorkObject) StateLimit() uint64
func (*WorkObject) StateUsed ¶
func (wo *WorkObject) StateUsed() uint64
func (*WorkObject) ThresholdCount ¶
func (wo *WorkObject) ThresholdCount() uint16
func (*WorkObject) Time ¶
func (wo *WorkObject) Time() uint64
func (*WorkObject) TotalFees ¶
func (wo *WorkObject) TotalFees() *big.Int
func (*WorkObject) Transactions ¶
func (wo *WorkObject) Transactions() Transactions
func (*WorkObject) TransactionsInfo ¶
func (wo *WorkObject) TransactionsInfo() map[string]interface{}
func (*WorkObject) Tx ¶
func (wo *WorkObject) Tx() *Transaction
func (*WorkObject) TxHash ¶
func (wo *WorkObject) TxHash() common.Hash
func (*WorkObject) UTXORoot ¶
func (wo *WorkObject) UTXORoot() common.Hash
func (*WorkObject) UncleHash ¶
func (wo *WorkObject) UncleHash() common.Hash
func (*WorkObject) UncledEntropy ¶
func (wo *WorkObject) UncledEntropy() *big.Int
func (*WorkObject) Uncles ¶
func (wo *WorkObject) Uncles() []*WorkObjectHeader
func (*WorkObject) UnmarshalJSON ¶
func (wo *WorkObject) UnmarshalJSON(input []byte) error
func (*WorkObject) WithBody ¶
func (wo *WorkObject) WithBody(header *Header, txs []*Transaction, etxs []*Transaction, uncles []*WorkObjectHeader, manifest BlockManifest, interlinkHashes common.Hashes) *WorkObject
func (*WorkObject) WorkObjectHeader ¶
func (wo *WorkObject) WorkObjectHeader() *WorkObjectHeader
type WorkObjectBlockView ¶
type WorkObjectBlockView struct {
*WorkObject
}
func (*WorkObjectBlockView) ProtoDecode ¶
func (wob *WorkObjectBlockView) ProtoDecode(data *ProtoWorkObjectBlockView, location common.Location) error
func (*WorkObjectBlockView) ProtoEncode ¶
func (wo *WorkObjectBlockView) ProtoEncode() (*ProtoWorkObjectBlockView, error)
type WorkObjectBody ¶
type WorkObjectBody struct {
// contains filtered or unexported fields
}
func CopyWorkObjectBody ¶
func CopyWorkObjectBody(wb *WorkObjectBody) *WorkObjectBody
func EmptyWorkObjectBody ¶
func EmptyWorkObjectBody() *WorkObjectBody
func NewWoBody ¶
func NewWoBody(header *Header, txs []*Transaction, etxs []*Transaction, uncles []*WorkObjectHeader, manifest BlockManifest, interlinkHashes common.Hashes) *WorkObjectBody
func NewWorkObjectBody ¶
func NewWorkObjectBody(header *Header, txs []*Transaction, etxs []*Transaction, uncles []*WorkObjectHeader, manifest BlockManifest, receipts []*Receipt, hasher TrieHasher, nodeCtx int) (*WorkObjectBody, error)
func (*WorkObjectBody) ExternalTransactions ¶
func (wb *WorkObjectBody) ExternalTransactions() []*Transaction
func (*WorkObjectBody) Header ¶
func (wb *WorkObjectBody) Header() *Header
func (*WorkObjectBody) InterlinkHashes ¶
func (wb *WorkObjectBody) InterlinkHashes() common.Hashes
func (*WorkObjectBody) Manifest ¶
func (wb *WorkObjectBody) Manifest() BlockManifest
func (*WorkObjectBody) MarshalJSON ¶
func (wb *WorkObjectBody) MarshalJSON() ([]byte, error)
func (*WorkObjectBody) OutboundEtxs ¶
func (wb *WorkObjectBody) OutboundEtxs() []*Transaction
func (*WorkObjectBody) ProtoDecode ¶
func (wb *WorkObjectBody) ProtoDecode(data *ProtoWorkObjectBody, location common.Location, woType WorkObjectView) error
func (*WorkObjectBody) ProtoDecodeHeader ¶
func (wb *WorkObjectBody) ProtoDecodeHeader(data *ProtoWorkObjectBody, location common.Location) error
func (*WorkObjectBody) ProtoEncode ¶
func (wb *WorkObjectBody) ProtoEncode(woType WorkObjectView) (*ProtoWorkObjectBody, error)
func (*WorkObjectBody) RPCMarshalWorkObjectBody ¶
func (wb *WorkObjectBody) RPCMarshalWorkObjectBody() map[string]interface{}
func (*WorkObjectBody) SetHeader ¶
func (wb *WorkObjectBody) SetHeader(header *Header)
func (*WorkObjectBody) SetInterlinkHashes ¶
func (wb *WorkObjectBody) SetInterlinkHashes(interlinkHashes common.Hashes)
func (*WorkObjectBody) SetManifest ¶
func (wb *WorkObjectBody) SetManifest(manifest BlockManifest)
func (*WorkObjectBody) SetOutboundEtxs ¶
func (wb *WorkObjectBody) SetOutboundEtxs(transactions []*Transaction)
func (*WorkObjectBody) SetTransactions ¶
func (wb *WorkObjectBody) SetTransactions(transactions []*Transaction)
func (*WorkObjectBody) SetUncles ¶
func (wb *WorkObjectBody) SetUncles(uncles []*WorkObjectHeader)
func (*WorkObjectBody) Transactions ¶
func (wb *WorkObjectBody) Transactions() []*Transaction
func (*WorkObjectBody) Uncles ¶
func (wb *WorkObjectBody) Uncles() []*WorkObjectHeader
func (*WorkObjectBody) UnmarshalJSON ¶
func (wb *WorkObjectBody) UnmarshalJSON(input []byte) error
type WorkObjectHeader ¶
type WorkObjectHeader struct { PowHash atomic.Value PowDigest atomic.Value // contains filtered or unexported fields }
func CopyWorkObjectHeader ¶
func CopyWorkObjectHeader(wh *WorkObjectHeader) *WorkObjectHeader
func NewWorkObjectHeader ¶
func (*WorkObjectHeader) Data ¶
func (wh *WorkObjectHeader) Data() []byte
func (*WorkObjectHeader) Difficulty ¶
func (wh *WorkObjectHeader) Difficulty() *big.Int
func (*WorkObjectHeader) Hash ¶
func (wh *WorkObjectHeader) Hash() (hash common.Hash)
func (*WorkObjectHeader) HeaderHash ¶
func (wh *WorkObjectHeader) HeaderHash() common.Hash
func (*WorkObjectHeader) Location ¶
func (wh *WorkObjectHeader) Location() common.Location
func (*WorkObjectHeader) Lock ¶
func (wh *WorkObjectHeader) Lock() uint8
func (*WorkObjectHeader) MarshalJSON ¶
func (wh *WorkObjectHeader) MarshalJSON() ([]byte, error)
func (*WorkObjectHeader) MixHash ¶
func (wh *WorkObjectHeader) MixHash() common.Hash
func (*WorkObjectHeader) Nonce ¶
func (wh *WorkObjectHeader) Nonce() BlockNonce
func (*WorkObjectHeader) NonceU64 ¶
func (wh *WorkObjectHeader) NonceU64() uint64
func (*WorkObjectHeader) Number ¶
func (wh *WorkObjectHeader) Number() *big.Int
func (*WorkObjectHeader) NumberU64 ¶
func (wh *WorkObjectHeader) NumberU64() uint64
func (*WorkObjectHeader) ParentHash ¶
func (wh *WorkObjectHeader) ParentHash() common.Hash
func (*WorkObjectHeader) PrimaryCoinbase ¶
func (wh *WorkObjectHeader) PrimaryCoinbase() common.Address
func (*WorkObjectHeader) PrimeTerminusNumber ¶
func (wh *WorkObjectHeader) PrimeTerminusNumber() *big.Int
func (*WorkObjectHeader) ProtoDecode ¶
func (wh *WorkObjectHeader) ProtoDecode(data *ProtoWorkObjectHeader, location common.Location) error
func (*WorkObjectHeader) ProtoEncode ¶
func (wh *WorkObjectHeader) ProtoEncode() (*ProtoWorkObjectHeader, error)
func (*WorkObjectHeader) RPCMarshalWorkObjectHeader ¶
func (wh *WorkObjectHeader) RPCMarshalWorkObjectHeader() map[string]interface{}
func (*WorkObjectHeader) SealEncode ¶
func (wh *WorkObjectHeader) SealEncode() *ProtoWorkObjectHeader
func (*WorkObjectHeader) SealHash ¶
func (wh *WorkObjectHeader) SealHash() (hash common.Hash)
func (*WorkObjectHeader) SetData ¶
func (wh *WorkObjectHeader) SetData(val []byte)
func (*WorkObjectHeader) SetDifficulty ¶
func (wh *WorkObjectHeader) SetDifficulty(difficulty *big.Int)
func (*WorkObjectHeader) SetHeaderHash ¶
func (wh *WorkObjectHeader) SetHeaderHash(headerHash common.Hash)
func (*WorkObjectHeader) SetLocation ¶
func (wh *WorkObjectHeader) SetLocation(location common.Location)
func (*WorkObjectHeader) SetLock ¶
func (wh *WorkObjectHeader) SetLock(lock uint8)
func (*WorkObjectHeader) SetMixHash ¶
func (wh *WorkObjectHeader) SetMixHash(mixHash common.Hash)
func (*WorkObjectHeader) SetNonce ¶
func (wh *WorkObjectHeader) SetNonce(nonce BlockNonce)
func (*WorkObjectHeader) SetNumber ¶
func (wh *WorkObjectHeader) SetNumber(number *big.Int)
func (*WorkObjectHeader) SetParentHash ¶
func (wh *WorkObjectHeader) SetParentHash(parentHash common.Hash)
func (*WorkObjectHeader) SetPrimaryCoinbase ¶
func (wh *WorkObjectHeader) SetPrimaryCoinbase(coinbase common.Address)
func (*WorkObjectHeader) SetPrimeTerminusNumber ¶
func (wh *WorkObjectHeader) SetPrimeTerminusNumber(primeTerminusNumber *big.Int)
func (*WorkObjectHeader) SetTime ¶
func (wh *WorkObjectHeader) SetTime(val uint64)
func (*WorkObjectHeader) SetTxHash ¶
func (wh *WorkObjectHeader) SetTxHash(txHash common.Hash)
func (*WorkObjectHeader) Time ¶
func (wh *WorkObjectHeader) Time() uint64
func (*WorkObjectHeader) TxHash ¶
func (wh *WorkObjectHeader) TxHash() common.Hash
func (*WorkObjectHeader) UnmarshalJSON ¶
func (wh *WorkObjectHeader) UnmarshalJSON(input []byte) error
type WorkObjectHeaderView ¶
type WorkObjectHeaderView struct {
*WorkObject
}
func (*WorkObjectHeaderView) ProtoDecode ¶
func (wo *WorkObjectHeaderView) ProtoDecode(data *ProtoWorkObjectHeaderView, location common.Location) error
func (*WorkObjectHeaderView) ProtoEncode ¶
func (wo *WorkObjectHeaderView) ProtoEncode() (*ProtoWorkObjectHeaderView, error)
type WorkObjectShareView ¶
type WorkObjectShareView struct {
}func (*WorkObjectShareView) ProtoDecode ¶
func (wos *WorkObjectShareView) ProtoDecode(data *ProtoWorkObjectShareView, location common.Location) error
func (*WorkObjectShareView) ProtoEncode ¶
func (wo *WorkObjectShareView) ProtoEncode() (*ProtoWorkObjectShareView, error)
type WorkObjectView ¶
type WorkObjectView int
const ( BlockObject WorkObjectView = iota BlockObjects PEtxObject HeaderObject )
Work object types
type WorkObjects ¶
type WorkObjects []*WorkObject
type WorkShareValidity ¶
type WorkShareValidity int
const ( Valid WorkShareValidity = iota Sub Invalid )
Source Files
¶
- block.go
- bloom9.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
- proto_block.pb.go
- qi_tx.go
- quai_tx.go
- receipt.go
- stxo.go
- token_choice.go
- transaction.go
- transaction_marshalling.go
- transaction_signing.go
- utxo.go
- utxo_validate.go
- wo.go