Skip to main contentModule erc20
Source use foundry_common::fmt::format_uint_exp; π use std::str::FromStr; π use crate::cmd::call_overrides::CallOverrideOpts; π use crate::cmd::rpc_provider; π use crate::cmd::send::SendTxArgs; π use crate::tx::SendTxOpts; π use crate::tx::TxParams; π use alloy_eips::BlockId; π use alloy_ens::NameOrAddress; π use alloy_network::AnyNetwork; π use alloy_primitives::Address; π use alloy_primitives::U256; π use alloy_sol_types::SolCall; π use alloy_sol_types::sol; π use clap::Parser; π use eyre::Result; π use foundry_cli::json::print_json_success; π use foundry_cli::json::print_scalar; π use foundry_cli::opts::RpcOpts; π use foundry_common::provider::RetryProvider; π use foundry_common::shell; π
- IERC20
- Module containing a contractβs types and functions.
- permit π
- ERC-2612 signed approvals.
- Erc20Subcommand
- Interact with ERC20 tokens.
- print_amount π
- Prints a token amount: the raw decimal string in JSON mode, exponent-annotated otherwise.
- resolve π
- send π
- token_at π