Skip to content

Commit

Permalink
upgraded scaffold eth 2 project
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed Feb 1, 2024
1 parent ab266f4 commit 50662ad
Show file tree
Hide file tree
Showing 396 changed files with 15,593 additions and 27,004 deletions.
47 changes: 0 additions & 47 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/pull_request_template.md

This file was deleted.

22 changes: 5 additions & 17 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [16.x]
node: [lts/*]

steps:
- name: Checkout
Expand All @@ -25,31 +25,19 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache : yarn
cache: yarn

- name: Install dependencies
run: yarn install --immutable

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

- name: Run foundry node, deploy contracts (& generate contracts typescript output)
env:
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
- name: Run hardhat node, deploy contracts (& generate contracts typescript output)
run: yarn chain & yarn deploy
id: build

- name: Run tests
run: forge test -vvv

- name: Run snapshot
run: forge snapshot

- name: Run nextjs lint
run: yarn next:lint --max-warnings=0

- name: Check typings on nextjs
run: yarn next:check-types

#- name: Run hardhat lint
# run: yarn hardhat:lint --max-warnings=0
- name: Run hardhat lint
run: yarn hardhat:lint --max-warnings=0
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
url = https://github.com/gnsps/solidity-bytes-utils
[submodule "packages/foundry/lib/reputation"]
path = packages/foundry/lib/reputation
url = https://github.com/atxdao/reputation
url = https://github.com/ATXDAO/reputation
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

🧪 An open-source, up-to-date toolkit for building decentralized applications (dapps) on the Ethereum blockchain. It's designed to make it easier for developers to create and deploy smart contracts and build user interfaces that interact with those contracts.

⚙️ Built using NextJS, RainbowKit, Hardhat, Wagmi, and Typescript.
⚙️ Built using NextJS, RainbowKit, Hardhat, Wagmi, Viem, and Typescript.

-**Contract Hot Reload**: Your frontend auto-adapts to your smart contract as you edit it.
- 🔥 **Burner Wallet & Local Faucet**: Quickly test your application with a burner wallet and local faucet.
Expand Down Expand Up @@ -114,6 +114,14 @@ You can verify your smart contract on Etherscan by running:
yarn verify --network network_name
```

eg: `yarn verify --network sepolia`

This uses [etherscan-verify from hardhat-deploy](https://www.npmjs.com/package/hardhat-deploy#4-hardhat-etherscan-verify) to verify all the deployed contracts.

You can alternatively use [hardhat-verify](https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify) to verify your contracts, passing network name, contract address and constructor arguments (if any): `yarn hardhat-verify --network network_name contract_address "Constructor arg 1"`

If the chain you're using is not supported by any of the verifying methods, you can add new supported chains to your chosen method, either [etherscan-verify](https://www.npmjs.com/package/hardhat-deploy#options-2) or [hardhat-verify](https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify#adding-support-for-other-networks).

## Deploying your NextJS App

**Hint**: We recommend connecting your GitHub repo to Vercel (through the Vercel UI) so it gets automatically deployed when pushing to `main`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"lint-staged": "~13.2.2"
},
"packageManager": "[email protected]"
}
}
3 changes: 0 additions & 3 deletions packages/foundry/deployments/5.json

This file was deleted.

1 change: 1 addition & 0 deletions packages/foundry/lib/forge-std/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/Vm.sol linguist-generated
2 changes: 1 addition & 1 deletion packages/foundry/lib/forge-std/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "forge-std",
"version": "1.7.2",
"version": "1.7.6",
"description": "Forge Standard Library is a collection of helpful contracts and libraries for use with Forge and Foundry.",
"homepage": "https://book.getfoundry.sh/forge/forge-std",
"bugs": "https://github.com/foundry-rs/forge-std/issues",
Expand Down
Loading

0 comments on commit 50662ad

Please sign in to comment.