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

Investigate usage of Typescript in indexers #1416

Closed
2 tasks
ra0x3 opened this issue Oct 16, 2023 · 0 comments
Closed
2 tasks

Investigate usage of Typescript in indexers #1416

ra0x3 opened this issue Oct 16, 2023 · 0 comments
Labels
research This issue only requires researching an idea

Comments

@ra0x3
Copy link
Contributor

ra0x3 commented Oct 16, 2023

  • As of today indexers are written in Rust
  • Rust is cool & powerful but presents a high(er) barrier to entry for smart contract engineers
    • Smart contract engineers are the target audience here
  • We should set aside some dedicated time to determining whether or not we can let users write indexers in Typescript
  • This issue's completion is based on either a:
    • Yes it could be feasible to write indexers in Typescript with relatively minimal changes to the project
    • No, it is not feasible to write indexers in Typescript with relatively minimal changes to the project
  • We should also update this issue with an explanation on whichever conclusion is reached ☝🏼

Additional notes

  • Current indexers compile to a wasm32 target
  • Via Fuel's typescript library we can generate JSON ABI the same as we do for rust projects
  • The main difference is that we'd need to us something in Typescript to replace our GraphQL schema codegen
  • There is also discussion to write indexers in Sway -- which is where the "with relatively minimal changes to the project" in the above outcomes ☝🏼 come from
@ra0x3 ra0x3 added the research This issue only requires researching an idea label Oct 16, 2023
@ra0x3 ra0x3 closed this as completed Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research This issue only requires researching an idea
Projects
None yet
Development

No branches or pull requests

1 participant