From ffe711ad7fa08d7917ae734066ef853c261a9f0a Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Sat, 20 Apr 2024 12:41:21 -0500 Subject: [PATCH] sepolia deploy --- backend/contract-addresses.json | 8 ++++---- ethereum/contract-addresses.json | 8 ++++---- ethereum/scripts/automatic-staking.js | 2 +- ethereum/test/Onboarding.js | 5 ++++- frontend/contract-addresses.json | 8 ++++---- 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/backend/contract-addresses.json b/backend/contract-addresses.json index 77cb51a..f3a4430 100644 --- a/backend/contract-addresses.json +++ b/backend/contract-addresses.json @@ -6,9 +6,9 @@ "Proposals": "0x981234BBBC1ec93200F5BB3a65e2F9711A6109aa" }, "sepolia": { - "DAO": "0x241514DC94568e98222fBE66662b054b545A61AE", - "Work1": "0xc04152a440d8f79099e2049dc19b07EE7f2F8cc0", - "Onboarding": "0xFa5877940e527559320afc1303c06D0fb7E88907", - "Proposals": "0xeA9AF5fF56ef2bfd9DbC1295F1488302c61B92dF" + "DAO": "0x98F7A2ce8C9b7F739b2bdBc174F59D0e5fDc4Af8", + "Work1": "0x514e65208d43865F84Ab6aE67dAAd06078613417", + "Onboarding": "0x0f2998E49aeA7081BF86561b9fe51604a962F9FC", + "Proposals": "0x9BaEdea14145c5368867b1f0cDd7CE298768737e" } } \ No newline at end of file diff --git a/ethereum/contract-addresses.json b/ethereum/contract-addresses.json index 77cb51a..f3a4430 100644 --- a/ethereum/contract-addresses.json +++ b/ethereum/contract-addresses.json @@ -6,9 +6,9 @@ "Proposals": "0x981234BBBC1ec93200F5BB3a65e2F9711A6109aa" }, "sepolia": { - "DAO": "0x241514DC94568e98222fBE66662b054b545A61AE", - "Work1": "0xc04152a440d8f79099e2049dc19b07EE7f2F8cc0", - "Onboarding": "0xFa5877940e527559320afc1303c06D0fb7E88907", - "Proposals": "0xeA9AF5fF56ef2bfd9DbC1295F1488302c61B92dF" + "DAO": "0x98F7A2ce8C9b7F739b2bdBc174F59D0e5fDc4Af8", + "Work1": "0x514e65208d43865F84Ab6aE67dAAd06078613417", + "Onboarding": "0x0f2998E49aeA7081BF86561b9fe51604a962F9FC", + "Proposals": "0x9BaEdea14145c5368867b1f0cDd7CE298768737e" } } \ No newline at end of file diff --git a/ethereum/scripts/automatic-staking.js b/ethereum/scripts/automatic-staking.js index 3253d64..de1da3c 100644 --- a/ethereum/scripts/automatic-staking.js +++ b/ethereum/scripts/automatic-staking.js @@ -22,7 +22,7 @@ const getCurrentVersion = () => { }; const fetchCurrentVersionProposal = async () => { - const p = await proposalsContract. + // const p = await proposalsContract. }; const getLatestVersion = () => { diff --git a/ethereum/test/Onboarding.js b/ethereum/test/Onboarding.js index 8be8280..90c1faf 100644 --- a/ethereum/test/Onboarding.js +++ b/ethereum/test/Onboarding.js @@ -124,9 +124,12 @@ describe('Onboarding', () => { await expect(dao.evaluateOutcome(1)).to.emit(dao, 'ValidationPoolInitiated').withArgs(2); expect(await dao.postCount()).to.equal(3); const post = await dao.posts('req-content-id'); - expect(post.author).to.equal(account2); expect(post.sender).to.equal(onboarding.target); expect(post.id).to.equal('req-content-id'); + const postAuthors = await dao.getPostAuthors('req-content-id'); + expect(postAuthors).to.have.length(1); + expect(postAuthors[0].weightPercent).to.equal(100); + expect(postAuthors[0].authorAddress).to.equal(account2); const pool = await dao.validationPools(2); expect(pool.postId).to.equal('req-content-id'); expect(pool.fee).to.equal(PRICE * 0.1); diff --git a/frontend/contract-addresses.json b/frontend/contract-addresses.json index 77cb51a..f3a4430 100644 --- a/frontend/contract-addresses.json +++ b/frontend/contract-addresses.json @@ -6,9 +6,9 @@ "Proposals": "0x981234BBBC1ec93200F5BB3a65e2F9711A6109aa" }, "sepolia": { - "DAO": "0x241514DC94568e98222fBE66662b054b545A61AE", - "Work1": "0xc04152a440d8f79099e2049dc19b07EE7f2F8cc0", - "Onboarding": "0xFa5877940e527559320afc1303c06D0fb7E88907", - "Proposals": "0xeA9AF5fF56ef2bfd9DbC1295F1488302c61B92dF" + "DAO": "0x98F7A2ce8C9b7F739b2bdBc174F59D0e5fDc4Af8", + "Work1": "0x514e65208d43865F84Ab6aE67dAAd06078613417", + "Onboarding": "0x0f2998E49aeA7081BF86561b9fe51604a962F9FC", + "Proposals": "0x9BaEdea14145c5368867b1f0cDd7CE298768737e" } } \ No newline at end of file