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 ## 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)` 2. `source hackthiscontractenv/bin/activate (starts virtualenv)`
3. In dev: `python3 run.py` - In prod: `waitress-serve run:app` 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 ## Dependencies
* python3 + pip * python3 + pip

View File

@ -6,7 +6,7 @@
<div class="container ryl-padding-top-20"> <div class="container ryl-padding-top-20">
<p class="ryl-margin-bottom-30"> <p class="ryl-margin-bottom-30">
<span style="font-size: 32px;"><b>{% if exists %}Welcome back{%else%}Welcome{%endif%}, <a <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> class="underline">{{address}}!</a></b></span>
<button class="copy btn" title="Copy" data-clipboard-text="{{address}}"><i class="icon-clipboard"></i> <button class="copy btn" title="Copy" data-clipboard-text="{{address}}"><i class="icon-clipboard"></i>
</button> </button>
@ -14,8 +14,8 @@
<tiny><br>[Logout]</tiny> <tiny><br>[Logout]</tiny>
</a></p> </a></p>
<p class="ryl-margin-bottom-30"> <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 <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://www.rinkeby.io" class="underline">the faucet</a>)</p><br> 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> <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 %} {% for challenge in challenge_ids %}
<div style="width: auto; display: block;"> <div style="width: auto; display: block;">
@ -64,7 +64,7 @@
</p> </p>
{% if challenges[challenge]['deployed'] %} {% if challenges[challenge]['deployed'] %}
<p> Deployed at address <b><a <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> challenges[challenge]['status'][2] }}</a></b>
<button class="copy btn" title="Copy" data-clipboard-text="{{ <button class="copy btn" title="Copy" data-clipboard-text="{{
challenges[challenge]['status'][2] }}"><i class="icon-clipboard"></i></button> challenges[challenge]['status'][2] }}"><i class="icon-clipboard"></i></button>

View File

@ -5,8 +5,8 @@
<div class="ryl-cell-middle text-center"> <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 <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> H4CKING SKILLZZ</b>
<p class="ryl-fs-4 ryl-fw-medium">Enter your <a href="https://www.rinkeby.io/" <p class="ryl-fs-4 ryl-fw-medium">Enter your <a href="https://github.com/eth-clients/holesky"
style="text-decoration:underline;">Rinkeby address</a> to style="text-decoration:underline;">Holesky address</a> to
get started: get started:
<form id="form" onsubmit="onSubmit()" method="get"><input type="text" id="address" size=60 <form id="form" onsubmit="onSubmit()" method="get"><input type="text" id="address" size=60
style="margin-top:-20px;"/> style="margin-top:-20px;"/>
@ -29,16 +29,16 @@
<p class="ryl-margin-bottom-30"> <p class="ryl-margin-bottom-30">
<p><b>Hack This Contract</b> is an experimental new site to allow Solidity developers, auditors, and <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). 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 exploit their vulnerabilities with their own contracts or techniques. We also provide a <a
class="underline" href="/ranking">leaderboard</a> for class="underline" href="/ranking">leaderboard</a> for
developers to rank themselves across the broader security community.</p> 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 style="text-decoration:underline;">through the
tutorial provided on their official website.</a></p> 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 <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" 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> <br><br>
<p><i>Hack This Contract was developed with <span style="color:red;"> &hearts;&hearts;&hearts;</span> at <a <p><i>Hack This Contract was developed with <span style="color:red;"> &hearts;&hearts;&hearts;</span> at <a
class="underline" class="underline"

View File

@ -52,7 +52,7 @@
<tbody> <tbody>
{% for user in users %} {% for user in users %}
<tr> <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> user[0] }}</a></td>
<td>{{ user[1] }}</td> <td>{{ user[1] }}</td>
</tr> </tr>

View File

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