Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: updating deployment scripts #191

Merged
merged 3 commits into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,21 @@ e7371f2b30aef2f0c9407340176848ed3fd8d9aa:scripts/deployment/l2/globals_polygon_m
209f03140cf62e2b496feb2de9a3dd5813fa321f:scripts/deployment/l2/globals_base_mainnet.json:generic-api-key:2
209f03140cf62e2b496feb2de9a3dd5813fa321f:scripts/deployment/l2/globals_celo_mainnet.json:generic-api-key:2
209f03140cf62e2b496feb2de9a3dd5813fa321f:scripts/deployment/l2/globals_optimistic_mainnet.json:generic-api-key:2
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_arbitrum_one.json:generic-api-key:1
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_arbitrum_sepolia.json:generic-api-key:1
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_base_mainnet.json:generic-api-key:1
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_celo_mainnet.json:generic-api-key:1
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_gnosis_chiado.json:generic-api-key:1
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_optimistic_mainnet.json:generic-api-key:1
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_optimistic_sepolia.json:generic-api-key:1
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_polygon_amoy.json:generic-api-key:1
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_polygon_mainnet.json:generic-api-key:1
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_arbitrum_one.json:generic-api-key:2
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_arbitrum_sepolia.json:generic-api-key:2
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_base_mainnet.json:generic-api-key:2
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_celo_mainnet.json:generic-api-key:2
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_gnosis_chiado.json:generic-api-key:2
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_optimistic_mainnet.json:generic-api-key:2
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_optimistic_sepolia.json:generic-api-key:2
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_polygon_amoy.json:generic-api-key:2
f47ff3a0f41adec19b37c7541dfd5a9abf2afad3:scripts/deployment/l2/globals_polygon_mainnet.json:generic-api-key:2

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function main() {
// Contract verification
if (parsedData.contractVerification) {
const execSync = require("child_process").execSync;
execSync("npx hardhat verify --constructor-args scripts/deployment/l2/verify_19_service_staking_verifier.js --network " + providerName + " " + stakingVerifier.address, { encoding: "utf-8" });
execSync("npx hardhat verify --constructor-args scripts/deployment/l2/verify_18_service_staking_verifier.js --network " + providerName + " " + stakingVerifier.address, { encoding: "utf-8" });
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function main() {
// Contract verification
if (parsedData.contractVerification) {
const execSync = require("child_process").execSync;
execSync("npx hardhat verify --constructor-args scripts/deployment/l2/verify_20_service_staking_factory.js --network " + providerName + " " + stakingFactory.address, { encoding: "utf-8" });
execSync("npx hardhat verify --constructor-args scripts/deployment/l2/verify_19_service_staking_factory.js --network " + providerName + " " + stakingFactory.address, { encoding: "utf-8" });
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function main() {
// Contract verification
if (parsedData.contractVerification) {
const execSync = require("child_process").execSync;
execSync("npx hardhat verify --contract contracts/utils/HashCheckpoint.sol:HashCheckpoint --constructor-args scripts/deployment/l2/verify_23_hash_checkpoint.js --network " + providerName + " " + hashCheckpoint.address, { encoding: "utf-8" });
execSync("npx hardhat verify --contract contracts/utils/HashCheckpoint.sol:HashCheckpoint --constructor-args scripts/deployment/l2/verify_20_hash_checkpoint.js --network " + providerName + " " + hashCheckpoint.address, { encoding: "utf-8" });
}
}

Expand Down
89 changes: 0 additions & 89 deletions scripts/deployment/l2/deploy_21_service_staking_token_instance.js

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/deployment/l2/globals_arbitrum_one.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"arbitrumOne","networkURL":"https://arb1.arbitrum.io/rpc","gasPriceInGwei":"2","gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","bridgeMediatorAddress":"0x4d30F68F5AA342d296d4deE4bB1Cacca912dA70F","serviceRegistryAddress":"0xE3607b00E75f6405248323A9417ff6b39B244b50","gnosisSafeMultisigImplementationAddress":"0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b","gnosisSafeSameAddressMultisigImplementationAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac","operatorWhitelistAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","serviceRegistryTokenUtilityAddress":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","serviceManagerTokenAddress":"0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5","olasAddress":"0x064F8B858C2A603e1b106a2039f5446D32dc81c1","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","stakingTokenAddress":"0x04b0007b2aFb398015B76e5f22993a1fddF83644","stakingNativeTokenAddress":"","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x7Fd1F4b764fA41d19fe3f63C85d12bf64d2bbf68","stakingFactoryAddress":"0xEB5638eefE289691EcE01943f768EDBF96258a80","livenessRatio":"700000000000000","stakingActivityCheckerAddress":"","stakingParams":{"metadataHash":"","maxNumServices":"100","rewardsPerSecond":"1000000000000000","minStakingDeposit":"50000000000000000000","minNumStakingPeriods":"3","maxNumInactivityPeriods":"3","livenessPeriod":"86400","timeForEmissions":"2592000","numAgentInstances":"1","agentIds":["14"],"threshold":"0","configHash":"0x0000000000000000000000000000000000000000000000000000000000000000","proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistry":"0xE3607b00E75f6405248323A9417ff6b39B244b50","activityChecker":""}}
{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"arbitrumOne","networkURL":"https://arb1.arbitrum.io/rpc","gasPriceInGwei":"2","gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","bridgeMediatorAddress":"0x4d30F68F5AA342d296d4deE4bB1Cacca912dA70F","serviceRegistryAddress":"0xE3607b00E75f6405248323A9417ff6b39B244b50","gnosisSafeMultisigImplementationAddress":"0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b","gnosisSafeSameAddressMultisigImplementationAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac","operatorWhitelistAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","serviceRegistryTokenUtilityAddress":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","serviceManagerTokenAddress":"0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5","olasAddress":"0x064F8B858C2A603e1b106a2039f5446D32dc81c1","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","stakingTokenAddress":"0x04b0007b2aFb398015B76e5f22993a1fddF83644","stakingNativeTokenAddress":"","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x7Fd1F4b764fA41d19fe3f63C85d12bf64d2bbf68","stakingFactoryAddress":"0xEB5638eefE289691EcE01943f768EDBF96258a80"}
Loading
Loading