Skip to content

Commit 830276a

Browse files
2 parents f891f59 + 7f407bb commit 830276a

File tree

7 files changed

+17
-9
lines changed

7 files changed

+17
-9
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [0.14.1](https://github.com/aeternity/aescan/compare/0.14.0...0.14.1) (2024-08-21)
4+
5+
6+
### Bug Fixes
7+
8+
* edit readme ([#891](https://github.com/aeternity/aescan/issues/891)) ([f891f59](https://github.com/aeternity/aescan/commit/f891f59aef127238e96619bd26063d1b5c11300c))
9+
* stats urls ([04cc86f](https://github.com/aeternity/aescan/commit/04cc86f9a097904a89b9eeeafa53a1c8899c7fd1))
10+
311
## [0.14.0](https://github.com/aeternity/aescan/compare/0.13.0...0.14.0) (2024-05-28)
412

513

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aescan",
3-
"version": "0.14.0",
3+
"version": "0.14.1",
44
"private": true,
55
"author": "æternity",
66
"description": "æScan is a blockchain explorer, analytics platform, and decentralized smart contract navigation platform based on æternity",

src/stores/blockchainStats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const useBlockchainStatsStore = defineStore('blockchainStats', () => {
2020
const totalTokenSupply = ref(null)
2121

2222
async function fetchTotalStats() {
23-
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/totalstats?limit=1`)
23+
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/stats/total?limit=1`)
2424
const lastBlock = data.data[0]
2525
activeOraclesCount.value = lastBlock.activeOracles
2626
oraclesCount.value = lastBlock.activeOracles + lastBlock.inactiveOracles

src/stores/charts.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const useChartsStore = defineStore('charts', () => {
2020

2121
const typeSlug = txType ? '&tx_type=' + txType : ''
2222

23-
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/statistics/transactions${intervalSlug + typeSlug}`)
23+
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/stats/transactions${intervalSlug + typeSlug}`)
2424

2525
// remove last interval from the response not to show current interval that is being built
2626
transactionsStatistics.value = customInterval ? data.data.reverse() : data.data.slice(1).reverse()
@@ -33,7 +33,7 @@ export const useChartsStore = defineStore('charts', () => {
3333
? `?min_start_date=${customInterval.minStart}&max_start_date=${customInterval.maxStart}&limit=1000`
3434
: `?interval_by=${interval}&limit=${parseInt(limit) + 1}`
3535

36-
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/statistics/blocks${intervalSlug}`)
36+
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/stats/blocks${intervalSlug}`)
3737

3838
// remove last interval from the response not to show current interval that is being built
3939
keyblocksStatistics.value = customInterval ? data.data.reverse() : data.data.slice(1).reverse()
@@ -46,7 +46,7 @@ export const useChartsStore = defineStore('charts', () => {
4646
? `&min_start_date=${customInterval.minStart}&max_start_date=${customInterval.maxStart}&limit=1000`
4747
: `&interval_by=${interval}&limit=${parseInt(limit) + 1}`
4848

49-
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/statistics/transactions?tx_type=contract_call${intervalSlug}`)
49+
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/stats/transactions?tx_type=contract_call${intervalSlug}`)
5050

5151
// remove last interval from the response not to show current interval that is being built
5252
contractsStatistics.value = customInterval ? data.data.reverse() : data.data.slice(1).reverse()
@@ -59,7 +59,7 @@ export const useChartsStore = defineStore('charts', () => {
5959
? `?min_start_date=${customInterval.minStart}&max_start_date=${customInterval.maxStart}&limit=100`
6060
: `?interval_by=${interval}&limit=${limit}`
6161

62-
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/statistics/names${intervalSlug}`)
62+
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/stats/names${intervalSlug}`)
6363

6464
// remove last interval from the response not to show current interval that is being built
6565
namesStatistics.value = customInterval ? data.data.reverse() : data.data.slice(1).reverse()

src/stores/keyblockDetails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const useKeyblockDetailsStore = defineStore('keyblockDetails', () => {
4444

4545
async function fetchKeyblockDeltaStats(keyblockHeight) {
4646
keyblockDeltaStats.value = null
47-
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/deltastats?scope=gen:${keyblockHeight}`)
47+
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/stats/delta?scope=gen:${keyblockHeight}`)
4848
keyblockDeltaStats.value = data.data[0]
4949
}
5050

src/stores/oracles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const useOraclesStore = defineStore('oracles', () => {
4242

4343
async function fetchOraclesCount() {
4444
rawOraclesCount.value = null
45-
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/totalstats?limit=1`)
45+
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/stats/total?limit=1`)
4646
rawOraclesCount.value = data.data[0]
4747
}
4848

src/stores/recentBlocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const useRecentBlocksStore = defineStore('recentBlocks', () => {
120120
}
121121

122122
async function fetchDeltaStats() {
123-
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/deltastats?limit=20`)
123+
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/stats/delta?limit=20`)
124124
deltaStats.value = data.data
125125
}
126126

0 commit comments

Comments
 (0)