ListingWizardV1
ListingWizardV1
onlyCallerIsLister
modifier onlyCallerIsLister(struct Listings.Params params)
constructor
constructor(address metahub) public
Listing Wizard constructor
createListingWithTerms
function createListingWithTerms(struct Assets.Asset[] assets, struct Listings.Params params, struct IListingTermsRegistry.ListingTerms terms, uint32 maxLockPeriod, bool immediatePayout, uint256 universeId) external returns (uint256 listingId, uint256 listingTermsId)
Creates new listing and fill in listing terms on universe level. Emits an {ListingCreated, UniverseListingTermsRegistered} events.
Name | Type | Description |
---|---|---|
assets | struct Assets.Asset[] | Assets to be listed. |
params | struct Listings.Params | Listing params. |
terms | struct IListingTermsRegistry.ListingTerms | Listing terms on universe level. |
maxLockPeriod | uint32 | The maximum amount of time the original asset owner can wait before getting the asset back. |
immediatePayout | bool | Indicates whether the rental fee must be transferred to the lister on every renting. * If FALSE, the rental fees get accumulated until withdrawn manually. |
universeId | uint256 | Universe ID. * Makes possible to run this {assets} only within this universe. |
Name | Type | Description |
---|---|---|
listingId | uint256 | New listing ID. |
listingTermsId | uint256 | New listing terms ID. |
contractKey
function contractKey() external pure returns (bytes4)
Returns implemented contract key.
Name | Type | Description |
---|---|---|
[0] | bytes4 | Contract key; |
supportsInterface
function supportsInterface(bytes4 interfaceId) public view 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._