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

Setup Script: PR for Issue 183 #242

Merged
merged 146 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
5fe6e43
fix URLs
0xNuggan Mar 22, 2023
2f29da8
Add PaymentManager
0xNuggan Mar 22, 2023
177d0e8
format
0xNuggan Mar 22, 2023
039abe7
Added deployment scripts for first 3 contracts
saxenism Mar 28, 2023
4d6d057
Having fun with the OneScriptToRuleThemAll, lol
saxenism Mar 28, 2023
22b16ac
Exact replica of setup of E2eTest.sol
saxenism Mar 28, 2023
2523870
updated dev.env
saxenism Mar 29, 2023
ef7643a
Changed the mock authorizer to list authorizer
saxenism Mar 29, 2023
2f0504b
still debugging
saxenism Apr 5, 2023
2cd701d
tried a few more things with the script
saxenism Apr 11, 2023
826b6ec
Fix
FHieser Apr 12, 2023
87ffeee
Cleanup
FHieser Apr 12, 2023
09f67ea
Pulled from main
saxenism Apr 12, 2023
6bb859e
enable via-ir
saxenism Apr 27, 2023
e7d4c89
Merge branch 'main' of https://github.com/byterocket/proposal-inverte…
saxenism May 9, 2023
6a41d35
Created the required deployment script for the inverter project
saxenism May 9, 2023
7ebb9a0
better naming convention
saxenism May 9, 2023
e20fd27
Added a short doc on how to run the script for the FE team
saxenism May 9, 2023
27c86d3
setting via-ir to true and compiler version as latest
saxenism May 9, 2023
5c04445
Initial commit for setup script
saxenism May 9, 2023
da7bb31
A new test proposal is created
saxenism May 9, 2023
94da9ad
introduced more scoping into the script
saxenism May 9, 2023
a82bbc3
Proposal created, milestone manager initiated, problem with adding mi…
saxenism May 9, 2023
c089351
reading receipts throws an upper bound memory error. Gonna try someth…
saxenism May 16, 2023
7aaf47b
I FUCKING DID ITgit add . Although I think Mr Escobar will prolly kil…
saxenism May 16, 2023
5f3d647
FUCK YES. It's done. But a lot of decisions need to made tbh. Btw thi…
saxenism May 16, 2023
33fd537
restoring the original number of fuzz_runs. had reduced it back when …
saxenism May 16, 2023
c001a70
Pulled from main, need to make it work again now ig
saxenism May 16, 2023
56cc084
ran forge fmt
saxenism May 16, 2023
b21b733
Deployment Scripts work now
saxenism May 16, 2023
bc0c89a
Setup scripts works now with the latest changes from main
saxenism May 16, 2023
4f8713b
reverted any changes to module.sol
saxenism May 16, 2023
3b7463b
ran forge fmt on the repo
saxenism May 16, 2023
dfd027d
fix URLs
0xNuggan Mar 22, 2023
c8d559a
Add PaymentManager
0xNuggan Mar 22, 2023
2594b42
format rebased with merge
0xNuggan Mar 22, 2023
5e11b72
Added deployment scripts for first 3 contracts
saxenism Mar 28, 2023
44e130a
Having fun with the OneScriptToRuleThemAll, lol
saxenism Mar 28, 2023
51c82b5
Exact replica of setup of E2eTest.sol
saxenism Mar 28, 2023
3b7ecef
updated dev.env
saxenism Mar 29, 2023
bdd9948
Changed the mock authorizer to list authorizer
saxenism Mar 29, 2023
6b2e8d8
still debugging
saxenism Apr 5, 2023
e43e2bc
tried a few more things with the script
saxenism Apr 11, 2023
97df447
Fix
FHieser Apr 12, 2023
6d51b8f
Cleanup
FHieser Apr 12, 2023
3d38979
enable via-ir
saxenism Apr 27, 2023
94b7a0c
Created the required deployment script for the inverter project
saxenism May 9, 2023
c740c80
better naming convention
saxenism May 9, 2023
399855d
Added a short doc on how to run the script for the FE team
saxenism May 9, 2023
1cae5b7
setting via-ir to true and compiler version as latest
saxenism May 9, 2023
5287e50
Initial commit for setup script
saxenism May 9, 2023
8753121
A new test proposal is created
saxenism May 9, 2023
a1d3d07
introduced more scoping into the script
saxenism May 9, 2023
eda0c82
Proposal created, milestone manager initiated, problem with adding mi…
saxenism May 9, 2023
f0d9502
reading receipts throws an upper bound memory error. Gonna try someth…
saxenism May 16, 2023
fdd2d36
Resolved conflicts in MilestoneManager and Module.sol
saxenism May 16, 2023
f32f292
FUCK YES. It's done. But a lot of decisions need to made tbh. Btw thi…
saxenism May 16, 2023
30422db
restoring the original number of fuzz_runs. had reduced it back when …
saxenism May 16, 2023
9cce552
resolved formatting conflict in Module.sol
saxenism May 16, 2023
10dce98
Deployment Scripts work now
saxenism May 16, 2023
19c2b9f
Setup scripts works now with the latest changes from main
saxenism May 16, 2023
feb48a2
reverted any changes to module.sol
saxenism May 16, 2023
089af39
ran forge fmt on the repo
saxenism May 16, 2023
210f136
Updating the Module onlyAuthorizedOrManger modifier
saxenism May 22, 2023
137078d
updated naming convention in MetadataManager from owner to manager
saxenism May 22, 2023
0ecff99
reverted formatting changes in milestonemanager.sol
saxenism May 22, 2023
e5fd717
reverting changes in lcov.info
saxenism May 22, 2023
b0839f0
Merge branch 'rahul/issue-183-we-need-setup-scripts' of https://githu…
FHieser May 22, 2023
841ef4a
removed relative paths from scripts
saxenism May 22, 2023
e68229e
erge branch 'rahul/issue-183-we-need-setup-scripts' of https://github…
saxenism May 22, 2023
7d26c9c
Set via_ir to false
FHieser May 22, 2023
ece49e2
Merge branch 'rahul/issue-183-we-need-setup-scripts' of https://githu…
FHieser May 22, 2023
62b2598
pre-commit
FHieser May 22, 2023
76da590
fix URLs
0xNuggan Mar 22, 2023
c1db190
Add PaymentManager
0xNuggan Mar 22, 2023
8974d4a
Added deployment scripts for first 3 contracts
saxenism Mar 28, 2023
5aa25be
Having fun with the OneScriptToRuleThemAll, lol
saxenism Mar 28, 2023
66d4669
Exact replica of setup of E2eTest.sol
saxenism Mar 28, 2023
5702db7
updated dev.env
saxenism Mar 29, 2023
32c5d47
Changed the mock authorizer to list authorizer
saxenism Mar 29, 2023
d0af40a
still debugging
saxenism Apr 5, 2023
e212a79
tried a few more things with the script
saxenism Apr 11, 2023
0226f0d
Fix
FHieser Apr 12, 2023
4a1e949
Cleanup
FHieser Apr 12, 2023
4479ddb
enable via-ir
saxenism Apr 27, 2023
a10b8cf
Created the required deployment script for the inverter project
saxenism May 9, 2023
cdd21b7
better naming convention
saxenism May 9, 2023
ac52d8d
Added a short doc on how to run the script for the FE team
saxenism May 9, 2023
3cf307a
setting via-ir to true and compiler version as latest
saxenism May 9, 2023
2d7b75f
Initial commit for setup script
saxenism May 9, 2023
7418bfe
A new test proposal is created
saxenism May 9, 2023
b41dd64
introduced more scoping into the script
saxenism May 9, 2023
2eddb4b
Proposal created, milestone manager initiated, problem with adding mi…
saxenism May 9, 2023
a853554
reading receipts throws an upper bound memory error. Gonna try someth…
saxenism May 16, 2023
5c23063
I FUCKING DID ITgit add . Although I think Mr Escobar will prolly kil…
saxenism May 16, 2023
caf6e94
FUCK YES. It's done. But a lot of decisions need to made tbh. Btw thi…
saxenism May 16, 2023
0fdc776
restoring the original number of fuzz_runs. had reduced it back when …
saxenism May 16, 2023
ef83b3f
ran forge fmt
saxenism May 16, 2023
a5a9832
Deployment Scripts work now
saxenism May 16, 2023
a1402bf
Setup scripts works now with the latest changes from main
saxenism May 16, 2023
0636176
reverted any changes to module.sol
saxenism May 16, 2023
896e0d2
ran forge fmt on the repo
saxenism May 16, 2023
76058c9
format rebased with merge
0xNuggan Mar 22, 2023
508f091
Added deployment scripts for first 3 contracts
saxenism Mar 28, 2023
1e20e39
Having fun with the OneScriptToRuleThemAll, lol
saxenism Mar 28, 2023
5fe304b
Exact replica of setup of E2eTest.sol
saxenism Mar 28, 2023
dd2be9c
Changed the mock authorizer to list authorizer
saxenism Mar 29, 2023
3244305
still debugging
saxenism Apr 5, 2023
0902553
tried a few more things with the script
saxenism Apr 11, 2023
3a5956a
Fix
FHieser Apr 12, 2023
398172c
Cleanup
FHieser Apr 12, 2023
3a848d5
enable via-ir
saxenism Apr 27, 2023
6267764
Created the required deployment script for the inverter project
saxenism May 9, 2023
8392547
better naming convention
saxenism May 9, 2023
f547645
introduced more scoping into the script
saxenism May 9, 2023
6c236d0
Proposal created, milestone manager initiated, problem with adding mi…
saxenism May 9, 2023
eef6f9d
reading receipts throws an upper bound memory error. Gonna try someth…
saxenism May 16, 2023
fa179cc
Resolved conflicts in MilestoneManager and Module.sol
saxenism May 16, 2023
05565b4
FUCK YES. It's done. But a lot of decisions need to made tbh. Btw thi…
saxenism May 16, 2023
b5774fb
restoring the original number of fuzz_runs. had reduced it back when …
saxenism May 16, 2023
c7991b9
resolved formatting conflict in Module.sol
saxenism May 16, 2023
3afb3a6
Deployment Scripts work now
saxenism May 16, 2023
463a49e
Setup scripts works now with the latest changes from main
saxenism May 16, 2023
0452918
reverted any changes to module.sol
saxenism May 16, 2023
99eb6cc
ran forge fmt on the repo
saxenism May 16, 2023
c0b78ad
Updating the Module onlyAuthorizedOrManger modifier
saxenism May 22, 2023
ee70b98
updated naming convention in MetadataManager from owner to manager
saxenism May 22, 2023
4b383f4
reverted formatting changes in milestonemanager.sol
saxenism May 22, 2023
bda75d1
reverting changes in lcov.info
saxenism May 22, 2023
ea2f265
Set via_ir to false
FHieser May 22, 2023
641547e
removed relative paths from scripts
saxenism May 22, 2023
358083a
pre-commit
FHieser May 22, 2023
e3924e7
Fix rebase
FHieser May 22, 2023
afc726e
Fix Rebase II
FHieser May 22, 2023
639547e
Remove Split
FHieser May 22, 2023
3806d5a
Go down to 5000 optimizer runs
FHieser May 22, 2023
d259ab2
Update Make pre-commit
FHieser May 22, 2023
a565cd5
added files to gitignore
saxenism May 25, 2023
1ba9ab0
pulled latest changes
saxenism May 25, 2023
ee7e578
removed unnecessary comments from the setup scripts
saxenism May 25, 2023
013269e
Revert "pulled latest changes"
FHieser May 25, 2023
99f07de
Delete MilestoneManagerViewContract.sol
FHieser May 25, 2023
ee65d19
Revert "Revert "pulled latest changes""
FHieser May 25, 2023
dbf1257
Hopefully final rebase fix
FHieser May 25, 2023
5d2bfde
Update Makefile
FHieser May 25, 2023
9dadcf5
Fix DeployScripts
FHieser May 25, 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
514 changes: 257 additions & 257 deletions .gas-snapshot

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ coverage/

# Dotenv file
.env

.DS_Store
test/.DS_Store
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ testFactories: ## Run factories/ package tests
testE2e: ## Rune e2e test suite
@forge test -vvv --match-path "*/e2e/*"

.PHONY: testScripts
testScripts: ## Rune e2e test suite

@forge script scripts/deployment/DeploymentScript.s.sol
@forge script scripts/factories/DeployModuleFactory.s.sol
@forge script scripts/factories/DeployProposalFactory.s.sol
@forge script scripts/modules/governance/DeployListAuthorizer.s.sol
@forge script scripts/modules/governance/DeploySingleVoteGovernor.s.sol
@forge script scripts/modules/DeployMilestoneManager.s.sol
@forge script scripts/modules/DeployPaymentProcessor.s.sol
@forge script scripts/proposal/DeployProposal.s.sol
@forge script scripts/proxies/DeployBeacon.s.sol
@forge script scripts/setup/SetupScript.s.sol

# -----------------------------------------------------------------------------
# Static Analyzers

Expand Down Expand Up @@ -95,8 +109,11 @@ fmt-check: ## Check whether code formatted correctly
.PHONY: pre-commit
pre-commit: ## Git pre-commit hook
@forge fmt
@make testScripts
@forge coverage --report lcov
@genhtml lcov.info --branch-coverage --output-dir coverage
@forge snapshot


# -----------------------------------------------------------------------------
# Help Command
Expand Down
10 changes: 10 additions & 0 deletions dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@ export WALLET_DEPLOYER_PK=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae78
# ProposalFactory
export DEPLOYMENT_PROPOSAL_FACTORY_TARGET=0x0000000000000000000000000000000000000001
export DEPLOYMENT_PROPOSAL_FACTORY_MODULE_FACTORY=0x0000000000000000000000000000000000000001

ANVIL_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
PPBO_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
MMBO_PRIVATE_KEY=0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a
ABO_PRIVATE_KEY=0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6
PROPOSAL_OWNER_PRIVATE_KEY=0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a

# These are just basic Addresses fro testing
DEPLOYMENT_PROPOSAL_FACTORY_TARGET=0x0000000000000000000000000000000000000001
DEPLOYMENT_PROPOSAL_FACTORY_MODULE_FACTORY=0x0000000000000000000000000000000000000002
5 changes: 3 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
src = 'src'
out = 'out'
libs = ['lib']
fs_permissions = [{ access = "read-write", path = "./"}]

# Compilation
solc_version = "0.8.13"
solc_version = "0.8.19"
optimizer = true
optimizer_runs = 10_000
optimizer_runs = 5_000
via_ir = false

# Testing
Expand Down
Loading