Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit 71ba1c2

Browse files
authored
chore: documentation (#84)
1 parent 3f6a05d commit 71ba1c2

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

devnet/README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
# Devnet EVM
22

3+
## INIT
4+
5+
Make sure that the following is installed, before continueing.
6+
7+
```sh
8+
# The Girhub CLI
9+
brew install gh
10+
11+
# This tool is required to locate and configure dependencies during the build process
12+
brew install pkg-config
13+
14+
# Fast Python package and project manager
15+
curl -LsSf https://astral.sh/uv/install.sh | sh
16+
17+
uv add secp256k1
18+
```
19+
320
## Github Container Registry
421

5-
Create a `GITHUB_TOKEN` env var with token with `packages:read` permission to
22+
Create a `GITHUB_TOKEN` (Github > Profile > Settings > Developer Settings) env var with token with `packages:read` permission to
623
access the docker images. Then run:
724

825
```sh

devnet/config/default/bootnode/nginx.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ http {
4040
add_header Access-Control-Allow-Origin *;
4141
}
4242

43-
location = /mining-trigger {
43+
location = /mining-trigger {
4444
internal;
4545
proxy_pass http://bootnode-mining-trigger:11848/trigger;
4646
proxy_set_header X-Original-URI $request_uri;
4747
}
4848

49+
4950
location /chainweb/0.0/evm-development/chain/20/evm/rpc {
5051
mirror /mining-trigger;
5152
add_header Access-Control-Allow-Origin *;

tests/e2e/discontinued-node.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, test, expect, afterAll, beforeAll, it } from 'bun:test';
1+
import { describe, test, expect, afterAll, beforeAll } from 'bun:test';
22
import {
33
$devnet,
44
CONFIG,
@@ -18,7 +18,7 @@ $.verbose = CONFIG.VERBOSE;
1818
const log = createLogger({ context: 'discontinued-node.test.ts' });
1919

2020
describe(`e2e: verify ${DOCKER_COMPOSE_FILE} generation`, () => {
21-
it(`e2e: generate ${DOCKER_COMPOSE_FILE}`, async () => {
21+
test(`e2e: generate ${DOCKER_COMPOSE_FILE}`, async () => {
2222
await createDockerComposeFile();
2323
const fileExists = fs.existsSync(DOCKER_COMPOSE_FILE);
2424
expect(fileExists).toBe(true);
@@ -67,9 +67,7 @@ describe('e2e: start network, stop node, restart node', () => {
6767
if (!evm20) {
6868
throw new Error('evm-20 not found in devnet status');
6969
}
70-
const lowestHeight = devnetStatus.chains.sort(
71-
(a, b) => a.height - b.height
72-
)[0];
70+
const lowestHeight = devnetStatus.chains.sort((a, b) => a.height - b.height)[0];
7371

7472
console.log(`expecting lowest height to be evm-20: ${evm20.height}`);
7573
expect(lowestHeight).toEqual(evm20);
@@ -85,9 +83,7 @@ describe('e2e: start network, stop node, restart node', () => {
8583
);
8684
} catch (e) {
8785
console.log('cut-height not increasing');
88-
const newEvm20 = (await getDevnetStatus()).chains.find(
89-
(chain) => chain.chainId === 20
90-
)!;
86+
const newEvm20 = (await getDevnetStatus()).chains.find((chain) => chain.chainId === 20)!;
9187
if (newEvm20.height === evm20.height) {
9288
expect(
9389
newEvm20.height,

0 commit comments

Comments
 (0)