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

Inject supported chains list #1525

Open
Tracked by #1202
MantisClone opened this issue Dec 10, 2024 · 1 comment
Open
Tracked by #1202

Inject supported chains list #1525

MantisClone opened this issue Dec 10, 2024 · 1 comment

Comments

@MantisClone
Copy link
Member

MantisClone commented Dec 10, 2024

Problem

The Request Network SDK has a supported chains allowlist list baked into it. This allowlist is used by the request-cleint.js, payment-processor, and payment-detection packages.

Creating / paying / detecting balances on other chains is not supported.

Proposed Solution

Make the chains list injectable into the payment detectors and the RequestNetwork object.

const requestNetwork = new RequestNetwork({
  decryptionProvider,
  signatureProvider,
  currencyManager,
  chains,
  // if no compatible balance detector is found, the balance will be null. 
  balanceDetectors: [
    new EvmTheGraphBalanceDetector(chains, currencyManager),
    new NearTheGraphBalanceDetector(chains),
    new BtcBalanceDetector(),
    new SolanaBalanceDetector(),
    new SuperfluidBalanceDetector(chains),
    // ...
  ]
})
@MantisClone
Copy link
Member Author

Related to #1208

@MantisClone MantisClone moved this from 🆕 New to 🎫 Backlog in Request Network Tech Backlog Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🎫 Backlog
Development

No branches or pull requests

1 participant