Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: inital code changes for migration to hardhat and viem #285

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- run: yarn install --frozen-lockfile --non-interactive

- name: Run linter
run: yarn run lint:solidity
run: yarn run lint-solidity

lint-js:
name: Lint JS
lint-ts:
name: Lint TS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -27,4 +27,4 @@ jobs:

- run: yarn install --frozen-lockfile --non-interactive
- name: Run linter
run: yarn run lint:js
run: yarn run lint-ts
13 changes: 2 additions & 11 deletions .github/workflows/publish-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: yarn run compile

- name: Deploy local 1
run: yarn run deploy:local:1
run: yarn run deploy-local-1

- name: Login to ghcr
uses: docker/login-action@v2
Expand All @@ -47,7 +47,7 @@ jobs:
run: rm -r data/

- name: Deploy local 2
run: yarn run deploy:local:2
run: yarn run deploy-local-2

- name: Push docker image to GitHub Packages
uses: docker/build-push-action@v3
Expand All @@ -56,15 +56,6 @@ jobs:
tags: ghcr.io/${{ github.repository }}:evm2-${{ github.ref_name }}
push: true

- name: Remove data
run: rm -r data/

- name: Generate types
run: yarn run generate-types

- name: Build packages
run: yarn run build

- name: Publish to npm registry
run: npm publish --access public
env:
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,24 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: make install-deps
run: yarn install
- name: Compile contracts
run: make compile
run: yarn run compile
- name: Store contract artifacts
uses: actions/upload-artifact@v3
with:
name: contracts-artifacts
path: build
- name: Ganache Tests
name: cotracts-artifacts
path: artifacts
- name: Run Tests
run: |
SILENT=true make start-ganache
make test
npx hardhat node
yarn run test
- name: Forked Mainnet Tests
run: |
fuser -k 8545/tcp
make start-forkedMainnet FORKED_TESTS_PROVIDER=${{ secrets.FORKED_TESTS_PROVIDER }}
make test-forked
yarn run node-fork FORKED_TESTS_PROVIDER=${{ secrets.FORKED_TESTS_PROVIDER }}
yarn run test-fork

coverage:
needs: test
Expand All @@ -61,6 +62,6 @@ jobs:
uses: actions/download-artifact@v3
with:
name: contracts-artifacts
path: build
path: artifacts
- name: Yarn install
run: yarn install --frozen-lockfile
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ gethdata/
gethdata2/
coverage/
coverage.json
src/ethers
src/web3
ganache/
dist/
data/
.vscode/
.env
artifacts/
cache
6 changes: 0 additions & 6 deletions .solhint.json

This file was deleted.

6 changes: 0 additions & 6 deletions Dockerfile

This file was deleted.

50 changes: 0 additions & 50 deletions Makefile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x1"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x4"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x3"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x11"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x77"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x11"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0xe"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x8"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x6"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x26e8"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x12"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x26e8"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x411d"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0xc"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0xc"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x4735"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0xcdf"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0x0"
Loading
Loading