Re-lease your apes.
Time is the ultimate scarce resource. We have less of it every second. Time slicing is critical to ideas of fractional possession - allocating rights for a finite period allows resources to generate more value for more humans without requiring their growth or change.
The surging popularity of ERC721 tokens shows the opportunity for clear, simple standards for allocating property rights on the blockchain. Critical to any idea of property rights is the ability to lend or lease an asset for a limited period of time. Blockchain has a unique opportunity to permit these transactions without trust or a third party guarantor because of the public, immutable record.
However, ERC721 and related standards do not provide functionality to enable leasing of NFTs or other assets for a specific period.
That's why we devoted our hackathon period to defining a simple, supple interface for time-slicing assets and expressing who has possession as a lessee at which point in time.
Watch the video from our Web3Con Hackathon submission
Read our attached Ethereum Improvement Proposal in eip-time-limited-tokens.md
To add the interface to your dapp,
npm i time-limited-tokens
oryarn add time-limited-tokens
- In solidity,
import "time-limited-tokens/contracts/ITimeLimitedTokens.sol"
- In your dapp, you can access the abi via
import { abi } from "time-limited-tokens"
orconst { abi } = require("time-limited-tokens")
- In ethers or web3, use the abi to make your contract communication easy
See how it works
We believe in abundance. We hope that this project can form an ERC standard to make time-slicing assets easier, and that the code here will give you a head start. Please use it, make it better, and let us know!
- Ray Deck (@rhdeck)
- Akshay Rakheja (@akshay-rakheja)
- Robert Reinhart (@robertreinhart)
This project got its start at the Web3Con Hackathon put on by Developer DAO. Many thanks to them for putting this event together and giving us the chance to work on a fun, meaningful project for the web3 community!