Skip to content

Refactor and improve deweb code #291

Open
0 of 4 issues completed
Open
0 of 4 issues completed
@peterjah

Description

@peterjah

A lot of code is duplicate among deweb CLI and deweb frontens (home and uploader)

This lead to unmaintainable code and block further improvements.

what to do:

  • add e2e test in the CLI to test differents usecase: website add/update/delete, with metadatas, file metadata etc..
    this will allow us to improve the code with confidence. If the same code is used in cli and frontend, its a win

  • Put contracts specific code in massa web3 and reuse the the code in cli and frontends

    • indexer contract
      • retrieve stored websites, add a website
    • website contracts
      • get website data, metadatas
  • create a generic operation batch sender that will be used for website chunk upload

    • this is a important piece of code, we need a clean and reliable stuff that we can optimize
    • It should use the sendOperationS (with a S) endpoint of the node.
    • Investigate how it could work with wallet provider and the supported wallets (sub issues will probably needed here)
  • Eventually create a Deweb folder in massa web3 that will gather the Deweb specific helpers

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions