-
Notifications
You must be signed in to change notification settings - Fork 80
66 lines (57 loc) · 1.9 KB
/
deploy-lockup-pro.yml
File metadata and controls
66 lines (57 loc) · 1.9 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: "Deploy Pro"
env:
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
FOUNDRY_PROFILE: "optimized"
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
MNEMONIC: ${{ secrets.MNEMONIC }}
on:
workflow_dispatch:
inputs:
admin:
default: "0x0E109f35926575FC64Ec73735101966d434Ed591"
description: 'Contract admin. Defaults to 0x0E10...d591'
required: false
chain:
default: "goerli"
description: 'Chain name. Defaults to "goerli" if unspecified'
required: false
comptroller:
description: "The address of the previously SablierV2Comptroller contract"
required: true
max-fee:
default: "100000000000000000"
description: |
The maximum fee that can be charged by either the protocol or a broker.
Defaults to 10%.
required: false
max-segment-count:
default: "1000"
description: |
The maximum number of segments permitted in a stream.
Defaults to 1,000
required: false
jobs:
deploy-pro:
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"
with:
submodules: "recursive"
- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"
- name: "Deploy the SablierV2LockupPro contract"
run: >-
forge script script/DeployLockupPro.s.sol
--broadcast
--rpc-url "${{ github.event.inputs.chain }}"
--sig "run(address,address,uint256,uint256)"
-vvvv
"${{ github.event.inputs.admin }}"
"${{ github.event.inputs.comptroller }}"
"${{ github.event.inputs.max-fee }}"
"${{ github.event.inputs.max-segment-count }}"
- name: "Add summary"
run: |
echo "## Deployment result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY