mantle-models/dbt_project.yml

144 lines
4.0 KiB
YAML
Raw Normal View History

2024-10-30 16:54:57 +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
2024-10-30 17:05:09 +00:00
name: "mantle_models" # replace with the name of the chain
2024-10-30 16:54:57 +00:00
version: "1.0.0"
config-version: 2
# This setting configures which "profile" dbt uses for this project.
2024-10-30 17:05:09 +00:00
profile: "mantle" # replace with the name of the chain
2024-10-30 16:54:57 +00:00
# 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-05 10:45:14 +00:00
docs-paths:
["dbt_packages/fsc_evm/doc_descriptions", "models/doc_descriptions", "models"]
2024-10-30 16:54:57 +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-30 17:05:09 +00:00
mantle_models: # replace with the name of the chain
2024-10-30 16:54:57 +00:00
+store_failures: true # all tests
fsc_evm:
+store_failures: true
on-run-start:
- "{{ fsc_evm.create_sps() }}"
- "{{ fsc_evm.create_udfs() }}"
on-run-end:
2024-12-05 10:45:14 +00:00
- "{{ fsc_evm.apply_meta_as_tags(results) }}"
2024-10-30 16:54:57 +00:00
dispatch:
- macro_namespace: dbt
search_order:
2024-10-30 17:05:09 +00:00
- mantle-models
2024-10-30 16:54:57 +00:00
- dbt_snowflake_query_tags
- dbt
query-comment:
2024-12-05 10:45:14 +00:00
comment: "{{ dbt_snowflake_query_tags.get_query_comment(node) }}"
2024-10-30 16:54:57 +00:00
append: true # Snowflake removes prefixed comments.
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
models:
2024-10-30 17:05:09 +00:00
mantle_models: # replace with the name of the chain
2024-10-30 16:54:57 +00:00
+copy_grants: true
+persist_docs:
relation: true
columns: true
+on_schema_change: "append_new_columns"
2025-04-28 17:42:02 +00:00
livequery_models:
2024-10-30 16:54:57 +00:00
+materialized: ephemeral
fsc_evm:
+enabled: false # disable fsc_evm package by default
2024-11-06 15:48:59 +00:00
+copy_grants: true
+persist_docs:
relation: true
columns: true
+on_schema_change: "append_new_columns"
2024-10-30 16:54:57 +00:00
main_package:
+enabled: false # disable main_package by default, enabled other packages as needed
2025-04-11 18:18:47 +00:00
admin:
+enabled: true
2024-10-30 16:54:57 +00:00
core:
+enabled: true # enable subpackages, as needed
github_actions:
+enabled: true
labels:
+enabled: true
2024-12-05 10:45:14 +00:00
observability:
+enabled: true
2024-10-30 16:54:57 +00:00
prices:
+enabled: true
2025-06-12 04:41:33 +00:00
token_reads:
+enabled: true
2024-10-30 16:54:57 +00:00
utils:
+enabled: true
2024-11-07 22:57:57 +00:00
decoder_package:
2024-11-07 22:29:41 +00:00
+enabled: false
abis:
+enabled: true
decoded_logs:
+enabled: true
2024-11-21 21:17:19 +00:00
curated_package:
2024-12-04 20:53:01 +00:00
+enabled: false
2025-04-11 21:58:15 +00:00
stats:
+enabled: true
2025-06-26 10:17:58 +00:00
defi:
+enabled: false
bridge:
+enabled: true
2025-01-13 14:03:56 +00:00
scores_package:
2025-02-12 17:16:01 +00:00
+enabled: true
2024-10-30 16:54:57 +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-12-05 10:45:14 +00:00
#### STREAMLINE 2.0 BEGIN ####
2024-10-30 16:54:57 +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-05 10:45:14 +00:00
# The keys correspond to dbt profiles and are case sensitive
2024-10-30 16:54:57 +00:00
dev:
2024-10-30 18:29:54 +00:00
API_INTEGRATION: AWS_MANTLE_API_STG_V2
EXTERNAL_FUNCTION_URI: y56j97l3vb.execute-api.us-east-1.amazonaws.com/stg/
2024-10-30 16:54:57 +00:00
ROLES:
2024-12-05 10:45:14 +00:00
- AWS_LAMBDA_MANTLE_API
2024-10-30 16:54:57 +00:00
- INTERNAL_DEV
2024-11-05 15:25:19 +00:00
prod:
API_INTEGRATION: AWS_MANTLE_API_PROD_V2
EXTERNAL_FUNCTION_URI: nkobltctqf.execute-api.us-east-1.amazonaws.com/prod/
ROLES:
2024-12-05 10:45:14 +00:00
- AWS_LAMBDA_MANTLE_API
2024-11-05 15:25:19 +00:00
- INTERNAL_DEV
2024-12-05 10:45:14 +00:00
- DBT_CLOUD_MANTLE
2024-10-30 16:54:57 +00:00
2024-12-05 10:45:14 +00:00
#### STREAMLINE 2.0 END ####