Skip to content

Commit 309643e

Browse files
feat: init Horizon proposals repo (#1)
* chore: rm existing proposals * feat: e2e test * chore: incorporate prior listing tests * test: helper for RWA tests, whitelisting; acred helper * feat: clean up helpers, deal for ACRED tests * feat: ACRED listing test * rft: test actor set up * chore: rm unneeded * fix: makefile, deployment * test: reserve config tests; rename files * chore: diff * chore: clean up old diffs * test: assertions on rwa transfers; ir * fix: payload execution * chore: more accurate supply cap * chore: pin to prior helpers version for IEngine struct updates * fix: rm deps that are affected by 3.5 rollback * chore: dummy gitkeep * test: post-exec fork tests; pr comments; rwa borrow test * test: assertion on price source * fix: cleanup and refactor * fix: pr comments * fix: helper clean up * fix: rename helpers * fix: deps * fix: pr comments * chore: etherscan links * fix: additional cleanup * fix: more clean up and test scenarios * test: expand tests to every coll/debt combo * chore: use prague for all evm versions * test: create abstract main test * test: check rwa aToken transfer * test: check on incentive controller * test: run post exec tests --------- Co-authored-by: DhairyaSethi <55102840+DhairyaSethi@users.noreply.github.com>
1 parent f336642 commit 309643e

38 files changed

Lines changed: 2252 additions & 3183 deletions

.env.example

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Deployment via ledger
2-
MNEMONIC_INDEX=
3-
LEDGER_SENDER=
4-
5-
# Deployment via private key
6-
PRIVATE_KEY=
1+
# Verifier URL for contract verification
2+
VERIFIER_URL=
3+
# leave DRY blank to disable dry run
4+
DRY=
5+
ACCOUNT=
6+
CHAIN=
7+
PAYLOAD=
78

89
# Test rpc_endpoints
910
# To generate RPCs based on you api keys, you can use

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
[submodule "lib/aave-umbrella"]
66
path = lib/aave-umbrella
77
url = https://github.com/aave-dao/aave-umbrella
8+
[submodule "lib/aave-address-book"]
9+
path = lib/aave-address-book
10+
url = https://github.com/bgd-labs/aave-address-book

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ test :; forge test -vvv
1111

1212
test-contract :; forge test --match-contract ${filter} -vv
1313

14-
# Deploy
15-
deploy-ledger-zk :; FOUNDRY_PROFILE=zksync forge script $(if $(filter zksync,${chain}),--zksync) ${contract} --rpc-url ${chain} $(if ${dry},--sender 0x73AF3bcf944a6559933396c1577B257e2054D935 -vvvv, --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify -vvvv --slow --broadcast --verifier etherscan)
16-
deploy-ledger :; forge script $(if $(filter zksync,${chain}),--zksync) ${contract} --rpc-url ${chain} $(if ${dry},--sender 0x73AF3bcf944a6559933396c1577B257e2054D935 -vvvv, --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify -vvvv --slow --broadcast) $(if ${legacy}, --legacy, )
17-
deploy-pk :; forge script $(if $(filter zksync,${chain}),--zksync) ${contract} --rpc-url ${chain} $(if ${dry},--sender 0x73AF3bcf944a6559933396c1577B257e2054D935 -vvvv, --private-key ${PRIVATE_KEY} --verify -vvvv --slow --broadcast)
14+
# Deploys payload. `make deploy deploy-payload`
15+
deploy-payload :;
16+
FOUNDRY_PROFILE=${CHAIN} forge script src/AaveV3Horizon_${PAYLOAD}/${PAYLOAD}.s.sol:DeployEthereum \
17+
--rpc-url ${CHAIN} --account ${ACCOUNT} --slow --gas-estimate-multiplier 150 \
18+
--chain ${CHAIN} --verifier-url ${VERIFIER_URL} \
19+
--sig "run()" \
20+
$(if ${DRY},, --broadcast --verify) \
1821

1922
# Utilities
2023
download :; cast etherscan-source --chain ${chain} -d src/etherscan/${chain}_${address} ${address}

0 commit comments

Comments
 (0)