Skip to content

Commit

Permalink
add cex addresses (#6893)
Browse files Browse the repository at this point in the history
* add cex addresses

* add addresses

* fix

* fix

* add addresses

* add addresses

* fix

* more

* add more

* fix

* fix

* add addresses

* fix

* fixes

* gm, here`s a few more addresses

* add

* fix

* more updates

* checkpoint

* update

* add mantle, sei and worldchain to cex.addresses
  • Loading branch information
hildobby authored Oct 18, 2024
1 parent b7cee01 commit 775b95d
Show file tree
Hide file tree
Showing 11 changed files with 893 additions and 253 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
schema = 'cex',
alias = 'addresses',
materialized = 'table',
post_hook='{{ expose_spells(\'["ethereum", "bnb", "avalanche_c", "optimism", "arbitrum", "polygon", "bitcoin", "fantom", "aptos", "celo", "zora", "zksync", "zkevm", "linea", "solana", "scroll", "tron", "base"]\',
post_hook='{{ expose_spells(\'["ethereum", "bnb", "avalanche_c", "optimism", "arbitrum", "polygon", "bitcoin", "fantom", "aptos", "celo", "zora", "zksync", "zkevm", "linea", "solana", "scroll", "tron", "base", "mantle", "worldchain", "sei"]\',
"sector",
"cex",
\'["hildobby"]\') }}')
Expand Down Expand Up @@ -39,6 +39,9 @@
, ref('cex_zkevm_addresses')
, ref('cex_zksync_addresses')
, ref('cex_zora_addresses')
, ref('cex_worldchain_addresses')
, ref('cex_mantle_addresses')
, ref('cex_sei_addresses')
] %}

SELECT *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
models:
- name: cex_evms_addresses
meta:
blockchain: ethereum, bnb, avalanche_c, optimism, arbitrum, polygon, fantom, base, zksync, celo, zora
blockchain: ethereum, bnb, avalanche_c, optimism, arbitrum, polygon, fantom, base, zksync, celo, zora, worldchain, mantle, sei
sector: cex
contributors: hildobby
config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,13 @@ FROM (VALUES

, ('bitcoin', 'TD1tjf1ZVzq2NCeYoppUAsBZevobkftYDu', 'Wirex', 'Wirex 1', 'hildobby', date '2024-05-27')

, ('bitcoin', '322GfdSXmYNJb4nAsqTmbhs2LXkTqCPMYk', '1xBet', '1xBet 1', 'hildobby', date '2024-09-06')
, ('bitcoin', '37RpvaLDcNXXQ6v5uPzhjSEpPM3hJ3EFoN', '1xBet', '1xBet 2', 'hildobby', date '2024-09-06')
, ('bitcoin', '39cKgdXDhY6ngYkfTBocZ4KnMhTFRGbSkF', '1xBet', '1xBet 3', 'hildobby', date '2024-09-06')
, ('bitcoin', '3P5mLcDEvwJRoGTS7acrZuxqaWLzFLujG4', '1xBet', '1xBet 4', 'hildobby', date '2024-09-06')
, ('bitcoin', '1NqwEcrdxqpP1Fug5HuCvUyr4kcpR5Mi9Z', '1xBet', '1xBet 5', 'hildobby', date '2024-09-06')
, ('bitcoin', '3KtUhkjv7qC6DieMuprgojV9d1T1iRTgfh', '1xBet', '1xBet 6', 'hildobby', date '2024-09-06')

, ('bitcoin', 'TPQqrAEnrWKTefTpgCNzXAGmJuvBqUrk1P', 'WazirX', 'WazirX 1', 'hildobby', date '2024-05-27')
, ('bitcoin', 'TXe3EibZP9jFogwyqLPd3APdwxZbiQBUqi', 'WazirX', 'WazirX 2', 'hildobby', date '2024-05-27')

Expand Down Expand Up @@ -784,5 +791,7 @@ FROM (VALUES
, ('bitcoin', '3HzZ4ybqvTJAGrPXVyxQysUiiaJC9LngBZ', 'Bitcoin Suisse', 'Bitcoin Suisse 5', 'hildobby', date '2024-05-27')
, ('bitcoin', '3KYL5Rz4hdcgiuwfwrikfY3NEGikoPhbhd', 'Bitcoin Suisse', 'Bitcoin Suisse 6', 'hildobby', date '2024-05-27')
, ('bitcoin', '3CjxgnmNsu3kaFadzVea2FgECuHN7y2ENz', 'Bitcoin Suisse', 'Bitcoin Suisse 7', 'hildobby', date '2024-05-27')

, ('bitcoin', 'bc1qu2dq8w8lv8v3l7lr2c5tvx3yltv22r3nhkx7w0', 'eXch.sc', 'eXch.sc 1', 'hildobby', date '2024-09-06')

) AS x (blockchain, address, cex_name, distinct_name, added_by, added_date)

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% set blockchain = 'mantle' %}

{{config(
schema = 'cex_' + blockchain,
alias = 'addresses'
)}}

{{cex_evms(
cex_addresses = ref('cex_evms_addresses')
, blockchain = blockchain
, traces = source(blockchain, 'traces')
)}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2

models:
- name: cex_mantle_addresses
meta:
blockchain: mantle
sector: cex
contributors: hildobby
config:
tags: ['cex','addresses', 'deposits', 'withdrawals', 'mantle']
description: "All CEX-tied addresses identified on Mantle"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- blockchain
- address
columns:
- name: blockchain
description: "Blockchain"
- name: address
description: "Address"
- name: cex_name
description: "Name of centralised exchange"
- name: distinct_name
description: "Distinct name of centralised exchange address"
- name: added_by
description: "Who added the address"
- name: added_date
description: "Date the address was added on"
- name: first_used
description: "Date of first ever token reception"
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% set blockchain = 'sei' %}

{{config(
schema = 'cex_' + blockchain,
alias = 'addresses'
)}}

{{cex_evms(
cex_addresses = ref('cex_evms_addresses')
, blockchain = blockchain
, traces = source(blockchain, 'traces')
)}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2

models:
- name: cex_sei_addresses
meta:
blockchain: sei
sector: cex
contributors: hildobby
config:
tags: ['cex','addresses', 'deposits', 'withdrawals', 'sei']
description: "All CEX-tied addresses identified on Sei"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- blockchain
- address
columns:
- name: blockchain
description: "Blockchain"
- name: address
description: "Address"
- name: cex_name
description: "Name of centralised exchange"
- name: distinct_name
description: "Distinct name of centralised exchange address"
- name: added_by
description: "Who added the address"
- name: added_date
description: "Date the address was added on"
- name: first_used
description: "Date of first ever token reception"
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% set blockchain = 'worldchain' %}

{{config(
schema = 'cex_' + blockchain,
alias = 'addresses'
)}}

{{cex_evms(
cex_addresses = ref('cex_evms_addresses')
, blockchain = blockchain
, traces = source(blockchain, 'traces')
)}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2

models:
- name: cex_worldchain_addresses
meta:
blockchain: worldchain
sector: cex
contributors: hildobby
config:
tags: ['cex','addresses', 'deposits', 'withdrawals', 'worldchain']
description: "All CEX-tied addresses identified on WorldChain"
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- blockchain
- address
columns:
- name: blockchain
description: "Blockchain"
- name: address
description: "Address"
- name: cex_name
description: "Name of centralised exchange"
- name: distinct_name
description: "Distinct name of centralised exchange address"
- name: added_by
description: "Who added the address"
- name: added_date
description: "Date the address was added on"
- name: first_used
description: "Date of first ever token reception"
Original file line number Diff line number Diff line change
Expand Up @@ -311,4 +311,6 @@ FROM (VALUES
, ('HashKey Exchange', 'HashKeyExchange', FALSE, TRUE)
, ('Gamdom', 'gamdom', FALSE, TRUE)
, ('Mbcbit', 'MbcbitSupport', TRUE, FALSE)
, ('1xBet', '1xBet_Eng', FALSE, FALSE)
, ('BetFury', 'betfury_gaming', FALSE, FALSE)
) AS temp_table (cex_name, x_username, cex, payment_infra)

0 comments on commit 775b95d

Please sign in to comment.