šŸŽ‰ Welcome to PartyFinance documentation!
Protocol
Contracts
libraries
LibDiamond

LibDiamond

DIAMOND_STORAGE_POSITION

bytes32 DIAMOND_STORAGE_POSITION

DiamondStorage

struct DiamondStorage {
  mapping(bytes4 => bytes32) facets;
  mapping(uint256 => bytes32) selectorSlots;
  uint16 selectorCount;
  mapping(bytes4 => bool) supportedInterfaces;
  address contractOwner;
}

diamondStorage

function diamondStorage() internal pure returns (struct LibDiamond.DiamondStorage ds)

OwnershipTransferred

event OwnershipTransferred(address previousOwner, address newOwner)

setContractOwner

function setContractOwner(address _newOwner) internal

contractOwner

function contractOwner() internal view returns (address contractOwner_)

enforceIsContractOwner

function enforceIsContractOwner() internal view

DiamondCut

event DiamondCut(struct IDiamondCut.FacetCut[] _diamondCut, address _init, bytes _calldata)

CLEAR_ADDRESS_MASK

bytes32 CLEAR_ADDRESS_MASK

CLEAR_SELECTOR_MASK

bytes32 CLEAR_SELECTOR_MASK

diamondCut

function diamondCut(struct IDiamondCut.FacetCut[] _diamondCut, address _init, bytes _calldata) internal

addReplaceRemoveFacetSelectors

function addReplaceRemoveFacetSelectors(uint256 _selectorCount, bytes32 _selectorSlot, address _newFacetAddress, enum IDiamondCut.FacetCutAction _action, bytes4[] _selectors) internal returns (uint256, bytes32)

initializeDiamondCut

function initializeDiamondCut(address _init, bytes _calldata) internal

enforceHasContractCode

function enforceHasContractCode(address _contract, string _errorMessage) internal view