From 5156588dfe0f67f68f4eae0625ab7450cc11653a Mon Sep 17 00:00:00 2001 From: Jyotirmoy Barman Date: Mon, 8 Apr 2024 21:11:08 +0530 Subject: [PATCH 1/6] chore: Updated chamber and registry abi --- subgraphs/chamber/abis/Chamber.json | 6 ++---- subgraphs/chamber/abis/Registry.json | 7 ++++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/subgraphs/chamber/abis/Chamber.json b/subgraphs/chamber/abis/Chamber.json index 130026e..6231057 100644 --- a/subgraphs/chamber/abis/Chamber.json +++ b/subgraphs/chamber/abis/Chamber.json @@ -17,8 +17,7 @@ "name": "approve", "inputs": [ { "name": "proposalId", "type": "uint256", "internalType": "uint256" }, - { "name": "tokenId", "type": "uint256", "internalType": "uint256" }, - { "name": "signature", "type": "bytes", "internalType": "bytes" } + { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" @@ -73,8 +72,7 @@ "name": "execute", "inputs": [ { "name": "proposalId", "type": "uint256", "internalType": "uint256" }, - { "name": "tokenId", "type": "uint256", "internalType": "uint256" }, - { "name": "signature", "type": "bytes", "internalType": "bytes" } + { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" diff --git a/subgraphs/chamber/abis/Registry.json b/subgraphs/chamber/abis/Registry.json index ef6a93b..40821bf 100644 --- a/subgraphs/chamber/abis/Registry.json +++ b/subgraphs/chamber/abis/Registry.json @@ -261,5 +261,10 @@ "type": "error", "name": "deployFailed", "inputs": [] + }, + { + "type": "error", + "name": "insufficientBalance", + "inputs": [] } -] +] \ No newline at end of file From b7b9b702ac4ad9dfe31b67469a9728d02c9cd428 Mon Sep 17 00:00:00 2001 From: Jyotirmoy Barman Date: Mon, 8 Apr 2024 21:11:49 +0530 Subject: [PATCH 2/6] chore: Updated registry abi --- subgraphs/chamber/abis/Registry.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgraphs/chamber/abis/Registry.json b/subgraphs/chamber/abis/Registry.json index 40821bf..b965b48 100644 --- a/subgraphs/chamber/abis/Registry.json +++ b/subgraphs/chamber/abis/Registry.json @@ -267,4 +267,4 @@ "name": "insufficientBalance", "inputs": [] } -] \ No newline at end of file +] From f4bc17e9924659145b39a16daaa357429299e1ba Mon Sep 17 00:00:00 2001 From: Jyotirmoy Barman Date: Wed, 10 Apr 2024 13:05:21 +0530 Subject: [PATCH 3/6] chore: Updated the new registry proxy address --- subgraphs/chamber/subgraph.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subgraphs/chamber/subgraph.yaml b/subgraphs/chamber/subgraph.yaml index 72b5230..943bf02 100644 --- a/subgraphs/chamber/subgraph.yaml +++ b/subgraphs/chamber/subgraph.yaml @@ -7,8 +7,8 @@ dataSources: network: sepolia source: abi: Registry - address: "0x46A49D4391F2F220D3661b2a2BFe4b306EE18845" - startBlock: 5433794 + address: "0xB3a7323b70A29604686a2da4d053cF429BAC4E7E" + startBlock: 5659777 mapping: kind: ethereum/events apiVersion: 0.0.7 From d5cf28ca9a1c13ade71fc4b120272f7de1d337c2 Mon Sep 17 00:00:00 2001 From: Jyotirmoy Barman Date: Wed, 10 Apr 2024 13:12:42 +0530 Subject: [PATCH 4/6] chore: Updated the new registry proxy address in the networks.json --- subgraphs/chamber/networks.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subgraphs/chamber/networks.json b/subgraphs/chamber/networks.json index 91f3e8e..12a2da6 100644 --- a/subgraphs/chamber/networks.json +++ b/subgraphs/chamber/networks.json @@ -1,8 +1,8 @@ { "sepolia": { "Registry": { - "address": "0x46A49D4391F2F220D3661b2a2BFe4b306EE18845", - "startBlock": 5433794 + "address": "0xB3a7323b70A29604686a2da4d053cF429BAC4E7E", + "startBlock": 5659777 } }, "holesky": { From 648c581d55ec32cf7d6fb2c1511a508f19d48b65 Mon Sep 17 00:00:00 2001 From: xhad Date: Wed, 10 Apr 2024 20:01:03 -0400 Subject: [PATCH 5/6] chore: Fix typo in test names --- subgraphs/chamber/tests/chamber.test.ts | 20 ++++++++++---------- subgraphs/chamber/tests/registry.test.ts | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/subgraphs/chamber/tests/chamber.test.ts b/subgraphs/chamber/tests/chamber.test.ts index ec9b1df..0927015 100644 --- a/subgraphs/chamber/tests/chamber.test.ts +++ b/subgraphs/chamber/tests/chamber.test.ts @@ -60,7 +60,7 @@ describe("Chamber Test", () => { const event = createChangedGuardEvent(guard); return event; }; - test("Handel ChangedGuard Tx", () => { + test("Handle ChangedGuard Tx", () => { const event = createMockChangedGuardEvent(); handleChangedGuard(event); expectChangedGuardAdded(event); @@ -76,7 +76,7 @@ describe("Chamber Test", () => { const event = createDemotionEvent(demoter, amt, tokenId); return event; }; - test("Handel Demotion Tx", () => { + test("Handle Demotion Tx", () => { const event = createMockDemotionEvent(); handleDemotion(event); expectDemotionAdded(event); @@ -88,7 +88,7 @@ describe("Chamber Test", () => { const event = createInitializedEvent(version); return event; }; - test("Handel Initialized Tx", () => { + test("Handle Initialized Tx", () => { const event = createMockInitializedEvent(); handleInitialized(event); expectInitializedAdded(event); @@ -104,7 +104,7 @@ describe("Chamber Test", () => { const event = createPromotionEvent(promoter, amt, tokenId); return event; }; - test("Handel Promotion Tx", () => { + test("Handle Promotion Tx", () => { const event = createMockPromotionEvent(); handlePromotion(event); expectPromotionAdded(event); @@ -120,7 +120,7 @@ describe("Chamber Test", () => { const event = createApprovedProposalEvent(proposalId, tokenId, approvals); return event; }; - test("Handel ApprovedProposal Tx", () => { + test("Handle ApprovedProposal Tx", () => { const event = createMockApprovedProposalEvent(); handleApprovedProposal(event); expectApprovedProposalAdded(event); @@ -146,7 +146,7 @@ describe("Chamber Test", () => { // ); // return event; // }; - // test ("Handel CreatedProposal Tx", () => { + // test ("Handle CreatedProposal Tx", () => { // const event = createMockCreatedProposalEvent(); // handleCreatedProposal(event); // expectCreatedProposalAdded(event); @@ -158,7 +158,7 @@ describe("Chamber Test", () => { const event = createExecutedProposalEvent(proposalId); return event; }; - test("Handel ExecutedProposal Tx", () => { + test("Handle ExecutedProposal Tx", () => { const event = createMockExecutedProposalEvent(); handleExecutedProposal(event); expectExecutedProposalAdded(event); @@ -170,7 +170,7 @@ describe("Chamber Test", () => { const event = createCanceledProposalEvent(proposalId); return event; }; - test("Handel CanceledProposal Tx", () => { + test("Handle CanceledProposal Tx", () => { const event = createMockCanceledProposalEvent(); handleCanceledProposal(event); expectCanceledProposalAdded(event); @@ -185,7 +185,7 @@ describe("Chamber Test", () => { const event = createReceivedEtherEvent(sender, value); return event; }; - test("Handel ReceivedEther Tx", () => { + test("Handle ReceivedEther Tx", () => { const event = createMockReceivedEtherEvent(); handleReceivedEther(event); expectReceivedEtherAdded(event); @@ -200,7 +200,7 @@ describe("Chamber Test", () => { const event = createReceivedFallbackEvent(sender, value); return event; }; - test("Handel ReceivedFallback Tx", () => { + test("Handle ReceivedFallback Tx", () => { const event = createMockReceivedFallbackEvent(); handleReceivedFallback(event); expectReceivedFallbackAdded(event); diff --git a/subgraphs/chamber/tests/registry.test.ts b/subgraphs/chamber/tests/registry.test.ts index e778a84..077b5fe 100644 --- a/subgraphs/chamber/tests/registry.test.ts +++ b/subgraphs/chamber/tests/registry.test.ts @@ -20,7 +20,7 @@ describe("Registry Test", () => { const event = createChamberDeployedEvent(chamber, serial, deployer, memberToken, govToken); return event; }; - test("Handel ChamberDeployed Tx", () => { + test("Handle ChamberDeployed Tx", () => { const event = createMockChamberDeployedEvent(); handleChamberDeployed(event); expectChamberDeployedAdded(event); @@ -35,7 +35,7 @@ describe("Registry Test", () => { const event = createOwnershipTransferredEvent(previousOwner, newOwner); return event; }; - test("Handel OwnershipTransferred Tx", () => { + test("Handle OwnershipTransferred Tx", () => { const event = createMockOwnershipTransferredEvent(); handleOwnershipTransferred(event); expectOwnershipTransferredAdded(event); From a5e2a895e68783be14def9e712dfcbc9cc8a61ff Mon Sep 17 00:00:00 2001 From: xhad Date: Wed, 10 Apr 2024 20:40:30 -0400 Subject: [PATCH 6/6] chore: Update url on Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c4fb842..1e5f615 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,4 @@ yarn lint | Release | Subgraph | URL | | --------- | ------------------------- | ---------------------------------------------------------------------------| -| vX.X.X | loreum-registry-sepolia | https://api.studio.thegraph.com/query/67520/loreum-registry-sepolia/v0.0.2 | +| vX.X.X | loreum-registry-sepolia | https://api.studio.thegraph.com/query/67520/loreum-registry-sepolia/vX.X.X |