-
Notifications
You must be signed in to change notification settings - Fork 106
[Feat] Add offline transaction methods #150
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
base: master
Are you sure you want to change the base?
[Feat] Add offline transaction methods #150
Conversation
33eb470
to
a868703
Compare
Why this PR matters
Compatibility & risk |
Hi! Wow, this is impressive! I think the best well-written PR I've seen in a long time! I'll review this PR in full a bit later, thank you so much! |
Sometimes they do rename some things in proto files:
Our core logic relies on the base models and fields, so we should be all set. Adding new field values on top of the existing ones won’t break anything as long as their order stays the same. We’d only need to update the proto definitions if a core field gets renamed or removed—which is unlikely and would require an accompanying API update anyway. |
Hey guys @MrNaif2018 @andelf ! Did you manage to have a look at this PR? We think that this is a valuable feature that tron libraries in other languages (JS, Java) have. Please let us know if you would like anything to be changed in code |
The thing is, this offline support requires adding protobuf to runtime dependencies |
The tests pass indeed |
PR Type
Enhancement
Description
Add offline transaction building methods for TRX transfers
Add offline TRC-20 token transfer transaction building
Refactor timestamp and block reference utilities
Add Protocol Buffer definitions for transaction structures
Changes diagram
Changes walkthrough 📝
1 files
Add comprehensive tests for offline transaction methods
4 files
Refactor to use shared utilities and constants
Core offline transaction building implementation
Add offline transaction class methods and refactor utilities
Extract shared utility functions for timestamps and blocks
3 files
Add SIXTY_SECONDS constant for transaction expiration
Update linting configuration with exclusions
Add Protocol Buffer generation target
4 files
Generated Protocol Buffer Python bindings
Add development dependencies for protobuf and testing
Protocol Buffer schema for TRON transactions
Type stubs for generated Protocol Buffer code
1 files
Add TAddress type alias