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

ci(release): v0.95.0 @ master #3269

Merged
merged 2 commits into from
Oct 10, 2024
Merged

ci(release): v0.95.0 @ master #3269

merged 2 commits into from
Oct 10, 2024

Conversation

fuel-service-user
Copy link
Contributor

@fuel-service-user fuel-service-user commented Oct 7, 2024

Summary

In this release, we:

  • Added new checksum utility to the Address class
  • Added Provider methods isUserAccount and getAddressType which indicate the type of the hex passed
  • Added a new header for GraphQL requests with the fuels version used
  • Added a limit of 30 transactions to the provider.getTransactions() method.
  • fixed an issue where formatting with 0 in the bn class returned an incorrect value
  • Fixed caching of chain and node data in Provider.
  • Fixed typegen template for ContractFactory
  • Updated to [email protected]
  • Updated to [email protected]
  • Updated create-fuels toolchain file
  • Updated to [email protected]
  • Made Address.toString and Address.valueOf returns the Address checksum
  • Updated fuel-core to 0.38.0
  • Optimised the provider balance queries
  • Optimize the getBlockWithTransactions query

Breaking


Features

Fixes

Chores


Migration Notes

Features

#3306 - Bump transaction pagination limit to 60

  • A limit was added of 60 transactions to the provider.getTransactions() method.

Chores

#3310 - Made Address toString and valueOf returns checksum

The return of both Address.toString() and Address.valueOf was modified to return the address checksum instead of the Bech32 string

// before
const address = new Address('fuel1elnmzsav56dqnp95sx4e2pckq36cvae9ser44m5zlvgtwxw49fmqd7e42e');

address.toString()
// fuel1elnmzsav56dqnp95sx4e2pckq36cvae9ser44m5zlvgtwxw49fmqd7e42e

address.valueOf()
// fuel1elnmzsav56dqnp95sx4e2pckq36cvae9ser44m5zlvgtwxw49fmqd7e42e
// after
const address = new Address('fuel1elnmzsav56dqnp95sx4e2pckq36cvae9ser44m5zlvgtwxw49fmqd7e42e');

address.toString()
// 0xEf86aFa9696Cf0dc6385e2C407A6e159A1103cEfB7E2Ae0636FB33d3cb2A9E4A

address.valueOf()
// 0xEf86aFa9696Cf0dc6385e2C407A6e159A1103cEfB7E2Ae0636FB33d3cb2A9E4A

#3286 - Slim down chainInfoFragment and GasCostsFragment

  • latestBlock is no longer part of the ChainInfo return of provider.getChain(). You can fetch it via provider.getBlock('latest').
  • ChainInfo['consensusParameters']['gasCosts'] has been slimmed down to only contain data necessary for the operation of the SDK. Up until now, the SDK was fetching more than it needed. If this change affects you, you will have to create a custom graphql query for gasCosts for the additional data you need.

#3296 - Optimize balance queries

  • Removed the owner and assetId properties from the response of Provider.operations.getBalance(). These properties are also required arguments to execute the function so are redundant in the response. Should you require these values, you should take them from the values that you passed to the function.
  • Removed the owner property from the response of Provider.operations.getBalances(). This property is a required argument to execute the function so is redundant in the response. Should you require this value, you should take it from the value that you passed to the function.

Copy link

vercel bot commented Oct 7, 2024

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 Oct 10, 2024 9:09pm
ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2024 9:09pm

Copy link

codspeed-hq bot commented Oct 7, 2024

CodSpeed Performance Report

Merging #3269 will not alter performance

Comparing changeset-release/master (b171f0e) with master (bf14023)

Summary

✅ 18 untouched benchmarks

nedsalk
nedsalk previously approved these changes Oct 7, 2024
arboleya
arboleya previously approved these changes Oct 7, 2024
packages/versions/package.json Outdated Show resolved Hide resolved
@nedsalk nedsalk self-requested a review October 8, 2024 06:59
@petertonysmith94
Copy link
Contributor

@FuelLabs/sdk-ts Should these be identified as breaking?

arboleya
arboleya previously approved these changes Oct 10, 2024
maschad
maschad previously approved these changes Oct 10, 2024
@arboleya arboleya enabled auto-merge (squash) October 10, 2024 19:56
Torres-ssf
Torres-ssf previously approved these changes Oct 10, 2024
@arboleya arboleya disabled auto-merge October 10, 2024 20:09
@arboleya arboleya enabled auto-merge (squash) October 10, 2024 21:14
Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
76.06%(+0%) 70.04%(+0.03%) 75.05%(+0%) 76.2%(+0%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
packages/fuels/src/cli/utils/checkForAndDisplayUpdates.ts 100%
(+0%)
100%
(+16.67%)
100%
(+0%)
100%
(+0%)

@arboleya arboleya merged commit ffd3d6c into master Oct 10, 2024
34 of 36 checks passed
@arboleya arboleya deleted the changeset-release/master branch October 10, 2024 21:25
Dhaiwat10 pushed a commit that referenced this pull request Nov 19, 2024
* ci(scripts): update versions

* ci(release): versioning packages and changesets

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

6 participants