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.
4
+
🧪 An open-source, toolkit for building decentralized applications (dapps) on the Ethereum blockchain and integrating with Chronicle Oracles. It's designed to make it easier for developers to create and deploy smart contracts and build user interfaces that interact with those contracts.
47
5
48
6
⚙️ Built using NextJS, RainbowKit, Foundry, Wagmi, Viem, and Typescript.
49
7
@@ -53,7 +11,8 @@ Note that because this is a fork of the Sepolia network, you should be getting a
53
11
- 🔥 **Burner Wallet & Local Faucet**: Quickly test your application with a burner wallet and local faucet.
54
12
- 🔐 **Integration with Wallet Providers**: Connect to different wallet providers and interact with the Ethereum network.
@@ -63,34 +22,55 @@ Before you begin, you need to install the following tools:
63
22
- Yarn ([v1](https://classic.yarnpkg.com/en/docs/install/) or [v2+](https://yarnpkg.com/getting-started/install))
64
23
-[Git](https://git-scm.com/downloads)
65
24
66
-
## Quickstart
25
+
## 🏃🏻♂️ Running It
67
26
68
-
To get started with Scaffold-ETH 2, follow the steps below:
27
+
To run this example, which uses the Foundry tooling in conjunction with [Scaffold-ETH2](https://scaffoldeth.io), you first need to fork the [Sepolia network](https://sepolia.etherscan.io/).
69
28
70
-
1. Install dependencies if it was skipped in CLI:
29
+
In a terminal window install dependencies:
71
30
72
31
```
73
32
cd my-dapp-example
74
33
yarn install
75
34
```
76
35
77
-
2. Run a local network in the first terminal:
36
+
Fork your target network, leave this terminal window open as it runs your local chain.
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`.
84
43
85
-
3. On a second terminal, deploy the test contract:
44
+
45
+
In a second terminal window, you can now deploy your contracts to the local chain:
86
46
87
47
```
48
+
export DEPLOYER_PRIVATE_KEY="0xdeadbeefcafebabe"
49
+
cd packages/foundry
50
+
cp .env.example .env
88
51
yarn deploy
89
52
```
90
53
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.
54
+
When this completes, you should see a contract address in the output:
Note that because this is a fork of the Sepolia network, you should be getting a pretty up-to-date value for `ETH/USD`.
71
+
72
+
73
+
You can now start your NextJS app:
94
74
95
75
```
96
76
yarn start
@@ -103,16 +83,3 @@ Run smart contract test with `yarn foundry:test`
103
83
- Edit your smart contract `YourContract.sol` in `packages/foundry/contracts`
104
84
- 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
85
- Edit your deployment scripts in `packages/foundry/script`
106
-
107
-
108
-
## Documentation
109
-
110
-
Visit our [docs](https://docs.scaffoldeth.io) to learn how to start building with Scaffold-ETH 2.
111
-
112
-
To know more about its features, check out our [website](https://scaffoldeth.io).
113
-
114
-
## Contributing to Scaffold-ETH 2
115
-
116
-
We welcome contributions to Scaffold-ETH 2!
117
-
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