<aside> 🎉 Winning project in the Polkadot Paris Hackathon in the NFT category!
</aside>
<aside>
<img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7bca8635-e0e2-4b28-9664-5a9fe15c53a9/Polkadot_Token_PolkadotToken_Pink.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7bca8635-e0e2-4b28-9664-5a9fe15c53a9/Polkadot_Token_PolkadotToken_Pink.png" width="40px" /> The development of pallet-rent
was driven by the desire to participate in a hackathon event hosted by Polkadot, where participants were encouraged to come up with new and innovative solutions.
</aside>
A simple and secure module for making non-fungible assets rentable.
https://github.com/ok-Alice/pallet-rent
The Rent module module provides functionality for non-fungible asset rental management, including:
To use it in your runtime, you need to implement the assets pallet_rent::Config
.
The supported dispatchable functions are documented in the pallet_rent::Call
enum.
The Rent module in Substrate is designed to make the following possible:
<aside> ⚠️ Live demo has ended. Please run this the project locally if you would like to test it out for yourself.
</aside>
You can test this out using our live demo project which is utilizing the pallet rent to demonstrate character loadouts by equipping items that an account has rented.
Pallet Rent - Charactor Loadout Demo
You can also test out the pallet on the polkadot js app platform and connecting to the live running node.
Custom domain: wss://pallet-rent-pgvftrncea-ew.a.run.app:443
This live demo will no longer be available after the hackathon. (Around end of March)
Node
You can test out the pallet by running the pre-built docker image xcodecraft/pallet-rent
published to dockerhub using the following command.
docker run -p 9944:9944 xcodecraft/pallet-rent --dev --unsafe-ws-external
UI
You can run the local UI demo project by running the pre-build docker image xcodecraft/pallet-rent-character-loadout
published to dockerhub using the following command.
docker run -p 80:80 xcodecraft/pallet-rent-character-loadout
mint
- Mint a new non-fungible asset.burn
- Destroy a non-fungible asset (only when there is no lessee - use set_unrentable
and then burn
).set_rentable
- As a lessor, set a non-fungible asset available for rent.set_unrentable
- As a lessor, set a non-fungible asset unavailable for rent.rent
- As a lessee, rent a non-fungible asset.set_recurring
- As a lessee, set a non-fungible asset to be rented on a recurring basis.