* feat: add native balance in StorageChanges This will be used by the next update of DCI to properly track native balance for all the contract that it's indexing. Also added a performance optimization, we now ignore slot updates if the value after the transaction is the same than before. * docs: add docs on how to generate test assets --------- Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
17 lines
646 B
Markdown
17 lines
646 B
Markdown
# Tycho Substreams SDK
|
|
|
|
Some shared functionality that is used to create tycho substream packages.
|
|
|
|
## Protobuf Models
|
|
|
|
To generate the rust structs run the following command from within the root
|
|
directory:
|
|
|
|
```bash
|
|
buf generate --template substreams/crates/tycho-substreams/buf.gen.yaml --output substreams/crates/tycho-substreams/
|
|
```
|
|
|
|
## Generate block test assets
|
|
|
|
To be able to write complete unit tests, we rely on full block assets. These assets can be generated using the firecore tool from Substreams. More info in [Substreams documentation](https://docs.substreams.dev/reference-material/log-and-debug#generating-the-input-of-the-test)
|