Releases: FuelLabs/fuels-ts
Releases · FuelLabs/fuels-ts
v0.68.0
@fuel-ts/abi-coder@0.68.0
Patch Changes
@fuel-ts/abi-typegen@0.68.0
Minor Changes
- add string slice support in typegen, by @Torres-ssf (See #1468)
Patch Changes
@fuel-ts/address@0.68.0
Minor Changes
@fuel-ts/contract@0.68.0
Minor Changes
@fuel-ts/crypto@0.68.0
@fuel-ts/errors@0.68.0
Patch Changes
- Improves inputs validation and adds pretty error messages, by @arboleya (See #1433)
- Remove hexlify logic on values that are not hex, by @camsjams (See #1454)
@fuel-ts/forc@0.68.0
@fuel-ts/fuel-core@0.68.0
fuels@0.68.0
Patch Changes
- 🐞 Fixing graceful shutdown of short-lived node, by @arboleya (See #1425)
- The fuels CLI's deploy now auto-loads storage slots for contracts, just like typegen, by @Dhaiwat10 (See #1473)
- 🐞 fix: make
startFuelCore
package manager agnostic, by @Dhaiwat10 (See #1477) - Updated npm keywords, by @camsjams (See #1453)
- Introduce internal hexlify and arrayify functions, by @danielbate (See #1401)
@fuel-ts/hasher@0.68.0
@fuel-ts/hdwallet@0.68.0
@fuel-ts/interfaces@0.68.0
Patch Changes
- Introduce internal hexlify and arrayify functions, by @danielbate (See #1401)
@fuel-ts/math@0.68.0
@fuel-ts/merkle@0.68.0
@fuel-ts/mnemonic@0.68.0
@fuel-ts/predicate@0.68.0
Patch Changes
- New helper method
Predicate.getTransferTxId
, which lets you calculate the transaction ID for a Predicate.transfer transaction, before actually sending it, by @Dhaiwat10 (See #1467)
@fuel-ts/program@0.68.0
Patch Changes
- Add transaction id helper function to base invocation scope, by @danielbate (See #1466)
@fuel-ts/providers@0.68.0
Patch Changes
@fuel-ts/script@0.68.0
Patch Changes
@fuel-ts/signer@0.68.0
@fuel-ts/transactions@0.68.0
@fuel-ts/utils@0.68.0
Patch Changes
- Introduce internal hexlify and arrayify functions, by @danielbate (See #1401)
@fuel-ts/versions@0.68.0
@fuel-ts/wallet@0.68.0
Patch Changes
- New helper method
Predicate.getTransferTxId
, which lets you calculate the transaction ID for a Predicate.transfer transaction, before actually sending it, by @Dhaiwat10 (See #1467)
@fuel-ts/wallet-manager@0.68.0
@fuel-ts/wordlists@0.68.0
v0.67.0
@fuel-ts/abi-coder@0.67.0
@fuel-ts/abi-typegen@0.67.0
@fuel-ts/address@0.67.0
@fuel-ts/contract@0.67.0
Minor Changes
- 🐞 Fixing transaction funding, by @Torres-ssf (See #1372)
@fuel-ts/crypto@0.67.0
@fuel-ts/errors@0.67.0
@fuel-ts/forc@0.67.0
@fuel-ts/fuel-core@0.67.0
fuels@0.67.0
Patch Changes
@fuel-ts/hasher@0.67.0
@fuel-ts/hdwallet@0.67.0
@fuel-ts/interfaces@0.67.0
Minor Changes
- 🐞 Fixing transaction funding, by @Torres-ssf (See #1372)
@fuel-ts/math@0.67.0
@fuel-ts/merkle@0.67.0
@fuel-ts/mnemonic@0.67.0
@fuel-ts/predicate@0.67.0
@fuel-ts/program@0.67.0
Minor Changes
- 🐞 Fixing transaction funding, by @Torres-ssf (See #1372)
@fuel-ts/providers@0.67.0
Minor Changes
- ensure transfer to contract transactions returns operation transfer asset, by @Torres-ssf (See #1400)
- 🐞 Fixing transaction funding, by @Torres-ssf (See #1372)
@fuel-ts/script@0.67.0
Minor Changes
- 🐞 Fixing transaction funding, by @Torres-ssf (See #1372)
@fuel-ts/signer@0.67.0
@fuel-ts/transactions@0.67.0
@fuel-ts/utils@0.67.0
@fuel-ts/versions@0.67.0
@fuel-ts/wallet@0.67.0
Minor Changes
- 🐞 Fixing transaction funding, by @Torres-ssf (See #1372)
@fuel-ts/wallet-manager@0.67.0
@fuel-ts/wordlists@0.67.0
v0.66.1
@fuel-ts/abi-coder@0.66.1
Patch Changes
@fuel-ts/abi-typegen@0.66.1
Patch Changes
@fuel-ts/address@0.66.1
Patch Changes
@fuel-ts/contract@0.66.1
Patch Changes
@fuel-ts/crypto@0.66.1
Patch Changes
@fuel-ts/errors@0.66.1
Patch Changes
@fuel-ts/forc@0.66.1
@fuel-ts/fuel-core@0.66.1
fuels@0.66.1
Patch Changes
@fuel-ts/hasher@0.66.1
Patch Changes
@fuel-ts/hdwallet@0.66.1
Patch Changes
@fuel-ts/interfaces@0.66.1
Patch Changes
@fuel-ts/math@0.66.1
Patch Changes
@fuel-ts/merkle@0.66.1
Patch Changes
@fuel-ts/mnemonic@0.66.1
Patch Changes
@fuel-ts/predicate@0.66.1
Patch Changes
@fuel-ts/program@0.66.1
Patch Changes
@fuel-ts/providers@0.66.1
Patch Changes
@fuel-ts/script@0.66.1
Patch Changes
@fuel-ts/signer@0.66.1
Patch Changes
@fuel-ts/transactions@0.66.1
Patch Changes
@fuel-ts/utils@0.66.1
Patch Changes
@fuel-ts/versions@0.66.1
Patch Changes
@fuel-ts/wallet@0.66.1
Patch Changes
@fuel-ts/wallet-manager@0.66.1
Patch Changes
@fuel-ts/wordlists@0.66.1
Patch Changes
v0.66.0
@fuel-ts/abi-coder@0.66.0
@fuel-ts/abi-typegen@0.66.0
Patch Changes
- Improve typegen support for String, RawSlice and Bytes, by @danielbate (See #1412)
@fuel-ts/address@0.66.0
@fuel-ts/contract@0.66.0
Minor Changes
- set gas limit to 0 when creating a CreateTransactionRequest on ContractFactory, by @Torres-ssf (See #1381)
@fuel-ts/crypto@0.66.0
@fuel-ts/errors@0.66.0
@fuel-ts/forc@0.66.0
@fuel-ts/fuel-core@0.66.0
fuels@0.66.0
Minor Changes
- Total revamp of Fuels CLI, providing a frictionless onboarding experience and blazingly fast development cycle.
New essential commands includes:
@fuel-ts/hasher@0.66.0
@fuel-ts/hdwallet@0.66.0
@fuel-ts/interfaces@0.66.0
Patch Changes
- Improve typegen support for String, RawSlice and Bytes, by @danielbate (See #1412)
@fuel-ts/math@0.66.0
@fuel-ts/merkle@0.66.0
@fuel-ts/mnemonic@0.66.0
@fuel-ts/predicate@0.66.0
@fuel-ts/program@0.66.0
@fuel-ts/providers@0.66.0
Minor Changes
- made calculateTransactionFee to return minFee and maxFee, by @Torres-ssf (See #1383)
Patch Changes
- You can now pass in
ProviderOptions
toProvider.connect
, by @LuizAsFight (See #1388)
@fuel-ts/script@0.66.0
@fuel-ts/signer@0.66.0
@fuel-ts/transactions@0.66.0
@fuel-ts/utils@0.66.0
@fuel-ts/versions@0.66.0
@fuel-ts/wallet@0.66.0
Minor Changes
- 🐞 fix transferToContract for amounts higher than u16, by @Torres-ssf (See #1395)
@fuel-ts/wallet-manager@0.66.0
@fuel-ts/wordlists@0.66.0
v0.65.0
@fuel-ts/abi-coder@0.65.0
@fuel-ts/abi-typegen@0.65.0
@fuel-ts/address@0.65.0
@fuel-ts/contract@0.65.0
@fuel-ts/crypto@0.65.0
@fuel-ts/errors@0.65.0
@fuel-ts/forc@0.65.0
@fuel-ts/fuel-core@0.65.0
Patch Changes
fuels@0.65.0
@fuel-ts/hasher@0.65.0
@fuel-ts/hdwallet@0.65.0
@fuel-ts/interfaces@0.65.0
@fuel-ts/math@0.65.0
@fuel-ts/merkle@0.65.0
@fuel-ts/mnemonic@0.65.0
@fuel-ts/predicate@0.65.0
@fuel-ts/program@0.65.0
@fuel-ts/providers@0.65.0
Minor Changes
- 🐞 fix how transaction fee is calculated, by @Torres-ssf (See #1307)
Patch Changes
@fuel-ts/script@0.65.0
@fuel-ts/signer@0.65.0
@fuel-ts/testcases@0.65.0
@fuel-ts/transactions@0.65.0
@fuel-ts/utils@0.65.0
@fuel-ts/versions@0.65.0
Patch Changes
@fuel-ts/wallet@0.65.0
Patch Changes
@fuel-ts/wallet-manager@0.65.0
@fuel-ts/wordlists@0.65.0
v0.64.1
@fuel-ts/abi-coder@0.64.1
@fuel-ts/abi-typegen@0.64.1
@fuel-ts/address@0.64.1
@fuel-ts/contract@0.64.1
@fuel-ts/crypto@0.64.1
@fuel-ts/errors@0.64.1
@fuel-ts/forc@0.64.1
@fuel-ts/fuel-core@0.64.1
fuels@0.64.1
Patch Changes
- include "fuel-ts/utils" in "fuels" umbrella package, by @LuizAsFight (See #1364)
@fuel-ts/hasher@0.64.1
@fuel-ts/hdwallet@0.64.1
@fuel-ts/interfaces@0.64.1
@fuel-ts/math@0.64.1
@fuel-ts/merkle@0.64.1
@fuel-ts/mnemonic@0.64.1
@fuel-ts/predicate@0.64.1
@fuel-ts/program@0.64.1
@fuel-ts/providers@0.64.1
@fuel-ts/script@0.64.1
@fuel-ts/signer@0.64.1
@fuel-ts/testcases@0.64.1
@fuel-ts/transactions@0.64.1
@fuel-ts/utils@0.64.1
Patch Changes
concatBytes
now acceptBytesLike
as input, by @LuizAsFight (See #1365)
@fuel-ts/versions@0.64.1
@fuel-ts/wallet@0.64.1
@fuel-ts/wallet-manager@0.64.1
@fuel-ts/wordlists@0.64.1
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)