Skip to content

Commit

Permalink
feat: artifacts_by_address model (#1915)
Browse files Browse the repository at this point in the history
* feat: artifacts_by_address model

* fix: remove ethereum bots model

* fix: linting error
  • Loading branch information
ccerv1 authored Aug 5, 2024
1 parent 554f13a commit ff6e3b8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
with addresses as (
select distinct
UPPER(chain_name) as artifact_namespace,
LOWER(address) as artifact_name
from {{ ref('int_first_time_addresses') }}
)

select
{{ oso_id("artifact_namespace", "artifact_name") }} as artifact_id,
artifact_namespace,
artifact_name
from addresses

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@
incremental_strategy="insert_overwrite"
)
}}

{% set unique_key_col = config.get('unique_id') %}

{{ first_time_addresses("optimism") }}

{% if is_incremental() %}
where
{{ unique_key_col }} not in (select {{ unique_key_col }} from {{ this }})
{% endif %}

0 comments on commit ff6e3b8

Please sign in to comment.