Deployer Allowlist
Learn how to use the Deployer Allowlist Precompile to control who can deploy smart contracts on your Avalanche L1 blockchain.
The Deployer Allowlist Precompile allows you to control which addresses have permission to deploy smart contracts on your Avalanche L1 blockchain. This is useful for maintaining a controlled environment where only authorized addresses can deploy new contracts.
Activating the Precompile
To activate this feature, you need to provide the contractDeployerAllowListConfig
in the genesis:
By enabling this feature, you can define which addresses are allowed to deploy smart contracts and manage these permissions over time.
Interface and Address
The Deployer Allowlist precompile is located at address 0x0200000000000000000000000000000000000003
and implements the following interface:
The Deployer Allowlist precompile uses the AllowList interface to manage permissions for contract deployment.
Role Permissions
The precompile defines several roles with different permissions:
- Admin (2): Can add or remove any role (Admin, Manager, Enabled, None)
- Manager (3): Can add or remove Enabled addresses
- Enabled (1): Can deploy smart contracts
- None (0): Cannot deploy smart contracts
Implementation
You can find the implementation of the Deployer Allowlist precompile in the subnet-evm repository.
Is this guide helpful?