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

collect borrow & deposit events from starkscan #144

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kostya-59benz
Copy link
Collaborator

@Kostya-59benz Kostya-59benz commented Oct 29, 2024

I conducted a comprehensive research project on Starkscan, focusing on extracting borrow user and deposit events. This involved analyzing the relevant data and identifying key patterns in user interactions related to borrowing and depositing within the platform.

  1. I'm used https://www.stark-utils.xyz/converter to create borrow and deposit selectors.
  2. Request data from method get_events. with parameters (address, from_block_number, to_block_number, keys, chunk_size)
  3. Initialize lists to store results
  4. Extracting the events
  5. Check for borrowing event using the selector
  6. Check for deposit event using the selector
  7. Save data in format list(tuple(collected_data), tuple(collected_data)...)

@djeck1432 djeck1432 self-requested a review October 30, 2024 06:59
@djeck1432 djeck1432 linked an issue Oct 30, 2024 that may be closed by this pull request
Copy link
Owner

@djeck1432 djeck1432 left a comment

Choose a reason for hiding this comment

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

Please, create notebook file ipynb extension

Copy link
Owner

@djeck1432 djeck1432 left a comment

Choose a reason for hiding this comment

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

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.

Add notebook from calculating heath-ratio-level from on-chain
2 participants