Expand description
Precompile to interact with pallet_balances instances using the ERC20 interface standard.
Structs§
- 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§
- Solidity selector of the Approval log, which is the Keccak of the Log signature.
- Solidity selector of the Deposit log, which is the Keccak of the Log signature.
- Solidity selector of the Transfer log, which is the Keccak of the Log signature.
- Solidity selector of the Withdraw log, which is the Keccak of the Log signature.
Traits§
- Metadata of an ERC20 token.
- Associates pallet Instance to a prefix used for the Approves storage. This trait is implemented for () and the 16 substrate Instance.
Type Aliases§
- Storage type used to store approvals, since
pallet_balances
doesn’t handle this behavior. (Owner => Allowed => Amount) - Alias for the Balance type for the provided Runtime and Instance.
- Storage type used to store EIP2612 nonces.