You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🧪 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.
9
47
10
-
⚙️ Built using NextJS, RainbowKit, Hardhat, Wagmi, Viem, and Typescript.
48
+
⚙️ Built using NextJS, RainbowKit, Foundry, Wagmi, Viem, and Typescript.
11
49
12
50
- ✅ **Contract Hot Reload**: Your frontend auto-adapts to your smart contract as you edit it.
13
51
- 🪝 **[Custom hooks](https://docs.scaffoldeth.io/hooks/)**: Collection of React hooks wrapper around [wagmi](https://wagmi.sh/) to simplify interactions with smart contracts with typescript autocompletion.
@@ -29,11 +67,10 @@ Before you begin, you need to install the following tools:
29
67
30
68
To get started with Scaffold-ETH 2, follow the steps below:
This command starts a local Ethereum network using Hardhat. The network runs on your local machine and can be used for testing and development. You can customize the network configuration in `hardhat.config.ts`.
83
+
This command starts a local Ethereum network using Foundry. The network runs on your local machine and can be used for testing and development. You can customize the network configuration in `packages/foundry/foundry.toml`.
47
84
48
85
3. On a second terminal, deploy the test contract:
49
86
50
87
```
51
88
yarn deploy
52
89
```
53
90
54
-
This command deploys a test smart contract to the local network. The contract is located in `packages/hardhat/contracts` and can be modified to suit your needs. The `yarn deploy` command uses the deploy script located in `packages/hardhat/deploy` to deploy the contract to the network. You can also customize the deploy script.
91
+
This command deploys a test smart contract to the local network. The contract is located in `packages/foundry/contracts` and can be modified to suit your needs. The `yarn deploy` command uses the deploy script located in `packages/foundry/script` to deploy the contract to the network. You can also customize the deploy script.
55
92
56
93
4. On a third terminal, start your NextJS app:
57
94
@@ -61,11 +98,12 @@ yarn start
61
98
62
99
Visit your app on: `http://localhost:3000`. You can interact with your smart contract using the `Debug Contracts` page. You can tweak the app config in `packages/nextjs/scaffold.config.ts`.
63
100
64
-
Run smart contract test with `yarn hardhat:test`
101
+
Run smart contract test with `yarn foundry:test`
102
+
103
+
- Edit your smart contract `YourContract.sol` in `packages/foundry/contracts`
104
+
- Edit your frontend homepage at `packages/nextjs/app/page.tsx`. For guidance on [routing](https://nextjs.org/docs/app/building-your-application/routing/defining-routes) and configuring [pages/layouts](https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts) checkout the Next.js documentation.
105
+
- Edit your deployment scripts in `packages/foundry/script`
65
106
66
-
- Edit your smart contract `YourContract.sol` in `packages/hardhat/contracts`
67
-
- Edit your frontend in `packages/nextjs/pages`
68
-
- Edit your deployment scripts in `packages/hardhat/deploy`
69
107
70
108
## Documentation
71
109
@@ -77,4 +115,4 @@ To know more about its features, check out our [website](https://scaffoldeth.io)
77
115
78
116
We welcome contributions to Scaffold-ETH 2!
79
117
80
-
Please see [CONTRIBUTING.MD](https://github.com/scaffold-eth/scaffold-eth-2/blob/main/CONTRIBUTING.md) for more information and guidelines for contributing to Scaffold-ETH 2.
118
+
Please see [CONTRIBUTING.MD](https://github.com/scaffold-eth/scaffold-eth-2/blob/main/CONTRIBUTING.md) for more information and guidelines for contributing to Scaffold-ETH 2.
0 commit comments