Skip to content

Commit

Permalink
Make it swap only
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh9200 committed Aug 24, 2023
1 parent cdf3f1a commit 24f90d4
Showing 1 changed file with 129 additions and 129 deletions.
258 changes: 129 additions & 129 deletions uniswap-v2/substreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,130 +82,130 @@ modules:
- map: map_pool_events
- store: store_native_prices

- name: store_pool_tvl
kind: store
updatePolicy: set
valueType: bigdecimal
inputs:
- store: store_pools
- store: store_input_token_balances
- store: store_input_token_balances
mode: deltas
- store: store_usd_prices

- name: store_volume
kind: store
updatePolicy: add
valueType: bigdecimal
inputs:
- map: map_pool_events
- store: store_usd_prices

- name: store_volume_by_token_amount
kind: store
updatePolicy: add
valueType: bigint
inputs:
- map: map_pool_events

- name: store_cumulative_fields
kind: store
updatePolicy: add
valueType: bigdecimal
inputs:
- store: store_volume
mode: deltas

- name: map_liquidity_pool_entity
kind: map
initialBlock: 6809737
inputs:
- store: store_pools
- store: store_output_token_supply
- store: store_input_token_balances
- store: store_input_token_balances
mode: deltas
- store: store_pool_tvl
- store: store_cumulative_fields
output:
type: proto:substreams.entity.v1.EntityChanges

- name: store_daily_and_hourly_fields
kind: store
updatePolicy: add
valueType: bigdecimal
inputs:
- source: sf.substreams.v1.Clock
- store: store_volume
mode: deltas

- name: map_liquidity_pool_snapshots_entity
kind: map
initialBlock: 6809737
inputs:
- source: sf.substreams.v1.Clock
- store: store_pools
- store: store_output_token_supply
- store: store_input_token_balances
- store: store_input_token_balances
mode: deltas
- store: store_pool_tvl
- store: store_cumulative_fields
- store: store_daily_and_hourly_fields
- store: store_volume_by_token_amount
- store: store_usd_prices
output:
type: proto:substreams.entity.v1.EntityChanges

- name: store_protocol_tvl
kind: store
updatePolicy: add
valueType: bigdecimal
inputs:
- store: store_pool_tvl
mode: deltas

- name: store_protocol_cumulative_fields
kind: store
updatePolicy: add
valueType: bigdecimal
inputs:
- store: store_cumulative_fields
mode: deltas

- name: store_protocol_daily_fields
kind: store
updatePolicy: add
valueType: bigdecimal
inputs:
- source: sf.substreams.v1.Clock
- store: store_volume
mode: deltas

- name: map_protocol_entity
kind: map
initialBlock: 6809737
inputs:
- store: store_input_token_balances
mode: deltas
- store: store_protocol_tvl
- store: store_protocol_cumulative_fields
output:
type: proto:substreams.entity.v1.EntityChanges

- name: map_financial_daily_snapshot_entity
kind: map
initialBlock: 6809737
inputs:
- source: sf.substreams.v1.Clock
- store: store_input_token_balances
- store: store_input_token_balances
mode: deltas
- store: store_protocol_tvl
- store: store_protocol_cumulative_fields
- store: store_protocol_daily_fields
output:
type: proto:substreams.entity.v1.EntityChanges
# - name: store_pool_tvl
# kind: store
# updatePolicy: set
# valueType: bigdecimal
# inputs:
# - store: store_pools
# - store: store_input_token_balances
# - store: store_input_token_balances
# mode: deltas
# - store: store_usd_prices

# - name: store_volume
# kind: store
# updatePolicy: add
# valueType: bigdecimal
# inputs:
# - map: map_pool_events
# - store: store_usd_prices

# - name: store_volume_by_token_amount
# kind: store
# updatePolicy: add
# valueType: bigint
# inputs:
# - map: map_pool_events

# - name: store_cumulative_fields
# kind: store
# updatePolicy: add
# valueType: bigdecimal
# inputs:
# - store: store_volume
# mode: deltas

# - name: map_liquidity_pool_entity
# kind: map
# initialBlock: 6809737
# inputs:
# - store: store_pools
# - store: store_output_token_supply
# - store: store_input_token_balances
# - store: store_input_token_balances
# mode: deltas
# - store: store_pool_tvl
# - store: store_cumulative_fields
# output:
# type: proto:substreams.entity.v1.EntityChanges

# - name: store_daily_and_hourly_fields
# kind: store
# updatePolicy: add
# valueType: bigdecimal
# inputs:
# - source: sf.substreams.v1.Clock
# - store: store_volume
# mode: deltas

# - name: map_liquidity_pool_snapshots_entity
# kind: map
# initialBlock: 6809737
# inputs:
# - source: sf.substreams.v1.Clock
# - store: store_pools
# - store: store_output_token_supply
# - store: store_input_token_balances
# - store: store_input_token_balances
# mode: deltas
# - store: store_pool_tvl
# - store: store_cumulative_fields
# - store: store_daily_and_hourly_fields
# - store: store_volume_by_token_amount
# - store: store_usd_prices
# output:
# type: proto:substreams.entity.v1.EntityChanges

# - name: store_protocol_tvl
# kind: store
# updatePolicy: add
# valueType: bigdecimal
# inputs:
# - store: store_pool_tvl
# mode: deltas

# - name: store_protocol_cumulative_fields
# kind: store
# updatePolicy: add
# valueType: bigdecimal
# inputs:
# - store: store_cumulative_fields
# mode: deltas

# - name: store_protocol_daily_fields
# kind: store
# updatePolicy: add
# valueType: bigdecimal
# inputs:
# - source: sf.substreams.v1.Clock
# - store: store_volume
# mode: deltas

# - name: map_protocol_entity
# kind: map
# initialBlock: 6809737
# inputs:
# - store: store_input_token_balances
# mode: deltas
# - store: store_protocol_tvl
# - store: store_protocol_cumulative_fields
# output:
# type: proto:substreams.entity.v1.EntityChanges

# - name: map_financial_daily_snapshot_entity
# kind: map
# initialBlock: 6809737
# inputs:
# - source: sf.substreams.v1.Clock
# - store: store_input_token_balances
# - store: store_input_token_balances
# mode: deltas
# - store: store_protocol_tvl
# - store: store_protocol_cumulative_fields
# - store: store_protocol_daily_fields
# output:
# type: proto:substreams.entity.v1.EntityChanges

- name: map_token_entity
kind: map
Expand All @@ -231,11 +231,11 @@ modules:
kind: map
initialBlock: 6809737
inputs:
- map: map_liquidity_pool_entity
- map: map_liquidity_pool_snapshots_entity
- map: map_protocol_entity
- map: map_financial_daily_snapshot_entity
- map: map_token_entity
# - map: map_liquidity_pool_entity
# - map: map_liquidity_pool_snapshots_entity
# - map: map_protocol_entity
# - map: map_financial_daily_snapshot_entity
# - map: map_token_entity
- map: map_events_entity
output:
type: proto:substreams.entity.v1.EntityChanges

0 comments on commit 24f90d4

Please sign in to comment.