Links

ShopFacet.sol

Documentation for ShopFacet.sol

READ FUNCTIONS

function balanceOfBatch(address[], uint256[]) external

Given an array of addresses and item ids, returns the item balance of each address
RETURNS uint256[]

WRITE FUNCTIONS

function buyPortals(address, uint256, bool) external

‌Transfers GHST from msg.sender in exchange for Portals based on the current price. Also shares revenue with the revenueShare addresses.

function purchaseItemsWithGhst(address, uint256[], uint256[]) external

‌Transfers GHSt from msg.sender in exchange for Items based on the Item price. Also shares revenue with the revenueShare addresses.

function purchaseItemsWithVouchers(address, uint256[], uint256[]) external

‌Exchanges and burns a pre-launch Voucher for its equivalent Mainnet Wearable Item.

function onERC1155BatchReceived(address, address, uint256[], uint256[], bytes) external

‌Handle the receipt of multiple ERC1155 token types.