Skip to content

feat: add transaction size for chunked and nonchunked transaction #2961

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

Merged
merged 11 commits into from
May 22, 2025

Conversation

ivaylonikolov7
Copy link
Contributor

Description:
Adds size for normal transaction and a getter that returns an array with the size of all chunked transactions for transactions like FileAppendTransaction.

Fixes #2489

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@ivaylonikolov7 ivaylonikolov7 requested review from a team as code owners March 17, 2025 22:40
@0xivanov
Copy link
Contributor

Looks like a cool new feature 🚀

Copy link
Contributor

@0xivanov 0xivanov left a comment

Choose a reason for hiding this comment

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

Maybe it's a good idea to have some kind of process for adding new APIs like this.
Might need to involve the TSC, @SimiHunjan @hendrikebbers what do you think?

@ivaylonikolov7 ivaylonikolov7 force-pushed the feat/add-transaction-size branch from e2a4e7e to bce9510 Compare May 20, 2025 10:29
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
@ivaylonikolov7 ivaylonikolov7 force-pushed the feat/add-transaction-size branch from bce9510 to 7c966d4 Compare May 20, 2025 10:53
Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/topic/TopicMessageSubmitTransaction.js 97.60% <100.00%> (+0.06%) ⬆️
src/transaction/Transaction.js 92.70% <100.00%> (+0.39%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lfdt-bot
Copy link
Contributor

lfdt-bot commented May 20, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
@ivaylonikolov7 ivaylonikolov7 force-pushed the feat/add-transaction-size branch from 623789d to 7903e9b Compare May 20, 2025 12:15
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Copy link
Contributor

@venilinvasilev venilinvasilev left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@ivaylogarnev-limechain ivaylogarnev-limechain left a comment

Choose a reason for hiding this comment

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

LGTM

@ivaylonikolov7 ivaylonikolov7 merged commit 2e2299e into main May 22, 2025
19 checks passed
@ivaylonikolov7 ivaylonikolov7 deleted the feat/add-transaction-size branch May 22, 2025 12:37
venilinvasilev pushed a commit that referenced this pull request May 22, 2025
)

Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
This was referenced May 29, 2025
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.

Convenience function to determine current size of transaction
5 participants