Skip to content
    hazBasehazBaseDocs
    SMART CONTRACTS
    Contract catalog

    ContractFactory

    Deploy contracts from versioned implementations.

    Deployment & operationsContractFactory.sol

    Role and use

    Deploy a new contract from a registered implementation and apply its initialization data.

    Integration considerationsSpecify implementationOwner, contractType, version and initialization data. The referenced source creates EIP-1167 clones; assess update behavior for each implementation.

    Key contract operations

    Key entry points for direct contract calls. Consult the linked implementation and matching ABI for parameters, types and access conditions.

    OperationPurpose
    getImplementationByVersionRead a versioned implementation
    deployContractByVersionDeploy and initialize a specified version
    getImplementationPolicyRead an implementation’s deployment policy
    Deployment with the Factory SDK

    Related contracts

    Put it into practice

    Physical assets & inventory

    See the data model, processing sequence and SDK code for an application-level implementation.

    Read the implementation pattern

    Specification and source

    The Solidity source is pinned to the revision below. Match it with the SDK version and your network’s implementation address and ABI.

    factory-contract/contracts/ContractFactory.sol

    Source revision: b53a5b5