-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbt_project.yml
196 lines (159 loc) · 5.03 KB
/
dbt_project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# 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"]
docs-paths:
["dbt_packages/fsc_evm/doc_descriptions", "models/doc_descriptions", "models"]
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:
core_models:
+store_failures: true # all tests
fsc_evm:
+store_failures: true
on-run-start:
- "{{ fsc_evm.create_sps() }}"
- "{{ fsc_evm.create_udfs() }}"
on-run-end:
- "{{ fsc_evm.apply_meta_as_tags(results) }}"
dispatch:
- macro_namespace: dbt
search_order:
- core-models
- dbt_snowflake_query_tags
- dbt
query-comment:
comment: "{{ dbt_snowflake_query_tags.get_query_comment(node) }}"
append: true # Snowflake removes prefixed comments.
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
models:
core_models:
+copy_grants: true
+persist_docs:
relation: true
columns: true
+on_schema_change: "append_new_columns"
livequery_models:
+materialized: ephemeral
fsc_evm:
+enabled: false
+copy_grants: true
+persist_docs:
relation: true
columns: true
+on_schema_change: "append_new_columns"
main_package:
+enabled: false
core:
+enabled: true
github_actions:
+enabled: true
labels:
+enabled: true
observability:
+enabled: true
prices:
+enabled: true
utils:
+enabled: true
decoder_package:
+enabled: false
abis:
+enabled: true
decoded_logs:
+enabled: true
scores_package:
+enabled: true
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
#### STREAMLINE 2.0 BEGIN ####
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:
# The keys correspond to dbt profiles and are case sensitive
dev:
API_INTEGRATION: AWS_CORE_API_STG_V2
EXTERNAL_FUNCTION_URI: jxvwlr7746.execute-api.us-east-1.amazonaws.com/stg/
ROLES:
- AWS_LAMBDA_CORE_API
- INTERNAL_DEV
prod:
API_INTEGRATION: AWS_CORE_API_PROD_V2
EXTERNAL_FUNCTION_URI: 5foaq9dteg.execute-api.us-east-1.amazonaws.com/prod/
ROLES:
- AWS_LAMBDA_CORE_API
- INTERNAL_DEV
- DBT_CLOUD_CORE
#### STREAMLINE 2.0 END ####
#### FSC_EVM BEGIN ####
### GLOBAL VARIABLES BEGIN ###
## REQUIRED
GLOBAL_PROD_DB_NAME: "core"
GLOBAL_NODE_SECRET_PATH: "Vault/prod/core/ankr/mainnet"
GLOBAL_BLOCKS_PER_HOUR: 1200
GLOBAL_WRAPPED_ASSET_ADDRESS: "0x40375c92d9faf44d2f9db9bd9ba41a3317a2404f"
## OPTIONAL
GLOBAL_USES_RECEIPTS_BY_HASH: True
GLOBAL_AVG_TXS_PER_BLOCK: 50
### GLOBAL VARIABLES END ###
### MAIN_PACKAGE VARIABLES BEGIN ###
### CORE ###
## REQUIRED
TRACES_FULL_RELOAD_START_BLOCK: 20000000
## OPTIONAL
# GOLD_FULL_REFRESH: True
# SILVER_FULL_REFRESH: True
### PRICES ###
## REQUIRED
PRICES_NATIVE_SYMBOLS: "CORE"
PRICES_PROVIDER_PLATFORMS: ["Core", "core"]
### LABELS ###
### 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
### MAIN_PACKAGE VARIABLES END ###
### DECODER_PACKAGE VARIABLES BEGIN ###
## REQUIRED
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"
### DECODER_PACKAGE VARIABLES END ###
### CURATED_PACKAGE VARIABLES BEGIN ###
### STATS ###
# STATS_TOKEN_ADDRESS: '' ### REQUIRED
### CURATED_PACKAGE VARIABLES END ###
### SCORES_PACKAGE VARIABLES BEGIN ###
### SCORES_FULL_RELOAD_MODE: True
### SCORES_PACKAGE VARIABLES END ###
#### FSC_EVM END ####