Skip to content

Commit

Permalink
cleanup & test 2nd resolver design (#1)
Browse files Browse the repository at this point in the history
* cleanup & add 2nd resolver design

* Resolver-1

* still wip logic, before splitting into smaller functions

* add test.yml

* remove test nest resolver for now

* Revert "remove test nest resolver for now"

This reverts commit dca2c89.
  • Loading branch information
0xc0de4c0ffee authored and sshmatrix committed May 27, 2023
1 parent 320073a commit 34e3556
Show file tree
Hide file tree
Showing 23 changed files with 16,958 additions and 10,710 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

GOERLI_RPC_URL=https://rpc.ankr.com/eth_goerli
GOERLI_PRIVATE_KEY=
ETHERSCAN_KEY=
MAINNET_RPC_URL=
MAINNET_PRIVATE_KEY=
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test

on: workflow_dispatch

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
id: test
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package-lock.json
node_modules
cache/
.env
*/.DS_store
Expand All @@ -8,5 +6,4 @@ broadcast/*/*/*
!broadcast/*/*/run-latest.json

out/*/*
!out/Resolver.sol/*
!out/ERC721.sol/*
!out/Resolver.sol/Resolver.json
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ Off-chain ENS Records Manager

## Goerli Testnet
`./test/goerli.sh`


3 changes: 2 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ libs = ['lib']

# Enables or disables the optimizer
optimizer = true
viaIR = true

# The number of optimizer runs
optimizer_runs = 200
optimizer_runs = 999
gas_reports = ["*"]
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
Loading

0 comments on commit 34e3556

Please sign in to comment.