ODCinterfacesdataManagersfractionalizers
IFractionFactory
WrongParameters
Error thrown when the parameters are wrong
CoreAddresses
Parameters
| Name | Type | Description |
|---|
DeploymentConfig
Parameters
| Name | Type | Description |
|---|
deploy
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
| Name | Type | Description |
|---|---|---|
| deploymentConfig | struct IFractionFactory.DeploymentConfig | Configuration of deployed Fraction Data Manager |
| refundAddress | address payable | where to send native coin refund |
Return Values
| Name | Type | Description |
|---|---|---|
| dm | address | address of deployed DataManager |
| datapoint | bytes32 | DataPoint created for the DataManager |
calculateDeployFee
Estimates the fee for deploying a Fraction Data Manager clone contract on multiple chains
Parameters
| Name | Type | Description |
|---|---|---|
| deploymentConfig | struct IFractionFactory.DeploymentConfig | Configuration of deployed Fraction Data Manager |
Return Values
| Name | Type | Description |
|---|---|---|
| totalNativeFee | uint256 | The total fee in native tokens for deploying the FractionERC20DataManagerClone contract on multiple chains |
computeDeployAddress
Calculates address of Fraction contract deployed for specified id
Parameters
| Name | Type | Description |
|---|---|---|
| sender | address | Address of deployer |
| wrapper | address | Address of Wrapper contract |
| nftId_ | uint256 | id of Wrapper token, representing wrapped assets |

