Skip to content

Commit

Permalink
fix: deploy script (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlymite authored Nov 8, 2023
1 parent d0436f7 commit b32a207
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions src/20231101_Multi_FreezeStewards/FreezeStewards_20231101.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,54 @@ pragma solidity ^0.8.0;
import {GovV3Helpers, IPayloadsControllerCore, PayloadsControllerUtils} from 'aave-helpers/GovV3Helpers.sol';
import {EthereumScript, AvalancheScript, MetisScript, BaseScript} from 'aave-helpers/ScriptUtils.sol';

/**
* @dev Deploy Avalanche
* command: make deploy-ledger contract=src/20231101_Multi_FreezeStewards/FreezeStewards_20231101.s.sol:DeployAvalanche chain=avalanche
*/
contract DeployAvalanche is AvalancheScript {
function run() external broadcast {
// compose action
IPayloadsControllerCore.ExecutionAction[]
memory actions = new IPayloadsControllerCore.ExecutionAction[](1);
actions[0] = GovV3Helpers.buildAction(address(0xa3255CfE96D192dDe036c30b10AF9a29bb358157));

// register action at payloadsController
GovV3Helpers.createPayload(actions);
}
}

/**
* @dev Deploy Metis
* command: make deploy-ledger contract=src/20231101_Multi_FreezeStewards/FreezeStewards_20231101.s.sol:DeployMetis chain=metis
*/
contract DeployMetis is MetisScript {
function run() external broadcast {
// compose action
IPayloadsControllerCore.ExecutionAction[]
memory actions = new IPayloadsControllerCore.ExecutionAction[](1);
actions[0] = GovV3Helpers.buildAction(address(0x0f24aF3ea7460E09E33B2e9814Df5856433BE80D));

// register action at payloadsController
GovV3Helpers.createPayload(actions);
}
}

/**
* @dev Deploy Base
* command: make deploy-ledger contract=src/20231101_Multi_FreezeStewards/FreezeStewards_20231101.s.sol:DeployBase chain=base
*/
contract DeployBase is BaseScript {
function run() external broadcast {
// compose action
IPayloadsControllerCore.ExecutionAction[]
memory actions = new IPayloadsControllerCore.ExecutionAction[](1);
actions[0] = GovV3Helpers.buildAction(address(0x889c0cc3283DB588A34E89Ad1E8F25B0fc827b4b));

// register action at payloadsController
GovV3Helpers.createPayload(actions);
}
}

/**
* @dev Create Proposal
* command: make deploy-ledger contract=src/20231101_Multi_FreezeStewards/FreezeStewards_20231101.s.sol:CreateProposal chain=mainnet
Expand Down

1 comment on commit b32a207

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Foundry report

forge 0.2.0 (85f25c6 2023-11-08T00:21:30.290593993Z)
Build log
Compiling 151 files with 0.8.19
Solc 0.8.19 finished in 50.48s
Compiler run successful with warnings:
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
   --> lib/aave-helpers/src/GovV3Helpers.sol:734:5:
    |
734 |     address votingPortal
    |     ^^^^^^^^^^^^^^^^^^^^

| Contract                                               | Size (kB) | Margin (kB) |
|--------------------------------------------------------|-----------|-------------|
| AaveGovernanceV2                                       | 0.086     | 24.49       |
| AaveV1Ethereum_FixedREPPriceFeed_20231031              | 0.706     | 23.87       |
| AaveV2Avalanche                                        | 0.086     | 24.49       |
| AaveV2AvalancheAssets                                  | 0.086     | 24.49       |
| AaveV2Ethereum                                         | 0.086     | 24.49       |
| AaveV2EthereumAMM                                      | 0.086     | 24.49       |
| AaveV2EthereumAMMAssets                                | 0.086     | 24.49       |
| AaveV2EthereumAssets                                   | 0.086     | 24.49       |
| AaveV2Ethereum_AaveV2EthereumLTReduction_20231030      | 3.023     | 21.553      |
| AaveV2Ethereum_Disable_Stable_Borrows_20231104         | 2.519     | 22.057      |
| AaveV2Polygon                                          | 0.086     | 24.49       |
| AaveV2PolygonAssets                                    | 0.086     | 24.49       |
| AaveV3Arbitrum                                         | 0.086     | 24.49       |
| AaveV3ArbitrumAssets                                   | 0.086     | 24.49       |
| AaveV3ArbitrumEModes                                   | 0.086     | 24.49       |
| AaveV3Arbitrum_Disable_Stable_Borrows_20231104         | 4.14      | 20.436      |
| AaveV3Avalanche                                        | 0.086     | 24.49       |
| AaveV3AvalancheAssets                                  | 0.086     | 24.49       |
| AaveV3AvalancheEModes                                  | 0.086     | 24.49       |
| AaveV3Avalanche_Disable_Stable_Borrows_20231104        | 3.471     | 21.105      |
| AaveV3Ethereum                                         | 0.086     | 24.49       |
| AaveV3EthereumAssets                                   | 0.086     | 24.49       |
| AaveV3EthereumEModes                                   | 0.086     | 24.49       |
| AaveV3Ethereum_ACIPhaseII_20231029                     | 0.682     | 23.894      |
| AaveV3Ethereum_ChaosLabsRiskManagementRenewal_20231101 | 1.014     | 23.562      |
| AaveV3Fantom                                           | 0.086     | 24.49       |
| AaveV3FantomAssets                                     | 0.086     | 24.49       |
| AaveV3FantomEModes                                     | 0.086     | 24.49       |
| AaveV3Gnosis                                           | 0.086     | 24.49       |
| AaveV3GnosisAssets                                     | 0.086     | 24.49       |
| AaveV3GnosisEModes                                     | 0.086     | 24.49       |
| AaveV3Gnosis_AaveV3GnosisActivation_20231026           | 8.802     | 15.774      |
| AaveV3Harmony                                          | 0.086     | 24.49       |
| AaveV3HarmonyAssets                                    | 0.086     | 24.49       |
| AaveV3HarmonyEModes                                    | 0.086     | 24.49       |
| AaveV3Optimism                                         | 0.086     | 24.49       |
| AaveV3OptimismAssets                                   | 0.086     | 24.49       |
| AaveV3OptimismEModes                                   | 0.086     | 24.49       |
| AaveV3Optimism_Disable_Stable_Borrows_20231104         | 3.851     | 20.725      |
| AaveV3Polygon                                          | 0.086     | 24.49       |
| AaveV3PolygonAssets                                    | 0.086     | 24.49       |
| AaveV3PolygonEModes                                    | 0.086     | 24.49       |
| AaveV3Polygon_Disable_Stable_Borrows_20231104          | 4.139     | 20.437      |
| Address                                                | 0.086     | 24.49       |
| ChainHelpers                                           | 0.086     | 24.49       |
| ChainIds                                               | 0.086     | 24.49       |
| ConfiguratorInputTypes                                 | 0.086     | 24.49       |
| Create2Utils                                           | 0.164     | 24.412      |
| DataTypes                                              | 0.086     | 24.49       |
| EngineFlags                                            | 0.086     | 24.49       |
| Errors                                                 | 4.714     | 19.862      |
| GovHelpers                                             | 0.086     | 24.49       |
| GovV3Helpers                                           | 0.086     | 24.49       |
| GovV3StorageHelpers                                    | 0.086     | 24.49       |
| GovernanceV3Arbitrum                                   | 0.086     | 24.49       |
| GovernanceV3Avalanche                                  | 0.086     | 24.49       |
| GovernanceV3BNB                                        | 0.086     | 24.49       |
| GovernanceV3Base                                       | 0.086     | 24.49       |
| GovernanceV3Ethereum                                   | 0.086     | 24.49       |
| GovernanceV3Gnosis                                     | 0.086     | 24.49       |
| GovernanceV3Metis                                      | 0.086     | 24.49       |
| GovernanceV3Optimism                                   | 0.086     | 24.49       |
| GovernanceV3Polygon                                    | 0.086     | 24.49       |
| IpfsUtils                                              | 0.086     | 24.49       |
| MiscEthereum                                           | 0.086     | 24.49       |
| MockExecutor                                           | 0.437     | 24.139      |
| PayloadsControllerUtils                                | 0.086     | 24.49       |
| ProxyHelpers                                           | 0.086     | 24.49       |
| ReserveConfiguration                                   | 0.171     | 24.405      |
| SafeERC20                                              | 0.086     | 24.49       |
| StdStyle                                               | 0.086     | 24.49       |
| StorageHelpers                                         | 0.086     | 24.49       |
| WadRayMath                                             | 0.086     | 24.49       |
| console                                                | 0.086     | 24.49       |
| console2                                               | 0.086     | 24.49       |
| safeconsole                                            | 0.086     | 24.49       |
| stdError                                               | 0.591     | 23.985      |
| stdJson                                                | 0.086     | 24.49       |
| stdMath                                                | 0.086     | 24.49       |
| stdStorage                                             | 0.086     | 24.49       |
| stdStorageSafe                                         | 0.086     | 24.49       |
Test success 🌈

Please sign in to comment.