Skip to main content

foundry_evm_networks/celo/
transfer.rs

1//! Celo transfer precompile metadata.
2//!
3//! The Celo transfer precompile enables native token transfers from an EVM contract. It is part of
4//! Celo's token duality system, allowing transfer of native tokens via ERC20.
5//!
6//! For more details, see: <https://specs.celo.org/token_duality.html#the-transfer-precompile>
7
8use alloy_primitives::Address;
9
10/// Label of the Celo transfer precompile to display in traces.
11pub const CELO_TRANSFER_LABEL: &str = "CELO_TRANSFER_PRECOMPILE";
12
13/// Address of the Celo transfer precompile.
14pub const CELO_TRANSFER_ADDRESS: Address = Address::with_last_byte(0xfd);
15
16/// Name of the [Celo transfer precompile](CELO_TRANSFER_ADDRESS).
17pub const CELO_TRANSFER_PRECOMPILE_NAME: &str = "celo transfer";