deploy_syscall

Deploys a new instance of a previously declared class. # Argumentsclass_hash - The class hash of the contract to be deployed. * contract_address_salt - The salt, an arbitrary value provided by the deployer, used in the computation of the contract's address. * calldata - Call arguments for the constructor. * deploy_from_zero - Deploy the contract from the zero address. # ReturnsThe address of the deployed contract. * The serialized return value of the constructor.

Fully qualified path: core::starknet::syscalls::deploy_syscall

pub extern fn deploy_syscall(
    class_hash: ClassHash,
    contract_address_salt: felt252,
    calldata: Span<felt252>,
    deploy_from_zero: bool,
) -> SyscallResult<(ContractAddress, Span<felt252>)> implicits(GasBuiltin, System) nopanic;