forked from aave-dao/aave-v3-origin
-
Notifications
You must be signed in to change notification settings - Fork 7
Horizon RWA deployment #24
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
Merged
Merged
Changes from 36 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
290d92a
feat: Add RwaAToken implementation to restrict aToken transfers (#1)
avniculae 2d079e6
feat: Restrict supply onBehalfOf in RwaAToken
yan-man 0f5aa34
feat: Block RwaAToken::mintToTreasury and RwaAToken::transferUnderlyi…
yan-man f383426
feat: Add RWA aToken Manager (#2)
avniculae 1efa031
RWA Instance Documentation (#7)
yan-man 18f0aa9
Merge branch 'main' into feat/update-from-upstream
avniculae 28503b3
Merge pull request #10 from aave/feat/update-from-upstream
avniculae b53ac1c
feat: RWA deployment scripts
avniculae a85a78c
test: Add RWA Tests (#8)
avniculae 871d15e
fix: Address Certora Review comments (#12)
avniculae e4b8cab
Merge branch 'feat/rwa-instance' into feat/rwa-deployment-scripts
avniculae 6a64ba6
feat: Add Certora formal verification for RwaAToken (#18)
miguelmtzinf dcdba65
fix: cleanup
avniculae 9c08abf
Merge branch 'feat/rwa-instance' into feat/rwa-deployment-scripts
avniculae 404a520
Merge branch 'main' into feat/rwa-deployment-scripts
yan-man 4f11a3b
feat: init updated scripts, fork tests
yan-man 4da30a4
feat: initial horizon deployment scripts
avniculae 01da30f
fix: lint
avniculae 83b9c03
fix: small fixes
avniculae 50305a7
feat: refactor tests
avniculae 4f5e6e9
fix: add rwaATokenManager to the MarketReport
avniculae c79fca7
feat: add additional roles at deployment time
avniculae 6cc1bdd
feat: refactor horizon deployment tests
avniculae 3176182
fix: add Executor support for listings
avniculae 0751ee6
Merge branch 'main' into feat/horizon-rwa-deployment
avniculae c6aef32
feat: adjust scripts (executor owned by adv multisig)
avniculae 3fc22e3
Merge branch 'main' into feat/horizon-rwa-deployment
avniculae 298d24a
feat: deploy price adapters
avniculae 13411a5
fix: tests
avniculae d12f2ac
chore: update makefile
avniculae 279728d
feat: use price adapters
avniculae 72fc923
chore: remove old config files
avniculae 951366d
feat: use setPoolPause
avniculae 1ea92ec
fix: small adjustments
avniculae 7762f1f
feat: small test refactor
avniculae 3fd4453
fix: token names
avniculae 6ec650c
fix: comments
avniculae 3a3ca21
fix: comments
avniculae dda4f7b
fix: cicd
avniculae 5a3c77a
fix: adjust existing risk params
avniculae d50e862
feat: add JTRSY & JAAA
avniculae 2a6b200
fix: update to new addresses
avniculae 91e94c9
feat: emode collateralization tests
avniculae bfceecf
fix: update to latest risk params
avniculae e429410
fix: skip pr comments
avniculae df6dfda
feat: add additional roles
avniculae eb52ad2
feat: atoken admin permission to rwa atoken manager
avniculae aa61964
feat: initial deposits
avniculae fb462f8
fix: comments
avniculae edaf3ad
fix: small fix
avniculae 7aa315c
fix: cleanup
avniculae 419d0d9
fix: comments
avniculae b668904
feat: update rwa caps
avniculae 82c464a
fix: add gho to stablecoin emodes
avniculae 925e1b3
fix: comment
avniculae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,44 +1,24 @@ | ||
| # Broadcast user address | ||
| SENDER= | ||
| # Required for all deployments | ||
| CHAIN= | ||
| ACCOUNT= # Account name from encrypted keystore, see https://getfoundry.sh/cast/reference/cast-wallet-import/ | ||
|
|
||
| # Deployment via ledger | ||
| MNEMONIC_INDEX= | ||
| LEDGER_SENDER= | ||
|
|
||
| # Deployment via private key | ||
| PRIVATE_KEY= | ||
|
|
||
| # Test rpc_endpoints | ||
| # Required for all operations | ||
| # Should be replaced with dedicated RPC endpoints | ||
| RPC_MAINNET=https://eth.llamarpc.com | ||
| RPC_AVALANCHE=https://api.avax.network/ext/bc/C/rpc | ||
| RPC_OPTIMISM=https://optimism.llamarpc.com | ||
| RPC_AVALANCHE=https://api.avax.network/ext/bc/C/rpc | ||
| RPC_POLYGON=https://polygon.llamarpc.com | ||
| RPC_ARBITRUM=https://arbitrum.llamarpc.com | ||
| RPC_FANTOM=https://rpc.ftm.tools | ||
| RPC_HARMONY=https://api.harmony.one | ||
| RPC_METIS=https://andromeda.metis.io/?owner=1088 | ||
| RPC_BASE=https://base.llamarpc.com | ||
| RPC_ZKEVM=https://zkevm-rpc.com | ||
| RPC_GNOSIS=https://rpc.ankr.com/gnosis | ||
| RPC_BNB=https://binance.llamarpc.com | ||
| RPC_SCROLL=https://rpc.scroll.io | ||
| RPC_AMOY="https://rpc-amoy.polygon.technology" | ||
|
|
||
| # Etherscan api keys for verification & download utils | ||
| ETHERSCAN_API_KEY_MAINNET= | ||
| ETHERSCAN_API_KEY_POLYGON= | ||
| ETHERSCAN_API_KEY_AVALANCHE= | ||
| ETHERSCAN_API_KEY_FANTOM= | ||
| ETHERSCAN_API_KEY_OPTIMISM= | ||
| ETHERSCAN_API_KEY_ARBITRUM= | ||
| ETHERSCAN_API_KEY_BASE= | ||
| ETHERSCAN_API_KEY_ZKEVM= | ||
| ETHERSCAN_API_KEY_GNOSIS= | ||
| ETHERSCAN_API_KEY_BNB= | ||
| ETHERSCAN_API_KEY_SCROLL= | ||
| ETHERSCAN_API_KEY_CELO= | ||
| RPC_CELO=https://rpc.ankr.com/celo | ||
| RPC_BNB=https://binance.llamarpc.com | ||
| RPC_GNOSIS=https://rpc.ankr.com/gnosis | ||
| RPC_BASE=https://base.llamarpc.com | ||
| RPC_METIS=https://andromeda.metis.io/?owner=1088 | ||
| RPC_LINEA=https://linea.drpc.org | ||
| RPC_SEPOLIA=https://ethereum-sepolia-rpc.publicnode.com | ||
|
|
||
| # Simulation/fork creation | ||
| TENDERLY_ACCESS_TOKEN= | ||
| TENDERLY_ACCOUNT= | ||
| TENDERLY_PROJECT= | ||
| # Required for all operations. Uses etherscan v2. | ||
| ETHERSCAN_API_KEY= | ||
| VERIFIER_URL=https://api.etherscan.io/api |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,24 @@ | ||
| // SPDX-License-Identifier: BUSL-1.1 | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import {MarketReport} from '../../src/deployments/interfaces/IMarketReportTypes.sol'; | ||
| import {HorizonPhaseOneListing} from '../../src/deployments/inputs/HorizonPhaseOneListing.sol'; | ||
| import {IMetadataReporter} from '../../src/deployments/interfaces/IMetadataReporter.sol'; | ||
| import {DeployUtils} from '../../src/deployments/contracts/utilities/DeployUtils.sol'; | ||
| import {HorizonInput} from '../../src/deployments/inputs/HorizonInput.sol'; | ||
| import {Script} from 'forge-std/Script.sol'; | ||
|
|
||
| contract DeployHorizonPhaseOnePayload is Script, DeployUtils, HorizonInput { | ||
| function run(string memory reportPath) public returns (address) { | ||
| IMetadataReporter metadataReporter = IMetadataReporter( | ||
| _deployFromArtifacts('MetadataReporter.sol:MetadataReporter') | ||
| ); | ||
| MarketReport memory report = metadataReporter.parseMarketReport(reportPath); | ||
|
|
||
| vm.startBroadcast(); | ||
| HorizonPhaseOneListing horizonInitialListing = new HorizonPhaseOneListing(report); | ||
| vm.stopBroadcast(); | ||
|
|
||
| return address(horizonInitialListing); | ||
| } | ||
| } |
This file contains hidden or 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 @@ | ||
| // SPDX-License-Identifier: BUSL-1.1 | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import {ScaledPriceAdapter} from '../../src/contracts/extensions/price-adapters/ScaledPriceAdapter.sol'; | ||
| import {Script} from 'forge-std/Script.sol'; | ||
|
|
||
| contract DeployScaledPriceAdapter is Script { | ||
| function run(address source) public returns (address) { | ||
| vm.startBroadcast(); | ||
| ScaledPriceAdapter scaledPriceAdapter = new ScaledPriceAdapter(source); | ||
| vm.stopBroadcast(); | ||
| return address(scaledPriceAdapter); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.