Skip to content

Commit

Permalink
feat: post-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
deluca-mike authored and PierrickGT committed May 17, 2024
1 parent 423634c commit 0c3d0ee
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MNEMONIC and PRIVATE_KEY are uysed by duifferent deploy scripts
# MNEMONIC and PRIVATE_KEY are used by different deploy scripts
MNEMONIC="test test test test test test test test test test test junk"
PRIVATE_KEY=""
ETHERSCAN_API_KEY=""
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tests:
./set-epochs.sh -p test && RPC_URL=$(MAINNET_RPC_URL) ./test.sh -p $(profile)

test-match:
./set-epochs.sh -p test && RPC_URL=$(MAINNET_RPC_URL) ./test.sh -t $(match) -p $(profile)
./set-epochs.sh -p test && RPC_URL=$(MAINNET_RPC_URL) ./test.sh -t $(match) -p $(profile) -v

fuzz:
./set-epochs.sh -p test && RPC_URL=$(MAINNET_RPC_URL) ./test.sh -t testFuzz -p $(profile)
Expand Down
6 changes: 4 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ optimizer = true
optimizer_runs = 999999
verbosity = 3
ignored_error_codes = []
block_number = 19_812_380
block_timestamp = 1_715_029_200
block_number = 19_818_700
block_timestamp = 1_715_091_047
fork_block_number = 19_818_700
rpc_storage_caching = { chains = ["mainnet"], endpoints = "all" }
build_info = true
sizes = true

Expand Down
22 changes: 7 additions & 15 deletions test/Integration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ contract IntegrationTests is Test, DeployBase {

address internal constant _WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

uint256 internal constant _STANDARD_PROPOSAL_FEE = 0.01 ether;
uint256 internal constant _STANDARD_PROPOSAL_FEE = 0.2 ether;

bytes32 internal constant _BASE_MINTER_RATE = "base_minter_rate";
bytes32 internal constant _EARNER_RATE_MODEL = "earner_rate_model";
Expand Down Expand Up @@ -448,18 +448,10 @@ contract IntegrationTests is Test, DeployBase {
bytes[] internal _zeroProposalCalldatas;

function setUp() external {
vm.startPrank(_DEPLOYER);

(_registrar, _minterGateway, _minterRateModel, _earnerRateModel) = deployCore(
_DEPLOYER,
_DEPLOYER_NONCE,
_initialAccounts,
_initialBalances,
_STANDARD_PROPOSAL_FEE,
_WETH
);

vm.stopPrank();
_registrar = 0x119FbeeDD4F4f4298Fb59B720d5654442b81ae2c;
_minterGateway = 0xf7f9638cb444D65e5A40bF5ff98ebE4ff319F04E;
_minterRateModel = 0xcA144B0Ebf6B8d1dDB5dDB730a8d530fe7f70d62;
_earnerRateModel = 0x6b198067E22d3A4e5aB8CeCda41a6Da56DBf5F59;

_emergencyGovernorDeployer = getExpectedEmergencyGovernorDeployer(_DEPLOYER, _DEPLOYER_NONCE);
_emergencyGovernor = getExpectedEmergencyGovernor(_DEPLOYER, _DEPLOYER_NONCE);
Expand Down Expand Up @@ -681,8 +673,8 @@ contract IntegrationTests is Test, DeployBase {

// Creating Standard Proposals

_depositToWeth(_DEPLOYER, 0.03 ether);
_approveWETH(_DEPLOYER, _standardGovernor, 0.03 ether);
_depositToWeth(_DEPLOYER, 0.6 ether);
_approveWETH(_DEPLOYER, _standardGovernor, 0.6 ether);

_propose(_DEPLOYER, _standardGovernor, _encodeAdd(_EARNERS_LIST, _accounts[0]));
_propose(_DEPLOYER, _standardGovernor, _encodeAdd(_VALIDATORS_LIST, _validators[0]));
Expand Down

0 comments on commit 0c3d0ee

Please sign in to comment.