paritytech / paritytech/contract-dependency-manager

Host API Support

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
4
Forks
3
Avg merge
4d 13h
Merged PRs (30d)
3

Description

CDM should work from inside of the host API.

Currently CDM talks directly to websockets with PAPI. We should update createCdm to take in options such as papi or host api— rough example:

const cdm = createCdm({
    backend: hostAPI
})

which should route all contract queryeis/txs through the Host API

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the createCdm entry point and trace how contract queries and transactions currently reach PAPI over websockets. Compare the requested backend: hostAPI option with the existing path; done means both query and transaction flows can route through the Host API while the current backend remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.