mirror of
https://github.com/FlipsideCrypto/osmosis-models.git
synced 2026-02-06 11:26:55 +00:00
osmosis -> blockjoy
This commit is contained in:
parent
fa79bcf997
commit
c5de5ded4c
@ -108,13 +108,13 @@ SELECT
|
||||
call,
|
||||
{{ target.database }}.live.udf_api (
|
||||
'POST',
|
||||
'{Service}/{Authentication}',
|
||||
'{Service}/rpc',
|
||||
OBJECT_CONSTRUCT(
|
||||
'Content-Type',
|
||||
'application/json'
|
||||
),
|
||||
call,
|
||||
'Vault/prod/osmosis/atn/mainnet'
|
||||
'Vault/prod/osmosis/blockjoy/mainnet'
|
||||
) AS DATA,
|
||||
SYSDATE()
|
||||
FROM
|
||||
|
||||
@ -32,7 +32,7 @@ SELECT
|
||||
) AS partition_key,
|
||||
{{ target.database }}.live.udf_api(
|
||||
'GET',
|
||||
'https://osmosis-mainnet.g.allthatnode.com/archive/rest/{Authentication}/cosmos/bank/v1beta1/balances/' || address || '?pagination.limit=10000',
|
||||
'{Service}/cosmos/bank/v1beta1/balances/' || address || '?pagination.limit=10000',
|
||||
OBJECT_CONSTRUCT(
|
||||
'Content-Type',
|
||||
'application/json',
|
||||
@ -40,7 +40,7 @@ SELECT
|
||||
block_number :: STRING
|
||||
),
|
||||
PARSE_JSON('{}'),
|
||||
'vault/prod/osmosis/atn/mainnet'
|
||||
'Vault/prod/osmosis/blockjoy/mainnet'
|
||||
) AS request,
|
||||
block_number,
|
||||
address
|
||||
|
||||
@ -30,7 +30,7 @@ SELECT
|
||||
) :: INT AS partition_key,
|
||||
{{ target.database }}.live.udf_api(
|
||||
'POST',
|
||||
'{Service}/{Authentication}',
|
||||
'{Service}/rpc',
|
||||
OBJECT_CONSTRUCT(
|
||||
'Content-Type',
|
||||
'application/json'
|
||||
@ -47,7 +47,7 @@ SELECT
|
||||
block_number :: STRING
|
||||
)
|
||||
),
|
||||
'vault/prod/osmosis/atn/mainnet'
|
||||
'Vault/prod/osmosis/blockjoy/mainnet'
|
||||
) AS request
|
||||
FROM
|
||||
blocks
|
||||
|
||||
@ -46,7 +46,7 @@ SELECT
|
||||
{{ target.database }}.live.udf_api(
|
||||
'GET',
|
||||
REPLACE(
|
||||
'https://osmosis-mainnet.g.allthatnode.com/archive/rest/{Authentication}/osmosis/gamm/v1beta1/pools?pagination.limit=10000',
|
||||
'{Service}/osmosis/gamm/v1beta1/pools?pagination.limit=10000',
|
||||
'tendermint',
|
||||
'rest'
|
||||
),
|
||||
@ -57,7 +57,7 @@ SELECT
|
||||
block_number :: STRING
|
||||
),
|
||||
PARSE_JSON('{}'),
|
||||
'vault/prod/osmosis/atn/mainnet'
|
||||
'Vault/prod/osmosis/blockjoy/mainnet'
|
||||
) AS request,
|
||||
block_number
|
||||
FROM
|
||||
|
||||
@ -88,7 +88,7 @@ numbers AS (
|
||||
) :: INT AS partition_key,
|
||||
live.udf_api(
|
||||
'POST',
|
||||
'{Service}/{Authentication}',
|
||||
'{Service}/rpc',
|
||||
OBJECT_CONSTRUCT(
|
||||
'Content-Type',
|
||||
'application/json'
|
||||
@ -109,7 +109,7 @@ numbers AS (
|
||||
'asc'
|
||||
)
|
||||
),
|
||||
'vault/prod/osmosis/atn/mainnet'
|
||||
'Vault/prod/osmosis/blockjoy/mainnet'
|
||||
) AS request,
|
||||
page_number,
|
||||
block_number AS block_number_requested
|
||||
|
||||
@ -30,7 +30,7 @@ SELECT
|
||||
) :: INT AS partition_key,
|
||||
{{ target.database }}.live.udf_api(
|
||||
'POST',
|
||||
'{Service}/{Authentication}',
|
||||
'{Service}/rpc',
|
||||
OBJECT_CONSTRUCT(
|
||||
'Content-Type',
|
||||
'application/json'
|
||||
@ -51,7 +51,7 @@ SELECT
|
||||
'asc'
|
||||
)
|
||||
),
|
||||
'vault/prod/osmosis/atn/mainnet'
|
||||
'Vault/prod/osmosis/blockjoy/mainnet'
|
||||
) AS request
|
||||
FROM
|
||||
blocks
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
SELECT
|
||||
{{ target.database }}.live.udf_api(
|
||||
'POST',
|
||||
'{Service}/{Authentication}',
|
||||
'{Service}/rpc',
|
||||
OBJECT_CONSTRUCT(
|
||||
'Content-Type',
|
||||
'application/json',
|
||||
@ -23,5 +23,5 @@ SELECT
|
||||
'params',
|
||||
[]
|
||||
),
|
||||
'vault/prod/osmosis/atn/mainnet'
|
||||
'Vault/prod/osmosis/blockjoy/mainnet'
|
||||
) :data :result :sync_info :latest_block_height :: INT AS block_number
|
||||
|
||||
Loading…
Reference in New Issue
Block a user