From 483a5667fa2e064ba1a5e74aca64e790364fed2c Mon Sep 17 00:00:00 2001 From: Stefan Adolf Date: Thu, 9 Jan 2025 08:57:35 +0100 Subject: [PATCH] disables indexing of second staked sale deployment Signed-off-by: Stefan Adolf --- subgraph/networks.json | 12 ------------ subgraph/src/crowdSaleMapping.ts | 1 - subgraph/subgraph.yaml | 17 +++++++++-------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/subgraph/networks.json b/subgraph/networks.json index 76532a9c..c295589a 100644 --- a/subgraph/networks.json +++ b/subgraph/networks.json @@ -24,10 +24,6 @@ "address": "0x0Da77f361bB56f065Aa21647d885685eb7cAE10F", "startBlock": 7339034 }, - "StakedLockingCrowdSale2": { - "address": "0x2d309CF13dC3872f9c9B1B06Ebf6F60caDe08d55", - "startBlock": 7339082 - }, "TermsAcceptedPermissioner": { "address": "0xC05D649368d8A5e2E98CAa205d47795de5fCB599", "startBlock": 5300776 @@ -58,10 +54,6 @@ "address": "0xbaadf00dbaadf00dbaadf00dbaadf00dbaadf00d", "startBlock": 21431344 }, - "StakedLockingCrowdSale2": { - "address": "0xbaadf00dbaadf00dbaadf00dbaadf00dbaadf00d", - "startBlock": 21431344 - }, "TermsAcceptedPermissioner": { "address": "0xC837E02982992B701A1B5e4E21fA01cEB0a628fA", "startBlock": 17790450 @@ -92,10 +84,6 @@ "address": "0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1", "startBlock": 0 }, - "StakedLockingCrowdSale2": { - "address": "0xbaadf00dbaadf00dbaadf00dbaadf00dbaadf00d", - "startBlock": 0 - }, "TermsAcceptedPermissioner": { "address": "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318", "startBlock": 0 diff --git a/subgraph/src/crowdSaleMapping.ts b/subgraph/src/crowdSaleMapping.ts index 00cbbfb6..2adf3c65 100644 --- a/subgraph/src/crowdSaleMapping.ts +++ b/subgraph/src/crowdSaleMapping.ts @@ -9,7 +9,6 @@ import { Started as StartedEvent } from '../generated/CrowdSale/CrowdSale' import { IERC20Metadata } from '../generated/CrowdSale/IERC20Metadata' - import { CrowdSale, IPT } from '../generated/schema' import { makeERC20Token } from './common' import * as GenericCrowdSale from './genericCrowdSale' diff --git a/subgraph/subgraph.yaml b/subgraph/subgraph.yaml index 7268d4b1..26fbffc7 100644 --- a/subgraph/subgraph.yaml +++ b/subgraph/subgraph.yaml @@ -204,14 +204,15 @@ dataSources: - event: ClaimedAuctionTokens(indexed uint256) handler: handleClaimedFailedSale file: ./src/stakedLockingCrowdSaleMapping.ts - - kind: ethereum/contract - name: StakedLockingCrowdSale2 - network: foundry - source: - abi: StakedLockingCrowdSale - address: "0xbaadf00dbaadf00dbaadf00dbaadf00dbaadf00d" - startBlock: 0 - mapping: *stakedLockingCrowdSaleMapping + # in case you need to watch another crowdsale contract this is how it could work: + # - kind: ethereum/contract + # name: StakedLockingCrowdSale2 + # network: foundry + # source: + # abi: StakedLockingCrowdSale + # address: "0xbaadf00dbaadf00dbaadf00dbaadf00dbaadf00d" + # startBlock: 0 + # mapping: *stakedLockingCrowdSaleMapping - kind: ethereum/contract name: TermsAcceptedPermissioner