diff --git a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_glv_markets_data.sql b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_glv_markets_data.sql index fa1a7c9ec9d..16d2d77e07e 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_glv_markets_data.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_glv_markets_data.sql @@ -11,8 +11,10 @@ SELECT CONCAT(ERC20_LT.symbol, '-', ERC20_ST.symbol) AS glv_market_name, 'GM' AS market_token_symbol, 18 AS market_token_decimals, + GCE.long_token, ERC20_LT.symbol AS long_token_symbol, ERC20_LT.decimals AS long_token_decimals, + GCE.short_token, ERC20_ST.symbol AS short_token_symbol, ERC20_ST.decimals AS short_token_decimals FROM {{ ref('gmx_v2_arbitrum_glv_created') }} AS GCE diff --git a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_markets_data.sql b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_markets_data.sql index 5c4682b2fe8..9ef54976e01 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_markets_data.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_markets_data.sql @@ -15,10 +15,13 @@ SELECT END AS market_name, 'GM' AS market_token_symbol, 18 AS market_token_decimals, + MCE.index_token, ERC20_IT.symbol AS index_token_symbol, ERC20_IT.decimals AS index_token_decimals, + MCE.long_token, ERC20_LT.symbol AS long_token_symbol, ERC20_LT.decimals AS long_token_decimals, + MCE.short_token, ERC20_ST.symbol AS short_token_symbol, ERC20_ST.decimals AS short_token_decimals FROM {{ ref('gmx_v2_arbitrum_market_created') }} AS MCE diff --git a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_tokens_schema.yml b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_tokens_schema.yml index 5d076c51e8a..317ba7b82c7 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_tokens_schema.yml +++ b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/arbitrum/gmx_v2_arbitrum_tokens_schema.yml @@ -110,10 +110,14 @@ models: description: The number of decimal places for the market token. data_tests: - not_null + - name: index_token + description: The contract address of the index token. - name: index_token_symbol description: The symbol representing the index token in the market. - name: index_token_decimals description: The number of decimal places for the index token used in the market. + - name: long_token + description: The contract address of the long token. - name: long_token_symbol description: The symbol representing the long token in the market. data_tests: @@ -122,6 +126,8 @@ models: description: The number of decimal places for the long token used in the market. data_tests: - not_null + - name: short_token + description: The contract address of the short token. - name: short_token_symbol description: The symbol representing the short token in the market. data_tests: @@ -154,10 +160,14 @@ models: description: The symbol of the market token. - name: market_token_decimals description: The decimal precision of the market token. + - name: long_token + description: The contract address of the long token. - name: long_token_symbol description: The symbol of the long token in the market. - name: long_token_decimals description: The decimal precision of the long token. + - name: short_token + description: The contract address of the short token. - name: short_token_symbol description: The symbol of the short token in the market. - name: short_token_decimals diff --git a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_glv_markets_data.sql b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_glv_markets_data.sql index 395d3abe652..126a8adc6fb 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_glv_markets_data.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_glv_markets_data.sql @@ -11,8 +11,10 @@ SELECT CONCAT(ERC20_LT.symbol, '-', ERC20_ST.symbol) AS glv_market_name, 'GM' AS market_token_symbol, 18 AS market_token_decimals, + GCE.long_token, ERC20_LT.symbol AS long_token_symbol, ERC20_LT.decimals AS long_token_decimals, + GCE.short_token, ERC20_ST.symbol AS short_token_symbol, ERC20_ST.decimals AS short_token_decimals FROM {{ ref('gmx_v2_avalanche_c_glv_created') }} AS GCE diff --git a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_markets_data.sql b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_markets_data.sql index c8fda944fb9..61d4a394158 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_markets_data.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_markets_data.sql @@ -15,10 +15,13 @@ SELECT END AS market_name, 'GM' AS market_token_symbol, 18 AS market_token_decimals, + MCE.index_token, ERC20_IT.symbol AS index_token_symbol, ERC20_IT.decimals AS index_token_decimals, + MCE.long_token, ERC20_LT.symbol AS long_token_symbol, ERC20_LT.decimals AS long_token_decimals, + MCE.short_token, ERC20_ST.symbol AS short_token_symbol, ERC20_ST.decimals AS short_token_decimals FROM {{ ref('gmx_v2_avalanche_c_market_created') }} AS MCE diff --git a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_tokens_schema.yml b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_tokens_schema.yml index fed327c7b5f..279bb25881c 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_tokens_schema.yml +++ b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/avalanche_c/gmx_v2_avalanche_c_tokens_schema.yml @@ -109,10 +109,14 @@ models: description: The number of decimal places for the market token. data_tests: - not_null + - name: index_token + description: The contract address of the index token. - name: index_token_symbol description: The symbol representing the index token in the market. - name: index_token_decimals description: The number of decimal places for the index token used in the market. + - name: long_token + description: The contract address of the long token. - name: long_token_symbol description: The symbol representing the long token in the market. data_tests: @@ -121,6 +125,8 @@ models: description: The number of decimal places for the long token used in the market. data_tests: - not_null + - name: short_token + description: The contract address of the short token. - name: short_token_symbol description: The symbol representing the short token in the market. data_tests: @@ -153,10 +159,14 @@ models: description: The symbol of the market token. - name: market_token_decimals description: The decimal precision of the market token. + - name: long_token + description: The contract address of the long token. - name: long_token_symbol description: The symbol of the long token in the market. - name: long_token_decimals description: The decimal precision of the long token. + - name: short_token + description: The contract address of the short token. - name: short_token_symbol description: The symbol of the short token in the market. - name: short_token_decimals diff --git a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_glv_markets_data.sql b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_glv_markets_data.sql index 9759082c827..b0e0b15ba91 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_glv_markets_data.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_glv_markets_data.sql @@ -20,8 +20,10 @@ SELECT glv_market_name, market_token_symbol, market_token_decimals, + long_token, long_token_symbol, long_token_decimals, + short_token, short_token_symbol, short_token_decimals FROM {{ ref('gmx_v2_' ~ chain ~ '_glv_markets_data') }} diff --git a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_markets_data.sql b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_markets_data.sql index 0c0951fee6f..60a22b01370 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_markets_data.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_markets_data.sql @@ -20,10 +20,13 @@ SELECT market_name, market_token_symbol, market_token_decimals, + index_token, index_token_symbol, index_token_decimals, + long_token, long_token_symbol, long_token_decimals, + short_token, short_token_symbol, short_token_decimals FROM {{ ref('gmx_v2_' ~ chain ~ '_markets_data') }} diff --git a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_tokens_schema.yml b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_tokens_schema.yml index 9c1cce095c5..601a5f113d1 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_tokens_schema.yml +++ b/dbt_subprojects/daily_spellbook/models/_projects/gmx/tokens/gmx_v2_tokens_schema.yml @@ -110,10 +110,14 @@ models: description: The number of decimal places for the market token. data_tests: - not_null + - name: index_token + description: The contract address of the index token. - name: index_token_symbol description: The symbol representing the index token in the market. - name: index_token_decimals description: The number of decimal places for the index token used in the market. + - name: long_token + description: The contract address of the long token. - name: long_token_symbol description: The symbol representing the long token in the market. data_tests: @@ -122,6 +126,8 @@ models: description: The number of decimal places for the long token used in the market. data_tests: - not_null + - name: short_token + description: The contract address of the short token. - name: short_token_symbol description: The symbol representing the short token in the market. data_tests: @@ -155,10 +161,14 @@ models: description: The symbol of the market token. - name: market_token_decimals description: The decimal precision of the market token. + - name: long_token + description: The contract address of the long token. - name: long_token_symbol description: The symbol of the long token in the market. - name: long_token_decimals description: The decimal precision of the long token. + - name: short_token + description: The contract address of the short token. - name: short_token_symbol description: The symbol of the short token in the market. - name: short_token_decimals