Skip to content

Commit

Permalink
Adding subgraph fixing merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemua committed Feb 22, 2024
1 parent bf49f1f commit f4b5e4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 28 deletions.
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
"graph:linea-deploy": "graph deploy --node https://graph-deploy.linea.build/ --ipfs https://graph-ipfs.linea.build LedgityLabs/LedgityYield ./subgraph/linea-subgraph.yaml",
"graph:linea-remove": "graph remove --node https://graph-deploy.linea.build/ LedgityLabs/LedgityYield",
"graph:arbitrum-gen": "cd subgraph && graph codegen ./arbitrum-subgraph.yaml && graph build ./arbitrum-subgraph.yaml",
"graph:arbitrum-deploy": "graph deploy --studio ledgity-yield-arbitrum ./subgraph/arbitrum-subgraph.yaml",
"graph:OKX_X1_testnet-gen": "cd subgraph && graph codegen ./OKX_X1_testnet-subgraph.yaml && graph build ./OKX_X1_testnet-subgraph.yaml",
"graph:OKX_X1_testnet-create": "graph create --node https://www.okx.com/api/v1/x1-testnet/index/subgraphs/name/LedgityLabs/LedgityYield LedgityLabs/LedgityYield",
"graph:OKX_X1_testnet-deploy": "graph deploy --node https://www.okx.com/api/v1/x1-testnet/subgraph/ LedgityLabs/LedgityYield ./subgraph/OKX_X1_testnet-subgraph.yaml"
"graph:arbitrum-deploy": "graph deploy --studio ledgity-yield-arbitrum ./subgraph/arbitrum-subgraph.yaml"
},
"dependencies": {
"@auth/prisma-adapter": "^1.0.11",
Expand Down Expand Up @@ -78,7 +75,7 @@
},
"devDependencies": {
"@graphprotocol/client-cli": "3.0.0",
"@graphprotocol/graph-ts": "^0.33.0",
"@graphprotocol/graph-ts": "^0.31.0",
"@next/bundle-analyzer": "^14.0.0",
"@nomicfoundation/hardhat-verify": "^2",
"@openzeppelin/contracts": "4.9.0",
Expand Down
26 changes: 3 additions & 23 deletions subgraph/OKX_X1_testnet-subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ schema:
dataSources:
- kind: ethereum/contract
name: LTokenSignaler
network: arbitrum-one
network: xgon
source:
address: "0x1e1B0bB6C182eFD7d64cdAbbF3A3E315dE26E259"
address: "0x6A88b87aA4865e8d67D7CD32178bA03F885a088a"
abi: LTokenSignaler
startBlock: 10172276
mapping:
Expand All @@ -26,30 +26,10 @@ dataSources:
eventHandlers:
- event: LTokenSignalEvent(indexed address)
handler: handleSignaledLToken
- kind: ethereum/contract
name: PreMining
network: arbitrum-one
source:
address: "0x2Bb79F621518BbA45dA5Ec57BC885C4686A60De9"
abi: PreMining
startBlock: 10172300
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./mapping.ts
entities:
- PreMining
abis:
- name: PreMining
file: ../contracts/abis/PreMining.json
eventHandlers:
- event: Lock(indexed address,uint256,uint8)
handler: handlePreMiningLock
templates:
- kind: ethereum/contract
name: LToken
network: arbitrum-one
network: xgon
source:
abi: LToken
mapping:
Expand Down

0 comments on commit f4b5e4b

Please sign in to comment.