Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

. #2

Merged
merged 127 commits into from
Jun 27, 2023
Merged

. #2

merged 127 commits into from
Jun 27, 2023

Conversation

web3lyt
Copy link
Collaborator

@web3lyt web3lyt commented Jun 27, 2023

Brief comments on the purpose of your changes:

For Dune Engine V2

I've checked that:

General checks:

  • I tested the query on dune.com after compiling the model with dbt compile (compiled queries are written to the target directory)
  • I used "refs" to reference other models in this repo and "sources" to reference raw or decoded tables
  • if adding a new model, I added a test
  • the filename is unique and ends with .sql
  • each sql file is a select statement and has only one view, table or function defined
  • column names are lowercase_snake_cased
  • if adding a new model, I edited the dbt project YAML file with new directory path for both models and seeds (if applicable)
  • if wanting to expose a model in the UI (Dune data explorer), I added a post-hook in the JINJA config to add metadata (blockchains, sector/project, name and contributor Dune usernames)

Pricing checks:

  • coin_id represents the ID of the coin on coinpaprika.com
  • all the coins are active on coinpaprika.com (please remove inactive ones)

Join logic:

  • if joining to base table (i.e. ethereum transactions or traces), I looked to make it an inner join if possible

Incremental logic:

  • I used is_incremental & not is_incremental jinja block filters on both base tables and decoded tables
    • where block_time >= date_trunc("day", now() - interval '1 week')
  • if joining to base table (i.e. ethereum transactions or traces), I applied join condition where block_time >= date_trunc("day", now() - interval '1 week')
  • if joining to prices view, I applied join condition where minute >= date_trunc("day", now() - interval '1 week')

MSilb7 and others added 30 commits June 3, 2023 07:32
* fix symbol dupe

* fix generated dupe

* rm changes

* rm changes

* filter out bad event

* add decimal

* fix
* Init opensea_arbitrum tables

* fix bug

* fix bug

* fix bug

* modify seed

* moved source table definitions
* add element nft trades polygon

* fi schema

* add uniqueness test

* test dupes

---------

Co-authored-by: 0xRob <0xRobin5@gmail.com>
Co-authored-by: 0xRob <83790096+0xRobin@users.noreply.github.com>
* add uni, bal, dydx

* fix

* fix

* fix

* fix versioning

* Update aave_v3_arb_flashloans to incremental view

* Update aave other flashloans spells

* Add missing schema and incremental filters

* Update config blocks to view

* Add missing schema and incremental filters for uniswap_flashloans

* Dune SQL modification trial

* make incremental

* fix and add link to ported DuneSQL query for easier migration when needed

* Change back to spark sql with incremental filter

* Add Flashloans to NFT Wash Filter

* add block_number

* undo

* fix

* fix

* fix

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: 0xRob <83790096+0xRobin@users.noreply.github.com>
* Add Airswap v4 ERC20 swaps to trades

* Remove 'prod_exclude' for Airswap trades

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
* Change product type names to match dune v2 naming and style.

* Capitialise the first letter of the token product name value

* Update seed with new product type name values.

* Capitialise eth slashing and sherlock product type name values

* Add accepted values test

---------

Co-authored-by: Guy Howlett <guyhowlett@Lauras-MacBook-Pro-2.local>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
adding winr in prices.usd

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
* Update tokens_arbitrum_erc20.sql

adding winr into tokens.erc20

* remove additional comma
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
* specifiy maker

* updated working test data to include maker

* update: v2 events

* semantics

* corrected v2 queries

* clean

* always a comma

* correct scientific notation

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
* add unshETH token in arbitrum model to prices spell

* Lowercase

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
* enable nft_mints again

* adapt nft mints to only use platforms that implement evt_type Mint
* Revert "Revert "Create `airdrop.claims` with 38 airdrops (#2979)" (#3418)"

This reverts commit 478ef1d.

* added schema to all configs

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
Eurocoin (EUC) is an open-sourced, decentralized digital cryptocurrency that functions on a community-based standard.

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
* Update op_token_distributions_optimism_project_wallets.sql

Add Kwenta 'MultipleMerkleDistributor' contract

* Lowercase

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
* fix lido_liquidity_optimism_kyberswap_pools

* small fix

* add jinja on source/ref

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
* add new nfts

* remove token standards

---------

Co-authored-by: chuxinh <chuxin@optimism.io>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
* add staking entities

* fix

* fix
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
* first commit

* frax_finance_bribe_table_bnb

* Clean up sources

* Reformat

* Changed the code into spark, added a new source and some new fields

* Fix bracket

* changing left joins to inner join on the logs tables

* removing space between accolades

* fixing typo

* Recover pipfile

* Update models/frax_finance/bnb/frax_finance_bnb_bribes.sql

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* fixed the posthook

* fixing syntax for interval

* fixing to_date arguments

* changing materialization into a table

* make table, formatting, lowercase_snake_columns

---------

Co-authored-by: Herotat1 <zarifpayam@outlook.fr>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
Co-authored-by: jeff-dude <jeff@dune.xyz>
* add spartacus exchange pools to dex pools

* Reformat

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
* add likeness checks

* keep name checks exact

* paren

* paren

* clarify

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
* add DODO to dex_aggregator

* add dodo_aggreagtor yml

* fix

* fix

* fix

* Cast trace_address to array<bigint>

* Add severity for dex range test

* Change test names

* update dodo pool&aggregator structure

* fix

* fix

* fix dodo_pools_trades

* Comment severity

* Revert "Comment severity"

This reverts commit 31de717.

* Add not_accepted_values test for dodo_trades

* Add test

* Fix test

* Fix test

* Refresh dodo_trades

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
hildobby and others added 24 commits June 20, 2023 16:40
Some typos in the rubicon model YAML caused partial_parse.msgpack
files to be written with None as a map key. By default, msgpack
does not allow None as map keys when deserializing, triggering an
exception, meaning that the partial_parse.msgpack file would be
considered invalid. This mean that we would reparse the entire
project on every dbt command.

The root cause is probably a bug in DBT. Either is should be
impossible to create partial_parse.msgpack keys with None as
a map key, or they should use the strict_map_key=False option
to accept such files.

Before:
```
dbt clean
dbt parse
time dbt parse

real	0m35.185s
user	0m34.702s
sys	0m1.715s
```

After:
```
dbt clean
dbt parse
time dbt parse

real	0m3.263s
user	0m2.833s
sys	0m1.504s
```

The typo was introduced in 6993d5e
* gas_avalanche_c_fees_traces

* update incremental interval

---------

Co-authored-by: hildobby <h.moulie@gmail.com>
* gas_fantom_fees_traces

* increase ci timeout

* revert ci timeout extension

* update incremental interval

---------

Co-authored-by: hildobby <h.moulie@gmail.com>
* gas_gnosis_fees_traces

* update incremental interval

* fix where clause

---------

Co-authored-by: hildobby <h.moulie@gmail.com>
* add erc4337 model

* erc4337 dbt_project

* fix arbitrum test

* fix erc4337 test

* fix erc4337 userop

* fix gnosis userop

* fix erc4337 test error

* fix erc4337 test error

* fix erc4337 from error

* fix erc4337 block_time error

* replace gas_cost with fee

* replace fix arbitrum spell error

* Draft erc4337_userops_trades macro

* Draft erc4337_userops_base_trades

* Implement base erc4337 arbitrum userops models

* Draft userops_enrichments

* Add schema for erc4337_arbitrum_userops_beta

* Add endmacro

* Remove extra comma

* Remove brackets

* Fix var name

* Add missing comma

* move to sector

* move to sector

* fix case error

* fix case error

* fix case error

* refactor to sector

* add sector

* add sector

* remove schema from dbt_project

* Finalize erc4337 file structures

* Delete duped sources

* Delete duped sources

* Introduce aggregated seed and check_seed tests

* Remove _sector/erc4337

* Fix typo

* Refactor tests

* fix the seed file

* fix the seed file missing data

* fix ethereum schema

* Fix alias

* Revert "remove schema from dbt_project"

This reverts commit 5d9e291.

* Fix alias

* refact erc4337 to account_abstraction_erc4337

* add account_abstraction to all erc4337 file

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
* Update balancer_v2_ethereum_trades.sql

Update balancer_v2 trades Spell to use `bpt_prices` to formulate the `amount_usd` when necessary.

* Update balancer_v2_ethereum_trades.sql

* Create balancer_v2_polygon_trades.sql

* Update balancer_polygon_trades.sql

Changed this to match Ethereum version of the Spell.

* Create balancer_v2_arbitrum_trades.sql

Creae/update balancer_v2 trades Spell to use `bpt_prices` to formulate the `amount_usd` when necessary.

* Update balancer_v2_arbitrum_trades.sql

* Update balancer_arbitrum_trades.sql

* Update balancer_polygon_trades.sql

* Create balancer_v2_gnosis_trades.sql

Update balancer_v2 trades Spell to use `bpt_prices` to formulate the `amount_usd` when necessary.

* Update balancer_v2_gnosis_trades.sql

* Update balancer_gnosis_trades.sql

* Create balancer_v2_optimism_trades.sql

Update balancer_v2 trades Spell to use `bpt_prices` to formulate the `amount_usd` when necessary.

* Update balancer_optimism_trades.sql

* Update balancer_v2_ethereum_trades.sql

* Update balancer_v2_polygon_trades.sql

* Update balancer_v2_arbitrum_trades.sql

* Update balancer_v2_gnosis_trades.sql

* Update balancer_v2_optimism_trades.sql

* Update balancer_ethereum_schema.yml

* Update balancer_arbitrum_schema.yml

Add in `balancer_v2_arbitrum_trades`.

* Update balancer_gnosis_schema.yml

* Update balancer_optimism_schema.yml

* Update balancer_polygon_schema.yml

* Update balancer_ethereum_schema.yml

* Update balancer_ethereum_schema.yml

* Update balancer_trades.sql

* Update balancer_ethereum_schema.yml

* Update balancer_v2_ethereum_trades.sql

Change unique key due to it failing a test.

* Update balancer_ethereum_schema.yml

* Update balancer_ethereum_schema.yml

* Update balancer_ethereum_schema.yml

Changed the unique columns test from `block_date` to `block_time` for testing purposes.

* Update balancer_ethereum_schema.yml

Reverted to previous unique combination of columns

* Update balancer_v2_ethereum_trades.sql

Added in edge case swap fee detection.

* Update balancer_v2_ethereum_trades.sql

Fixed indentation.

* Update balancer_v1_ethereum_trades.sql

Changing `token_bought_amount_raw` and `token_sold_amount_raw` to not be decimal(38) type so they are compatible with the aggregate spell.

* Update balancer_v1_ethereum_trades.sql

* Update balancer_schema.yml

Added Gnosis to Blockchain field.

* Update balancer_v2_arbitrum_trades.sql

* Update balancer_v2_gnosis_trades.sql

* Update balancer_v2_optimism_trades.sql

* Update balancer_v2_optimism_trades.sql

* Update balancer_v2_polygon_trades.sql

* Update balancer_v2_polygon_trades.sql

* Update balancer_v2_optimism_trades.sql

* Update balancer_v2_polygon_trades.sql

* Update balancer_v1_ethereum_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v2_ethereum_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v2_arbitrum_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v2_gnosis_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v2_optimism_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v2_polygon_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v1_ethereum_trades.sql

* Update balancer_v2_ethereum_trades.sql

Updated query to grab the closest not null bpt price to the time of the trade.

* Update balancer_v2_arbitrum_trades.sql

Updated query to grab the closest not null bpt price to the time of the trade.

* Update balancer_v2_gnosis_trades.sql

Updated query to grab the closest not null bpt price to the time of the trade.

* Update balancer_v2_optimism_trades.sql

Updated query to grab the closest not null bpt price to the time of the trade.

* Update balancer_v2_polygon_trades.sql

Updated query to grab the closest not null bpt price to the time of the trade.

* Update balancer_v2_polygon_trades.sql

Comment out test changes.

* Update balancer_v2_optimism_trades.sql

Comment out test changes.

* Update balancer_v2_gnosis_trades.sql

Comment out test changes.

* Update balancer_v2_arbitrum_trades.sql

Comment out test changes.

* Update balancer_v2_ethereum_trades.sql

Comment out test changes.

* Update balancer_v2_ethereum_trades.sql

* Update balancer_v2_polygon_trades.sql

Updated jinja syntax.

* Update balancer_v2_optimism_trades.sql

Updated jinja syntax.

* Update balancer_v2_gnosis_trades.sql

Updated jinja syntax.

* Update balancer_v2_ethereum_trades.sql

Updated jinja syntax.

* Update balancer_v2_arbitrum_trades.sql

Updated jinja syntax.

* Update balancer_v2_gnosis_trades.sql

Removed unnecessary code.

* Update balancer_v2_optimism_trades.sql

Removed unnecessary code.

* Update balancer_v2_polygon_trades.sql

Removed unnecessary code.

* Update balancer_v2_ethereum_trades.sql

Removed unnecessary code.

* Update balancer_v2_arbitrum_trades.sql

Removed unnecessary code.

---------

Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
* feat: add new arbitrum pools

* feat: fix previous commit

---------

Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
* add cross chain trade model for hashflow bnb

* add crosschain models for ethereum, bnb, and avalanche_c. Update sources.yml files for each, correcting description on bnb and avalanche for Pool_evt_LzTrade tables, and adding to hashflow_ethereum_sources.yml. Add aggregated Hashflow crosschain models encompassing all chains in parent directory, update hashflow_trades_schema.yml.

* update if is_incremental() filter per Dune's requirements

* fix incremental

* fix ambigious reference

* Fix alias

* list out columns on hashflow_crosschain_trades.sql model

* lowercase blockchain names

* fix source_chain name for avalanche, add join on blockchain to erc20b and source chain

---------

Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
* Adds freeze information to read me

* typo fix

* Adds tokens.erc20 and tokens.nft to freeze info on readme

* Adds freeze info to pr template
* feat: add new arbitrum pools

* feat: fix previous commit

* add erc4337 userops model (#3524)

* add erc4337 model

* erc4337 dbt_project

* fix arbitrum test

* fix erc4337 test

* fix erc4337 userop

* fix gnosis userop

* fix erc4337 test error

* fix erc4337 test error

* fix erc4337 from error

* fix erc4337 block_time error

* replace gas_cost with fee

* replace fix arbitrum spell error

* Draft erc4337_userops_trades macro

* Draft erc4337_userops_base_trades

* Implement base erc4337 arbitrum userops models

* Draft userops_enrichments

* Add schema for erc4337_arbitrum_userops_beta

* Add endmacro

* Remove extra comma

* Remove brackets

* Fix var name

* Add missing comma

* move to sector

* move to sector

* fix case error

* fix case error

* fix case error

* refactor to sector

* add sector

* add sector

* remove schema from dbt_project

* Finalize erc4337 file structures

* Delete duped sources

* Delete duped sources

* Introduce aggregated seed and check_seed tests

* Remove _sector/erc4337

* Fix typo

* Refactor tests

* fix the seed file

* fix the seed file missing data

* fix ethereum schema

* Fix alias

* Revert "remove schema from dbt_project"

This reverts commit 5d9e291.

* Fix alias

* refact erc4337 to account_abstraction_erc4337

* add account_abstraction to all erc4337 file

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* Important updates to Balancer Trades to improve `dex.trades` (#3530)

* Update balancer_v2_ethereum_trades.sql

Update balancer_v2 trades Spell to use `bpt_prices` to formulate the `amount_usd` when necessary.

* Update balancer_v2_ethereum_trades.sql

* Create balancer_v2_polygon_trades.sql

* Update balancer_polygon_trades.sql

Changed this to match Ethereum version of the Spell.

* Create balancer_v2_arbitrum_trades.sql

Creae/update balancer_v2 trades Spell to use `bpt_prices` to formulate the `amount_usd` when necessary.

* Update balancer_v2_arbitrum_trades.sql

* Update balancer_arbitrum_trades.sql

* Update balancer_polygon_trades.sql

* Create balancer_v2_gnosis_trades.sql

Update balancer_v2 trades Spell to use `bpt_prices` to formulate the `amount_usd` when necessary.

* Update balancer_v2_gnosis_trades.sql

* Update balancer_gnosis_trades.sql

* Create balancer_v2_optimism_trades.sql

Update balancer_v2 trades Spell to use `bpt_prices` to formulate the `amount_usd` when necessary.

* Update balancer_optimism_trades.sql

* Update balancer_v2_ethereum_trades.sql

* Update balancer_v2_polygon_trades.sql

* Update balancer_v2_arbitrum_trades.sql

* Update balancer_v2_gnosis_trades.sql

* Update balancer_v2_optimism_trades.sql

* Update balancer_ethereum_schema.yml

* Update balancer_arbitrum_schema.yml

Add in `balancer_v2_arbitrum_trades`.

* Update balancer_gnosis_schema.yml

* Update balancer_optimism_schema.yml

* Update balancer_polygon_schema.yml

* Update balancer_ethereum_schema.yml

* Update balancer_ethereum_schema.yml

* Update balancer_trades.sql

* Update balancer_ethereum_schema.yml

* Update balancer_v2_ethereum_trades.sql

Change unique key due to it failing a test.

* Update balancer_ethereum_schema.yml

* Update balancer_ethereum_schema.yml

* Update balancer_ethereum_schema.yml

Changed the unique columns test from `block_date` to `block_time` for testing purposes.

* Update balancer_ethereum_schema.yml

Reverted to previous unique combination of columns

* Update balancer_v2_ethereum_trades.sql

Added in edge case swap fee detection.

* Update balancer_v2_ethereum_trades.sql

Fixed indentation.

* Update balancer_v1_ethereum_trades.sql

Changing `token_bought_amount_raw` and `token_sold_amount_raw` to not be decimal(38) type so they are compatible with the aggregate spell.

* Update balancer_v1_ethereum_trades.sql

* Update balancer_schema.yml

Added Gnosis to Blockchain field.

* Update balancer_v2_arbitrum_trades.sql

* Update balancer_v2_gnosis_trades.sql

* Update balancer_v2_optimism_trades.sql

* Update balancer_v2_optimism_trades.sql

* Update balancer_v2_polygon_trades.sql

* Update balancer_v2_polygon_trades.sql

* Update balancer_v2_optimism_trades.sql

* Update balancer_v2_polygon_trades.sql

* Update balancer_v1_ethereum_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v2_ethereum_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v2_arbitrum_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v2_gnosis_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v2_optimism_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v2_polygon_trades.sql

Casting token bought and sold amount raw to decimal 38.

* Update balancer_v1_ethereum_trades.sql

* Update balancer_v2_ethereum_trades.sql

Updated query to grab the closest not null bpt price to the time of the trade.

* Update balancer_v2_arbitrum_trades.sql

Updated query to grab the closest not null bpt price to the time of the trade.

* Update balancer_v2_gnosis_trades.sql

Updated query to grab the closest not null bpt price to the time of the trade.

* Update balancer_v2_optimism_trades.sql

Updated query to grab the closest not null bpt price to the time of the trade.

* Update balancer_v2_polygon_trades.sql

Updated query to grab the closest not null bpt price to the time of the trade.

* Update balancer_v2_polygon_trades.sql

Comment out test changes.

* Update balancer_v2_optimism_trades.sql

Comment out test changes.

* Update balancer_v2_gnosis_trades.sql

Comment out test changes.

* Update balancer_v2_arbitrum_trades.sql

Comment out test changes.

* Update balancer_v2_ethereum_trades.sql

Comment out test changes.

* Update balancer_v2_ethereum_trades.sql

* Update balancer_v2_polygon_trades.sql

Updated jinja syntax.

* Update balancer_v2_optimism_trades.sql

Updated jinja syntax.

* Update balancer_v2_gnosis_trades.sql

Updated jinja syntax.

* Update balancer_v2_ethereum_trades.sql

Updated jinja syntax.

* Update balancer_v2_arbitrum_trades.sql

Updated jinja syntax.

* Update balancer_v2_gnosis_trades.sql

Removed unnecessary code.

* Update balancer_v2_optimism_trades.sql

Removed unnecessary code.

* Update balancer_v2_polygon_trades.sql

Removed unnecessary code.

* Update balancer_v2_ethereum_trades.sql

Removed unnecessary code.

* Update balancer_v2_arbitrum_trades.sql

Removed unnecessary code.

---------

Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>

* lido liquidity velodrome (#3578)

* Hashflow cross chain trades (#3397)

* add cross chain trade model for hashflow bnb

* add crosschain models for ethereum, bnb, and avalanche_c. Update sources.yml files for each, correcting description on bnb and avalanche for Pool_evt_LzTrade tables, and adding to hashflow_ethereum_sources.yml. Add aggregated Hashflow crosschain models encompassing all chains in parent directory, update hashflow_trades_schema.yml.

* update if is_incremental() filter per Dune's requirements

* fix incremental

* fix ambigious reference

* Fix alias

* list out columns on hashflow_crosschain_trades.sql model

* lowercase blockchain names

* fix source_chain name for avalanche, add join on blockchain to erc20b and source chain

---------

Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* exclude failing model (#3585)

* Adds freeze information to read me (#3586)

* Adds freeze information to read me

* typo fix

* Adds tokens.erc20 and tokens.nft to freeze info on readme

* Adds freeze info to pr template

* add enso solver (#3587)

* fix flash loan filter & optimize other filters runtime (#3588)

* update: apt pool

---------

Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
Co-authored-by: Julyan Wang <96873065+0xbitfly@users.noreply.github.com>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: thetroyharris <127905654+thetroyharris@users.noreply.github.com>
Co-authored-by: ppclunghe <90045511+ppclunghe@users.noreply.github.com>
Co-authored-by: Broderick Bonelli <79765357+BroderickBonelli@users.noreply.github.com>
Co-authored-by: Alex Courouble <56831527+couralex6@users.noreply.github.com>
Co-authored-by: Haris Angelidakis <64154020+harisang@users.noreply.github.com>
Co-authored-by: hildobby <h.moulie@gmail.com>
* Update balancer_v2_polygon_trades.sql

Changed `is_incremental ()` to `is_incremental()`.

* Update balancer_v2_optimism_trades.sql

Changed `is_incremental ()` to `is_incremental()`.

* Update balancer_v2_gnosis_trades.sql

Changed `is_incremental ()` to `is_incremental()`.

* Update balancer_v2_ethereum_trades.sql

Changed `is_incremental ()` to `is_incremental()`.

* Update balancer_v2_arbitrum_trades.sql

Changed `is_incremental ()` to `is_incremental()`.

* Update balancer_v2_arbitrum_trades.sql

Removed problem incremental syntax.

* Update balancer_v2_ethereum_trades.sql

Removed problem incremental syntax.

* Update balancer_v2_gnosis_trades.sql

Removed problem incremental syntax.

* Update balancer_v2_optimism_trades.sql

Removed problem incremental syntax.

* Update balancer_v2_polygon_trades.sql

Removed problem incremental syntax.
* lido liquidity balancer polygon and fixes

* fix unique key

* fix

* fix velodrome

* transformation from incremental to table

* polygon fix

* polygon pools fix

* transform to tables

* fix kyber arb

* kyber optimism pool fix

* kyber pools fix

* curve steth pool
* test lido liquidity model

* dates incremental fix

* small fix

* fix 2

* fix a table model

* fix a table model 1

* small fix
* add fields sql

* schema

* adds

* init

* fix case when

* substring

* length

* alias

* group

* field

* created

* simplify non-deterministic

* typo

* cols

* add col

* group num

* rm null creators

* alias

* add standard

* group

* group

* group

* unions

* uni

* schema

* schema

* union

* groups

* add nond

* add code deploy rank

* groups

* group

* no dupe

* rm dupes

* handle remap

* repush

* whoopsy

* group

* null

* comment

* alias

* add block to selfdestr

* bn

* grp

* created

* add eoa column

* created

* alias

* alias

* rerun

* rerun

* rerun

* runtime mods

* lol missed an =

* rename deterministic

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
* fix source alias spacing

* fix characters
@web3lyt web3lyt merged commit 319b9a3 into Steakhouse-Financial:newbranch Jun 27, 2023
web3lyt pushed a commit that referenced this pull request Sep 1, 2023
…tics#4031)

* migrate gmx perpetual trades

* rewrite

* revert changes to legacy files

* trigger seed

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff <102681548+jeff-dude@users.noreply.github.com>
web3lyt pushed a commit that referenced this pull request Sep 1, 2023
* Sec (#2)

* Balancer Liquidity Migration - Arbitrum Test

* 2nd try2nd try

* Update labels_balancer_v2_pools_arbitrum.sql

* Update balancer_v2_arbitrum_bpt_prices.sql

* Update balancer_v2_arbitrum_bpt_prices.sql

* Update balancer_v2_arbitrum_bpt_prices.sql

* Update balancer_v2_arbitrum_bpt_prices.sql

* Update balancer_v2_arbitrum_bpt_prices.sql

* Update balancer_v2_arbitrum_bpt_prices.sql

* Update balancer_v2_arbitrum_pools_tokens_weights.sql

* Update labels_balancer_v2_pools_arbitrum.sql

* Update labels_balancer_v2_pools_arbitrum.sql

* Update balancer_v2_arbitrum_liquidity.sql

* Update balancer_v2_arbitrum_liquidity.sql

* Update balancer_v2_arbitrum_liquidity.sql

* Update balancer_v2_arbitrum_liquidity.sql

* Update balancer_v2_arbitrum_liquidity.sql

* Update balancer_v2_arbitrum_liquidity.sql

* Update balancer_v2_arbitrum_liquidity.sql

* Update balancer_v2_arbitrum_bpt_prices.sql

* Update labels_balancer_v2_pools_arbitrum.sql

* Full update

* minor label fix

* avalanche pools tokens weights fix

* avalanche fix

* definitive avalanche fix

* bpt prices fix

* liquidity spells

* retry

* avalanche liquidity

* quick fix

* gnosis pools tokens weights fix

* again

* again

* avalanche pools tokens weights fix

* fixes ethereum_v1 pools tokens weights

* excludes ethereum v1_liquidity

* fixes ethereum labels

* fixes gnosis sources

* gnosis sources fix

* fixes avalanche labels

* avalanche labels fix

* casts values to int256 on liquidity spells

* substrings fix

* filters infinite prices on bpt prices

* fixes a small error on arbitrum pools tokens weights

* adds ethereum v1 liquidity to PR

* replaces backquotes to double quotes

* fixes operators mistake on ethereum balances

* same'

* again

* same

* same

* same

* same

* again

* Update balancer_ethereum_pools_tokens_weights.sql

* Update balancer_ethereum_pools_tokens_weights.sql

* Update balancer_v1_ethereum_liquidity.sql

* Update balancer_v1_ethereum_liquidity.sql

* Adds dex prices to balancer_v2_arbitrum_liquidity.sql

* Adds dex prices to balancer_v2_avalanche_c_liquidity.sql

* Adds dex prices balancer_v2_ethereum_liquidity.sql

* adds dex prices balancer_v2_ethereum_liquidity.sql

* Adds dex prices to balancer_v2_gnosis_liquidity.sql

* Update balancer_v2_optimism_liquidity.sql

* adds dex prices to balancer_v2_polygon_liquidity.sql

* incremental filter changes balancer_v2_arbitrum_pools_tokens_weights.sql

* Update balancer_v2_avalanche_c_pools_tokens_weights.sql

* Update balancer_v2_ethereum_pools_tokens_weights.sql

* Update balancer_v2_gnosis_pools_tokens_weights.sql

* Update balancer_v2_optimism_pools_tokens_weights.sql

* Update balancer_v2_polygon_pools_tokens_weights.sql

* Update balancer_v2_avalanche_c_pools_tokens_weights.sql

* Update balancer_v2_gnosis_pools_tokens_weights.sql

* Update labels_balancer_v2_pools_arbitrum.sql

* Update labels_balancer_v2_pools_avalanche_c.sql

* Update labels_balancer_v2_pools_ethereum.sql

* Update labels_balancer_v2_pools_gnosis.sql

* Update labels_balancer_v2_pools_optimism.sql

* Update labels_balancer_v2_pools_polygon.sql

* Update balancer_v2_arbitrum_pools_tokens_weights.sql

Adds the normalizedWeights column to balancer_v2_arbitrum.WeightedPoolFactory_call_create, given that there are no results WHERE normalizedWeights IS NOT NULL AND weights IS NOT NULL

* Update balancer_v2_ethereum_pools_tokens_weights.sql

* Update balancer_v2_optimism_pools_tokens_weights.sql

* Update balancer_v2_polygon_pools_tokens_weights.sql

* Update balancer_v2_optimism_pools_tokens_weights.sql

* Update balancer_v2_arbitrum_liquidity.sql

* Update balancer_v2_avalanche_c_liquidity.sql

* Update balancer_v2_ethereum_liquidity.sql

* Update balancer_v2_gnosis_liquidity.sql

* Update balancer_v2_optimism_liquidity.sql

* Update balancer_v2_polygon_liquidity.sql

* Update balancer_ethereum_balances.sql

* Update labels_balancer_v2_pools_arbitrum.sql

* Update labels_balancer_v2_pools_avalanche_c.sql

* Update labels_balancer_v2_pools_ethereum.sql

* Update labels_balancer_v2_pools_gnosis.sql

* Update labels_balancer_v2_pools_optimism.sql

* Update labels_balancer_v2_pools_polygon.sql

* Update balancer_v2_gnosis_bpt_prices.sql

* Update balancer_v2_arbitrum_bpt_prices.sql

* Update balancer_v2_avalanche_c_bpt_prices.sql

* Update balancer_v2_ethereum_bpt_prices.sql

* Update balancer_v2_optimism_bpt_prices.sql

* Update balancer_v2_polygon_bpt_prices.sql

* test_arbitrum liquidity

* rerun liquidity

* adds base models

* retry base pools

* retry

* sources fix

* retry fix base pools labels

* test

* retry

* retry

* retry

* retry

* retry

* Update created_at

* final sweep of commented code

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: thetroyharris <127905654+thetroyharris@users.noreply.github.com>
web3lyt pushed a commit that referenced this pull request Sep 1, 2023
* Dex Aggregator Migration - #2 - Yield yak

* fixes and clean up
web3lyt pushed a commit that referenced this pull request Sep 1, 2023
* feat: add honeyswap folders

* feat: honeyswap polygon trades and schema

* chore: consistent naming

* feat: honeyswap_v2_gnosis_trades.sql

* chore:add legacy dummy tables

* chore: update legacy schemas

* chore: more legacy schema changes

* rebase to main

* Dex trades beta dunesql (duneanalytics#4107)

* Add dex_trades_migration_beta to models

* Create dex_trades_migration_beta

* Drop trace_address from select

* temporarily remove some models

* Comment out hashflow

* Disable more models

* Fix glacier types

* Fix day

* Add back models that now exist

* Partition by block_month instead

* Add to model

* Actually add block_month

* Add fixed models

* Fix babyswap

* Add block_month to zipswap

* Fix maker type for zipswap

* Don't include zeroex for now

* Trigger CI

* exclude zeroex and kyberswap for now

* Disable zipswap

* Fix model

* Add back models

* exclude failing model (duneanalytics#4144)

* Dex Aggregator Migration - #2 - Yield yak (duneanalytics#4063)

* Dex Aggregator Migration - #2 - Yield yak

* fixes and clean up

* Dex Aggregator Feat: Lifi Optimism - Ready for review (duneanalytics#4082)

* Dex Aggregator Migration - #1 - Lifi

* push dex aggregator seed

* revert changes to legacy file

* test fix

* test

* test

* smol fix

* Dex Aggregator Feat: Lifi Optimism

* CLEAN

* adjust seed

* NFT transfers refactor (duneanalytics#4072)

* Use merge strategy and stop using unique_transfer_id

* Use different unique key

* Drop unique_transfer_id

* Drop anti_table and let trino do join instead during merge into

* Fix typo

* Fix formatting

* Revert "Drop unique_transfer_id"

This reverts commit 09e374d.

* Update unique_transfer_id to be smaller

Keep it for backward compatibility

* Use correct column

* Fix tests and drop duplicate line

* Add back unique_transfer_id

* Add incremental filter for erc1155_batch as well

* Feature/oracle addresses (duneanalytics#4053)

* Add Chainlink OCR to arbitrum, avalanche_c, bnb, ethereum, fantom, gnosis, optimism, and polygon
Generate OCR Operator Meta
Add incremental tables to Chainlink OCR and add a README
Alphabetize OCR Operator Meta
General OCR Cleanup
Polish Chainlink OCR Model

* Add incremental table tests

* add new networks to chainlink feeds, add all current feeds per network

* Trigger CI

* Trigger CI

* add dummy models for new networks

---------

Co-authored-by: ryanostrom <rpostrom@gmail.com>

* DuneSQL Migration: `balancer_trades` (duneanalytics#4097)

* Update balancer_arbitrum_schema.yml

* Update balancer_v2_arbitrum_transfers_bpt.sql

* Update balancer_v2_arbitrum_transfers_bpt_legacy.sql

* Create balancer_v2_avalanche_c_transfers_bpt.sql

* Create balancer_v2_avalanche_c_transfers_bpt_legacy.sql

* Update balancer_avalanche_c_schema.yml

* Update balancer_schema.yml

* Create balancer_transfers_bpt.sql

* Create balancer_transfers_bpt_legacy.sql

* Create balancer_base_schema.yml

* Create balancer_base_sources.yml

* Create balancer_v2_base_transfers_bpt.sql

* Create balancer_v2_base_transfers_bpt_legacy.sql

* Update balancer_ethereum_schema.yml

* Update balancer_v2_ethereum_transfers_bpt_legacy.sql

* Update balancer_v2_ethereum_transfers_bpt.sql

* Update balancer_gnosis_schema.yml

* Create balancer_v2_gnosis_transfers_bpt.sql

* Create balancer_v2_gnosis_transfers_bpt_legacy.sql

* Update balancer_v2_gnosis_transfers_bpt_legacy.sql

* Update balancer_optimism_schema.yml

* Update balancer_v2_optimism_transfers_bpt.sql

* Update balancer_v2_optimism_transfers_bpt_legacy.sql

* Update balancer_polygon_schema.yml

* Update balancer_v2_polygon_transfers_bpt.sql

* Update balancer_v2_polygon_transfers_bpt_legacy.sql

* Migrate `pools_fees` to DuneSQL

* Add migrated `pools_fees` model to Avalanche, Base, and create an aggregate spell.

* Migrate `balancer_v2_trades` to DuneSQL

* Update balancer_v2_arbitrum_trades.sql

* Update balancer_v2_arbitrum_trades.sql

* Update balancer_ethereum_trades.sql

* Update balancer_v2_optimism_trades.sql

* Update balancer_ethereum_trades.sql

* Update balancer_v2_ethereum_trades.sql

* Revert "Update balancer_v2_ethereum_trades.sql"

This reverts commit c03026c.

* Revert "Update balancer_ethereum_trades.sql"

This reverts commit d037954.

* Revert "Update balancer_v2_optimism_trades.sql"

This reverts commit aae6872.

* Revert "Update balancer_ethereum_trades.sql"

This reverts commit f41a607.

* Revert "Update balancer_v2_arbitrum_trades.sql"

This reverts commit d6ff85a.

* Revert "Update balancer_v2_arbitrum_trades.sql"

This reverts commit b1e3362.

* Revert "Migrate `balancer_v2_trades` to DuneSQL"

This reverts commit 83ca534.

* Update balancer_v2_ethereum_bpt_prices.sql

* Update balancer_v2_ethereum_bpt_prices.sql

* Update balancer_v2_ethereum_trades.sql

* Update balancer_v2_ethereum_trades.sql

* Update balancer_v2_ethereum_trades.sql

* Update balancer_v2_ethereum_trades.sql

* Update balancer_v2_ethereum_trades.sql

* Requested changes.

* Update balancer_v2_ethereum_trades.sql

* Update balancer_v2_ethereum_trades.sql

* Update balancer_ethereum_schema.yml

* Update balancer_v2_ethereum_trades_legacy.sql

* Update balancer_v2_ethereum_trades_legacy.sql

* Removing the _legacy part

As it returns this error: TrinoUserError(type=USER_ERROR, name=SYNTAX_ERROR, message="line 112:40: backquoted identifiers are not supported; use double quotes to quote identifiers", query_id=20230815_211318_32606_9uda9)

* Revert "Removing the _legacy part"

This reverts commit 40b2402.

* Update balancer_ethereum_schema.yml

* Add migrated bpt_prices to arb, gno, poly, opt

* Migrate `bpt_prices` on Avalanche and deploy on Base.

* Update balancer_base_schema.yml

* Update balancer_base_sources.yml

* Migrate balancer_v2_trades and deploy on avalanche_c and base.

* Add in casting to keep the same data types as old lang.

* Revert "Add in casting to keep the same data types as old lang."

This reverts commit 00ca48a.

* Migrate Balancer Trades v1 to DuneSQL

* Update balancer_v1_ethereum_trades.sql

* Update balancer_v1_ethereum_trades.sql

* Add DuneSQL tag to balancer_ethereum_trades aggregation spell.

* Migrate balancer trades agg spells to DuneSQL and deploy on base and avalanche_c.

* Update balancer_avalanche_c_schema.yml

* Update balancer_base_schema.yml

* Update balancer_base_schema.yml

* Update balancer_avalanche_c_trades.sql

* Update balancer_avalanche_c_trades_legacy.sql

* Add in `schema = 'balancer_base',`

* Remove `_legacy` in schemas for each chains agg trades spell.

* Update balancer_base_schema.yml

* Add in `pool_id` and swap_fee` to balancer trades agg spell and schemas.

* Update balancer_schema.yml

* Update balancer_arbitrum_schema.yml

* Update balancer_avalanche_c_schema.yml

* Update balancer_ethereum_schema.yml

* Update schemas

* Update balancer_base_schema.yml

* Cast NULL values to appropriate data types.

* Fix name.

* Update balancer_ethereum_schema.yml

* Hot fix

* Spark fixes

* Update balancer_v1_ethereum_trades.sql

* Update balancer_v1_ethereum_trades_legacy.sql

* Update balancer_v1_ethereum_trades.sql

* Update balancer_v2_ethereum_trades.sql

* Update balancer_v2_ethereum_trades_legacy.sql

* FIx type issues.

* Remove duplicate partition by.

* Update balancer_ethereum_schema.yml

* Revert "Update balancer_ethereum_schema.yml"

This reverts commit 1cd76cc.

* Check the combination of unique columns.

* Fix casting issue.

* Change casting.

* Update balancer_v1_ethereum_trades_legacy.sql

* Update balancer_v1_ethereum_trades_legacy.sql

* Update balancer_v1_ethereum_trades_legacy.sql

* Fix mistake.

* Requested changes.

* Update balancer_v1_ethereum_trades.sql

* Migrate NFT opensea models (duneanalytics#4083)

* non-seaport models

* dunesql tags

* don;t partition

* fix seeds and tests

* seed tags

* seed schema

* fix polygon subtring

* fix token_id in seeds

* fix token_id in seeds

* fix opensea polygon

* migrate seaport v4 models

* migrate seaport v4 models

* remove partitioning

* migrate v3

* migrate matching logic

* bugfix

* bugfix

* bugfix

* sources

* more sources

* fix zone type

* fix token_id type

* temp ignore OP

* temp ignore OP

* seed test rerun

* change start date ETH

* unnest with ordinality is 1-indexed

* start dates

* another idx fix

* try and fix om id logic

* deduplicate order match hash re-use

* fix

* re-enable optimism v3

* temp fix

* fixes

* fixes

* fix missing column

* Fix check_seeds macro (duneanalytics#4146)

* Fix check_seeds macro

* Use is distinct from

* Add Tigris Options Trade & Enrich Models - Ready for review  (duneanalytics#4099)

* blank push

* rewrite

* fix typo

* fix version

* test polygon options models

* fix typo

* add arbitrum options

* consolidate versions in blockchain perps

* smol fix

* add protocol version to positions leverage

* add protocol version on polygon

* missing limit cancelled

* add fees distributed events

* fix synthax

* create options & perpetual trades table on arbit

* fix fees

* add seeds

* fix version

* fix trade

* add polygon models

* final updates

* fix... so proud of myself for completing this

* typo fix

* blank on tokenserc20 and add tigris to perp table

* add columns

* add column to main models

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* New Tigris Perpetual Contracts - Easy - Ready for review (duneanalytics#4148)

* test

* test riun

* remove inner join

* add new sources

* Add Balancer and Hashflow to dex.trades_migration_beta (duneanalytics#4149)

* Add block month to balancer models

* Add balancer and hasflow to dex_migration_beta

* Add block_month to hashflow

* Fix schemas

* Add month to balancer_v1

* Drop trace_address

* Change maker type for hashflow

* Fix typoes (duneanalytics#4154)

* Add correct tokens (duneanalytics#4159)

* [labels] Add more arbitrum cex address (duneanalytics#4132)

* Add more arbitrum cex address

* SQL formatting

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* Add crvUSD price  (duneanalytics#4140)

* Update prices_ethereum_tokens.sql

* Update prices_ethereum_tokens.sql

* Add base safes (duneanalytics#3827)

* Add Safe celo spells, schema and sources

Spells implemented are:
safe_celo_safes.sql
safe_celo_singletons.sql
safe_celo_transactions.sql
safe_celo_celo_transafers.sql

Source implemented is safe_celo_sources.yml

Schema implemented is safe_celo_schema.yml

* Add Safes on Celo

* Implement celo_base_sources

* Rename transactions file

* Add schema property to all spells

schema property follows format project_version_blockchain, e.g. safe_celo

* Remove Celo dependency for safe_safes_all schema

* Declare sql files for spells

* Implement singletons sql file

* Implement base safes

* Implement transfers file

* Implement transactions file

* Implement schema file

* Implement sources file

* Add base sources

* Update starting date of project

* Fix typo

* Migrate safe_base_eth_transfers

* Add dummy legacy models for safe_base_* spells

* Migrate safe_base spells

* Add schema

* Fix source typo

* Fix source

* Fix from

* Add safe_base_safes to meta-table

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* Migrate Seaport forks to DuneSQL (duneanalytics#4155)

* seaport forks

* add sources

* fix schema

* fix

* fix seed tests

* fix seeds

* trigger seed

* adapt macro for forks

* [READY TO REVIEW] Add kyberswap aggregator (duneanalytics#4070)

* Add kyberswap aggregator on arbitrum

* Fix varbinary vs varchar(42)

* Fix trace_address

* * Remove comma in dex_aggregator_trades

* Fix lower case

* Fix table 'hive.oneinch_ethereum.trades' does not exist

* Fix tags in oneinch ethereum

* Revert "Fix table 'hive.oneinch_ethereum.trades' does not exist"

This reverts commit d39292e.

* Revert "Fix tags in oneinch ethereum"

This reverts commit 303feab.

* Temporary omit dex_aggregator_trades

* Fix schema 'kyberswap_arbitrum' does not exist

* Try check_dex_seed_legacy

* Indent

* Add check_dex_aggregator_seed

* Fix test check_dex_aggregator_seed_kyberswap_aggregator_arbitrum_trades_arbitrum__kyberswap__2

* Add optimism, avalanche_c, ethereum

* Add bnb

* Add polygon

* Fix conflict

* Fix redundant commas

* No touch trade

* Migrate dex_aggregator.trades

* Fix dex_aggregator.trades

* Recover dex_aggregator.trades

* Add other versions of kyberswap aggregator, total 5 versions

* Revert "Add other versions of kyberswap aggregator, total 5 versions"

This reverts commit d60d564.

* Naming standards

* Update version

* Fix legacy

* Bad file name

* Fix feedback

* Fix feedback

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* Labels dao migration (duneanalytics#4157)

* Migrate labels_dao_multisig_ethereum

* Migrate labels_dao_framework

* Migrate labels_dao

* Fix labels_dao_framework

* [ETH staking] Add More ETH staking entities (duneanalytics#4141)

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* Update token_checker.py (duneanalytics#4150)

I'm not sure why this was commented out (maybe wasn't supported at the time the script was drafted?) but arbitrum is supported now. 

https://api.coinpaprika.com/v1/coins/wbtc-wrapped-bitcoin

* Add clipper.exchange Arbitrum v2 (duneanalytics#4125)

* Add clipper.exchange Arbitrum v2

* Add clipper.exchange dex.trades seed data

* Fix schema

* Fix schema

* Remove trace_address

* Add tags=['dunesql']

* Fix schema

* Fix schema

* Create OP Worldcoin Safes (duneanalytics#3762)

* add worldcoin

* add to project

* rm incremental in deployer identification

* sources

* unique

* add

* error

* commi

* label

* lbl

* update logic

* fix

* relayer slot

* dummy legacy

* test alias

* alias test

* finalize code

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <jeff@dune.xyz>
Co-authored-by: jeff <102681548+jeff-dude@users.noreply.github.com>

* [dunesql] OP NFT: Add Sound and Generated NFT insert (duneanalytics#3613)

* add sound & init nft generated

* commit

* undo

* typo

* add zora

* gen

* add col

* dunesql and add zora 1155

* alias

* test

* test

* dune

* adds

* dbt project

* unique key

* fixes

* source

* schema

* cast

* cast

* comma

* syntax

* pct

* group

* dece

* alias

* dummy legacy

* legacy z

* rm config

* rm

* test legacy

* mod

* add unique tests

---------

Co-authored-by: jeff-dude <jeff@dune.xyz>
Co-authored-by: jeff <102681548+jeff-dude@users.noreply.github.com>

* (feat) Add PNDC for eth price tracking (duneanalytics#4152)

* (feat) Add PNDC for eth price tracking

* trigger CLA recheck

---------

Co-authored-by: jeff <102681548+jeff-dude@users.noreply.github.com>

* Add more chains to `evms.info` (& legacy file) (duneanalytics#4126)

* add chains and legacy file

* fix

* adds celo to transfers (duneanalytics#4060)

* adds celo to transfers

* added missing dunesql tag

* amended transfers_celo_erc20, added test

* tweaked varchar size

* replaced legacy transfers with placeholder

* added block_month, left amount_raw as double

* too many commas..

* Remove file format

* Revert "Remove file format"

This reverts commit d511239.

* updated unique_key

* amended schema

* column name tweak

* more tweaks to test file

* added amount_raw to unique_key

* test with limited data sample

* back to full dataset (except for WCELO)

* join tweak and 1mln limit test

* limit 100k test..

* and 1k limit test..

* cast block_month as date

* tidying up

* applying suggested changes

* updated schema

* updated test total

* Add uniqueness test

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* arbitrum date: legacy (duneanalytics#3916)

Co-authored-by: jeff <102681548+jeff-dude@users.noreply.github.com>

* OP Predeploy Updates (duneanalytics#3889)

* allo

* static updates

* push

* push

* adds

* add

* legacy equivalence

* debank

* Refresh addresses_optimism_grants_funding

* Refresh deps

* Refresh deps

* wld

* handle for eas predeploys

* comma

* fix addrs

* chainx

* push

* Revert "push"

This reverts commit 89fdf35.

* Revert "chainx"

This reverts commit 7c2dbf0.

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* timeswap: adds Stafi(rETH)/WETH Arbitrum pool (duneanalytics#3844)

* update: adds new pool

* fix : runtime err

* update : consistent symbols

* update: new arbitrum pools added

* fix

* fixx

* Migrate timeswap_*_pools.sql

* Revert "Migrate timeswap_*_pools.sql"

This reverts commit fb8141e.

* Revert "update: new arbitrum pools added"

This reverts commit 07be96e.

* adds new pool -- legacy

* update: Stafi(rETH)/WETH arbitrum pool added

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* [READY TO REVIEW][MINOR] Fix price native token of avax and polygon (duneanalytics#4162)

* Fix price native token of avax and polygon

* Fix price native token of avax and polygon

* Try ETH to check pipeline

* Revert "Try ETH to check pipeline"

This reverts commit 064ce50.

* Refresh seed

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>

* Migrate dodo (duneanalytics#4043)

* Migrate dodo to dunesql

* migrate address to dunesql

* fix

* remove semicolon

* fix

* fix

* update test seed

* update test

* revert test

* fix

* fix

* fix unique_key

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* Add proxy column

* Select proxy

* Remove trace_address in the unique_key

* Fix uniqueness test

* fix

* add trace_address back to unique keys

---------

Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: jeff-dude <jeff@dune.xyz>

* Migrate Optimism Bridge Flows - Ready for review  (duneanalytics#4130)

* draft: Migrate Optimism Bridge Flows

* migrate ovm & chain ids

* SMOL FIX

* fix cast

* smol fix

* another smol fix

* switch bridge token address to bytearray sub

* make changes

* FIX TYPE TO integer

* change to uint256

* Optimism Wallet Summary - WIP (duneanalytics#4127)

* wallet summary wip

* create addresses summary model

* add age, frequency and gas spent

* add unique dapps

* fix usage frequency

* Test fix

* fix join

* fix seed

* rewrite first activity

* smol test

* smol test

* make naming changes and schema fixes

* add first function and other columns

* smol fix

* add recency age label & functions name

* rename to signatures to test

* fix group by

* test fix

* fix dupes

* make first changes

* remove error

* Another synthax fix

* make changes

* models without tag for untranslated list (duneanalytics#4166)

---------

Co-authored-by: Alan Ghobadi <aalan3@gmail.com>
Co-authored-by: jeff <102681548+jeff-dude@users.noreply.github.com>
Co-authored-by: henrystats <65398020+henrystats@users.noreply.github.com>
Co-authored-by: AnonJon <43953219+AnonJon@users.noreply.github.com>
Co-authored-by: ryanostrom <rpostrom@gmail.com>
Co-authored-by: thetroyharris <127905654+thetroyharris@users.noreply.github.com>
Co-authored-by: 0xRob <83790096+0xRobin@users.noreply.github.com>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: sankinyue <126844369+sankinyue@users.noreply.github.com>
Co-authored-by: chef-seaweed <121569855+chef-seaweed@users.noreply.github.com>
Co-authored-by: Daniel <32246390+danielpartida@users.noreply.github.com>
Co-authored-by: nhd98z <34548156+nhd98z@users.noreply.github.com>
Co-authored-by: Meghan Heintz <meghan@dune.com>
Co-authored-by: Alexey Malashkevich <m.alexey@gmail.com>
Co-authored-by: Michael Silberling <4006780+MSilb7@users.noreply.github.com>
Co-authored-by: jeff-dude <jeff@dune.xyz>
Co-authored-by: skiinginjeans <97915403+skiinginjeans@users.noreply.github.com>
Co-authored-by: hildobby <h.moulie@gmail.com>
Co-authored-by: tomfutago <35136350+tomfutago@users.noreply.github.com>
Co-authored-by: denver <denverbaumgartner@gmail.com>
Co-authored-by: yashvik <39464729+waverune@users.noreply.github.com>
Co-authored-by: owen05 <owen05@users.noreply.github.com>
Co-authored-by: Alex Courouble <56831527+couralex6@users.noreply.github.com>

* fix: move change onto dex trades migration beta

* feat: fix honeyswap dbt run

* feat: honeyswap adding seeds

* Fix check_dex_seed

* chore: rename honeyswap_v2 occurences to honeyswap

* fix: undo some tbl name changes

* fix: undo some tbl name changes

* fix: undo further name changes

* fix: undo further name changes

* final naming standards

---------

Co-authored-by: Alan Ghobadi <aalan3@gmail.com>
Co-authored-by: jeff <102681548+jeff-dude@users.noreply.github.com>
Co-authored-by: henrystats <65398020+henrystats@users.noreply.github.com>
Co-authored-by: AnonJon <43953219+AnonJon@users.noreply.github.com>
Co-authored-by: ryanostrom <rpostrom@gmail.com>
Co-authored-by: thetroyharris <127905654+thetroyharris@users.noreply.github.com>
Co-authored-by: 0xRob <83790096+0xRobin@users.noreply.github.com>
Co-authored-by: Huang Geyang <Sukebeta@outlook.com>
Co-authored-by: sankinyue <126844369+sankinyue@users.noreply.github.com>
Co-authored-by: chef-seaweed <121569855+chef-seaweed@users.noreply.github.com>
Co-authored-by: Daniel <32246390+danielpartida@users.noreply.github.com>
Co-authored-by: nhd98z <34548156+nhd98z@users.noreply.github.com>
Co-authored-by: Meghan Heintz <meghan@dune.com>
Co-authored-by: Alexey Malashkevich <m.alexey@gmail.com>
Co-authored-by: Michael Silberling <4006780+MSilb7@users.noreply.github.com>
Co-authored-by: jeff-dude <jeff@dune.xyz>
Co-authored-by: skiinginjeans <97915403+skiinginjeans@users.noreply.github.com>
Co-authored-by: hildobby <h.moulie@gmail.com>
Co-authored-by: tomfutago <35136350+tomfutago@users.noreply.github.com>
Co-authored-by: denver <denverbaumgartner@gmail.com>
Co-authored-by: yashvik <39464729+waverune@users.noreply.github.com>
Co-authored-by: owen05 <owen05@users.noreply.github.com>
Co-authored-by: Alex Courouble <56831527+couralex6@users.noreply.github.com>
web3lyt pushed a commit that referenced this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet