Skip to content

Commit

Permalink
Merge branch 'main' into dex-subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-dude committed Jun 14, 2024
2 parents 5071fd7 + ac97a0a commit d777e65
Show file tree
Hide file tree
Showing 27 changed files with 660 additions and 184 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'arbitrum' %}



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



{{
oneinch_project_calls_macro(
blockchain = blockchain
)
}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['blockchain', 'tx_hash', 'call_trace_address']
unique_key = ['blockchain', 'block_number', 'tx_hash', 'call_trace_address', 'call_trade_id']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'avalanche_c' %}



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



{{
oneinch_project_calls_macro(
blockchain = blockchain
)
}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['blockchain', 'tx_hash', 'call_trace_address']
unique_key = ['blockchain', 'block_number', 'tx_hash', 'call_trace_address', 'call_trade_id']
)
}}

Expand Down
24 changes: 24 additions & 0 deletions dex/models/_projects/oneinch/base/oneinch_base_project_calls.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'base' %}



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



{{
oneinch_project_calls_macro(
blockchain = blockchain
)
}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['blockchain', 'tx_hash', 'call_trace_address']
unique_key = ['blockchain', 'block_number', 'tx_hash', 'call_trace_address', 'call_trade_id']
)
}}

Expand Down
24 changes: 24 additions & 0 deletions dex/models/_projects/oneinch/bnb/oneinch_bnb_project_calls.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'bnb' %}



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



{{
oneinch_project_calls_macro(
blockchain = blockchain
)
}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['blockchain', 'tx_hash', 'call_trace_address']
unique_key = ['blockchain', 'block_number', 'tx_hash', 'call_trace_address', 'call_trade_id']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'ethereum' %}



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



{{
oneinch_project_calls_macro(
blockchain = blockchain
)
}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['blockchain', 'tx_hash', 'call_trace_address']
unique_key = ['blockchain', 'block_number', 'tx_hash', 'call_trace_address', 'call_trade_id']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'fantom' %}



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



{{
oneinch_project_calls_macro(
blockchain = blockchain
)
}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['blockchain', 'tx_hash', 'call_trace_address']
unique_key = ['blockchain', 'block_number', 'tx_hash', 'call_trace_address', 'call_trade_id']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% set blockchain = 'gnosis' %}



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



{{
oneinch_project_calls_macro(
blockchain = blockchain
)
}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
file_format = 'delta',
incremental_strategy = 'merge',
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
unique_key = ['blockchain', 'tx_hash', 'call_trace_address']
unique_key = ['blockchain', 'block_number', 'tx_hash', 'call_trace_address', 'call_trade_id']
)
}}

Expand Down
Loading

0 comments on commit d777e65

Please sign in to comment.