Skip to content

Commit

Permalink
refactor: package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Nov 29, 2023
1 parent 03cb90d commit b3044f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions packages/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 3 additions & 5 deletions packages/subgraph/subgraph.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -43,7 +43,6 @@ dataSources:
- DirectPaymentPool
- SafetyLimits
- PoolSettings

- Claim
abis:
- name: DirectPaymentsPool
Expand All @@ -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
Expand All @@ -79,8 +78,8 @@ dataSources:
eventHandlers:
- event: ProvableNftMinted(uint256,address,bytes32)
handler: handleNftMint

file: ./src/mappings/ProvableNFT.ts

- kind: ethereum
name: SuperApp
# prettier-ignore
Expand All @@ -101,5 +100,4 @@ dataSources:
eventHandlers:
- event: SupporterUpdated(indexed address,uint256,uint256,int96,int96,bool)
handler: handleSupport

file: ./src/mappings/superApp.ts

0 comments on commit b3044f1

Please sign in to comment.