BeneficiarySuperApp
Documentation of the BeneficiarySuperApp contract.
The
BeneficiarySuperApp
is the contract that accumulates network funds from the Geo Web's land market (claim fees, network fees, and rejection penalties).These funds will be transferred out in batches in a process controlled by the community multi-sig initially. Eventually, the programmability of streams can be utilized to fund initiatives in real-time.
The
BeneficiarySuperApp
is also utilized to keep track of the last deletion time of network fee payment streams for parcels. It uses Superfluid's Super App construction.struct CFAv1Library.InitData cfaV1
contract IPCOLicenseParamsStore paramsStore
mapping(address => uint256) lastDeletion
Timestamp of last deletion from each beacon proxy
address beneficiary
Beneficiary of funds.
function initialize(contract IPCOLicenseParamsStore paramsStore_, address beneficiary_) external
function getParamsStore() external view returns (contract IPCOLicenseParamsStore)
Params Store
function setParamsStore(contract IPCOLicenseParamsStore paramsStore_) external
Set Params Store
function getBeneficiary() external view returns (address)
Beneficiary
function setBeneficiary(address beneficiary_) external
Set Beneficiary
function getLastDeletion(address sender) external view returns (uint256)
Get last deletion for sender
function _setLastDeletion(address beaconProxy) internal
Set last deletion of beacon proxy to now
Parameters
Name | Type | Description |
---|---|---|
beaconProxy | address | Beacon proxy |
function afterAgreementTerminated(contract ISuperToken superToken, address agreementClass, bytes32, bytes agreementData, bytes, bytes ctx) external returns (bytes newCtx)
function _isSameToken(contract ISuperToken superToken) private view returns (bool)
function _isCFAv1(address agreementClass) private view returns (bool)
modifier onlyHost()
function getLastDeletion(address sender) external view returns (uint256)
Get last deletion for sender
Last modified 10mo ago