Skip to main content

PCOLicenseClaimerFacet

Summary

The PCOLicenseClaimerFacet is the action facet that implements the claiming of new Geo Web Land parcels. This includes both the Fair Launch and ongoing claim types.

Claiming a parcel requires setting a For Sale Price, opening the required Network Fee stream, collecting a stream buffer, defining the shape, and paying a one-time claim payment (during the Fair Launch period).

Code

PCOLicenseClaimerFacetV2.sol

LibPCOLicenseClaimer.sol

Contract Functions

PCOLicenseClaimerFacetV2

_buildAndMint

function _buildAndMint(address user, struct LibGeoWebParcelV2.LandParcel parcel) internal

Build a parcel and mint a license

Parameters

NameTypeDescription
useraddressAddress of license owner to be
parcelstruct LibGeoWebParcelV2.LandParcelNew parcel

LibPCOLicenseClaimer

STORAGE_POSITION

bytes32 STORAGE_POSITION

DiamondStorage

struct DiamondStorage {
uint256 auctionStart;
uint256 auctionEnd;
uint256 startingBid;
uint256 endingBid;
address beacon;
mapping(uint256 => address) beaconProxies;
mapping(address => uint256) userSalts;
}

diamondStorage

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

_requiredBid

function _requiredBid() internal view returns (uint256)

the current dutch auction price of a parcel.