-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into stablecoin_transfer_macro
- Loading branch information
Showing
140 changed files
with
812 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: DBT Solana sector run | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- solana/** | ||
- .github/workflows/solana.yml | ||
- .github/workflows/dbt_run.yml | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
dbt-run: | ||
uses: ./.github/workflows/dbt_run.yml | ||
with: | ||
project: 'solana' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
dex/models/_projects/uniswap/ethereum/uniswap_v2_ethereum_trades.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{ config( | ||
schema = 'uniswap_v2_ethereum', | ||
alias = 'trades', | ||
materialized = 'view' | ||
) | ||
}} | ||
|
||
|
||
SELECT | ||
dex.blockchain | ||
, dex.project | ||
, dex.version | ||
, dex.block_month | ||
, dex.block_date | ||
, dex.block_time | ||
, dex.block_number | ||
, dex.token_bought_symbol | ||
, dex.token_sold_symbol | ||
, dex.token_pair | ||
, dex.token_bought_amount | ||
, dex.token_sold_amount | ||
, dex.token_bought_amount_raw | ||
, dex.token_sold_amount_raw | ||
, dex.amount_usd | ||
, dex.token_bought_address | ||
, dex.token_sold_address | ||
, dex.taker | ||
, dex.maker | ||
, dex.project_contract_address | ||
, dex.tx_hash | ||
, dex.tx_from | ||
, dex.tx_to | ||
, dex.evt_index | ||
FROM | ||
{{ ref('dex_trades') }} as dex | ||
WHERE | ||
dex.project = 'uniswap' | ||
AND dex.version = '2' |
42 changes: 42 additions & 0 deletions
42
dex/models/_projects/uniswap/ethereum/uniswap_v3_ethereum_trades.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{ config( | ||
schema = 'uniswap_v3_ethereum', | ||
alias = 'trades', | ||
materialized = 'view' | ||
) | ||
}} | ||
|
||
|
||
SELECT | ||
dex.blockchain | ||
, dex.project | ||
, dex.version | ||
, dex.block_month | ||
, dex.block_date | ||
, dex.block_time | ||
, dex.block_number | ||
, dex.token_bought_symbol | ||
, dex.token_sold_symbol | ||
, dex.token_pair | ||
, dex.token_bought_amount | ||
, dex.token_sold_amount | ||
, dex.token_bought_amount_raw | ||
, dex.token_sold_amount_raw | ||
, dex.amount_usd | ||
, dex.token_bought_address | ||
, dex.token_sold_address | ||
, dex.taker | ||
, dex.maker | ||
, dex.project_contract_address | ||
, f.fee | ||
, dex.tx_hash | ||
, dex.tx_from | ||
, dex.tx_to | ||
, dex.evt_index | ||
FROM | ||
{{ ref('dex_trades') }} as dex | ||
INNER JOIN | ||
{{ source('uniswap_v3_ethereum', 'Factory_evt_PoolCreated') }} as f | ||
ON f.pool = dex.project_contract_address | ||
WHERE | ||
dex.project = 'uniswap' | ||
AND dex.version = '3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
dex/models/trades/avalanche_c/platforms/elk_finance_avalanche_c_base_trades.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{ | ||
config( | ||
schema = 'elk_finance_avalanche_c', | ||
alias = 'base_trades', | ||
materialized = 'incremental', | ||
file_format = 'delta', | ||
incremental_strategy = 'merge', | ||
unique_key = ['tx_hash', 'evt_index'], | ||
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')] | ||
) | ||
}} | ||
|
||
{{ | ||
uniswap_compatible_v2_trades( | ||
blockchain = 'avalanche_c', | ||
project = 'elk_finance', | ||
version = '1', | ||
Pair_evt_Swap = source('elk_finance_avalanche_c', 'ElkPair_evt_Swap'), | ||
Factory_evt_PairCreated = source('elk_finance_avalanche_c', 'ElkFactory_evt_PairCreated') | ||
) | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.