From 38da38e0df28823a745d15d7d9608e2c5b07846c Mon Sep 17 00:00:00 2001 From: Coderdan Date: Wed, 27 Nov 2024 21:48:31 +0800 Subject: [PATCH] chore: test geist support --- config/geist.json | 5 +++++ package.json | 1 + subgraph.yaml | 24 +++++++++--------------- 3 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 config/geist.json diff --git a/config/geist.json b/config/geist.json new file mode 100644 index 0000000..832b6a5 --- /dev/null +++ b/config/geist.json @@ -0,0 +1,5 @@ +{ + "coreAddress": "0x6Acc828BbbC6874de40Ca20bfeA7Cd2a2DA8DA8c", + "coreStartBlock": 4273, + "network": "geist-mainnet" +} diff --git a/package.json b/package.json index 8de51ed..a0daec6 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "prepare:matic": "mustache config/matic.json subgraph.template.yaml > subgraph.yaml", "prepare:amoy": "mustache config/amoy.json subgraph.template.yaml > subgraph.yaml", "prepare:polter": "mustache config/polter.json subgraph.polter.template.yaml > subgraph.yaml", + "prepare:geist": "mustache config/geist.json subgraph.polter.template.yaml > subgraph.yaml", "prepare:baseSepolia": "mustache config/baseSepolia.json subgraph.sepolia.yaml > subgraph.yaml", "deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ aavegotchi/aavegotchi-core-matic", "create-local": "graph create --node http://localhost:8020/ aavegotchi/aavegotchi-core-matic", diff --git a/subgraph.yaml b/subgraph.yaml index 118b675..0005ed0 100644 --- a/subgraph.yaml +++ b/subgraph.yaml @@ -11,32 +11,24 @@ schema: dataSources: - kind: ethereum/contract name: AavegotchiDiamond - network: "base-sepolia" + network: "geist-mainnet" source: - address: "0xb8D555680BCD42724DfdFeEa774D1C7890BE143f" + address: "0x6Acc828BbbC6874de40Ca20bfeA7Cd2a2DA8DA8c" abi: AavegotchiDiamond - startBlock: 18371153 + startBlock: 4273 mapping: kind: ethereum/events apiVersion: 0.0.6 language: wasm/assemblyscript - file: ./src/mappings/diamond.ts + file: ./src/mappings/polter.ts entities: - User abis: - name: AavegotchiDiamond file: ./abis/AavegotchiDiamond.json - - name: RealmDiamond - file: ./abis/RealmDiamond.json + # - name: RealmDiamond + # file: ./abis/RealmDiamond.json eventHandlers: - - event: BuyPortals(indexed address,indexed address,uint256,uint256,uint256) - handler: handleBuyPortals - - event: Xingyun(indexed address,indexed address,uint256,uint256,uint256) - handler: handleXingyun - - event: PortalOpened(indexed uint256) - handler: handlePortalOpened - - event: ClaimAavegotchi(indexed uint256) - handler: handleClaimAavegotchi - event: IncreaseStake(indexed uint256,uint256) handler: handleIncreaseStake - event: DecreaseStake(indexed uint256,uint256) @@ -167,4 +159,6 @@ dataSources: - event: ERC1155BuyOrderExecute(indexed uint256,indexed address,address,address,uint256,indexed uint256,uint256,uint256,uint256) handler: handleERC1155BuyOrderExecute - event: ERC1155BuyOrderCancel(indexed uint256,uint256) - handler: handleERC1155BuyOrderCancel \ No newline at end of file + handler: handleERC1155BuyOrderCancel + +