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

Event classifier improvements #96

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open

Conversation

kdimentionaltree
Copy link
Collaborator

No description provided.

kdimentionaltree and others added 25 commits October 24, 2024 14:13
…transfer message parsing. Fix error on trace id calculation if message.created_lt is None
* WIP: event classifier

* WIP: event classifier 2

* Fix magic numbers

* Minor fixes. Add failed property to block. Add subscriptions and wton mint block support

* WIP: event classifier 3

* WIP: Event classifier 4

* WIP: Event classifier 5
Db structure update. Historic data processing update. Minor fixes

* WIP: Event classifier 6

* WIP: Event classifier 7. Multiprocessing

* WIP: Event classifier 8

* WIP: Event classifier 9

* Fix requirements

* Fix auction bid action

* Add missing NftAuction class

* Fix run_event_classifier.sh

* Fix run_event_classifier.sh

* Fix run_event_classifier.sh

* Fix jetton transfer's forward payload decoding

* Added docker file, fixed redis and added separate thread for fetching unclassified traces

* Change action id calculation

* Remove deprecated module

* Revert db engine changes after rebase

* Add trace classifier (#82)

* Added golang API

* Fixed dialect problem

* Docker standalone setup update

* Updated docker setup

* Updated submodule

* Updated readme

* Add jetton_mint action. Fixes, WIP

* Add stonfi v2 swaps, provide and withdraw liquidity actions support

* Fix stonfi swap v2 serialization error

* Update deposit and withdraw liquidity actions and matchers

* Fix naming. Add missing field to withdraw liquidity action

* Dedust liquidity deposit, refactor

2 action types: deposit and deposit first asset. Small refactoring,
still quite WIP

* Liq.: add user jwallets

* Change db, fixes

Fix a bug, prepare db for merge: now deposit_contract in
destination_secondary column

* Clean comments

* Add temporary fields to actions to save accounts and tx hashes including tx hash of initiating transaction

* Additional logging

* Save action accounts into separate table

* Fix error while saving actions

* Fix failed nft transfers

* Fix missing prev owner

* Liquid staking withdraw/deposit

WIP. doesn't recogn. TONStakersWithdrawRequest.opcode

* Add dns renew action

* Reorder db type

* Optimize imports

* Combine dedust liquidity deposit blocks

* Ton stakers actions improvements

* Liquidity provisioning actions improvements

* Save nft mint opcode

* Fix staking details db field

* Fix serializing empty blocks

* Fix opcode error

* Add warning when serializing unexpected action type

* Remove debug prints

* Fix action type

* Fix failed stake deposit

* Fix swaps

* Fix min lt utime block calculation

* Fix swaps

* Add nominator pool deposit/withdraw request

Needs fix in indexer/indexer/events/blocks/messages/staking.py#L196

* Add missing jetton mint matcher

* Change renew dns action name

* Fix failed jetton mints support

* Fix failed jetton burns support

* Add proper handling for failed jetton mints. Save ton_amount for mints

* Fix tonstakers withdraw

* Fix false positive elector recover/deposit state detection

* Fix pool address for ton stakers withdraw liquidity

* Fix import error

* Fix dedust deposit liquidity

* Nominator pool staking improvements

* Fix nominator pool amount field

* Add contract deployments

* Better auction bid actions support

* Dedust withdraw liquidity

* Temporary add try excepts in unclassified events reader

* Dedust liquidity withdrawal fixes

* Fix earliest block calculation

* Fix pton transfers

* Revert "Temporary add try excepts in unclassified events reader"

This reverts commit 0e659a0.

* Fix contract deployment duplication

* Improved failed ton transfers detection

* Improved failed ton transfers detection 2

* Use tx_hashes instead of extended_tx_hashes. Remove extended_tx_hashes

* try catch fix

* Add trace_end_lt to actions. Add trace_end_lt, action_end_lt to action_accounts

* Add trace_end_utime, trace_external_hash to actions. Add trace_end_utime, action_end_utime to action_accounts

* Revert changes to default params values in event_classifier.py

* Add mc_seqno_end and trace_mc_seqno_end to actions

* Add extra currencies support

* Fix extra currencies

* Fix extra currencies 2

* Exclude referral payouts from swap actions

---------

Co-authored-by: K-Dimentional Tree <kdimentionaltree@gmail.com>
Co-authored-by: Victor Tec <victor@ton.org>
* Swap detection improvements
* Fix parsing malformed stonfi v2 payload
* Add peer swap serializing
* init dedust pools on classifier startup
* Add batching mechanism for trace classifier tasks
* Fix collecting trace ids
* Fix collecting trace ids 2
Fix saving tick_tock actions
…. Consider call contracts with opcode and zero value always successful
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