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

An 5156/jupv4 v5 swaps logs #657

Merged
merged 6 commits into from
Sep 23, 2024
Merged

An 5156/jupv4 v5 swaps logs #657

merged 6 commits into from
Sep 23, 2024

Conversation

tarikceric
Copy link
Member

@tarikceric tarikceric commented Sep 19, 2024

Create inner swaps table for jupv5 using decoded logs

In upcoming PR: add view on top of silver table and update core tables

Note: 12 txs missing from the first day the program was live (2023-05-30)as logs could not be decoded for those

with missing as (
select * from  solana.silver.swaps_intermediate_jupiterv5_1
where tx_id not in (select tx_id from solana_dev.silver.swaps_inner_intermediate_jupiterv5
where aggregator_program_id = 'JUP5pEAZeHdHrLxh5UCwAbpjGwYKKoquCpda2hfP4u8')
)

-- select * from missing;

select * from solana.silver.decoded_logs
where tx_id in (select tx_id from missing)
and block_timestamp::date = '2023-05-30'
and program_id = 'JUP5pEAZeHdHrLxh5UCwAbpjGwYKKoquCpda2hfP4u8';

Test:
05:42:42 Finished running 19 data tests, 11 project hooks in 0 hours 0 minutes and 42.64 seconds (42.64s).

FR:
04:35:00 2 of 2 OK created sql table model silver.swaps_inner_intermediate_jupiterv5 .... [SUCCESS 1 in 30.13s]

Comment on lines 39 to 40
AND _inserted_timestamp :: DATE BETWEEN '2024-09-06'
AND '2024-09-07'
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Should be 1 line

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

combination_of_columns:
- TX_ID
- INDEX
- LOG_INDEX
Copy link
Contributor

Choose a reason for hiding this comment

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

LOG_INDEX is missing column description and tests

Copy link
Member Author

Choose a reason for hiding this comment

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

added and tests passed

16:03:14 Finished running 1 table model, 11 project hooks in 0 hours 1 minutes and 26.53 seconds (86.53s).
16:03:14
16:03:14 Completed successfully
16:03:14
16:03:14 Done. PASS=1 WARN=0 ERROR=0 SKIP=0 TOTAL=1

@tarikceric tarikceric merged commit 24a660d into main Sep 23, 2024
1 check passed
@tarikceric tarikceric deleted the an-5156/jupv4_v5_swaps_logs branch September 23, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants