generated from octanolabs/static
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #331 from etclabscore/upcoming-fork-status-page
Upcoming fork status page
- Loading branch information
Showing
33 changed files
with
7,444 additions
and
5,312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [14] | ||
node: [18] | ||
|
||
steps: | ||
- name: Checkout 🛎 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
**/.git | ||
**/.github | ||
**/.svn | ||
**/.hg | ||
**/node_modules | ||
**/.nuxt | ||
|
||
**/assets | ||
**/content | ||
**/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
<table-chart-card | ||
:title="$t('upcomingForkCard.title')" | ||
:table="nodes.clientsForkAdoption.table" | ||
:labels="nodes.clientsForkAdoption.chart.labels" | ||
:series="nodes.clientsForkAdoption.chart.series" | ||
:total="totalNodes" | ||
:no-label-text="$t('nodes.none')" | ||
:colors="['#00E396', '#FD6A6A']" | ||
icon="mdi-directions-fork" | ||
class="mr-1 mb-1" | ||
style="margin-left: 6px" | ||
/> | ||
</template> | ||
|
||
<script> | ||
import TableChartCard from '~/components/TableChartCard.vue' | ||
export default { | ||
name: 'ForkClientUpgraded', | ||
components: { | ||
TableChartCard, | ||
}, | ||
props: { | ||
nodes: { | ||
type: Object, | ||
required: true, | ||
}, | ||
}, | ||
computed: { | ||
totalNodes() { | ||
return this.nodes.raw.length | ||
}, | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<template> | ||
<v-sheet class="pa-5 mx-1 mr-1 mb-1"> | ||
<h1 class="mb-3">ETC {{ nextFork.name }} Upgrade Countdown</h1> | ||
|
||
<p> | ||
The <a :href="nextFork.ecip">{{ nextFork.name }} Hardfork</a> | ||
{{ isForked ? 'occurred' : 'will occur' }} at block | ||
<strong>{{ nextFork.blockNumber }}</strong | ||
>. | ||
</p> | ||
|
||
<v-skeleton-loader | ||
v-if="latestBlockNumber === 0" | ||
type="list-item-two-line" | ||
></v-skeleton-loader> | ||
<p v-else-if="isForked"> | ||
🎉 🎉 Booyah! {{ numberOfBlocksAfterHardFork }} blocks and counting in the | ||
{{ nextFork.name }} era. 🎉 🎉 | ||
</p> | ||
<div v-else> | ||
<p> | ||
The <strong>current block number</strong> is | ||
<strong> | ||
<a | ||
:href="`https://etc.blockscout.com/block/${latestBlockNumber}?tab=txs`" | ||
>{{ latestBlockNumber }}</a | ||
> </strong | ||
>, leaving <strong>{{ numberOfBlocksTillHardFork }}</strong> blocks. | ||
</p> | ||
|
||
<p> | ||
Assuming a <strong>{{ secondsPerBlock }}</strong> second block interval, | ||
the fork is estimated to be | ||
<strong | ||
>{{ | ||
$dateFns.formatDistance(forkAt, new Date(), { addSuffix: true }) | ||
}} | ||
from now</strong | ||
>, at: | ||
</p> | ||
|
||
<ul class="mb-3"> | ||
<li> | ||
Local ({{ $dateFns.format(forkAt, 'XXXXX') }}): | ||
{{ $dateFns.format(forkAt, 'iiii, PPPp') }} | ||
</li> | ||
<li>Universal (UTC): {{ $dateFns.format(forkAtUTC, 'iiii, PPPp') }}</li> | ||
</ul> | ||
|
||
<v-divider></v-divider> | ||
|
||
<p class="mt-3"> | ||
We will soon update here with the client versions that support the | ||
{{ nextFork.name }} hardfork. | ||
</p> | ||
|
||
<!-- <p class="mt-3"> | ||
To prepare for this fork, please upgrade Ethereum Classic client | ||
programs to equal to or better than the following versions. | ||
</p> | ||
<ul> | ||
<li> | ||
<a href="https://github.com/etclabscore/core-geth/releases/tag/v1.12.17" | ||
>core-geth v1.12.17</a | ||
> | ||
</li> | ||
<li> | ||
<a href="https://github.com/hyperledger/besu/releases/tag/23.10.3" | ||
>besu v23.10.3</a | ||
> | ||
</li> | ||
</ul> | ||
<p> | ||
You can also better monitor the fork transition at the | ||
<a href="https://fork-monitor.etc-network.info/" target="_blank" | ||
>Fork Monitor</a | ||
>. | ||
</p> --> | ||
</div> | ||
</v-sheet> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'ForkCountdownCard', | ||
props: { | ||
latestBlockNumber: { | ||
type: Number, | ||
required: true, | ||
}, | ||
}, | ||
computed: { | ||
nextFork() { | ||
return this.$store.state.params.hardfork | ||
}, | ||
secondsPerBlock() { | ||
return this.nextFork.secondsPerBlock | ||
}, | ||
isForked() { | ||
return this.latestBlockNumber >= this.nextFork.blockNumber | ||
}, | ||
numberOfBlocksTillHardFork() { | ||
return this.nextFork.blockNumber - this.latestBlockNumber | ||
}, | ||
numberOfBlocksAfterHardFork() { | ||
return this.latestBlockNumber - this.nextFork.blockNumber | ||
}, | ||
forkAt() { | ||
const timeDifference = | ||
(this.nextFork.blockNumber - this.latestBlockNumber) * | ||
this.secondsPerBlock | ||
return this.$dateFns.add(new Date(), { seconds: timeDifference }) | ||
}, | ||
forkAtUTC() { | ||
return this.$dateFns.addMinutes( | ||
this.forkAt, | ||
this.forkAt.getTimezoneOffset() | ||
) | ||
}, | ||
}, | ||
} | ||
</script> |
Oops, something went wrong.