Releases: FuelLabs/fuels-ts
Releases · FuelLabs/fuels-ts
v0.64.0
@fuel-ts/abi-coder@0.64.0
@fuel-ts/abi-typegen@0.64.0
@fuel-ts/address@0.64.0
@fuel-ts/contract@0.64.0
@fuel-ts/crypto@0.64.0
@fuel-ts/errors@0.64.0
@fuel-ts/forc@0.64.0
Minor Changes
@fuel-ts/fuel-core@0.64.0
fuels@0.64.0
@fuel-ts/hasher@0.64.0
@fuel-ts/hdwallet@0.64.0
@fuel-ts/interfaces@0.64.0
@fuel-ts/math@0.64.0
@fuel-ts/merkle@0.64.0
@fuel-ts/mnemonic@0.64.0
@fuel-ts/predicate@0.64.0
@fuel-ts/program@0.64.0
@fuel-ts/providers@0.64.0
Patch Changes
- Rearrange error messages regarding insufficient tx params, by @danielbate (See #1352)
@fuel-ts/script@0.64.0
@fuel-ts/signer@0.64.0
@fuel-ts/testcases@0.64.0
@fuel-ts/transactions@0.64.0
@fuel-ts/utils@0.64.0
@fuel-ts/versions@0.64.0
@fuel-ts/wallet@0.64.0
Minor Changes
@fuel-ts/wallet-manager@0.64.0
@fuel-ts/wordlists@0.64.0
v0.63.0
- refactor: purge usage of
arrayify
from ethers v5 in favor ofgetBytes
from ethers v6, by @danielbate (See #1255) - Add typegen support and docs for new types, by @camsjams (See #1342)
- Auto-loading
*-storage_slots.json
based on*-abi.json
filepaths, by @arboleya (See #1346) - Upgrade fuel-core to 0.20.7, by @Torres-ssf (See #1357)
Breaking Changes and New Features
Support for new types
You can now use these Sway types with the TS SDK.
Bytes
const bytes = [40, 41, 42];
const { value } = await contract.functions.bytes_comparison(bytes).simulate();
Raw Slices
const rawSlice = [40, 41, 42];
const { value } = await contract.functions.raw_slice_comparison(rawSlice).simulate();
StdString
const stdString = 'Hello World';
const { value } = await contract.functions.string_comparison(stdString).simulate();
Auto-loading of storage slots
Typegen tries to resolve, auto-load, and embed the Storage Slots for your Contract within the MyContract__factory class. Still, you can override it alongside other options from DeployContractOptions, when calling the deployContract
method:
import storageSlots from "../contract/out/debug/storage-slots.json";
const contract = await MyContract__factory.deployContract(bytecode, wallet, {
storageSlots,
});
v0.62.0
@fuel-ts/abi-coder@0.62.0
@fuel-ts/abi-typegen@0.62.0
@fuel-ts/address@0.62.0
@fuel-ts/contract@0.62.0
@fuel-ts/crypto@0.62.0
@fuel-ts/errors@0.62.0
Minor Changes
- Reverted GraphQL subscriptions, thus removing
Provider.operations.statusChange
, by @nedsalk (See #1333)
@fuel-ts/forc@0.62.0
@fuel-ts/fuel-core@0.62.0
fuels@0.62.0
@fuel-ts/hasher@0.62.0
@fuel-ts/hdwallet@0.62.0
@fuel-ts/interfaces@0.62.0
@fuel-ts/math@0.62.0
@fuel-ts/merkle@0.62.0
@fuel-ts/mnemonic@0.62.0
@fuel-ts/predicate@0.62.0
@fuel-ts/program@0.62.0
@fuel-ts/providers@0.62.0
Minor Changes
- Reverted GraphQL subscriptions, thus removing
Provider.operations.statusChange
, by @nedsalk (See #1333)
@fuel-ts/script@0.62.0
@fuel-ts/signer@0.62.0
@fuel-ts/testcases@0.62.0
@fuel-ts/transactions@0.62.0
@fuel-ts/utils@0.62.0
@fuel-ts/versions@0.62.0
@fuel-ts/wallet@0.62.0
@fuel-ts/wallet-manager@0.62.0
@fuel-ts/wordlists@0.62.0
v0.61.0
@fuel-ts/abi-coder@0.61.0
Minor Changes
Patch Changes
- refactor: purge the usage of the hardcoded constant
VM_TX_MEMORY
, by @Dhaiwat10 (See #1318)
@fuel-ts/abi-typegen@0.61.0
@fuel-ts/address@0.61.0
Minor Changes
- Improve developer experience of
fromEvmAddress
address helper function, by @danielbate (See #1309)
@fuel-ts/contract@0.61.0
@fuel-ts/crypto@0.61.0
@fuel-ts/errors@0.61.0
Minor Changes
- Check mismatch of fuel client version and supported version: throw on major/minor mismatch, warn on patch mismatch, by @nedsalk (See #1287)
- Improve developer experience of
fromEvmAddress
address helper function, by @danielbate (See #1309)
@fuel-ts/forc@0.61.0
@fuel-ts/fuel-core@0.61.0
Patch Changes
fuels@0.61.0
@fuel-ts/hasher@0.61.0
@fuel-ts/hdwallet@0.61.0
@fuel-ts/interfaces@0.61.0
@fuel-ts/math@0.61.0
@fuel-ts/merkle@0.61.0
@fuel-ts/mnemonic@0.61.0
@fuel-ts/predicate@0.61.0
Patch Changes
- refactor: purge the usage of the hardcoded constant
VM_TX_MEMORY
, by @Dhaiwat10 (See #1318)
@fuel-ts/program@0.61.0
Minor Changes
- Add StdString dynamic string type, by @camsjams (See #1277)
- made prop transactionRequest protected on BaseInvocationScope in favor of getTransactionRequest, by @Torres-ssf (See #1296)
Patch Changes
- refactor: purge the usage of the hardcoded constant
VM_TX_MEMORY
, by @Dhaiwat10 (See #1318)
@fuel-ts/providers@0.61.0
Minor Changes
- rename Provider switchUrl to connect, by @Torres-ssf (See #1294)
- Check mismatch of fuel client version and supported version: throw on major/minor mismatch, warn on patch mismatch, by @nedsalk (See #1287)
Patch Changes
- 🐞 Fixed the TransferOut and Transfer receipts, by @matt-user (See #1328)
- remove console warn, by @camsjams (See #1323)
- refactor: purge the usage of the hardcoded constant
VM_TX_MEMORY
, by @Dhaiwat10 (See #1318) - On the
Provider
class, makenodeInfoCache
andchainInfoCache
private fields, by @Dhaiwat10 (See #1303)
@fuel-ts/script@0.61.0
@fuel-ts/signer@0.61.0
@fuel-ts/testcases@0.61.0
@fuel-ts/transactions@0.61.0
@fuel-ts/utils@0.61.0
@fuel-ts/versions@0.61.0
Patch Changes
@fuel-ts/wallet@0.61.0
Patch Changes
@fuel-ts/wallet-manager@0.61.0
@fuel-ts/wordlists@0.61.0
v0.60.0
@fuel-ts/abi-coder@0.60.0
Minor Changes
@fuel-ts/abi-typegen@0.60.0
@fuel-ts/address@0.60.0
@fuel-ts/contract@0.60.0
Minor Changes
- purging constant MAX_GAS_PER_TX, by @Torres-ssf (See #1272)
@fuel-ts/crypto@0.60.0
@fuel-ts/errors@0.60.0
Minor Changes
- purging constant MAX_GAS_PER_TX, by @Torres-ssf (See #1272)
@fuel-ts/forc@0.60.0
@fuel-ts/fuel-core@0.60.0
fuels@0.60.0
@fuel-ts/hasher@0.60.0
@fuel-ts/hdwallet@0.60.0
@fuel-ts/interfaces@0.60.0
@fuel-ts/math@0.60.0
@fuel-ts/merkle@0.60.0
@fuel-ts/mnemonic@0.60.0
@fuel-ts/predicate@0.60.0
@fuel-ts/program@0.60.0
Minor Changes
- purging constant MAX_GAS_PER_TX, by @Torres-ssf (See #1272)
@fuel-ts/providers@0.60.0
Minor Changes
- add method "getMessageStatus" to provider, by @LuizAsFight (See #1297)
- Added subscriptions to graphql node, by @nedsalk (See #1256)
@fuel-ts/script@0.60.0
@fuel-ts/signer@0.60.0
@fuel-ts/testcases@0.60.0
@fuel-ts/transactions@0.60.0
Minor Changes
- purging constant MAX_GAS_PER_TX, by @Torres-ssf (See #1272)
@fuel-ts/utils@0.60.0
@fuel-ts/versions@0.60.0
@fuel-ts/wallet@0.60.0
Minor Changes
- purging constant MAX_GAS_PER_TX, by @Torres-ssf (See #1272)
@fuel-ts/wallet-manager@0.60.0
@fuel-ts/wordlists@0.60.0
v0.59.0
@fuel-ts/abi-coder@0.59.0
Minor Changes
- using
FuelError
instead of@ethersproject/logger
, by @Torres-ssf (See #1278)
@fuel-ts/abi-typegen@0.59.0
@fuel-ts/address@0.59.0
Minor Changes
- using
FuelError
instead of@ethersproject/logger
, by @Torres-ssf (See #1278)
@fuel-ts/contract@0.59.0
Minor Changes
- using
FuelError
instead of@ethersproject/logger
, by @Torres-ssf (See #1278)
@fuel-ts/crypto@0.59.0
@fuel-ts/errors@0.59.0
Minor Changes
- using
FuelError
instead of@ethersproject/logger
, by @Torres-ssf (See #1278)
@fuel-ts/forc@0.59.0
@fuel-ts/fuel-core@0.59.0
Minor Changes
fuels@0.59.0
@fuel-ts/hasher@0.59.0
@fuel-ts/hdwallet@0.59.0
@fuel-ts/interfaces@0.59.0
@fuel-ts/math@0.59.0
@fuel-ts/merkle@0.59.0
@fuel-ts/mnemonic@0.59.0
@fuel-ts/predicate@0.59.0
Minor Changes
- using
FuelError
instead of@ethersproject/logger
, by @Torres-ssf (See #1278)
@fuel-ts/program@0.59.0
Minor Changes
- using
FuelError
instead of@ethersproject/logger
, by @Torres-ssf (See #1278)
@fuel-ts/providers@0.59.0
Minor Changes
@fuel-ts/script@0.59.0
@fuel-ts/signer@0.59.0
@fuel-ts/testcases@0.59.0
@fuel-ts/transactions@0.59.0
Minor Changes
- using
FuelError
instead of@ethersproject/logger
, by @Torres-ssf (See #1278)
@fuel-ts/utils@0.59.0
@fuel-ts/versions@0.59.0
Minor Changes
@fuel-ts/wallet@0.59.0
@fuel-ts/wallet-manager@0.59.0
@fuel-ts/wordlists@0.59.0
v0.58.0
@fuel-ts/abi-coder@0.58.0
Minor Changes
chainInfo
is now fetched and cached on allProvider
s when they are initialized. With this release, you now need to initialize aProvider
like so:For the full list of breaking-changes, please see this PR, by @Dhaiwat10 (See #1181)const provider = await Provider.create(url);
- Remove
chainId
from thePredicate
constructor. You don't need to pass inchainId
anymore since you are passing in aprovider
already, by @Dhaiwat10 (See #1181) - using FuelError across all packages, by @Torres-ssf (See #1230)
Patch Changes
- Increase support for vectors in predicates, by @danielbate (See #1247)
@fuel-ts/abi-typegen@0.58.0
Minor Changes
- using FuelError across all packages, by @Torres-ssf (See #1230)
@fuel-ts/address@0.58.0
Minor Changes
- using FuelError across all packages, by @Torres-ssf (See #1230)
@fuel-ts/contract@0.58.0
Minor Changes
- using FuelError across all packages, by @Torres-ssf (See #1230)
@fuel-ts/crypto@0.58.0
Minor Changes
- using FuelError across all packages, by @Torres-ssf (See #1230)
@fuel-ts/errors@0.58.0
Minor Changes
- Remove
chainId
from thePredicate
constructor. You don't need to pass inchainId
anymore since you are passing in aprovider
already, by @Dhaiwat10 (See #1181) - using FuelError across all packages, by @Torres-ssf (See #1230)
@fuel-ts/forc@0.58.0
@fuel-ts/fuel-core@0.58.0
fuels@0.58.0
@fuel-ts/hasher@0.58.0
@fuel-ts/hdwallet@0.58.0
Minor Changes
- using FuelError across all packages, by @Torres-ssf (See #1230)
@fuel-ts/interfaces@0.58.0
@fuel-ts/math@0.58.0
Minor Changes
- using FuelError across all packages, by @Torres-ssf (See #1230)
@fuel-ts/merkle@0.58.0
@fuel-ts/mnemonic@0.58.0
Minor Changes
- using FuelError across all packages, by @Torres-ssf (See #1230)
@fuel-ts/predicate@0.58.0
Minor Changes
chainInfo
is now fetched and cached on allProvider
s when they are initialized. With this release, you now need to initialize aProvider
like so:For the full list of breaking-changes, please see this PR, by @Dhaiwat10 (See #1181)const provider = await Provider.create(url);
- Remove
chainId
from thePredicate
constructor. You don't need to pass inchainId
anymore since you are passing in aprovider
already, by @Dhaiwat10 (See #1181) - using FuelError across all packages, by @Torres-ssf (See #1230)
Patch Changes
- Increase support for vectors in predicates, by @danielbate (See #1247)
@fuel-ts/program@0.58.0
Minor Changes
chainInfo
is now fetched and cached on allProvider
s when they are initialized. With this release, you now need to initialize aProvider
like so:For the full list of breaking-changes, please see this PR, by @Dhaiwat10 (See #1181)const provider = await Provider.create(url);
- Remove
chainId
from thePredicate
constructor. You don't need to pass inchainId
anymore since you are passing in aprovider
already, by @Dhaiwat10 (See #1181) - using FuelError across all packages, by @Torres-ssf (See #1230)
- purging GAS_PRICE_FACTOR and GAS_PER_BYTE constants, by @Torres-ssf (See #1271)
Patch Changes
- Increase support for vectors in predicates, by @danielbate (See #1247)
@fuel-ts/providers@0.58.0
Minor Changes
chainInfo
is now fetched and cached on allProvider
s when they are initialized. With this release, you now need to initialize aProvider
like so:For the full list of breaking-changes, please see this PR, by @Dhaiwat10 (See #1181)const provider = await Provider.create(url);
- Remove
chainId
from thePredicate
constructor. You don't need to pass inchainId
anymore since you are passing in aprovider
already, by @Dhaiwat10 (See #1181) - using FuelError across all packages, by @Torres-ssf (See #1230)
- purging GAS_PRICE_FACTOR and GAS_PER_BYTE constants, by @Torres-ssf (See #1271)
@fuel-ts/script@0.58.0
Minor Changes
chainInfo
is now fetched and cached on allProvider
s when they are initialized. With this release, you now need to initialize aProvider
like so:For the full list of breaking-changes, please see this PR, by @Dhaiwat10 (See #1181)const provider = await Provider.create(url);
- Remove
chainId
from thePredicate
constructor. You don't need to pass inchainId
anymore since you are passing in aprovider
already, by @Dhaiwat10 (See #1181) - using FuelError across all packages, by @Torres-ssf (See #1230)
@fuel-ts/signer@0.58.0
@fuel-ts/testcases@0.58.0
@fuel-ts/transactions@0.58.0
Minor Changes
- using FuelError across all packages, by @Torres-ssf (See #1230)
- purging GAS_PRICE_FACTOR and GAS_PER_BYTE constants, by @Torres-ssf (See #1271)
@fuel-ts/utils@0.58.0
Minor Changes
- using FuelError across all packages, by @Torres-ssf (See #1230)
@fuel-ts/versions@0.58.0
@fuel-ts/wallet@0.58.0
Minor Changes
chainInfo
is now fetched and cached on allProvider
s when they are initialized. With this release, you now need to initialize aProvider
like so:For the full list of breaking-changes, please see this PR, by @Dhaiwat10 (See #1181)const provider = await Provider.create(url);
- Remove
chainId
from thePredicate
constructor. You don't need to pass inchainId
anymore since you are passing in aprovider
already, by @Dhaiwat10 (See #1181) - using FuelError across all packages, by @Torres-ssf (See #1230)
- purging GAS_PRICE_FACTOR and GAS_PER_BYTE constants, by @Torres-ssf (See #1271)
Patch Changes
- Only attempt to kill process if pid is defined for
launchNodeAndGetWallets
, by @Dhaiwat10 (See #1266) - Add and export explicit return types for
launchNodeAndGetWallets
andlaunchNode
, by @Dhaiwat10 (See #1267)
@fuel-ts/wallet-manager@0.58.0
Minor Changes
chainInfo
is now fetched and cached on allProvider
s when they are initialized. With this release, you now need to initialize aProvider
like so:For the full list of breaking-changes, please see this PR, by @Dhaiwat10 (See [#1181](https://github.com...const provider = await Provider.create(url);
v0.57.0
@fuel-ts/abi-coder@0.57.0
@fuel-ts/abi-typegen@0.57.0
Patch Changes
- Replace lodash with ramda for ESM support, by @danielbate (See #1242)
@fuel-ts/address@0.57.0
@fuel-ts/contract@0.57.0
@fuel-ts/crypto@0.57.0
@fuel-ts/errors@0.57.0
@fuel-ts/forc@0.57.0
@fuel-ts/fuel-core@0.57.0
fuels@0.57.0
@fuel-ts/hasher@0.57.0
Patch Changes
- Replace lodash with ramda for ESM support, by @danielbate (See #1242)
@fuel-ts/hdwallet@0.57.0
@fuel-ts/interfaces@0.57.0
@fuel-ts/math@0.57.0
@fuel-ts/merkle@0.57.0
@fuel-ts/mnemonic@0.57.0
@fuel-ts/predicate@0.57.0
@fuel-ts/program@0.57.0
Minor Changes
- made ScriptResultDecoderError works for dryRun calls, by @Torres-ssf (See #1250)
@fuel-ts/providers@0.57.0
Minor Changes
- add timeFormatted to TransactionSummary, by @Torres-ssf (See #1252)
Patch Changes
- Replace lodash with ramda for ESM support, by @danielbate (See #1242)
@fuel-ts/script@0.57.0
@fuel-ts/signer@0.57.0
@fuel-ts/testcases@0.57.0
@fuel-ts/transactions@0.57.0
@fuel-ts/utils@0.57.0
Patch Changes
- Replace lodash with ramda for ESM support, by @danielbate (See #1242)
@fuel-ts/versions@0.57.0
@fuel-ts/wallet@0.57.0
@fuel-ts/wallet-manager@0.57.0
@fuel-ts/wordlists@0.57.0
v0.56.1
@fuel-ts/abi-coder@0.56.1
@fuel-ts/abi-typegen@0.56.1
@fuel-ts/address@0.56.1
@fuel-ts/contract@0.56.1
@fuel-ts/crypto@0.56.1
@fuel-ts/errors@0.56.1
Patch Changes
@fuel-ts/forc@0.56.1
@fuel-ts/fuel-core@0.56.1
fuels@0.56.1
@fuel-ts/hasher@0.56.1
@fuel-ts/hdwallet@0.56.1
@fuel-ts/interfaces@0.56.1
@fuel-ts/math@0.56.1
@fuel-ts/merkle@0.56.1
@fuel-ts/mnemonic@0.56.1
@fuel-ts/predicate@0.56.1
@fuel-ts/program@0.56.1
@fuel-ts/providers@0.56.1
@fuel-ts/script@0.56.1
@fuel-ts/signer@0.56.1
@fuel-ts/testcases@0.56.1
@fuel-ts/transactions@0.56.1
@fuel-ts/utils@0.56.1
@fuel-ts/versions@0.56.1
@fuel-ts/wallet@0.56.1
Patch Changes
@fuel-ts/wallet-manager@0.56.1
@fuel-ts/wordlists@0.56.1
v0.56.0
@fuel-ts/abi-coder@0.56.0
Minor Changes
- forbid multicall for more than one function that returns heap types, by @Torres-ssf (See #1217)
@fuel-ts/abi-typegen@0.56.0
@fuel-ts/address@0.56.0
@fuel-ts/contract@0.56.0
@fuel-ts/crypto@0.56.0
@fuel-ts/errors@0.56.0
Minor Changes
- forbid multicall for more than one function that returns heap types, by @Torres-ssf (See #1217)
@fuel-ts/forc@0.56.0
@fuel-ts/fuel-core@0.56.0
fuels@0.56.0
@fuel-ts/hasher@0.56.0
@fuel-ts/hdwallet@0.56.0
@fuel-ts/interfaces@0.56.0
@fuel-ts/math@0.56.0
@fuel-ts/merkle@0.56.0
@fuel-ts/mnemonic@0.56.0
@fuel-ts/predicate@0.56.0
@fuel-ts/program@0.56.0
Minor Changes
- forbid multicall for more than one function that returns heap types, by @Torres-ssf (See #1217)
- Ensure asm from wasm is initialzed, by @camsjams (See #1240)
- 🐞 Fix gas call forwarding logic, by @camsjams (See #1241)