Decentraland
function rentDecentraland(
uint256 _assetId,
uint256 _period,
address _operator
) external payable
Rents Decentraland Estate/LAND. 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 |
---|---|---|
_assetId | uint256 | The target asset |
_period | uint256 | The target rental period in seconds |
_operator | address | The target operator, which will be set as operator once the rent is active |
function updateState(uint256 _assetId, uint256 _rentId) public
Updates the corresponding Estate/LAND operator from the given rent. When the rent becomes active (the current
block.timestamp
is between the rent's start and end), this function should be executed to set the provided rent operator to the Estate/LAND scene operator. Params
Name | Type | Description |
---|---|---|
_assetId | uint256 | The target asset |
_rentId | uint256 | The target rent |
function updateOperator(
uint256 _assetId,
uint256 _rentId,
address _newOperator
) external
Updates the operator for the given rent of an asset.
Params
Name | Type | Description |
---|---|---|
_assetId | uint256 | The target asset |
_rentId | uint256 | The target rent for the asset |
_newOperator | address | The to-be-set new operator |
function operatorFor(uint256 _assetId, uint256 _rentId) external
Gets the operator of the rent for the specified
_assetId
Params
Name | Type | Description |
---|---|---|
_assetId | uint256 | The target asset |
_rentId | uint256 | The target rent for the asset |
function updateAdministrativeState(uint256 _assetId) external
Updates the corresponding Estate/LAND operator with the administrative operator.
Params
Name | Type | Description |
---|---|---|
_assetId | uint256 | The target asset |