Macros: Labels Tables: Labels - FlipsideCrypto/fsc-evm GitHub Wiki
The following macros are intended to be used to create and maintain the silver and gold traces models. These macros can be accessed via version >= of the fsc-evm package. Macro variables are set and managed in the respective repo's dbt_project.yml
file. Please see the fsc-evm installation instructions in the README for more details on how to access and utilize this macro effectively.
The Labels macros are used to create tables for the Labels pipeline, which references the pipeline established in the Crosschain repo.
bronze_labels
Usage
This macro creates a table that retrieves labels for specified blockchains from crosschain_silver.labels_combined
.
Parameters
Parameter | Type | Default | Description | Variable |
---|---|---|---|---|
blockchains |
String or Array | Defaults to the lowercased target database name with _dev removed. |
The list of blockchains to filter the labels by. | LABELS_BLOCKCHAINS |
Example
{{ fsc_evm.bronze_labels() }}
silver_labels
Usage
This macro creates a table that processes labels from the bronze layer, adding timestamps and invocation identifiers for incremental updates.
Parameters
This macro does not have any parameters.
Example
{{ fsc_evm.silver_labels() }}
core_dim_labels
Usage
This macro creates a dimensional table that retrieves core labels from the silver layer.
Parameters
This macro does not have any parameters.
Example
{{ fsc_evm.core_dim_labels() }}