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: adding staking contracts configuration #30

Merged
merged 39 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a4b8bc3
chore: adding staking contracts configuration
kupermind Sep 24, 2024
2609181
chore: updating deployment scripts
kupermind Sep 25, 2024
c24dfb2
feat and chore: re-introducing single mech activity checke
kupermind Sep 25, 2024
b275815
chore: deploy activity checker
DavidMinarsch Sep 25, 2024
8bfd62d
chore: updating deployment configs
kupermind Sep 25, 2024
7c4cee2
chore: adding Tsunami staking contract specs
kupermind Oct 9, 2024
52c46a0
Merge pull request #31 from valory-xyz/tsunami
kupermind Oct 10, 2024
1281c6f
chore: refactor script namings and readme
kupermind Oct 21, 2024
c534fc0
feat: contribute contracts stack
kupermind Oct 22, 2024
f0620e7
chore: name fix
kupermind Oct 22, 2024
badceb8
chore: removing unnecessary event
kupermind Oct 22, 2024
aa04650
feat: getting close to creating a service
kupermind Oct 22, 2024
6199f79
refactor: first implementation
kupermind Oct 22, 2024
8b52f29
chore: cleanup
kupermind Oct 22, 2024
b5b734c
refactor: polishing
kupermind Oct 22, 2024
0b24408
refactor: polishing
kupermind Oct 22, 2024
a43e44f
refactor: staking verifier
kupermind Oct 23, 2024
edf4380
refactor: service owner dependency first
kupermind Oct 23, 2024
585003f
chore: spacing
kupermind Oct 23, 2024
528f7c1
chore: adding deployment scripts
kupermind Oct 23, 2024
aaa2039
doc: v.1.4.0-internal-audit
Oct 23, 2024
63eedea
doc: v.1.4.0-internal-audit
Oct 23, 2024
bc9a4e9
refactor: NFT fix
kupermind Oct 23, 2024
3918217
chore: set initial contribute agent statuses
kupermind Oct 23, 2024
fda1740
Merge remote-tracking branch 'origin/v.1.4.0-internal-audit' into scr…
kupermind Oct 23, 2024
e5eb2de
addressing audit remarks and adding graphics
kupermind Oct 23, 2024
4dca0fd
chore: adding optimus deployment script for mode
kupermind Oct 23, 2024
80d45c2
test: add more tests
kupermind Oct 23, 2024
4783cd9
chore: missing ABIs
kupermind Oct 23, 2024
b9b5919
chore: adding ABIs
kupermind Oct 23, 2024
4c0c33d
chore: testnet re-deployment
kupermind Oct 23, 2024
b57872f
doc: update contribute flowchart
kupermind Oct 24, 2024
7bd49bb
doc: update contribute flowchart
kupermind Oct 24, 2024
011463c
test: next to full coverage
kupermind Oct 24, 2024
33044d6
Merge pull request #34 from valory-xyz/scripts_tests
DavidMinarsch Oct 24, 2024
e752848
Merge pull request #33 from valory-xyz/contribute
kupermind Oct 24, 2024
16b6405
Merge pull request #32 from valory-xyz/refactor
kupermind Oct 24, 2024
830380a
test: unskipping other tests
kupermind Oct 24, 2024
2a96a08
chore: removing unnecesary variables
kupermind Oct 24, 2024
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 @@ -57,8 +57,7 @@ async function main() {
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 });
Comment on lines -60 to -61
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a small formatting thing, no change

const stakingActivityChecker = await StakingActivityChecker.connect(EOA).deploy(livenessRatio, { gasPrice });
const result = await stakingActivityChecker.deployed();

// Transaction details
Expand Down
38 changes: 38 additions & 0 deletions scripts/deployment/globals_gnosis_mainnet_qs_beta_expert4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why no agentMechAddress?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"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",
"livenessRatio":"694444444444444",
"stakingActivityCheckerAddress":"",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbd

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
"stakingParams":
{
"metadataHash":"",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in other places we added this ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be added when that field is filled with correct data during the deployment.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the data is filled retrospectively assuming the deployment is done via the UI.

"maxNumServices":"20",
"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":""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbd

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

},
"stakingTokenInstanceAddress":""
}
38 changes: 38 additions & 0 deletions scripts/deployment/globals_gnosis_mainnet_qs_beta_expert5.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":"gnosis",
"networkURL":"https://rpc.gnosischain.com",
"gasPriceInGwei":"4",
"gnosisSafeAddress":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",
"gnosisSafeProxyFactoryAddress":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",
"serviceRegistryAddress":"0x9338b5153AE39BB89f50468E608eD9d764B755fD",
"serviceRegistryTokenUtilityAddress":"0xa45E64d13A30a51b91ae0eb182e88a40e9b18eD8",
"olasAddress":"0xcE11e14225575945b8E6Dc0D4F2dD4C570f79d9f",
"multisigProxyHash130":"0xb89c1b3bdf2cf8827818646bce9a8f6e372885f8c55e5c07acbd307cb133b000",
"stakingNativeTokenAddress":"",
"stakingTokenAddress":"0xEa00be6690a871827fAfD705440D20dd75e67AB1",
"livenessRatio":"694444444444444",
"stakingActivityCheckerAddress":"",
"stakingFactoryAddress":"0xb0228CA253A88Bc8eb4ca70BCAC8f87b381f4700",
"stakingParams":
{
"metadataHash":"",
"maxNumServices":"20",
"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":""
},
"stakingTokenInstanceAddress":""
}
Loading