Skip to content

Commit

Permalink
chore: test geist support
Browse files Browse the repository at this point in the history
  • Loading branch information
cinnabarhorse committed Nov 27, 2024
1 parent 4b90ef5 commit 38da38e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
5 changes: 5 additions & 0 deletions config/geist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"coreAddress": "0x6Acc828BbbC6874de40Ca20bfeA7Cd2a2DA8DA8c",
"coreStartBlock": 4273,
"network": "geist-mainnet"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
24 changes: 9 additions & 15 deletions subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
handler: handleERC1155BuyOrderCancel


0 comments on commit 38da38e

Please sign in to comment.