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

feat: Implementing the GraphQL API layer #4

Merged
merged 14 commits into from
Jul 18, 2024
Merged

feat: Implementing the GraphQL API layer #4

merged 14 commits into from
Jul 18, 2024

Conversation

ahonn
Copy link
Collaborator

@ahonn ahonn commented Jul 16, 2024

  • GraphQL API modules basic struct
  • implement latestBlocks query and block model/resolver
  • basic Transaction/Cell models
  • add block data loader to optimize performance
  • integrate CKB RPC websocket
  • add RGB++ transaction graphql schema & resolver
  • integrate Mempool.space API and electrs
  • add Bitcoin transaction graphql schema & resolver
  • auto generate graphql schema file
  • dockerfile and compose file

NOTE:

  • For the convenience of development, database modules are not imported for the time being
  • The model structure of the GraphQL layer follows the previous database table structure as much as possible

@Flouse Flouse requested a review from ShookLyngs July 16, 2024 08:23
Copy link

vercel bot commented Jul 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
utxo-stack-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2024 10:30am

@ahonn ahonn force-pushed the feat/ckb-graphql branch from a3180d5 to d08f950 Compare July 17, 2024 06:04
@ahonn ahonn marked this pull request as ready for review July 18, 2024 10:42
@Flouse
Copy link
Contributor

Flouse commented Jul 18, 2024

docker-compose up or run pnpm start in ./backend

CkbRpcWebsocketService error

[Nest] 7828  - 07/18/2024, 2:30:48 PM     LOG [InstanceLoader] GraphQLModule dependencies initialized +1ms
[Nest] 7828  - 07/18/2024, 2:30:48 PM     LOG [GraphQLModule] Mapped {/graphql, POST} route +117ms
[Nest] 7828  - 07/18/2024, 2:30:48 PM     LOG [NestApplication] Nest application successfully started +2ms
[Nest] 7828  - 07/18/2024, 2:30:48 PM   ERROR [CkbRpcWebsocketService] Unexpected server response: 301
[Nest] 7828  - 07/18/2024, 2:30:48 PM   ERROR [CkbRpcWebsocketService] Unexpected server response: 301
[Nest] 7828  - 07/18/2024, 2:30:50 PM   ERROR [CkbRpcWebsocketService] Unexpected server response: 301

Update

Env CKB_RPC_WEBSOCKET_URL=wss://... fixed the above issue.

@Flouse Flouse merged commit 0353a3b into main Jul 18, 2024
3 checks passed
@Flouse Flouse deleted the feat/ckb-graphql branch July 18, 2024 16:15
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

Successfully merging this pull request may close these issues.

2 participants