-
Notifications
You must be signed in to change notification settings - Fork 21
94 lines (91 loc) · 2.73 KB
/
main.yml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Tests
on: [push]
jobs:
foundry:
strategy:
fail-fast: true
name: Foundry suite
runs-on: mainnet-node
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Build
env:
FOUNDRY_PROFILE: ci_test
run: |
forge --version
forge build
id: build
- name: Run Forge tests
env:
FOUNDRY_PROFILE: ci_test
run: |
forge test --fork-url http://localhost:8545 -vvv --fuzz-runs 1000 --match-test test_Success_forceExerciseDelta
id: forge-test
contract_sizes:
strategy:
fail-fast: true
name: Check contract size
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Build and check sizes (normal)
env:
FOUNDRY_PROFILE: ci_sizes
run: |
forge --version
forge build --sizes
id: build_normal
- name: Build and check sizes (via-IR)
env:
FOUNDRY_PROFILE: ci_sizes_ir
run: |
forge --version
forge build --sizes --skip PanopticHelper
id: build
deploy_sepolia:
strategy:
fail-fast: true
name: Deploy on Sepolia
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Build
run: |
forge --version
forge build
id: build
- name: Deploy factory on Sepolia
env:
DEPLOYER_PRIVATE_KEY: "0x375de66eef8034f72ad6736c91e68d94c1ff56ebaab41976bfdd5d875302fca1"
UNISWAP_V3_FACTORY: "0x3220B52A7f878a9DA5bc54C224e1bd34642dF65B"
WETH9: "0x3BbCB7bB7606C7afAad97e2c5135a97e94103B6f"
run: |
forge script deploy/DeployProtocol.s.sol:DeployProtocol --rpc-url sepolia -vvvv
id: deploy-protocol-sepolia
- name: Deploy new pool on Sepolia
env:
DEPLOYER_PRIVATE_KEY: "0x375de66eef8034f72ad6736c91e68d94c1ff56ebaab41976bfdd5d875302fca1"
UNISWAP_V3_FACTORY: "0x3220B52A7f878a9DA5bc54C224e1bd34642dF65B"
SFPM: "0x562A05400b793461F85DB478Cf0fcbBC30811217"
PANOPTIC_FACTORY: "0xE15EB47eA8A8f88A6204a90D3FC6a5a0372F1731"
run: |
forge script scripts/DeployTestPool.s.sol:DeployTestPool --rpc-url sepolia -vvvv
id: deploy-pool-sepolia