Skip to content

Commit

Permalink
feat: inital code changes for migration to hardhat and viem
Browse files Browse the repository at this point in the history
  • Loading branch information
nmlinaric committed Dec 16, 2024
1 parent ddac879 commit 5220dc4
Show file tree
Hide file tree
Showing 213 changed files with 24,054 additions and 32,734 deletions.
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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ gethdata/
gethdata2/
coverage/
coverage.json
src/ethers
src/web3
ganache/
dist/
data/
.vscode/
.env
artifacts/
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.

Loading

0 comments on commit 5220dc4

Please sign in to comment.