From 1ca03f825f920037240b69eb8a8cb30dd5ae61cf Mon Sep 17 00:00:00 2001 From: Neeraj Kashyap Date: Tue, 1 Feb 2022 07:08:10 -0800 Subject: [PATCH] Ran upgrades of Terminus contracts on mainnet --- .../terminus-update-mainnet-20220201-1442.md | 76 +++++++++++++++++++ .../terminus-update-mainnet-20220201-1442.md | 66 ++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 operations/customer-f3bc8a15-3b10-4be5-817e-0f16b4a31b6a/terminus-update-mainnet-20220201-1442.md create mode 100644 operations/terminus-update-mainnet-20220201-1442.md diff --git a/operations/customer-f3bc8a15-3b10-4be5-817e-0f16b4a31b6a/terminus-update-mainnet-20220201-1442.md b/operations/customer-f3bc8a15-3b10-4be5-817e-0f16b4a31b6a/terminus-update-mainnet-20220201-1442.md new file mode 100644 index 0000000..4966ef7 --- /dev/null +++ b/operations/customer-f3bc8a15-3b10-4be5-817e-0f16b4a31b6a/terminus-update-mainnet-20220201-1442.md @@ -0,0 +1,76 @@ +# Update the Terminus contract + +The Terminus contract is deployed as an EIP2535 Diamond proxy contract with a Terminus facet attached to it. + +This checklist describes how to update the `TerminusFacet` on the Terminus diamond contract. + +## Deployed addresses + +You will modify this section as you go through the checklist + +### `TerminusFacet` address + +``` +export TERMINUS_FACET_ADDRESS="0x6396813307826Fb315e65CA7138A41CFa09a8AB3" +``` + +## Environment variables + +- [x] `export DAO_NETWORK=` +- [x] `export DAO_OWNER=` +- [x] `export DAO_OWNER_ADDRESS=$(jq -r .address $DAO_OWNER)` +- [x] `export MAX_FEE_PER_GAS="200 gwei"` +- [x] `export MAX_PRIORITY_FEE_PER_GAS="80 gwei"` +- [x] `export CONFIRMATIONS=1` +- [x] `export TERMINUS_DIAMOND=0x99A558BDBdE247C2B2716f0D4cFb0E246DFB697D` + +## Detach existing `TerminusFacet` + +- [x] Remove `TerminusFacet` from diamond. (This may require checkout of earlier commit and `brownie compile`.) + +```bash +dao core facet-cut \ + --address $TERMINUS_DIAMOND \ + --network $DAO_NETWORK \ + --sender $DAO_OWNER \ + --max-fee-per-gas "$MAX_FEE_PER_GAS" \ + --max-priority-fee-per-gas "$MAX_PRIORITY_FEE_PER_GAS" \ + --confirmations $CONFIRMATIONS \ + --facet-name TerminusFacet \ + --action remove +``` + + +## Deploy `TerminusFacet` + +- [x] Check out relevant commit and `brownie compile`. + +- [x] Deploy `TerminusFacet` contract + +```bash +dao terminus deploy \ + --network $DAO_NETWORK \ + --sender $DAO_OWNER \ + --max-fee-per-gas "$MAX_FEE_PER_GAS" \ + --max-priority-fee-per-gas "$MAX_PRIORITY_FEE_PER_GAS" \ + --confirmations $CONFIRMATIONS +``` + +- [x] Export address of deployed contract as `export TERMINUS_FACET_ADDRESS=0x6396813307826Fb315e65CA7138A41CFa09a8AB3` + +- [x] Store address of deployed contract under `Deployed addresses / TerminusFacet address` above + +- [x] Attach `TerminusFacet` to diamond: + +```bash +dao core facet-cut \ + --address $TERMINUS_DIAMOND \ + --network $DAO_NETWORK \ + --sender $DAO_OWNER \ + --max-fee-per-gas "$MAX_FEE_PER_GAS" \ + --max-priority-fee-per-gas "$MAX_PRIORITY_FEE_PER_GAS" \ + --confirmations $CONFIRMATIONS \ + --facet-name TerminusFacet \ + --facet-address $TERMINUS_FACET_ADDRESS \ + --action add +``` diff --git a/operations/terminus-update-mainnet-20220201-1442.md b/operations/terminus-update-mainnet-20220201-1442.md new file mode 100644 index 0000000..ac320d4 --- /dev/null +++ b/operations/terminus-update-mainnet-20220201-1442.md @@ -0,0 +1,66 @@ +# Update the Terminus contract + +The Terminus contract is deployed as an EIP2535 Diamond proxy contract with a Terminus facet attached to it. + +This checklist describes how to update the `TerminusFacet` on the Terminus diamond contract. + +## Deployed addresses + +You will modify this section as you go through the checklist + +### `TerminusFacet` address + +``` +export TERMINUS_FACET_ADDRESS="0x6396813307826Fb315e65CA7138A41CFa09a8AB3" +``` + +## Environment variables + +- [x] `export DAO_NETWORK=` +- [x] `export DAO_OWNER=` +- [x] `export DAO_OWNER_ADDRESS=$(jq -r .address $DAO_OWNER)` +- [x] `export MAX_FEE_PER_GAS="200 gwei"` +- [x] `export MAX_PRIORITY_FEE_PER_GAS="80 gwei"` +- [x] `export CONFIRMATIONS=1` +- [x] `export TERMINUS_DIAMOND=0x062BEc5e84289Da2CD6147E0e4DA402B33B8f796` + + +## Detach existing `TerminusFacet` + +- [x] Remove `TerminusFacet` from diamond. (This may require checkout of earlier commit and `brownie compile`.) + +```bash +dao core facet-cut \ + --address $TERMINUS_DIAMOND \ + --network $DAO_NETWORK \ + --sender $DAO_OWNER \ + --max-fee-per-gas "$MAX_FEE_PER_GAS" \ + --max-priority-fee-per-gas "$MAX_PRIORITY_FEE_PER_GAS" \ + --confirmations $CONFIRMATIONS \ + --facet-name TerminusFacet \ + --action remove +``` + + +## Deploy `TerminusFacet` + +- [x] Check out correct branch and `brownie compile`. + +- [x] Export address of deployed contract as `export TERMINUS_FACET_ADDRESS=0x6396813307826Fb315e65CA7138A41CFa09a8AB3` + +- [x] Store address of deployed contract under `Deployed addresses / TerminusFacet address` above + +- [ ] Attach `TerminusFacet` to diamond: + +```bash +dao core facet-cut \ + --address $TERMINUS_DIAMOND \ + --network $DAO_NETWORK \ + --sender $DAO_OWNER \ + --max-fee-per-gas "$MAX_FEE_PER_GAS" \ + --max-priority-fee-per-gas "$MAX_PRIORITY_FEE_PER_GAS" \ + --confirmations $CONFIRMATIONS \ + --facet-name TerminusFacet \ + --facet-address $TERMINUS_FACET_ADDRESS \ + --action add +```