Crate cuprate_types

Source
Expand description

§cuprate-types

Shared data types within Cuprate.

This crate is a kitchen-sink for data types that are shared across Cuprate.

§Features flags

Feature flagDoes what
blockchainEnables the blockchain module, containing the blockchain database request/response types
serdeEnables serde on types where applicable
epeeEnables cuprate-epee-encoding on types where applicable
proptestEnables proptest::arbitrary::Arbitrary on some types
jsonEnables the json module, containing JSON representations of common Monero types
hexEnables the hex module, containing the HexBytes type

Modules§

blockchain
Database BlockchainReadRequests, BlockchainWriteRequests, and BlockchainResponses.
hex
Hexadecimal serde wrappers for arrays.
json
This module contains types mappings for other common types to allow for easier JSON (de)serialization.

Structs§

AddAuxPow
Used in RPC’s add_aux_pow.
AltBlockInformation
A block on an alternative chain.
AuxPow
Used in RPC’s add_aux_pow.
BlockCompleteEntry
A block that can contain transactions.
ChainId
A unique ID for an alt chain.
ChainInfo
Information on a (maybe alternate) chain.
CoinbaseTxSum
Data of summed coinbase transactions.
ExtendedBlockHeader
Extended header data of a block.
FeeEstimate
Estimated fee data.
HardForkInfo
Information on a HardFork.
MinerData
Data to create a custom block template.
MinerDataTxBacklogEntry
A transaction in the txpool.
OutputHistogramEntry
A single entry in an output histogram.
OutputHistogramInput
Input required to generate an output histogram.
OutputOnChain
An already existing transaction output.
PrunedTxBlobEntry
A pruned transaction with the hash of the missing prunable data
TransactionVerificationData
Data needed to verify a transaction.
TxsInBlock
The inner response for a request for txs in a block.
VerifiedBlockInformation
Verified information of a block.
VerifiedTransactionInformation
Verified information of a transaction.

Enums§

AddressType
An enumeration of address types.
CachedVerificationState
Represents if a transaction has been fully validated and under what conditions the transaction is valid in the future.
Chain
An identifier for a chain.
ConnectionState
An enumeration of P2P connection states.
HardFork
An identifier for every hard-fork Monero has had.
HardForkError
An error working with a HardFork.
TransactionBlobs
Transaction blobs within BlockCompleteEntry.
TxVersion
An enum representing all valid Monero transaction versions.