mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 11:06:45 +00:00
* node url join optimized | warehouse privilege grants * added string interpolation for env based target.database * revert to candidate node 7 root height * collections history success * removed end height from network_version * removed EOF * added prod udf --------- Co-authored-by: shah <info@shahnewazkhan.ca>
29 lines
820 B
SQL
29 lines
820 B
SQL
{% macro generate_blocks_grpc_request(block_height) %}
|
|
PARSE_JSON(
|
|
CONCAT(
|
|
'{"grpc": "proto3",',
|
|
'"method": "get_block_by_height",',
|
|
'"block_height":"',
|
|
block_height :: INTEGER,
|
|
'",',
|
|
'"method_params": {"height":',
|
|
block_height :: INTEGER,
|
|
'}}'
|
|
)
|
|
)
|
|
{% endmacro %}
|
|
|
|
{% macro generate_collections_grpc_request(block_height, collection_guarantee) %}
|
|
PARSE_JSON(
|
|
CONCAT(
|
|
'{"grpc": "proto3",',
|
|
'"method": "get_collection_by_i_d",',
|
|
'"block_height":"',
|
|
block_height :: INTEGER,
|
|
'",',
|
|
'"method_params": {"id":"',
|
|
collection_guarantee.value:collection_id,
|
|
'"}}'
|
|
)
|
|
)
|
|
{% endmacro %} |