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

Modules§

blockchain
Database BlockchainReadRequests, BlockchainWriteRequests, and BlockchainResponses.
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§

AltBlockInformation
A block on an alternative chain.
BlockCompleteEntry
A block that can contain transactions.
BlockTemplate
A block template, used in RPC’s get_block_template.
ChainId
A unique ID for an alt chain.
ExtendedBlockHeader
Extended header data of a block.
OutputDistributionInput
Used in RPC’s get_output_distribution.
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.
TxInBlockchain
TODO
TxInPool
TODO
TxRelayChecks
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.