Expand description
Precompile to interact with pallet_balances instances using the ERC20 interface standard.
Structs§
- Erc20
Balances Precompile - Precompile exposing a pallet_balance as an ERC20. Multiple precompiles can support instances of pallet_balance. The precompile uses an additional storage to store approvals.
Enums§
Constants§
- SELECTOR_
LOG_ APPROVAL - Solidity selector of the Approval log, which is the Keccak of the Log signature.
- SELECTOR_
LOG_ DEPOSIT - Solidity selector of the Deposit log, which is the Keccak of the Log signature.
- SELECTOR_
LOG_ TRANSFER - Solidity selector of the Transfer log, which is the Keccak of the Log signature.
- SELECTOR_
LOG_ WITHDRAWAL - Solidity selector of the Withdraw log, which is the Keccak of the Log signature.
Traits§
- Erc20
Metadata - Metadata of an ERC20 token.
- Instance
ToPrefix - Associates pallet Instance to a prefix used for the Approves storage. This trait is implemented for () and the 16 substrate Instance.
Type Aliases§
- Approves
Storage - Storage type used to store approvals, since
pallet_balancesdoesn’t handle this behavior. (Owner => Allowed => Amount) - Balance
Of - Alias for the Balance type for the provided Runtime and Instance.
- Nonces
Storage - Storage type used to store EIP2612 nonces.