Skip to content

SampleWarperWithRentalHookBasedMemory

SampleWarperWithRentalHookBasedMemory

_rentalAgreements

mapping(uint256 => struct Rentings.Agreement) _rentalAgreements

_renterWarpedTokenIdToItsLastRentalAgreement

mapping(address => mapping(uint256 => uint256)) _renterWarpedTokenIdToItsLastRentalAgreement

_rentalEarnings

mapping(uint256 => struct Accounts.RentalEarnings) _rentalEarnings

_successState

bool _successState

constructor

constructor(address original, address metahub) public

setSuccessState

function setSuccessState(bool successState_) external

__onRent

function __onRent(uint256 rentalId_, struct Rentings.Agreement rentalAgreement_, struct Accounts.RentalEarnings rentalEarnings_) external returns (bool success, string errorMessage)

getRentalAgreement

function getRentalAgreement(uint256 rentalId) external view returns (struct Rentings.Agreement)

getRentalEarnings

function getRentalEarnings(uint256 rentalId) external view returns (struct Accounts.RentalEarnings)

getRenterWarpedTokenIdLastRentalAgreement

function getRenterWarpedTokenIdLastRentalAgreement(address renter, uint256 tokenId) external view returns (uint256 rentalId)

supportsInterface

function supportsInterface(bytes4 interfaceId) public view virtual returns (bool)

_Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created.

This function call must use less than 30 000 gas._