Skip to content

Conversation

@davidyuk
Copy link
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

codecov bot commented Feb 27, 2023

Codecov Report

Base: 82.72% // Head: 82.68% // Decreases project coverage by -0.05% ⚠️

Coverage data is based on head (1874ea9) compared to base (2b528b7).
Patch coverage: 87.50% of modified lines in pull request are covered.

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     
Impacted Files Coverage Δ
src/aens.ts 89.74% <ø> (ø)
src/utils/bignumber.ts 60.00% <ø> (-25.72%) ⬇️
src/utils/errors.ts 75.89% <ø> (+0.56%) ⬆️
src/tx/builder/helpers.ts 80.48% <50.00%> (+1.41%) ⬆️
src/tx/builder/field-types/name-fee.ts 90.00% <75.00%> (-0.91%) ⬇️
src/tx/builder/field-types/fee.ts 95.65% <92.30%> (+0.09%) ⬆️
src/chain.ts 86.66% <100.00%> (-0.29%) ⬇️
src/channel/Contract.ts 81.57% <100.00%> (+0.24%) ⬆️
src/channel/Spend.ts 77.14% <100.00%> (ø)
src/spend.ts 100.00% <100.00%> (ø)
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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