Skip to content

sui_v1.13.0_1698108324_ci

@gegaowp gegaowp tagged this 23 Oct 23:47
## Description 

Implement the read path of analytical endpoints of indexer v2, the read
path.

the related write path PR is
https://github.com/MystenLabs/sui/pull/14140

## Test Plan 
- locally populate the analytical tables from the write PR

cargo run --bin sui-indexer -- --db-url
"postgres://postgres:postgres@localhost/gegao" --rpc-client-url
http://ewr-suifn-y71v1.devnet.sui.io:9000 --fullnode-sync-worker
--reset-db --use-v2

cargo run --bin sui-indexer -- --db-url
"postgres://postgres:postgres@localhost/gegao" --rpc-client-url
http://ewr-suifn-y71v1.devnet.sui.io:9000 --fullnode-sync-worker
--reset-db --use-v2

- locally run json rpc server with this PR and test cmd like


curl --location http://127.0.0.1:9000 \
--header 'Content-Type: application/json' \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "suix_getMoveCallMetrics",
  "params": []
}'

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
Assets 2
Loading