-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create SC for Decentralized lists #139
Comments
@damip i believe there is a need to add a feature here that will allow users to remove an indexed item. Use case would be: I (the users) have an indexed website, after deleting this indexed website I do not want it indexed in this list any more (we retrieve the indexed website in the uploader front end for example) Wdyt ? does the current implementation satisfy this need ? |
In this spec, only the owner of that list can add or remove (see spec) so this question does not apply |
This proposal is about a generic "list" contract that allows its owner to keep a curated list of arbitrary stuff. It could be useful for example to have curated lists of deweb providers, proposed website blacklists and so on... For actual decentralized website listing/indexing, instead we are using: https://github.com/massalabs/DeWeb/tree/main/deweb-index which automatically indexes sites based on a call to the "update" function. If we allow users to completely delete a website (delete all the datastore entries including the DEWEB_VERSION of the website), a simple call to the update() function of that indexer will remove the website from the index. Note that the deweb index is meant to evolve into a fully features website listing and search engine according to https://forum.massa.community/t/decentralized-search-engine-for-the-decentralized-web/ |
A simple decentralized list tool
A simple decentralized tool to make lists.
Smart contract
Datastore layout
In the datastore we simply have one entry per entry of the list
list_name
:Smart contract interface:
Web interface
A simple two-step interface:
https://zzzzzzzzz.zzzzz/yyy/?list=xxxxx
and displayed in the frontend. The user is asked to enter a key["dlist"][len(list_name)][list_name][key]
(do not use the item_exists function, directly read the datastore):value
in a multiline textarea and allow the user to update itRemove from list
button to remove the itemvalue
in a multiline textarea. Max len = 10 megabytes when encoded to utf8The text was updated successfully, but these errors were encountered: