Releases: FuelLabs/fuels-ts
Releases · FuelLabs/fuels-ts
v0.96.1
Summary
In this release, we:
- Improved
Provider
cache to self-clean on TX dry-run/estimation - Use a modifier of
20%
for estimated gas - Fixed the listener setup for the current connector
- Fixed a bug where
bn.parseUnits
wouldn't work as expected withunits = 0
- Upgraded
fuel-core
to0.39.0
Features
- #3324 - Ensure that we fetch node info per estimation, by @maschad
- #3319 - Using gas modifier at
Provider.getTransactionCost
, by @Torres-ssf
Fixes
- #3318 - Setup listeners current connector, by @luizstacio
- #3320 -
parseUnits
bug with 0 units, by @Dhaiwat10
Chores
- #3327 - Upgrading
fuel-core
to0.39.0
, by @arboleya - #3329 - Use
FuelError
instead of JSError
, by @Torres-ssf - #3328 - Validate tx max number of inputs, by @Torres-ssf
v0.96.0
Summary
In this release, we:
- Fixed checksum utility to correctly remove
0x
before hashing
Breaking
- Fixes
- #3313 - Checksum method to remove
0x
before hashing, by @luizstacio
- #3313 - Checksum method to remove
Migration Notes
Fixes
#3313 - Checksum method to remove 0x
before hashing
We fixed the checksum utilities:
Address.toChecksum()
Address.isChecksumValid()
Now, we correctly remove the leading 0x
before hashing the address.
Because of this, previous values were invalid, and the update is required.
v0.95.0
Summary
In this release, we:
- Added new
checksum
utility to theAddress
class - Added Provider methods
isUserAccount
andgetAddressType
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 thebn
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
andAddress.valueOf
returns the Address checksum - Updated
fuel-core
to0.38.0
- Optimised the provider balance queries
- Optimize the
getBlockWithTransactions
query
Breaking
- Features
- #3306 - Bump transaction pagination limit to 60, by @danielbate
- Chores
- #3310 - Made Address
toString
andvalueOf
returns checksum, by @Torres-ssf - #3286 - Slim down
chainInfoFragment
andGasCostsFragment
, by @nedsalk - #3296 - Optimize balance queries, by @danielbate
- #3310 - Made Address
Features
- #3308 - Add checksum utils for address, by @luizstacio
- #3307 - Add feature to check if hex is an account, by @maschad
- #3282 - Add source request header, by @danielbate
- #3304 - Add pagination limit to
getTransactions
, by @petertonysmith94
Fixes
- #3300 - Correct
bn
formatting bug with 0 units, by @maschad - #3278 - Provider cache, by @Torres-ssf
- #3274 - Typegen factory template, by @arboleya
Chores
- #3265 -
[email protected]
,[email protected]
, andcreate-fuels
toolchains, by @danielbate - #3271 - Update to
[email protected]
, by @nedsalk - #3284 - Merge
chain
andnodeInfo
queries into one, by @nedsalk - #3272 - Update
fuel-core
to0.38.0
, by @Dhaiwat10 - #3309 - Optimize blockWithTransactions query, by @Torres-ssf
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 theChainInfo
return ofprovider.getChain()
. You can fetch it viaprovider.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 forgasCosts
for the additional data you need.
#3296 - Optimize balance queries
- Removed the
owner
andassetId
properties from the response ofProvider.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 ofProvider.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.
v0.94.9
Summary
In this release, we:
- Added support for deploying scripts and predicates
- Upgraded to
[email protected]
- Upgraded to
[email protected]
- Fixed contracts containing storage deployed with a proxy via
fuels deploy
Features
Fixes
- #3235 - Proxy deploy with storage, by @danielbate
Chores
- #3180 - Deprecate unused operation names, by @Torres-ssf
- #3166 - Run benchmarking utility in devnet environment, by @maschad
v0.94.8
v0.94.7
Summary
In this release, we:
- Upgraded
fuel-core
to v0.36.0 - Upgraded
forc
to v0.63.6 and v0.64.0 - Added support for SRC-14
proxy
contracts infuels deploy
- Removed assets from sepolia / testnet network
- Fixed decimals of some assets on fuel network side
- Added flag to indicate whether a connector is external
- Added a banner for users running an outdated
fuels
version - Fixed the usage of
fuel-toolchain.toml
forfuels
templates
Features
- #3190 - Adding support for proxy contracts in
fuels deploy
, by @arboleya - #3016 - Support message types, by @Torres-ssf
- #3201 - Add flag to indicate if connector is external, by @arthurgeron
Fixes
- #3167 - Removed sepolia assets and adjust decimal config, by @LuizAsFight
- #3217 - Calling
prebuild
only if deps are installed, by @Torres-ssf - #3183 -
create fuels
not respecting toolchain file, by @Dhaiwat10 - #3175 - Generate types for
create fuels
users when extracted, by @Dhaiwat10 - #3156 - Add missing receipts properties, by @Torres-ssf
Chores
- #3187 - Upgrade to forc
0.63.6
, by @petertonysmith94 - #3210 - Fix deprecation on Commander method, by @Dhaiwat10
- #3108 - Inform users if their
fuels
version is outdated, by @Dhaiwat10 - #3182 - Upgraded to fuel-core 0.36.0, by @petertonysmith94
- #3216 - Fix exported types, by @danielbate
- #3214 - Upgrading
@fuels/vm-asm
to0.57.1
, by @arboleya - #3215 - Upgrade
[email protected]
, by @danielbate
v0.94.6
Summary
In this release, we:
- Implemented
TransactionUpgrade
andTransactionUpload
- The
provider.url
now returns an authenticated URL - The
Provider
now accepts aheaders
field - Added UI tests to the
create fuels
template app - Fixed coder matching for some namespaced libraries
- Fixed issue with storage slots not being auto-loaded when deploying a contract
- Add Ethereum asset on mainnet to the list of assets (Ethereum network side)
- Deprecated the two network URLs, added asset ID and chain ID for
mainnet
- Fixed transactions failing when using Ethereum and Solana connectors in the
create-fuels
template app - Added new supported assets based on the points program
- Removed
signTransaction
method fromFuelConnectorMethods
enum - The
selectNetwork
connector method now accepts eitherurl
orchainId
or both.
Features
- #3114 - Introduce upload and upgrade transaction request, by @luisburigo
- #3147 -
provider.url
now returns auth url, by @petertonysmith94 - #3104 - Add UI tests to
create fuels
template, by @Dhaiwat10
Fixes
- #3162 - Incorrect coder matching, by @petertonysmith94
- #3134 - Storage slots auto-load from typegen, by @petertonysmith94
Chores
- #3165 - Downgrade ora from
8.1.0
to5.4.1
, by @petertonysmith94 - #3152 - Include Ethereum asset in ETH Mainnet network, by @LuizAsFight
- #3107 - Deprecate network URLs, add asset ID and chain ID for mainnet, by @Dhaiwat10
- #3133 - Bump connectors package version, by @Dhaiwat10
- #3153 - Add new supported assets, by @LuizAsFight
- #3149 - Revert add
signTransaction
toFuelConnectorMethods
enum, by @Torres-ssf - #3160 - Made
selectNetwork
arguments more flexible, by @petertonysmith94 - #3144 - Update block explorer url, by @danielbate
v0.94.5
Summary
In this release, we:
- Reduced number of requests for submitting a transaction
- Fixed squeezed-out transactions not being notified to users
- Fixed an issue where you couldn't call a loader contract via a proxy contract
- Fixed error handling in
Provider
for when a node is offline - Deprecate all receipt coders
- Upgraded
forc
tov0.63.4
- Upgraded
forc
tov0.63.5
Features
Fixes
- #3122 - Loader contract being called via proxy, by @danielbate
- #3116 - Error handling in
Provider
for when a node is offline, by @arthurgeron
Chores
v0.94.4
Summary
In this release, we:
- We now return a deep clone of the transaction request in the static
from
method - Reduced the cost of submitting blob contract deploys where a blob has already been uploaded
- Made
vite
the default template forcreate-fuels
- Mapped the 'not enough coins' error to a readable error message
- Added support for URLs with
BasicAuth
credentials inProvider
- Fixed TX estimation when an
InputMessage
contains data - Deprecate the method
BaseTransactionRequest.fundWithFakeUtxos
- Upgraded
fuel-core
to v0.35.0 - Deprecated the error code
HASHER_LOCKED
- Fixed revert error message assembling
Features
- #3097 - Return deep clone on transaction request
from
method, by @maschad - #3092 - Add block header to responses in block-related queries, by @Torres-ssf
- #3047 - Validate blob IDs against chain in chunk deploys, by @danielbate
- #3048 - Make vite the default
create-fuels
template, by @Dhaiwat10 - #2902 - Map 'not enough coins' error, by @Dhaiwat10
- #3079 - Support basic auth, by @nedsalk
- #3098 - Parse message response from
getMessageByNonce
, by @Torres-ssf
Fixes
- #3091 - Faucet link in
create-fuels
navbar, by @Dhaiwat10 - #3078 - TX estimation when
InputMessage
contains data, by @Torres-ssf - #3103 - Assemble of transaction revert error message, by @Torres-ssf
Chores
- #3083 - Deprecate
BaseTransactionRequest.fundWithFakeUtxos
, by @Torres-ssf - #3052 - Upgrade
[email protected]
, by @maschad - #3075 - Removed redundant crypto functionality, by @petertonysmith94
v0.94.3
Summary
In this release, we:
- Added future-proofing to fail gracefully for different transaction types which may exist later on.
- Added Solana connector to
create-fuels
template app - Added an embedded testnet faucet into the
create-fuels
template app - Made the
create-fuels
template app mobile-friendly - Upgraded to forc
v0.63.3
Features
- #3003 - Added support for unknown txn types, by @maschad
- #3013 - Add missing connectors to
create fuels
template, by @Dhaiwat10 - #3036 - Embed testnet faucet in
create-fuels
template, by @Dhaiwat10 - #3011 - Make
create-fuels
template app responsive, by @Dhaiwat10
Fixes
- #3062 - Remove
u64
fromNumberCoderType
, by @bajpai244 - #3064 -
UtxoIdCoder
output index to beu16
, by @danielbate
Chores
- #3055 - Upgraded forc to
0.63.3
, by @petertonysmith94