Add sui to verified tokens (#518)
Some checks failed
docs_update / docs_update (push) Waiting to run
docs_update / notify-failure (push) Blocked by required conditions
dbt_repo_activity_contributors_weekly / dbt (push) Has been cancelled
dbt_repo_activity_contributors_weekly / notify-failure (push) Has been cancelled
dbt_run_heal_models / run_dbt_jobs (push) Has been cancelled
dbt_run_heal_models / notify-failure (push) Has been cancelled

* check

* md

* add seeds for native variants

* add native variants
This commit is contained in:
eric-laurello 2025-07-30 15:00:37 -04:00 committed by GitHub
parent e7461c0b7a
commit 78357f8e20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 85 additions and 3 deletions

View File

@ -556,6 +556,9 @@ stellar,GCGDO4RD5HKQ6RMYMXYRRLLLILRF4C4VHCHJ6OWNTADHQUF3RTEO2RFE-BUSD,binance-us
stellar,GDGTVWSM4MG6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF-yUSDC,stellar-yusdc,,,
stellar,GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M-Velo,velo,,,
stellar,GDSTRSHXHGJ7ZIVRBXEYE5Q74XUVCUSEKEBR7UCHEUUEK72N7I7KJ6JH-shx,stronghold-token,,,
sui,0x2,sui,20947,,TRUE
sui,0x0000000000000000000000000000000000000000000000000000000000000002,sui,20947,,TRUE
sui,0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI,sui,20947,,TRUE
thorchain,,thorchain,,,
thorchain,BTC/BTC,bitcoin,,,
thorchain,ETH/ETH,ethereum,,,

1 blockchain address cg_id cmc_id invalid_reason verified_override
556 stellar GDGTVWSM4MG6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF-yUSDC stellar-yusdc
557 stellar GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M-Velo velo
558 stellar GDSTRSHXHGJ7ZIVRBXEYE5Q74XUVCUSEKEBR7UCHEUUEK72N7I7KJ6JH-shx stronghold-token
559 sui 0x2 sui 20947 TRUE
560 sui 0x0000000000000000000000000000000000000000000000000000000000000002 sui 20947 TRUE
561 sui 0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI sui 20947 TRUE
562 thorchain thorchain
563 thorchain BTC/BTC bitcoin
564 thorchain ETH/ETH ethereum

View File

@ -380,7 +380,7 @@ WITH base AS (
'dim_contracts'
) }}
UNION ALL
SELECT
SELECT
address,
symbol,
NAME,
@ -554,6 +554,25 @@ WITH base AS (
'near_core',
'dim_ft_contract_metadata'
) }}
UNION ALL
SELECT
coin_type AS address,
symbol,
NAME,
decimals,
NULL AS created_block_number,
NULL AS created_block_timestamp,
NULL AS created_tx_hash,
NULL AS creator_address,
'sui' AS blockchain,
inserted_timestamp,
modified_timestamp,
{{ dbt_utils.generate_surrogate_key(['blockchain','address']) }} AS dim_contracts_id
FROM
{{ source(
'sui_core',
'dim_tokens'
) }}
)
SELECT
address,

View File

@ -169,6 +169,7 @@ SELECT
WHEN blockchain = 'sei' AND legitimacy_score > 0.9 THEN TRUE
WHEN blockchain = 'solana' AND legitimacy_score > 0.90 THEN TRUE
WHEN blockchain = 'stellar' AND legitimacy_score > 0.95 THEN TRUE
WHEN blockchain = 'sui' AND legitimacy_score > 0.897 THEN TRUE
WHEN blockchain = 'thorchain' AND legitimacy_score > 0.90 THEN TRUE
WHEN blockchain = 'ton' AND legitimacy_score > 0.92 THEN TRUE
ELSE FALSE

View File

@ -863,6 +863,27 @@ qualify ROW_NUMBER() over (
update_time_onchain DESC,
update_time_metadata DESC
) = 1
UNION ALL
SELECT
coin_type AS address,
symbol,
description AS NAME,
decimals,
NULL AS created_block_number,
NULL AS created_block_timestamp,
NULL AS created_tx_hash,
NULL AS creator_address,
'sui' AS blockchain
FROM
{{ source(
'sui_core',
'dim_tokens'
) }}
{% if is_incremental() %}
WHERE
modified_timestamp :: DATE >= '{{ max_mod }}'
{% endif %}
)
SELECT
address,
@ -880,4 +901,5 @@ SELECT
'{{ invocation_id }}' AS _invocation_id
FROM
base
where address is not null
WHERE
address IS NOT NULL

View File

@ -325,13 +325,20 @@ combo AS (
token_address_lower
FROM
wormhole_secured
UNION
SELECT
blockchain,
address_lower
FROM
man_ver
),
FINAL AS (
SELECT
A.blockchain,
COALESCE(
tb.address,
wh.token_address
wh.token_address,
mv.address
) AS address,
CASE
WHEN mv.verified_override IS NOT NULL THEN mv.verified_override

View File

@ -236,6 +236,19 @@ all_transfers AS (
FROM {{ source('ton_core', 'fact_jetton_events') }}
WHERE type = 'transfer'
AND {{ block_ts_filter }}
UNION ALL
SELECT
DATE(block_timestamp) as block_day,
coin_type address,
'sui' as blockchain,
tx_digest as tx_hash,
sender as from_address,
receiver as to_address,
amount
FROM {{ source('sui_silver', 'transfers') }}
WHERE {{ block_ts_filter }}
),

View File

@ -1330,6 +1330,23 @@ sources:
tables:
- name: ez_core_metrics_hourly
#=============================================================================
# SUI
#=============================================================================
- name: sui_core
database: sui
schema: core
tables:
- name: ez_transfer
- name: fact_transactions
- name: dim_tokens
- name: sui_silver
database: sui
schema: silver
tables:
- name: transfers
#=============================================================================
# TERRA
#=============================================================================