forked from yearn/tokenized-strategy-foundry-mix
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (44 loc) · 1.52 KB
/
actions-sepolia-manage-strategy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: "[sepolia-deploy] manage vault strategies"
on:
workflow_dispatch:
inputs:
vaultAddress:
description: 'Vault address'
required: true
default: '0x'
newStrategy:
description: 'New strategy address'
required: true
default: '0x'
strategiesDefaultQueue:
description: 'Strategies default queue'
required: true
default: '0x'
oldStrategy:
description: 'Old strategy address'
required: false
default: '0x'
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: sepolia
url: https://term-finance.github.io/yearn-v3-term-vault/
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
submodules: recursive
- uses: foundry-rs/foundry-toolchain@v1
- run: forge install
- run: forge build
- run: forge tree
- run: forge script script/VaultStrategySwitch.s.sol:VaultStrategySwitch --rpc-url $RPC_URL --broadcast --gas-price 500000000000 --verify --verbosity 4
env:
RPC_URL: ${{ secrets.RPC_URL }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
YEARN_VAULT_ADDRESS: ${{ github.event.inputs.vaultAddress }}
NEW_STRATEGY_ADDRESS: ${{ github.event.inputs.newStrategy }}
STRATEGIES_DEFAULT_QUEUE: ${{ github.event.inputs.strategiesDefaultQueue }}
OLD_STRATEGY_ADDRESS: ${{ github.event.inputs.oldStrategy }}