v0.77.0
版本发布时间: 2024-03-14 23:15:05
FuelLabs/fuels-ts最新发布版本:v0.94.8(2024-09-27 23:46:29)
@fuel-ts/abi-coder@0.77.0
Patch Changes
- Migrate implementations of
sha256
,keccak
andscrypt
to@noble/hashes
, by @danielbate (See #1786)
@fuel-ts/abi-typegen@0.77.0
Patch Changes
- Added generic data input for the predicate factory, by @petertonysmith94 (See #1867)
@fuel-ts/account@0.77.0
Minor Changes
-
- Rename Asset type
Fuel
toNetworkFuel
- Rename Asset type
Ethereum
toNetworkEthereum
- Exporting Asset types, by @Torres-ssf (See #1877)
- Rename Asset type
- !feat: accept predicate data on the
Predicate
constructor This is a BREAKING change since the API for thePredicate
constructor has changed:
Notice how the// old API const predicate = new Predicate( bytecode, provider, abi, configurableConstants, ); // new API const predicate = new Predicate({ bytecode, abi, // optional provider, inputData, // optional configurableConstants, // optional });
Predicate
constructor now accepts an object with the following properties:-
bytecode
: The bytecode of the predicate. -
abi
: The JSON ABI of the predicate (optional). -
provider
: The provider for interacting with the predicate. -
inputData
: The predicate input data (optional). -
configurableConstants
: The configurable constants for the predicate (optional). This change was made with readability and ease-of-use in mind, since having too many arguments in a 'flat' constructor can be confusing. Consider a scenario where you want to create a Predicate with configurables but no input data:
In this case, you would have to passconst predicate = new Predicate( bytecode, provider, abi, undefined, configurableConstants, );
undefined
as theinputData
argument, which is not ideal. By using the object-based constructor, you can now pass an object with the properties you want to set, and the constructor will handle the rest:
Theconst predicate = new Predicate({ bytecode, abi, provider, configurableConstants, });
setData
method has been removed. If you want to pass in the predicate data after instantiating thePredicate
or if you want to use a different data than the one passed in the constructor, you will have to create a newPredicate
instance, by @Dhaiwat10 (See #1826) -
- Added
requestMiddleware
toProviderOptions
as a way to allow the user the modification of each fetch call's request, by @nedsalk (See #1822)
Patch Changes
- Add try/catch block when parsing GraphQL stream data response, by @Torres-ssf (See #1839)
- Migrate implementations of
sha256
,keccak
andscrypt
to@noble/hashes
, by @danielbate (See #1786) - 🐞 fix: disallow transferring <= 0 amounts, by @Dhaiwat10 (See #1827)
-
- Handling
SqueezedOut
status update when callingsubmitAndAwait
subscription atProvider.sendTransaction
- Handling
SqueezedOut
status update when calling statusChange subscrition atTransactionResponse.waitForResult
, by @Torres-ssf (See #1829)
- Handling
@fuel-ts/address@0.77.0
Patch Changes
- Migrate implementations of
sha256
,keccak
andscrypt
to@noble/hashes
, by @danielbate (See #1786)
@fuel-ts/contract@0.77.0
Patch Changes
- Migrate implementations of
sha256
,keccak
andscrypt
to@noble/hashes
, by @danielbate (See #1786)
create-fuels@0.77.0
Minor Changes
- The
create-fuels
template app now provides a local faucet and uses a local burner wallet to execute transactions. Previously, the app was using a hardcoded key to sign all transactions. This key is now being used as the key for the faucet, and the burner wallet is being used to execute transactions. For convenience, the burner wallet is persisted in local storage so that it can be used across multiple sessions. The burner wallet is also topped up with 10,000 coins on first load. This is an important step towards adding support for the Fuel Wallet SDK, which will allow users to sign transactions using their own wallets, by @Dhaiwat10 (See #1864)
@fuel-ts/crypto@0.77.0
Patch Changes
- Migrate implementations of
sha256
,keccak
andscrypt
to@noble/hashes
, by @danielbate (See #1786)
@fuel-ts/errors@0.77.0
Patch Changes
- Add try/catch block when parsing GraphQL stream data response, by @Torres-ssf (See #1839)
- Migrate implementations of
sha256
,keccak
andscrypt
to@noble/hashes
, by @danielbate (See #1786) - 🐞 fix: disallow transferring <= 0 amounts, by @Dhaiwat10 (See #1827)
-
- Handling
SqueezedOut
status update when callingsubmitAndAwait
subscription atProvider.sendTransaction
- Handling
SqueezedOut
status update when calling statusChange subscrition atTransactionResponse.waitForResult
, by @Torres-ssf (See #1829)
- Handling
@fuel-ts/forc@0.77.0
@fuel-ts/fuel-core@0.77.0
fuels@0.77.0
Patch Changes
- Better error message when
fuels
cli deployment fails due to unavailable node, by @nedsalk (See #1854)
@fuel-ts/hasher@0.77.0
Patch Changes
- Migrate implementations of
sha256
,keccak
andscrypt
to@noble/hashes
, by @danielbate (See #1786)
@fuel-ts/interfaces@0.77.0
@fuel-ts/math@0.77.0
@fuel-ts/merkle@0.77.0
Patch Changes
- Migrate implementations of
sha256
,keccak
andscrypt
to@noble/hashes
, by @danielbate (See #1786)
@fuel-ts/program@0.77.0
Patch Changes
- implement
get
method onBaseInvocationScope
, by @Torres-ssf (See #1860)
@fuel-ts/script@0.77.0
@fuel-ts/transactions@0.77.0
Patch Changes
- Migrate implementations of
sha256
,keccak
andscrypt
to@noble/hashes
, by @danielbate (See #1786)