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

Seer blockchain generate command #79

Open
Andrei-Dolgolev opened this issue Oct 1, 2024 · 0 comments
Open

Seer blockchain generate command #79

Andrei-Dolgolev opened this issue Oct 1, 2024 · 0 comments

Comments

@Andrei-Dolgolev
Copy link
Contributor

Andrei-Dolgolev commented Oct 1, 2024

As i see it user must be able just provide us an url of RPC endpint and from it we sopouse create crawler from it.

So add new chain just by 1 url provided must go by next steps:

Add chain cli

  • --name short name with underscores(unique across chains address uniqueness issue to sergei)
  • --RPC endpoint for request chain

Flow:

  1. Request endpoints:

    • Get latest block
    • Get transactions
    • Get events
    • Get chainId
  2. Decide if it side chain(mark in chains database name convention user_id)

  3. Autogenerate cli create client/models/deploy scripts/migrations/PRs?

  4. Run backwards and forward crawl

  1. Modular flow of create new chain
\blockchain_name
    defeniton.proto
    client.go
    index_models.py
    labels_models.py

(@Andrei-Dolgolev see it as merge of dbv3 repo into seer )

  1. Plug in flow
    We have only some list of clients(EVM) for l1/l2/l3 and have chains tables
table
1.  rpcs array<strings>
2.  chain_name
3.  index db URI
4.  labes db URI
5.  user_id uuid

1 crawler instance per chain and as well move out of or growing envs

2 chains per user

Seer runtime chains/crawler configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant