Crate sn_evm

Source

Modules§

cryptography
utils

Structs§

AttoTokens
Types used in the public API An amount in SNT Atto. 10^18 Nanos = 1 SNT.
CustomNetwork
EvmWallet
PaymentQuote
A payment quote to store data given by a node to a client Note that the PaymentQuote is a contract between the node and itself to make sure the clients aren’t mispaying. It is NOT a contract between the client and the node.
ProofOfPayment
The proof of payment for a data payment
QuotingMetrics
Quoting metrics that got used to generate a quote, or to track peer’s status.

Enums§

EvmError
Transfer errors
EvmNetwork
EvmWalletError

Constants§

DATA_PAYMENTS_ADDRESS
PAYMENT_TOKEN_ADDRESS
RPC_URL
environment variable to connect to a custom EVM network

Functions§

get_evm_network_from_env
Get the Network from environment variables.

Type Aliases§

Amount
Types used in the public API
EvmAddress
QuoteHash
QuotePayment
Result
Specialisation of std::Result.
RewardsAddress
TxHash