Marketplace
Source: MarketplaceFacet.sol
Functions
List
Provides assets of the given metaverse registry for rental. Transfers and locks the provided metaverse asset to the contract and mints an asset, representing the locked asset.
Params
Name | Type | Description |
---|---|---|
|
| The id of the metaverse |
|
| The registry of the metaverse |
|
| The id from the metaverse registry |
|
| The minimum number of time (in seconds) the asset can be rented |
|
| The maximum number of time (in seconds) the asset can be rented |
|
| The timestmap delta after which the protocol will not allow the asset to be rented at any given moment |
|
| The token which will be accepted as a form of payment. Provide |
|
| The price for rental per second |
Update Conditions
Updates the lending conditions for a given asset. Pays out any unclaimed rent to the consumer if set, otherwise it is paid to the owner of the LandWorks NFT. Updated conditions apply the next time the asset is rented. Does not affect previous and queued rents. If any of the properties should not be modified, the current values for them must be provided.
Params
Name | Type | Description |
---|---|---|
|
| The target asset |
|
| The minimum number in seconds the asset can be rented |
|
| The maximum number in seconds the asset can be rented |
|
| The timestamp delta after which the protocol will not allow the asset to be rented at any given moment |
|
| The toen which will be accepted as a form of payment. Provide |
|
| The price for rental per second |
Delist
Delists the asset from the marketplace. Pays out the current unclaimed rent fees to the consumer if set, otherwise it is paid to the owner of the LandWorks NFT. If there are no active rents -> Burns the asset and transfers the original metaverse asset represented by the LandWorks NFT to the asset owner.
Params
Name | Type | Description |
---|---|---|
|
| The target asset |
Withdraw
Withdraws the already delisted from the marketplace asset. Burns the asset and transfers the original metaverse asset represented by the LandWorks NFT to the owner. Pays out any unclaimed rent to the consumer if set, otherwise it is paid to the owner of the LandWorks NFT.
Params
Name | Type | Description |
---|---|---|
|
| The target asset |
Rent
Rents an asset for a given period. Charges msg.sender
for the rent upfront. Rent starts from the last rented timestamp or from the current timestamp of the transaction if the property is available right now.
Params
Name | Type | Description |
---|---|---|
|
| The target asset |
|
| The target rental period in seconds |
Last updated