Setheum-Labs / Setheum

Setheum: The Unified Web3 Base Layer - Globally Solving Web3’s Fragmentation Problems. Ready for hacking 🚀
https://setheum.xyz
GNU General Public License v3.0
24 stars 13 forks source link

SEVM: system contracts address allocation #404

Closed balqaasem closed 9 months ago

balqaasem commented 3 years ago

System contracts requirements: 15 leading zero bytes.

Address allocation.

The rest 5 bytes in the address: 1 category byte ++ 4 address bytes.

Category byte

0: Ethereum EVM precompiles. 1: Setheum precompiles. Set in genesis block. 2: Network contracts. Could be deployed later via create_network_contract dispatch call. 3: Predeployed ERC20 contracts. Set in genesis block. 4: ERC721 contracts. Could be deployed later via create_erc721_contract dispatch call.

balqaasem commented 3 years ago

Ref: #332