Fraction Protocolinterfaces

ISemiFungibleAndFungibleFractionTransferFacet

ISemiFungibleAndFungibleFractionTransferFacet

transferFractions

function transferFractions(uint256 campaignId, address from, address to, uint256 id, uint256 amount) external

TransferFractions

Parameters

NameTypeDescription
campaignIduint256The id of the specific use-case. It is the one created by the state facet on fractionCreation.
fromaddressThe account to transfer the fractions from.
toaddressThe account to transfer the fractions to.
iduint256The id (if any) of the fractions.
amountuint256The amount of fractions to be transfered.

transferFractions

function transferFractions(uint256 campaignId, address from, OmnichainAddress to, uint256 id, uint256 amount, address refundAddress) external payable

TransferFractions

Parameters

NameTypeDescription
campaignIduint256The id of the specific use-case. It is the one created by the state facet on fractionCreation.
fromaddressThe account to transfer the fractions from.
toOmnichainAddressThe account to transfer the fractions to.
iduint256The id (if any) of the fractions.
amountuint256The amount of fractions to be transfered.
refundAddressaddressThe address to refund the unspent gas to.

mintFractions

function mintFractions(uint256 campaignId, address to, uint256 id, uint256 amount) external

Mint fractions

Parameters

NameTypeDescription
campaignIduint256The id of the specific use-case. It is the one created by the state facet on fractionCreation.
toaddressThe account to mint the fractions to.
iduint256The id (if any) of the fractions.
amountuint256The amount of fractions to be minted.

burnFractions

function burnFractions(uint256 campaignId, address from, uint256 id, uint256 amount) external

Burn Fractions

Parameters

NameTypeDescription
campaignIduint256The id of the specific use-case. It is the one created by the state facet on fractionCreation.
fromaddressThe account to burn the fractions from.
iduint256
amountuint256The amount of fractions to be burnt.

On this page