Closed iamchrissmith closed 1 year ago
CES changes merged in, tests pass, ready for pre-deploy review
PE-<kanban ticket issue number>
spells-goerli
(this could be revised)DssSpell.sol
(diffcheck with Goerli)
archive
Folder for Cleanup PatternsDssSpellCollateral.sol
archive
Folder for Cleanup Patternsconfig.sol
(under test
folder in src
)
deployed_spell
to address(0)
deployed_spell_created
to 0
previous_spell
address if it haven't been executed yetDssSpell.t.sol
archive
Folder for Cleanup PatternstestCollateralIntegrations
, testNewChainlogValues
, testNewIlkRegistryValues
, ...)private
// Insert new collateral integration tests here
testOSMs
, testMedianizers
)new-spells
discord channel when Exec Doc is ready0.6.12
pragma experimental ABIEncoderV2;
(Only IF DssExecLib.addNewCollateral
is used)dss-interfaces
Multi-Import Layout (see issue #69)import { VatAbstract } from "dss-interfaces/dss/VatAbstract.sol";
dss-interfaces
dss-interfaces
but TOFIXDssExecLib.address
) Matches dss-exec-lib
Latest Release Tagconfig.sol
(diffcheck with spells-goerli
)DssSpell.t.sol
(diffcheck with spells-goerli
)
make test
or make test match=<test_name>
to inspect debug traces
dapptools
dapp --version
duppgrade <latest release>
(eg. duppgrade hevm/0.49.0
)make test-forge
or make test-forge match=<test_name>
to inspect debut traces (for quicker testing)
foundry
foundryup
make test
(Ensure Good Coverage)spells-mainnet
titled "PE-Running 1 test for src/test/starknet.t.sol:StarknetTests
[PASS] testStarknet() (gas: 714782)
Test result: ok. 1 passed; 0 failed; finished in 40.08ms
Running 15 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testCastCost() (gas: 497011)
[PASS] testFailTooEarly() (gas: 12594)
[PASS] testFailTooLate() (gas: 12549)
[PASS] testFailWrongDay() (gas: 12594)
[PASS] testFail_notScheduled() (gas: 14139)
[PASS] testOnTime() (gas: 493422)
[PASS] testSpellIsCast_GENERAL() (gas: 22856338)
[PASS] testSpellIsCast_PSM_GUSD_A_tout() (gas: 503568)
[PASS] test_auth() (gas: 9223336852499061173)
[PASS] test_auth_in_sources() (gas: 9223336852485022489)
[PASS] test_bytecode_matches() (gas: 1173561)
[PASS] test_chainlog_values() (gas: 6024146)
[PASS] test_chainlog_version_bump() (gas: 3144118)
[PASS] test_nextCastTime() (gas: 338900)
[PASS] test_use_eta() (gas: 337755)
Test result: ok. 15 passed; 0 failed; finished in 217.35ms
make estimate
and adjust ETH_GAS
accordinglyETH_GAS_PRICE
accordinglygwei
, 50 gwei
could be set)ETH_PRIO_FEE
accordinglyseth chain
make deploy
(this should also verify the Spell on Etherscan)deployed_spell: address(<deployed_spell_address>)
// populate with deployed spell if deployed
deployed_spell_created: <timestamp>
// use get-created-timestamp.sh if deployed
Running 1 test for src/test/starknet.t.sol:StarknetTests
[PASS] testStarknet() (gas: 714782)
Test result: ok. 1 passed; 0 failed; finished in 145.05ms
Running 15 tests for src/DssSpell.t.sol:DssSpellTest
[PASS] testCastCost() (gas: 497011)
[PASS] testFailTooEarly() (gas: 12594)
[PASS] testFailTooLate() (gas: 12549)
[PASS] testFailWrongDay() (gas: 12594)
[PASS] testFail_notScheduled() (gas: 14139)
[PASS] testOnTime() (gas: 493422)
[PASS] testSpellIsCast_GENERAL() (gas: 24016389)
[PASS] testSpellIsCast_PSM_GUSD_A_tout() (gas: 503568)
[PASS] test_auth() (gas: 9223336852499061173)
[PASS] test_auth_in_sources() (gas: 9223336852485022489)
[PASS] test_bytecode_matches() (gas: 1173561)
[PASS] test_chainlog_values() (gas: 6024146)
[PASS] test_chainlog_version_bump() (gas: 3144118)
[PASS] test_nextCastTime() (gas: 338900)
[PASS] test_use_eta() (gas: 337755)
Test result: ok. 15 passed; 0 failed; finished in 1.07s
Description
Contribution Checklist
(PE-<TICKET_NUMBER>)
Checklist
officeHours
modifier override30 days
unless otherwise specified)ETH_GAS="XXX" ETH_GAS_PRICE="YYY" make deploy
mainnet
contract on etherscanmake archive-spell
ormake date="YYYY-MM-DD" archive-spell
to make an archive directory and copyDssSpell.sol
,DssSpell.t.sol
,DssSpell.t.base.sol
, andDssSpellCollateralOnboarding.sol
squash and merge
this PR