Skip to content

Commit

Permalink
Update project configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
icyfry committed Apr 12, 2024
1 parent f37c29a commit 19d46c8
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 75 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ anvil
```
Build and deploy contracts
```
task contracts-build fundme-deploy
task contracts-build contracts-deploy
```
Launch frontend
```
Expand All @@ -85,5 +85,8 @@ task frontend-build frontend-run

* https://www.cyfrin.io/blog/top-web3-tools-for-developers
* https://github.com/foundry-rs/foundry
* https://book.getfoundry.sh/
* https://docs.soliditylang.org/en/v0.8.23/
* https://updraft.cyfrin.io/courses/foundry
* https://github.com/ChainSafe/web3js-example-react-app
* https://docs.web3js.org/
22 changes: 20 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@ tasks:
cmds:
- task --list-all

anvil:
cmds:
- anvil --block-time 10

contracts-build:
dir: contracts
cmds:
- forge fmt
- forge build --out "../dapp/abi"
- forge build

contracts-deploy:
- task: fundme-deploy
- task: cryptozombies-deploy

contracts-test:
dir: contracts
Expand All @@ -42,6 +50,16 @@ tasks:
--password-file "../.password"
DeployFundMe

cryptozombies-deploy:
dir: contracts/script
cmds:
- forge script --rpc-url {{.RPC_URL}}
--account {{.KEYSTORE_ACCOUNT}}
--sender {{.PUBLIC_KEY}}
--broadcast
--password-file "../.password"
DeployZombieOwnership

fundme-deploy-dryrun:
dir: contracts/script
cmds:
Expand Down Expand Up @@ -81,4 +99,4 @@ tasks:
dir: dapp
deps: [frontend-build]
cmds:
- pnpm run dev --open
- pnpm run dev
1 change: 0 additions & 1 deletion dapp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ node_modules
dist
dist-ssr
*.local
abi
coverage

# Editor directories and files
Expand Down
2 changes: 1 addition & 1 deletion dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@metamask/providers": "^14.0.2",
"vue": "^3.3.11",
"web3": "^4.4.0"
"web3": "^4.7.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.5.2",
Expand Down
145 changes: 75 additions & 70 deletions dapp/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19d46c8

Please sign in to comment.