Skip to content

Commit

Permalink
feat: local frontend testing working with customizable 2LD base domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Julink-eth committed Apr 10, 2024
1 parent b038697 commit 001dd0e
Show file tree
Hide file tree
Showing 25 changed files with 1,626 additions and 2,832 deletions.
22 changes: 22 additions & 0 deletions packages/ens-app-v3/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
SECRET_WORDS="test test test test test test test test test test test junk"
PASSWORD=TestMetaMask
NETWORK_NAME=localhost
GRAPH_URL=http://localhost:8000

DATA_FOLDER=./data

NEXT_PUBLIC_ALCHEMY_KEY=sSpYuHmhlpuU7RVXq-IIdCdz4IuKF-gM

BLOCK_HEIGHT=12066620
SUBGRAPH_ID=QmXxAE7Urtv6TPa8o8XmPwLVQNbH6r35hRKHP63udTxTNa
LOCAL_SUBGRAPH_ID=QmSUnR4AUTQ8CuGH2fK7tFTSSfYGe8BUz6EeBRNavXbE1H
EPOCH_TIME=1660180306
NETWORK=mainnet
ARCHIVE_URL=https://storage.googleapis.com/ens-manager-build-data

TRANSACTION_WAIT_TIME=5000
STABLE_MODE=500
BATCH_GATEWAY_URLS='["https://ccip-v2.ens.xyz/"]'

NEXT_PUBLIC_BASE_DOMAIN='linea-test' # To be read by the frontend dapp
BASE_DOMAIN='linea-test' # To be read by the deployment scripts in "l2-cntracts"
2 changes: 1 addition & 1 deletion packages/ens-app-v3/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"parserOptions": {
"project": "packages/ens-app-v3/tsconfig.json"
"project": "./tsconfig.json"
},
"ignorePatterns": [
"next.config.js",
Expand Down
35 changes: 31 additions & 4 deletions packages/ens-app-v3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,43 @@ The all new, all cool version of the ENS manager.

### Quick start

In a first terminal run:

```bash
pnpm install
cd packages/ens-app-v3
cp .env.example .env
pnpm i
pnpm denv
pnpm dev:glocal
```

In a second terminal run:

```bash
cd packages/ens-subgraph
yarn setup
```

In a second third terminal run:

```bash
cd packages/ens-app-v3
pnpm dev:glocal
```

- Then browse http://localhost:3000/
- Import one of the hardhat test accounts in your metamask (eg: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80)
- Add the local test network to your metamask with this info:
- Localhost 8545
- http://127.0.0.1:8545
- 1337
- ETH
- You can start testing the app

### Install

```bash
pnpm install
pnpm i
```

### Running Dev Server
Expand Down Expand Up @@ -131,10 +158,10 @@ npm i -g yalc
pnpm publish:local:ensjs
```

3. Run pnpm install within this repo:
3. Run pnpm i within this repo:

```bash
pnpm install
pnpm i
```

If updating an existing yalc installation, you can add the `--force` flag.
Expand Down
90 changes: 0 additions & 90 deletions packages/ens-app-v3/deploy/00_deploy_bulk_renewal.ts

This file was deleted.

214 changes: 0 additions & 214 deletions packages/ens-app-v3/deploy/00_get_registration_gas_values.ts

This file was deleted.

Loading

0 comments on commit 001dd0e

Please sign in to comment.