Skip to content

Commit c415311

Browse files
committed
chore: Base deployment and setup, static audit
1 parent 99fdcbe commit c415311

5 files changed

Lines changed: 115 additions & 11 deletions

File tree

doc/configuration.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,81 @@
145145
"address": "0xBD645cf2D4F04A1c12B97fe2a8b4A09EF50F1896"
146146
}
147147
]
148+
},
149+
{
150+
"name": "base",
151+
"chainId": "8453",
152+
"contracts": [
153+
{
154+
"name": "Collector",
155+
"artifact": "abis/0.8.30/Collector.json",
156+
"address": "0x14c85A5A21a26542B672eD53e80e3EEf4cE9394D"
157+
},
158+
{
159+
"name": "CollectorProxy",
160+
"artifact": "abis/0.8.30/Proxy.json",
161+
"address": "0xaC7eA9478E0e1186E7D1c82b8d8dc80AEe0F79F6"
162+
},
163+
{
164+
"name": "Beacon",
165+
"artifact": "abis/0.8.30/Beacon.json",
166+
"address": "0xEfF4A1D9faF5c750d5E32754c40Cf163767C63A4"
167+
},
168+
{
169+
"name": "ActivityModule",
170+
"artifact": "abis/0.8.30/ActivityModule.json",
171+
"address": "0x30bA8d28AA309F09613C5e965d0a36A25f9c84b1"
172+
},
173+
{
174+
"name": "StakingManager",
175+
"artifact": "abis/0.8.30/StakingManager.json",
176+
"address": "0x327F1da21255d1d02cF2e7155659F8FBf12dB4ee"
177+
},
178+
{
179+
"name": "StakingManagerProxy",
180+
"artifact": "abis/0.8.30/Proxy.json",
181+
"address": "0xcfA10d192c3999b5CA59aD3c7512c40f1B919e01"
182+
},
183+
{
184+
"name": "BaseStakingProcessorL2",
185+
"artifact": "abis/0.8.30/BaseStakingProcessorL2.json",
186+
"address": "0xCAF018A23a104095180e298856AC1a415f9831E8"
187+
},
188+
{
189+
"name": "StakingTokenLocked",
190+
"artifact": "abis/0.8.30/StakingTokenLocked.json",
191+
"address": "0x64003846B67D66AfdFb03325fa4292b76FCF182F"
192+
},
193+
{
194+
"name": "ModuleActivityChecker",
195+
"artifact": "abis/0.8.30/ModuleActivityChecker.json",
196+
"address": "0xfAec9449039B7c84035E929176d1544556e04817"
197+
},
198+
{
199+
"name": "StakingHelper",
200+
"artifact": "abis/0.8.30/StakingHelper.json",
201+
"address": "0xC6d6b164d81AeE4fCe59D7c74a4e857ac29bc398"
202+
},
203+
{
204+
"name": "ExternalStakingDistributor",
205+
"artifact": "abis/0.8.30/ExternalStakingDistributor.json",
206+
"address": "0x4A26F79b9dd73a48d57ce4DF70295A875afa006c"
207+
},
208+
{
209+
"name": "ExternalStakingDistributorProxy",
210+
"artifact": "abis/0.8.30/ExternalStakingDistributorProxy.json",
211+
"address": "0x40abf47B926181148000DbCC7c8DE76A3a61a66f"
212+
},
213+
{
214+
"name": "MultisigGuard",
215+
"artifact": "abis/0.8.30/MultisigGuard.json",
216+
"address": "0x2362FC35f0e8ecA1C1eA8878aC079a518297A373"
217+
},
218+
{
219+
"name": "MultisigGuardProxy",
220+
"artifact": "abis/0.8.30/MultisigGuardProxy.json",
221+
"address": "0x4D3911420a8E4E7dB8c979f4915dA8983C5e3ba2"
222+
}
223+
]
148224
}
149225
]

scripts/deployment/globals_base_mainnet.json

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,17 @@
1717
"serviceRegistryName": "Service Registry L2",
1818
"serviceRegistrySymbol": "AUTONOLAS-SERVICE-L2-V1",
1919
"olasAddress": "0x54330d28ca3357F294334BDC454a032e7f353416",
20+
"baseL2StandardBridgeProxyAddress": "0x4200000000000000000000000000000000000010",
21+
"baseL2CrossDomainMessengerProxyAddress": "0x4200000000000000000000000000000000000007",
2022
"multisigProxyHash130": "0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
21-
"stakingImplementationBytecodeHash": "",
23+
"stakingImplementationBytecodeHash": "0xfaa25679442cc1708855bb2e9a6cf2464aa44435009791cb122ce941c25672c7",
2224
"agentId": "85",
2325
"configHash": "0xca0a2dda805c401808b21b8fdf86eb8b1b4117931cb6dbf8226c38dfd0214068",
24-
"baseL2StandardBridgeProxyAddress": "0x4200000000000000000000000000000000000010",
25-
"baseL2CrossDomainMessengerProxyAddress": "0x4200000000000000000000000000000000000007",
26+
"l1ChainId": "1",
27+
"livenessRatio": "1",
28+
"distributorProxyAddress": "0x64003846B67D66AfdFb03325fa4292b76FCF182F",
29+
"unstakeRelayerProxyAddress": "0xaC7eA9478E0e1186E7D1c82b8d8dc80AEe0F79F6",
30+
"treasuryProxyAddress": "0xcfA10d192c3999b5CA59aD3c7512c40f1B919e01",
2631
"serviceRegistryAddress": "0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE",
2732
"operatorWhitelistAddress": "0x3d77596beb0f130a4415df3D2D8232B3d3D31e44",
2833
"serviceRegistryTokenUtilityAddress": "0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5",
@@ -33,5 +38,18 @@
3338
"stakingVerifierAddress": "0x10c5525F77F13b28f42c5626240c001c2D57CAd4",
3439
"stakingFactoryAddress": "0x1cEe30D08943EB58EFF84DD1AB44a6ee6FEff63a",
3540
"stakingHelperAddress": "0xC6d6b164d81AeE4fCe59D7c74a4e857ac29bc398",
36-
"stakingTokenLockedAddress": "0x64003846B67D66AfdFb03325fa4292b76FCF182F"
41+
"stakingTokenLockedAddress": "0x64003846B67D66AfdFb03325fa4292b76FCF182F",
42+
"moduleActivityCheckerAddress": "0xfAec9449039B7c84035E929176d1544556e04817",
43+
"collectorAddress": "0x14c85A5A21a26542B672eD53e80e3EEf4cE9394D",
44+
"collectorProxyAddress": "0xaC7eA9478E0e1186E7D1c82b8d8dc80AEe0F79F6",
45+
"activityModuleAddress": "0x30bA8d28AA309F09613C5e965d0a36A25f9c84b1",
46+
"beaconAddress": "0xEfF4A1D9faF5c750d5E32754c40Cf163767C63A4",
47+
"stakingManagerAddress": "0x327F1da21255d1d02cF2e7155659F8FBf12dB4ee",
48+
"stakingManagerProxyAddress": "0xcfA10d192c3999b5CA59aD3c7512c40f1B919e01",
49+
"externalStakingDistributorAddress": "0x4A26F79b9dd73a48d57ce4DF70295A875afa006c",
50+
"externalStakingDistributorProxyAddress": "0x40abf47B926181148000DbCC7c8DE76A3a61a66f",
51+
"multisigGuardAddress": "0x2362FC35f0e8ecA1C1eA8878aC079a518297A373",
52+
"multisigGuardProxyAddress": "0x4D3911420a8E4E7dB8c979f4915dA8983C5e3ba2",
53+
"baseDepositProcessorL1Address": "0x87AA04e563110DC484bf1580b16986b34987431e",
54+
"baseStakingProcessorL2Address": "0xCAF018A23a104095180e298856AC1a415f9831E8"
3755
}

scripts/deployment/globals_eth_mainnet.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@
3030
"treasuryProxyAddress": "0xcfA10d192c3999b5CA59aD3c7512c40f1B919e01",
3131
"gnosisDepositProcessorL1Address": "0xeB7613bfbb40fab1DA73DC0b1c16Ec13639C305B",
3232
"gnosisStakingProcessorL2Address": "0xDAE0B11e5bF81216283cB95d30039fA3D650eFE3",
33-
"baseDepositProcessorL1Address": "0x40abf47B926181148000DbCC7c8DE76A3a61a66f"
33+
"baseDepositProcessorL1Address": "0x87AA04e563110DC484bf1580b16986b34987431e",
34+
"baseStakingProcessorL2Address": "0xCAF018A23a104095180e298856AC1a415f9831E8"
3435
}

scripts/deployment/globals_gnosis_mainnet.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"distributorProxyAddress": "0x64003846B67D66AfdFb03325fa4292b76FCF182F",
3737
"unstakeRelayerProxyAddress": "0xaC7eA9478E0e1186E7D1c82b8d8dc80AEe0F79F6",
3838
"treasuryProxyAddress": "0xcfA10d192c3999b5CA59aD3c7512c40f1B919e01",
39-
"gnosisDepositProcessorL1Address": "0xeB7613bfbb40fab1DA73DC0b1c16Ec13639C305B",
4039
"stakingVerifierAddress": "0x1D59DadE4FAeA7771eC7221420012d413175404C",
4140
"stakingFactoryAddress": "0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
4241
"stakingHelperAddress": "0x76097aAeD1FA84e645E8AC71160542347476404D",
@@ -48,12 +47,13 @@
4847
"beaconAddress": "0xaC7eA9478E0e1186E7D1c82b8d8dc80AEe0F79F6",
4948
"stakingManagerAddress": "0x09DF592B2fba0CB859BF01826feA8E96f86E8Ed9",
5049
"stakingManagerProxyAddress": "0xEfF4A1D9faF5c750d5E32754c40Cf163767C63A4",
51-
"gnosisStakingProcessorL2Address": "0xDAE0B11e5bF81216283cB95d30039fA3D650eFE3",
5250
"stakingProxyAddresses": [
5351
"0x22FA631064A99c43196ec5f8324b73211Ced98f9"
5452
],
5553
"externalStakingDistributorAddress": "0x45aE9211E9c3853229e3D865050BA9979296CD36",
5654
"externalStakingDistributorProxyAddress": "0x7E8C636FBD0D9085C112680d8C3fde701452dcb5",
5755
"multisigGuardAddress": "0xA26CfDC0e84A04444b6a468c1d1F7191D19541E6",
58-
"multisigGuardProxyAddress": "0xBD645cf2D4F04A1c12B97fe2a8b4A09EF50F1896"
56+
"multisigGuardProxyAddress": "0xBD645cf2D4F04A1c12B97fe2a8b4A09EF50F1896",
57+
"gnosisDepositProcessorL1Address": "0xeB7613bfbb40fab1DA73DC0b1c16Ec13639C305B",
58+
"gnosisStakingProcessorL2Address": "0xDAE0B11e5bF81216283cB95d30039fA3D650eFE3"
5959
}

scripts/deployment/script_static_audit.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ networkURLL1=$(jq -r '.networkURL' $globalsL1)
3737
chainIdL2=$(jq -r '.chainId' $globalsL2)
3838
networkURLL2=$(jq -r '.networkURL' $globalsL2)
3939

40-
# Get network name from network_mainnet or network_sepolia or another testnet
40+
# Get network name from network_mainnet or network_testnet
4141
networkL2=${2%_*}
4242

4343
# Getting L1 API key
@@ -156,10 +156,19 @@ castArgs="$depositoryProxyAddress mapChainIdDepositProcessors(uint256)(address)
156156
castCmd="$castCallHeader $castArgs"
157157
result=$($castCmd)
158158
if [ $result != $depositProcessorL1Address ]; then
159-
echo "${red}!!! stOLAS address is incorrect!${reset}"
159+
echo "${red}!!! ${networkL2}DepositProcessorL1 address is incorrect!${reset}"
160160
echo "${red}!!! Fetched address: $result${reset}"
161161
echo "${red}!!! Expected address: $depositProcessorL1Address${reset}"
162162
fi
163+
# ExternalStakingDistributor
164+
castArgs="$depositoryProxyAddress mapChainIdStakedExternals(uint256)(uint256) $chainIdL2"
165+
castCmd="$castCallHeader $castArgs"
166+
result=$($castCmd)
167+
if [ $result == 0 ]; then
168+
echo "${red}!!! ${networkL2} ExternalStakingDistributor Proxy address is not set!${reset}"
169+
echo "${red}!!! Fetched address: $result${reset}"
170+
echo "${red}!!! Expected address: $externalStakingDistributorProxyAddress${reset}"
171+
fi
163172
# LzOracle
164173
castArgs="$depositoryProxyAddress lzOracle()(address)"
165174
castCmd="$castCallHeader $castArgs"
@@ -173,7 +182,7 @@ fi
173182
castArgs="$depositoryProxyAddress productType()(uint8)"
174183
castCmd="$castCallHeader $castArgs"
175184
result=$($castCmd)
176-
if [ $result != 0 ]; then
185+
if [ $result != 1 ]; then
177186
echo "${red}!!! Product type is incorrect!${reset}"
178187
echo "${red}!!! Fetched type:$result${reset}"
179188
echo "${red}!!! Expected type:0${reset}"

0 commit comments

Comments
 (0)