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

Default RPC & Indexer configuration for Lumos #657

Open
homura opened this issue Mar 27, 2024 · 0 comments
Open

Default RPC & Indexer configuration for Lumos #657

homura opened this issue Mar 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@homura
Copy link
Collaborator

homura commented Mar 27, 2024

We received feedback that Lumos requires duplicate configuration for each project, such as the RPC and indexer URLs. We should consider setting these URLs as default configurations.

Describe the solution you'd like

// I am not sure if the name Provider is suitable
// Because the name Provider may cause confusion with the Provider in the Ethereum ecosystem.
interface MaybeAProvider {
  readonly indexer: Indexer;
  readonly rpc: RPC;
  readonly scripts: ScriptConfigs;

  scriptToAddress(): Address;
  addressToScript(): Script;
}

declare function createMainnetProvider(): MaybeAProvider;
decaulre function createTestnetProvider(): MaybeAProvider;
@homura homura added the enhancement New feature or request label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant