Commit cc8ccb4
committed
feat(sdk): migrate indexer GraphQL to maci-graphql and add multi-endpoint defaults
- Migrate default apiEndpoint to maci-graphql.dorafactory.org (mainnet) and maci-testnet-graphql.dorafactory.org (testnet)
- Replace NetworkConfig.rpcEndpoint/restEndpoint with rpcEndpoints[]/restEndpoints[] arrays; mainnet defaults to primary + archive endpoints
- Update RoundType: operator(string) → operatorAddress, identity → operator{identity}
- Update OperatorDelayType: remove nodeId, roundAddress → contractAddress
- Update DeactivateMessage: maciContractAddress → contractAddress, maciOperator → operatorAddress
- Update all GraphQL queries in round.ts / operator.ts / event.ts to match new schema
- Add test framework: unit tests (http/retry), integration tests (all 22 query methods, fully automated)
- Add sdk-tests job to CI workflow1 parent 075106e commit cc8ccb4
26 files changed
Lines changed: 2767 additions & 79 deletions
File tree
- .github/workflows
- packages/sdk
- scripts
- src
- libs
- query
- types
- test
- integration
- migration
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
60 | 102 | | |
61 | 103 | | |
62 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | | - | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
0 commit comments