ODCinterfacesdataManagersfractionalizers

IFractionFactory

WrongParameters

error WrongParameters()

Error thrown when the parameters are wrong

CoreAddresses

Parameters

NameTypeDescription
struct CoreAddresses {
  address registry;
  address dataIndex;
  address fractionDO;
  address fractionImplementation;
}

DeploymentConfig

Parameters

NameTypeDescription
struct DeploymentConfig {
  address wrapper;
  bool userUnlockEnabled;
  uint256 nftId;
  uint256 amountToBeMinted;
  uint256 upperGenesisId;
  uint32[] chainIds;
  string name;
  string symbol;
}

deploy

function deploy(struct IFractionFactory.DeploymentConfig deploymentConfig, address payable refundAddress) external payable returns (address dm, bytes32 datapoint)

Deploys a Fraction Data Manager contract (implements IFraction)

Ownership of created DataPoint is transferred to the caller All deployed DataManagers are approved to use DataObjects they need

Parameters

NameTypeDescription
deploymentConfigstruct IFractionFactory.DeploymentConfigConfiguration of deployed Fraction Data Manager
refundAddressaddress payablewhere to send native coin refund

Return Values

NameTypeDescription
dmaddressaddress of deployed DataManager
datapointbytes32DataPoint created for the DataManager

calculateDeployFee

function calculateDeployFee(struct IFractionFactory.DeploymentConfig deploymentConfig) external view returns (uint256 totalNativeFee)

Estimates the fee for deploying a Fraction Data Manager clone contract on multiple chains

Parameters

NameTypeDescription
deploymentConfigstruct IFractionFactory.DeploymentConfigConfiguration of deployed Fraction Data Manager

Return Values

NameTypeDescription
totalNativeFeeuint256The total fee in native tokens for deploying the FractionERC20DataManagerClone contract on multiple chains

computeDeployAddress

function computeDeployAddress(address sender, address wrapper, uint256 nftId_) external view returns (address dm)

Calculates address of Fraction contract deployed for specified id

Parameters

NameTypeDescription
senderaddressAddress of deployer
wrapperaddressAddress of Wrapper contract
nftId_uint256id of Wrapper token, representing wrapped assets

On this page