Skip to content

v0.77.0

Compare
Choose a tag to compare
@fuel-service-user fuel-service-user released this 14 Mar 15:15
· 556 commits to master since this release
bc72cb6

@fuel-ts/abi-coder@0.77.0

Patch Changes

  • Migrate implementations of sha256, keccak and scrypt to @noble/hashes, by @danielbate (See #1786)

@fuel-ts/abi-typegen@0.77.0

Patch Changes

@fuel-ts/account@0.77.0

Minor Changes

    • Rename Asset type Fuel to NetworkFuel
    • Rename Asset type Ethereum to NetworkEthereum
    • Exporting Asset types, by @Torres-ssf (See #1877)
  • !feat: accept predicate data on the Predicate constructor
    This is a BREAKING change since the API for the Predicate constructor has changed:
    // old API
    const predicate = new Predicate(
      bytecode,
      provider,
      abi,
      configurableConstants,
    );
    // new API
    const predicate = new Predicate({
      bytecode,
      abi, // optional
      provider,
      inputData, // optional
      configurableConstants, // optional
    });
    Notice how the 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:
    const predicate = new Predicate(
      bytecode,
      provider,
      abi,
      undefined,
      configurableConstants,
    );
    In this case, you would have to pass undefined as the inputData 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:
    const predicate = new Predicate({
      bytecode,
      abi,
      provider,
      configurableConstants,
    });
    The setData method has been removed. If you want to pass in the predicate data after instantiating the Predicate or if you want to use a different data than the one passed in the constructor, you will have to create a new Predicate instance, by @Dhaiwat10 (See #1826)
  • Added requestMiddleware to ProviderOptions 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 and scrypt to @noble/hashes, by @danielbate (See #1786)
  • 🐞 fix: disallow transferring <= 0 amounts, by @Dhaiwat10 (See #1827)
    • Handling SqueezedOut status update when calling submitAndAwait subscription at Provider.sendTransaction
    • Handling SqueezedOut status update when calling statusChange subscrition at TransactionResponse.waitForResult, by @Torres-ssf (See #1829)

@fuel-ts/address@0.77.0

Patch Changes

  • Migrate implementations of sha256, keccak and scrypt to @noble/hashes, by @danielbate (See #1786)

@fuel-ts/contract@0.77.0

Patch Changes

  • Migrate implementations of sha256, keccak and scrypt 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 and scrypt 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 and scrypt to @noble/hashes, by @danielbate (See #1786)
  • 🐞 fix: disallow transferring <= 0 amounts, by @Dhaiwat10 (See #1827)
    • Handling SqueezedOut status update when calling submitAndAwait subscription at Provider.sendTransaction
    • Handling SqueezedOut status update when calling statusChange subscrition at TransactionResponse.waitForResult, by @Torres-ssf (See #1829)

@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 and scrypt 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 and scrypt to @noble/hashes, by @danielbate (See #1786)

@fuel-ts/program@0.77.0

Patch Changes

@fuel-ts/script@0.77.0

@fuel-ts/transactions@0.77.0

Patch Changes

  • Migrate implementations of sha256, keccak and scrypt to @noble/hashes, by @danielbate (See #1786)

@fuel-ts/utils@0.77.0

@fuel-ts/versions@0.77.0

Patch Changes

  • Warn when running against unofficial fuel-core (e.g. nightly builds), by @nedsalk (See #1855)