Crate ant_evm

Source

Modules§

cryptography
payment_vault
utils

Structs§

AttoTokens
Types used in the public API An amount in SNT Atto. 10^18 Nanos = 1 SNT.
ClientProofOfPayment
The proof of payment for a data payment, only to be used on client side
CustomNetwork
EncodedPeerId
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, only to be used on node side
QuotingMetrics
Quoting metrics used to generate a quote, or to track peer’s status.
TransactionConfig

Enums§

EvmError
Transfer errors
EvmNetwork
EvmWalletError

Constants§

DATA_PAYMENTS_ADDRESS
PAYMENT_TOKEN_ADDRESS
QUOTE_EXPIRATION_SECS
The time in seconds that a quote is valid for
RPC_URL
environment variable to connect to a custom EVM network

Functions§

get_evm_network
Initialize the EVM Network.

Type Aliases§

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