diff --git a/ethereum-models/.gitignore b/ethereum-models/.gitignore deleted file mode 100644 index dad33a45..00000000 --- a/ethereum-models/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ - -target/ -dbt_modules/ -logs/ diff --git a/ethereum-models/README.md b/ethereum-models/README.md deleted file mode 100644 index 7874ac84..00000000 --- a/ethereum-models/README.md +++ /dev/null @@ -1,15 +0,0 @@ -Welcome to your new dbt project! - -### Using the starter project - -Try running the following commands: -- dbt run -- dbt test - - -### Resources: -- Learn more about dbt [in the docs](https://docs.getdbt.com/docs/introduction) -- Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers -- Join the [chat](https://community.getdbt.com/) on Slack for live discussions and support -- Find [dbt events](https://events.getdbt.com) near you -- Check out [the blog](https://blog.getdbt.com/) for the latest news on dbt's development and best practices diff --git a/ethereum-models/analysis/.gitkeep b/ethereum-models/analysis/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/ethereum-models/data/.gitkeep b/ethereum-models/data/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/ethereum-models/dbt_project.yml b/ethereum-models/dbt_project.yml deleted file mode 100644 index e5c84238..00000000 --- a/ethereum-models/dbt_project.yml +++ /dev/null @@ -1,38 +0,0 @@ - -# Name your project! Project names should contain only lowercase characters -# and underscores. A good package name should reflect your organization's -# name or the intended use of these models -name: 'my_new_project' -version: '1.0.0' -config-version: 2 - -# This setting configures which "profile" dbt uses for this project. -profile: 'default' - -# These configurations specify where dbt should look for different types of files. -# The `source-paths` config, for example, states that models in this project can be -# found in the "models/" directory. You probably won't need to change these! -source-paths: ["models"] -analysis-paths: ["analysis"] -test-paths: ["tests"] -data-paths: ["data"] -macro-paths: ["macros"] -snapshot-paths: ["snapshots"] - -target-path: "target" # directory which will store compiled SQL files -clean-targets: # directories to be removed by `dbt clean` - - "target" - - "dbt_modules" - - -# Configuring models -# Full documentation: https://docs.getdbt.com/docs/configuring-models - -# In this example config, we tell dbt to build all models in the example/ directory -# as tables. These settings can be overridden in the individual model files -# using the `{{ config(...) }}` macro. -models: - my_new_project: - # Config indicated by + and applies to all files under models/example/ - example: - +materialized: view diff --git a/ethereum-models/macros/.gitkeep b/ethereum-models/macros/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/ethereum-models/models/example/my_first_dbt_model.sql b/ethereum-models/models/example/my_first_dbt_model.sql deleted file mode 100644 index f31a12d9..00000000 --- a/ethereum-models/models/example/my_first_dbt_model.sql +++ /dev/null @@ -1,27 +0,0 @@ - -/* - Welcome to your first dbt model! - Did you know that you can also configure models directly within SQL files? - This will override configurations stated in dbt_project.yml - - Try changing "table" to "view" below -*/ - -{{ config(materialized='table') }} - -with source_data as ( - - select 1 as id - union all - select null as id - -) - -select * -from source_data - -/* - Uncomment the line below to remove records with null `id` values -*/ - --- where id is not null diff --git a/ethereum-models/models/example/my_second_dbt_model.sql b/ethereum-models/models/example/my_second_dbt_model.sql deleted file mode 100644 index c91f8793..00000000 --- a/ethereum-models/models/example/my_second_dbt_model.sql +++ /dev/null @@ -1,6 +0,0 @@ - --- Use the `ref` function to select from other models - -select * -from {{ ref('my_first_dbt_model') }} -where id = 1 diff --git a/ethereum-models/models/example/schema.yml b/ethereum-models/models/example/schema.yml deleted file mode 100644 index 2a530817..00000000 --- a/ethereum-models/models/example/schema.yml +++ /dev/null @@ -1,21 +0,0 @@ - -version: 2 - -models: - - name: my_first_dbt_model - description: "A starter dbt model" - columns: - - name: id - description: "The primary key for this table" - tests: - - unique - - not_null - - - name: my_second_dbt_model - description: "A starter dbt model" - columns: - - name: id - description: "The primary key for this table" - tests: - - unique - - not_null diff --git a/ethereum-models/snapshots/.gitkeep b/ethereum-models/snapshots/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/ethereum-models/sql_models/bronze/bronze_ethereum_2022__blocks.sql b/ethereum-models/sql_models/bronze/bronze_ethereum_2022__blocks.sql deleted file mode 100644 index aaadf0fa..00000000 --- a/ethereum-models/sql_models/bronze/bronze_ethereum_2022__blocks.sql +++ /dev/null @@ -1,20 +0,0 @@ -{{ config ( - materialized = 'view', - tags = ['snowflake', 'ethereum', 'bronze_ethereum', 'ethereum_blocks'] -) }} - -SELECT - record_id, - offset_id, - block_id, - block_timestamp, - network, - chain_id, - tx_count, - header, - ingested_at -FROM - {{ source( - 'prod', - 'ethereum_blocks' - ) }} diff --git a/ethereum-models/sql_models/sources.yml b/ethereum-models/sql_models/sources.yml deleted file mode 100644 index 4577741a..00000000 --- a/ethereum-models/sql_models/sources.yml +++ /dev/null @@ -1,155 +0,0 @@ -version: 2 - -sources: - - name: shared - schema: silver - tables: - - name: prices - - name: prices_v2 - - name: cmc_assets - - name: market_asset_metadata - - name: coingecko_prices - - name: hours - - name: udm_address_labels - - name: udm_address_labels_new - - name: udm_address_tags - - name: udm_balances - - name: udm_decimal_adjustments - - name: udm_velocity - - name: uniswapv2factory_event_paircreated - - name: flow_balances - - name: near_balances - - name: algorand_balances - - name: terra_balances - - name: ethereum - schema: silver - tables: - - name: ethereum_balances - - name: ethereum_contracts - - name: ethereum_contracts_backfill - - name: daily_ethereum_token_balances - - name: ethereum_address_labels - - name: ethereum_address_labels_updates - - name: ethereum_contract_decimal_adjustments - - name: ethereum_decoded_log_methods - - name: ethereum_events - - name: ethereum_events_emitted - - name: ethereum_proxy_contract_registry - - name: ethereum_reads - - name: ethereum_transactions - - name: ethereum_token_balances - - name: ethereum_token_contracts - - name: sha256_function_signatures - - name: nft_metadata - - name: flow - schema: redshift - tables: - - name: daily_flow_staked_balances - - name: udm_daily_balances_flow - - name: udm_events_flow - - - name: uniswapv3_eth - schema: silver - tables: - - name: rinkeby_uniswapv3_liquidity_actions - - name: rinkeby_uniswapv3_pools - - name: rinkeby_uniswapv3_pool_stats - - name: rinkeby_uniswapv3_positions - - name: rinkeby_uniswapv3_swaps - - name: uniswapv3_liquidity_actions - - name: uniswapv3_pools - - name: uniswapv3_pool_stats - - name: uniswapv3_positions - - name: uniswapv3_swaps - - name: gold - schema: gold - tables: - - name: flow_delegator_addresses - - name: terra_vesting_schedule - - name: thorchain_midgard - schema: BRONZE_MIDGARD_20211112_MIDGARD - tables: - - name: active_vault_events - - name: add_events - - name: asgard_fund_yggdrasil_events - - name: block_log - - name: block_pool_depths - - name: bond_events - - name: constants - - name: errata_events - - name: fee_events - - name: gas_events - - name: inactive_vault_events - - name: message_events - - name: new_node_events - - name: outbound_events - - name: pending_liquidity_events - - name: pool_balance_change_events - - name: pool_events - - name: refund_events - - name: reserve_events - - name: rewards_event_entries - - name: rewards_events - - name: set_ip_address_events - - name: set_mimir_events - - name: set_node_keys_events - - name: set_version_events - - name: slash_amounts - - name: stake_events - - name: swap_events - - name: switch_events - - name: thorname_change_events - - name: transfer_events - - name: unstake_events - - name: update_node_account_status_events - - name: validator_request_leave_events - - name: terra - schema: silver - tables: - - name: udm_daily_balances_terra - - name: terra_validator_voting_power - - name: udm_custom_fields_terra_tax_rate # TODO: drop table as it is not being referenced in dbt anymore. - - name: bronze - schema: bronze - tables: - - name: prod_matic_sink_510901820 - - name: prod_terra_sink_645110886 - - name: prod_address_label_sink_291098491 - - name: prod_ethereum_sink_407559501 - - name: JIM_TEST_REST_PROXY_1507016047 - - name: prod_nft_metadata_uploads_1828572827 - - name: crosschain - schema: silver_crosschain - tables: - - name: address_labels - - name: near - schema: redshift - tables: - - name: near_validators - - name: near_daily_reward_flow - - name: near_delegator_counts - - name: udm_events_near - - name: near_silver - schema: silver_near - tables: - - name: daily_balances - - name: algorand - schema: BRONZE_ALGORAND_2_8_0_PUBLIC - tables: - - name: ACCOUNT - - name: ACCOUNT_APP - - name: ACCOUNT_ASSET - - name: APP - - name: ASSET - - name: BLOCK_HEADER - - name: METASTATE - - name: TXN - - name: TXN_PARTICIPATION - - name: prod - database: chainwalkers - schema: prod - tables: - - name: solana_blocks - - name: solana_txs - - name: ethereum_blocks - - name: ethereum_txs diff --git a/ethereum-models/tests/.gitkeep b/ethereum-models/tests/.gitkeep deleted file mode 100644 index e69de29b..00000000