Update testnet from Rinkeby to Holesky

This commit is contained in:
fiveminutes 2024-04-17 18:40:14 -04:00
parent c4e85a72d2
commit 9f54e626cb
5 changed files with 13 additions and 13 deletions

View File

@ -6,10 +6,10 @@ This is the code that runs the hackthiscontract.io website.
## Running it
1. `geth --rinkeby (starts ethereum node on the rinkeby test network)`
1. `geth --holesky (starts ethereum node on the Holesky test network)`
2. `source hackthiscontractenv/bin/activate (starts virtualenv)`
3. In dev: `python3 run.py` - In prod: `waitress-serve run:app`
4. `geth --rinkeby --rpc --rpccorsdomain "https://remix.ethereum.org"` (start JS console and enable remix debugging)
4. `geth --holesky --rpc --rpccorsdomain "https://remix.ethereum.org"` (start JS console and enable remix debugging)
## Dependencies
* python3 + pip

View File

@ -6,7 +6,7 @@
<div class="container ryl-padding-top-20">
<p class="ryl-margin-bottom-30">
<span style="font-size: 32px;"><b>{% if exists %}Welcome back{%else%}Welcome{%endif%}, <a
href="https://rinkeby.etherscan.io/address/{{address}}"
href="https://holesky.etherscan.io/address/{{address}}"
class="underline">{{address}}!</a></b></span>
<button class="copy btn" title="Copy" data-clipboard-text="{{address}}"><i class="icon-clipboard"></i>
</button>
@ -14,8 +14,8 @@
<tiny><br>[Logout]</tiny>
</a></p>
<p class="ryl-margin-bottom-30">
<p><b>To get started, select a challenge below</b><br> (you may require Rinkeby Ether to complete some
challenges, which can be obtained from <a href="https://www.rinkeby.io" class="underline">the faucet</a>)</p><br>
<p><b>To get started, select a challenge below</b><br> (you may require Holesky Ether to complete some
challenges, which can be obtained from <a href="https://holesky-faucet.pk910.de/" class="underline">the faucet</a>)</p><br>
<p>Check out the <a href="/ranking">leaderboard</a> to see where you match up against your peers.</p><br><br><br>
{% for challenge in challenge_ids %}
<div style="width: auto; display: block;">
@ -64,7 +64,7 @@
</p>
{% if challenges[challenge]['deployed'] %}
<p> Deployed at address <b><a
href="https://rinkeby.etherscan.io/address/{{challenges[challenge]['status'][2]}}" class="underline">{{
href="https://holesky.etherscan.io/address/{{challenges[challenge]['status'][2]}}" class="underline">{{
challenges[challenge]['status'][2] }}</a></b>
<button class="copy btn" title="Copy" data-clipboard-text="{{
challenges[challenge]['status'][2] }}"><i class="icon-clipboard"></i></button>

View File

@ -5,8 +5,8 @@
<div class="ryl-cell-middle text-center">
<div style="background-color:rgba(0, 0, 0, 0.7); padding: 30px 30px 8px 30px;"><b class="ryl-fs-1">TEST YOUR
H4CKING SKILLZZ</b>
<p class="ryl-fs-4 ryl-fw-medium">Enter your <a href="https://www.rinkeby.io/"
style="text-decoration:underline;">Rinkeby address</a> to
<p class="ryl-fs-4 ryl-fw-medium">Enter your <a href="https://github.com/eth-clients/holesky"
style="text-decoration:underline;">Holesky address</a> to
get started:
<form id="form" onsubmit="onSubmit()" method="get"><input type="text" id="address" size=60
style="margin-top:-20px;"/>
@ -29,16 +29,16 @@
<p class="ryl-margin-bottom-30">
<p><b>Hack This Contract</b> is an experimental new site to allow Solidity developers, auditors, and
designers to better understand how to write secure contracts (and exploit insecure contracts).
We provide a series of example, vulnerable contracts on the Rinkeby testnet, and encourage developers to
We provide a series of example, vulnerable contracts on the Holesky testnet, and encourage developers to
exploit their vulnerabilities with their own contracts or techniques. We also provide a <a
class="underline" href="/ranking">leaderboard</a> for
developers to rank themselves across the broader security community.</p>
<p>Developers should familiarize themselves with Rinkeby <a href="https://www.rinkeby.io/"
<p>Developers should familiarize themselves with Holesky <a href="https://github.com/eth-clients/holesky"
style="text-decoration:underline;">through the
tutorial provided on their official website.</a></p>
<p><b>We are always soliciting more examples of contracts to add to our challenge database, and encourage
contributions to the back-end as well on <a href="https://github.com/pdaian/hackthiscontract"
class="underline">Github</a></b>.
class="underline">GitHub</a></b>.
<br><br>
<p><i>Hack This Contract was developed with <span style="color:red;"> &hearts;&hearts;&hearts;</span> at <a
class="underline"

View File

@ -52,7 +52,7 @@
<tbody>
{% for user in users %}
<tr>
<td style="font-family: monospace"><a href="http://rinkeby.etherscan.io/address/{{ user[0] }}">{{
<td style="font-family: monospace"><a href="http://holesky.etherscan.io/address/{{ user[0] }}">{{
user[0] }}</a></td>
<td>{{ user[1] }}</td>
</tr>

View File

@ -7,7 +7,7 @@
<div class="container ryl-padding-top-20">
<h4 class="ryl-margin-bottom-30">Your contract is <span style="color:green;">deployed</span> at address
<a
class="underline" href="http://rinkeby.etherscan.io/address/{{status[2]}}">{{ status[2]
class="underline" href="http://holesky.etherscan.io/address/{{status[2]}}">{{ status[2]
}}</a>!
<button class="copy btn" title="Copy" data-clipboard-text="{{status[2]}}"><i
class="icon-clipboard"></i>