Class StandardDeployer

  • All Implemented Interfaces:
    com.swmansion.starknet.deployercontract.Deployer

    
    public final class StandardDeployer
     implements Deployer
                        
    • Constructor Detail

    • Method Detail

      • deployContractV1

         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 contract
        unique - set whether deployed contract address should be based on account address or not
        salt - a salt to be used to calculate deployed contract address
        constructorCalldata - constructor calldata
        maxFee - maximum fee that account will use for the deployment
      • deployContractV1

         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 contract
        unique - set whether deployed contract address should be based on account address or not
        salt - a salt to be used to calculate deployed contract address
        constructorCalldata - constructor calldata
      • deployContractV1

         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 contract
        constructorCalldata - constructor calldata
        maxFee - maximum fee that account will use for the deployment
      • deployContractV1

         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 contract
        constructorCalldata - constructor calldata
      • deployContractV3

         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 contract
        unique - set whether deployed contract address should be based on account address or not
        salt - a salt to be used to calculate deployed contract address
        constructorCalldata - constructor calldata
        l1ResourceBounds - L1 resource bounds for the transaction
      • 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 contract
        unique - set whether deployed contract address should be based on account address or not
        salt - a salt to be used to calculate deployed contract address
        constructorCalldata - constructor calldata
      • deployContractV3

         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 contract
        constructorCalldata - constructor calldata
        l1ResourceBounds - L1 resource bounds for the transaction
      • 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 contract
        constructorCalldata - constructor calldata