4 releases

0.1.4 Nov 12, 2024
0.1.3 Nov 6, 2024
0.1.2 Oct 29, 2024
0.1.1 Oct 22, 2024

#1548 in Network programming

Download history 172/week @ 2024-10-18 199/week @ 2024-10-25 215/week @ 2024-11-01 175/week @ 2024-11-08 57/week @ 2024-11-15 62/week @ 2024-11-22 68/week @ 2024-11-29

407 downloads per month
Used in 18 crates (8 directly)

GPL-3.0 license

96KB
2K SLoC

Safe Network EVM data payments

This crate contains the logic for data payments on the SAFE Network using the Ethereum protocol.

This crate provides a set of types and utilities for interacting with EVM-based networks. It offers abstraction over common tasks such as handling addresses, wallets, payments, and network configurations. Below is an overview of the main types exposed by the crate.

Exposed Types

RewardsAddress

Alias for evmlib::common::Address. Represents an EVM-compatible address used for handling rewards.

QuoteHash

Represents a unique hash identifying a quote. Useful for referencing and verifying PaymentQuote.

TxHash

Represents the transaction hash. Useful for identifying and tracking transactions on the blockchain.

EvmWallet

Alias for evmlib::wallet::Wallet. A wallet used to interact with EVM-compatible networks, providing key management and signing functionality.

EvmNetworkCustom

A custom network type that allows for interaction with custom EVM-based networks.

EvmNetwork

A standard network type for EVM-based networks such as Ethereum or ArbitrumOne.

PaymentQuote

Represents a quote for a payment transaction. Contains relevant data for processing payments through EVM-based networks.

QuotingMetrics

Represents metrics associated with generating a payment quote. Useful for performance measurement and optimization.

ProofOfPayment

Contains proof of a successful payment on an EVM-based network. Includes data like transaction hash and confirmation details.

Amount

Represents a general amount of tokens. Can be used to define any token value in a flexible way.

AttoTokens

Represents an amount in the smallest token unit, commonly "atto" (10^-18). Useful for working with precise amounts in smart contracts.

EvmError

A custom error type used for handling EVM-related errors within the library.

Result

A specialized Result type that wraps around EvmError. Standardizes error handling across operations.

Dependencies

~44–60MB
~1M SLoC