Skip to content

Commit

Permalink
feat: flag for diff generation (#19)
Browse files Browse the repository at this point in the history
* feat: add optional flag for diff generation

* chore: use npm

* chore: update workflow file

* fix: ci

* fix: readme

* chore: use ALCHEMY_API_KEY

* Update .env.example

Co-authored-by: Lukas <[email protected]>

* chore: update libs

---------

Co-authored-by: Lukas <[email protected]>
  • Loading branch information
brotherlymite and sakulstra authored Nov 21, 2024
1 parent b41348a commit 3a4a6e9
Show file tree
Hide file tree
Showing 26 changed files with 44 additions and 4,028 deletions.
29 changes: 0 additions & 29 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,3 @@ LEDGER_SENDER=
# Deployment via private key
PRIVATE_KEY=

# Test 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_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_ZKSYNC=https://mainnet.era.zksync.io

# 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_ZKSYNC=
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
workflow_dispatch:

jobs:
test:
test-solidity:
uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@main
secrets: inherit
test-js:
uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main
if: github.event.pull_request.head.repo.full_name == github.repository
secrets: inherit
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ git-diff :
deploy-ledger :; FOUNDRY_PROFILE=${chain} forge script $(if $(filter zksync,${chain}),--zksync) ${contract} --rpc-url ${chain} $(if ${dry},--sender 0x25F2226B597E8F9514B3F68F00f494cF4f286491 -vvvv, --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify -vvvv --slow --broadcast)
deploy-pk :; FOUNDRY_PROFILE=${chain} forge script $(if $(filter zksync,${chain}),--zksync) ${contract} --rpc-url ${chain} $(if ${dry},--sender 0x25F2226B597E8F9514B3F68F00f494cF4f286491 -vvvv, --private-key ${PRIVATE_KEY} --verify -vvvv --slow --broadcast)

run-script:; FOUNDRY_PROFILE=${network} forge script ${contract} --rpc-url ${network} --sig "run(bool)" ${broadcast} -vv
run-script:; FOUNDRY_PROFILE=${network} forge script ${contract} --rpc-url ${network} --sig "run(bool, bool)" ${broadcast} ${generate_diff} -vv
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The `AaveStewardsInjector` contract also introduces an `EXPIRATION_PERIOD` to di

```sh
cp .env.example .env
yarn
npm install
forge install
```

Expand All @@ -118,13 +118,12 @@ forge test

### How to I use the generator tooling to bootstrap the update?

Run `yarn generate` on your terminal in order to start the generator. The generator is a CLI tool which will generate the required helper contract which can be then run to submit updates to the risk steward. The generator will generate the helper contract in the `src/contracts/updates` directory.
Run `npm run generate` on your terminal in order to start the generator. The generator is a CLI tool which will generate the required helper contract which can be then run to submit updates to the risk steward. The generator will generate the helper contract in the `src/contracts/updates` directory.

To get a full list of available commands run `yarn generate --help`
To get a full list of available commands run `npm run generate --help`

```sh
yarn generate --help
yarn run v1.22.19
npm run generate --help
$ tsx generator/cli --help
Usage: proposal-generator [options]

Expand All @@ -143,11 +142,11 @@ Options:
-h, --help display help for command
```

Running `yarn generate` you should be able to do the risk updates:
Running `npm run generate` you should be able to do the risk updates:

```bash
yarn generate
yarn run v1.22.19
npm run generate

$ tsx generator/cli
? Chains this proposal targets AaveV3Ethereum
? Short title of your steward update that will be used as contract name (please refrain from including author or date) TestRateUpdate
Expand All @@ -172,11 +171,11 @@ $ tsx generator/cli

The generator generates the scripts for doing the updates in `src/contracts/updates` directory.

The script can be executed by running: `make run-script network=mainnet contract_path=src/contracts/examples/EthereumExample.sol:EthereumExample broadcast=false` where the bool inside the `broadcast=` determines if the calldata should be sent to safe. The script also emits the calldata for doing the update in the console which can be used on the safe manually as well.
The script can be executed by running: `make run-script network=mainnet contract_path=src/contracts/examples/EthereumExample.sol:EthereumExample broadcast=false generate_diff=true` where the bool inside the `broadcast=` determines if the calldata should be sent to safe and `generate_diff=` determines if diff report should be generated. The script also emits the calldata for doing the update in the console which can be used on the safe manually as well.

### Before I will submit anything to sign, how do I test out the update, or get visibility from what will happen?

Running the script generated on the contracts in `src/contracts/updates` directory with `broadcast=false`, there will files written into the diffs directory, which will show the params changed for the asset by the update, with before and after values which can be validated with what update is expected.
Running the script generated on the contracts in `src/contracts/updates` directory with `generate_diff=true`, there will files written into the diffs directory, which will show the params changed for the asset by the update, with before and after values which can be validated with what update is expected.

### Once I have full assurance it looks correct, how do I submit to Safe?

Expand Down
2 changes: 1 addition & 1 deletion generator/features/__snapshots__/capUpdates.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {IAaveV3ConfigEngine} from 'aave-v3-origin/src/contracts/extensions/v3-co
* @title test
* @author test
* - discussion: test
* - deploy-command: make run-script contract=src/contracts/updates/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.sol:AaveV3Ethereum_Test_20231023 network=mainnet broadcast=false
* - deploy-command: make run-script contract=src/contracts/updates/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.sol:AaveV3Ethereum_Test_20231023 network=mainnet broadcast=false generate_diff=true
*/
contract AaveV3Ethereum_Test_20231023 is RiskStewardsEthereum {
function name() public pure override returns (string memory) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import {IAaveV3ConfigEngine} from 'aave-v3-origin/src/contracts/extensions/v3-co
* @title test
* @author test
* - discussion: test
* - deploy-command: make run-script contract=src/contracts/updates/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.sol:AaveV3Ethereum_Test_20231023 network=mainnet broadcast=false
* - deploy-command: make run-script contract=src/contracts/updates/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.sol:AaveV3Ethereum_Test_20231023 network=mainnet broadcast=false generate_diff=true
*/
contract AaveV3Ethereum_Test_20231023 is RiskStewardsEthereum {
function name() public pure override returns (string memory) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import {IRiskSteward, IPriceCapAdapter} from '../../../interfaces/IRiskSteward.s
* @title test
* @author test
* - discussion: test
* - deploy-command: make run-script contract=src/contracts/updates/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.sol:AaveV3Ethereum_Test_20231023 network=mainnet broadcast=false
* - deploy-command: make run-script contract=src/contracts/updates/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.sol:AaveV3Ethereum_Test_20231023 network=mainnet broadcast=false generate_diff=true
*/
contract AaveV3Ethereum_Test_20231023 is RiskStewardsEthereum {
function name() public pure override returns (string memory) {
Expand Down
2 changes: 1 addition & 1 deletion generator/features/__snapshots__/rateUpdates.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import {IAaveV3ConfigEngine} from 'aave-v3-origin/src/contracts/extensions/v3-co
* @title test
* @author test
* - discussion: test
* - deploy-command: make run-script contract=src/contracts/updates/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.sol:AaveV3Ethereum_Test_20231023 network=mainnet broadcast=false
* - deploy-command: make run-script contract=src/contracts/updates/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.sol:AaveV3Ethereum_Test_20231023 network=mainnet broadcast=false generate_diff=true
*/
contract AaveV3Ethereum_Test_20231023 is RiskStewardsEthereum {
function name() public pure override returns (string memory) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {IRiskSteward} from '../../../interfaces/IRiskSteward.sol';
* @title test
* @author test
* - discussion: test
* - deploy-command: make run-script contract=src/contracts/updates/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.sol:AaveV3Ethereum_Test_20231023 network=mainnet broadcast=false
* - deploy-command: make run-script contract=src/contracts/updates/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.sol:AaveV3Ethereum_Test_20231023 network=mainnet broadcast=false generate_diff=true
*/
contract AaveV3Ethereum_Test_20231023 is RiskStewardsEthereum {
function name() public pure override returns (string memory) {
Expand Down
2 changes: 1 addition & 1 deletion generator/templates/proposal.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const proposalTemplate = (
* @title ${title || 'TODO'}
* @author ${author || 'TODO'}
* - discussion: ${discussion || 'TODO'}
* - deploy-command: make run-script contract=src/contracts/updates/${folderName}/${contractName}.sol:${contractName} network=${getChainAlias(chain)} broadcast=false
* - deploy-command: make run-script contract=src/contracts/updates/${folderName}/${contractName}.sol:${contractName} network=${getChainAlias(chain)} broadcast=false generate_diff=true
*/
contract ${contractName} is ${`RiskStewards${chain}`
} {
Expand Down
2 changes: 1 addition & 1 deletion lib/aave-capo
Submodule aave-capo updated 54 files
+24 −1 Makefile
+1 −1 lib/aave-address-book
+1 −1 lib/aave-helpers
+1 −1 lib/cl-synchronicity-price-adapter
+1 −1 lib/forge-std
+1 −0 remappings.txt
+22 −0 reports/BNBx_BNB.md
+96 −0 reports/EthX_Ethereum.md
+92 −0 reports/EzETH_EthereumLido.md
+92 −0 reports/RsETH_EthereumLido.md
+94 −33 reports/osETH_Ethereum.md
+26 −0 reports/sDAI_Ethereum.md
+26 −0 reports/sDAI_Gnosis.md
+39 −0 reports/sUSDe_Ethereum.md
+34 −13 reports/weETH_Arbitrum.md
+94 −33 reports/weETH_Ethereum.md
+36 −0 reports/weETH_base.md
+36 −0 reports/weETH_scroll.md
+15 −0 reports/wstETH_BNB.md
+1 −1 scripts/DeployArbitrumWeEth.s.sol
+39 −0 scripts/DeployBase.s.sol
+68 −0 scripts/DeployBnb.s.sol
+224 −2 scripts/DeployEthereum.s.sol
+40 −0 scripts/DeployGnosis.s.sol
+39 −0 scripts/DeployScroll.s.sol
+38 −0 src/contracts/lst-adapters/BNBxPriceCapAdapter.sol
+39 −0 src/contracts/lst-adapters/EthXPriceCapAdapter.sol
+59 −0 src/contracts/lst-adapters/EzETHPriceCapAdapter.sol
+46 −0 src/contracts/lst-adapters/RsETHPriceCapAdapter.sol
+39 −0 src/contracts/lst-adapters/SUSDePriceCapAdapter.sol
+37 −0 src/contracts/lst-adapters/sDAIGnosisPriceCapAdapter.sol
+37 −0 src/contracts/lst-adapters/sDAIMainnetPriceCapAdapter.sol
+39 −0 src/contracts/lst-adapters/sUSDSPriceCapAdapter.sol
+11 −0 src/interfaces/IBNBx.sol
+10 −0 src/interfaces/IEthX.sol
+21 −0 src/interfaces/IEzETH.sol
+8 −0 src/interfaces/IRsETH.sol
+85 −0 tests/BaseStableTest.sol
+76 −57 tests/BaseTest.sol
+20 −0 tests/base/weETHBasePriceCapAdapterTest.t.sol
+23 −0 tests/bnb/BNBxPriceCapAdapterTest.t.sol
+23 −0 tests/bnb/wstETHPriceCapAdapterTest.t.sol
+16 −0 tests/ethereum/USDSPriceCapAdapterTest.t.sol
+16 −0 tests/ethereum/USDePriceCapAdapterTest.t.sol
+26 −0 tests/ethereum/ethXPriceCapAdapterTest.t.sol
+24 −0 tests/ethereum/ezETHPriceCapAdapterTest.t.sol
+24 −0 tests/ethereum/rsETHPriceCapAdapterTest.t.sol
+23 −0 tests/ethereum/sDAIMainnetPriceCapAdapterTest.t.sol
+39 −0 tests/ethereum/sUSDSPriceCapAdapterTest.t.sol
+27 −0 tests/ethereum/sUSDePriceCapAdapterTest.t.sol
+23 −0 tests/gnosis/sDAIGnosisPriceCapAdapter.t.sol
+20 −0 tests/scroll/weETHScrollPriceCapAdapterTest.t.sol
+57 −0 tests/utils/BlockUtils.sol
+55 −4 tests/utils/GetExchangeRatesTest.t.sol
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"prettier-plugin-solidity": "1.1.3",
"vitest": "^2.0.4",
"@bgd-labs/aave-address-book": "^4.3.2",
"@bgd-labs/aave-cli": "^1.1.0",
"@bgd-labs/aave-cli": "^1.1.12",
"@bgd-labs/js-utils": "^1.4.2",
"@inquirer/prompts": "^3.3.0",
"@inquirer/testing": "^2.1.13",
Expand Down
15 changes: 9 additions & 6 deletions scripts/RiskStewardsBase.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ abstract contract RiskStewardsBase is ProtocolV3TestBase {
/**
* @notice This script doesn't broadcast as it's intended to be used via safe
*/
function run(bool broadcastToSafe) external {
function run(bool broadcastToSafe, bool generateDiffReport) external {
vm.startPrank(STEWARD.RISK_COUNCIL());
bytes[] memory callDatas = _simulateAndGenerateDiff();
bytes[] memory callDatas = _simulateAndGenerateDiff(generateDiffReport);
vm.stopPrank();

if (callDatas.length > 1) emit log_string('** multiple calldatas emitted, please execute them all **');
Expand All @@ -60,7 +60,7 @@ abstract contract RiskStewardsBase is ProtocolV3TestBase {
}
}

function _simulateAndGenerateDiff() internal returns (bytes[] memory) {
function _simulateAndGenerateDiff(bool generateDiffReport) internal returns (bytes[] memory) {
bytes[] memory callDatas = new bytes[](MAX_TX);
uint8 txCount;

Expand All @@ -73,7 +73,8 @@ abstract contract RiskStewardsBase is ProtocolV3TestBase {
IRiskSteward.PriceCapLstUpdate[] memory lstPriceCapUpdates = lstPriceCapsUpdates();
IRiskSteward.PriceCapStableUpdate[] memory stablePriceCapUpdates = stablePriceCapsUpdates();

createConfigurationSnapshot(pre, POOL);
bool rateUpdatesPresent = rateUpdates.length != 0;
if (generateDiffReport) createConfigurationSnapshot(pre, POOL, true, rateUpdatesPresent, false, false);

if (capUpdates.length != 0) {
callDatas[txCount] = abi.encodeWithSelector(
Expand Down Expand Up @@ -125,8 +126,10 @@ abstract contract RiskStewardsBase is ProtocolV3TestBase {
txCount++;
}

createConfigurationSnapshot(post, POOL);
diffReports(pre, post);
if (generateDiffReport) {
createConfigurationSnapshot(post, POOL, true, rateUpdatesPresent, false, false);
diffReports(pre, post);
}

// we defined the callDatas with MAX_TX size, we now squash it to the number of txs
assembly {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/ArbitrumExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IAaveV3ConfigEngine as IEngine} from 'aave-v3-origin/src/contracts/exten
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {RiskStewardsArbitrum} from '../../../scripts/networks/RiskStewardsArbitrum.s.sol';

// make run-script network=arbitrum contract_path=src/contracts/examples/ArbitrumExample.sol:ArbitrumExample broadcast=false
// make run-script network=arbitrum contract=src/contracts/examples/ArbitrumExample.sol:ArbitrumExample broadcast=false generate_diff=true
contract ArbitrumExample is RiskStewardsArbitrum {
/**
* @return string name identifier used for the diff
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/AvalancheExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IAaveV3ConfigEngine as IEngine} from 'aave-v3-origin/src/contracts/exten
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {RiskStewardsAvalanche} from '../../../scripts/networks/RiskStewardsAvalanche.s.sol';

// make run-script network=avalanche contract_path=src/contracts/examples/AvalancheExample.sol:AvalancheExample broadcast=false
// make run-script network=avalanche contract=src/contracts/examples/AvalancheExample.sol:AvalancheExample broadcast=false generate_diff=true
contract AvalancheExample is RiskStewardsAvalanche {
/**
* @return string name identifier used for the diff
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/BNBExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IAaveV3ConfigEngine as IEngine} from 'aave-v3-origin/src/contracts/exten
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {RiskStewardsBNB} from '../../../scripts/networks/RiskStewardsBNB.s.sol';

// make run-script network=bnb contract_path=src/contracts/examples/BNBExample.sol:BNBExample broadcast=false
// make run-script network=bnb contract=src/contracts/examples/BNBExample.sol:BNBExample broadcast=false generate_diff=true
contract BNBExample is RiskStewardsBNB {
/**
* @return string name identifier used for the diff
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/BaseExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IAaveV3ConfigEngine as IEngine} from 'aave-v3-origin/src/contracts/exten
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {RiskStewardsBaseChain} from '../../../scripts/networks/RiskStewardsBaseChain.s.sol';

// make run-script network=base contract_path=src/contracts/examples/BaseExample.sol:BaseExample broadcast=false
// make run-script network=base contract=src/contracts/examples/BaseExample.sol:BaseExample broadcast=false generate_diff=true
contract BaseExample is RiskStewardsBaseChain {
/**
* @return string name identifier used for the diff
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/EthereumExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-eng
import {RiskStewardsEthereum} from '../../../scripts/networks/RiskStewardsEthereum.s.sol';
import {IRiskSteward, IPriceCapAdapter} from '../../interfaces/IRiskSteward.sol';

// make run-script network=mainnet contract_path=src/contracts/examples/EthereumExample.sol:EthereumExample broadcast=false
// make run-script network=mainnet contract=src/contracts/examples/EthereumExample.sol:EthereumExample broadcast=false generate_diff=true
contract EthereumExample is RiskStewardsEthereum {
/**
* @return string name identifier used for the diff
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/EthereumLidoExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IAaveV3ConfigEngine as IEngine} from 'aave-v3-origin/src/contracts/exten
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {RiskStewardsEthereumLido} from '../../../scripts/networks/RiskStewardsEthereumLido.s.sol';

// make run-script network=mainnet contract_path=src/contracts/examples/EthereumLidoExample.sol:EthereumLidoExample broadcast=false
// make run-script network=mainnet contract=src/contracts/examples/EthereumLidoExample.sol:EthereumLidoExample broadcast=false generate_diff=true
contract EthereumLidoExample is RiskStewardsEthereumLido {
/**
* @return string name identifier used for the diff
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/GnosisExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IAaveV3ConfigEngine as IEngine} from 'aave-v3-origin/src/contracts/exten
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {RiskStewardsGnosis} from '../../../scripts/networks/RiskStewardsGnosis.s.sol';

// make run-script network=gnosis contract_path=src/contracts/examples/GnosisExample.sol:GnosisExample broadcast=false
// make run-script network=gnosis contract=src/contracts/examples/GnosisExample.sol:GnosisExample broadcast=false generate_diff=true
contract GnosisExample is RiskStewardsGnosis {
/**
* @return string name identifier used for the diff
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/MetisExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IAaveV3ConfigEngine as IEngine} from 'aave-v3-origin/src/contracts/exten
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {RiskStewardsMetis} from '../../../scripts/networks/RiskStewardsMetis.s.sol';

// make run-script network=metis contract_path=src/contracts/examples/MetisExample.sol:MetisExample broadcast=false
// make run-script network=metis contract=src/contracts/examples/MetisExample.sol:MetisExample broadcast=false generate_diff=true
contract MetisExample is RiskStewardsMetis {
/**
* @return string name identifier used for the diff
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/OptimismExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IAaveV3ConfigEngine as IEngine} from 'aave-v3-origin/src/contracts/exten
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {RiskStewardsOptimism} from '../../../scripts/networks/RiskStewardsOptimism.s.sol';

// make run-script network=optimism contract_path=src/contracts/examples/OptimismExample.sol:OptimismExample broadcast=false
// make run-script network=optimism contract=src/contracts/examples/OptimismExample.sol:OptimismExample broadcast=false generate_diff=true
contract OptimismExample is RiskStewardsOptimism {
/**
* @return string name identifier used for the diff
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/PolygonExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IAaveV3ConfigEngine as IEngine} from 'aave-v3-origin/src/contracts/exten
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {RiskStewardsPolygon} from '../../../scripts/networks/RiskStewardsPolygon.s.sol';

// make run-script network=polygon contract_path=src/contracts/examples/PolygonExample.sol:PolygonExample broadcast=false
// make run-script network=polygon contract=src/contracts/examples/PolygonExample.sol:PolygonExample broadcast=false generate_diff=true
contract PolygonExample is RiskStewardsPolygon {
/**
* @return string name identifier used for the diff
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/examples/ScrollExample.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IAaveV3ConfigEngine as IEngine} from 'aave-v3-origin/src/contracts/exten
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol';
import {RiskStewardsScroll} from '../../../scripts/networks/RiskStewardsScroll.s.sol';

// make run-script network=scroll contract_path=src/contracts/examples/ScrollExample.sol:ScrollExample broadcast=false
// make run-script network=scroll contract=src/contracts/examples/ScrollExample.sol:ScrollExample broadcast=false generate_diff=true
contract ScrollExample is RiskStewardsScroll {
/**
* @return string name identifier used for the diff
Expand Down
Loading

0 comments on commit 3a4a6e9

Please sign in to comment.