From 7a5af5b493c781322e8b17c4c4b8a4a9f516acbc Mon Sep 17 00:00:00 2001 From: pgendreau Date: Mon, 10 Mar 2025 21:50:15 -0400 Subject: [PATCH] chore: template grafting --- config/baseSepolia.json | 5 +++++ config/matic.json | 5 +++++ config/polter.json | 5 +++++ subgraph.polter.template.yaml | 12 +++++++----- subgraph.sepolia.yaml | 14 ++++++++------ subgraph.template.yaml | 7 ++++--- subgraph.yaml | 8 ++++++-- 7 files changed, 40 insertions(+), 16 deletions(-) diff --git a/config/baseSepolia.json b/config/baseSepolia.json index bb04b79..d8c3515 100644 --- a/config/baseSepolia.json +++ b/config/baseSepolia.json @@ -1,4 +1,9 @@ { + "grafting": false, + "graft": { + "deploymentId": "QmQ2wyvSmj7fdjtWdKYSNvcLLg9xxoheEAdkYMbiUS7Phu", + "startBlock": 62782000 + }, "coreAddress": "0xf81FFb9E2a72574d3C4Cf4E293D4Fec4A708F2B1", "coreStartBlock": 18371153, "network": "base-sepolia" diff --git a/config/matic.json b/config/matic.json index e1ece0a..63900f4 100644 --- a/config/matic.json +++ b/config/matic.json @@ -1,4 +1,9 @@ { + "grafting": true, + "graft": { + "deploymentId": "QmP7WDBUeazfUc96uGa71ukM8ZUZHS3GunviVSrJvxSy62", + "startBlock": 68694611 + }, "coreAddress": "0x86935F11C86623deC8a25696E1C19a8659CbF95d", "coreStartBlock": 11500000, "realmAddress": "0x1D0360BaC7299C86Ec8E99d0c1C9A95FEfaF2a11", diff --git a/config/polter.json b/config/polter.json index 72dc7b8..2f5fafa 100644 --- a/config/polter.json +++ b/config/polter.json @@ -1,4 +1,9 @@ { + "grafting": false, + "graft": { + "deploymentId": "QmQ2wyvSmj7fdjtWdKYSNvcLLg9xxoheEAdkYMbiUS7Phu", + "startBlock": 62782000 + }, "coreAddress": "0x226625C1B1174e7BaaE8cDC0432Db0e2ED83b7Ba", "coreStartBlock": 4273, "network": "geist-polter" diff --git a/subgraph.polter.template.yaml b/subgraph.polter.template.yaml index 4417cce..cf2526f 100644 --- a/subgraph.polter.template.yaml +++ b/subgraph.polter.template.yaml @@ -1,9 +1,11 @@ specVersion: 0.0.4 -# features: -# - grafting -# graft: -# base: QmQ2wyvSmj7fdjtWdKYSNvcLLg9xxoheEAdkYMbiUS7Phu # Subgraph ID of base subgraph -# block: 62782000 # Block number +{{#grafting}} +features: + - grafting +graft: + base: {{graft.deploymentId}} # Subgraph ID of base subgraph + block: {{graft.startBlock}} # Block number to start grafting +{{/grafting}} description: Aavegotchi Core Matic repository: schema: diff --git a/subgraph.sepolia.yaml b/subgraph.sepolia.yaml index 5c02e99..76ff3da 100644 --- a/subgraph.sepolia.yaml +++ b/subgraph.sepolia.yaml @@ -1,9 +1,11 @@ specVersion: 0.0.4 -# features: -# - grafting -# graft: -# base: QmQ2wyvSmj7fdjtWdKYSNvcLLg9xxoheEAdkYMbiUS7Phu # Subgraph ID of base subgraph -# block: 62782000 # Block number +{{#grafting}} +features: + - grafting +graft: + base: {{graft.deploymentId}} # Subgraph ID of base subgraph + block: {{graft.startBlock}} # Block number to start grafting +{{/grafting}} description: Aavegotchi Core Matic repository: schema: @@ -167,4 +169,4 @@ 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 diff --git a/subgraph.template.yaml b/subgraph.template.yaml index 84879f5..56e64e3 100644 --- a/subgraph.template.yaml +++ b/subgraph.template.yaml @@ -1,10 +1,11 @@ specVersion: 0.0.4 +{{#grafting}} features: - grafting graft: - base: QmP7WDBUeazfUc96uGa71ukM8ZUZHS3GunviVSrJvxSy62 # Subgraph ID of base subgraph - block: 68694611 -# Block number + base: {{graft.deploymentId}} # Subgraph ID of base subgraph + block: {{graft.startBlock}} # Block number to start grafting +{{/grafting}} description: Aavegotchi Core Matic repository: schema: diff --git a/subgraph.yaml b/subgraph.yaml index b41bf9f..e603183 100644 --- a/subgraph.yaml +++ b/subgraph.yaml @@ -2,8 +2,8 @@ specVersion: 0.0.4 features: - grafting graft: - base: QmcFKMGsBUCCE7fkxHn8FwXkK4eRqWNoLdtY6EwiFqKEBE # Subgraph ID of base subgraph - block: 68694611 + base: QmP7WDBUeazfUc96uGa71ukM8ZUZHS3GunviVSrJvxSy62 # Subgraph ID of base subgraph + block: 68694611 # Block number to start grafting description: Aavegotchi Core Matic repository: schema: @@ -168,6 +168,10 @@ dataSources: handler: handleERC1155BuyOrderExecute - event: ERC1155BuyOrderCancel(indexed uint256,uint256) handler: handleERC1155BuyOrderCancel + - event: WearablesConfigCreated(indexed address,indexed uint256,indexed uint16,uint16[16],uint256) + handler: handleWearablesConfigCreated + - event: WearablesConfigUpdated(indexed address,indexed uint256,indexed uint16,uint16[16]) + handler: handleWearablesConfigUpdated - kind: ethereum/contract name: RealmDiamond