From b3044f1f36da1b85d7bc58808f4b8ede39b22dd0 Mon Sep 17 00:00:00 2001 From: sirpy Date: Wed, 29 Nov 2023 11:26:41 +0200 Subject: [PATCH] refactor: package.json --- packages/subgraph/package.json | 6 ++---- packages/subgraph/subgraph.template.yaml | 8 +++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index 52956a62..240cda9e 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -3,13 +3,11 @@ "license": "UNLICENSED", "version": "1.0.0", "scripts": { - "prepare": "mustache config/config.json src/subgraph.template.yaml > subgraph.yaml", - "prepare:alfajores": "mustache config/celo-alfajores.json subgraph.template.yaml > subgraph.yaml", - "prepare:celo": "mustache config/celo.json subgraph.template.yaml > subgraph.yaml && graph auth --studio c23dfcb6fc1408d5aaedf491ea626aee && graph deploy --studio goodcollective", + "prepare": "mustache config/celo.json subgraph.template.yaml > subgraph.yaml", "codegen": "yarn build:copyabi && graph codegen", "build": "yarn build:copyabi && graph build", "build:copyabi": "find ../contracts/artifacts/contracts/ -type f -not -name '*.dbg.json' -exec cp '{}' ./abis/ \\;", - "deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ GITHUB_USERNAME/your-contract", + "deploy": "graph deploy --product hosted-service gooddollar/goodcollective", "create-local": "graph create --node http://localhost:8020/ scaffold-eth/your-contract", "remove-local": "graph remove --node http://localhost:8020/ scaffold-eth/your-contract", "deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 scaffold-eth/your-contract", diff --git a/packages/subgraph/subgraph.template.yaml b/packages/subgraph/subgraph.template.yaml index 49ea1b9a..ba666c77 100644 --- a/packages/subgraph/subgraph.template.yaml +++ b/packages/subgraph/subgraph.template.yaml @@ -26,8 +26,8 @@ dataSources: handler: handlePoolDetailsChanged - event: PoolVerifiedChanged(indexed address,bool) handler: handlePoolVerifiedChange - file: ./src/mappings/pool.ts + - kind: ethereum/contract name: DirectPaymentsPool # prettier-ignore @@ -43,7 +43,6 @@ dataSources: - DirectPaymentPool - SafetyLimits - PoolSettings - - Claim abis: - name: DirectPaymentsPool @@ -57,8 +56,8 @@ dataSources: handler: handleRewardClaim - event: NFTClaimed(indexed uint256,uint256) handler: handleClaim - file: ./src/mappings/pool.ts + - kind: ethereum name: ProvableNFT # prettier-ignore @@ -79,8 +78,8 @@ dataSources: eventHandlers: - event: ProvableNftMinted(uint256,address,bytes32) handler: handleNftMint - file: ./src/mappings/ProvableNFT.ts + - kind: ethereum name: SuperApp # prettier-ignore @@ -101,5 +100,4 @@ dataSources: eventHandlers: - event: SupporterUpdated(indexed address,uint256,uint256,int96,int96,bool) handler: handleSupport - file: ./src/mappings/superApp.ts