Skip to content
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

Provide handy API fetch_contracts to access on-chain contracts - Subtask #32 #71

Closed
9 tasks
MaciejBaj opened this issue Jul 29, 2021 · 0 comments · Fixed by #72
Closed
9 tasks

Provide handy API fetch_contracts to access on-chain contracts - Subtask #32 #71

MaciejBaj opened this issue Jul 29, 2021 · 0 comments · Fixed by #72
Assignees
Labels
contracts 📝 Related to on-chain smart contracts

Comments

@MaciejBaj
Copy link
Collaborator

Description

Implement the search for contracts.

As part of the previous work ok #32 there has already been implemented inserting and getting contracts registry entries in the storage already. This task is about fetching them in a handy way using with query parameters.

Additionally, add smart contract metadata and make it browsable.

  • Bonus - consider Runtime API implementing text search on code_txt

Acceptance Criteria

  • Implement runtime API for on-chain contracts.
  • Adds metadata to contracts entry (based on ETH)
  • Implement fetch_contracts API entry and provide useful handlers to query data
    • by the author (has an address) → like an address
    • by id
    • by contract info - refcount (vvm tracked) - how many different contracts use it
    • by additional metadata ( tags + name + ... + standards )
  • Cover with unit tests using Runtime RPC
  • Bonus - fuzzy search by text on code - consider bringing back the regex library since Runtime API can use std lib
@MaciejBaj MaciejBaj added the contracts 📝 Related to on-chain smart contracts label Jul 29, 2021
@MaciejBaj MaciejBaj added this to the Circuit Prototype 1. milestone Jul 29, 2021
@MaciejBaj MaciejBaj added this to To do in Circuit Prototype 1. Weeks 29-30 via automation Jul 29, 2021
@MaciejBaj MaciejBaj added this to To do in Circuit Prototype 1. Weeks 31-32 via automation Aug 9, 2021
MaciejBaj added a commit that referenced this issue Aug 26, 2021
Provide handy API fetch_contracts to access on-chain contracts - Closes #71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contracts 📝 Related to on-chain smart contracts
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants