Commit 2becc9a
Use gRPC instead of JSON-RPC for Write API in sui-indexer-alt-jsonrpc
Replace the JSON-RPC HTTP client delegation with gRPC calls for
executeTransactionBlock and dryRunTransactionBlock. The Write module now
uses FullnodeClient from sui-indexer-alt-reader, which communicates with
the fullnode via TransactionExecutionService gRPC.
- Add configurable read_mask parameter to FullnodeClient's
execute_transaction and simulate_transaction methods
- Add --fullnode-grpc-url flag (separate from existing --fullnode-rpc-url
which remains for DelegationGovernance JSON-RPC delegation)
- Implement proto-to-JSON-RPC response conversion for effects, events,
balance changes, and object changes
- Build dynamic FieldMask based on SuiTransactionBlockResponseOptions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4722b2a commit 2becc9a
File tree
8 files changed
+554
-33
lines changed- crates
- sui-indexer-alt-e2e-tests/tests
- sui-indexer-alt-graphql/src/api
- sui-indexer-alt-jsonrpc
- src
- api
- sui-indexer-alt-reader/src
8 files changed
+554
-33
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| 770 | + | |
770 | 771 | | |
771 | 772 | | |
772 | 773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
0 commit comments