ant_evm/
lib.rs

1// Copyright 2024 MaidSafe.net limited.
2//
3// This SAFE Network Software is licensed to you under The General Public License (GPL), version 3.
4// Unless required by applicable law or agreed to in writing, the SAFE Network Software distributed
5// under the GPL Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
6// KIND, either express or implied. Please review the Licences for the specific language governing
7// permissions and limitations relating to use of the SAFE Network Software.
8
9// Allow expect/panic in this crate temporarily until proper error handling is implemented
10#![allow(clippy::expect_used)]
11#![allow(clippy::panic)]
12// Allow the to_bytes_le method name
13#![allow(clippy::wrong_self_convention)]
14
15#[macro_use]
16extern crate tracing;
17
18pub use evmlib::CustomNetwork;
19pub use evmlib::Network as EvmNetwork;
20pub use evmlib::common::Address as RewardsAddress;
21pub use evmlib::common::Address as EvmAddress;
22pub use evmlib::common::QuotePayment;
23pub use evmlib::common::U256;
24pub use evmlib::common::{QuoteHash, TxHash};
25pub use evmlib::contract::merkle_payment_vault;
26pub use evmlib::contract::payment_vault;
27pub use evmlib::cryptography;
28#[cfg(feature = "external-signer")]
29pub use evmlib::external_signer;
30pub use evmlib::merkle_batch_payment;
31pub use evmlib::transaction_config::{MaxFeePerGas, TransactionConfig};
32pub use evmlib::utils;
33pub use evmlib::utils::get_evm_network;
34pub use evmlib::utils::{
35    DATA_PAYMENTS_ADDRESS, MERKLE_PAYMENTS_ADDRESS, PAYMENT_TOKEN_ADDRESS, RPC_URL,
36};
37pub use evmlib::wallet::Error as EvmWalletError;
38pub use evmlib::wallet::Wallet as EvmWallet;
39
40mod amount;
41mod data_payments;
42mod error;
43
44pub mod merkle_payments;
45
46pub use data_payments::{ClientProofOfPayment, EncodedPeerId, PaymentQuote, ProofOfPayment};
47pub use evmlib::quoting_metrics::QuotingMetrics;
48
49/// Types used in the public API
50pub use amount::{Amount, AttoTokens};
51pub use error::{EvmError, Result};