Skip to content

Commit

Permalink
Full x2y2 rewrite (#2118)
Browse files Browse the repository at this point in the history
* x2y2 rewrite

* fix

* smol fix

* change timeout to 3h - UNDO BEFORE MERGING

* add evt_index to ID to account for token ID dune v2 issue

* tweaked trade id

* rework to account for trades without platform fees

* platform fee fix

* add where clause for efficiency

* fix private sales

* fixed typo

* fix x2y2 test setup

* remove grouping

* fix

* fix

* fix

* fix

* fix test

* cast as decimals

* move timeout back to 1h

* rename column properly

* fix test

* readability changes

* fix compile

* fix seed

* fix price

* fix typo

* fix seed file

* fix seed file

* cast token_id as varchar 100

Co-authored-by: 0xRob <0xRobin5@gmail.com>
Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 8, 2022
1 parent f9c4572 commit 537ead7
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 223 deletions.
11 changes: 11 additions & 0 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -999,3 +999,14 @@ seeds:
swap_flag: boolean
matcha_limit_order_flag: boolean
volume_usd: double

x2y2:
ethereum:
+enabled: true
+schema: test_data
x2y2_ethereum_trades_etherscan:
+column_types:
block_number: long
tx_hash: string
token_id: string
amount_original: double
Loading

0 comments on commit 537ead7

Please sign in to comment.