Links
Safe transaction | app.safe.global link |
Safe transaction hash | 0x425d0779ecec50f443f71ed6a43a57121d3f159c19aa8b0599a908cd1f74807b |
Safe transaction nonce | 81 |
GitHub PR | https://github.com/BeanstalkFarms/Beanstalk/pull/802 |
GitHub commit hash | https://github.com/BeanstalkFarms/Beanstalk/pull/802/commits/10c50916acdd1a2ea8c3699217779cbbe549389e |
Snapshot proposal | https://snapshot.org/#/beanstalkdao.eth/proposal/0x6d9816a73f63a122bc19d0e2690fbe744becc18dbeef2a25a39f8a48da1d44d7 |
diamondCut JSON:
Overview
Init Contract
InitBipMiscImprovements: 0x2d130cEfa0bf9D1a3e0445c9478503c326F2F8E9
Facets Being Removed
Facet | Address |
UnripeFacet | 0xD64BB5c2dBf12fEBeFc6397926A3c0aA6f8b6535 |
ConvertFacet | 0xEb1b833D3E81cb3d390514cabB9b809E6170626C |
ConvertGettersFacet | 0x8ABa09526dc6EB6Ea44eE3f8745dD8bc9EF744E2 |
SeasonFacet | 0x92458b7ade7798c45E5ff583c353F70F950d66Cf |
SeasonGettersFacet | 0x5A1675f3156c9e73D7eA20eb58470A0002865E85 |
FertilizerFacet | 0x729672c68134E2DF0CdD36D3296841A2993534c7 |
Facets Being Added
Facet | Address |
UnripeFacet | 0xb52af7889b05eF652468E98D249700415a9F587D |
ConvertFacet | 0x2604D728D8c6918b8C427bF42aa2ed07ceB5cf23 |
ConvertGettersFacet | 0x09D466663586292F5f0c1D99e9547A7A81E887f5 |
SeasonFacet | 0x51F74C024936E296132c6F4E59b9EEd677eb3B1c |
SeasonGettersFacet | 0x9fd4daD032324bC569decC3795731aEC309c2923 |
FertilizerFacet | 0x9586878Ea437CBB6D4b6381Bde7B064f531CfB77 |
Verifying the Transaction
Setup
- Follow How to Setup Environment, pulling and compiling the latest changes on the
bip-misc-upgradesbranch.
The Diamond Cut Transaction
Add the following bip49enc task to hardhat.config.js per How to Verify Facet Changes.
You can verify that the following data value in the final line of code is the one that corresponds to the BIP transaction by comparing it with the Raw data field on the Safe multisig transaction.
Verifying the Diamond Cut
- Follow How to Verify Facet Changes.
- Verify there are no remaining function selectors from the Facets Being Deprecated section above.
- Verify that all function selectors from the Facets Being Added section above are present.
Verifying the Deployed Code
- Add the following tasks to
hardhat.config.js: - Verify that each facet has the correct deployed code by:
Runing an anvil node forked from mainnet:
anvil --fork-url https://eth.llamarpc.com --chain-id 1337 Runing the script in a separate window in the protocol/ directory:
npx hardhat clean && npx hardhat compile && npx hardhat verifybip-49 --network localhostValidate that facet bytecode are correct.
Submitting Message Signature
Once Signers have verified the transaction, they shall submit and sign a verified message on Etherscan with their BCM address (guide).
Template message: Confirming that I have reviewed BIP-49 with BCM transaction nonce 81, Safe transaction hash 0x425d0779ecec50f443f71ed6a43a57121d3f159c19aa8b0599a908cd1f74807b, commit hash 10c50916acdd1a2ea8c3699217779cbbe549389e and Snapshot proposal https://snapshot.org/#/beanstalkdao.eth/proposal/0x6d9816a73f63a122bc19d0e2690fbe744becc18dbeef2a25a39f8a48da1d44d7.