Class StandardDeployer
-
- All Implemented Interfaces:
-
com.swmansion.starknet.deployercontract.Deployer
public final class StandardDeployer implements Deployer
-
-
Constructor Summary
Constructors Constructor Description StandardDeployer(Provider provider, Account account)StandardDeployer(Felt deployerAddress, Provider provider, Account account)
-
Method Summary
Modifier and Type Method Description Request<ContractDeployment>deployContractV3(Felt classHash, Boolean unique, Felt salt, List<Felt> constructorCalldata, ResourceBoundsMapping resourceBounds)Deploy a contract through Universal Deployer Contract (UDC) using version 3 invoke transaction 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 Request<ContractDeployment>deployContractV3(Felt classHash, List<Felt> constructorCalldata, ResourceBoundsMapping resourceBounds)Deploy a contract through Universal Deployer Contract (UDC) using version 3 invoke transaction with random generated salt and unique parameter set to true 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 Request<Felt>findContractAddress(ContractDeployment contractDeployment)Get a contract address from the deployment -
-
Method Detail
-
deployContractV3
Request<ContractDeployment> deployContractV3(Felt classHash, Boolean unique, Felt salt, List<Felt> constructorCalldata, ResourceBoundsMapping resourceBounds)
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 calldataresourceBounds- resource bounds for the transaction execution
-
deployContractV3
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
Request<ContractDeployment> deployContractV3(Felt classHash, List<Felt> constructorCalldata, ResourceBoundsMapping resourceBounds)
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 calldataresourceBounds- resource bounds for the transaction execution
-
deployContractV3
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
Request<Felt> findContractAddress(ContractDeployment contractDeployment)
Get a contract address from the deployment
- Parameters:
contractDeployment- a contract deployment
-
-
-
-