core-models/dbt_project.yml

188 lines
4.9 KiB
YAML
Raw Normal View History

2024-09-25 19:35:33 +00:00
# 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: "core_models"
version: "1.0.0"
config-version: 2
# This setting configures which "profile" dbt uses for this project.
profile: "core"
# 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!
model-paths: ["models"]
analysis-paths: ["analysis"]
test-paths: ["tests"]
seed-paths: ["data"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
2024-12-03 13:45:27 +00:00
docs-paths:
["dbt_packages/fsc_evm/doc_descriptions", "models/doc_descriptions", "models"]
2024-09-25 19:35:33 +00:00
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_modules"
- "dbt_packages"
tests:
2024-10-11 21:33:50 +00:00
core_models:
+store_failures: true # all tests
2024-10-30 14:53:27 +00:00
fsc_evm:
+store_failures: true
2024-09-25 19:35:33 +00:00
on-run-start:
2024-10-07 17:58:33 +00:00
- "{{ fsc_evm.create_sps() }}"
- "{{ fsc_evm.create_udfs() }}"
2024-09-25 19:35:33 +00:00
on-run-end:
2024-12-03 13:45:27 +00:00
- "{{ fsc_evm.apply_meta_as_tags(results) }}"
2024-09-25 19:35:33 +00:00
dispatch:
- macro_namespace: dbt
search_order:
- core-models
- dbt_snowflake_query_tags
- dbt
query-comment:
2024-12-03 13:45:27 +00:00
comment: "{{ dbt_snowflake_query_tags.get_query_comment(node) }}"
2024-09-25 19:35:33 +00:00
append: true # Snowflake removes prefixed comments.
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
models:
2024-10-11 21:33:50 +00:00
core_models:
+copy_grants: true
+persist_docs:
relation: true
columns: true
+on_schema_change: "append_new_columns"
2024-09-25 19:35:33 +00:00
livequery_models:
+materialized: ephemeral
2024-10-11 21:33:50 +00:00
fsc_evm:
2024-10-17 22:45:13 +00:00
+enabled: false
2024-11-06 15:10:52 +00:00
+copy_grants: true
+persist_docs:
relation: true
columns: true
+on_schema_change: "append_new_columns"
2024-10-29 19:31:45 +00:00
main_package:
+enabled: false
core:
+enabled: true
github_actions:
+enabled: true
labels:
+enabled: true
2024-12-04 02:53:56 +00:00
observability:
+enabled: true
2024-10-29 19:31:45 +00:00
prices:
+enabled: true
utils:
+enabled: true
2024-10-30 18:20:50 +00:00
decoder_package:
+enabled: false
abis:
+enabled: true
decoded_logs:
+enabled: true
2024-09-25 19:35:33 +00:00
vars:
"dbt_date:time_zone": GMT
STREAMLINE_INVOKE_STREAMS: False
STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES: False
UPDATE_UDFS_AND_SPS: False
UPDATE_SNOWFLAKE_TAGS: True
OBSERV_FULL_TEST: False
WAIT: 0
HEAL_MODEL: False
HEAL_MODELS: []
START_GHA_TASKS: False
2024-10-01 20:23:26 +00:00
2024-12-03 13:45:27 +00:00
#### STREAMLINE 2.0 BEGIN ####
2024-09-25 19:35:33 +00:00
API_INTEGRATION: '{{ var("config")[target.name]["API_INTEGRATION"] if var("config")[target.name] else var("config")["dev"]["API_INTEGRATION"] }}'
EXTERNAL_FUNCTION_URI: '{{ var("config")[target.name]["EXTERNAL_FUNCTION_URI"] if var("config")[target.name] else var("config")["dev"]["EXTERNAL_FUNCTION_URI"] }}'
ROLES: |
["INTERNAL_DEV"]
config:
2024-12-03 13:45:27 +00:00
# The keys correspond to dbt profiles and are case sensitive
2024-09-25 19:35:33 +00:00
dev:
2024-09-25 21:21:33 +00:00
API_INTEGRATION: AWS_CORE_API_STG_V2
2024-09-25 21:31:31 +00:00
EXTERNAL_FUNCTION_URI: jxvwlr7746.execute-api.us-east-1.amazonaws.com/stg/
2024-09-25 19:35:33 +00:00
ROLES:
- AWS_LAMBDA_CORE_API
- INTERNAL_DEV
prod:
2024-09-25 21:21:33 +00:00
API_INTEGRATION: AWS_CORE_API_PROD_V2
2024-09-26 21:17:38 +00:00
EXTERNAL_FUNCTION_URI: 5foaq9dteg.execute-api.us-east-1.amazonaws.com/prod/
2024-09-25 19:35:33 +00:00
ROLES:
- AWS_LAMBDA_CORE_API
- INTERNAL_DEV
- DBT_CLOUD_CORE
2024-12-03 13:45:27 +00:00
#### STREAMLINE 2.0 END ####
2024-10-01 20:23:26 +00:00
2024-12-03 13:45:27 +00:00
#### FSC_EVM BEGIN ####
2024-10-01 20:23:26 +00:00
2024-10-11 22:48:37 +00:00
### GLOBAL VARIABLES BEGIN ###
## REQUIRED
2024-12-03 13:45:27 +00:00
GLOBAL_PROD_DB_NAME: "core"
GLOBAL_NODE_SECRET_PATH: "Vault/prod/core/ankr/mainnet"
2024-10-09 00:02:12 +00:00
GLOBAL_BLOCKS_PER_HOUR: 1200
2024-12-03 13:45:27 +00:00
GLOBAL_WRAPPED_ASSET_ADDRESS: "0x40375c92d9faf44d2f9db9bd9ba41a3317a2404f"
2024-10-01 20:23:26 +00:00
2024-10-11 22:48:37 +00:00
## OPTIONAL
2024-10-29 19:31:45 +00:00
GLOBAL_USES_RECEIPTS_BY_HASH: True
2024-12-17 19:17:24 +00:00
GLOBAL_AVG_TXS_PER_BLOCK: 50
2024-10-08 23:56:37 +00:00
2024-10-11 22:48:37 +00:00
### GLOBAL VARIABLES END ###
2024-10-08 23:56:37 +00:00
2024-10-29 20:35:58 +00:00
### MAIN_PACKAGE VARIABLES BEGIN ###
2024-10-11 22:48:37 +00:00
### CORE ###
## REQUIRED
2024-10-29 19:31:45 +00:00
TRACES_FULL_RELOAD_START_BLOCK: 20000000
2024-10-01 20:23:26 +00:00
2024-11-05 20:45:22 +00:00
## OPTIONAL
# GOLD_FULL_REFRESH: True
# SILVER_FULL_REFRESH: True
2024-10-09 00:24:22 +00:00
### PRICES ###
2024-10-11 22:48:37 +00:00
## REQUIRED
2024-12-03 13:45:27 +00:00
PRICES_NATIVE_SYMBOLS: "CORE"
PRICES_PROVIDER_PLATFORMS: ["Core", "core"]
2024-11-05 20:37:03 +00:00
### LABELS ###
2024-12-03 13:45:27 +00:00
### OBSERVABILITY ###
OBSERV_USES_EXCLUSION_LIST_BLOCKS: False
OBSERV_USES_EXCLUSION_LIST_TRANSACTIONS: False
OBSERV_USES_EXCLUSION_LIST_RECEIPTS: False
OBSERV_USES_EXCLUSION_LIST_LOGS: False
OBSERV_USES_EXCLUSION_LIST_TRACES: False
2024-11-05 20:37:03 +00:00
### MAIN_PACKAGE VARIABLES END ###
### DECODER_PACKAGE VARIABLES BEGIN ###
2024-10-30 18:20:50 +00:00
2024-11-05 20:37:03 +00:00
## REQUIRED
2024-12-03 13:45:27 +00:00
BLOCK_EXPLORER_NAME: "CoreScan"
BLOCK_EXPLORER_ABI_URL: "https://openapi.coredao.org/api?module=contract&action=getabi&address="
BLOCK_EXPLORER_ABI_API_KEY_PATH: "Vault/prod/block_explorers/core_scan"
2024-10-09 00:24:22 +00:00
2024-11-05 20:37:03 +00:00
### DECODER_PACKAGE VARIABLES END ###
2024-10-08 23:56:37 +00:00
2024-10-11 22:48:37 +00:00
### CURATED_PACKAGE VARIABLES BEGIN ###
### STATS ###
# STATS_TOKEN_ADDRESS: '' ### REQUIRED
2024-10-01 20:23:26 +00:00
2024-10-11 22:48:37 +00:00
### CURATED_PACKAGE VARIABLES END ###
2024-12-03 13:45:27 +00:00
#### FSC_EVM END ####