Expand description
Celo precompile implementation for token transfers.
This module implements the Celo transfer precompile that enables native token transfers from an EVM contract. The precompile is part of Celo’s token duality system, allowing transfer of native tokens via ERC20.
For more details, see: https://specs.celo.org/token_duality.html#the-transfer-precompile
The transfer precompile is deployed at address 0xfd and accepts 96 bytes of input:
- from address (32 bytes, left-padded)
- to address (32 bytes, left-padded)
- value (32 bytes, big-endian U256)
Constants§
- CELO_
TRANSFER_ ADDRESS - CELO_
TRANSFER_ 🔒GAS_ COST - Gas cost for Celo transfer precompile
Functions§
- celo_
transfer_ precompile - Celo transfer precompile implementation.
- precompile
- Returns the celo native transfer