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: deployment script correction #47

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function main() {
const providerName = parsedData.providerName;
const gasPriceInGwei = parsedData.gasPriceInGwei;
const contributorsProxyAddress = parsedData.contributorsProxyAddress;
const contributeAgentAddress = parsedData.contributeAgentAddress;
const contributeServiceAddress = parsedData.contributeServiceAddress;

let networkURL = parsedData.networkURL;
if (providerName === "polygon") {
Expand Down Expand Up @@ -50,7 +50,7 @@ async function main() {
// Transaction signing and execution
console.log("12. EOA to set contribute agent statuses in ContributorsProxy");
console.log("You are signing the following transaction: ContributorsProxy.connect(EOA).setContributeAgentStatuses()");
const result = await contributorsProxy.connect(EOA).setContributeAgentStatuses([contributeAgentAddress], [true], { gasPrice });
const result = await contributorsProxy.connect(EOA).setContributeServiceStatuses([contributeServiceAddress], [true], { gasPrice });

// Transaction details
console.log("Contract deployment: ContributorsProxy");
Expand Down
39 changes: 39 additions & 0 deletions scripts/deployment/globals_gnosis_mainnet_qs_beta_expert10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"contractVerification":true,
"useLedger":true,
"derivationPath":"m/44'/60'/2'/0/0",
"providerName":"gnosis",
"networkURL":"https://rpc.gnosischain.com",
"gasPriceInGwei":"4",
"gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",
"gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",
"serviceRegistryAddress":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"serviceRegistryTokenUtilityAddress":"0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8",
"olasAddress":"0xcE11e14225575945b8E6Dc0D4F2dD4C570f79d9f",
"multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"stakingNativeTokenAddress":"",
"stakingTokenAddress":"0xEa00be6690a871827fAfD705440D20dd75e67AB1",
"agentMechAddress":"0x77af31De935740567Cf4fF1986D04B2c964A786a",
"livenessRatio":"694444444444444",
"singleMechActivityCheckerAddress":"0xE73C4e90983aa65d42b2de968E0C8F25Ced835A8",
"stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
"stakingParams":
{
"metadataHash":"",
"maxNumServices":"40",
"rewardsPerSecond":"439180618975140",
"minStakingDeposit":"5000000000000000000000",
"minNumStakingPeriods":"3",
"maxNumInactivityPeriods":"2",
"livenessPeriod":"86400",
"timeForEmissions":"2592000",
"numAgentInstances":"1",
"agentIds":["25"],
"threshold":"0",
"configHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"serviceRegistry":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"activityChecker":"0xE73C4e90983aa65d42b2de968E0C8F25Ced835A8"
},
"stakingTokenInstanceAddress":""
}
39 changes: 39 additions & 0 deletions scripts/deployment/globals_gnosis_mainnet_qs_beta_expert11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"contractVerification":true,
"useLedger":true,
"derivationPath":"m/44'/60'/2'/0/0",
"providerName":"gnosis",
"networkURL":"https://rpc.gnosischain.com",
"gasPriceInGwei":"4",
"gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",
"gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",
"serviceRegistryAddress":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"serviceRegistryTokenUtilityAddress":"0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8",
"olasAddress":"0xcE11e14225575945b8E6Dc0D4F2dD4C570f79d9f",
"multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"stakingNativeTokenAddress":"",
"stakingTokenAddress":"0xEa00be6690a871827fAfD705440D20dd75e67AB1",
"agentMechAddress":"0x77af31De935740567Cf4fF1986D04B2c964A786a",
"livenessRatio":"462962962962963",
"singleMechActivityCheckerAddress":"0x87E6a97bD97D41904B1125A014B16bec50C6A89D",
"stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
"stakingParams":
{
"metadataHash":"",
"maxNumServices":"50",
"rewardsPerSecond":"87962962963040",
"minStakingDeposit":"1000000000000000000000",
"minNumStakingPeriods":"3",
"maxNumInactivityPeriods":"2",
"livenessPeriod":"86400",
"timeForEmissions":"2592000",
"numAgentInstances":"1",
"agentIds":["25"],
"threshold":"0",
"configHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"serviceRegistry":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"activityChecker":"0x87E6a97bD97D41904B1125A014B16bec50C6A89D"
},
"stakingTokenInstanceAddress":""
}
39 changes: 39 additions & 0 deletions scripts/deployment/globals_gnosis_mainnet_qs_beta_expert12.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"contractVerification":true,
"useLedger":true,
"derivationPath":"m/44'/60'/2'/0/0",
"providerName":"gnosis",
"networkURL":"https://rpc.gnosischain.com",
"gasPriceInGwei":"4",
"gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",
"gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",
"serviceRegistryAddress":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"serviceRegistryTokenUtilityAddress":"0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8",
"olasAddress":"0xcE11e14225575945b8E6Dc0D4F2dD4C570f79d9f",
"multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"stakingNativeTokenAddress":"",
"stakingTokenAddress":"0xEa00be6690a871827fAfD705440D20dd75e67AB1",
"agentMechAddress":"0x77af31De935740567Cf4fF1986D04B2c964A786a",
"livenessRatio":"1157407407407407",
"singleMechActivityCheckerAddress":"",
"stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
"stakingParams":
{
"metadataHash":"",
"maxNumServices":"50",
"rewardsPerSecond":"219907407407600",
"minStakingDeposit":"1000000000000000000000",
"minNumStakingPeriods":"3",
"maxNumInactivityPeriods":"2",
"livenessPeriod":"86400",
"timeForEmissions":"2592000",
"numAgentInstances":"1",
"agentIds":["25"],
"threshold":"0",
"configHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"serviceRegistry":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"activityChecker":"0x87E6a97bD97D41904B1125A014B16bec50C6A89D"
},
"stakingTokenInstanceAddress":""
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"stakingTokenAddress":"0xEa00be6690a871827fAfD705440D20dd75e67AB1",
"agentMechAddress":"0x77af31De935740567Cf4fF1986D04B2c964A786a",
"livenessRatio":"462962962962963",
"stakingActivityCheckerAddress":"0x87E6a97bD97D41904B1125A014B16bec50C6A89D",
"singleMechActivityCheckerAddress":"0x87E6a97bD97D41904B1125A014B16bec50C6A89D",
"stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
"stakingParams":
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"stakingTokenAddress":"0xEa00be6690a871827fAfD705440D20dd75e67AB1",
"agentMechAddress":"0x77af31De935740567Cf4fF1986D04B2c964A786a",
"livenessRatio":"462962962962963",
"stakingActivityCheckerAddress":"0x87E6a97bD97D41904B1125A014B16bec50C6A89D",
"singleMechActivityCheckerAddress":"0x87E6a97bD97D41904B1125A014B16bec50C6A89D",
"stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
"stakingParams":
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"stakingTokenAddress":"0xEa00be6690a871827fAfD705440D20dd75e67AB1",
"agentMechAddress":"0x77af31De935740567Cf4fF1986D04B2c964A786a",
"livenessRatio":"462962962962963",
"stakingActivityCheckerAddress":"0x87E6a97bD97D41904B1125A014B16bec50C6A89D",
"singleMechActivityCheckerAddress":"0x87E6a97bD97D41904B1125A014B16bec50C6A89D",
"stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
"stakingParams":
{
Expand Down
39 changes: 39 additions & 0 deletions scripts/deployment/globals_gnosis_mainnet_qs_beta_expert8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"contractVerification":true,
"useLedger":true,
"derivationPath":"m/44'/60'/2'/0/0",
"providerName":"gnosis",
"networkURL":"https://rpc.gnosischain.com",
"gasPriceInGwei":"4",
"gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",
"gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",
"serviceRegistryAddress":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"serviceRegistryTokenUtilityAddress":"0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8",
"olasAddress":"0xcE11e14225575945b8E6Dc0D4F2dD4C570f79d9f",
"multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"stakingNativeTokenAddress":"",
"stakingTokenAddress":"0xEa00be6690a871827fAfD705440D20dd75e67AB1",
"agentMechAddress":"0x77af31De935740567Cf4fF1986D04B2c964A786a",
"livenessRatio":"694444444444444",
"singleMechActivityCheckerAddress":"0xE73C4e90983aa65d42b2de968E0C8F25Ced835A8",
"stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
"stakingParams":
{
"metadataHash":"",
"maxNumServices":"40",
"rewardsPerSecond":"439180618975140",
"minStakingDeposit":"5000000000000000000000",
"minNumStakingPeriods":"3",
"maxNumInactivityPeriods":"2",
"livenessPeriod":"86400",
"timeForEmissions":"2592000",
"numAgentInstances":"1",
"agentIds":["25"],
"threshold":"0",
"configHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"serviceRegistry":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"activityChecker":"0xE73C4e90983aa65d42b2de968E0C8F25Ced835A8"
},
"stakingTokenInstanceAddress":""
}
39 changes: 39 additions & 0 deletions scripts/deployment/globals_gnosis_mainnet_qs_beta_expert9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"contractVerification":true,
"useLedger":true,
"derivationPath":"m/44'/60'/2'/0/0",
"providerName":"gnosis",
"networkURL":"https://rpc.gnosischain.com",
"gasPriceInGwei":"4",
"gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",
"gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",
"serviceRegistryAddress":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"serviceRegistryTokenUtilityAddress":"0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8",
"olasAddress":"0xcE11e14225575945b8E6Dc0D4F2dD4C570f79d9f",
"multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"stakingNativeTokenAddress":"",
"stakingTokenAddress":"0xEa00be6690a871827fAfD705440D20dd75e67AB1",
"agentMechAddress":"0x77af31De935740567Cf4fF1986D04B2c964A786a",
"livenessRatio":"694444444444444",
"singleMechActivityCheckerAddress":"0xE73C4e90983aa65d42b2de968E0C8F25Ced835A8",
"stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
"stakingParams":
{
"metadataHash":"",
"maxNumServices":"40",
"rewardsPerSecond":"439180618975140",
"minStakingDeposit":"5000000000000000000000",
"minNumStakingPeriods":"3",
"maxNumInactivityPeriods":"2",
"livenessPeriod":"86400",
"timeForEmissions":"2592000",
"numAgentInstances":"1",
"agentIds":["25"],
"threshold":"0",
"configHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"serviceRegistry":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"activityChecker":"0xE73C4e90983aa65d42b2de968E0C8F25Ced835A8"
},
"stakingTokenInstanceAddress":""
}
38 changes: 38 additions & 0 deletions scripts/deployment/globals_mode_mainnet_olas_modius_alpha.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"contractVerification":true,
"useLedger":true,
"derivationPath":"m/44'/60'/2'/0/0",
"providerName":"mode",
"networkURL":"https://mainnet.mode.network",
"gasPriceInGwei":"1",
"gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",
"gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",
"serviceRegistryAddress":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE",
"serviceRegistryTokenUtilityAddress":"0x34C895f302D0b5cf52ec0Edd3945321EB0f83dd5",
"olasAddress":"0xcfD1D50ce23C46D3Cf6407487B2F8934e96DC8f9",
"multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"stakingNativeTokenAddress":"0x88DE734655184a09B70700aE4F72364d1ad23728",
"stakingTokenAddress":"0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA",
"livenessRatio":"46296296296296",
"stakingActivityCheckerAddress":"0x07bc3C23DbebEfBF866Ca7dD9fAA3b7356116164",
"stakingFactoryAddress":"0x75D529FAe220bC8db714F0202193726b46881B76",
"stakingParams":
{
"metadataHash":"",
"maxNumServices":"20",
"rewardsPerSecond":"1649305555557",
"minStakingDeposit":"20000000000000000000",
"minNumStakingPeriods":"3",
"maxNumInactivityPeriods":"2",
"livenessPeriod":"86400",
"timeForEmissions":"2592000",
"numAgentInstances":"1",
"agentIds":[],
"threshold":"0",
"configHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"proxyHash":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"serviceRegistry":"0x3C1fF68f5aa342D296d4DEe4Bb1cACCA912D95fE",
"activityChecker":"0x07bc3C23DbebEfBF866Ca7dD9fAA3b7356116164"
},
"stakingTokenInstanceAddress":""
}
Loading