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#[macro_use]
10extern crate tracing;
11
12pub use evmlib::common::Address as RewardsAddress;
13pub use evmlib::common::Address as EvmAddress;
14pub use evmlib::common::QuotePayment;
15pub use evmlib::common::U256;
16pub use evmlib::common::{QuoteHash, TxHash};
17pub use evmlib::contract::payment_vault;
18pub use evmlib::cryptography;
19#[cfg(feature = "external-signer")]
20pub use evmlib::external_signer;
21pub use evmlib::transaction_config::TransactionConfig;
22pub use evmlib::utils;
23pub use evmlib::utils::get_evm_network;
24pub use evmlib::utils::{DATA_PAYMENTS_ADDRESS, PAYMENT_TOKEN_ADDRESS, RPC_URL};
25pub use evmlib::wallet::Error as EvmWalletError;
26pub use evmlib::wallet::Wallet as EvmWallet;
27pub use evmlib::CustomNetwork;
28pub use evmlib::Network as EvmNetwork;
29
30mod amount;
31mod data_payments;
32mod error;
33
34pub use data_payments::{EncodedPeerId, PaymentQuote, ProofOfPayment, QUOTE_EXPIRATION_SECS};
35pub use evmlib::quoting_metrics::QuotingMetrics;
36
37/// Types used in the public API
38pub use amount::{Amount, AttoTokens};
39pub use error::{EvmError, Result};