mirror of
https://github.com/FlipsideCrypto/mantle-models.git
synced 2026-02-06 13:46:42 +00:00
initial build
This commit is contained in:
parent
0833ddfe54
commit
949dfc5608
@ -43,7 +43,7 @@ jobs:
|
||||
- name: List reorg models
|
||||
id: list_models
|
||||
run: |
|
||||
reorg_model_list=$(dbt list --select "<evm_chain>_models,tag:reorg" --resource-type model --output name | grep '__' | awk -F'.' '{print $NF}' | tr '\n' ',' | sed 's/,$//')
|
||||
reorg_model_list=$(dbt list --select "mantle_models,tag:reorg" --resource-type model --output name | grep '__' | awk -F'.' '{print $NF}' | tr '\n' ',' | sed 's/,$//')
|
||||
echo "model_list=$reorg_model_list" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Execute block_reorg macro
|
||||
|
||||
@ -41,4 +41,4 @@ jobs:
|
||||
dbt deps
|
||||
- name: Run DBT Jobs
|
||||
run: |
|
||||
dbt run -m "<evm_chain>_models,tag:curated" "fsc_evm,tag:curated"
|
||||
dbt run -m "mantle_models,tag:curated" "fsc_evm,tag:curated"
|
||||
@ -1,12 +1,12 @@
|
||||
# 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: "<evm_chain>_models" # replace with the name of the chain
|
||||
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: "<evm_chain>" # replace with the name of the chain
|
||||
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
|
||||
@ -26,7 +26,7 @@ clean-targets: # directories to be removed by `dbt clean`
|
||||
- "dbt_packages"
|
||||
|
||||
tests:
|
||||
<evm_chain>_models: # replace with the name of the chain
|
||||
mantle_models: # replace with the name of the chain
|
||||
+store_failures: true # all tests
|
||||
fsc_evm:
|
||||
+store_failures: true
|
||||
@ -41,7 +41,7 @@ on-run-end:
|
||||
dispatch:
|
||||
- macro_namespace: dbt
|
||||
search_order:
|
||||
- <evm_chain>-models
|
||||
- mantle-models
|
||||
- dbt_snowflake_query_tags
|
||||
- dbt
|
||||
|
||||
@ -53,7 +53,7 @@ query-comment:
|
||||
# Full documentation: https://docs.getdbt.com/docs/configuring-models
|
||||
|
||||
models:
|
||||
<evm_chain>_models: # replace with the name of the chain
|
||||
mantle_models: # replace with the name of the chain
|
||||
+copy_grants: true
|
||||
+persist_docs:
|
||||
relation: true
|
||||
@ -101,16 +101,16 @@ vars:
|
||||
API_INTEGRATION:
|
||||
EXTERNAL_FUNCTION_URI:
|
||||
ROLES:
|
||||
- AWS_LAMBDA_<EVM_CHAIN>_API # replace with the name of the chain
|
||||
- AWS_LAMBDA_MANTLE_API # replace with the name of the chain
|
||||
- INTERNAL_DEV
|
||||
|
||||
prod:
|
||||
API_INTEGRATION:
|
||||
EXTERNAL_FUNCTION_URI:
|
||||
ROLES:
|
||||
- AWS_LAMBDA_<EVM_CHAIN>_API # replace with the name of the chain
|
||||
- AWS_LAMBDA_MANTLE_API # replace with the name of the chain
|
||||
- INTERNAL_DEV
|
||||
- DBT_CLOUD_<EVM_CHAIN> # replace with the name of the chain
|
||||
- DBT_CLOUD_MANTLE # replace with the name of the chain
|
||||
|
||||
#### STREAMLINE 2.0 END ####
|
||||
|
||||
@ -119,9 +119,9 @@ vars:
|
||||
|
||||
### GLOBAL VARIABLES BEGIN ###
|
||||
## REQUIRED
|
||||
GLOBAL_PROD_DB_NAME: '<evm_chain>' # replace with the name of the chain
|
||||
GLOBAL_NODE_SECRET_PATH: 'Vault/prod/<evm_chain>/<node_provider>/<network>'
|
||||
GLOBAL_BLOCKS_PER_HOUR: 0 # replace with the blocks per hour of the chain
|
||||
GLOBAL_PROD_DB_NAME: 'mantle' # replace with the name of the chain
|
||||
GLOBAL_NODE_SECRET_PATH: 'Vault/prod/mantle/<node_provider>/<network>'
|
||||
GLOBAL_BLOCKS_PER_HOUR: 1800 # replace with the blocks per hour of the chain
|
||||
|
||||
### GLOBAL VARIABLES END ###
|
||||
|
||||
@ -129,12 +129,12 @@ vars:
|
||||
|
||||
### CORE ###
|
||||
## REQUIRED
|
||||
TRACES_FULL_RELOAD_START_BLOCK: # replace with the start block
|
||||
TRACES_FULL_RELOAD_START_BLOCK: 71000000 # replace with the start block
|
||||
|
||||
### PRICES ###
|
||||
## REQUIRED
|
||||
PRICES_NATIVE_SYMBOLS: '<NATIVE_SYMBOL>' # replace with the native symbol(s) of the chain
|
||||
PRICES_PROVIDER_PLATFORMS: ['<evm_chain>'] # replace with the platform name(s)of the chain
|
||||
PRICES_NATIVE_SYMBOLS: 'ETH' # replace with the native symbol(s) of the chain
|
||||
PRICES_PROVIDER_PLATFORMS: ['mantle'] # replace with the platform name(s)of the chain
|
||||
|
||||
### LABELS ###
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
# Welcome to the Flipside Crypto Core Models Documentation!
|
||||
|
||||
## **What does this documentation cover?**
|
||||
The documentation included here details the design of the Core tables and views available via [Flipside Crypto.](https://flipsidecrypto.xyz/) For more information on how these models are built, please see [the github repository.](https://github.com/FlipsideCrypto/<evm_chain>-models)
|
||||
The documentation included here details the design of the Core tables and views available via [Flipside Crypto.](https://flipsidecrypto.xyz/) For more information on how these models are built, please see [the github repository.](https://github.com/FlipsideCrypto/mantle-models)
|
||||
|
||||
## **How do I use these docs?**
|
||||
The easiest way to navigate this documentation is to use the Quick Links below. These links will take you to the documentation for each table, which contains a description, a list of the columns, and other helpful information.
|
||||
@ -16,16 +16,16 @@ There is more information on how to use dbt docs in the last section of this doc
|
||||
|
||||
**Click on the links below to jump to the documentation for each schema.**
|
||||
|
||||
### <evm_chain> Tables (<evm_chain>.core)
|
||||
### mantle Tables (mantle.core)
|
||||
|
||||
**Dimension Tables:**
|
||||
- [dim_labels](https://flipsidecrypto.github.io/<evm_chain>-models/#!/model/model.fsc_evm.core__dim_labels)
|
||||
- [dim_labels](https://flipsidecrypto.github.io/mantle-models/#!/model/model.fsc_evm.core__dim_labels)
|
||||
|
||||
**Fact Tables:**
|
||||
- [fact_blocks](https://flipsidecrypto.github.io/<evm_chain>-models/#!/model/model.fsc_evm.core__fact_blocks)
|
||||
- [fact_event_logs](https://flipsidecrypto.github.io/<evm_chain>-models/#!/model/model.fsc_evm.core__fact_event_logs)
|
||||
- [fact_transactions](https://flipsidecrypto.github.io/<evm_chain>-models/#!/model/model.fsc_evm.core__fact_transactions)
|
||||
- [fact_traces](https://flipsidecrypto.github.io/<evm_chain>-models/#!/model/model.fsc_evm.core__fact_traces)
|
||||
- [fact_blocks](https://flipsidecrypto.github.io/mantle-models/#!/model/model.fsc_evm.core__fact_blocks)
|
||||
- [fact_event_logs](https://flipsidecrypto.github.io/mantle-models/#!/model/model.fsc_evm.core__fact_event_logs)
|
||||
- [fact_transactions](https://flipsidecrypto.github.io/mantle-models/#!/model/model.fsc_evm.core__fact_transactions)
|
||||
- [fact_traces](https://flipsidecrypto.github.io/mantle-models/#!/model/model.fsc_evm.core__fact_traces)
|
||||
|
||||
## **Helpful User-Defined Functions (UDFs)**
|
||||
|
||||
@ -69,7 +69,7 @@ Note that you can also right-click on models to interactively filter and explore
|
||||
- [Flipside](https://flipsidecrypto.xyz/)
|
||||
- [Data Studio](https://flipsidecrypto.xyz/studio)
|
||||
- [Tutorials](https://docs.flipsidecrypto.com/our-data/tutorials)
|
||||
- [Github](https://github.com/FlipsideCrypto/<evm_chain>-models)
|
||||
- [Github](https://github.com/FlipsideCrypto/mantle-models)
|
||||
- [What is dbt?](https://docs.getdbt.com/docs/introduction)
|
||||
|
||||
{% enddocs %}
|
||||
Loading…
Reference in New Issue
Block a user