ant-evm 0.1.21

EVM transfers for Autonomi
Documentation
// Copyright 2024 MaidSafe.net limited.
//
// This SAFE Network Software is licensed to you under The General Public License (GPL), version 3.
// Unless required by applicable law or agreed to in writing, the SAFE Network Software distributed
// under the GPL Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. Please review the Licences for the specific language governing
// permissions and limitations relating to use of the SAFE Network Software.

// Allow expect/panic in this crate temporarily until proper error handling is implemented
#![allow(clippy::expect_used)]
#![allow(clippy::panic)]
// Allow the to_bytes_le method name
#![allow(clippy::wrong_self_convention)]

#[macro_use]
extern crate tracing;

pub use evmlib::CustomNetwork;
pub use evmlib::GasInfo;
pub use evmlib::Network as EvmNetwork;
pub use evmlib::common::Address as RewardsAddress;
pub use evmlib::common::Address as EvmAddress;
pub use evmlib::common::QuotePayment;
pub use evmlib::common::U256;
pub use evmlib::common::{QuoteHash, TxHash};
pub use evmlib::contract::merkle_payment_vault;
pub use evmlib::contract::payment_vault;
pub use evmlib::cryptography;
#[cfg(feature = "external-signer")]
pub use evmlib::external_signer;
pub use evmlib::merkle_batch_payment;
pub use evmlib::transaction_config::{MaxFeePerGas, TransactionConfig};
pub use evmlib::utils;
pub use evmlib::utils::get_evm_network;
pub use evmlib::utils::{
    DATA_PAYMENTS_ADDRESS, MERKLE_PAYMENTS_ADDRESS, PAYMENT_TOKEN_ADDRESS, RPC_URL,
};
pub use evmlib::wallet::Error as EvmWalletError;
pub use evmlib::wallet::Wallet as EvmWallet;

mod amount;
mod data_payments;
mod error;

pub mod merkle_payments;

pub use data_payments::{ClientProofOfPayment, EncodedPeerId, PaymentQuote, ProofOfPayment};
pub use evmlib::quoting_metrics::QuotingMetrics;

/// Types used in the public API
pub use amount::{Amount, AttoTokens};
pub use error::{EvmError, Result};