Skip to content

Commit

Permalink
Added token contracts in 2 events
Browse files Browse the repository at this point in the history
  • Loading branch information
AIDataMaster committed Dec 16, 2024
1 parent 9de05d1 commit a80666d
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a80666d

Please sign in to comment.