mirror of
https://github.com/FlipsideCrypto/osmosis-models.git
synced 2026-02-06 11:26:55 +00:00
update the request data format
This commit is contained in:
parent
0d144df89d
commit
678f76e1af
@ -1,7 +1,7 @@
|
||||
{{ config (
|
||||
materialized = "view",
|
||||
post_hook = if_data_call_function(
|
||||
func = "{{this.schema}}.udf_bulk_json_rpc(object_construct('sql_source', '{{this.identifier}}', 'external_table', 'blocks', 'sql_limit', {{var('sql_limit','2000000')}}, 'producer_batch_size', {{var('producer_batch_size','1000')}}, 'worker_batch_size', {{var('worker_batch_size','100')}}, 'batch_call_limit', {{var('batch_call_limit','10')}}, 'call_type', 'batch'))",
|
||||
func = "{{this.schema}}.udf_bulk_json_rpc(object_construct('sql_source', '{{this.identifier}}', 'external_table', 'blocks', 'sql_limit', {{var('sql_limit','1000')}}, 'producer_batch_size', {{var('producer_batch_size','1000')}}, 'worker_batch_size', {{var('worker_batch_size','100')}}, 'batch_call_limit', {{var('batch_call_limit','10')}}, 'call_type', 'batch'))",
|
||||
target = "{{this.schema}}.{{this.identifier}}"
|
||||
)
|
||||
) }}
|
||||
|
||||
@ -77,10 +77,11 @@ numbers AS (
|
||||
'GET',
|
||||
'/cosmos/tx/v1beta1/txs',
|
||||
PARSE_JSON('{}'),
|
||||
PARSE_JSON(CONCAT('{"params":{', '"events":"tx.height=', block_number :: STRING, '",', '"pagination.limit":"100"', ',', '"pagination.offset":"', pagination_offset, '"},"id":"', block_number :: STRING, '"}')),
|
||||
''
|
||||
PARSE_JSON(CONCAT('{', '"events":"tx.height=', block_number :: STRING, '",', '"pagination.limit":"100"', ',', '"pagination.offset":"', pagination_offset, '"}')),
|
||||
PARSE_JSON(CONCAT('{', '"id":"', block_number :: STRING, '"}'))
|
||||
) AS request
|
||||
FROM
|
||||
blocks_with_page_numbers_to_read
|
||||
WHERE block_number = 1313641
|
||||
ORDER BY
|
||||
block_number DESC
|
||||
block_number DESC
|
||||
|
||||
Loading…
Reference in New Issue
Block a user