Skip to content

Add support for Tron staking#5972

Merged
Vijay-Jagannathan merged 1 commit into
masterfrom
SC-1632
May 21, 2025
Merged

Add support for Tron staking#5972
Vijay-Jagannathan merged 1 commit into
masterfrom
SC-1632

Conversation

@abhijit0943

@abhijit0943 abhijit0943 commented Apr 16, 2025

Copy link
Copy Markdown
Contributor

TICKET: SC-1632

Changes

  • Adds support for building freeze and vote txns in the SDK along with necessary validations
  • Adds the necessary protobuf generated contracts (V2 contracts weren't present previously) which are needed for freeze/unfreeze (unfreeze txn building will be part of a different PR, but this PR introduces the contracts)
  • Unifies some common methods in transaction builder instead of duplicating them in every builder (any further code duplication cleanup will be done separately in a followup)

@abhijit0943 abhijit0943 force-pushed the SC-1632 branch 10 times, most recently from f32b13c to 8325c1f Compare April 21, 2025 05:56
@abhijit0943 abhijit0943 requested review from Vijay-Jagannathan and removed request for Vijay-Jagannathan April 21, 2025 06:02
@abhijit0943 abhijit0943 force-pushed the SC-1632 branch 2 times, most recently from 6d8f7a6 to b6a3a71 Compare April 22, 2025 05:55
@abhijit0943 abhijit0943 changed the title Adding freezeBuilder Adding freezeBuilder and voteBuilder Apr 22, 2025
Comment thread modules/sdk-coin-trx/src/lib/utils.ts Outdated
Comment thread modules/sdk-coin-trx/test/unit/freezeBuilder.ts Outdated
Comment thread modules/sdk-coin-trx/test/unit/voteBuilder.ts Outdated
@abhijit0943 abhijit0943 requested a review from noel-bitgo April 29, 2025 09:38
Comment thread modules/sdk-coin-trx/src/lib/utils.ts Outdated
Comment thread modules/sdk-coin-trx/src/lib/freezeBuilder.ts Outdated
@abhijit0943 abhijit0943 marked this pull request as ready for review May 5, 2025 08:05
@abhijit0943 abhijit0943 requested a review from a team as a code owner May 5, 2025 08:05
@abhijit0943 abhijit0943 removed the request for review from noel-bitgo May 5, 2025 08:05
@abhijit0943 abhijit0943 marked this pull request as draft May 5, 2025 08:06

@gianchandania gianchandania left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Am yet to fully review this, but I think we should do the tx building here in SDK just like we do for all coins

Comment thread modules/sdk-coin-trx/src/lib/enum.ts
Comment thread modules/sdk-coin-trx/src/lib/freezeBuilder.ts Outdated
Comment thread modules/sdk-coin-trx/src/lib/freezeBuilder.ts Outdated
Comment thread modules/sdk-coin-trx/test/unit/freezeBuilder.ts Outdated
@abhijit0943 abhijit0943 force-pushed the SC-1632 branch 3 times, most recently from 90d066b to 425ff10 Compare May 11, 2025 17:27
@Vijay-Jagannathan Vijay-Jagannathan changed the title Adding freezeBuilder and voteBuilder Add support for Tron staking May 13, 2025
@Vijay-Jagannathan Vijay-Jagannathan force-pushed the SC-1632 branch 20 times, most recently from 97800cd to 453754d Compare May 20, 2025 06:14
@Vijay-Jagannathan Vijay-Jagannathan marked this pull request as ready for review May 21, 2025 04:30
@Vijay-Jagannathan Vijay-Jagannathan merged commit 39cae57 into master May 21, 2025
@ppongbitgo ppongbitgo deleted the SC-1632 branch June 21, 2025 00:27
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.

4 participants