Skip to content
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

chore!: upgrade fuel-core to 0.41.4 #3590

Draft
wants to merge 84 commits into
base: master
Choose a base branch
from

Conversation

Torres-ssf
Copy link
Contributor

@Torres-ssf Torres-ssf commented Jan 15, 2025

Release notes

In this release, we:

  • Upgraded fuel-core to 0.41.0

Summary

GraphQL

  • Add amount128 to the responses of the getBalance and getBalances queries.
  • Implement new assetDetails query.
  • Add new scalar SubId.
  • Add new scalar U128.
  • Update nodeInfoFragment with new NodeInfo fields (if needed).
  • Implement the daCompressedBlock query (if needed).

Transaction

  • Add support for the new transaction policy expiration.

Provider

  • Enable pagination for the getBalances method.
  • Consider amount128 in both the getBalance and getBalances methods.
  • Ensure the excludedIds parameter in getResourcesToSpend does not exceed the maximum number of inputs.
  • Adjust the getMessageProof method to conform with the updated MessageProof type, which now requires a non-optional response.
  • Implement the getAssetDetails method.

Docs

  • Document new transaction policy expiration

Breaking Changes

Because of the latest fuel-core changes, TS SDK does not throw the following error codes and messages anymore:

  1. NOT_ENOUGH_FUNDS
// before
"The account(s) sending the transaction don't have enough funds to cover the transaction."
// after
"Insufficient funds or too many small value coins. Consider combining UTXOs."
  1. MAX_COINS_REACHED
// before
"The account retrieving coins has exceeded the maximum number of coins per asset. Please consider combining your coins into a single UTXO."
// after
"Insufficient funds or too many small value coins. Consider combining UTXOs."

Both error codes were removed in favor of INSUFFICIENT_FUNDS_OR_MAX_COINS

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

@Torres-ssf Torres-ssf added the chore Issue is a chore label Jan 15, 2025
@Torres-ssf Torres-ssf self-assigned this Jan 15, 2025
Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuels-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 5:50pm
ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 5:50pm
ts-docs-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2025 5:50pm

@petertonysmith94
Copy link
Contributor

Asset related functionality is partially implemented:

* chore: bump to `0.41.1`

* chore: bump `fuel-core` to `0.41.2`

* chore: bump `fuel-core` to `0.41.3`

* chore: bump `fuel-core` to `0.41.4`

* chore: changeset
Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
77.07%(+0.03%) 70.65%(+0.01%) 75.13%(+0.03%) 77.07%(+0.03%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 packages/account/src/providers/provider.ts 68.88%
(+0.33%)
59.7%
(+1.24%)
70.7%
(+0.81%)
68.68%
(+0.4%)
🔴 packages/account/src/providers/generated/operations.ts 93.08%
(-0.95%)
100%
(+0%)
79.24%
(-2.39%)
93.6%
(-0.91%)
🔴 packages/account/src/providers/transaction-request/transaction-request.ts 87.5%
(-1.07%)
74.07%
(-4.01%)
84%
(+0%)
87.75%
(-1.06%)
🔴 packages/account/src/providers/utils/handle-gql-error-message.ts 85.71%
(-4.29%)
76.92%
(-6.41%)
80%
(+0%)
82.6%
(-3.76%)
🔴 packages/address/src/address.ts 90.69%
(-0.21%)
92.85%
(+6.19%)
85.71%
(+0%)
90.9%
(-0.17%)
🔴 packages/address/src/utils.ts 80.95%
(+11.72%)
68.75%
(+18.75%)
83.33%
(+5.56%)
81.39%
(+11.02%)
🔴 packages/math/src/bn.ts 89.81%
(+0.19%)
87.5%
(+0.66%)
83.33%
(+0%)
89.81%
(+0.19%)
🔴 packages/transactions/src/coders/policy.ts 97.91%
(+0.24%)
95%
(+0.89%)
100%
(+0%)
98%
(+0.23%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issue is a chore
Projects
None yet
4 participants