Skip to content

Commit 8484e46

Browse files
committed
refactor: replace SQL HTTP with gRPC transport in edge marketplace client
Replace raw SQL queries over HTTP (/sql endpoint) with structured gRPC calls, aligning the edge client with the dojo client's transport layer. Based on ponderingdemocritus/nft-sql branch optimizations. Changes: - client.edge.ts: rewritten to use fetchToriis/fetchCollectionTokens/ fetchTokenBalances (gRPC) + SDK entity queries instead of fetchToriisSql (HTTP POST to /sql) - getTokenContracts/getTokens for collection metadata - fetchCollectionTokens for token listing and metadata batch - fetchTokenBalances for ownership verification - ToriiQueryBuilder with KeysClause/MemberClause for Order/Book entities - Updated all tests to mock gRPC transport - Simplified edge-runtime smoke test
1 parent 407cc26 commit 8484e46

File tree

4 files changed

+503
-1002
lines changed

4 files changed

+503
-1002
lines changed

0 commit comments

Comments
 (0)