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::payment_vault;
26pub use evmlib::cryptography;
27#[cfg(feature = "external-signer")]
28pub use evmlib::external_signer;
29pub use evmlib::transaction_config::{MaxFeePerGas, TransactionConfig};
30pub use evmlib::utils;
31pub use evmlib::utils::get_evm_network;
32pub use evmlib::utils::{DATA_PAYMENTS_ADDRESS, PAYMENT_TOKEN_ADDRESS, RPC_URL};
33pub use evmlib::wallet::Error as EvmWalletError;
34pub use evmlib::wallet::Wallet as EvmWallet;
35
36mod amount;
37mod data_payments;
38mod error;
39
40pub use data_payments::{ClientProofOfPayment, EncodedPeerId, PaymentQuote, ProofOfPayment};
41pub use evmlib::quoting_metrics::QuotingMetrics;
42
43/// Types used in the public API
44pub use amount::{Amount, AttoTokens};
45pub use error::{EvmError, Result};