From f47ff3a0f41adec19b37c7541dfd5a9abf2afad3 Mon Sep 17 00:00:00 2001 From: Aleksandr Kuperman Date: Fri, 26 Jul 2024 16:21:54 +0100 Subject: [PATCH 1/3] chore: updating deployment scripts --- .../deployment/l2/globals_arbitrum_one.json | 2 +- .../l2/globals_arbitrum_sepolia.json | 2 +- .../deployment/l2/globals_base_mainnet.json | 2 +- .../deployment/l2/globals_celo_mainnet.json | 2 +- .../l2/globals_ethereum_mainnet.json | 22 +------------------ .../deployment/l2/globals_gnosis_chiado.json | 2 +- .../deployment/l2/globals_gnosis_mainnet.json | 20 ----------------- .../l2/globals_optimistic_mainnet.json | 2 +- .../l2/globals_optimistic_sepolia.json | 2 +- .../deployment/l2/globals_polygon_amoy.json | 2 +- .../l2/globals_polygon_mainnet.json | 2 +- 11 files changed, 10 insertions(+), 50 deletions(-) diff --git a/scripts/deployment/l2/globals_arbitrum_one.json b/scripts/deployment/l2/globals_arbitrum_one.json index 1b50c52d..a95b7f51 100644 --- a/scripts/deployment/l2/globals_arbitrum_one.json +++ b/scripts/deployment/l2/globals_arbitrum_one.json @@ -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":""}} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/scripts/deployment/l2/globals_arbitrum_sepolia.json b/scripts/deployment/l2/globals_arbitrum_sepolia.json index b2a48bc3..dc3a84e0 100644 --- a/scripts/deployment/l2/globals_arbitrum_sepolia.json +++ b/scripts/deployment/l2/globals_arbitrum_sepolia.json @@ -1 +1 @@ -{"contractVerification":true,"useLedger":false,"derivationPath":"m/44'/60'/2'/0/0","providerName":"arbitrumSepolia","networkURL":"https://sepolia-rollup.arbitrum.io/rpc","gasPriceInGwei":"1","gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry","serviceRegistrySymbol":"AUTONOLAS-SERVICE-V1","bridgeMediatorAddress":"0x45d995F302D0B5cF52ec0eDD3945321Eb0f84ee6","serviceRegistryAddress":"0x31D3202d8744B16A120117A053459DDFAE93c855","gnosisSafeMultisigImplementationAddress":"0x19936159B528C66750992C3cBcEd2e71cF4E4824","gnosisSafeSameAddressMultisigImplementationAddress":"0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2","operatorWhitelistAddress":"0x29086141ecdc310058fc23273F8ef7881d20C2f7","serviceRegistryTokenUtilityAddress":"0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994","serviceManagerTokenAddress":"0x5BA58970c2Ae16Cf6218783018100aF2dCcFc915","olasAddress":"0x2AeD71638128A3811F5e5971a397fFe6A8587caa","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","stakingTokenAddress":"0xea930a028793FeBE9F6A2CFb62c95620dB91da71","stakingNativeTokenAddress":"0xA9D794548486D15BfbCe2b8b5F5518b739fa8A4b","livenessRatio":"700000000000000","stakingActivityCheckerAddress":"0x661E609d03bb63819f2F47b9202E15e1826f5B5f","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x9385d4E53c72a858C451D41f58Fcb8C070bDd18A","stakingFactoryAddress":"0xd64Cf67500b7d15A41E02DDeb40F3A73CB533eB5","stakingParams":{"metadataHash":"0x0000000000000000000000000000000000000000000000000000000000000001","maxNumServices":"100","rewardsPerSecond":"1000000000000000","minStakingDeposit":"50000000000000000000","minNumStakingPeriods":"3","maxNumInactivityPeriods":"3","livenessPeriod":"86400","timeForEmissions":"2592000","numAgentInstances":"1","agentIds":["12"],"threshold":"0","configHash":"0x0000000000000000000000000000000000000000000000000000000000000000","proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistry":"0x31D3202d8744B16A120117A053459DDFAE93c855","activityChecker":"0x661E609d03bb63819f2F47b9202E15e1826f5B5f"},"stakingTokenInstanceAddress":"0x5a7b2c6f38ee2f3203273dd3dd67942144b804fb","stakingNativeTokenInstanceAddress":"0xba779d56271d80eb2e9b52f174f9f2e0ffb19109"} \ No newline at end of file +{"contractVerification":true,"useLedger":false,"derivationPath":"m/44'/60'/2'/0/0","providerName":"arbitrumSepolia","networkURL":"https://sepolia-rollup.arbitrum.io/rpc","gasPriceInGwei":"1","gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry","serviceRegistrySymbol":"AUTONOLAS-SERVICE-V1","bridgeMediatorAddress":"0x45d995F302D0B5cF52ec0eDD3945321Eb0f84ee6","serviceRegistryAddress":"0x31D3202d8744B16A120117A053459DDFAE93c855","gnosisSafeMultisigImplementationAddress":"0x19936159B528C66750992C3cBcEd2e71cF4E4824","gnosisSafeSameAddressMultisigImplementationAddress":"0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2","operatorWhitelistAddress":"0x29086141ecdc310058fc23273F8ef7881d20C2f7","serviceRegistryTokenUtilityAddress":"0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994","serviceManagerTokenAddress":"0x5BA58970c2Ae16Cf6218783018100aF2dCcFc915","olasAddress":"0x2AeD71638128A3811F5e5971a397fFe6A8587caa","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","stakingTokenAddress":"0xea930a028793FeBE9F6A2CFb62c95620dB91da71","stakingNativeTokenAddress":"0xA9D794548486D15BfbCe2b8b5F5518b739fa8A4b","livenessRatio":"700000000000000","stakingActivityCheckerAddress":"0x661E609d03bb63819f2F47b9202E15e1826f5B5f","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x9385d4E53c72a858C451D41f58Fcb8C070bDd18A","stakingFactoryAddress":"0xd64Cf67500b7d15A41E02DDeb40F3A73CB533eB5"} \ No newline at end of file diff --git a/scripts/deployment/l2/globals_base_mainnet.json b/scripts/deployment/l2/globals_base_mainnet.json index 1d019e92..b364ab53 100644 --- a/scripts/deployment/l2/globals_base_mainnet.json +++ b/scripts/deployment/l2/globals_base_mainnet.json @@ -1 +1 @@ -{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"base","networkURL":"https://mainnet.base.org","gasPriceInGwei":"2","gnosisSafeAddress":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","gnosisSafeProxyFactoryAddress":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","bridgeMediatorAddress":"0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA","olasAddress":"0x54330d28ca3357F294334BDC454a032e7f353416","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistryAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","operatorWhitelistAddress":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","serviceRegistryTokenUtilityAddress":"0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5","serviceManagerTokenAddress":"0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b","gnosisSafeMultisigImplementationAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac","gnosisSafeSameAddressMultisigImplementationAddress":"0xFbBEc0C8b13B38a9aC0499694A69a10204c5E2aB","stakingTokenAddress":"0xEB5638eefE289691EcE01943f768EDBF96258a80","stakingNativeTokenAddress":"","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x10c5525F77F13b28f42c5626240c001c2D57CAd4","stakingFactoryAddress":"0x1cEe30D08943EB58EFF84DD1AB44a6ee6FEff63a","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":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","activityChecker":""}} \ No newline at end of file +{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"base","networkURL":"https://mainnet.base.org","gasPriceInGwei":"2","gnosisSafeAddress":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","gnosisSafeProxyFactoryAddress":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","bridgeMediatorAddress":"0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA","olasAddress":"0x54330d28ca3357F294334BDC454a032e7f353416","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistryAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","operatorWhitelistAddress":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","serviceRegistryTokenUtilityAddress":"0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5","serviceManagerTokenAddress":"0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b","gnosisSafeMultisigImplementationAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac","gnosisSafeSameAddressMultisigImplementationAddress":"0xFbBEc0C8b13B38a9aC0499694A69a10204c5E2aB","stakingTokenAddress":"0xEB5638eefE289691EcE01943f768EDBF96258a80","stakingNativeTokenAddress":"","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x10c5525F77F13b28f42c5626240c001c2D57CAd4","stakingFactoryAddress":"0x1cEe30D08943EB58EFF84DD1AB44a6ee6FEff63a"} \ No newline at end of file diff --git a/scripts/deployment/l2/globals_celo_mainnet.json b/scripts/deployment/l2/globals_celo_mainnet.json index 4413093f..8000a699 100644 --- a/scripts/deployment/l2/globals_celo_mainnet.json +++ b/scripts/deployment/l2/globals_celo_mainnet.json @@ -1 +1 @@ -{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"celo","networkURL":"https://forno.celo.org","gasPriceInGwei":"10","gnosisSafeAddress":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","gnosisSafeProxyFactoryAddress":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","bridgeMediatorAddress":"0x397125902ED2cA2d42104F621f448A2cE1bC8Fb7","olasAddress":"0xaCFfAe8e57Ec6E394Eb1b41939A8CF7892DbDc51","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistryAddress":"0xE3607b00E75f6405248323A9417ff6b39B244b50","operatorWhitelistAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","serviceRegistryTokenUtilityAddress":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","serviceManagerTokenAddress":"0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5","gnosisSafeMultisigImplementationAddress":"0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b","gnosisSafeSameAddressMultisigImplementationAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac","stakingTokenAddress":"0xe1E1B286EbE95b39F785d8069f2248ae9C41b7a9","stakingNativeTokenAddress":"","livenessRatio":"700000000000000","stakingActivityCheckerAddress":"","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0xc40C79C275F3fA1F3f4c723755C81ED2D53A8D81","stakingFactoryAddress":"0x1c2cD884127b080F940b7546c1e9aaf525b1FA55","stakingParams":{"metadataHash":"0x0000000000000000000000000000000000000000000000000000000000000001","maxNumServices":"100","rewardsPerSecond":"1000000000000000","minStakingDeposit":"50000000000000000000","minNumStakingPeriods":"3","maxNumInactivityPeriods":"3","livenessPeriod":"86400","timeForEmissions":"2592000","numAgentInstances":"1","agentIds":["12"],"threshold":"0","configHash":"0x0000000000000000000000000000000000000000000000000000000000000000","proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistry":"0xE3607b00E75f6405248323A9417ff6b39B244b50","activityChecker":"0xB575dd20281c63288428DD58e5f579CC7d6aae4d"},"stakingTokenInstanceAddress":"0x83839b36d41bdb44abfb6a52ef5549de9bbbb046"} \ No newline at end of file +{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"celo","networkURL":"https://forno.celo.org","gasPriceInGwei":"10","gnosisSafeAddress":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","gnosisSafeProxyFactoryAddress":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","bridgeMediatorAddress":"0x397125902ED2cA2d42104F621f448A2cE1bC8Fb7","olasAddress":"0xaCFfAe8e57Ec6E394Eb1b41939A8CF7892DbDc51","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistryAddress":"0xE3607b00E75f6405248323A9417ff6b39B244b50","operatorWhitelistAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","serviceRegistryTokenUtilityAddress":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","serviceManagerTokenAddress":"0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5","gnosisSafeMultisigImplementationAddress":"0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b","gnosisSafeSameAddressMultisigImplementationAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac","stakingTokenAddress":"0xe1E1B286EbE95b39F785d8069f2248ae9C41b7a9","stakingNativeTokenAddress":"","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0xc40C79C275F3fA1F3f4c723755C81ED2D53A8D81","stakingFactoryAddress":"0x1c2cD884127b080F940b7546c1e9aaf525b1FA55"} \ No newline at end of file diff --git a/scripts/deployment/l2/globals_ethereum_mainnet.json b/scripts/deployment/l2/globals_ethereum_mainnet.json index 6bfee7d2..279eb1be 100644 --- a/scripts/deployment/l2/globals_ethereum_mainnet.json +++ b/scripts/deployment/l2/globals_ethereum_mainnet.json @@ -11,30 +11,10 @@ "multisigProxyHash130": "0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000", "stakingNativeTokenAddress":"", "stakingTokenAddress":"0x0Dc23eEf3bC64CF3cbd8f9329B57AE4C4f28d5d2", - "livenessRatio":"700000000000000", - "stakingActivityCheckerAddress":"", "minStakingDepositLimit":"1000000000000000000000", "timeForEmissionsLimit":"2592000", "numServicesLimit":"100", "apyLimit":"3000000000000000000", "stakingVerifierAddress":"0x4503b79d468e81Ad2d4bd6Db991810da269bA777", - "stakingFactoryAddress":"0xEBdde456EA288b49f7D5975E7659bA1Ccf607efc", - "stakingParams": - { - "metadataHash":"", - "maxNumServices":"100", - "rewardsPerSecond":"1000000000000000", - "minStakingDeposit":"50000000000000000000", - "minNumStakingPeriods":"3", - "maxNumInactivityPeriods":"3", - "livenessPeriod":"86400", - "timeForEmissions":"2592000", - "numAgentInstances":"1", - "agentIds":["12"], - "threshold":"0", - "configHash":"0x0000000000000000000000000000000000000000000000000000000000000000", - "proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000", - "serviceRegistry":"0x9338b5153AE39BB89f50468E608eD9d764B755fD", - "activityChecker":""}, - "stakingTokenInstanceAddress":"" + "stakingFactoryAddress":"0xEBdde456EA288b49f7D5975E7659bA1Ccf607efc" } diff --git a/scripts/deployment/l2/globals_gnosis_chiado.json b/scripts/deployment/l2/globals_gnosis_chiado.json index e11ed5a3..4638e2df 100644 --- a/scripts/deployment/l2/globals_gnosis_chiado.json +++ b/scripts/deployment/l2/globals_gnosis_chiado.json @@ -1 +1 @@ -{"contractVerification":true,"useLedger":false,"derivationPath":"m/44'/60'/2'/0/0","providerName":"chiado","networkURL":"https://rpc.chiadochain.net","gasPriceInGwei":"3","gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","AMBContractProxyForeignAddress":"0x87A19d769D875964E9Cd41dDBfc397B2543764E6","bridgeMediatorOriginalAddress":"0x670Ac235EE13C0B2a5065282bBB0c61cfB354592","bridgeMediatorAddress":"0x0a50009D55Ed5700ac8FF713709d5Ad5fa843896","serviceRegistryAddress":"0x31D3202d8744B16A120117A053459DDFAE93c855","serviceManagerAddress":"0x29086141ecdc310058fc23273F8ef7881d20C2f7","gnosisSafeMultisigImplementationAddress":"0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994","gnosisSafeSameAddressMultisigImplementationAddress":"0xE16adc7777B7C2a0d35033bd3504C028AB28EE8b","operatorWhitelistAddress":"0x6f7661F52fE1919996d0A4F68D09B344093a349d","serviceRegistryTokenUtilityAddress":"0xc2c7E40674f1C7Bb99eFe5680Efd79842502bED4","serviceManagerTokenAddress":"0xc965a32185590Eb5a5fffDba29E96126b7650eDe","olasAddress":"0x9b03e7D8B3c3ea3B56431baD5f9aA16070E10cE2","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","stakingNativeTokenAddress":"0xEC029Ed450FB91A88420f80B8940C7691841Bf2f","stakingTokenAddress":"0x00c3B912FF54B2a7E37D495a496f025D51fb8058","livenessRatio":"700000000000000","stakingActivityCheckerAddress":"0xa2AA89938805836077aB0724f335142da7A27085","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x63b0f322837a7160B7E3d95C60aAaeB4EF1aECcb","stakingFactoryAddress":"0x164192772C363DD391d1fb3D396cd1d9FB10def1","stakingParams":{"metadataHash":"0x0000000000000000000000000000000000000000000000000000000000000001","maxNumServices":"100","rewardsPerSecond":"1000000000000000","minStakingDeposit":"50000000000000000000","minNumStakingPeriods":"3","maxNumInactivityPeriods":"3","livenessPeriod":"86400","timeForEmissions":"86400","numAgentInstances":"1","agentIds":["12"],"threshold":"0","configHash":"0x0000000000000000000000000000000000000000000000000000000000000000","proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistry":"0x31D3202d8744B16A120117A053459DDFAE93c855","activityChecker":"0x42E06C095e6CB15e16F9cB6E90Cc65077fEAbE5B"},"stakingTokenInstanceAddress":"0x3c55f970d62d70dda9c3f9c7664e6f89010685ca","stakingNativeTokenInstanceAddress":"0x4ba3dec73202d925edb794b85a04969552320910"} \ No newline at end of file +{"contractVerification":true,"useLedger":false,"derivationPath":"m/44'/60'/2'/0/0","providerName":"chiado","networkURL":"https://rpc.chiadochain.net","gasPriceInGwei":"3","gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","AMBContractProxyForeignAddress":"0x87A19d769D875964E9Cd41dDBfc397B2543764E6","bridgeMediatorOriginalAddress":"0x670Ac235EE13C0B2a5065282bBB0c61cfB354592","bridgeMediatorAddress":"0x0a50009D55Ed5700ac8FF713709d5Ad5fa843896","serviceRegistryAddress":"0x31D3202d8744B16A120117A053459DDFAE93c855","serviceManagerAddress":"0x29086141ecdc310058fc23273F8ef7881d20C2f7","gnosisSafeMultisigImplementationAddress":"0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994","gnosisSafeSameAddressMultisigImplementationAddress":"0xE16adc7777B7C2a0d35033bd3504C028AB28EE8b","operatorWhitelistAddress":"0x6f7661F52fE1919996d0A4F68D09B344093a349d","serviceRegistryTokenUtilityAddress":"0xc2c7E40674f1C7Bb99eFe5680Efd79842502bED4","serviceManagerTokenAddress":"0xc965a32185590Eb5a5fffDba29E96126b7650eDe","olasAddress":"0x9b03e7D8B3c3ea3B56431baD5f9aA16070E10cE2","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","stakingNativeTokenAddress":"0xEC029Ed450FB91A88420f80B8940C7691841Bf2f","stakingTokenAddress":"0x00c3B912FF54B2a7E37D495a496f025D51fb8058","livenessRatio":"700000000000000","stakingActivityCheckerAddress":"0xa2AA89938805836077aB0724f335142da7A27085","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x63b0f322837a7160B7E3d95C60aAaeB4EF1aECcb","stakingFactoryAddress":"0x164192772C363DD391d1fb3D396cd1d9FB10def1"} \ No newline at end of file diff --git a/scripts/deployment/l2/globals_gnosis_mainnet.json b/scripts/deployment/l2/globals_gnosis_mainnet.json index b8fc3ef1..e692e004 100644 --- a/scripts/deployment/l2/globals_gnosis_mainnet.json +++ b/scripts/deployment/l2/globals_gnosis_mainnet.json @@ -24,31 +24,11 @@ "multisigProxyHash130": "0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000", "stakingNativeTokenAddress":"", "stakingTokenAddress":"0xEa00be6690a871827fAfD705440D20dd75e67AB1", - "livenessRatio":"700000000000000", - "stakingActivityCheckerAddress":"", "minStakingDepositLimit":"1000000000000000000000", "timeForEmissionsLimit":"2592000", "numServicesLimit":"100", "apyLimit":"3000000000000000000", "stakingVerifierAddress":"0x1D59DadE4FAeA7771eC7221420012d413175404C", "stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700", - "stakingParams": - { - "metadataHash":"", - "maxNumServices":"100", - "rewardsPerSecond":"1000000000000000", - "minStakingDeposit":"50000000000000000000", - "minNumStakingPeriods":"3", - "maxNumInactivityPeriods":"3", - "livenessPeriod":"86400", - "timeForEmissions":"2592000", - "numAgentInstances":"1", - "agentIds":["12"], - "threshold":"0", - "configHash":"0x0000000000000000000000000000000000000000000000000000000000000000", - "proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000", - "serviceRegistry":"0x9338b5153AE39BB89f50468E608eD9d764B755fD", - "activityChecker":""}, - "stakingTokenInstanceAddress":"", "hashCheckpoint": "0x694e62BDF7Ff510A4EE66662cf4866A961a31653" } diff --git a/scripts/deployment/l2/globals_optimistic_mainnet.json b/scripts/deployment/l2/globals_optimistic_mainnet.json index 430e13b1..770dea88 100644 --- a/scripts/deployment/l2/globals_optimistic_mainnet.json +++ b/scripts/deployment/l2/globals_optimistic_mainnet.json @@ -1 +1 @@ -{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"optimistic","networkURL":"https://mainnet.optimism.io","gasPriceInGwei":"2","gnosisSafeAddress":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","gnosisSafeProxyFactoryAddress":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","bridgeMediatorAddress":"0x87c511c8aE3fAF0063b3F3CF9C6ab96c4AA5C60c","olasAddress":"0xFC2E6e6BCbd49ccf3A5f029c79984372DcBFE527","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistryAddress":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","operatorWhitelistAddress":"0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b","serviceRegistryTokenUtilityAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac","serviceManagerTokenAddress":"0xFbBEc0C8b13B38a9aC0499694A69a10204c5E2aB","gnosisSafeMultisigImplementationAddress":"0xE43d4F4103b623B61E095E8bEA34e1bc8979e168","gnosisSafeSameAddressMultisigImplementationAddress":"0xb09CcF0Dbf0C178806Aaee28956c74bd66d21f73","stakingTokenAddress":"0x63C2c53c09dE534Dd3bc0b7771bf976070936bAC","stakingNativeTokenAddress":"","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x526E064cB694E8f5B7DB299158e17F33055B3943","stakingFactoryAddress":"0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8","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":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","activityChecker":""}} \ No newline at end of file +{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"optimistic","networkURL":"https://mainnet.optimism.io","gasPriceInGwei":"2","gnosisSafeAddress":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","gnosisSafeProxyFactoryAddress":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","bridgeMediatorAddress":"0x87c511c8aE3fAF0063b3F3CF9C6ab96c4AA5C60c","olasAddress":"0xFC2E6e6BCbd49ccf3A5f029c79984372DcBFE527","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistryAddress":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","operatorWhitelistAddress":"0x63e66d7ad413C01A7b49C7FF4e3Bb765C4E4bd1b","serviceRegistryTokenUtilityAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac","serviceManagerTokenAddress":"0xFbBEc0C8b13B38a9aC0499694A69a10204c5E2aB","gnosisSafeMultisigImplementationAddress":"0xE43d4F4103b623B61E095E8bEA34e1bc8979e168","gnosisSafeSameAddressMultisigImplementationAddress":"0xb09CcF0Dbf0C178806Aaee28956c74bd66d21f73","stakingTokenAddress":"0x63C2c53c09dE534Dd3bc0b7771bf976070936bAC","stakingNativeTokenAddress":"","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x526E064cB694E8f5B7DB299158e17F33055B3943","stakingFactoryAddress":"0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8"} \ No newline at end of file diff --git a/scripts/deployment/l2/globals_optimistic_sepolia.json b/scripts/deployment/l2/globals_optimistic_sepolia.json index 5e9439f2..0f2d1fff 100644 --- a/scripts/deployment/l2/globals_optimistic_sepolia.json +++ b/scripts/deployment/l2/globals_optimistic_sepolia.json @@ -1 +1 @@ -{"contractVerification":true,"useLedger":false,"derivationPath":"m/44'/60'/2'/0/0","providerName":"optimisticSepolia","networkURL":"https://sepolia.optimism.io","gasPriceInGwei":"2","gnosisSafeAddress":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","gnosisSafeProxyFactoryAddress":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry","serviceRegistrySymbol":"AUTONOLAS-SERVICE-V1","bridgeMediatorAddress":"0x670Ac235EE13C0B2a5065282bBB0c61cfB354592","olasAddress":"0x01B8b6384298D4848E3BE63D4C9D17830EeE488A","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistryAddress":"0x31D3202d8744B16A120117A053459DDFAE93c855","operatorWhitelistAddress":"0x29086141ecdc310058fc23273F8ef7881d20C2f7","serviceRegistryTokenUtilityAddress":"0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994","serviceManagerTokenAddress":"0x5BA58970c2Ae16Cf6218783018100aF2dCcFc915","gnosisSafeMultisigImplementationAddress":"0x19936159B528C66750992C3cBcEd2e71cF4E4824","gnosisSafeSameAddressMultisigImplementationAddress":"0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2","stakingTokenAddress":"0x57f3703D281Fd7b3896969086Cf14Aa6Ace99d92","stakingNativeTokenAddress":"0x87ecEccEDA41A6dF29FFC780c028510b3198DC74","livenessRatio":"700000000000000","stakingActivityCheckerAddress":"0xf91962bEEF99cc53adD71Aa035CBEFF9Ec062728","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x357da3967BaB7aed076cC9eE150ef2980A6ccD44","stakingFactoryAddress":"0x3ac32cE492d2bDaf11C8f43Edc16FCa9b4b65675","stakingParams":{"metadataHash":"0x0000000000000000000000000000000000000000000000000000000000000001","maxNumServices":"100","rewardsPerSecond":"1000000000000000","minStakingDeposit":"50000000000000000000","minNumStakingPeriods":"3","maxNumInactivityPeriods":"3","livenessPeriod":"86400","timeForEmissions":"2592000","numAgentInstances":"1","agentIds":["12"],"threshold":"0","configHash":"0x0000000000000000000000000000000000000000000000000000000000000000","proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistry":"0x31D3202d8744B16A120117A053459DDFAE93c855","activityChecker":"0xf91962bEEF99cc53adD71Aa035CBEFF9Ec062728"},"stakingTokenInstanceAddress":"0xCae661c929EC23e695e904d871C8D623f83bAC38","stakingNativeTokenInstanceAddress":"0xaa2d979ff7890aef3c436cefd9a486bee88363b0"} \ No newline at end of file +{"contractVerification":true,"useLedger":false,"derivationPath":"m/44'/60'/2'/0/0","providerName":"optimisticSepolia","networkURL":"https://sepolia.optimism.io","gasPriceInGwei":"2","gnosisSafeAddress":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","gnosisSafeProxyFactoryAddress":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry","serviceRegistrySymbol":"AUTONOLAS-SERVICE-V1","bridgeMediatorAddress":"0x670Ac235EE13C0B2a5065282bBB0c61cfB354592","olasAddress":"0x01B8b6384298D4848E3BE63D4C9D17830EeE488A","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistryAddress":"0x31D3202d8744B16A120117A053459DDFAE93c855","operatorWhitelistAddress":"0x29086141ecdc310058fc23273F8ef7881d20C2f7","serviceRegistryTokenUtilityAddress":"0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994","serviceManagerTokenAddress":"0x5BA58970c2Ae16Cf6218783018100aF2dCcFc915","gnosisSafeMultisigImplementationAddress":"0x19936159B528C66750992C3cBcEd2e71cF4E4824","gnosisSafeSameAddressMultisigImplementationAddress":"0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2","stakingTokenAddress":"0x57f3703D281Fd7b3896969086Cf14Aa6Ace99d92","stakingNativeTokenAddress":"0x87ecEccEDA41A6dF29FFC780c028510b3198DC74","livenessRatio":"700000000000000","stakingActivityCheckerAddress":"0xf91962bEEF99cc53adD71Aa035CBEFF9Ec062728","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x357da3967BaB7aed076cC9eE150ef2980A6ccD44","stakingFactoryAddress":"0x3ac32cE492d2bDaf11C8f43Edc16FCa9b4b65675"} \ No newline at end of file diff --git a/scripts/deployment/l2/globals_polygon_amoy.json b/scripts/deployment/l2/globals_polygon_amoy.json index 1505eb87..8f8523ee 100644 --- a/scripts/deployment/l2/globals_polygon_amoy.json +++ b/scripts/deployment/l2/globals_polygon_amoy.json @@ -1 +1 @@ -{"contractVerification":true,"useLedger":false,"derivationPath":"m/44'/60'/2'/0/0","providerName":"polygonAmoy","networkURL":"https://polygon-amoy.g.alchemy.com/v2/","gasPriceInGwei":"40","gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","fxRootAddress":"","bridgeMediatorAddress":"","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","serviceRegistryAddress":"0x31D3202d8744B16A120117A053459DDFAE93c855","serviceManagerAddress":"","gnosisSafeMultisigImplementationAddress":"0x19936159B528C66750992C3cBcEd2e71cF4E4824","gnosisSafeSameAddressMultisigImplementationAddress":"0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2","operatorWhitelistAddress":"0x29086141ecdc310058fc23273F8ef7881d20C2f7","serviceRegistryTokenUtilityAddress":"0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994","serviceManagerTokenAddress":"0x5BA58970c2Ae16Cf6218783018100aF2dCcFc915","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","olasAddress":"0xeCD870085AA3bab4aE12F675811122da4173C6a9","stakingTokenAddress":"0x945550dECe7E40ae70C6ebf5699637927eAF13E9","stakingNativeTokenAddress":"0x34235f9D447f9F54167e2Ac7A0F4283cB3fAD669","livenessRatio":"700000000000000","stakingActivityCheckerAddress":"0x94676070018ff7D09BC32DAc6bb01Ae67282b8E8","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x6f7661F52fE1919996d0A4F68D09B344093a349d","stakingFactoryAddress":"0xc2c7E40674f1C7Bb99eFe5680Efd79842502bED4","stakingParams":{"metadataHash":"0x0000000000000000000000000000000000000000000000000000000000000001","maxNumServices":"100","rewardsPerSecond":"1000000000000000","minStakingDeposit":"50000000000000000000","minNumStakingPeriods":"3","maxNumInactivityPeriods":"3","livenessPeriod":"86400","timeForEmissions":"2592000","numAgentInstances":"1","agentIds":["12"],"threshold":"0","configHash":"0x0000000000000000000000000000000000000000000000000000000000000000","proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","serviceRegistry":"0x31D3202d8744B16A120117A053459DDFAE93c855","activityChecker":"0x94676070018ff7D09BC32DAc6bb01Ae67282b8E8"},"stakingTokenInstanceAddress":"0xa28327f6b308f1a04e565025400311f48275c0fc","stakingNativeTokenInstanceAddress":"0xd76bc6aa871643a0aa87f5985f1e7ffda7b19eea"} \ No newline at end of file +{"contractVerification":true,"useLedger":false,"derivationPath":"m/44'/60'/2'/0/0","providerName":"polygonAmoy","networkURL":"https://polygon-amoy.g.alchemy.com/v2/","gasPriceInGwei":"40","gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","fxRootAddress":"","bridgeMediatorAddress":"","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","serviceRegistryAddress":"0x31D3202d8744B16A120117A053459DDFAE93c855","serviceManagerAddress":"","gnosisSafeMultisigImplementationAddress":"0x19936159B528C66750992C3cBcEd2e71cF4E4824","gnosisSafeSameAddressMultisigImplementationAddress":"0x10100e74b7F706222F8A7C0be9FC7Ae1717Ad8B2","operatorWhitelistAddress":"0x29086141ecdc310058fc23273F8ef7881d20C2f7","serviceRegistryTokenUtilityAddress":"0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994","serviceManagerTokenAddress":"0x5BA58970c2Ae16Cf6218783018100aF2dCcFc915","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","olasAddress":"0xeCD870085AA3bab4aE12F675811122da4173C6a9","stakingTokenAddress":"0x945550dECe7E40ae70C6ebf5699637927eAF13E9","stakingNativeTokenAddress":"0x34235f9D447f9F54167e2Ac7A0F4283cB3fAD669","livenessRatio":"700000000000000","stakingActivityCheckerAddress":"0x94676070018ff7D09BC32DAc6bb01Ae67282b8E8","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x6f7661F52fE1919996d0A4F68D09B344093a349d","stakingFactoryAddress":"0xc2c7E40674f1C7Bb99eFe5680Efd79842502bED4"} \ No newline at end of file diff --git a/scripts/deployment/l2/globals_polygon_mainnet.json b/scripts/deployment/l2/globals_polygon_mainnet.json index 319ec8b2..e0e86999 100644 --- a/scripts/deployment/l2/globals_polygon_mainnet.json +++ b/scripts/deployment/l2/globals_polygon_mainnet.json @@ -1 +1 @@ -{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"polygon","networkURL":"https://polygon-mainnet.g.alchemy.com/v2/","gasPriceInGwei":"100","timelockAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","fxRootAddress":"0xfe5e5D361b2ad62c541bAb87C45a0B9B018389a2","bridgeMediatorAddress":"0x9338b5153AE39BB89f50468E608eD9d764B755fD","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","serviceRegistryAddress":"0xE3607b00E75f6405248323A9417ff6b39B244b50","serviceManagerAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","gnosisSafeMultisigImplementationAddress":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","gnosisSafeSameAddressMultisigImplementationAddress":"0xd8BCC126ff31d2582018715d5291A508530587b0","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","olasAddress":"0xFEF5d947472e72Efbb2E388c730B7428406F2F95","operatorWhitelistAddress":"0x526E064cB694E8f5B7DB299158e17F33055B3943","serviceRegistryTokenUtilityAddress":"0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8","serviceManagerTokenAddress":"0x04b0007b2aFb398015B76e5f22993a1fddF83644","stakingTokenAddress":"0x4aba1Cf7a39a51D75cBa789f5f21cf4882162519","stakingNativeTokenAddress":"","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x8Bc0a5c5B1612A16983B01ecd7ae130E728390CB","stakingFactoryAddress":"0x46C0D07F55d4F9B5Eed2Fc9680B5953e5fd7b461","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":""}} \ No newline at end of file +{"contractVerification":true,"useLedger":true,"derivationPath":"m/44'/60'/2'/0/0","providerName":"polygon","networkURL":"https://polygon-mainnet.g.alchemy.com/v2/","gasPriceInGwei":"100","timelockAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","fxRootAddress":"0xfe5e5D361b2ad62c541bAb87C45a0B9B018389a2","bridgeMediatorAddress":"0x9338b5153AE39BB89f50468E608eD9d764B755fD","baseURI":"https://gateway.autonolas.tech/ipfs/","serviceRegistryName":"Service Registry L2","serviceRegistrySymbol":"AUTONOLAS-SERVICE-L2-V1","serviceRegistryAddress":"0xE3607b00E75f6405248323A9417ff6b39B244b50","serviceManagerAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE","gnosisSafeMultisigImplementationAddress":"0x3d77596beb0f130a4415df3D2D8232B3d3D31e44","gnosisSafeSameAddressMultisigImplementationAddress":"0xd8BCC126ff31d2582018715d5291A508530587b0","multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000","olasAddress":"0xFEF5d947472e72Efbb2E388c730B7428406F2F95","operatorWhitelistAddress":"0x526E064cB694E8f5B7DB299158e17F33055B3943","serviceRegistryTokenUtilityAddress":"0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8","serviceManagerTokenAddress":"0x04b0007b2aFb398015B76e5f22993a1fddF83644","stakingTokenAddress":"0x4aba1Cf7a39a51D75cBa789f5f21cf4882162519","stakingNativeTokenAddress":"","minStakingDepositLimit":"1000000000000000000000","timeForEmissionsLimit":"2592000","numServicesLimit":"100","apyLimit":"3000000000000000000","stakingVerifierAddress":"0x8Bc0a5c5B1612A16983B01ecd7ae130E728390CB","stakingFactoryAddress":"0x46C0D07F55d4F9B5Eed2Fc9680B5953e5fd7b461"} \ No newline at end of file From 7a0c885f606785eaad71bf27c027149d0daa9395 Mon Sep 17 00:00:00 2001 From: Aleksandr Kuperman Date: Fri, 26 Jul 2024 16:25:37 +0100 Subject: [PATCH 2/3] chore: deployment scripts --- ...loy_18_service_staking_activity_checker.js | 87 ------------------ ... => deploy_18_service_staking_verifier.js} | 2 +- ...s => deploy_19_service_staking_factory.js} | 2 +- ..._l2.js => deploy_20_hash_checkpoint_l2.js} | 2 +- ...eploy_21_service_staking_token_instance.js | 89 ------------------- ...2_service_staking_native_token_instance.js | 85 ------------------ ...ify_18_service_staking_activity_checker.js | 9 -- ... => verify_18_service_staking_verifier.js} | 0 ...s => verify_19_service_staking_factory.js} | 0 ...kpoint.js => verify_20_hash_checkpoint.js} | 0 ...erify_21_service_staking_token_instance.js | 9 -- ...2_service_staking_native_token_instance.js | 9 -- 12 files changed, 3 insertions(+), 291 deletions(-) delete mode 100644 scripts/deployment/l2/deploy_18_service_staking_activity_checker.js rename scripts/deployment/l2/{deploy_19_service_staking_verifier.js => deploy_18_service_staking_verifier.js} (98%) rename scripts/deployment/l2/{deploy_20_service_staking_factory.js => deploy_19_service_staking_factory.js} (98%) rename scripts/deployment/l2/{deploy_23_hash_checkpoint_l2.js => deploy_20_hash_checkpoint_l2.js} (97%) delete mode 100644 scripts/deployment/l2/deploy_21_service_staking_token_instance.js delete mode 100644 scripts/deployment/l2/deploy_22_service_staking_native_token_instance.js delete mode 100644 scripts/deployment/l2/verify_18_service_staking_activity_checker.js rename scripts/deployment/l2/{verify_19_service_staking_verifier.js => verify_18_service_staking_verifier.js} (100%) rename scripts/deployment/l2/{verify_20_service_staking_factory.js => verify_19_service_staking_factory.js} (100%) rename scripts/deployment/l2/{verify_23_hash_checkpoint.js => verify_20_hash_checkpoint.js} (100%) delete mode 100644 scripts/deployment/l2/verify_21_service_staking_token_instance.js delete mode 100644 scripts/deployment/l2/verify_22_service_staking_native_token_instance.js diff --git a/scripts/deployment/l2/deploy_18_service_staking_activity_checker.js b/scripts/deployment/l2/deploy_18_service_staking_activity_checker.js deleted file mode 100644 index 054d68c6..00000000 --- a/scripts/deployment/l2/deploy_18_service_staking_activity_checker.js +++ /dev/null @@ -1,87 +0,0 @@ -/*global process*/ - -const { ethers } = require("hardhat"); -const { LedgerSigner } = require("@anders-t/ethers-ledger"); - -async function main() { - const fs = require("fs"); - const globalsFile = "globals.json"; - const dataFromJSON = fs.readFileSync(globalsFile, "utf8"); - let parsedData = JSON.parse(dataFromJSON); - const useLedger = parsedData.useLedger; - const derivationPath = parsedData.derivationPath; - const providerName = parsedData.providerName; - const gasPriceInGwei = parsedData.gasPriceInGwei; - const livenessRatio = parsedData.livenessRatio; - - let networkURL = parsedData.networkURL; - if (providerName === "mainnet") { - if (!process.env.ALCHEMY_API_KEY_MAINNET) { - console.log("set ALCHEMY_API_KEY_MAINNET env variable"); - } - networkURL += process.env.ALCHEMY_API_KEY_MAINNET; - } else if (providerName === "sepolia") { - if (!process.env.ALCHEMY_API_KEY_SEPOLIA) { - console.log("set ALCHEMY_API_KEY_SEPOLIA env variable"); - return; - } - networkURL += process.env.ALCHEMY_API_KEY_SEPOLIA; - } else if (providerName === "polygon") { - if (!process.env.ALCHEMY_API_KEY_MATIC) { - console.log("set ALCHEMY_API_KEY_MATIC env variable"); - } - networkURL += process.env.ALCHEMY_API_KEY_MATIC; - } else if (providerName === "polygonAmoy") { - if (!process.env.ALCHEMY_API_KEY_AMOY) { - console.log("set ALCHEMY_API_KEY_AMOY env variable"); - return; - } - networkURL += process.env.ALCHEMY_API_KEY_AMOY; - } - - const provider = new ethers.providers.JsonRpcProvider(networkURL); - const signers = await ethers.getSigners(); - - let EOA; - if (useLedger) { - EOA = new LedgerSigner(provider, derivationPath); - } else { - EOA = signers[0]; - } - // EOA address - const deployer = await EOA.getAddress(); - console.log("EOA is:", deployer); - - // Transaction signing and execution - console.log("18. EOA to deploy StakingActivityChecker"); - const gasPrice = ethers.utils.parseUnits(gasPriceInGwei, "gwei"); - const StakingActivityChecker = await ethers.getContractFactory("StakingActivityChecker"); - console.log("You are signing the following transaction: StakingActivityChecker.connect(EOA).deploy()"); - const stakingActivityChecker = await StakingActivityChecker.connect(EOA).deploy(livenessRatio, - { gasPrice }); - const result = await stakingActivityChecker.deployed(); - - // Transaction details - console.log("Contract deployment: StakingActivityChecker"); - console.log("Contract address:", stakingActivityChecker.address); - console.log("Transaction:", result.deployTransaction.hash); - // Wait half a minute for the transaction completion - await new Promise(r => setTimeout(r, 30000)); - - // Writing updated parameters back to the JSON file - parsedData.stakingActivityCheckerAddress = stakingActivityChecker.address; - fs.writeFileSync(globalsFile, JSON.stringify(parsedData)); - - // Contract verification - if (parsedData.contractVerification) { - const execSync = require("child_process").execSync; - execSync("npx hardhat verify --constructor-args scripts/deployment/l2/verify_18_service_staking_activity_checker.js --network " + providerName + " " + stakingActivityChecker.address, { encoding: "utf-8" }); - } -} - -main() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/scripts/deployment/l2/deploy_19_service_staking_verifier.js b/scripts/deployment/l2/deploy_18_service_staking_verifier.js similarity index 98% rename from scripts/deployment/l2/deploy_19_service_staking_verifier.js rename to scripts/deployment/l2/deploy_18_service_staking_verifier.js index 8167417c..80c7196b 100644 --- a/scripts/deployment/l2/deploy_19_service_staking_verifier.js +++ b/scripts/deployment/l2/deploy_18_service_staking_verifier.js @@ -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" }); } } diff --git a/scripts/deployment/l2/deploy_20_service_staking_factory.js b/scripts/deployment/l2/deploy_19_service_staking_factory.js similarity index 98% rename from scripts/deployment/l2/deploy_20_service_staking_factory.js rename to scripts/deployment/l2/deploy_19_service_staking_factory.js index 60b1cd13..812b9be8 100644 --- a/scripts/deployment/l2/deploy_20_service_staking_factory.js +++ b/scripts/deployment/l2/deploy_19_service_staking_factory.js @@ -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" }); } } diff --git a/scripts/deployment/l2/deploy_23_hash_checkpoint_l2.js b/scripts/deployment/l2/deploy_20_hash_checkpoint_l2.js similarity index 97% rename from scripts/deployment/l2/deploy_23_hash_checkpoint_l2.js rename to scripts/deployment/l2/deploy_20_hash_checkpoint_l2.js index f191385a..2f77cd86 100644 --- a/scripts/deployment/l2/deploy_23_hash_checkpoint_l2.js +++ b/scripts/deployment/l2/deploy_20_hash_checkpoint_l2.js @@ -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" }); } } diff --git a/scripts/deployment/l2/deploy_21_service_staking_token_instance.js b/scripts/deployment/l2/deploy_21_service_staking_token_instance.js deleted file mode 100644 index 3e84438c..00000000 --- a/scripts/deployment/l2/deploy_21_service_staking_token_instance.js +++ /dev/null @@ -1,89 +0,0 @@ -/*global process*/ - -const { ethers } = require("hardhat"); -const { LedgerSigner } = require("@anders-t/ethers-ledger"); - -async function main() { - const fs = require("fs"); - const globalsFile = "globals.json"; - const dataFromJSON = fs.readFileSync(globalsFile, "utf8"); - let parsedData = JSON.parse(dataFromJSON); - const useLedger = parsedData.useLedger; - const derivationPath = parsedData.derivationPath; - const providerName = parsedData.providerName; - const stakingParams = parsedData.stakingParams; - const gasPriceInGwei = parsedData.gasPriceInGwei; - const serviceRegistryTokenUtilityAddress = parsedData.serviceRegistryTokenUtilityAddress; - const olasAddress = parsedData.olasAddress; - const stakingTokenAddress = parsedData.stakingTokenAddress; - const stakingFactoryAddress = parsedData.stakingFactoryAddress; - - let networkURL = parsedData.networkURL; - if (providerName === "polygon") { - if (!process.env.ALCHEMY_API_KEY_MATIC) { - console.log("set ALCHEMY_API_KEY_MATIC env variable"); - } - networkURL += process.env.ALCHEMY_API_KEY_MATIC; - } else if (providerName === "polygonAmoy") { - if (!process.env.ALCHEMY_API_KEY_AMOY) { - console.log("set ALCHEMY_API_KEY_AMOY env variable"); - return; - } - networkURL += process.env.ALCHEMY_API_KEY_AMOY; - } - - const provider = new ethers.providers.JsonRpcProvider(networkURL); - const signers = await ethers.getSigners(); - - let EOA; - if (useLedger) { - EOA = new LedgerSigner(provider, derivationPath); - } else { - EOA = signers[0]; - } - // EOA address - const deployer = await EOA.getAddress(); - console.log("EOA is:", deployer); - - // Get StakingFactory contract instance - const stakingFactory = await ethers.getContractAt("StakingFactory", stakingFactoryAddress); - // Get StakingToken implementation contract instance - const stakingToken = await ethers.getContractAt("StakingToken", stakingTokenAddress); - - // Transaction signing and execution - console.log("21. EOA to deploy StakingTokenInstance via the StakingFactory"); - console.log("You are signing the following transaction: StakingFactory.connect(EOA).createStakingInstance()"); - const gasPrice = ethers.utils.parseUnits(gasPriceInGwei, "gwei"); - const initPayload = stakingToken.interface.encodeFunctionData("initialize", [stakingParams, - serviceRegistryTokenUtilityAddress, olasAddress]); - const result = await stakingFactory.createStakingInstance(stakingTokenAddress, initPayload, { gasPrice }); - let res = await result.wait(); - // Get staking contract instance address from the event - const stakingTokenInstanceAddress = "0x" + res.logs[0].topics[2].slice(26); - - - // Transaction details - console.log("Contract deployment: StakingProxy"); - console.log("Contract address:", stakingTokenInstanceAddress); - console.log("Transaction:", result.hash); - - // Wait half a minute for the transaction completion - await new Promise(r => setTimeout(r, 30000)); - - // Writing updated parameters back to the JSON file - parsedData.stakingTokenInstanceAddress = stakingTokenInstanceAddress; - fs.writeFileSync(globalsFile, JSON.stringify(parsedData)); - - // Contract verification - if (parsedData.contractVerification) { - const execSync = require("child_process").execSync; - execSync("npx hardhat verify --constructor-args scripts/deployment/l2/verify_21_service_staking_token_instance.js --network " + providerName + " " + stakingTokenInstanceAddress, { encoding: "utf-8" }); - } -} - -main() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/scripts/deployment/l2/deploy_22_service_staking_native_token_instance.js b/scripts/deployment/l2/deploy_22_service_staking_native_token_instance.js deleted file mode 100644 index 8d11b9cf..00000000 --- a/scripts/deployment/l2/deploy_22_service_staking_native_token_instance.js +++ /dev/null @@ -1,85 +0,0 @@ -/*global process*/ - -const { ethers } = require("hardhat"); -const { LedgerSigner } = require("@anders-t/ethers-ledger"); - -async function main() { - const fs = require("fs"); - const globalsFile = "globals.json"; - const dataFromJSON = fs.readFileSync(globalsFile, "utf8"); - let parsedData = JSON.parse(dataFromJSON); - const useLedger = parsedData.useLedger; - const derivationPath = parsedData.derivationPath; - const providerName = parsedData.providerName; - const gasPriceInGwei = parsedData.gasPriceInGwei; - const stakingParams = parsedData.stakingParams; - const stakingNativeTokenAddress = parsedData.stakingNativeTokenAddress; - const stakingFactoryAddress = parsedData.stakingFactoryAddress; - - let networkURL = parsedData.networkURL; - if (providerName === "polygon") { - if (!process.env.ALCHEMY_API_KEY_MATIC) { - console.log("set ALCHEMY_API_KEY_MATIC env variable"); - } - networkURL += process.env.ALCHEMY_API_KEY_MATIC; - } else if (providerName === "polygonAmoy") { - if (!process.env.ALCHEMY_API_KEY_AMOY) { - console.log("set ALCHEMY_API_KEY_AMOY env variable"); - return; - } - networkURL += process.env.ALCHEMY_API_KEY_AMOY; - } - - const provider = new ethers.providers.JsonRpcProvider(networkURL); - const signers = await ethers.getSigners(); - - let EOA; - if (useLedger) { - EOA = new LedgerSigner(provider, derivationPath); - } else { - EOA = signers[0]; - } - // EOA address - const deployer = await EOA.getAddress(); - console.log("EOA is:", deployer); - - // Get StakingFactory contract instance - const stakingFactory = await ethers.getContractAt("StakingFactory", stakingFactoryAddress); - // Get StakingToken implementation contract instance - const stakingNativeToken = await ethers.getContractAt("StakingNativeToken", stakingNativeTokenAddress); - - // Transaction signing and execution - console.log("22. EOA to deploy StakingNativeTokenInstance via the StakingFactory"); - console.log("You are signing the following transaction: StakingFactory.connect(EOA).createStakingInstance()"); - const gasPrice = ethers.utils.parseUnits(gasPriceInGwei, "gwei"); - const initPayload = stakingNativeToken.interface.encodeFunctionData("initialize", [stakingParams]); - const result = await stakingFactory.createStakingInstance(stakingNativeTokenAddress, initPayload, { gasPrice }); - let res = await result.wait(); - // Get staking contract instance address from the event - const stakingNativeTokenInstanceAddress = "0x" + res.logs[0].topics[2].slice(26); - - // Transaction details - console.log("Contract deployment: StakingProxy"); - console.log("Contract address:", stakingNativeTokenInstanceAddress); - console.log("Transaction:", result.hash); - - // Wait half a minute for the transaction completion - await new Promise(r => setTimeout(r, 30000)); - - // Writing updated parameters back to the JSON file - parsedData.stakingNativeTokenInstanceAddress = stakingNativeTokenInstanceAddress; - fs.writeFileSync(globalsFile, JSON.stringify(parsedData)); - - // Contract verification - if (parsedData.contractVerification) { - const execSync = require("child_process").execSync; - execSync("npx hardhat verify --constructor-args scripts/deployment/l2/verify_22_service_staking_native_token_instance.js --network " + providerName + " " + stakingNativeTokenInstanceAddress, { encoding: "utf-8" }); - } -} - -main() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/scripts/deployment/l2/verify_18_service_staking_activity_checker.js b/scripts/deployment/l2/verify_18_service_staking_activity_checker.js deleted file mode 100644 index 3cb52a06..00000000 --- a/scripts/deployment/l2/verify_18_service_staking_activity_checker.js +++ /dev/null @@ -1,9 +0,0 @@ -const fs = require("fs"); -const globalsFile = "globals.json"; -const dataFromJSON = fs.readFileSync(globalsFile, "utf8"); -const parsedData = JSON.parse(dataFromJSON); -const livenessRatio = parsedData.livenessRatio; - -module.exports = [ - livenessRatio -]; \ No newline at end of file diff --git a/scripts/deployment/l2/verify_19_service_staking_verifier.js b/scripts/deployment/l2/verify_18_service_staking_verifier.js similarity index 100% rename from scripts/deployment/l2/verify_19_service_staking_verifier.js rename to scripts/deployment/l2/verify_18_service_staking_verifier.js diff --git a/scripts/deployment/l2/verify_20_service_staking_factory.js b/scripts/deployment/l2/verify_19_service_staking_factory.js similarity index 100% rename from scripts/deployment/l2/verify_20_service_staking_factory.js rename to scripts/deployment/l2/verify_19_service_staking_factory.js diff --git a/scripts/deployment/l2/verify_23_hash_checkpoint.js b/scripts/deployment/l2/verify_20_hash_checkpoint.js similarity index 100% rename from scripts/deployment/l2/verify_23_hash_checkpoint.js rename to scripts/deployment/l2/verify_20_hash_checkpoint.js diff --git a/scripts/deployment/l2/verify_21_service_staking_token_instance.js b/scripts/deployment/l2/verify_21_service_staking_token_instance.js deleted file mode 100644 index be8c1e6c..00000000 --- a/scripts/deployment/l2/verify_21_service_staking_token_instance.js +++ /dev/null @@ -1,9 +0,0 @@ -const fs = require("fs"); -const globalsFile = "globals.json"; -const dataFromJSON = fs.readFileSync(globalsFile, "utf8"); -const parsedData = JSON.parse(dataFromJSON); -const stakingTokenAddress = parsedData.stakingTokenAddress; - -module.exports = [ - stakingTokenAddress -]; \ No newline at end of file diff --git a/scripts/deployment/l2/verify_22_service_staking_native_token_instance.js b/scripts/deployment/l2/verify_22_service_staking_native_token_instance.js deleted file mode 100644 index fa72a22f..00000000 --- a/scripts/deployment/l2/verify_22_service_staking_native_token_instance.js +++ /dev/null @@ -1,9 +0,0 @@ -const fs = require("fs"); -const globalsFile = "globals.json"; -const dataFromJSON = fs.readFileSync(globalsFile, "utf8"); -const parsedData = JSON.parse(dataFromJSON); -const stakingNativeTokenAddress = parsedData.stakingNativeTokenAddress; - -module.exports = [ - stakingNativeTokenAddress -]; \ No newline at end of file From 4370f3ca48ecd28484f635fdac7985716460821b Mon Sep 17 00:00:00 2001 From: Aleksandr Kuperman Date: Fri, 26 Jul 2024 16:27:15 +0100 Subject: [PATCH 3/3] chore: gitleaksignore --- .gitleaksignore | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitleaksignore b/.gitleaksignore index 7671ff38..17bdb456 100644 --- a/.gitleaksignore +++ b/.gitleaksignore @@ -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