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 flag | Does what |
---|---|
blockchain | Enables the blockchain module, containing the blockchain database request/response types |
serde | Enables serde on types where applicable |
epee | Enables cuprate-epee-encoding on types where applicable |
proptest | Enables proptest::arbitrary::Arbitrary on some types |
json | Enables the json module, containing JSON representations of common Monero types |
hex | Enables the hex module, containing the HexBytes type |
Modules§
- blockchain
- Database
BlockchainReadRequest
s,BlockchainWriteRequest
s, andBlockchainResponse
s. - hex
- Hexadecimal serde wrappers for arrays.
- json
- This module contains types mappings for other common types to allow for easier JSON (de)serialization.
Structs§
- AddAux
Pow - Used in RPC’s
add_aux_pow
. - AltBlock
Information - A block on an alternative chain.
- AuxPow
- Used in RPC’s
add_aux_pow
. - Block
Complete Entry - A block that can contain transactions.
- ChainId
- A unique ID for an alt chain.
- Chain
Info - Information on a (maybe alternate) chain.
- Coinbase
TxSum - Data of summed coinbase transactions.
- Extended
Block Header - Extended header data of a block.
- FeeEstimate
- Estimated fee data.
- Hard
Fork Info - Information on a
HardFork
. - Miner
Data - Data to create a custom block template.
- Miner
Data TxBacklog Entry - A transaction in the txpool.
- Output
Histogram Entry - A single entry in an output histogram.
- Output
Histogram Input - Input required to generate an output histogram.
- Output
OnChain - An already existing transaction output.
- Pruned
TxBlob Entry - A pruned transaction with the hash of the missing prunable data
- Transaction
Verification Data - Data needed to verify a transaction.
- TxsIn
Block - The inner response for a request for txs in a block.
- Verified
Block Information - Verified information of a block.
- Verified
Transaction Information - Verified information of a transaction.
Enums§
- Address
Type - An enumeration of address types.
- Cached
Verification State - 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.
- Connection
State - An enumeration of P2P connection states.
- Hard
Fork - An identifier for every hard-fork Monero has had.
- Hard
Fork Error - An error working with a
HardFork
. - Transaction
Blobs - Transaction blobs within
BlockCompleteEntry
. - TxVersion
- An enum representing all valid Monero transaction versions.