Skip to content

Return unpackTx's type in sendTransaction#1762

Draft
davidyuk wants to merge 10 commits intodevelopfrom
feature/use-own-tx-types
Draft

Return unpackTx's type in sendTransaction#1762
davidyuk wants to merge 10 commits intodevelopfrom
feature/use-own-tx-types

Conversation

@davidyuk
Copy link
Copy Markdown
Member

@davidyuk davidyuk commented Feb 27, 2023

This PR is supported by the Æternity Crypto Foundation

  • check denomination usage and drop it
  • unpack tx as bigint instead of string (don't use strings in tx builder as numbers)
  • rename txPayload and txSigned

BREAKING CHANGE: `confirmationHeight` is not returned in `sendTransaction`
Use `getHeight` to get current height.
BREAKING CHANGE: tx builder doesn't support `denomination` option
Convert AE amounts to aettos manually or use `formatAmount` helper function.
BREAKING CHANGE: `getBalance` return bigint and not accepting `format`
Use `formatAmount` to format manually. Call `.toString()` on return value if necessary.
BREAKING CHANGE: Channel:balances returns bigints instead of strings
Call `.toString()` on return returned balance if necessary.
BREAKING CHANGE: `transferFunds` not accepts string anymore
Implement a custom algorithm if you need accuracy more than provided by number type.
BREAKING CHANGE: `buildContractId`, `oracleQueryId` accepting nonce only as a number
@davidyuk davidyuk added this to the v13 milestone Feb 27, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 27, 2023

Codecov Report

❌ Patch coverage is 87.50000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.68%. Comparing base (2b528b7) to head (1874ea9).
⚠️ Report is 803 commits behind head on develop.

Files with missing lines Patch % Lines
src/tx/builder/helpers.ts 50.00% 1 Missing and 2 partials ⚠️
src/tx/builder/field-types/fee.ts 92.30% 0 Missing and 1 partial ⚠️
src/tx/builder/field-types/name-fee.ts 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1762      +/-   ##
===========================================
- Coverage    82.72%   82.68%   -0.05%     
===========================================
  Files           90       90              
  Lines         3086     3073      -13     
  Branches       615      611       -4     
===========================================
- Hits          2553     2541      -12     
+ Misses         247      245       -2     
- Partials       286      287       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant