Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locofy #3

Merged
merged 32 commits into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9638b4c
Removed submodules
pythonpete32 Nov 4, 2023
26232e9
chore: move to monorepo
pythonpete32 Nov 4, 2023
2c59c7b
forge install: openzeppelin-contracts-upgradeable
pythonpete32 Nov 4, 2023
04de6bb
build(contracts): add ens-contracts
pythonpete32 Nov 4, 2023
db18a39
forge install: prb-test
pythonpete32 Nov 4, 2023
83990a3
forge install: osx
pythonpete32 Nov 4, 2023
9596b15
forge install: openzeppelin-contracts
pythonpete32 Nov 4, 2023
9954e82
build(contracts): update forge deps
pythonpete32 Nov 4, 2023
d14b99d
remove submodules
pythonpete32 Nov 4, 2023
ea3815e
add contracts back
pythonpete32 Nov 4, 2023
461b9b4
forge install: forge-std
pythonpete32 Nov 4, 2023
c6fedfd
forge install: prb-test
pythonpete32 Nov 4, 2023
577c706
forge install: openzeppelin-contracts
pythonpete32 Nov 4, 2023
c06efc1
forge install: openzeppelin-contracts-upgradeable
pythonpete32 Nov 4, 2023
209eb9b
forge install: osx
pythonpete32 Nov 4, 2023
6c21959
forge install: BokkyPooBahsDateTimeLibrary
pythonpete32 Nov 4, 2023
4a28ffe
remove lib from root
pythonpete32 Nov 4, 2023
24ed5c0
forge install: forge-std
pythonpete32 Nov 4, 2023
3349eab
forge install: prb-test
pythonpete32 Nov 4, 2023
4ef6926
forge install: openzeppelin-contracts
pythonpete32 Nov 4, 2023
12bc081
forge install: openzeppelin-contracts-upgradeable
pythonpete32 Nov 4, 2023
0e730d6
forge install: osx
pythonpete32 Nov 4, 2023
4cc451b
forge install: BokkyPooBahsDateTimeLibrary
pythonpete32 Nov 4, 2023
f9a11c2
remove redundant .gitmodules
pythonpete32 Nov 4, 2023
00e44bc
feat(contracts): deploy contracts
pythonpete32 Nov 7, 2023
04a054d
feat(hooks): start hooks package
pythonpete32 Nov 7, 2023
ce3b7f7
fix(contracts): fix submodules
pythonpete32 Nov 7, 2023
94719c2
chore(hooks): remove boilerplate contracts from hooks
pythonpete32 Nov 7, 2023
92da6c8
feat(hooks): add useNewRootBudget
pythonpete32 Nov 7, 2023
d7837c7
refactor(hooks): refactor
pythonpete32 Nov 11, 2023
3193568
refactor(hooks): :art: refactor hooks
pythonpete32 Nov 11, 2023
75ee642
feat(dapp): :sparkles: add dapp
pythonpete32 Nov 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
19 changes: 1 addition & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
# directories
cache
coverage
node_modules
out

# files
*.env
*.log
.DS_Store
.pnp.*
lcov.info
yarn.lock

# broadcasts
!broadcast
broadcast/*
broadcast/*/31337/
**/node_modules
28 changes: 14 additions & 14 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
[submodule "lib/forge-std"]
[submodule "packages/contracts/lib/forge-std"]
branch = "v1"
path = "lib/forge-std"
path = "packages/contracts/lib/forge-std"
url = "https://github.com/foundry-rs/forge-std"
[submodule "lib/prb-test"]
[submodule "packages/contracts/lib/prb-test"]
branch = "release-v0"
path = "lib/prb-test"
path = "packages/contracts/lib/prb-test"
url = "https://github.com/PaulRBerg/prb-test"
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
[submodule "packages/contracts/lib/openzeppelin-contracts"]
path = packages/contracts/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/osx"]
path = lib/osx
[submodule "packages/contracts/lib/osx"]
path = packages/contracts/lib/osx
url = https://github.com/aragon/osx
[submodule "lib/openzeppelin-contracts-upgradeable"]
[submodule "packages/contracts/lib/openzeppelin-contracts-upgradeable"]
branch = "release-v4.9"
path = lib/openzeppelin-contracts-upgradeable
path = packages/contracts/lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "lib/ens-contracts"]
path = lib/ens-contracts
[submodule "packages/contracts/lib/ens-contracts"]
path = packages/contracts/lib/ens-contracts
url = https://github.com/ensdomains/ens-contracts
[submodule "lib/BokkyPooBahsDateTimeLibrary"]
path = lib/BokkyPooBahsDateTimeLibrary
[submodule "packages/contracts/lib/BokkyPooBahsDateTimeLibrary"]
path = packages/contracts/lib/BokkyPooBahsDateTimeLibrary
url = https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary
29 changes: 24 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,28 @@
"[solidity]": {
"editor.defaultFormatter": "NomicFoundation.hardhat-solidity"
},
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
},
"npm.exclude": "**/lib/**",
"solidity.formatter": "forge"
}
"solidity.formatter": "forge",
"conventionalCommits.scopes": [
"hooks"
],
"detectedConfig": {
"typescript": false,
"naming": "Pascal Case",
"unit": "rem",
"framework": "nextjs",
"styling": "Tailwind"
},
"locofyConfig": {
"project_name": "budget2",
"id": "6550a1218cd0bab876c5d4ce",
"framework": "react",
"typescript": true,
"path": "public/",
"componentsPath": "/Users/abuusama/repos/daobox/budget/packages/dapp/components",
"screensPath": "/Users/abuusama/repos/daobox/budget/frontend-v2/pages",
"styling": "Tailwind",
"unit": "rem",
"naming": "Pascal Case"
}
}
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
<<<<<<< HEAD
<h1 align="center">DAOBox - Budget</h1>
=======
# budget2

>>>>>>> Incoming

<<<<<<< HEAD
<p align="center">
<img src="./assets/banner.png" alt="daobox-banner" />
<br>
<i>DAOBox - Budget is an Aragon OSx Plugin that allows the execution of payments bypassing the need for regular voting.</i>
<br>
</p>
=======
Note: Please ensure you have installed <code><a href="https://nodejs.org/en/download/">nodejs</a></code>

>>>>>>> Incoming

<<<<<<< HEAD
<p align="center">
<a href="https://github.com/DAObox/budget/actions"><img src="https://github.com/DAObox/budget/actions/workflows/ci.yml/badge.svg" alt="Github Actions"></a>
<a href="https://getfoundry.sh/"><img src="https://img.shields.io/badge/Built%20with-Foundry-FFDB1C.svg" alt="Foundry"></a>
<a href="https://opensource.org/license/agpl-v3/"><img src="https://img.shields.io/badge/License-AGPL-blue.svg" alt="License: AGPL-3-0"></a>
<a href="https://use-aragon.daobox.app"><img src="https://img.shields.io/badge/Docs-DAOBox-blue.svg" alt="Docs"></a>
<a href="https://discord.gg/d5nCgVt4kE"><img alt="Discord" src="https://img.shields.io/discord/1019114018545352734"></a>
=======
To preview and run the project on your device:

>>>>>>> Incoming

<<<<<<< HEAD
</p>

<hr>
Expand Down Expand Up @@ -230,3 +246,38 @@ constraints of this system, this is a non-issue:
## License

This project is licensed under AGPL-3.0-or-later

---

```
[submodule "lib/forge-std"]
branch = "v1"
path = "lib/forge-std"
url = "https://github.com/foundry-rs/forge-std"
[submodule "lib/prb-test"]
branch = "release-v0"
path = "lib/prb-test"
url = "https://github.com/PaulRBerg/prb-test"
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/osx"]
path = lib/osx
url = https://github.com/aragon/osx
[submodule "lib/openzeppelin-contracts-upgradeable"]
branch = "release-v4.9"
path = lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "lib/ens-contracts"]
path = lib/ens-contracts
url = https://github.com/ensdomains/ens-contracts
[submodule "lib/BokkyPooBahsDateTimeLibrary"]
path = lib/BokkyPooBahsDateTimeLibrary
url = https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary
```
=======
1. Open project folder in <a href="https://code.visualstudio.com/download">Visual Studio Code</a>
2. In the terminal, run `npm install`
3. Run `npm start` to view project in browser

>>>>>>> Incoming
9 changes: 9 additions & 0 deletions active_contracts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ens-domain": "budget.plugin.dao.eth",
"goerli": {
"BudgetSetup": "0x636Dc42B54029702ee5bDd39059bF8f75696B1C9",
"BudgetRepo": "0x9b72Af17B8aE55AE2F3C06E46A44D9bEaFb10801",
"dao": "0xce780fea1c950a29769b4f10817a9c51154d12af",
"budget": "0xfea7C89Ae8168f0f0FB9bA053b79C02819eC8C91"
}
}
1 change: 0 additions & 1 deletion lib/forge-std
Submodule forge-std deleted from e8a047
1 change: 0 additions & 1 deletion lib/openzeppelin-contracts
Submodule openzeppelin-contracts deleted from 045704
1 change: 0 additions & 1 deletion lib/openzeppelin-contracts-upgradeable
Submodule openzeppelin-contracts-upgradeable deleted from 12ad9e
1 change: 0 additions & 1 deletion lib/osx
Submodule osx deleted from 1bf179
1 change: 0 additions & 1 deletion lib/prb-test
Submodule prb-test deleted from 1e9ead
83 changes: 53 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,62 @@
{
"name": "@daobox/budget",
"description": "",
<<<<<<< HEAD
"name": "budget-monorepo",
"version": "1.0.0",
"author": {
"name": "DAObox",
"url": "https://github.com/DAObox"
"description": "",
"main": "index.js",
=======
"name": "budget2",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^29.5.0",
"@types/node": "^16.11.14",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4",
"typescript": "^4.5.4",
"react-router-dom": "^6.2.1"
},
"devDependencies": {
"prettier": "^3.0.0"
"autoprefixer": "^10.4.8",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8"
},
"keywords": [
"blockchain",
"ethereum",
"forge",
"foundry",
"smart-contracts",
"solidity",
"aragon",
"osx",
"dao",
"daobox"
],
"private": true,

>>>>>>> Incoming
"scripts": {
"clean": "rm -rf cache out",
"build": "forge build",
"lint": "pnpm lint:sol && pnpm prettier:check",
"lint:sol": "forge fmt --check && pnpm solhint {script,src,test}/**/*.sol",
"prettier:check": "prettier --check **/*.{json,md,yml} --ignore-path=.prettierignore",
"prettier:write": "prettier --write **/*.{json,md,yml} --ignore-path=.prettierignore",
"test": "forge test -vvv",
"test:coverage": "forge coverage",
"test:coverage:report": "forge coverage --report lcov && genhtml lcov.info --branch-coverage --output-dir coverage"
<<<<<<< HEAD
"test": "echo \"Error: no test specified\" && exit 1"
=======
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"

>>>>>>> Incoming
},
"dependencies": {
"solhint": "^3.6.2"
<<<<<<< HEAD
"keywords": [],
"author": "pythonpete32",
"license": "ISC"
=======
"eslintConfig": {
"root": true
},
"browserslist": {
"production": [">0.2%", "not dead", "not op_mini all"],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}

>>>>>>> Incoming
}
Binary file added packages/.DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions packages/contracts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# directories
cache
coverage
node_modules
out

# files
*.env
*.log
.DS_Store
.pnp.*
lcov.info
yarn.lock

# broadcasts
!broadcast
broadcast/*
broadcast/*/31337/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions packages/contracts/lib/forge-std
Submodule forge-std added at f73c73
1 change: 1 addition & 0 deletions packages/contracts/lib/openzeppelin-contracts
Submodule openzeppelin-contracts added at fd81a9
1 change: 1 addition & 0 deletions packages/contracts/lib/osx
Submodule osx added at c2be41
1 change: 1 addition & 0 deletions packages/contracts/lib/prb-test
Submodule prb-test added at 2ece87
Loading
Loading