Module transfer

Module transfer 

Source
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
Address of the Celo transfer precompile.
CELO_TRANSFER_GAS_COST 🔒
Gas cost for Celo transfer precompile.

Statics§

PRECOMPILE_ID_CELO_TRANSFER
ID for the Celo transfer precompile.

Functions§

celo_transfer_precompile
Celo transfer precompile implementation.
precompile
Returns the Celo native transfer.