Closed iamchrissmith closed 2 years ago
@krzkaczor tagging you for the Optimism Dai recovery to make sure I understood things correctly
and test
Tests pass: Running 14 tests for src/DssSpell.t.sol:DssSpellTest [PASS] testFail_notScheduled() (gas: 4661) [PASS] test_auth_in_sources() (gas: 281473904839054) [PASS] test_use_eta() (gas: 324298) [PASS] testOnTime() (gas: 990152) [PASS] test_nextCastTime() (gas: 325171) [PASS] testFailTooEarly() (gas: 3595) [PASS] test_bytecode_matches() (gas: 1494324) [PASS] test_auth() (gas: 281473913170777) [PASS] testSpellIsCast_GENERAL() (gas: 8484169) [PASS] testFailWrongDay() (gas: 3528) [PASS] testCastCost() (gas: 991719) [PASS] testDelegatePayments() (gas: 1014269) [PASS] testFailTooLate() (gas: 3527) [PASS] testOptimismRecovery() (gas: 1000229)
:heavy_check_mark: good for deployment
dapp-test: rpc block: latest
Running 14 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testFail_notScheduled() (gas: 4736)
[PASS] test_auth_in_sources() (gas: 281473904814750)
[PASS] test_use_eta() (gas: 323931)
[PASS] testOnTime() (gas: 989773)
[PASS] test_nextCastTime() (gas: 324773)
[PASS] testFailTooEarly() (gas: 3457)
[PASS] test_bytecode_matches() (gas: 1237845)
[PASS] test_auth() (gas: 281473912900233)
[PASS] testSpellIsCast_GENERAL() (gas: 8157650)
[PASS] testFailWrongDay() (gas: 3677)
[PASS] testCastCost() (gas: 991637)
[PASS] testDelegatePayments() (gas: 1013213)
[PASS] testFailTooLate() (gas: 3853)
[PASS] testOptimismRecovery() (gas: 999987)
(tested with dapptools and optimizations on)
dapp-test: rpc block: latest
Running 14 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testFail_notScheduled() (gas: 4780)
[PASS] test_auth_in_sources() (gas: 281473904814750)
[PASS] test_use_eta() (gas: 323975)
[PASS] testOnTime() (gas: 989861)
[PASS] test_nextCastTime() (gas: 324861)
[PASS] testFailTooEarly() (gas: 3545)
[PASS] test_bytecode_matches() (gas: 1265615)
[PASS] test_auth() (gas: 281473912900233)
[PASS] testSpellIsCast_GENERAL() (gas: 8185548)
[PASS] testFailWrongDay() (gas: 3765)
[PASS] testCastCost() (gas: 991725)
[PASS] testDelegatePayments() (gas: 1013301)
[PASS] testFailTooLate() (gas: 3941)
[PASS] testOptimismRecovery() (gas: 1000075)
Tests pass but contract is not verified: https://etherscan.io/address/0xdd5052bfc4d281793653b0037d46cc2d8d1fd1b5#code
dapp-test: rpc block: latest
Running 14 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testFail_notScheduled() (gas: 12280)
[PASS] test_auth_in_sources() (gas: 281473904816812)
[PASS] test_use_eta() (gas: 333475)
[PASS] testOnTime() (gas: 1001861)
[PASS] test_nextCastTime() (gas: 334361)
[PASS] testFailTooEarly() (gas: 8545)
[PASS] test_bytecode_matches() (gas: 1281615)
[PASS] test_auth() (gas: 281473912902296)
[PASS] testSpellIsCast_GENERAL() (gas: 9464158)
[PASS] testFailWrongDay() (gas: 8765)
[PASS] testCastCost() (gas: 1003725)
[PASS] testDelegatePayments() (gas: 1025301)
[PASS] testFailTooLate() (gas: 8941)
[PASS] testOptimismRecovery() (gas: 1012075)
dapp-test: rpc block: latest
Running 14 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testFail_notScheduled() (gas: 12280)
[PASS] test_auth_in_sources() (gas: 281473904816812)
[PASS] test_use_eta() (gas: 333475)
[PASS] testOnTime() (gas: 1001861)
[PASS] test_nextCastTime() (gas: 334361)
[PASS] testFailTooEarly() (gas: 8545)
[PASS] test_bytecode_matches() (gas: 1281615)
[PASS] test_auth() (gas: 281473912902296)
[PASS] testSpellIsCast_GENERAL() (gas: 9464158)
[PASS] testFailWrongDay() (gas: 8765)
[PASS] testCastCost() (gas: 1003725)
[PASS] testDelegatePayments() (gas: 1025301)
[PASS] testFailTooLate() (gas: 8941)
[PASS] testOptimismRecovery() (gas: 1012075)
There seems to be an issue with the verify script and the new structure. It's now verified manually.
Description
Contribution Checklist
(PE-<TICKET_NUMBER>)
Checklist
officeHours
modifier4 days
monthly and30 days
for the rest)ETH_GAS="XXX" ETH_GAS_PRICE="YYY" make deploy
mainnet
contract on etherscanmake date="YYYY-MM-DD" archive-spell
to make an archive directory and copyDssSpell.sol
,DssSpell.t.sol
, andDssSpell.t.base.sol
squash and merge
this PR