generated from FlipsideCrypto/evm-models-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbt_project.yml
241 lines (201 loc) · 7.17 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
# 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: "mantle_models" # replace with the name of the chain
version: "1.0.0"
config-version: 2
# This setting configures which "profile" dbt uses for this project.
profile: "mantle" # replace with the name of the chain
# 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:
mantle_models: # replace with the name of the chain
+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:
- mantle-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:
mantle_models: # replace with the name of the chain
+copy_grants: true
+persist_docs:
relation: true
columns: true
+on_schema_change: "append_new_columns"
livequery_models:
+materialized: ephemeral
fsc_evm:
+enabled: false # disable fsc_evm package by default
+copy_grants: true
+persist_docs:
relation: true
columns: true
+on_schema_change: "append_new_columns"
main_package:
+enabled: false # disable main_package by default, enabled other packages as needed
core:
+enabled: true # enable subpackages, as needed
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
curated_package:
+enabled: false
protocols:
+enabled: false
vertex:
+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_MANTLE_API_STG_V2
EXTERNAL_FUNCTION_URI: y56j97l3vb.execute-api.us-east-1.amazonaws.com/stg/
ROLES:
- AWS_LAMBDA_MANTLE_API
- INTERNAL_DEV
prod:
API_INTEGRATION: AWS_MANTLE_API_PROD_V2
EXTERNAL_FUNCTION_URI: nkobltctqf.execute-api.us-east-1.amazonaws.com/prod/
ROLES:
- AWS_LAMBDA_MANTLE_API
- INTERNAL_DEV
- DBT_CLOUD_MANTLE
#### STREAMLINE 2.0 END ####
#### FSC_EVM BEGIN ####
# Visit https://github.com/FlipsideCrypto/fsc-evm/wiki for more information on required and optional variables
### GLOBAL VARIABLES BEGIN ###
## REQUIRED
GLOBAL_PROD_DB_NAME: "mantle"
GLOBAL_NODE_SECRET_PATH: "Vault/prod/mantle/quicknode/mainnet"
GLOBAL_BLOCKS_PER_HOUR: 1800
GLOBAL_USES_MIX_HASH: True
GLOBAL_USES_ETH_VALUE: True
GLOBAL_USES_MINT: True
GLOBAL_USES_SOURCE_HASH: True
GLOBAL_USES_L1_COLUMNS: True
GLOBAL_START_UP_BLOCK: 71000000
GLOBAL_WRAPPED_ASSET_ADDRESS: "0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8"
### GLOBAL VARIABLES END ###
### MAIN_PACKAGE VARIABLES BEGIN ###
### CORE ###
## REQUIRED
## OPTIONAL
# BLOCKS_TRANSACTIONS_REALTIME_NEW_BUILD: True
# BLOCKS_TRANSACTIONS_REALTIME_TESTING_LIMIT: 3
# BLOCKS_TRANSACTIONS_HISTORY_NEW_BUILD: True
# BLOCKS_TRANSACTIONS_HISTORY_SQL_LIMIT: 300000
# BLOCKS_TRANSACTIONS_HISTORY_PRODUCER_BATCH_SIZE: 60000
# BLOCKS_TRANSACTIONS_HISTORY_WORKER_BATCH_SIZE: 12000
# BLOCKS_TRANSACTIONS_HISTORY_TESTING_LIMIT: 4
# RECEIPTS_REALTIME_NEW_BUILD: True
# RECEIPTS_REALTIME_TESTING_LIMIT: 3
# RECEIPTS_HISTORY_NEW_BUILD: True
# RECEIPTS_HISTORY_SQL_LIMIT: 300000
# RECEIPTS_HISTORY_PRODUCER_BATCH_SIZE: 60000
# RECEIPTS_HISTORY_WORKER_BATCH_SIZE: 12000
# RECEIPTS_HISTORY_TESTING_LIMIT: 4
# TRACES_REALTIME_NEW_BUILD: True
# TRACES_REALTIME_TESTING_LIMIT: 3
# TRACES_HISTORY_NEW_BUILD: True
# TRACES_HISTORY_SQL_LIMIT: 1500000
# TRACES_HISTORY_PRODUCER_BATCH_SIZE: 20000
# TRACES_HISTORY_WORKER_BATCH_SIZE: 2000
# TRACES_HISTORY_ORDER_BY_CLAUSE: 'ORDER BY partition_key DESC'
# TRACES_HISTORY_TESTING_LIMIT: 4
CONFIRM_BLOCKS_REALTIME_NEW_BUILD: True
# CONFIRM_BLOCKS_REALTIME_TESTING_LIMIT: 3
CONFIRM_BLOCKS_HISTORY_NEW_BUILD: True
CONFIRM_BLOCKS_HISTORY_SQL_LIMIT: 1500000
CONFIRM_BLOCKS_HISTORY_PRODUCER_BATCH_SIZE: 360000
CONFIRM_BLOCKS_HISTORY_WORKER_BATCH_SIZE: 36000
CONFIRM_BLOCKS_HISTORY_ORDER_BY_CLAUSE: "ORDER BY partition_key DESC"
# CONFIRM_BLOCKS_HISTORY_TESTING_LIMIT: 4
# GOLD_FULL_REFRESH: True
# SILVER_FULL_REFRESH: True
### PRICES ###
## REQUIRED
PRICES_NATIVE_SYMBOLS: "MNT"
PRICES_PROVIDER_PLATFORMS: ["mantle"]
### 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
### CURATED ###
### VERTEX ###
OFFCHAIN_EXCHANGE_CONTRACT: "0x736a2ada5f4700d49da6b28a74c4a77cdb3e2994"
CLEARINGHOUSE_CONTRACT: "0x5bcfc8ad38ee1da5f45d9795acadf57d37fec172"
TOKEN_MAPPING:
USDC: "0x09bc4e0d864854c6afb6eb9a9cdf58ac190d0df9"
wMNT: "0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8"
METH: "0xcda86a272531e8640cd7f1a92c01839911b90bb0"
WETH: "0xdeaddeaddeaddeaddeaddeaddeaddeaddead1111"
### MAIN_PACKAGE VARIABLES END ###
### DECODER_PACKAGE VARIABLES BEGIN ###
## REQUIRED
BLOCK_EXPLORER_NAME: "MantleScan"
BLOCK_EXPLORER_ABI_URL: "https://api.mantlescan.xyz/api?module=contract&action=getabi&address="
BLOCK_EXPLORER_ABI_API_KEY_PATH: "Vault/prod/block_explorers/mantle_scan"
## OPTIONAL
# DECODED_LOGS_REALTIME_TESTING_LIMIT: 30
# BRONZE_FULL_REFRESH: True
### DECODER_PACKAGE VARIABLES END ###
#### FSC_EVM END ####