-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from aragon/deploy/mode-upgrade-v2
Deploy/mode upgrade v2
- Loading branch information
Showing
74 changed files
with
9,411 additions
and
459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# If deploying against a fork, pass the address of a large token holder. | ||
# This address will be impersonated to distribute tokens to addresses inside test cases. | ||
# The whale needs to hold at least 3000 tokens | ||
TEST_TOKEN_WHALE="0x0000000000000000000000000000000000000000" | ||
|
||
# If you are testing with `make test-fork-factory-*`, you need to define the address of the | ||
# existing factory to use. Otherwise, you should use `make test-fork-*` | ||
FACTORY_ADDRESS="0x0000000000000000000000000000000000000000" | ||
|
||
# The block number to run fork tests on | ||
# If left empty, the live onchain state will be used, which may | ||
# consume API calls or cause rate limits | ||
FORK_TESTNET_BLOCK_NUMBER=2643743 | ||
FORK_PRODNET_BLOCK_NUMBER= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,59 @@ | ||
name: CI | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "develop" | ||
- "deploy/**" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
FOUNDRY_PROFILE: ci | ||
|
||
jobs: | ||
check: | ||
test-unit: | ||
strategy: | ||
fail-fast: true | ||
|
||
name: Foundry project | ||
name: Test Unit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
submodules: true | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: foundry-toolchain | ||
uses: foundry-rs/[email protected] | ||
|
||
- name: Show Forge version | ||
run: forge --version | ||
|
||
- name: Run Forge build | ||
run: | | ||
forge build --sizes | ||
id: build | ||
|
||
- name: Run Forge tests | ||
run: | | ||
forge --version | ||
forge test --match-path "test/**/unit/**/*.sol" | ||
id: test | ||
|
||
test-upgrade: | ||
strategy: | ||
fail-fast: true | ||
name: Test Upgrade | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: foundry-toolchain | ||
uses: foundry-rs/[email protected] | ||
|
||
- name: Show Forge version | ||
run: forge --version | ||
|
||
- name: Run Forge build | ||
run: | | ||
|
@@ -36,5 +62,59 @@ jobs: | |
|
||
- name: Run Forge tests | ||
run: | | ||
forge test --no-match-path "test/fork/**/*.sol" -vvv | ||
forge test --match-path "test/**/upgrade/**/*.sol" --force | ||
id: test | ||
|
||
test-fork: | ||
strategy: | ||
fail-fast: true | ||
name: Test Fork | ||
runs-on: ubuntu-latest | ||
env: | ||
NETWORK: "sepolia" | ||
FORK_TEST_MODE: "new-factory" | ||
DEPLOY_AS_PRODUCTION: false | ||
TOKEN_TEST_WHALE: "0x" | ||
FACTORY_ADDRESS: "0x" | ||
MULTISIG_MEMBERS_JSON_FILE_NAME: "/script/multisig-members.json" | ||
MIN_APPROVALS: 1 | ||
MULTISIG_PROPOSAL_EXPIRATION_PERIOD: "864000" | ||
MINT_TEST_TOKENS: true | ||
TOKEN1_ADDRESS: "0x0000000000000000000000000000000000000000" | ||
VE_TOKEN1_NAME: "Voting Escrow Token 1" | ||
VE_TOKEN1_SYMBOL: "veTK1" | ||
TOKEN2_ADDRESS: "0x0000000000000000000000000000000000000000" | ||
VE_TOKEN2_NAME: "Voting Escrow Token 2" | ||
VE_TOKEN2_SYMBOL: "veTK2" | ||
FEE_PERCENT: "0" # 10_000 = 100% | ||
WARMUP_PERIOD: "259200" # 3 days | ||
COOLDOWN_PERIOD: "259200" # 3 days | ||
MIN_LOCK_DURATION: "1" | ||
VOTING_PAUSED: true | ||
MIN_DEPOSIT: "10000000000000000" # 0.01 ETH | ||
MULTISIG_PLUGIN_REPO_ADDRESS: "0x9e7956C8758470dE159481e5DD0d08F8B59217A2" | ||
MULTISIG_PLUGIN_RELEASE: "1" | ||
MULTISIG_PLUGIN_BUILD: "2" | ||
SIMPLE_GAUGE_VOTER_REPO_ENS_SUBDOMAIN: "gauge-voter-${{ vars.GITHUB_RUN_ID }}" | ||
DAO_FACTORY: "0x7a62da7B56fB3bfCdF70E900787010Bc4c9Ca42e" | ||
PLUGIN_SETUP_PROCESSOR: "0xC24188a73dc09aA7C721f96Ad8857B469C01dC9f" | ||
PLUGIN_REPO_FACTORY: "0x07f49c49Ce2A99CF7C28F66673d406386BDD8Ff4" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: foundry-toolchain | ||
uses: foundry-rs/[email protected] | ||
|
||
- name: Show Forge version | ||
run: forge --version | ||
|
||
- name: Run Forge build | ||
run: | | ||
forge build --sizes | ||
id: build | ||
|
||
- name: Run Forge tests | ||
run: | | ||
forge test --match-path "test/**/fork/**/*.sol" --rpc-url https://sepolia.drpc.org -vvv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
^.env.example | ||
.env* | ||
!.env.example | ||
!.env.test.example | ||
|
||
# Logs | ||
*.log | ||
|
||
# Foundry | ||
cache/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.