Skip to content

sui_v1.4.0_1685979201_ci

@gegaowp gegaowp tagged this 05 Jun 14:34
## Description 

Add endpoints for DAU over epochs.

## Test Plan 

```
curl --location --request POST http://127.0.0.1:3030 \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_getAllEpochAddressMetrics",
"params": [true]
}'
{"jsonrpc":"2.0","result":[{"checkpoint":36799,"epoch":1,"timestampMs":1683849325183,"cumulativeAddresses":84280,"cumulativeActiveAddresses":1218,"dailyActiveAddresses":1218},{"checkpoint":5499,"epoch":0,"timestampMs":1683817158611,"cumulativeAddresses":690,"cumulativeActiveAddresses":5,"dailyActiveAddresses":5}],"id":1}%             
curl --location --request POST http://127.0.0.1:3030 \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_getAllEpochAddressMetrics",
"params": []
}'
{"jsonrpc":"2.0","result":[{"checkpoint":5499,"epoch":0,"timestampMs":1683817158611,"cumulativeAddresses":690,"cumulativeActiveAddresses":5,"dailyActiveAddresses":5},{"checkpoint":36799,"epoch":1,"timestampMs":1683849325183,"cumulativeAddresses":84280,"cumulativeActiveAddresses":1218,"dailyActiveAddresses":1218}],"id":1}% 
```

---
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