mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 13:06:59 +00:00
* flow testnet v2 * set batch sizes * add QN node_url to sl testnet model * upd node_url in testnet rt models * add gha workflows for testnet * testnet gold models * upd tag on gold * upd tests * upd tests and set min to 280mm * upd test - rm null --------- Co-authored-by: shah <info@shahnewazkhan.ca>
20 lines
424 B
SQL
20 lines
424 B
SQL
{{ config (
|
|
materialized = "view",
|
|
tags = ['streamline_realtime_testnet']
|
|
) }}
|
|
|
|
{% if execute %}
|
|
|
|
{% set height = run_query('SELECT streamline.udf_get_chainhead_testnet()') %}
|
|
{% set block_height = height.columns[0].values()[0] %}
|
|
{% else %}
|
|
{% set block_height = 0 %}
|
|
{% endif %}
|
|
|
|
SELECT
|
|
height as block_height
|
|
FROM
|
|
TABLE(streamline.udtf_get_base_table({{block_height}}))
|
|
WHERE
|
|
block_height > 280000000
|