Skip to content

Commit b202146

Browse files
committed
Merge branch 'master' into DanielVF/ousd-rebasing-migration-tidy
2 parents 958070b + 2b51eeb commit b202146

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+13538
-11251
lines changed

.github/workflows/ousd.yml

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -147,68 +147,3 @@ jobs:
147147
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
148148
with:
149149
args: --severity-threshold=high --all-projects
150-
151-
build-image:
152-
name: "Deploy App"
153-
runs-on: ubuntu-latest
154-
needs: [contracts-lint, dapp-lint]
155-
environment:
156-
name: ${{ github.ref_name }}
157-
env:
158-
HEROKU_TOKEN: ${{ secrets.HEROKU_TOKEN }}
159-
CURR_BRANCH: ${{ github.ref_name }}
160-
if: ${{ contains(fromJSON('["master", "staging", "stable"]'), github.ref_name) }}
161-
steps:
162-
- uses: actions/checkout@v3
163-
164-
- name: Set up QEMU
165-
uses: docker/setup-qemu-action@v2
166-
167-
- name: Set up Docker Buildx
168-
uses: docker/setup-buildx-action@v2
169-
170-
- name: Identify Heroku App Name
171-
shell: bash
172-
run:
173-
if [[ $CURR_BRANCH == "stable" ]]; then
174-
echo "HEROKU_APP_NAME=ousd-dapp" >> $GITHUB_ENV;
175-
else
176-
echo "HEROKU_APP_NAME=ousd-dapp-staging" >> $GITHUB_ENV;
177-
fi;
178-
id: heroku_app
179-
180-
- name: Heroku Login
181-
uses: akhileshns/[email protected]
182-
if: ${{ contains(fromJSON('["staging", "stable"]'), github.ref_name) }}
183-
with:
184-
justlogin: true
185-
heroku_api_key: ${{secrets.HEROKU_TOKEN}}
186-
heroku_app_name: ${{env.HEROKU_APP_NAME}}
187-
heroku_email: ${{secrets.HEROKU_EMAIL}}
188-
189-
- name: Run Docker Login
190-
if: ${{ contains(fromJSON('["staging", "stable"]'), github.ref_name) }}
191-
run: docker login --username=_ --password=$HEROKU_TOKEN registry.heroku.com
192-
193-
- name: Extract Deployment Env
194-
env:
195-
HEROKU_APP_NAME: ${{env.HEROKU_APP_NAME}}
196-
working-directory: dapp
197-
run: heroku config -s -a $HEROKU_APP_NAME > deploy.env
198-
199-
- name: Build and Push
200-
uses: docker/build-push-action@v3
201-
if: ${{ contains(fromJSON('["staging", "stable"]'), github.ref_name) }}
202-
env:
203-
NODE_ENV: production
204-
with:
205-
context: .
206-
push: true
207-
tags: registry.heroku.com/${{env.HEROKU_APP_NAME}}/web
208-
provenance: false
209-
210-
- name: Deploy to Heroku
211-
if: ${{ contains(fromJSON('["staging", "stable"]'), github.ref_name) }}
212-
env:
213-
HEROKU_APP_NAME: ${{env.HEROKU_APP_NAME}}
214-
run: heroku container:release web -a $HEROKU_APP_NAME

Dockerfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: yarn run start

brownie/addresses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
HARVESTER = '0x21fb5812d70b3396880d30e90d9e5c1202266c89'
2828
DRIPPER = '0x80c898ae5e56f888365e235ceb8cea3eb726cb58'
2929
VAULT_PROXY_ADDRESS = '0xE75D77B1865Ae93c7eaa3040B038D7aA7BC02F70'
30-
VAULT_ADMIN_IMPL = '0x8e55b527901bc88206a1ce5c292b2404bcb8f76d'
30+
VAULT_ADMIN_IMPL = '0x1eF0553FEb80e6f133cAe3092e38F0b23dA6452b'
3131
VAULT_CORE_IMPL = '0xf00d4b19458c594d4ea9d0b9861edfd2c444fa9a'
3232
VAULT_VALUE_CHECKER = '0xEEcD72c99749A1FC977704AB900a05e8300F4318'
3333
OUSD_METASTRAT = '0x89eb88fedc50fc77ae8a18aad1ca0ac27f777a90'

cloudbuild-staging.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

cloudbuild.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

contracts/abi/governor_five.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

contracts/abi/timelock.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"inputs": [{"internalType": "address[]","name": "proposers","type": "address[]"},{"internalType": "address[]","name": "executors","type": "address[]"}],"stateMutability": "nonpayable","type": "constructor","name": "constructor"},{"anonymous": false,"inputs": [{"indexed": true,"internalType": "bytes32","name": "id","type": "bytes32"},{"indexed": true,"internalType": "uint256","name": "index","type": "uint256"},{"indexed": false,"internalType": "address","name": "target","type": "address"},{"indexed": false,"internalType": "uint256","name": "value","type": "uint256"},{"indexed": false,"internalType": "bytes","name": "data","type": "bytes"}],"name": "CallExecuted","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"internalType": "bytes32","name": "id","type": "bytes32"},{"indexed": true,"internalType": "uint256","name": "index","type": "uint256"},{"indexed": false,"internalType": "address","name": "target","type": "address"},{"indexed": false,"internalType": "uint256","name": "value","type": "uint256"},{"indexed": false,"internalType": "bytes","name": "data","type": "bytes"},{"indexed": false,"internalType": "bytes32","name": "predecessor","type": "bytes32"},{"indexed": false,"internalType": "uint256","name": "delay","type": "uint256"}],"name": "CallScheduled","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"internalType": "bytes32","name": "id","type": "bytes32"}],"name": "Cancelled","type": "event"},{"anonymous": false,"inputs": [{"indexed": false,"internalType": "uint256","name": "oldDuration","type": "uint256"},{"indexed": false,"internalType": "uint256","name": "newDuration","type": "uint256"}],"name": "MinDelayChange","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"internalType": "bytes32","name": "role","type": "bytes32"},{"indexed": true,"internalType": "bytes32","name": "previousAdminRole","type": "bytes32"},{"indexed": true,"internalType": "bytes32","name": "newAdminRole","type": "bytes32"}],"name": "RoleAdminChanged","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"internalType": "bytes32","name": "role","type": "bytes32"},{"indexed": true,"internalType": "address","name": "account","type": "address"},{"indexed": true,"internalType": "address","name": "sender","type": "address"}],"name": "RoleGranted","type": "event"},{"anonymous": false,"inputs": [{"indexed": true,"internalType": "bytes32","name": "role","type": "bytes32"},{"indexed": true,"internalType": "address","name": "account","type": "address"},{"indexed": true,"internalType": "address","name": "sender","type": "address"}],"name": "RoleRevoked","type": "event"},{"inputs": [],"name": "CANCELLER_ROLE","outputs": [{"internalType": "bytes32","name": "","type": "bytes32"}],"stateMutability": "view","type": "function"},{"inputs": [],"name": "DEFAULT_ADMIN_ROLE","outputs": [{"internalType": "bytes32","name": "","type": "bytes32"}],"stateMutability": "view","type": "function"},{"inputs": [],"name": "EXECUTOR_ROLE","outputs": [{"internalType": "bytes32","name": "","type": "bytes32"}],"stateMutability": "view","type": "function"},{"inputs": [],"name": "PROPOSER_ROLE","outputs": [{"internalType": "bytes32","name": "","type": "bytes32"}],"stateMutability": "view","type": "function"},{"inputs": [],"name": "TIMELOCK_ADMIN_ROLE","outputs": [{"internalType": "bytes32","name": "","type": "bytes32"}],"stateMutability": "view","type": "function"},{"inputs": [{"internalType": "bytes32","name": "id","type": "bytes32"}],"name": "cancel","outputs": [],"stateMutability": "nonpayable","type": "function"},{"inputs": [{"internalType": "address","name": "target","type": "address"},{"internalType": "uint256","name": "value","type": "uint256"},{"internalType": "bytes","name": "data","type": "bytes"},{"internalType": "bytes32","name": "predecessor","type": "bytes32"},{"internalType": "bytes32","name": "salt","type": "bytes32"}],"name": "execute","outputs": [],"stateMutability": "payable","type": "function"},{"inputs": [{"internalType": "address[]","name": "targets","type": "address[]"},{"internalType": "uint256[]","name": "values","type": "uint256[]"},{"internalType": "bytes[]","name": "payloads","type": "bytes[]"},{"internalType": "bytes32","name": "predecessor","type": "bytes32"},{"internalType": "bytes32","name": "salt","type": "bytes32"}],"name": "executeBatch","outputs": [],"stateMutability": "payable","type": "function"},{"inputs": [],"name": "getMinDelay","outputs": [{"internalType": "uint256","name": "duration","type": "uint256"}],"stateMutability": "view","type": "function"},{"inputs": [{"internalType": "bytes32","name": "role","type": "bytes32"}],"name": "getRoleAdmin","outputs": [{"internalType": "bytes32","name": "","type": "bytes32"}],"stateMutability": "view","type": "function"},{"inputs": [{"internalType": "bytes32","name": "id","type": "bytes32"}],"name": "getTimestamp","outputs": [{"internalType": "uint256","name": "timestamp","type": "uint256"}],"stateMutability": "view","type": "function"},{"inputs": [{"internalType": "bytes32","name": "role","type": "bytes32"},{"internalType": "address","name": "account","type": "address"}],"name": "grantRole","outputs": [],"stateMutability": "nonpayable","type": "function"},{"inputs": [{"internalType": "bytes32","name": "role","type": "bytes32"},{"internalType": "address","name": "account","type": "address"}],"name": "hasRole","outputs": [{"internalType": "bool","name": "","type": "bool"}],"stateMutability": "view","type": "function"},{"inputs": [{"internalType": "address","name": "target","type": "address"},{"internalType": "uint256","name": "value","type": "uint256"},{"internalType": "bytes","name": "data","type": "bytes"},{"internalType": "bytes32","name": "predecessor","type": "bytes32"},{"internalType": "bytes32","name": "salt","type": "bytes32"}],"name": "hashOperation","outputs": [{"internalType": "bytes32","name": "hash","type": "bytes32"}],"stateMutability": "pure","type": "function"},{"inputs": [{"internalType": "address[]","name": "targets","type": "address[]"},{"internalType": "uint256[]","name": "values","type": "uint256[]"},{"internalType": "bytes[]","name": "payloads","type": "bytes[]"},{"internalType": "bytes32","name": "predecessor","type": "bytes32"},{"internalType": "bytes32","name": "salt","type": "bytes32"}],"name": "hashOperationBatch","outputs": [{"internalType": "bytes32","name": "hash","type": "bytes32"}],"stateMutability": "pure","type": "function"},{"inputs": [{"internalType": "bytes32","name": "id","type": "bytes32"}],"name": "isOperation","outputs": [{"internalType": "bool","name": "pending","type": "bool"}],"stateMutability": "view","type": "function"},{"inputs": [{"internalType": "bytes32","name": "id","type": "bytes32"}],"name": "isOperationDone","outputs": [{"internalType": "bool","name": "done","type": "bool"}],"stateMutability": "view","type": "function"},{"inputs": [{"internalType": "bytes32","name": "id","type": "bytes32"}],"name": "isOperationPending","outputs": [{"internalType": "bool","name": "pending","type": "bool"}],"stateMutability": "view","type": "function"},{"inputs": [{"internalType": "bytes32","name": "id","type": "bytes32"}],"name": "isOperationReady","outputs": [{"internalType": "bool","name": "ready","type": "bool"}],"stateMutability": "view","type": "function"},{"inputs": [{"internalType": "address","name": "","type": "address"},{"internalType": "address","name": "","type": "address"},{"internalType": "uint256[]","name": "","type": "uint256[]"},{"internalType": "uint256[]","name": "","type": "uint256[]"},{"internalType": "bytes","name": "","type": "bytes"}],"name": "onERC1155BatchReceived","outputs": [{"internalType": "bytes4","name": "","type": "bytes4"}],"stateMutability": "nonpayable","type": "function"},{"inputs": [{"internalType": "address","name": "","type": "address"},{"internalType": "address","name": "","type": "address"},{"internalType": "uint256","name": "","type": "uint256"},{"internalType": "uint256","name": "","type": "uint256"},{"internalType": "bytes","name": "","type": "bytes"}],"name": "onERC1155Received","outputs": [{"internalType": "bytes4","name": "","type": "bytes4"}],"stateMutability": "nonpayable","type": "function"},{"inputs": [{"internalType": "address","name": "","type": "address"},{"internalType": "address","name": "","type": "address"},{"internalType": "uint256","name": "","type": "uint256"},{"internalType": "bytes","name": "","type": "bytes"}],"name": "onERC721Received","outputs": [{"internalType": "bytes4","name": "","type": "bytes4"}],"stateMutability": "nonpayable","type": "function"},{"inputs": [{"internalType": "bytes32","name": "role","type": "bytes32"},{"internalType": "address","name": "account","type": "address"}],"name": "renounceRole","outputs": [],"stateMutability": "nonpayable","type": "function"},{"inputs": [{"internalType": "bytes32","name": "role","type": "bytes32"},{"internalType": "address","name": "account","type": "address"}],"name": "revokeRole","outputs": [],"stateMutability": "nonpayable","type": "function"},{"inputs": [{"internalType": "address","name": "target","type": "address"},{"internalType": "uint256","name": "value","type": "uint256"},{"internalType": "bytes","name": "data","type": "bytes"},{"internalType": "bytes32","name": "predecessor","type": "bytes32"},{"internalType": "bytes32","name": "salt","type": "bytes32"},{"internalType": "uint256","name": "delay","type": "uint256"}],"name": "schedule","outputs": [],"stateMutability": "nonpayable","type": "function"},{"inputs": [{"internalType": "address[]","name": "targets","type": "address[]"},{"internalType": "uint256[]","name": "values","type": "uint256[]"},{"internalType": "bytes[]","name": "payloads","type": "bytes[]"},{"internalType": "bytes32","name": "predecessor","type": "bytes32"},{"internalType": "bytes32","name": "salt","type": "bytes32"},{"internalType": "uint256","name": "delay","type": "uint256"}],"name": "scheduleBatch","outputs": [],"stateMutability": "nonpayable","type": "function"},{"inputs": [{"internalType": "bytes4","name": "interfaceId","type": "bytes4"}],"name": "supportsInterface","outputs": [{"internalType": "bool","name": "","type": "bool"}],"stateMutability": "view","type": "function"},{"inputs": [{"internalType": "uint256","name": "newDelay","type": "uint256"}],"name": "updateDelay","outputs": [],"stateMutability": "nonpayable","type": "function"},{"stateMutability": "payable","type": "receive"}]

contracts/deploy/048_deposit_withdraw_tooling.js

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
const { deploymentWithProposal } = require("../utils/deploy");
1+
const { deploymentWithGovernanceProposal } = require("../utils/deploy");
22
const addresses = require("../utils/addresses");
3+
const { isMainnet } = require("../test/helpers.js");
34

4-
module.exports = deploymentWithProposal(
5-
{ deployName: "048_deposit_withdraw_tooling", forceDeploy: false },
5+
module.exports = deploymentWithGovernanceProposal(
6+
{
7+
deployName: "048_deposit_withdraw_tooling",
8+
forceDeploy: false,
9+
//proposalId: "40434364243407050666554191388123037800510237271029051418887027936281231737485"
10+
},
611
async ({
712
assetAddresses,
813
deployWithConfirmation,
@@ -12,13 +17,17 @@ module.exports = deploymentWithProposal(
1217
}) => {
1318
const { deployerAddr, governorAddr } = await getNamedAccounts();
1419
const sDeployer = await ethers.provider.getSigner(deployerAddr);
20+
let dVaultAdmin;
1521

1622
// Current contracts
1723
const cVaultProxy = await ethers.getContract("VaultProxy");
18-
19-
const dVaultAdmin = await deployWithConfirmation("VaultAdmin");
2024
const cVault = await ethers.getContractAt("Vault", cVaultProxy.address);
2125

26+
// has already been ran on the mainnet and deployed to: 0x1eF0553FEb80e6f133cAe3092e38F0b23dA6452b
27+
if (!isMainnet) {
28+
dVaultAdmin = await deployWithConfirmation("VaultAdmin");
29+
}
30+
2231
// Governance Actions
2332
// ----------------
2433
return {
@@ -28,7 +37,12 @@ module.exports = deploymentWithProposal(
2837
{
2938
contract: cVault,
3039
signature: "setAdminImpl(address)",
31-
args: [dVaultAdmin.address],
40+
// the implementation has already been ran on the mainnet and deployed to below address
41+
args: [
42+
isMainnet
43+
? "0x1eF0553FEb80e6f133cAe3092e38F0b23dA6452b"
44+
: dVaultAdmin.address,
45+
],
3246
},
3347
],
3448
};

contracts/deployments/mainnet/.migrations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@
4242
"044_morpho_strategy": 1668204653,
4343
"045_convex_lusd_meta_strategy": 1671543402,
4444
"046_vault_value_checker": 1669212530,
45-
"047_morpho_aave_strategy": 1672817148
45+
"047_morpho_aave_strategy": 1672817148,
46+
"048_deposit_withdraw_tooling": 1675100084
4647
}

0 commit comments

Comments
 (0)