From 0f41f1559ea34d84669f39775b1938431dc6a339 Mon Sep 17 00:00:00 2001 From: Soil King <157099073+soilking@users.noreply.github.com> Date: Tue, 30 Jul 2024 13:10:26 -0700 Subject: [PATCH] from -> fromFarmer --- .../manifests/ethereum.yaml | 616 +++++++++--------- projects/subgraph-beanstalk/schema.graphql | 8 +- 2 files changed, 312 insertions(+), 312 deletions(-) diff --git a/projects/subgraph-beanstalk/manifests/ethereum.yaml b/projects/subgraph-beanstalk/manifests/ethereum.yaml index 73e5333ae4..84624d1794 100644 --- a/projects/subgraph-beanstalk/manifests/ethereum.yaml +++ b/projects/subgraph-beanstalk/manifests/ethereum.yaml @@ -2,309 +2,309 @@ specVersion: 0.0.4 schema: file: ../schema.graphql dataSources: - # Historical Cache loading - - kind: ethereum/contract - name: TokenCacheWindow1_1 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadToken1_1 - file: ../src/yield_cache/window_1/LoadToken_1.ts - - kind: ethereum/contract - name: TokenCacheWindow1_2 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadToken1_2 - file: ../src/yield_cache/window_1/LoadToken_2.ts - - kind: ethereum/contract - name: SiloCacheWindow1_1 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadSilo1_1 - file: ../src/yield_cache/window_1/LoadSilo_1.ts - - kind: ethereum/contract - name: SiloCacheWindow1_2 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadSilo1_2 - file: ../src/yield_cache/window_1/LoadSilo_2.ts - - kind: ethereum/contract - name: SiloCacheWindow1_3 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadSilo1_3 - file: ../src/yield_cache/window_1/LoadSilo_3.ts - # Window 2 - - kind: ethereum/contract - name: TokenCacheWindow2_1 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadToken2_1 - file: ../src/yield_cache/window_2/LoadToken_1.ts - - kind: ethereum/contract - name: TokenCacheWindow2_2 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadToken2_2 - file: ../src/yield_cache/window_2/LoadToken_2.ts - - kind: ethereum/contract - name: SiloCacheWindow2_1 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadSilo2_1 - file: ../src/yield_cache/window_2/LoadSilo_1.ts - - kind: ethereum/contract - name: SiloCacheWindow2_2 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadSilo2_2 - file: ../src/yield_cache/window_2/LoadSilo_2.ts - - kind: ethereum/contract - name: SiloCacheWindow2_3 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadSilo2_3 - file: ../src/yield_cache/window_2/LoadSilo_3.ts - # Window 3 - - kind: ethereum/contract - name: TokenCacheWindow3_1 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadToken3_1 - file: ../src/yield_cache/window_3/LoadToken_1.ts - - kind: ethereum/contract - name: TokenCacheWindow3_2 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadToken3_2 - file: ../src/yield_cache/window_3/LoadToken_2.ts - - kind: ethereum/contract - name: SiloCacheWindow3_1 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadSilo3_1 - file: ../src/yield_cache/window_3/LoadSilo_1.ts - - kind: ethereum/contract - name: SiloCacheWindow3_2 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadSilo3_2 - file: ../src/yield_cache/window_3/LoadSilo_2.ts - - kind: ethereum/contract - name: SiloCacheWindow3_3 - network: mainnet - source: - address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" - abi: PreReplant - startBlock: 12974075 - mapping: - kind: ethereum/events - apiVersion: 0.0.6 - language: wasm/assemblyscript - entities: - - Diamond - abis: - - name: PreReplant - file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json - eventHandlers: - - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) - handler: handleLoadSilo3_3 - file: ../src/yield_cache/window_3/LoadSilo_3.ts + # # Historical Cache loading + # - kind: ethereum/contract + # name: TokenCacheWindow1_1 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadToken1_1 + # file: ../src/yield_cache/window_1/LoadToken_1.ts + # - kind: ethereum/contract + # name: TokenCacheWindow1_2 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadToken1_2 + # file: ../src/yield_cache/window_1/LoadToken_2.ts + # - kind: ethereum/contract + # name: SiloCacheWindow1_1 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadSilo1_1 + # file: ../src/yield_cache/window_1/LoadSilo_1.ts + # - kind: ethereum/contract + # name: SiloCacheWindow1_2 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadSilo1_2 + # file: ../src/yield_cache/window_1/LoadSilo_2.ts + # - kind: ethereum/contract + # name: SiloCacheWindow1_3 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadSilo1_3 + # file: ../src/yield_cache/window_1/LoadSilo_3.ts + # # Window 2 + # - kind: ethereum/contract + # name: TokenCacheWindow2_1 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadToken2_1 + # file: ../src/yield_cache/window_2/LoadToken_1.ts + # - kind: ethereum/contract + # name: TokenCacheWindow2_2 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadToken2_2 + # file: ../src/yield_cache/window_2/LoadToken_2.ts + # - kind: ethereum/contract + # name: SiloCacheWindow2_1 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadSilo2_1 + # file: ../src/yield_cache/window_2/LoadSilo_1.ts + # - kind: ethereum/contract + # name: SiloCacheWindow2_2 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadSilo2_2 + # file: ../src/yield_cache/window_2/LoadSilo_2.ts + # - kind: ethereum/contract + # name: SiloCacheWindow2_3 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadSilo2_3 + # file: ../src/yield_cache/window_2/LoadSilo_3.ts + # # Window 3 + # - kind: ethereum/contract + # name: TokenCacheWindow3_1 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadToken3_1 + # file: ../src/yield_cache/window_3/LoadToken_1.ts + # - kind: ethereum/contract + # name: TokenCacheWindow3_2 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadToken3_2 + # file: ../src/yield_cache/window_3/LoadToken_2.ts + # - kind: ethereum/contract + # name: SiloCacheWindow3_1 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadSilo3_1 + # file: ../src/yield_cache/window_3/LoadSilo_1.ts + # - kind: ethereum/contract + # name: SiloCacheWindow3_2 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadSilo3_2 + # file: ../src/yield_cache/window_3/LoadSilo_2.ts + # - kind: ethereum/contract + # name: SiloCacheWindow3_3 + # network: mainnet + # source: + # address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5" + # abi: PreReplant + # startBlock: 12974075 + # mapping: + # kind: ethereum/events + # apiVersion: 0.0.6 + # language: wasm/assemblyscript + # entities: + # - Diamond + # abis: + # - name: PreReplant + # file: ../../subgraph-core/abis/Beanstalk/Beanstalk-Pre-Replant.json + # eventHandlers: + # - event: DiamondCut((address,uint8,bytes4[])[],address,bytes) + # handler: handleLoadSilo3_3 + # file: ../src/yield_cache/window_3/LoadSilo_3.ts # Silo V3 - kind: ethereum/contract name: Silo-V3 @@ -778,8 +778,8 @@ dataSources: - event: UpdateGaugeSettings(indexed address,bytes4,bytes4,uint64) handler: handleUpdateGaugeSettings file: ../src/GaugeHandler.ts -features: - - grafting -graft: - base: QmUEKBYFRVGiTGb4E1CycHs87wkTJHo8DFVj5bcLvGV244 - block: 20389980 +# features: +# - grafting +# graft: +# base: QmUEKBYFRVGiTGb4E1CycHs87wkTJHo8DFVj5bcLvGV244 +# block: 20389980 diff --git a/projects/subgraph-beanstalk/schema.graphql b/projects/subgraph-beanstalk/schema.graphql index 7f50b1f031..ddb831b995 100644 --- a/projects/subgraph-beanstalk/schema.graphql +++ b/projects/subgraph-beanstalk/schema.graphql @@ -1151,7 +1151,7 @@ type PodFill @entity { "Associated order, if any" order: PodOrder "Account that is sending pods" - from: String! # These are already referenced via the listing and order entities. + fromFarmer: String! # These are already referenced via the listing and order entities. "Account that is receiving pods" to: Farmer! "Number of pods filled" @@ -1298,7 +1298,7 @@ type PodTransfer implements FieldEvent @entity(immutable: true) { " Address that received the pods " to: String! " Address that sent the pods " - from: String! + fromFarmer: String! " Index of the pods sent" index: BigInt! " Total pods being sent" @@ -1586,7 +1586,7 @@ type PodListingFilled implements MarketplaceEvent @entity(immutable: true) { " Historical ID for joins" historyID: String! "Account selling pods" - from: String! + fromFarmer: String! "Account buying pods" to: String! "Where these pods were in line when filled" @@ -1675,7 +1675,7 @@ type PodOrderFilled implements MarketplaceEvent @entity(immutable: true) { " Historical ID for joins" historyID: String! "Account selling pods" - from: String! + fromFarmer: String! "Account buying pods" to: String! "Where these pods were in line when filled"