This commit is contained in:
austinFlipside 2022-02-08 22:00:51 -05:00
parent fc0f5b6fcf
commit 1bc889af16
13 changed files with 0 additions and 286 deletions

View File

@ -1,4 +0,0 @@
target/
dbt_modules/
logs/

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,6 +0,0 @@
-- Use the `ref` function to select from other models
select *
from {{ ref('my_first_dbt_model') }}
where id = 1

View File

@ -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

View File

@ -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'
) }}

View File

@ -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