Skip to content

Commit

Permalink
push linea
Browse files Browse the repository at this point in the history
  • Loading branch information
grkhr committed Feb 11, 2025
1 parent 4b6790b commit addf9ab
Show file tree
Hide file tree
Showing 15 changed files with 425 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
},
"AggregationRouterV6": {
"version": "6",
"blockchains": ["ethereum", "bnb", "polygon", "arbitrum", "optimism", "avalanche_c", "gnosis", "fantom", "base", "zksync"],
"blockchains": ["ethereum", "bnb", "polygon", "arbitrum", "optimism", "avalanche_c", "gnosis", "fantom", "base", "zksync", "linea"],
"start": "2024-02-12",
"methods": {
"swap": dict(samples["swap"], src_token_amount="output_spentAmount"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
},
"AggregationRouterV6": {
"version": "4",
"blockchains": ["ethereum", "bnb", "polygon", "arbitrum", "avalanche_c", "gnosis", "optimism", "fantom", "base", "zksync"],
"blockchains": ["ethereum", "bnb", "polygon", "arbitrum", "avalanche_c", "gnosis", "optimism", "fantom", "base", "zksync", "linea"],
"start": "2024-02-12",
"methods": {
"fillOrder": samples["v4"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"zksync": "324",
"aurora": "1313161554",
"klaytn": "8217",
"linea": "59144",
},
"native_token_symbol": {
"ethereum": "'ETH'",
Expand All @@ -29,6 +30,7 @@
"zksync": "'ETH'",
"aurora": "'ETH'",
"klaytn": "'ETH'",
"linea": "'ETH'",
},
"wrapped_native_token_address": {
"ethereum": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
Expand All @@ -43,6 +45,7 @@
"zksync": "0x5aea5775959fbc2557cc8789bc1bf90a239d9a91",
"aurora": "0xc9bdeed33cd01541e1eed10f90519d2c06fe3feb",
"klaytn": "0x",
"linea": "0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f",
},
"explorer_link": {
"ethereum": "'https://etherscan.io'",
Expand All @@ -57,6 +60,7 @@
"zksync": "'https://explorer.zksync.io'",
"aurora": "'https://explorer.aurora.dev'",
"klaytn": "'https://klaytnscope.com'",
"linea": "'https://lineascan.build/'",
},
"first_deploy_at": {
"ethereum": "timestamp '2019-06-03 20:11'",
Expand All @@ -71,6 +75,7 @@
"zksync": "timestamp '2023-04-12 10:16'",
"aurora": "timestamp '2022-05-25 16:14'",
"klaytn": "timestamp '2022-08-02 09:39'",
"linea": "timestamp '2025-02-18 00:00'",
},
"fusion_settlement_addresses": {
"ethereum": "array[0xa88800cd213da5ae406ce248380802bd53b47647, 0xfb2809a5314473e1165f6b58018e20ed8f07b840]",
Expand All @@ -85,6 +90,7 @@
"zksync": "array[0x11de482747d1b39e599f120d526af512dd1a9326, 0x0302b42c86540e636e438395c6344ed88c55b70e]",
"aurora": "array[0xd41b24bba51fac0e4827b6f94c0d6ddeb183cd64, 0xfb2809a5314473e1165f6b58018e20ed8f07b840]",
"klaytn": "array[0xa218543cc21ee9388fa1e509f950fd127ca82155, 0xfb2809a5314473e1165f6b58018e20ed8f07b840]",
"linea": "array[]",
},
"escrow_factory_addresses": {
"ethereum": "array[0xa7bcb4eac8964306f9e3764f67db6a7af6ddf99a]",
Expand All @@ -99,6 +105,7 @@
"zksync": "array[0x584aeab186d81dbb52a8a14820c573480c3d4773]",
"aurora": "array[]",
"klaytn": "array[]",
"linea": "array[]",
},
}
%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- for CI purposes to manage from one place

{% macro oneinch_easy_date() %}
{{ return("'2019-06-01'") }} -- "'2019-06-01'"
{{ return("'2025-02-10'") }} -- "'2019-06-01'"
{% endmacro %}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
'fantom',
'base',
'zksync',
'linea',
]) }}
{% endmacro %}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'zksync',
'aurora',
'klaytn',
'linea',
]
%}

Expand Down
30 changes: 15 additions & 15 deletions dbt_subprojects/dex/models/_projects/oneinch/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
models:
- name: oneinch_lop
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down Expand Up @@ -74,7 +74,7 @@ models:

- name: oneinch_ar
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down Expand Up @@ -133,7 +133,7 @@ models:

- name: oneinch_blockchains
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand All @@ -155,7 +155,7 @@ models:

- name: oneinch_calls
meta:
blockchain: ['ethereum', 'optimism', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'bnb', 'fantom', 'base', 'zksync']
blockchain: ['ethereum', 'optimism', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'bnb', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down Expand Up @@ -218,7 +218,7 @@ models:

- name: oneinch_parsed_transfers_from_calls
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'celo', 'scroll']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand All @@ -239,7 +239,7 @@ models:

- name: oneinch_call_transfers
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down Expand Up @@ -298,7 +298,7 @@ models:

- name: oneinch_swaps
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down Expand Up @@ -372,7 +372,7 @@ models:

- name: oneinch_lop_own_trades
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down Expand Up @@ -419,7 +419,7 @@ models:

- name: oneinch_ar_trades
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down Expand Up @@ -466,7 +466,7 @@ models:

- name: oneinch_fusion_resolvers
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand All @@ -489,7 +489,7 @@ models:

- name: oneinch_fusion_executors
meta:
blockchain: ['ethereum', 'optimism', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'bnb', 'fantom']
blockchain: ['ethereum', 'optimism', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'bnb', 'fantom', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down Expand Up @@ -518,7 +518,7 @@ models:

- name: oneinch_fusion_farms
meta:
blockchain: ['ethereum', 'optimism', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'bnb', 'fantom', 'base']
blockchain: ['ethereum', 'optimism', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'bnb', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down Expand Up @@ -550,7 +550,7 @@ models:

- name: oneinch_fusion_accounts
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand All @@ -574,7 +574,7 @@ models:

- name: oneinch_escrow_results
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down Expand Up @@ -615,7 +615,7 @@ models:

- name: oneinch_escrow_dst_creations
meta:
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base']
blockchain: ['ethereum', 'bnb', 'polygon', 'arbitrum', 'avalanche_c', 'gnosis', 'optimism', 'fantom', 'base', 'zksync', 'linea']
sector: oneinch
contributors: ['max-morrow', 'grkhr']
config:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'linea' %}



{{
config(
schema = 'oneinch_' + blockchain,
alias = 'ar',
partition_by = ['block_month'],
materialized = 'incremental',
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['blockchain', 'tx_hash', 'call_trace_address']
)
}}



{{
oneinch_ar_macro(
blockchain = blockchain
)
}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'linea' %}



{{
config(
schema = 'oneinch_' + blockchain,
alias = 'ar_raw_traces',
partition_by = ['block_date'],
materialized = 'incremental',
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['tx_hash', 'trace_address', 'block_date']
)
}}



{{
oneinch_ar_raw_traces_macro(
blockchain = blockchain
)
}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'linea' %}



{{
config(
schema = 'oneinch_' + blockchain,
alias = 'call_transfers',
partition_by = ['block_month'],
materialized = 'incremental',
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['tx_hash', 'call_trace_address', 'transfer_blockchain', 'transfer_tx_hash', 'transfer_trace_address', 'transfer_native'],
)
}}



{{
oneinch_call_transfers_macro(
blockchain = blockchain
)
}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% set blockchain = 'linea' %}



{{
config(
schema = 'oneinch_' + blockchain,
alias = 'escrow_results',
partition_by = ['block_month'],
materialized = 'incremental',
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['blockchain', 'tx_hash', 'trace_address']
)
}}



{{ oneinch_escrow_results_macro(blockchain) }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% set blockchain = 'linea' %}



{{
config(
schema = 'oneinch_' + blockchain,
alias = 'lop',
partition_by = ['block_month'],
materialized = 'incremental',
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['blockchain', 'tx_hash', 'call_trace_address']
)
}}



{{ oneinch_lop_macro(blockchain) }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'linea' %}



{{
config(
schema = 'oneinch_' + blockchain,
alias = 'lop_raw_traces',
partition_by = ['block_date'],
materialized = 'incremental',
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['tx_hash', 'trace_address', 'block_date']
)
}}



{{
oneinch_lop_raw_traces_macro(
blockchain = blockchain
)
}}
Loading

0 comments on commit addf9ab

Please sign in to comment.