Universal Deployer
Reference of the Universal Deployer Contract (UDC) interface and preset.
Core
Presets
UniversalDeployer
use openzeppelin_presets::UniversalDeployer;
The standard Universal Deployer Contract.
0x04cc44533e6a2f0612ba6b7c6cabfebf13e0d5f294504fffc2403ec0a4d1cf9d
Embedded Implementations
UniversalDeployerImpl
deploy_contract(ref self: ContractState, address: ContractAddress, deployer: ContractAddress, from_zero: bool, class_hash: ClassHash, calldata: Span<felt252>, salt: felt252) -> ContractAddress
external
Deploys a contract through the Universal Deployer Contract.
When from_zero
is false
, salt
is hashed with the caller address and the modified salt is passed to the inner deploy_syscall
. This type of deployment is origin-dependent.
When from_zero
is true
, the deployment type is origin-independent.
Emits an ContractDeployed event.