Fraction ProtocolinternalFacetspurchasePhaseFacetsdoPurchaseFacetsonePartyTransferPackets

OnePartyTransferPacketsFacetStorage

OnePartyTransferPacketsFacetStorage

AlreadyInitialized

error AlreadyInitialized()

Thrown when attempting to re-initialize.

InvalidInputAddress

error InvalidInputAddress()

Thrown when attempting to setAndCheck with zero address.

STORAGE_SLOT

bytes32 STORAGE_SLOT

================================================== STORAGE =================================================

Unique identifier for the storage slot where the Layout struct is stored. Derived from the ERC7201 formula. STORAGE_SLOT: TO-DO

Layout

struct Layout {
  mapping(uint256 => address) campaignPartyToReceive;
}

layout

function layout() internal pure returns (struct OnePartyTransferPacketsFacetStorage.Layout l)

Retrieves a reference to the Layout struct stored at a specified storage slot

setAndCheckDoPurchase

function setAndCheckDoPurchase(struct OnePartyTransferPacketsFacetStorage.Layout l, bytes postFractionsAmountData) internal

Sets the address to receive the packets. param partyToReceive The address of the party to receive the packets.

doPurchase

function doPurchase(struct OnePartyTransferPacketsFacetStorage.Layout l, uint256 campaignId, address account, uint256 amountOfFractions, uint256 pricePerFraction) internal

On this page