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

OTSea DEX on Base #7390

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

PatelPrinci
Copy link
Contributor

Thank you for contributing to Spellbook 🪄

Please open the PR in draft and mark as ready when you want to request a review.

Description:

[...]


quick links for more information:

@github-actions github-actions bot marked this pull request as draft December 27, 2024 09:33
@github-actions github-actions bot added WIP work in progress dbt: dex covers the DEX dbt subproject labels Dec 27, 2024
@PatelPrinci PatelPrinci marked this pull request as ready for review December 28, 2024 01:01
@github-actions github-actions bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Dec 28, 2024
@0xRobin 0xRobin self-assigned this Dec 29, 2024
@0xRobin 0xRobin marked this pull request as draft December 29, 2024 10:22
@github-actions github-actions bot added WIP work in progress and removed ready-for-review this PR development is complete, please review labels Dec 29, 2024
@PatelPrinci PatelPrinci marked this pull request as ready for review January 2, 2025 05:10
@github-actions github-actions bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Jan 2, 2025
@jeff-dude jeff-dude requested a review from Hosuke January 2, 2025 23:01
@PatelPrinci
Copy link
Contributor Author

PatelPrinci commented Jan 3, 2025 via email

Copy link
Collaborator

@Hosuke Hosuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may not be the ideal implementation for OTSea on Base.
However, currently OTSea event sources are limited.

We need to fix the address value first:
https://dune.com/queries/4514265

swapped AS token_sold_amount_raw,
received AS token_bought_amount_raw,
CAST(account AS varbinary) AS token_sold_address,
CAST('0x0000000000000000000000000000000000000000' AS varbinary) AS token_bought_address,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CAST('0x0000000000000000000000000000000000000000' AS varbinary) AS token_bought_address,
0x0000000000000000000000000000000000000000 AS token_bought_address,

evt_tx_to AS taker,
swapped AS token_sold_amount_raw,
received AS token_bought_amount_raw,
CAST('0x0000000000000000000000000000000000000000' AS varbinary) AS token_sold_address,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CAST('0x0000000000000000000000000000000000000000' AS varbinary) AS token_sold_address,
0x0000000000000000000000000000000000000000 AS token_sold_address,

@@ -0,0 +1,3 @@
blockchain,project,version,block_month,block_date,block_time,block_number,token_sold_amount_raw,token_bought_amount_raw,token_sold_address,token_bought_address,maker,taker,project_contract_address,tx_hash,evt_index
base,otsea,1,2024-05-01 00:00,2024-05-02 00:00,2024-05-02 07:41,13923182,88652482269503546099290,4000000000000000,0x9c1a0802fbe08bf7c68bb336820b7b2a7e4eb697,0x0000000000000000000000000000000000000000,0x9c1a0802fbe08bf7c68bb336820b7b2a7e4eb697,0xa836af59d35b3da3c9fb5cfd6f84d9e3bd8c5fd5,0xa836af59d35b3da3c9fb5cfd6f84d9e3bd8c5fd5,0xb6038c12bff786acb485fef9402d4215c97242a757c3f21ffebd0fe1aee7e92d,161
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,3 @@
blockchain,project,version,block_month,block_date,block_time,block_number,token_sold_amount_raw,token_bought_amount_raw,token_sold_address,token_bought_address,maker,taker,project_contract_address,tx_hash,evt_index
base,otsea,1,2024-05-01 00:00,2024-05-02 00:00,2024-05-02 07:41,13923182,88652482269503546099290,4000000000000000,0x9c1a0802fbe08bf7c68bb336820b7b2a7e4eb697,0x0000000000000000000000000000000000000000,0x9c1a0802fbe08bf7c68bb336820b7b2a7e4eb697,0xa836af59d35b3da3c9fb5cfd6f84d9e3bd8c5fd5,0xa836af59d35b3da3c9fb5cfd6f84d9e3bd8c5fd5,0xb6038c12bff786acb485fef9402d4215c97242a757c3f21ffebd0fe1aee7e92d,161
base,otsea,1,2024-05-01 00:00,2024-05-09 00:00,2024-05-09 23:24,14253851,122404014850000000,1000000000000000000,0xf41c500e45868f7cf73098c5699c1343d6d30051,0x0000000000000000000000000000000000000000,0xf41c500e45868f7cf73098c5699c1343d6d30051,0xa836af59d35b3da3c9fb5cfd6f84d9e3bd8c5fd5,0xa836af59d35b3da3c9fb5cfd6f84d9e3bd8c5fd5,0x9d02c7614fc425df8614259e6b80890d13db5b8545a9095e3529d430fb6fc44f,226
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please verify the trade:
https://basescan.org/tx/0x9d02c7614fc425df8614259e6b80890d13db5b8545a9095e3529d430fb6fc44f#eventlog
One trading token should be 0xfD0F44da2a76e61585032dE6E54174a4b0c1CfB8.

@jeff-dude jeff-dude added in review Assignee is currently reviewing the PR and removed ready-for-review this PR development is complete, please review labels Jan 3, 2025
@PatelPrinci
Copy link
Contributor Author

PatelPrinci commented Jan 4, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dbt: dex covers the DEX dbt subproject in review Assignee is currently reviewing the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants