Commit d991fbb
committed
refactor: rewrite client with dynamic metadata, remove iteration-based queries
- Rewrite client to use subxt dynamic queries (no compile-time codegen)
- Remove functions requiring storage iteration (no on-chain index):
- get_farm_ids_by_twin, get_farms_by_twin
- get_nodes_by_farm, get_nodes_by_twin
- is_farmer, get_farmer_info
- Fix get_node_ids_by_farm to use correct storage name (NodesByFarmID)
- Update dependencies to latest versions
- Add example mainnet_test.rs
- Update readme with current API documentation1 parent c29e0b0 commit d991fbb
10 files changed
Lines changed: 2736 additions & 3202 deletions
File tree
- clients
- tfchain-client-go
- tfchain-client-rs
- examples
- src
- runtimes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments