ListingConfiguratorMock
ListingConfiguratorMock
_errorMessage
string _errorMessage
_canList
bool _canList
_isRentable
bool _isRentable
_rewardTarget
address _rewardTarget
_listingTerms
struct IListingTermsRegistry.ListingTerms[] _listingTerms
contract IMetahub _metahubContract
constructor
constructor(address metahub) public
setConfigs
function setConfigs(struct IListingTermsRegistry.ListingTerms[] listingTerms) external
setErrorMessage
function setErrorMessage(string errorMessage) external
setCanList
function setCanList(bool canList) external
setRentable
function setRentable(bool rentable) external
setRewardTarget
function setRewardTarget(address target) external
__getListingTerms
function __getListingTerms(struct Rentings.Params, struct Listings.Listing, uint256) external view returns (struct IListingTermsRegistry.ListingTerms[] listingTerms)
__canListAssets
function __canListAssets(struct Assets.Asset[], struct Listings.Params, uint32, bool) external view returns (bool canList, string errorMessage)
__isRentableListing
function __isRentableListing(struct Rentings.Params, struct Listings.Listing, uint256) external view returns (bool isRentable, string errorMessage)
supportsInterface
function supportsInterface(bytes4 interfaceId) public view returns (bool)
__getRewardTarget
function __getRewardTarget(struct Listings.Listing) external view returns (address target)
function _metahub() internal view returns (contract IMetahub)