diff --git a/package.json b/package.json index b1ac63e2..0e76331a 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/subgraph/OKX_X1_testnet-subgraph.yaml b/subgraph/OKX_X1_testnet-subgraph.yaml index 05992cea..95b47200 100644 --- a/subgraph/OKX_X1_testnet-subgraph.yaml +++ b/subgraph/OKX_X1_testnet-subgraph.yaml @@ -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: @@ -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: