Skip to content

Commit

Permalink
add substreams-patch-over-0.2.9.yaml to build v0.2.10 in an optimized…
Browse files Browse the repository at this point in the history
… way to reuse the cache
  • Loading branch information
sduchesneau committed Mar 22, 2024
1 parent dbd89e7 commit 47cf39f
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .sfreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ global:
release:
pre-build-hooks:
- make build
upload-substreams-spkg: substreams.yaml
upload-substreams-spkg: substreams-patch-over-0.2.9.yaml
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## v0.2.10

* Fixed `total_supply` incorrectly sent as `String` to `graph-node` while it should have been `BigInt`.
* Building from `substreams-patch-over-0.2.9.yaml` to reuse the caches from v0.2.9

## v0.2.9

* ERRATUM: The outputs are the wrong type on `total_supply`, breaking the integration with graph-node.

* Fixed `decimals()` handling when token reports more than 255 decimals.

* Moved `tables.rs` abstraction into `substreams-database-change` crate
Expand Down
77 changes: 77 additions & 0 deletions substreams-patch-over-0.2.9.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
specVersion: v0.1.0
package:
name: uniswap_v3
version: v0.2.10
url: https://github.com/streamingfast/substreams-uniswap-v3
image: ./sf_substreams_uniswap.jpeg
doc: |
Official StreamingFast implementation of Uniswap v3 Substreams. Underlying Substreams modules
allow for composability. This Substreams contains 22 modules. Mappers are used to extract
key structures which are either passed down to other modules or used to emit entity changes.
Stores are used as temporary storage to hold/pass down key data to mappers, such as ETH price
in USD. These substreams modules compose all the things to build up the Uniswap v3 Substreams.
See individual modules docs for more information.
imports:
entity: https://github.com/streamingfast/substreams-entity-change/releases/download/v1.1.0/substreams-entity-change-v1.1.0.spkg
uni_v0_2_9: https://github.com/streamingfast/substreams-uniswap-v3/releases/download/v0.2.9/substreams.spkg

protobuf:
files:
- uniswap/v1/uniswap.proto
importPaths:
- ./proto

binaries:
default:
type: wasm/rust-v1
file: target/wasm32-unknown-unknown/release/substreams_uniswap_v3.wasm

network: mainnet

modules:
- name: graph_out
kind: map
initialBlock: 12369621
inputs:
- source: sf.substreams.v1.Clock
- store: uni_v0_2_9:store_pool_count
mode: deltas
- store: uni_v0_2_9:store_total_tx_counts
mode: deltas
- store: uni_v0_2_9:store_swaps_volume
mode: deltas
- store: uni_v0_2_9:store_derived_factory_tvl
mode: deltas
- store: uni_v0_2_9:store_eth_prices
mode: deltas
- map: uni_v0_2_9:map_extract_data_types
- map: uni_v0_2_9:map_pools_created
- store: uni_v0_2_9:store_pool_sqrt_price
mode: deltas
- store: uni_v0_2_9:store_pool_sqrt_price
- store: uni_v0_2_9:store_pool_liquidities
mode: deltas
- store: uni_v0_2_9:store_token_tvl
mode: deltas
- store: uni_v0_2_9:store_prices
mode: deltas
- store: uni_v0_2_9:store_prices
- store: uni_v0_2_9:store_tokens
- store: uni_v0_2_9:store_tokens_whitelist_pools
mode: deltas
- store: uni_v0_2_9:store_derived_tvl
mode: deltas
- store: uni_v0_2_9:store_ticks_liquidities
mode: deltas
- store: uni_v0_2_9:store_total_tx_counts
- store: uni_v0_2_9:store_eth_prices
- store: uni_v0_2_9:store_positions
- store: uni_v0_2_9:store_min_windows
mode: deltas
- store: uni_v0_2_9:store_max_windows
mode: deltas
output:
type: proto:sf.substreams.entity.v1.EntityChanges
doc: |
`EntityChanges` emitted out for all the entities defined in the `schema.graphql` for the Uniswap v3 Subgraph.

0 comments on commit 47cf39f

Please sign in to comment.