From 172f39e140fe6b61e6408248529969f952063a81 Mon Sep 17 00:00:00 2001 From: Sebastian Melendez Date: Sat, 7 Dec 2024 09:26:40 -0500 Subject: [PATCH 1/2] adding bridge transfers to art share --- .../across/raw/ez_across_bridge_transfers.sql | 13 +++++++++++++ .../arbitrum/raw/ez_arbitrum_bridge_transfers.sql | 13 +++++++++++++ .../avalanche/raw/ez_avalanche_bridge_transfers.sql | 13 +++++++++++++ .../projects/base/raw/ez_base_bridge_transfers.sql | 13 +++++++++++++ .../projects/cctp/raw/ez_cctp_bridge_transfers.sql | 13 +++++++++++++ .../optimism/raw/ez_optimism_bridge_transfers.sql | 13 +++++++++++++ .../polygon/raw/ez_polygon_bridge_transfers.sql | 13 +++++++++++++ .../raw/ez_rainbow_bridge_transfers.sql | 13 +++++++++++++ .../starknet/raw/ez_starknet_bridge_transfers.sql | 13 +++++++++++++ .../synapse/raw/ez_synapse_bridge_transfers.sql | 13 +++++++++++++ .../wormhole/raw/ez_wormhole_bridge_transfers.sql | 13 +++++++++++++ .../zksync/raw/ez_zksync_bridge_transfers.sql | 13 +++++++++++++ 12 files changed, 156 insertions(+) create mode 100644 models/projects/across/raw/ez_across_bridge_transfers.sql create mode 100644 models/projects/arbitrum/raw/ez_arbitrum_bridge_transfers.sql create mode 100644 models/projects/avalanche/raw/ez_avalanche_bridge_transfers.sql create mode 100644 models/projects/base/raw/ez_base_bridge_transfers.sql create mode 100644 models/projects/cctp/raw/ez_cctp_bridge_transfers.sql create mode 100644 models/projects/optimism/raw/ez_optimism_bridge_transfers.sql create mode 100644 models/projects/polygon/raw/ez_polygon_bridge_transfers.sql create mode 100644 models/projects/rainbow_bridge/raw/ez_rainbow_bridge_transfers.sql create mode 100644 models/projects/starknet/raw/ez_starknet_bridge_transfers.sql create mode 100644 models/projects/synapse/raw/ez_synapse_bridge_transfers.sql create mode 100644 models/projects/wormhole/raw/ez_wormhole_bridge_transfers.sql create mode 100644 models/projects/zksync/raw/ez_zksync_bridge_transfers.sql diff --git a/models/projects/across/raw/ez_across_bridge_transfers.sql b/models/projects/across/raw/ez_across_bridge_transfers.sql new file mode 100644 index 00000000..f9418eb4 --- /dev/null +++ b/models/projects/across/raw/ez_across_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="ACROSS", + database="across", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_across_transfers')}} \ No newline at end of file diff --git a/models/projects/arbitrum/raw/ez_arbitrum_bridge_transfers.sql b/models/projects/arbitrum/raw/ez_arbitrum_bridge_transfers.sql new file mode 100644 index 00000000..317783d8 --- /dev/null +++ b/models/projects/arbitrum/raw/ez_arbitrum_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="ARBITRUM", + database="arbitrum", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_arbitrum_one_bridge_transfers')}} \ No newline at end of file diff --git a/models/projects/avalanche/raw/ez_avalanche_bridge_transfers.sql b/models/projects/avalanche/raw/ez_avalanche_bridge_transfers.sql new file mode 100644 index 00000000..2c457181 --- /dev/null +++ b/models/projects/avalanche/raw/ez_avalanche_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="AVALANCHE", + database="avalanche", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_avalanche_bridge_transfers')}} \ No newline at end of file diff --git a/models/projects/base/raw/ez_base_bridge_transfers.sql b/models/projects/base/raw/ez_base_bridge_transfers.sql new file mode 100644 index 00000000..d9a23fb0 --- /dev/null +++ b/models/projects/base/raw/ez_base_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="BASE", + database="base", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_base_bridge_transfers')}} \ No newline at end of file diff --git a/models/projects/cctp/raw/ez_cctp_bridge_transfers.sql b/models/projects/cctp/raw/ez_cctp_bridge_transfers.sql new file mode 100644 index 00000000..fb06b97f --- /dev/null +++ b/models/projects/cctp/raw/ez_cctp_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="CCTP", + database="cctp", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_cctp_transfers')}} \ No newline at end of file diff --git a/models/projects/optimism/raw/ez_optimism_bridge_transfers.sql b/models/projects/optimism/raw/ez_optimism_bridge_transfers.sql new file mode 100644 index 00000000..5da9d58f --- /dev/null +++ b/models/projects/optimism/raw/ez_optimism_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="OPTIMISM", + database="optimism", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_optimism_bridge_transfers')}} \ No newline at end of file diff --git a/models/projects/polygon/raw/ez_polygon_bridge_transfers.sql b/models/projects/polygon/raw/ez_polygon_bridge_transfers.sql new file mode 100644 index 00000000..a08d3253 --- /dev/null +++ b/models/projects/polygon/raw/ez_polygon_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="POLYGON", + database="polygon", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_polygon_pos_bridge_transfers')}} \ No newline at end of file diff --git a/models/projects/rainbow_bridge/raw/ez_rainbow_bridge_transfers.sql b/models/projects/rainbow_bridge/raw/ez_rainbow_bridge_transfers.sql new file mode 100644 index 00000000..fefa5dfc --- /dev/null +++ b/models/projects/rainbow_bridge/raw/ez_rainbow_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="RAINBOW", + database="rainbow", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_rainbow_bridge_transfers')}} \ No newline at end of file diff --git a/models/projects/starknet/raw/ez_starknet_bridge_transfers.sql b/models/projects/starknet/raw/ez_starknet_bridge_transfers.sql new file mode 100644 index 00000000..b4c6f357 --- /dev/null +++ b/models/projects/starknet/raw/ez_starknet_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="STARKNET", + database="starknet", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_starknet_bridge_transfers')}} \ No newline at end of file diff --git a/models/projects/synapse/raw/ez_synapse_bridge_transfers.sql b/models/projects/synapse/raw/ez_synapse_bridge_transfers.sql new file mode 100644 index 00000000..396910bc --- /dev/null +++ b/models/projects/synapse/raw/ez_synapse_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="SYNAPSE", + database="synapse", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_synapse_transfers')}} \ No newline at end of file diff --git a/models/projects/wormhole/raw/ez_wormhole_bridge_transfers.sql b/models/projects/wormhole/raw/ez_wormhole_bridge_transfers.sql new file mode 100644 index 00000000..9f2c9aa2 --- /dev/null +++ b/models/projects/wormhole/raw/ez_wormhole_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="WORMHOLE", + database="wormhole", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_wormhole_transfers')}} \ No newline at end of file diff --git a/models/projects/zksync/raw/ez_zksync_bridge_transfers.sql b/models/projects/zksync/raw/ez_zksync_bridge_transfers.sql new file mode 100644 index 00000000..441086a6 --- /dev/null +++ b/models/projects/zksync/raw/ez_zksync_bridge_transfers.sql @@ -0,0 +1,13 @@ +{{ + config( + materialized="view", + snowflake_warehouse="ZKSYNC", + database="zksync", + schema="raw", + alias="ez_bridge_transfers", + ) +}} + + +select * +from {{ref('fact_zksync_era_bridge_transfers')}} \ No newline at end of file From 253eaf72e9c0b6ac5252486c03c768ba49d29588 Mon Sep 17 00:00:00 2001 From: Sebastian Melendez Date: Sat, 7 Dec 2024 09:28:37 -0500 Subject: [PATCH 2/2] fixing rainbow bridge --- .../rainbow_bridge/raw/ez_rainbow_bridge_transfers.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/projects/rainbow_bridge/raw/ez_rainbow_bridge_transfers.sql b/models/projects/rainbow_bridge/raw/ez_rainbow_bridge_transfers.sql index fefa5dfc..b526aad7 100644 --- a/models/projects/rainbow_bridge/raw/ez_rainbow_bridge_transfers.sql +++ b/models/projects/rainbow_bridge/raw/ez_rainbow_bridge_transfers.sql @@ -1,8 +1,8 @@ {{ config( materialized="view", - snowflake_warehouse="RAINBOW", - database="rainbow", + snowflake_warehouse="RAINBOW_BRIDGE", + database="rainbow_bridge", schema="raw", alias="ez_bridge_transfers", )