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 | 
Modules§
- blockchain
 - Database 
BlockchainReadRequests,BlockchainWriteRequests, andBlockchainResponses. - json
 - This module contains types mappings for other common types to allow for easier JSON (de)serialization.
 - output_
cache  - rpc
 - Various types (in)directly used in RPC.
 
Structs§
- AltBlock
Information  - A block on an alternative chain.
 - Block
Complete Entry  - A block that can contain transactions.
 - Block
Template  - A block template, used in RPC’s 
get_block_template. - ChainId
 - A unique ID for an alt chain.
 - Extended
Block Header  - Extended header data of a block.
 - Output
Distribution Input  - Used in RPC’s 
get_output_distribution. - 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.
 - TxIn
Blockchain  - TODO
 - TxIn
Pool  - TODO
 - TxRelay
Checks  - 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.