Fraction Protocolinterfaces
ISemiFungibleAndFungibleFractionTransferFacet
ISemiFungibleAndFungibleFractionTransferFacet
transferFractions
TransferFractions
Parameters
Name | Type | Description |
---|---|---|
campaignId | uint256 | The id of the specific use-case. It is the one created by the state facet on fractionCreation. |
from | address | The account to transfer the fractions from. |
to | address | The account to transfer the fractions to. |
id | uint256 | The id (if any) of the fractions. |
amount | uint256 | The amount of fractions to be transfered. |
transferFractions
TransferFractions
Parameters
Name | Type | Description |
---|---|---|
campaignId | uint256 | The id of the specific use-case. It is the one created by the state facet on fractionCreation. |
from | address | The account to transfer the fractions from. |
to | OmnichainAddress | The account to transfer the fractions to. |
id | uint256 | The id (if any) of the fractions. |
amount | uint256 | The amount of fractions to be transfered. |
refundAddress | address | The address to refund the unspent gas to. |
mintFractions
Mint fractions
Parameters
Name | Type | Description |
---|---|---|
campaignId | uint256 | The id of the specific use-case. It is the one created by the state facet on fractionCreation. |
to | address | The account to mint the fractions to. |
id | uint256 | The id (if any) of the fractions. |
amount | uint256 | The amount of fractions to be minted. |
burnFractions
Burn Fractions
Parameters
Name | Type | Description |
---|---|---|
campaignId | uint256 | The id of the specific use-case. It is the one created by the state facet on fractionCreation. |
from | address | The account to burn the fractions from. |
id | uint256 | |
amount | uint256 | The amount of fractions to be burnt. |