Skip to content

Commit

Permalink
Revert "Evm"
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuhnke authored May 23, 2023
1 parent 43cc0bb commit e999abf
Show file tree
Hide file tree
Showing 109 changed files with 55 additions and 3,334 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dbt_run_dev_refresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ run-name: dbt_run_dev_refresh

on:
workflow_dispatch:
schedule:
# Runs "at 9:00 UTC" (see https://crontab.guru)
- cron: '0 9 * * *'
# schedule:
# # Runs "at 9:00 UTC" (see https://crontab.guru)
# - cron: '0 9 * * *'

env:
USE_VARS: "${{ vars.USE_VARS }}"
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/dbt_run_incremental.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/dbt_run_streamline_history.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/dbt_run_streamline_realtime.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/dbt_test.yml

This file was deleted.

11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@

# Please find and replace all instances of `xyz` with your project name.

## Profile Set Up

#### Use the following within profiles.yml
----

```yml
evmos:
xyz:
target: dev
outputs:
dev:
Expand All @@ -14,7 +17,7 @@ evmos:
user: <USERNAME>
password: <PASSWORD>
region: <REGION>
database: evmos_DEV
database: xyz_DEV
warehouse: <WAREHOUSE>
schema: silver
threads: 4
Expand Down Expand Up @@ -70,5 +73,5 @@ dbt run --var '{"UPDATE_SNOWFLAKE_TAGS":True}' -s models/core/core__fact_swaps.s
```
select *
from table(evmos.information_schema.tag_references('evmos.core.fact_blocks', 'table'));
```
from table(xyz.information_schema.tag_references('xyz.core.fact_blocks', 'table'));
```
47 changes: 0 additions & 47 deletions analyses/sample_tendermint_rpc_calls.sql

This file was deleted.

11 changes: 3 additions & 8 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Name your project! Project names should contain only lowercase characters
# and underscores. A good package name should reflect your organization's
# name or the intended use of these models
name: "evmos_models"
name: "xyz_models"
version: "1.0.0"
config-version: 2

require-dbt-version: ">=1.4.0"

# This setting configures which "profile" dbt uses for this project.
profile: "evmos"
profile: "xyz"

# These configurations specify where dbt should look for different types of files.
# The `model-paths` config, for example, states that models in this project can be
Expand Down Expand Up @@ -41,12 +41,7 @@ models:

vars:
"dbt_date:time_zone": GMT
STREAMLINE_INVOKE_STREAMS: False
STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES: False
UPDATE_UDFS_AND_SPS: False
STREAMLINE_RUN_HISTORY: False
UPDATE_SNOWFLAKE_TAGS: True
WAIT: 0
"UPDATE_SNOWFLAKE_TAGS": TRUE

tests:
+store_failures: true # all tests
Expand Down
2 changes: 1 addition & 1 deletion macros/create_sps.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% macro create_sps() %}
{% if target.database == 'EVMOS' %}
{% if target.database == 'xyz' %}
CREATE SCHEMA IF NOT EXISTS _internal;
{{ sp_create_prod_clone('_internal') }};
{% endif %}
Expand Down
7 changes: 0 additions & 7 deletions macros/create_udfs.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
{% macro create_udfs() %}
{{ create_udtf_get_base_table(
schema = "streamline"
) }}
{{ create_udf_get_chainhead() }}
{{ create_udf_json_rpc() }}
{{ create_udf_get_tendermint_transactions() }}
{{ create_udf_get_tendermint_validators() }}
{% endmacro %}
2 changes: 1 addition & 1 deletion macros/run_sp_create_prod_clone.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro run_sp_create_prod_clone() %}
{% set clone_query %}
call evmos._internal.create_prod_clone('evmos', 'evmos_dev', 'internal_dev');
call xyz._internal.create_prod_clone('xyz', 'xyz_dev', 'internal_dev');
{% endset %}

{% do run_query(clone_query) %}
Expand Down
11 changes: 0 additions & 11 deletions macros/streamline/api_integrations.sql

This file was deleted.

24 changes: 0 additions & 24 deletions macros/streamline/get_base_table_udtf.sql

This file was deleted.

Loading

0 comments on commit e999abf

Please sign in to comment.