Skip to content

Commit

Permalink
Merge pull request #52 from aavegotchi/feat/addMumbaiSubgraph
Browse files Browse the repository at this point in the history
feat: add mumbai subgraph
  • Loading branch information
froid1911 authored May 4, 2023
2 parents 07c3ee4 + c672de5 commit 432f46e
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-hosted-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ jobs:
- name: Deploy to TheGraph Hosted Service
run: |
npx graph deploy --access-token ${{secrets.GRAPH_ACCESS_TOKEN}} aavegotchi/gotchiverse-matic subgraph.yaml --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/
npx graph deploy --access-token ${{secrets.GRAPH_ACCESS_TOKEN}} aavegotchi/gotchiverse-mumbai subgraph.mumbai.yaml --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/
shell: bash
1 change: 1 addition & 0 deletions .github/workflows/deploy-satsuma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ jobs:
- name: Deploy to Satsuma
run: |
npx graph deploy --access-token ${{secrets.SATSUMA_ACCESS_TOKEN}} gotchiverse-matic subgraph.yaml --node https://app.satsuma.xyz/api/subgraphs/deploy --version-label ${GITHUB_REF#refs/*/}
npx graph deploy --access-token ${{secrets.SATSUMA_ACCESS_TOKEN}} gotchiverse-mumbai subgraph.mumbai.yaml --node https://app.satsuma.xyz/api/subgraphs/deploy --version-label ${GITHUB_REF#refs/*/}
shell: bash
152 changes: 152 additions & 0 deletions subgraph.mumbai.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
specVersion: 0.0.4
# features:
# - grafting
# graft:
# base: QmV3UGEkvsvEzL5GcDXqBxHqZyF4au6vPWNNZHLuz1ohSe # Subgraph ID of base subgraph
# block: 28000000 # Block number
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: RealmDiamond
network: mumbai
source:
address: "0x726F201A9aB38cD56D60ee392165F1434C4F193D"
abi: RealmDiamond
startBlock: 20667840
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ChannelAlchemica
- EquipTileEvent
- UnequipTileEvent
abis:
- name: RealmDiamond
file: ./abis/RealmDiamond.json
- name: InstallationDiamond
file: ./abis/InstallationDiamond.json
- name: TileDiamond
file: ./abis/TileDiamond.json
eventHandlers:
- event: AlchemicaClaimed(indexed uint256,indexed uint256,indexed uint256,uint256,uint256,uint256)
handler: handleAlchemicaClaimed
- event: ChannelAlchemica(indexed uint256,indexed uint256,uint256[4],uint256,uint256)
handler: handleChannelAlchemica
- event: ExitAlchemica(indexed uint256,uint256[])
handler: handleExitAlchemica(indexed uint256,uint256[])
- event: EquipInstallation(uint256,uint256,uint256,uint256)
handler: handleEquipInstallation
- event: InstallationUpgraded(uint256,uint256,uint256,uint256,uint256)
handler: handleInstallationUpgraded
- event: UnequipInstallation(uint256,uint256,uint256,uint256)
handler: handleUnequipInstallation
- event: EquipTile(uint256,uint256,uint256,uint256)
handler: handleEquipTile
- event: UnequipTile(uint256,uint256,uint256,uint256)
handler: handleUnequipTile
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: MintParcel(indexed address,indexed uint256)
handler: handleMintParcel
- event: ResyncParcel(uint256)
handler: handleResyncParcel
- event: NFTDisplayStatusUpdated(address,uint256,bool)
handler: handleNFTDisplayStatusUpdated
- event: ParcelAccessRightSet(uint256,uint256,uint256)
handler: handleParcelAccessRightSet
- event: EventStarted(indexed uint256,(string,uint64,uint64,uint120,bool,uint64))
handler: handleBounceGateEventStarted
- event: EventCancelled(indexed uint256)
handler: handleBounceGateEventCancelled
- event: EventPriorityAndDurationUpdated(indexed uint256,uint120,uint64)
handler: handleBounceGateEventPriorityAndDurationUpdated
- event: ParcelWhitelistSet(uint256,uint256,uint256)
handler: handleParcelWhitelistSet
file: ./src/mappings/realm.ts
- kind: ethereum/contract
name: TileDiamond
network: mumbai
source:
address: "0xDd8947D7F6705136e5A12971231D134E80DFC15d"
abi: TileDiamond
startBlock: 26930279
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- MintTileEvent
- TileType
abis:
- name: RealmDiamond
file: ./abis/RealmDiamond.json
- name: InstallationDiamond
file: ./abis/InstallationDiamond.json
- name: TileDiamond
file: ./abis/TileDiamond.json
eventHandlers:
- event: MintTile(indexed address,indexed uint256,uint256)
handler: handleMintTile
- event: MintTiles(indexed address,indexed uint256,uint16)
handler: handleMintTiles
- event: CraftTimeReduced(indexed uint256,uint256)
handler: handleCraftTimeReduced
- event: URI(string,indexed uint256)
handler: handleURI
- event: EditTileType(indexed uint256,(uint8,uint8,bool,uint16,uint32,uint256[4],string))
handler: handleEditTileType
- event: EditDeprecateTime(uint256,uint256)
handler: handleEditDeprecateTime
file: ./src/mappings/tile.ts
- kind: ethereum/contract
name: InstallationDiamond
network: mumbai
source:
address: "0x663aeA831087487d2944ce44836F419A35Ee005A"
abi: InstallationDiamond
startBlock: 26930257
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- MintInstallationEvent
- UpgradeInitiatedEvent
- AddInstallationTypeEvent
- EditInstallationTypeEvent
- DeprecateInstallationEvent
abis:
- name: RealmDiamond
file: ./abis/RealmDiamond.json
- name: InstallationDiamond
file: ./abis/InstallationDiamond.json
- name: TileDiamond
file: ./abis/TileDiamond.json
file: ./src/mappings/installation.ts
eventHandlers:
- event: MintInstallation(indexed address,indexed uint256,uint256)
handler: handleMintInstallation
- event: MintInstallations(indexed address,indexed uint256,uint16)
handler: handleMintInstallations
- event: UpgradeInitiated(indexed uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleUpgradeInitiated
- event: AddInstallationType(uint256)
handler: handleAddInstallationType
- event: EditInstallationType(uint256)
handler: handleEditInstallationType
- event: DeprecateInstallation(uint256)
handler: handleDeprecateInstallation
- event: CraftTimeReduced(indexed uint256,uint256)
handler: handleCraftTimeReduced
- event: UpgradeTimeReduced(indexed uint256,indexed uint256,uint256,uint256,uint40)
handler: handleUpgradeTimeReduced
- event: UpgradeFinalized(indexed uint256,uint256,uint256,uint256)
handler: handleUpgradeFinalized
- event: UpgradeQueued(indexed address,indexed uint256,indexed uint256)
handler: handleUpgradeQueued
- event: URI(string,indexed uint256)
handler: handleURI
- event: EditDeprecateTime(uint256,uint256)
handler: handleEditDeprecateTime

0 comments on commit 432f46e

Please sign in to comment.