Interface Deployer
-
- All Implemented Interfaces:
public interface Deployer
Universal Deployer Contract module
A module for interacting with Universal Deployer Contracts (UDC).
-
-
Method Summary
Modifier and Type Method Description abstract Request<ContractDeployment>
deployContractV1(Felt classHash, Boolean unique, Felt salt, List<Felt> constructorCalldata, Felt maxFee)
Deploy a contract through Universal Deployer Contract (UDC) using version 1 invoke transaction abstract Request<ContractDeployment>
deployContractV1(Felt classHash, Boolean unique, Felt salt, List<Felt> constructorCalldata)
Deploy a contract through Universal Deployer Contract (UDC) using version 1 invoke transaction abstract Request<ContractDeployment>
deployContractV1(Felt classHash, List<Felt> constructorCalldata, Felt maxFee)
Deploy a contract through Universal Deployer Contract (UDC) using version 1 invoke transaction with random generated salt and unique parameter set to true abstract Request<ContractDeployment>
deployContractV1(Felt classHash, List<Felt> constructorCalldata)
Deploy a contract through Universal Deployer Contract (UDC) using version 1 invoke transaction with random generated salt and unique parameter set to true abstract Request<ContractDeployment>
deployContractV3(Felt classHash, Boolean unique, Felt salt, List<Felt> constructorCalldata, ResourceBounds l1ResourceBounds)
Deploy a contract through Universal Deployer Contract (UDC) using version 3 invoke transaction abstract Request<ContractDeployment>
deployContractV3(Felt classHash, Boolean unique, Felt salt, List<Felt> constructorCalldata)
Deploy a contract through Universal Deployer Contract (UDC) using version 3 invoke transaction abstract Request<ContractDeployment>
deployContractV3(Felt classHash, List<Felt> constructorCalldata, ResourceBounds l1ResourceBounds)
Deploy a contract through Universal Deployer Contract (UDC) using version 3 invoke transaction with random generated salt and unique parameter set to true abstract Request<ContractDeployment>
deployContractV3(Felt classHash, List<Felt> constructorCalldata)
Deploy a contract through Universal Deployer Contract (UDC) using version 3 invoke transaction with random generated salt and unique parameter set to true abstract Request<Felt>
findContractAddress(ContractDeployment contractDeployment)
Get a contract address from the deployment -
-
Method Detail
-
deployContractV1
abstract Request<ContractDeployment> deployContractV1(Felt classHash, Boolean unique, Felt salt, List<Felt> constructorCalldata, Felt maxFee)
Deploy a contract through Universal Deployer Contract (UDC) using version 1 invoke transaction
- Parameters:
classHash
- a class hash of the declared contractunique
- set whether deployed contract address should be based on account address or notsalt
- a salt to be used to calculate deployed contract addressconstructorCalldata
- constructor calldatamaxFee
- maximum fee that account will use for the deployment
-
deployContractV1
abstract Request<ContractDeployment> deployContractV1(Felt classHash, Boolean unique, Felt salt, List<Felt> constructorCalldata)
Deploy a contract through Universal Deployer Contract (UDC) using version 1 invoke transaction
- Parameters:
classHash
- a class hash of the declared contractunique
- set whether deployed contract address should be based on account address or notsalt
- a salt to be used to calculate deployed contract addressconstructorCalldata
- constructor calldata
-
deployContractV1
abstract Request<ContractDeployment> deployContractV1(Felt classHash, List<Felt> constructorCalldata, Felt maxFee)
Deploy a contract through Universal Deployer Contract (UDC) using version 1 invoke transaction with random generated salt and unique parameter set to true
- Parameters:
classHash
- a class hash of the declared contractconstructorCalldata
- constructor calldatamaxFee
- maximum fee that account will use for the deployment
-
deployContractV1
abstract Request<ContractDeployment> deployContractV1(Felt classHash, List<Felt> constructorCalldata)
Deploy a contract through Universal Deployer Contract (UDC) using version 1 invoke transaction with random generated salt and unique parameter set to true
- Parameters:
classHash
- a class hash of the declared contractconstructorCalldata
- constructor calldata
-
deployContractV3
abstract Request<ContractDeployment> deployContractV3(Felt classHash, Boolean unique, Felt salt, List<Felt> constructorCalldata, ResourceBounds l1ResourceBounds)
Deploy a contract through Universal Deployer Contract (UDC) using version 3 invoke transaction
- Parameters:
classHash
- a class hash of the declared contractunique
- set whether deployed contract address should be based on account address or notsalt
- a salt to be used to calculate deployed contract addressconstructorCalldata
- constructor calldatal1ResourceBounds
- L1 resource bounds for the transaction
-
deployContractV3
abstract Request<ContractDeployment> deployContractV3(Felt classHash, Boolean unique, Felt salt, List<Felt> constructorCalldata)
Deploy a contract through Universal Deployer Contract (UDC) using version 3 invoke transaction
- Parameters:
classHash
- a class hash of the declared contractunique
- set whether deployed contract address should be based on account address or notsalt
- a salt to be used to calculate deployed contract addressconstructorCalldata
- constructor calldata
-
deployContractV3
abstract Request<ContractDeployment> deployContractV3(Felt classHash, List<Felt> constructorCalldata, ResourceBounds l1ResourceBounds)
Deploy a contract through Universal Deployer Contract (UDC) using version 3 invoke transaction with random generated salt and unique parameter set to true
- Parameters:
classHash
- a class hash of the declared contractconstructorCalldata
- constructor calldatal1ResourceBounds
- L1 resource bounds for the transaction
-
deployContractV3
abstract Request<ContractDeployment> deployContractV3(Felt classHash, List<Felt> constructorCalldata)
Deploy a contract through Universal Deployer Contract (UDC) using version 3 invoke transaction with random generated salt and unique parameter set to true
- Parameters:
classHash
- a class hash of the declared contractconstructorCalldata
- constructor calldata
-
findContractAddress
abstract Request<Felt> findContractAddress(ContractDeployment contractDeployment)
Get a contract address from the deployment
- Parameters:
contractDeployment
- a contract deployment
-
-
-
-