v0.99.0
·
146 commits
to master
since this release
Summary
In this release, we:
- Upgraded
forcto0.66.6 - Upgraded
fuel-coreto0.40.4 - Updated how we calculate Blob ID so that it mirrors Bytecode ID
- Introduced bytecode helpers to compute the Bytecode ID and Legacy Blob ID
- Removed
pageInfofromprovider.operations.getBalancesresponse - Fixed a de-structuring issue when calling
waitForResulton a submitted transaction - Fixed incorrect offset usage for
Interface.decodeArguments()function - Improved DX of the
Addressclass constructor - Added methods to allow querying the Explorer Asset API
- Migrated CDN host from
cdn.fuel.networktoassets.fuel.network - Fixed a bug where
fuels devwould hang after a Sway compilation error - Enable
fuelscallbacks to be asynchronous - Embedded node incompatibility warnings in GQL errors
- Added
forctests to the template - Allowed passing
gasPricetogetTransactionCostfunctions to reduce possible network calls
Breaking
- Chores
- #3652 - Remove
pageInfofromgetBalancesGraphQl operations, by @Torres-ssf - #3570 - Remove
ContractUtilsnamespaced export, by @danielbate
- #3652 - Remove
Features
- #3608 - Allow passing
gasPricetogetTransactionCost, by @danielbate - #3641 - Bytecode ID helpers, by @danielbate
- #3585 - Add
forctests to create fuels, by @petertonysmith94 - #3631 - Use configurable offset for blob ID, by @danielbate
- #3648 - Support Explorer Asset API, by @petertonysmith94
- #3637 - Enable
fuelscallbacks to be asynchronous, by @petertonysmith94
Fixes
- #3660 - Bind
waitForResultinTransactionResponse, by @danielbate - #3589 - Incorrect function coder offset usage, by @petertonysmith94
- #3643 - S3 publishing, by @mchristopher
- #3646 -
fuels devhangs after compilation errors, by @nedsalk - #3636 - Improve BN unsafe numbers error handling, by @Torres-ssf
Chores
- #3580 - Prepend version mismatch to GraphQL errors, by @petertonysmith94
- #3600 -
Addressconstructor now accepts a range of inputs., by @petertonysmith94 - #3532 - Un-deprecated network URLs, by @petertonysmith94
- #3617 - Bump
forcto0.66.6, by @petertonysmith94 - #3594 - Update
amountPerCoinprop inWalletConfigto accept BN, by @Torres-ssf - #3619 - Organized
assetsin account package, by @petertonysmith94 - #3620 - Prevent naming collisions on typegen, by @Torres-ssf
- #3633 - Fix version resolutions, by @petertonysmith94
- #3626 - Upgrade
fuel-coreto0.40.4, by @Torres-ssf - #3579 - Changed Tailwind config from JS to TS, by @petertonysmith94
Migration Notes
Chores
#3652 - Remove pageInfo from getBalances GraphQl operations
The pageInfo field has been removed from the response of the provider.operations.getBalances query.
// before
const { balances, pageInfo } = await provider.operations.getBalances({
first: 100,
filter: { owner: wallet.address.toB256() },
});// after
const { balances } = await provider.operations.getBalances({
first: 100,
filter: { owner: wallet.address.toB256() },
});The getBalances method of the Provider class remains unchanged, as it never returned pageInfo:
// not affected
const { balances } = await provider.getBalances();#3570 - Remove ContractUtils namespaced export
ContractUtilswas removed and the underlying functions (getContractRoot(),getContractStorageRoot(),getContractId(),hexlifyWithPrefix()are now exported directly fromfuels.
// before
import { ContractUtils } from 'fuels';// after
import { getContractRoot, getContractStorageRoot, getContractId, hexlifyWithPrefix } from 'fuels';