#990 Treasury proposal: Statescan NFT business implementation and features polish
Statescan is an asset explorer for Kusama and Polkadot asset parachains. We have implemented the fungible asset business with the fund of treasury #96 proposal. Please check our last work report. As several classes of NFTs issued on Statemine, we propose the development to support the NFT(uniques pallet) business.
Problem statement
NFT(uniques pallet) is another important feature of Statemine besides the fungible token features. RMRK sigular has supported to view the NFT assets on Statemine. Aimed to be the full featured explorer for Statemine, Statescan proposed to provide more details for how NFT(uniques pallet) works in Statemine. For example, the lifecycle of NFT classes and instances, the corresponding extrinsic or event links to the lifecycle point; the instance ownership transfer records.
There are some legacy problems for Statescan development. We will also request fund to fix them in this proposal. The problems include:
- We still haven't the Kusama side settled info for teleports from Statemine to Kusama.
- We'd better separate destroyed assets from the active ones for better user experience.
- Some other polish like extrinsic params view, asset price tracking, improving scan speed, etc.
Milestones
#1 NFT business implmentation
Development Tasks
- NFT class scan scripts.
- Server side apis to serve the data for fronted pages.
- Fronted pages
- Class list page.
- Class detail page which show basic metadata, lifecycle, instances, etc.
- Instance detail page which show metadata, lifecycle, transfer records, etc.
- Show the owned NFTs on the corresponding account detail page.
Estimated time frames and cost
+----------------------------------+----------------+-------+-------+
| Feature | estimated time | Labor | Cost |
+----------------------------------+----------------+-------+-------+
| Scan scripts | 2 weeks | 1 | $4000 |
+----------------------------------+----------------+-------+-------+
| Server side apis | 1 week | 1 | $2000 |
+----------------------------------+----------------+-------+-------+
| Product design | 1 week | 1 | $3000 |
+----------------------------------+----------------+-------+-------+
| Unit test cases | 3 days | 1 | $2000 |
+----------------------------------+----------------+-------+-------+
| Class list & detail page | 1 week | 2 | $3000 |
+----------------------------------+----------------+-------+-------+
| Instance list & detail page | 1 week | 2 | $3000 |
+----------------------------------+----------------+-------+-------+
| NFT asset on account detail page | 2 days | 1 | $1000 |
+----------------------------------+----------------+-------+-------+
| Product test | 3 days | 1 | $1000 |
+----------------------------------+----------------+-------+-------+
There are estimated, and some work will be done parallelly.
#2 Other developments
Development Tasks
- Teleports: we have implemented the teleport business from Kusama to Statemine, but for Statemine -> Kusama, we haven’t scan the corresponding settled block on Kusama side, aiming to implement it with this proposal.
- Separate destroyed assets page: We will create a separate asset page for destroyed fungible and non-fungible assets.
- Product polish
- Improve scan script: Separate scan businesses, so we can fast recovery for some kinds of business when failure;Some refactor to improve performance
- Improve call params view
- Add code to support asset price tracking and asset fiat value view
- Increase the test coverage
Estimated time frames and cost
+-----------------------+----------------+-------+-------+
| Feature | estimated time | Labor | Cost |
+-----------------------+----------------+-------+-------+
| Product design | 1 day | 1 | $0 |
+-----------------------+----------------+-------+-------+
| Teleports | 3 days | 1 | $1200 |
+-----------------------+----------------+-------+-------+
| Destroyed assets page | 2 days | 1 | $800 |
+-----------------------+----------------+-------+-------+
| Product polish | 1 week | 1 | $3000 |
+-----------------------+----------------+-------+-------+
Delivery and Payment conditions
We will deliver these 2 milestones together(about 1 month in total) and request 1 proposal spent. The total cost is $24,000 and the total allocation will be calculated based on the 30day average tool by Subscan at the day of submission.
OpenSquare team is dedicated to facilitate the collaboration between projects and developers.