mirror of
https://github.com/FlipsideCrypto/terra-models.git
synced 2026-02-06 15:46:43 +00:00
dbt 1.7 and pages cleanup
This commit is contained in:
parent
35c02e629a
commit
2bf29308fa
@ -44,7 +44,6 @@ models:
|
||||
|
||||
- name: CONTRACT_LABEL
|
||||
description: Anchor contract address in the label
|
||||
tests:
|
||||
- name: SOURCE
|
||||
description: The transaction source, either the Terra blockchain or sent via Wormhole
|
||||
|
||||
@ -16,7 +16,6 @@ models:
|
||||
|
||||
- name: INITIAL_ACTION
|
||||
description: "Initial action for a transfer event"
|
||||
tests:
|
||||
- name: CURRENT_ACTION
|
||||
description: "Current action for a transfer event"
|
||||
|
||||
|
||||
@ -35,6 +35,7 @@ LATERAL FLATTEN(
|
||||
) AS b
|
||||
WHERE
|
||||
1 = 1 {# key = 'block' #}
|
||||
AND block_number = 8345886
|
||||
|
||||
{% if is_incremental() %}
|
||||
AND {{ incremental_last_x_days(
|
||||
@ -97,18 +98,6 @@ silver_blocks AS (
|
||||
*
|
||||
FROM
|
||||
{{ ref('silver__blocks') }}
|
||||
|
||||
{% if is_incremental() %}
|
||||
WHERE
|
||||
_inserted_timestamp >= (
|
||||
SELECT
|
||||
MAX(
|
||||
_inserted_timestamp :: DATE
|
||||
) -3
|
||||
FROM
|
||||
{{ this }}
|
||||
)
|
||||
{% endif %}
|
||||
),
|
||||
silver_txs AS (
|
||||
SELECT
|
||||
|
||||
@ -46,11 +46,16 @@ perms AS (
|
||||
A.block_id,
|
||||
A.tx_count
|
||||
FROM
|
||||
{{ ref("silver__blocks") }} A
|
||||
JOIN last_3_days b
|
||||
ON A.block_id = b.block_id
|
||||
{{ ref("silver__blocks") }} A {# JOIN last_3_days b
|
||||
ON A.block_id = b.block_id #}
|
||||
WHERE
|
||||
A.block_id > 4109598
|
||||
AND A.block_id > (
|
||||
SELECT
|
||||
block_id
|
||||
FROM
|
||||
last_3_days
|
||||
)
|
||||
AND A.tx_count > 100
|
||||
) A
|
||||
JOIN possible_perms
|
||||
|
||||
14
package-lock.yml
Normal file
14
package-lock.yml
Normal file
@ -0,0 +1,14 @@
|
||||
packages:
|
||||
- package: calogica/dbt_expectations
|
||||
version: 0.8.2
|
||||
- package: dbt-labs/dbt_utils
|
||||
version: 1.0.0
|
||||
- git: https://github.com/FlipsideCrypto/fsc-utils.git
|
||||
revision: c84d623aa09ce2acb9451e6aedf5fa70c19b0b95
|
||||
- package: get-select/dbt_snowflake_query_tags
|
||||
version: 2.3.2
|
||||
- package: calogica/dbt_date
|
||||
version: 0.7.2
|
||||
- git: https://github.com/FlipsideCrypto/livequery-models.git
|
||||
revision: bca494102fbd2d621d32746e9a7fe780678044f8
|
||||
sha1_hash: e7342dd7b07c9cbb1a89b3c17feab17b7f204ee4
|
||||
Loading…
Reference in New Issue
Block a user