From 9e9e3560d109cb791d5e37db4756a5ba4f888cef Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 9 Feb 2023 05:41:20 -0300 Subject: [PATCH] ci(changesets): versioning packages (#742) * ci(scripts): update docs * ci(changesets): versioning packages --------- Co-authored-by: github-actions[bot] --- .changeset/beige-mangos-call.md | 2 - .changeset/chilled-tools-play.md | 2 - .changeset/famous-doors-refuse.md | 5 -- .changeset/giant-seals-play.md | 5 -- .changeset/lazy-trains-admire.md | 5 -- .changeset/olive-starfishes-brush.md | 6 -- .changeset/perfect-pots-sparkle.md | 2 - .changeset/shy-moles-pay.md | 6 -- .changeset/tender-stingrays-press.md | 2 - .changeset/three-dolphins-cheer.md | 2 - docs/_data/versions.yml | 2 +- .../generate-contract-types-from-abi.md | 2 +- docs/guide/contracts/call-parameters.md | 4 +- .../contracts/calling-external-contracts.md | 2 +- docs/guide/contracts/cost-estimation.md | 2 +- docs/guide/contracts/logs.md | 2 +- docs/guide/contracts/multicalls.md | 8 +- docs/guide/contracts/read-only-calls.md | 2 +- .../guide/contracts/transaction-parameters.md | 2 +- docs/guide/cookbook/deposit-and-withdraw.md | 10 +-- .../guide/messages/getting-a-message-proof.md | 24 ++++++ docs/guide/messages/getting-all-resources.md | 28 +++++++ docs/guide/messages/getting-messages.md | 57 +++++++++++++++ docs/guide/messages/index.md | 36 +++++++++ docs/guide/predicates/index.md | 29 +++++++- .../send-and-spend-funds-from-predicates.md | 56 +++++++++----- .../connecting-to-an-external-node.md | 4 +- docs/guide/providers/querying-the-chain.md | 6 +- docs/guide/types/conversion.md | 5 +- docs/guide/wallets/access.md | 6 +- .../wallets/checking-balances-and-coins.md | 4 +- docs/guide/wallets/private-keys.md | 6 +- docs/guide/wallets/signing.md | 2 +- docs/guide/wallets/test-wallets.md | 4 +- .../fuel-ts-address/classes/Address.md | 1 + .../fuel-ts-contract/classes/Contract.md | 50 +++++++++---- .../classes/ContractFactory.md | 39 ++++++++-- .../internal-BaseTransactionRequest.md | 14 ++++ .../internal-CreateTransactionRequest.md | 38 +++++++--- .../internal-ScriptTransactionRequest.md | 46 ++++++++---- .../internal-CreateTransactionRequestLike.md | 6 +- .../internal-ScriptTransactionRequestLike.md | 4 +- .../fuel-ts-contract/namespaces/internal.md | 12 +-- .../internal-CreateTransactionRequestLike.md | 6 +- .../internal-ScriptTransactionRequestLike.md | 4 +- .../fuel-ts-hasher/namespaces/internal.md | 2 +- .../fuel-ts-predicate/classes/Predicate.md | 20 +++-- .../interfaces/internal-JsonAbiFragment.md | 51 +++++++++++++ .../interfaces/internal-JsonFlatAbi.md | 41 +++++++++++ ...nternal-JsonFlatAbiFragmentArgumentType.md | 41 +++++++++++ .../internal-JsonFlatAbiFragmentFunction.md | 41 +++++++++++ .../internal-JsonFlatAbiFragmentLoggedType.md | 31 ++++++++ .../internal-JsonFlatAbiFragmentType.md | 61 ++++++++++++++++ .../fuel-ts-predicate/namespaces/internal.md | 18 +++++ .../classes/CreateTransactionRequest.md | 36 ++++++--- .../fuel-ts-providers/classes/Provider.md | 57 ++++++++++++--- .../classes/ScriptTransactionRequest.md | 46 ++++++++---- .../internal-BaseTransactionRequest.md | 14 ++++ docs/packages/fuel-ts-providers/index.md | 73 ++++++++++--------- .../CreateTransactionRequestLike.md | 6 +- .../ScriptTransactionRequestLike.md | 4 +- .../fuel-ts-providers/namespaces/internal.md | 69 ++++++++++++------ .../classes/WalletManager.md | 12 +-- .../internal-BaseTransactionRequest.md | 14 ++++ .../internal-CreateTransactionRequest.md | 36 ++++++--- .../internal-ScriptTransactionRequest.md | 46 ++++++++---- .../internal-CreateTransactionRequestLike.md | 6 +- .../internal-ScriptTransactionRequestLike.md | 4 +- .../namespaces/internal.md | 6 +- .../internal-BaseTransactionRequest.md | 14 ++++ .../internal-CreateTransactionRequest.md | 36 ++++++--- .../internal-ScriptTransactionRequest.md | 46 ++++++++---- .../internal-CreateTransactionRequestLike.md | 6 +- .../internal-ScriptTransactionRequestLike.md | 4 +- .../fuel-ts-wallet/namespaces/internal.md | 6 +- packages/abi-coder/CHANGELOG.md | 8 ++ packages/abi-coder/package.json | 2 +- packages/abi-typegen/CHANGELOG.md | 7 ++ packages/abi-typegen/package.json | 2 +- packages/address/CHANGELOG.md | 10 +++ packages/address/package.json | 2 +- packages/constants/CHANGELOG.md | 2 + packages/constants/package.json | 2 +- packages/contract/CHANGELOG.md | 26 +++++++ packages/contract/package.json | 2 +- packages/example-contract/CHANGELOG.md | 8 ++ packages/example-contract/package.json | 2 +- packages/fuels/CHANGELOG.md | 31 ++++++++ packages/fuels/package.json | 2 +- packages/hasher/CHANGELOG.md | 11 +++ packages/hasher/package.json | 2 +- packages/hdwallet/CHANGELOG.md | 9 +++ packages/hdwallet/package.json | 2 +- packages/interfaces/CHANGELOG.md | 2 + packages/interfaces/package.json | 2 +- packages/keystore/CHANGELOG.md | 2 + packages/keystore/package.json | 2 +- packages/math/CHANGELOG.md | 2 + packages/math/package.json | 2 +- packages/merkle-shared/CHANGELOG.md | 2 + packages/merkle-shared/package.json | 2 +- packages/merkle/CHANGELOG.md | 8 ++ packages/merkle/package.json | 2 +- packages/merklesum/CHANGELOG.md | 8 ++ packages/merklesum/package.json | 2 +- packages/mnemonic/CHANGELOG.md | 8 ++ packages/mnemonic/package.json | 2 +- packages/predicate/CHANGELOG.md | 15 ++++ packages/predicate/package.json | 2 +- packages/providers/CHANGELOG.md | 19 +++++ packages/providers/package.json | 2 +- packages/script/CHANGELOG.md | 12 +++ packages/script/package.json | 2 +- packages/signer/CHANGELOG.md | 10 +++ packages/signer/package.json | 2 +- packages/sparsemerkle/CHANGELOG.md | 8 ++ packages/sparsemerkle/package.json | 2 +- packages/testcases/CHANGELOG.md | 2 + packages/testcases/package.json | 2 +- packages/transactions/CHANGELOG.md | 9 +++ packages/transactions/package.json | 2 +- packages/versions/CHANGELOG.md | 2 + packages/versions/package.json | 2 +- packages/wallet-manager/CHANGELOG.md | 13 ++++ packages/wallet-manager/package.json | 2 +- packages/wallet/CHANGELOG.md | 17 +++++ packages/wallet/package.json | 2 +- packages/wordlists/CHANGELOG.md | 2 + packages/wordlists/package.json | 2 +- 129 files changed, 1363 insertions(+), 351 deletions(-) delete mode 100644 .changeset/beige-mangos-call.md delete mode 100644 .changeset/chilled-tools-play.md delete mode 100644 .changeset/famous-doors-refuse.md delete mode 100644 .changeset/giant-seals-play.md delete mode 100644 .changeset/lazy-trains-admire.md delete mode 100644 .changeset/olive-starfishes-brush.md delete mode 100644 .changeset/perfect-pots-sparkle.md delete mode 100644 .changeset/shy-moles-pay.md delete mode 100644 .changeset/tender-stingrays-press.md delete mode 100644 .changeset/three-dolphins-cheer.md create mode 100644 docs/guide/messages/getting-a-message-proof.md create mode 100644 docs/guide/messages/getting-all-resources.md create mode 100644 docs/guide/messages/getting-messages.md create mode 100644 docs/guide/messages/index.md create mode 100644 docs/packages/fuel-ts-predicate/interfaces/internal-JsonAbiFragment.md create mode 100644 docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbi.md create mode 100644 docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentArgumentType.md create mode 100644 docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentFunction.md create mode 100644 docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentLoggedType.md create mode 100644 docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentType.md diff --git a/.changeset/beige-mangos-call.md b/.changeset/beige-mangos-call.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/beige-mangos-call.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/chilled-tools-play.md b/.changeset/chilled-tools-play.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/chilled-tools-play.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/famous-doors-refuse.md b/.changeset/famous-doors-refuse.md deleted file mode 100644 index 0e126d0320a..00000000000 --- a/.changeset/famous-doors-refuse.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fuel-ts/wallet-manager": patch ---- - -Fix wallet manager state when unlock fails diff --git a/.changeset/giant-seals-play.md b/.changeset/giant-seals-play.md deleted file mode 100644 index 66d7bb6a8ec..00000000000 --- a/.changeset/giant-seals-play.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fuel-ts/predicate": minor ---- - -Add support for main args diff --git a/.changeset/lazy-trains-admire.md b/.changeset/lazy-trains-admire.md deleted file mode 100644 index 7fb843800fe..00000000000 --- a/.changeset/lazy-trains-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fuel-ts/contract": minor ---- - -Make parameter walletOrProvider required in Contract constructor diff --git a/.changeset/olive-starfishes-brush.md b/.changeset/olive-starfishes-brush.md deleted file mode 100644 index 53708a7d24d..00000000000 --- a/.changeset/olive-starfishes-brush.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@fuel-ts/contract": patch -"@fuel-ts/providers": patch ---- - -Fix JSON stringify/parse for transaction request diff --git a/.changeset/perfect-pots-sparkle.md b/.changeset/perfect-pots-sparkle.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/perfect-pots-sparkle.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/shy-moles-pay.md b/.changeset/shy-moles-pay.md deleted file mode 100644 index b69170d579e..00000000000 --- a/.changeset/shy-moles-pay.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@fuel-ts/contract": minor -"@fuel-ts/providers": minor ---- - -Add `getBalance` method for contracts and `getContractBalance` method for providers diff --git a/.changeset/tender-stingrays-press.md b/.changeset/tender-stingrays-press.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/tender-stingrays-press.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/three-dolphins-cheer.md b/.changeset/three-dolphins-cheer.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/three-dolphins-cheer.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/docs/_data/versions.yml b/docs/_data/versions.yml index 44bfca36749..87783592f49 100644 --- a/docs/_data/versions.yml +++ b/docs/_data/versions.yml @@ -1,5 +1,5 @@ # generated-file -fuels: 0.29.1 +fuels: 0.30.0 fuel-core: 0.15.1 sway: 0.32.2 forc: 0.32.2 diff --git a/docs/guide/abi-typegen/generate-contract-types-from-abi.md b/docs/guide/abi-typegen/generate-contract-types-from-abi.md index 48b07c186a8..5f8a5544e52 100644 --- a/docs/guide/abi-typegen/generate-contract-types-from-abi.md +++ b/docs/guide/abi-typegen/generate-contract-types-from-abi.md @@ -21,7 +21,7 @@ yarn add fuels #### Generate Types ```sh -yarn exec fuels typegen -i ./abis/*-abi.json -o ./types +yarn exec fuels -i ./abis/*-abi.json -o ./types ``` Note: diff --git a/docs/guide/contracts/call-parameters.md b/docs/guide/contracts/call-parameters.md index b41ff951a91..2bfcdfc9360 100644 --- a/docs/guide/contracts/call-parameters.md +++ b/docs/guide/contracts/call-parameters.md @@ -48,7 +48,7 @@ Here we set call params alongside [transaction parameters](./transaction-paramet }) .call(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L259-L271) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L260-L272) --- @@ -80,7 +80,7 @@ Here we set call params as part of a [Multicall](./multicalls.md) }) .call<[BN, BN, BN]>(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L276-L296) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L277-L297) --- diff --git a/docs/guide/contracts/calling-external-contracts.md b/docs/guide/contracts/calling-external-contracts.md index 50a7b9a54f5..c5110ebf69c 100644 --- a/docs/guide/contracts/calling-external-contracts.md +++ b/docs/guide/contracts/calling-external-contracts.md @@ -25,7 +25,7 @@ Your contract method might be calling other contracts. To do so, you must feed t expect(results.toHex()).toEqual(toHex(1338)); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L132-L143) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L133-L144) --- diff --git a/docs/guide/contracts/cost-estimation.md b/docs/guide/contracts/cost-estimation.md index 5a857bbf342..a3c3cdd2b33 100644 --- a/docs/guide/contracts/cost-estimation.md +++ b/docs/guide/contracts/cost-estimation.md @@ -35,7 +35,7 @@ Below are examples that show how to get the estimated transaction cost from sing ]); const transactionCost = await invocationScope.getTransactionCost(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L358-L368) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L359-L369) --- diff --git a/docs/guide/contracts/logs.md b/docs/guide/contracts/logs.md index e79a25cc38a..50f352bed71 100644 --- a/docs/guide/contracts/logs.md +++ b/docs/guide/contracts/logs.md @@ -44,7 +44,7 @@ You can access the logged values in TypeScript by using the `logs` property in t expect(logs[2]).toEqual('Fuel'); expect([logs[3], logs[4], logs[5]]).toEqual([1, 2, 3]); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L495-L502) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L497-L504) --- diff --git a/docs/guide/contracts/multicalls.md b/docs/guide/contracts/multicalls.md index 2b6c7ae6406..b804510f626 100644 --- a/docs/guide/contracts/multicalls.md +++ b/docs/guide/contracts/multicalls.md @@ -20,7 +20,7 @@ At a basic level, you can call the same contract function multiple times in the .call(); expect(JSON.stringify(results)).toEqual(JSON.stringify([bn(1337), bn(1337)])); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L179-L186) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L180-L187) --- @@ -40,7 +40,7 @@ You can execute multiple contract calls to distinct contracts within a single tr contract.functions.call_external_foo(1336, otherContract.id), ]; ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L147-L156) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L148-L157) --- @@ -53,7 +53,7 @@ Next, you provide the prepared calls to the `multiCall` method and optionally co ```typescript const scope = contract.multiCall(calls).addContracts([otherContract]); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L158-L160) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L159-L161) --- @@ -69,7 +69,7 @@ To get the output values of the bundled calls, invoke of `call()` or `simulate() const { value: results } = await scope.call(); expect(JSON.stringify(results)).toEqual(JSON.stringify([bn(1337), bn(1338)])); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L172-L175) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L173-L176) --- diff --git a/docs/guide/contracts/read-only-calls.md b/docs/guide/contracts/read-only-calls.md index 70ad75dfe2c..dbd753fd11f 100644 --- a/docs/guide/contracts/read-only-calls.md +++ b/docs/guide/contracts/read-only-calls.md @@ -22,7 +22,7 @@ You can do this with the SDK. Instead of `.call()`ing the method, use `.get()`: const { value } = await contract.functions.echo_b256(contract.id.toB256()).get(); expect(value).toEqual(contract.id.toB256()); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L677-L681) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L699-L703) --- diff --git a/docs/guide/contracts/transaction-parameters.md b/docs/guide/contracts/transaction-parameters.md index 7bdbb11fe6d..71ed827b3e4 100644 --- a/docs/guide/contracts/transaction-parameters.md +++ b/docs/guide/contracts/transaction-parameters.md @@ -27,7 +27,7 @@ You can configure these parameters by using the optional `TxParams` and passing }) .call(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L116-L123) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/contract.test.ts#L117-L124) --- diff --git a/docs/guide/cookbook/deposit-and-withdraw.md b/docs/guide/cookbook/deposit-and-withdraw.md index 9dd10409593..02064c3b5ab 100644 --- a/docs/guide/cookbook/deposit-and-withdraw.md +++ b/docs/guide/cookbook/deposit-and-withdraw.md @@ -139,7 +139,7 @@ Next, let's setup a [`Wallet`](../wallets/index.md) and seed it with some coins. const wallet = Wallet.fromPrivateKey(PRIVATE_KEY, provider); await seedTestWallet(wallet, [{ assetId: NativeAssetId, amount: bn(100_000) }]); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L438-L443) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L459-L464) --- @@ -167,7 +167,7 @@ Let's now deploy both the contracts and set them up. const liquidityPoolContractID = liquidityPoolContract.id; await liquidityPoolContract.functions.set_base_token(tokenContractID).call(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L445-L464) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L466-L485) --- @@ -192,7 +192,7 @@ Next, let's mint some tokens and transfer them to our wallet. }) .call(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L467-L483) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L488-L504) --- @@ -213,7 +213,7 @@ Now, let's deposit some tokens into the liquidity pool contract. Since we have t }) .call(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L486-L498) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L507-L519) --- @@ -235,7 +235,7 @@ As a final demonstration, let's use all our liquidity asset balance to withdraw }) .call(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L505-L518) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L526-L539) --- diff --git a/docs/guide/messages/getting-a-message-proof.md b/docs/guide/messages/getting-a-message-proof.md new file mode 100644 index 00000000000..adb124c4377 --- /dev/null +++ b/docs/guide/messages/getting-a-message-proof.md @@ -0,0 +1,24 @@ +--- +title: "Getting A Message Proof" +parent: "Messages" +grand_parent: "Guide" +--- + +[info]: this file is autogenerated +# Getting a Message Proof + +A message proof is a cryptographic proof that a message was included in a block. You can use the `getMessageProof` method to retrieve a message proof for a given transaction ID and message ID. + + +```typescript + const result = await tx.wait(); + const messageOutReceipt = result.receipts[0]; + const messageProof = await provider.getMessageProof( + TRANSACTION_ID, + messageOutReceipt.messageID + ); +``` +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet/src/transfer.test.ts#L169-L176) + +--- + diff --git a/docs/guide/messages/getting-all-resources.md b/docs/guide/messages/getting-all-resources.md new file mode 100644 index 00000000000..592b1b9a498 --- /dev/null +++ b/docs/guide/messages/getting-all-resources.md @@ -0,0 +1,28 @@ +--- +title: "Getting All Resources" +parent: "Messages" +grand_parent: "Guide" +--- + +[info]: this file is autogenerated +# Getting All Resources + +You can use the `getResourcesToSpend` method to retrieve a list of all the resources (coins + assets) that can be spent by a given address. + + +```typescript + const walletLocked = Wallet.fromAddress( + '0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db' + ); + const resourcesToSpend = await walletLocked.getResourcesToSpend([ + { + amount: bn(2), + assetId: '0x0101010101010101010101010101010101010101010101010101010101010101', + }, + ]); + expect(resourcesToSpend[0].amount.gt(2)).toBeTruthy(); +``` +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet/src/wallet-locked.test.ts#L38-L49) + +--- + diff --git a/docs/guide/messages/getting-messages.md b/docs/guide/messages/getting-messages.md new file mode 100644 index 00000000000..4985af21cff --- /dev/null +++ b/docs/guide/messages/getting-messages.md @@ -0,0 +1,57 @@ +--- +title: "Getting Messages" +parent: "Messages" +grand_parent: "Guide" +--- + +[info]: this file is autogenerated +# Getting Messages + +You can use the `getMessages` method to retrieve a list of messages from the blockchain. + + +```typescript + const WALLET_A = Wallet.fromPrivateKey( + '0x1ff16505df75735a5bcf4cb4cf839903120c181dd9be6781b82cda23543bd242', + provider + ); + const WALLET_B = Wallet.fromPrivateKey( + '0x30bb0bc68f5d2ec3b523cee5a65503031b40679d9c72280cd8088c2cfbc34e38', + provider + ); + + const EXPECTED_MESSAGES_A: Message[] = [ + { + sender: WALLET_B.address, + recipient: WALLET_A.address, + nonce: bn(1), + amount: bn(1), + data: arrayify( + '0x00000000000000080000000000000007000000000000000600000000000000050000000000000004' + ), + daHeight: bn(0), + fuelBlockSpend: bn(0), + }, + ]; + const EXPECTED_MESSAGES_B: Message[] = [ + { + sender: WALLET_A.address, + recipient: WALLET_B.address, + nonce: bn('1017517292834129547'), + amount: bn('12704439083013451934'), + data: arrayify('0x0000000000000007'), + daHeight: bn('3684546456337077810'), + fuelBlockSpend: bn(0), + }, + ]; + + const aMessages = await WALLET_A.getMessages(); + const bMessages = await WALLET_B.getMessages(); + + expect(aMessages).toStrictEqual(EXPECTED_MESSAGES_A); + expect(bMessages).toStrictEqual(EXPECTED_MESSAGES_B); +``` +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/coverage-contract.test.ts#L369-L409) + +--- + diff --git a/docs/guide/messages/index.md b/docs/guide/messages/index.md new file mode 100644 index 00000000000..410a6f27575 --- /dev/null +++ b/docs/guide/messages/index.md @@ -0,0 +1,36 @@ +--- +title: "Messages" +parent: "Guide" +has_children: true +has_toc: false +nav_order: 9 +--- + +[info]: this file is autogenerated + + +# Messages + +A message is an object that contains some data that when broadcasted to the network, can change the state of the blockchain. This can include sending tokens, creating a new account, or deploying a smart contract. Messages are signed by a sender and broadcasted to the network. This message is then verified and included in a block. + +This is the general structure of a `Message` object: + + +```typescript +/** + * A Fuel message + */ +export type Message = { + sender: AbstractAddress; + recipient: AbstractAddress; + nonce: BN; + amount: BN; + data: BytesLike; + daHeight: BN; + fuelBlockSpend: BN; +}; +``` +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L5-L18) + +--- + diff --git a/docs/guide/predicates/index.md b/docs/guide/predicates/index.md index 74f3f066cd9..92c689ce8cd 100644 --- a/docs/guide/predicates/index.md +++ b/docs/guide/predicates/index.md @@ -25,7 +25,7 @@ Similar to contracts, once you've written a predicate in Sway and compiled it wi expect(predicate.address).toBeTruthy(); expect(predicate.bytes).toEqual(arrayify(testPredicateTrue)); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L338-L344) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L339-L345) --- @@ -33,3 +33,30 @@ Similar to contracts, once you've written a predicate in Sway and compiled it wi The created `predicate` instance has two fields. The predicate `bytes (byte code)` and the predicate `address`. This address is generated from the byte code and is the same as the `P2SH` address used in Bitcoin. Users can seamlessly send assets to the predicate address as they do for any other address on the chain. To spend the predicate funds, the user has to provide the original `byte code` of the predicate together with the `predicate data`. The `predicate data` will be used when executing the `byte code`, and if the predicate is validated successfully, the funds will be accessible. In the next section, we show how to interact with a predicate and explore an example where specific signatures are needed to spend the predicate funds. + +## Calling a predicate with a `main` function that takes arguments + +Suppose your Sway predicate `main` function is written using the arguments passed to the `main` function like so: + + +```rust +predicate; + +struct Validation { + has_account: bool, + total_complete: u64, +} + +fn main(received: Validation) -> bool { + let expected_has_account: bool = true; + let expected_total_complete: u64 = 100; + + received.has_account == expected_has_account && received.total_complete == expected_total_complete +} +``` +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/test-projects/predicate-main-args-struct/src/main.sw#L1-L15) + +--- + + +You can still create a `Predicate` in the same way as above, but you can pass in a `JsonAbi` using the JSON generated from `forc`. diff --git a/docs/guide/predicates/send-and-spend-funds-from-predicates.md b/docs/guide/predicates/send-and-spend-funds-from-predicates.md index 7e0da421580..e46eef3c578 100644 --- a/docs/guide/predicates/send-and-spend-funds-from-predicates.md +++ b/docs/guide/predicates/send-and-spend-funds-from-predicates.md @@ -69,7 +69,7 @@ Let's use the SDK to interact with the predicate. First, let's create three wall const receiver = Wallet.generate({ provider }); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L348-L363) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L349-L364) --- @@ -84,7 +84,7 @@ Next, let's add some coins to the wallets. await seedTestWallet(wallet2, [{ assetId: NativeAssetId, amount: bn(20_000) }]); await seedTestWallet(wallet3, [{ assetId: NativeAssetId, amount: bn(30_000) }]); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L365-L371) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L366-L372) --- @@ -94,24 +94,44 @@ Now we can load the predicate binary, and prepare some transaction variables. ```typescript import { Predicate, NativeAssetId } from 'fuels'; - const AbiInputs = [ - { - type: '[b512; 3]', - components: [ - { - name: '__array_element', - type: 'b512', + const AbiInputs = { + types: [ + { + typeId: 0, + type: 'bool', + components: null, + typeParameters: null, + }, + { + typeId: 1, + type: '[b512; 3]', + }, + ], + functions: [ + { + inputs: [ + { + name: 'data', + type: 1, + typeArguments: null, + }, + ], + name: 'main', + output: { + name: '', + type: 0, + typeArguments: null, }, - ], - typeParameters: null, - }, - ]; + }, + ], + loggedTypes: [], + }; const predicate = new Predicate(predicateTriple, AbiInputs); const amountToPredicate = 1000; const assetId = NativeAssetId; const initialPredicateBalance = await provider.getBalance(predicate.address, assetId); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L373-L391) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L374-L412) --- @@ -127,7 +147,7 @@ After the predicate address is generated we can send funds to it. Note that we a // assert that predicate address now has the expected amount to predicate expect(bn(predicateBalance)).toEqual(initialPredicateBalance.add(amountToPredicate)); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L393-L400) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L414-L421) --- @@ -144,7 +164,7 @@ Alternatively, you can use `Wallet.submitPredicate` to setup a `Predicate` and u initialPredicateBalance.add(amountToPredicate).add(200) ); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L402-L410) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L423-L431) --- @@ -160,7 +180,7 @@ To spend the funds that are now locked in this example's Predicate, we have to p const signatures = [signature1, signature2, signature3]; ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L412-L419) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L433-L440) --- @@ -182,7 +202,7 @@ After generating the signatures, we can send a transaction to spend the predicat // assert that predicate funds now belong to the receiver expect(bn(receiverBalance)).toEqual(bn(updatedPredicateBalance)); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L421-L434) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L442-L455) --- diff --git a/docs/guide/providers/connecting-to-an-external-node.md b/docs/guide/providers/connecting-to-an-external-node.md index d6ce2056468..cbd7dfe680b 100644 --- a/docs/guide/providers/connecting-to-an-external-node.md +++ b/docs/guide/providers/connecting-to-an-external-node.md @@ -26,7 +26,7 @@ We can interact with the `Testnet` node by using the following example. // validate address expect(wallet.address).toEqual(signer.address); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L249-L263) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L250-L264) --- @@ -59,7 +59,7 @@ If you want to connect to another node just change the url or IP and port. For e // validate address expect(wallet.address).toEqual(signer.address); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L267-L279) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L268-L280) --- diff --git a/docs/guide/providers/querying-the-chain.md b/docs/guide/providers/querying-the-chain.md index 26e27e5e3e3..332e9ca5221 100644 --- a/docs/guide/providers/querying-the-chain.md +++ b/docs/guide/providers/querying-the-chain.md @@ -64,7 +64,7 @@ This method returns all coins (of an optional given asset ID) from a wallet, inc }), ]); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L283-L317) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L284-L318) --- @@ -82,7 +82,7 @@ The last argument says how much you want to spend. This method returns only spen expect(spendableResources[0].amount).toEqual(bn(42)); expect(spendableResources[1].amount).toEqual(bn(100)); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L327-L334) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L328-L335) --- @@ -99,7 +99,7 @@ Get all the spendable balances of all assets for an address. This is different f { assetId: assetIdA, amount: bn(100) }, ]); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L319-L325) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L320-L326) --- diff --git a/docs/guide/types/conversion.md b/docs/guide/types/conversion.md index 813a3a962f6..8adc3a887e6 100644 --- a/docs/guide/types/conversion.md +++ b/docs/guide/types/conversion.md @@ -19,7 +19,8 @@ You might want to convert between the native types (`Bytes32`, `Address`, `Contr const address = Address.fromB256(hexedB256); const arrayB256: Uint8Array = arrayify(randomB256Bytes); const walletLike: WalletLocked = Wallet.fromAddress(address); - const contractLike: Contract = new Contract(address, abiJSON); + const provider = new Provider('http://localhost:4000/graphql'); + const contractLike: Contract = new Contract(address, abiJSON, provider); expect(address.equals(addressify(walletLike) as Address)).toBeTruthy(); expect(address.equals(contractLike.id as Address)).toBeTruthy(); @@ -30,7 +31,7 @@ You might want to convert between the native types (`Bytes32`, `Address`, `Contr // it's bytes all the way down expect(arrayify(assetId)).toEqual(arrayify(Address.fromB256(assetId).toB256())); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L131-L150) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L131-L151) --- diff --git a/docs/guide/wallets/access.md b/docs/guide/wallets/access.md index 6aaa7db0511..bdaabde5a49 100644 --- a/docs/guide/wallets/access.md +++ b/docs/guide/wallets/access.md @@ -42,7 +42,7 @@ provides greater access via its private key. // or use an Address to create a wallet const someWallet: WalletLocked = Wallet.fromAddress(myWallet.address); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L154-L162) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L155-L163) --- @@ -59,7 +59,7 @@ A `WalletLocked` instance can be unlocked by providing the private key: // or directly from a private key unlockedWallet = Wallet.fromPrivateKey(PRIVATE_KEY); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L166-L174) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L167-L175) --- @@ -70,7 +70,7 @@ A `WalletUnlocked` instance can be locked using the `lock` method: ```typescript const newlyLockedWallet = unlockedWallet.lock(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L176-L178) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L177-L179) --- diff --git a/docs/guide/wallets/checking-balances-and-coins.md b/docs/guide/wallets/checking-balances-and-coins.md index fd8d53101eb..9e45c04d492 100644 --- a/docs/guide/wallets/checking-balances-and-coins.md +++ b/docs/guide/wallets/checking-balances-and-coins.md @@ -14,7 +14,7 @@ First, one should remember that, with UTXOs, each _coin_ is unique. Each UTXO co import { Wallet, WalletUnlocked, BigNumberish} from 'fuels'; const balance: BigNumberish = await myWallet.getBalance(NativeAssetId); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L180-L183) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L181-L184) --- @@ -26,7 +26,7 @@ If you want to query all the balances (i.e., get the balance for each asset ID i import { Wallet, WalletUnlocked, CoinQuantity} from 'fuels'; const balances: CoinQuantity[] = await myWallet.getBalances(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L185-L188) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L186-L189) --- diff --git a/docs/guide/wallets/private-keys.md b/docs/guide/wallets/private-keys.md index aa2077cfc28..adf20bcde20 100644 --- a/docs/guide/wallets/private-keys.md +++ b/docs/guide/wallets/private-keys.md @@ -19,7 +19,7 @@ A new wallet with a randomly generated private key can be created by supplying ` // or use an Address to create a wallet const someWallet: WalletLocked = Wallet.fromAddress(myWallet.address); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L154-L162) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L155-L163) --- @@ -33,7 +33,7 @@ Alternatively, you can create a wallet from a Private Key: // or directly from a private key unlockedWallet = Wallet.fromPrivateKey(PRIVATE_KEY); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L168-L173) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L169-L174) --- @@ -45,7 +45,7 @@ You can obtain an address to a private key using the `Signer` package // validate address expect(wallet.address).toEqual(signer.address); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L258-L262) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L259-L263) --- diff --git a/docs/guide/wallets/signing.md b/docs/guide/wallets/signing.md index bed1baabeea..4b286c8182f 100644 --- a/docs/guide/wallets/signing.md +++ b/docs/guide/wallets/signing.md @@ -22,7 +22,7 @@ Once you've instantiated your wallet in an unlocked state using one of the previ expect(wallet.publicKey).toBeTruthy(); expect(wallet.address).toEqual(recoveredAddress); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L196-L207) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L197-L208) --- diff --git a/docs/guide/wallets/test-wallets.md b/docs/guide/wallets/test-wallets.md index ebb0b453041..51f4066fe66 100644 --- a/docs/guide/wallets/test-wallets.md +++ b/docs/guide/wallets/test-wallets.md @@ -21,7 +21,7 @@ You'll often want to create one or more test wallets when testing your contracts // or use an Address to create a wallet const someWallet: WalletLocked = Wallet.fromAddress(myWallet.address); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L154-L162) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L155-L163) --- @@ -66,7 +66,7 @@ If you need multiple test wallets, they can be set up as follows: ]); expect(walletCBalances).toEqual([]); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L211-L245) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L212-L246) --- diff --git a/docs/packages/fuel-ts-address/classes/Address.md b/docs/packages/fuel-ts-address/classes/Address.md index c04ec7882c9..6d285f8b4af 100644 --- a/docs/packages/fuel-ts-address/classes/Address.md +++ b/docs/packages/fuel-ts-address/classes/Address.md @@ -274,6 +274,7 @@ Takes an optional string and returns back an Address **`Throws`** +Error thrown if the input string is not nilsy and cannot be resolved to a valid address format #### Parameters diff --git a/docs/packages/fuel-ts-contract/classes/Contract.md b/docs/packages/fuel-ts-contract/classes/Contract.md index c700f517df0..730b9111b79 100644 --- a/docs/packages/fuel-ts-contract/classes/Contract.md +++ b/docs/packages/fuel-ts-contract/classes/Contract.md @@ -18,19 +18,19 @@ nav_order: 1 ### constructor -• **new Contract**(`id`, `abi`, `walletOrProvider?`) +• **new Contract**(`id`, `abi`, `walletOrProvider`) #### Parameters -| Name | Type | Default value | -| :------ | :------ | :------ | -| `id` | `string` \| [`AbstractAddress`](internal-AbstractAddress.md) | `undefined` | -| `abi` | [`JsonAbi`](../namespaces/internal.md#jsonabi) \| `default` | `undefined` | -| `walletOrProvider` | ``null`` \| `default` \| [`BaseWalletLocked`](internal-BaseWalletLocked.md) | `null` | +| Name | Type | +| :------ | :------ | +| `id` | `string` \| [`AbstractAddress`](internal-AbstractAddress.md) | +| `abi` | [`JsonAbi`](../namespaces/internal.md#jsonabi) \| `default` | +| `walletOrProvider` | `default` \| [`BaseWalletLocked`](internal-BaseWalletLocked.md) | #### Defined in -[packages/contract/src/contracts/contract.ts:20](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L20) +[packages/contract/src/contracts/contract.ts:21](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L21) ## Properties @@ -40,7 +40,7 @@ nav_order: 1 #### Defined in -[packages/contract/src/contracts/contract.ts:18](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L18) +[packages/contract/src/contracts/contract.ts:19](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L19) ___ @@ -54,7 +54,7 @@ ___ #### Defined in -[packages/contract/src/contracts/contract.ts:14](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L14) +[packages/contract/src/contracts/contract.ts:15](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L15) ___ @@ -64,7 +64,7 @@ ___ #### Defined in -[packages/contract/src/contracts/contract.ts:16](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L16) +[packages/contract/src/contracts/contract.ts:17](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L17) ___ @@ -74,7 +74,7 @@ ___ #### Defined in -[packages/contract/src/contracts/contract.ts:15](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L15) +[packages/contract/src/contracts/contract.ts:16](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L16) ___ @@ -84,7 +84,7 @@ ___ #### Defined in -[packages/contract/src/contracts/contract.ts:17](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L17) +[packages/contract/src/contracts/contract.ts:18](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L18) ## Methods @@ -116,7 +116,29 @@ ___ #### Defined in -[packages/contract/src/contracts/contract.ts:58](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L58) +[packages/contract/src/contracts/contract.ts:59](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L59) + +___ + +### getBalance + +▸ **getBalance**(`assetId`): `Promise`<[`BN`](internal-BN.md)\> + +Get the balance for a given assset ID for this contract + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `assetId` | `BytesLike` | + +#### Returns + +`Promise`<[`BN`](internal-BN.md)\> + +#### Defined in + +[packages/contract/src/contracts/contract.ts:70](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L70) ___ @@ -136,4 +158,4 @@ ___ #### Defined in -[packages/contract/src/contracts/contract.ts:62](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L62) +[packages/contract/src/contracts/contract.ts:63](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract.ts#L63) diff --git a/docs/packages/fuel-ts-contract/classes/ContractFactory.md b/docs/packages/fuel-ts-contract/classes/ContractFactory.md index 230380153c0..caada0966c7 100644 --- a/docs/packages/fuel-ts-contract/classes/ContractFactory.md +++ b/docs/packages/fuel-ts-contract/classes/ContractFactory.md @@ -26,7 +26,7 @@ nav_order: 1 #### Defined in -[packages/contract/src/contracts/contract-factory.ts:31](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L31) +[packages/contract/src/contracts/contract-factory.ts:32](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L32) ## Properties @@ -36,7 +36,7 @@ nav_order: 1 #### Defined in -[packages/contract/src/contracts/contract-factory.ts:26](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L26) +[packages/contract/src/contracts/contract-factory.ts:27](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L27) ___ @@ -46,7 +46,7 @@ ___ #### Defined in -[packages/contract/src/contracts/contract-factory.ts:27](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L27) +[packages/contract/src/contracts/contract-factory.ts:28](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L28) ___ @@ -56,7 +56,7 @@ ___ #### Defined in -[packages/contract/src/contracts/contract-factory.ts:28](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L28) +[packages/contract/src/contracts/contract-factory.ts:29](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L29) ___ @@ -66,7 +66,7 @@ ___ #### Defined in -[packages/contract/src/contracts/contract-factory.ts:29](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L29) +[packages/contract/src/contracts/contract-factory.ts:30](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L30) ## Methods @@ -86,7 +86,32 @@ ___ #### Defined in -[packages/contract/src/contracts/contract-factory.ts:66](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L66) +[packages/contract/src/contracts/contract-factory.ts:68](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L68) + +___ + +### createTransactionRequest + +▸ **createTransactionRequest**(`deployContractOptions?`): `Object` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `deployContractOptions?` | [`DeployContractOptions`](../namespaces/internal.md#deploycontractoptions) | + +#### Returns + +`Object` + +| Name | Type | +| :------ | :------ | +| `contractId` | `string` | +| `transactionRequest` | [`CreateTransactionRequest`](internal-CreateTransactionRequest.md) | + +#### Defined in + +[packages/contract/src/contracts/contract-factory.ts:72](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L72) ___ @@ -106,4 +131,4 @@ ___ #### Defined in -[packages/contract/src/contracts/contract-factory.ts:70](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L70) +[packages/contract/src/contracts/contract-factory.ts:103](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L103) diff --git a/docs/packages/fuel-ts-contract/classes/internal-BaseTransactionRequest.md b/docs/packages/fuel-ts-contract/classes/internal-BaseTransactionRequest.md index 6d4e2f175f8..d833546933b 100644 --- a/docs/packages/fuel-ts-contract/classes/internal-BaseTransactionRequest.md +++ b/docs/packages/fuel-ts-contract/classes/internal-BaseTransactionRequest.md @@ -460,6 +460,20 @@ Pushes an output to the list without any side effects and returns the index ___ +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) + +___ + ### toTransaction ▸ `Abstract` **toTransaction**(): [`TransactionScript`](../namespaces/internal.md#transactionscript) \| [`TransactionCreate`](../namespaces/internal.md#transactioncreate) diff --git a/docs/packages/fuel-ts-contract/classes/internal-CreateTransactionRequest.md b/docs/packages/fuel-ts-contract/classes/internal-CreateTransactionRequest.md index 22ad89462b7..0f39a5bc9eb 100644 --- a/docs/packages/fuel-ts-contract/classes/internal-CreateTransactionRequest.md +++ b/docs/packages/fuel-ts-contract/classes/internal-CreateTransactionRequest.md @@ -34,7 +34,7 @@ nav_order: 1 #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:545](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L545) +[packages/providers/src/transaction-request/transaction-request.ts:549](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L549) ## Properties @@ -46,7 +46,7 @@ Witness index of contract bytecode to create #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:539](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L539) +[packages/providers/src/transaction-request/transaction-request.ts:543](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L543) ___ @@ -138,7 +138,7 @@ Salt #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:541](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L541) +[packages/providers/src/transaction-request/transaction-request.ts:545](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L545) ___ @@ -150,13 +150,13 @@ List of storage slots to initialize #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:543](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L543) +[packages/providers/src/transaction-request/transaction-request.ts:547](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L547) ___ ### type -• **type**: [`Create`](../enums/internal-TransactionType.md#create) +• **type**: [`Create`](../namespaces/internal.md#create) Type of the transaction @@ -166,7 +166,7 @@ Type of the transaction #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:537](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L537) +[packages/providers/src/transaction-request/transaction-request.ts:541](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L541) ___ @@ -254,7 +254,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:579](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L579) +[packages/providers/src/transaction-request/transaction-request.ts:583](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L583) ___ @@ -545,7 +545,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:572](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L572) +[packages/providers/src/transaction-request/transaction-request.ts:576](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L576) ___ @@ -601,6 +601,24 @@ Pushes an output to the list without any side effects and returns the index ___ +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Inherited from + +[BaseTransactionRequest](internal-BaseTransactionRequest.md).[toJSON](internal-BaseTransactionRequest.md#tojson) + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) + +___ + ### toTransaction ▸ **toTransaction**(): [`TransactionCreate`](../namespaces/internal.md#transactioncreate) @@ -615,7 +633,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:557](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L557) +[packages/providers/src/transaction-request/transaction-request.ts:561](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L561) ___ @@ -732,4 +750,4 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:529](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L529) +[packages/providers/src/transaction-request/transaction-request.ts:533](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L533) diff --git a/docs/packages/fuel-ts-contract/classes/internal-ScriptTransactionRequest.md b/docs/packages/fuel-ts-contract/classes/internal-ScriptTransactionRequest.md index c1c3074406f..39b23fc583f 100644 --- a/docs/packages/fuel-ts-contract/classes/internal-ScriptTransactionRequest.md +++ b/docs/packages/fuel-ts-contract/classes/internal-ScriptTransactionRequest.md @@ -34,7 +34,7 @@ nav_order: 1 #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:423](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L423) +[packages/providers/src/transaction-request/transaction-request.ts:427](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L427) ## Properties @@ -46,7 +46,7 @@ determined bytes offset for start of script data #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:421](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L421) +[packages/providers/src/transaction-request/transaction-request.ts:425](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L425) ___ @@ -138,7 +138,7 @@ Script to execute #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:417](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L417) +[packages/providers/src/transaction-request/transaction-request.ts:421](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L421) ___ @@ -150,7 +150,7 @@ Script input data (parameters) #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:419](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L419) +[packages/providers/src/transaction-request/transaction-request.ts:423](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L423) ___ @@ -166,7 +166,7 @@ Type of the transaction #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:415](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L415) +[packages/providers/src/transaction-request/transaction-request.ts:419](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L419) ___ @@ -253,7 +253,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:498](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L498) +[packages/providers/src/transaction-request/transaction-request.ts:502](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L502) ___ @@ -299,7 +299,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:483](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L483) +[packages/providers/src/transaction-request/transaction-request.ts:487](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L487) ___ @@ -393,7 +393,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:470](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L470) +[packages/providers/src/transaction-request/transaction-request.ts:474](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L474) ___ @@ -584,7 +584,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:443](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L443) +[packages/providers/src/transaction-request/transaction-request.ts:447](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L447) ___ @@ -598,7 +598,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:449](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L449) +[packages/providers/src/transaction-request/transaction-request.ts:453](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L453) ___ @@ -612,7 +612,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:455](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L455) +[packages/providers/src/transaction-request/transaction-request.ts:459](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L459) ___ @@ -691,7 +691,25 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:461](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L461) +[packages/providers/src/transaction-request/transaction-request.ts:465](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L465) + +___ + +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Inherited from + +[BaseTransactionRequest](internal-BaseTransactionRequest.md).[toJSON](internal-BaseTransactionRequest.md#tojson) + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) ___ @@ -709,7 +727,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:429](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L429) +[packages/providers/src/transaction-request/transaction-request.ts:433](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L433) ___ @@ -826,4 +844,4 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:407](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L407) +[packages/providers/src/transaction-request/transaction-request.ts:411](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L411) diff --git a/docs/packages/fuel-ts-contract/interfaces/internal-CreateTransactionRequestLike.md b/docs/packages/fuel-ts-contract/interfaces/internal-CreateTransactionRequestLike.md index 821b63463d6..d4641e9a59e 100644 --- a/docs/packages/fuel-ts-contract/interfaces/internal-CreateTransactionRequestLike.md +++ b/docs/packages/fuel-ts-contract/interfaces/internal-CreateTransactionRequestLike.md @@ -26,7 +26,7 @@ Witness index of contract bytecode to create #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:521](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L521) +[packages/providers/src/transaction-request/transaction-request.ts:525](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L525) ___ @@ -118,7 +118,7 @@ Salt #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:523](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L523) +[packages/providers/src/transaction-request/transaction-request.ts:527](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L527) ___ @@ -130,7 +130,7 @@ List of storage slots to initialize #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:525](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L525) +[packages/providers/src/transaction-request/transaction-request.ts:529](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L529) ___ diff --git a/docs/packages/fuel-ts-contract/interfaces/internal-ScriptTransactionRequestLike.md b/docs/packages/fuel-ts-contract/interfaces/internal-ScriptTransactionRequestLike.md index bd85dffba67..aaa2b5ff491 100644 --- a/docs/packages/fuel-ts-contract/interfaces/internal-ScriptTransactionRequestLike.md +++ b/docs/packages/fuel-ts-contract/interfaces/internal-ScriptTransactionRequestLike.md @@ -106,7 +106,7 @@ Script to execute #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:401](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L401) +[packages/providers/src/transaction-request/transaction-request.ts:405](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L405) ___ @@ -118,7 +118,7 @@ Script input data (parameters) #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:403](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L403) +[packages/providers/src/transaction-request/transaction-request.ts:407](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L407) ___ diff --git a/docs/packages/fuel-ts-contract/namespaces/internal.md b/docs/packages/fuel-ts-contract/namespaces/internal.md index 6206f5442f9..45c68a8762f 100644 --- a/docs/packages/fuel-ts-contract/namespaces/internal.md +++ b/docs/packages/fuel-ts-contract/namespaces/internal.md @@ -540,7 +540,7 @@ ___ #### Defined in -[packages/contract/src/contracts/contract-factory.ts:19](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L19) +[packages/contract/src/contracts/contract-factory.ts:20](https://github.com/FuelLabs/fuels-ts/blob/master/packages/contract/src/contracts/contract-factory.ts#L20) ___ @@ -706,7 +706,7 @@ A Fuel message #### Defined in -[packages/providers/src/message.ts:8](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L8) +[packages/providers/src/message.ts:9](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L9) ___ @@ -1249,7 +1249,7 @@ ___ | `salt` | `string` | Salt (b256) | | `storageSlots` | [`StorageSlot`](internal.md#storageslot)[] | List of inputs (StorageSlot[]) | | `storageSlotsCount` | `number` | Number of storage slots to initialize (u16) | -| `type` | [`Create`](../enums/internal-TransactionType.md#create) | - | +| `type` | [`Create`](internal.md#create) | - | | `witnesses` | [`Witness`](internal.md#witness)[] | List of witnesses (Witness[]) | | `witnessesCount` | `number` | Number of witnesses (u8) | @@ -1284,7 +1284,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:593](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L593) +[packages/providers/src/transaction-request/transaction-request.ts:597](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L597) ___ @@ -1300,11 +1300,11 @@ ___ ### TransactionRequestLike -Ƭ **TransactionRequestLike**: { `type`: [`Script`](internal.md#script) } & [`ScriptTransactionRequestLike`](../interfaces/internal-ScriptTransactionRequestLike.md) \| { `type`: [`Create`](../enums/internal-TransactionType.md#create) } & [`CreateTransactionRequestLike`](../interfaces/internal-CreateTransactionRequestLike.md) +Ƭ **TransactionRequestLike**: { `type`: [`Script`](internal.md#script) } & [`ScriptTransactionRequestLike`](../interfaces/internal-ScriptTransactionRequestLike.md) \| { `type`: [`Create`](internal.md#create) } & [`CreateTransactionRequestLike`](../interfaces/internal-CreateTransactionRequestLike.md) #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:594](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L594) +[packages/providers/src/transaction-request/transaction-request.ts:598](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L598) ___ diff --git a/docs/packages/fuel-ts-hasher/interfaces/internal-CreateTransactionRequestLike.md b/docs/packages/fuel-ts-hasher/interfaces/internal-CreateTransactionRequestLike.md index 56e9cd2003e..02fcd5c0c50 100644 --- a/docs/packages/fuel-ts-hasher/interfaces/internal-CreateTransactionRequestLike.md +++ b/docs/packages/fuel-ts-hasher/interfaces/internal-CreateTransactionRequestLike.md @@ -26,7 +26,7 @@ Witness index of contract bytecode to create #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:521](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L521) +[packages/providers/src/transaction-request/transaction-request.ts:525](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L525) ___ @@ -118,7 +118,7 @@ Salt #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:523](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L523) +[packages/providers/src/transaction-request/transaction-request.ts:527](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L527) ___ @@ -130,7 +130,7 @@ List of storage slots to initialize #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:525](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L525) +[packages/providers/src/transaction-request/transaction-request.ts:529](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L529) ___ diff --git a/docs/packages/fuel-ts-hasher/interfaces/internal-ScriptTransactionRequestLike.md b/docs/packages/fuel-ts-hasher/interfaces/internal-ScriptTransactionRequestLike.md index e8843699a7f..afc6d31bdff 100644 --- a/docs/packages/fuel-ts-hasher/interfaces/internal-ScriptTransactionRequestLike.md +++ b/docs/packages/fuel-ts-hasher/interfaces/internal-ScriptTransactionRequestLike.md @@ -106,7 +106,7 @@ Script to execute #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:401](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L401) +[packages/providers/src/transaction-request/transaction-request.ts:405](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L405) ___ @@ -118,7 +118,7 @@ Script input data (parameters) #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:403](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L403) +[packages/providers/src/transaction-request/transaction-request.ts:407](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L407) ___ diff --git a/docs/packages/fuel-ts-hasher/namespaces/internal.md b/docs/packages/fuel-ts-hasher/namespaces/internal.md index a1812f9e94e..aac5f14af1e 100644 --- a/docs/packages/fuel-ts-hasher/namespaces/internal.md +++ b/docs/packages/fuel-ts-hasher/namespaces/internal.md @@ -366,7 +366,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:594](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L594) +[packages/providers/src/transaction-request/transaction-request.ts:598](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L598) ___ diff --git a/docs/packages/fuel-ts-predicate/classes/Predicate.md b/docs/packages/fuel-ts-predicate/classes/Predicate.md index 251d0034a0c..c92f98b2d77 100644 --- a/docs/packages/fuel-ts-predicate/classes/Predicate.md +++ b/docs/packages/fuel-ts-predicate/classes/Predicate.md @@ -27,7 +27,7 @@ nav_order: 1 | Name | Type | | :------ | :------ | | `bytes` | `BytesLike` | -| `types?` | readonly [`JsonAbiFragmentType`](../interfaces/internal-JsonAbiFragmentType.md)[] | +| `types?` | [`JsonAbi`](../namespaces/internal.md#jsonabi) | #### Overrides @@ -35,7 +35,7 @@ nav_order: 1 #### Defined in -[packages/predicate/src/predicate.ts:14](https://github.com/FuelLabs/fuels-ts/blob/master/packages/predicate/src/predicate.ts#L14) +[packages/predicate/src/predicate.ts:20](https://github.com/FuelLabs/fuels-ts/blob/master/packages/predicate/src/predicate.ts#L20) ## Properties @@ -49,7 +49,7 @@ nav_order: 1 #### Defined in -[packages/predicate/src/predicate.ts:11](https://github.com/FuelLabs/fuels-ts/blob/master/packages/predicate/src/predicate.ts#L11) +[packages/predicate/src/predicate.ts:16](https://github.com/FuelLabs/fuels-ts/blob/master/packages/predicate/src/predicate.ts#L16) ___ @@ -63,7 +63,17 @@ ___ #### Defined in -[packages/predicate/src/predicate.ts:10](https://github.com/FuelLabs/fuels-ts/blob/master/packages/predicate/src/predicate.ts#L10) +[packages/predicate/src/predicate.ts:15](https://github.com/FuelLabs/fuels-ts/blob/master/packages/predicate/src/predicate.ts#L15) + +___ + +### interface + +• `Optional` **interface**: `default` + +#### Defined in + +[packages/predicate/src/predicate.ts:18](https://github.com/FuelLabs/fuels-ts/blob/master/packages/predicate/src/predicate.ts#L18) ___ @@ -77,4 +87,4 @@ ___ #### Defined in -[packages/predicate/src/predicate.ts:12](https://github.com/FuelLabs/fuels-ts/blob/master/packages/predicate/src/predicate.ts#L12) +[packages/predicate/src/predicate.ts:17](https://github.com/FuelLabs/fuels-ts/blob/master/packages/predicate/src/predicate.ts#L17) diff --git a/docs/packages/fuel-ts-predicate/interfaces/internal-JsonAbiFragment.md b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonAbiFragment.md new file mode 100644 index 00000000000..284f1fd16c8 --- /dev/null +++ b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonAbiFragment.md @@ -0,0 +1,51 @@ +--- +layout: default +title: JsonAbiFragment +parent: "@fuel-ts/predicate" +nav_order: 2 + +--- + +# Interface: JsonAbiFragment + +[@fuel-ts/predicate](../index.md).[internal](../namespaces/internal.md).JsonAbiFragment + +## Properties + +### inputs + +• `Optional` `Readonly` **inputs**: readonly [`JsonAbiFragmentType`](internal-JsonAbiFragmentType.md)[] + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:26](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L26) + +___ + +### name + +• `Readonly` **name**: `string` + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:25](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L25) + +___ + +### outputs + +• `Optional` `Readonly` **outputs**: readonly [`JsonAbiFragmentType`](internal-JsonAbiFragmentType.md)[] + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:27](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L27) + +___ + +### type + +• `Readonly` **type**: `string` + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:19](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L19) diff --git a/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbi.md b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbi.md new file mode 100644 index 00000000000..ed4c42bd103 --- /dev/null +++ b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbi.md @@ -0,0 +1,41 @@ +--- +layout: default +title: JsonFlatAbi +parent: "@fuel-ts/predicate" +nav_order: 2 + +--- + +# Interface: JsonFlatAbi + +[@fuel-ts/predicate](../index.md).[internal](../namespaces/internal.md).JsonFlatAbi + +## Properties + +### functions + +• `Readonly` **functions**: readonly [`JsonFlatAbiFragmentFunction`](internal-JsonFlatAbiFragmentFunction.md)[] + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:64](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L64) + +___ + +### loggedTypes + +• `Readonly` **loggedTypes**: readonly [`JsonFlatAbiFragmentLoggedType`](internal-JsonFlatAbiFragmentLoggedType.md)[] + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:63](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L63) + +___ + +### types + +• `Readonly` **types**: readonly [`JsonFlatAbiFragmentType`](internal-JsonFlatAbiFragmentType.md)[] + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:62](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L62) diff --git a/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentArgumentType.md b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentArgumentType.md new file mode 100644 index 00000000000..e61dd7ab6c7 --- /dev/null +++ b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentArgumentType.md @@ -0,0 +1,41 @@ +--- +layout: default +title: JsonFlatAbiFragmentArgumentType +parent: "@fuel-ts/predicate" +nav_order: 2 + +--- + +# Interface: JsonFlatAbiFragmentArgumentType + +[@fuel-ts/predicate](../index.md).[internal](../namespaces/internal.md).JsonFlatAbiFragmentArgumentType + +## Properties + +### name + +• `Optional` `Readonly` **name**: `string` + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:51](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L51) + +___ + +### type + +• `Readonly` **type**: `number` + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:50](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L50) + +___ + +### typeArguments + +• `Optional` `Readonly` **typeArguments**: ``null`` \| readonly [`JsonFlatAbiFragmentArgumentType`](internal-JsonFlatAbiFragmentArgumentType.md)[] + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:52](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L52) diff --git a/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentFunction.md b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentFunction.md new file mode 100644 index 00000000000..aec43dd43a5 --- /dev/null +++ b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentFunction.md @@ -0,0 +1,41 @@ +--- +layout: default +title: JsonFlatAbiFragmentFunction +parent: "@fuel-ts/predicate" +nav_order: 2 + +--- + +# Interface: JsonFlatAbiFragmentFunction + +[@fuel-ts/predicate](../index.md).[internal](../namespaces/internal.md).JsonFlatAbiFragmentFunction + +## Properties + +### inputs + +• `Optional` `Readonly` **inputs**: readonly [`JsonFlatAbiFragmentArgumentType`](internal-JsonFlatAbiFragmentArgumentType.md)[] + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:57](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L57) + +___ + +### name + +• `Readonly` **name**: `string` + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:56](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L56) + +___ + +### output + +• `Optional` `Readonly` **output**: `Readonly`<[`JsonFlatAbiFragmentArgumentType`](internal-JsonFlatAbiFragmentArgumentType.md)\> + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:58](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L58) diff --git a/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentLoggedType.md b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentLoggedType.md new file mode 100644 index 00000000000..41a7bd338cc --- /dev/null +++ b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentLoggedType.md @@ -0,0 +1,31 @@ +--- +layout: default +title: JsonFlatAbiFragmentLoggedType +parent: "@fuel-ts/predicate" +nav_order: 2 + +--- + +# Interface: JsonFlatAbiFragmentLoggedType + +[@fuel-ts/predicate](../index.md).[internal](../namespaces/internal.md).JsonFlatAbiFragmentLoggedType + +## Properties + +### logId + +• `Readonly` **logId**: `number` + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:45](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L45) + +___ + +### loggedType + +• `Readonly` **loggedType**: [`JsonFlatAbiFragmentArgumentType`](internal-JsonFlatAbiFragmentArgumentType.md) + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:46](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L46) diff --git a/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentType.md b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentType.md new file mode 100644 index 00000000000..03d8c78625a --- /dev/null +++ b/docs/packages/fuel-ts-predicate/interfaces/internal-JsonFlatAbiFragmentType.md @@ -0,0 +1,61 @@ +--- +layout: default +title: JsonFlatAbiFragmentType +parent: "@fuel-ts/predicate" +nav_order: 2 + +--- + +# Interface: JsonFlatAbiFragmentType + +[@fuel-ts/predicate](../index.md).[internal](../namespaces/internal.md).JsonFlatAbiFragmentType + +## Properties + +### components + +• `Optional` `Readonly` **components**: ``null`` \| readonly [`JsonFlatAbiFragmentArgumentType`](internal-JsonFlatAbiFragmentArgumentType.md)[] + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:40](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L40) + +___ + +### name + +• `Optional` `Readonly` **name**: `string` + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:39](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L39) + +___ + +### type + +• `Readonly` **type**: `string` + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:38](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L38) + +___ + +### typeId + +• `Readonly` **typeId**: `number` + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:37](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L37) + +___ + +### typeParameters + +• `Optional` `Readonly` **typeParameters**: ``null`` \| readonly `number`[] + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:41](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L41) diff --git a/docs/packages/fuel-ts-predicate/namespaces/internal.md b/docs/packages/fuel-ts-predicate/namespaces/internal.md index 2a7ec5661f2..4eadb74bc10 100644 --- a/docs/packages/fuel-ts-predicate/namespaces/internal.md +++ b/docs/packages/fuel-ts-predicate/namespaces/internal.md @@ -17,4 +17,22 @@ nav_order: 3 ## Interfaces +- [JsonAbiFragment](../interfaces/internal-JsonAbiFragment.md) - [JsonAbiFragmentType](../interfaces/internal-JsonAbiFragmentType.md) +- [JsonFlatAbi](../interfaces/internal-JsonFlatAbi.md) +- [JsonFlatAbiFragmentArgumentType](../interfaces/internal-JsonFlatAbiFragmentArgumentType.md) +- [JsonFlatAbiFragmentFunction](../interfaces/internal-JsonFlatAbiFragmentFunction.md) +- [JsonFlatAbiFragmentLoggedType](../interfaces/internal-JsonFlatAbiFragmentLoggedType.md) +- [JsonFlatAbiFragmentType](../interfaces/internal-JsonFlatAbiFragmentType.md) + +## Type Aliases + +### JsonAbi + +Ƭ **JsonAbi**: `ReadonlyArray`<[`JsonAbiFragment`](../interfaces/internal-JsonAbiFragment.md)\> \| [`JsonFlatAbi`](../interfaces/internal-JsonFlatAbi.md) + +A JSON ABI object + +#### Defined in + +[packages/abi-coder/src/json-abi.ts:71](https://github.com/FuelLabs/fuels-ts/blob/master/packages/abi-coder/src/json-abi.ts#L71) diff --git a/docs/packages/fuel-ts-providers/classes/CreateTransactionRequest.md b/docs/packages/fuel-ts-providers/classes/CreateTransactionRequest.md index c04b3196e36..fd921dbe69d 100644 --- a/docs/packages/fuel-ts-providers/classes/CreateTransactionRequest.md +++ b/docs/packages/fuel-ts-providers/classes/CreateTransactionRequest.md @@ -34,7 +34,7 @@ nav_order: 1 #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:545](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L545) +[packages/providers/src/transaction-request/transaction-request.ts:549](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L549) ## Properties @@ -46,7 +46,7 @@ Witness index of contract bytecode to create #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:539](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L539) +[packages/providers/src/transaction-request/transaction-request.ts:543](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L543) ___ @@ -138,7 +138,7 @@ Salt #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:541](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L541) +[packages/providers/src/transaction-request/transaction-request.ts:545](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L545) ___ @@ -150,7 +150,7 @@ List of storage slots to initialize #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:543](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L543) +[packages/providers/src/transaction-request/transaction-request.ts:547](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L547) ___ @@ -166,7 +166,7 @@ Type of the transaction #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:537](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L537) +[packages/providers/src/transaction-request/transaction-request.ts:541](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L541) ___ @@ -254,7 +254,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:579](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L579) +[packages/providers/src/transaction-request/transaction-request.ts:583](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L583) ___ @@ -545,7 +545,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:572](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L572) +[packages/providers/src/transaction-request/transaction-request.ts:576](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L576) ___ @@ -601,6 +601,24 @@ Pushes an output to the list without any side effects and returns the index ___ +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Inherited from + +[BaseTransactionRequest](internal-BaseTransactionRequest.md).[toJSON](internal-BaseTransactionRequest.md#tojson) + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) + +___ + ### toTransaction ▸ **toTransaction**(): [`TransactionCreate`](../namespaces/internal.md#transactioncreate) @@ -615,7 +633,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:557](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L557) +[packages/providers/src/transaction-request/transaction-request.ts:561](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L561) ___ @@ -732,4 +750,4 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:529](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L529) +[packages/providers/src/transaction-request/transaction-request.ts:533](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L533) diff --git a/docs/packages/fuel-ts-providers/classes/Provider.md b/docs/packages/fuel-ts-providers/classes/Provider.md index 5cff92cad59..770a6afe503 100644 --- a/docs/packages/fuel-ts-providers/classes/Provider.md +++ b/docs/packages/fuel-ts-providers/classes/Provider.md @@ -50,6 +50,7 @@ A provider for connecting to a Fuel node | `getCoin` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `coinId`: `string` }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetCoinQuery`](../namespaces/internal.md#gqlgetcoinquery)\> | | `getCoins` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `after?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`string`\> ; `before?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`string`\> ; `filter`: [`GqlCoinFilterInput`](../namespaces/internal.md#gqlcoinfilterinput) ; `first?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`number`\> ; `last?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`number`\> }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetCoinsQuery`](../namespaces/internal.md#gqlgetcoinsquery)\> | | `getContract` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `contractId`: `string` }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetContractQuery`](../namespaces/internal.md#gqlgetcontractquery)\> | +| `getContractBalance` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `asset`: `string` ; `contract`: `string` }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetContractBalanceQuery`](../namespaces/internal.md#gqlgetcontractbalancequery)\> | | `getInfo` | (`variables?`: [`Exact`](../namespaces/internal.md#exact)<{ `[key: string]`: `never`; }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetInfoQuery`](../namespaces/internal.md#gqlgetinfoquery)\> | | `getMessageProof` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `messageId`: `any` ; `transactionId`: `string` }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetMessageProofQuery`](../namespaces/internal.md#gqlgetmessageproofquery)\> | | `getMessages` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `after?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`string`\> ; `before?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`string`\> ; `first?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`number`\> ; `last?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`number`\> ; `owner`: `string` }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetMessagesQuery`](../namespaces/internal.md#gqlgetmessagesquery)\> | @@ -109,7 +110,13 @@ ___ ### buildSpendPredicate -▸ **buildSpendPredicate**(`predicate`, `amountToSpend`, `receiverAddress`, `predicateData?`, `assetId?`, `predicateOptions?`, `walletAddress?`): `Promise`<[`ScriptTransactionRequest`](ScriptTransactionRequest.md)\> +▸ **buildSpendPredicate**<`T`\>(`predicate`, `amountToSpend`, `receiverAddress`, `predicateData?`, `assetId?`, `predicateOptions?`, `walletAddress?`): `Promise`<[`ScriptTransactionRequest`](ScriptTransactionRequest.md)\> + +#### Type parameters + +| Name | +| :------ | +| `T` | #### Parameters @@ -118,7 +125,7 @@ ___ | `predicate` | [`AbstractPredicate`](internal-AbstractPredicate.md) | `undefined` | | `amountToSpend` | [`BigNumberish`](../namespaces/internal.md#bignumberish) | `undefined` | | `receiverAddress` | [`AbstractAddress`](internal-AbstractAddress.md) | `undefined` | -| `predicateData?` | [`InputValue`](../namespaces/internal.md#inputvalue)<`void`\>[] | `undefined` | +| `predicateData?` | [`InputValue`](../namespaces/internal.md#inputvalue)<`T`\>[] | `undefined` | | `assetId` | `BytesLike` | `NativeAssetId` | | `predicateOptions?` | [`BuildPredicateOptions`](../index.md#buildpredicateoptions) | `undefined` | | `walletAddress?` | [`AbstractAddress`](internal-AbstractAddress.md) | `undefined` | @@ -129,7 +136,7 @@ ___ #### Defined in -[packages/providers/src/provider.ts:715](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L715) +[packages/providers/src/provider.ts:731](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L731) ___ @@ -210,6 +217,7 @@ Create GraphQL client and set operations | `getCoin` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `coinId`: `string` }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetCoinQuery`](../namespaces/internal.md#gqlgetcoinquery)\> | | `getCoins` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `after?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`string`\> ; `before?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`string`\> ; `filter`: [`GqlCoinFilterInput`](../namespaces/internal.md#gqlcoinfilterinput) ; `first?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`number`\> ; `last?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`number`\> }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetCoinsQuery`](../namespaces/internal.md#gqlgetcoinsquery)\> | | `getContract` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `contractId`: `string` }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetContractQuery`](../namespaces/internal.md#gqlgetcontractquery)\> | +| `getContractBalance` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `asset`: `string` ; `contract`: `string` }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetContractBalanceQuery`](../namespaces/internal.md#gqlgetcontractbalancequery)\> | | `getInfo` | (`variables?`: [`Exact`](../namespaces/internal.md#exact)<{ `[key: string]`: `never`; }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetInfoQuery`](../namespaces/internal.md#gqlgetinfoquery)\> | | `getMessageProof` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `messageId`: `any` ; `transactionId`: `string` }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetMessageProofQuery`](../namespaces/internal.md#gqlgetmessageproofquery)\> | | `getMessages` | (`variables`: [`Exact`](../namespaces/internal.md#exact)<{ `after?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`string`\> ; `before?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`string`\> ; `first?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`number`\> ; `last?`: [`InputMaybe`](../namespaces/internal.md#inputmaybe)<`number`\> ; `owner`: `string` }\>, `requestHeaders?`: `HeadersInit`) => `Promise`<[`GqlGetMessagesQuery`](../namespaces/internal.md#gqlgetmessagesquery)\> | @@ -248,7 +256,7 @@ Returns the balance for the given owner for the given asset ID #### Defined in -[packages/providers/src/provider.ts:609](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L609) +[packages/providers/src/provider.ts:625](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L625) ___ @@ -271,7 +279,7 @@ Returns balances for the given owner #### Defined in -[packages/providers/src/provider.ts:625](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L625) +[packages/providers/src/provider.ts:641](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L641) ___ @@ -399,6 +407,29 @@ contract bytecode and contract id ___ +### getContractBalance + +▸ **getContractBalance**(`contractId`, `assetId`): `Promise`<[`BN`](internal-BN.md)\> + +Returns the balance for the given contract for the given asset ID + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `contractId` | [`AbstractAddress`](internal-AbstractAddress.md) | The contract ID to get the balance for | +| `assetId` | `BytesLike` | The asset ID of coins to get | + +#### Returns + +`Promise`<[`BN`](internal-BN.md)\> + +#### Defined in + +[packages/providers/src/provider.ts:609](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L609) + +___ + ### getMessageProof ▸ **getMessageProof**(`transactionId`, `messageId`): `Promise`<``null`` \| [`MessageProof`](../index.md#messageproof)\> @@ -418,7 +449,7 @@ Returns Message Proof for given transaction id and the message id from MessageOu #### Defined in -[packages/providers/src/provider.ts:676](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L676) +[packages/providers/src/provider.ts:692](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L692) ___ @@ -441,7 +472,7 @@ Returns message for the given address #### Defined in -[packages/providers/src/provider.ts:648](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L648) +[packages/providers/src/provider.ts:664](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L664) ___ @@ -626,7 +657,13 @@ ___ ### submitSpendPredicate -▸ **submitSpendPredicate**(`predicate`, `amountToSpend`, `receiverAddress`, `predicateData?`, `assetId?`, `options?`, `walletAddress?`): `Promise`<[`TransactionResult`](../index.md#transactionresult)<``"success"``, `void`\>\> +▸ **submitSpendPredicate**<`T`\>(`predicate`, `amountToSpend`, `receiverAddress`, `predicateData?`, `assetId?`, `options?`, `walletAddress?`): `Promise`<[`TransactionResult`](../index.md#transactionresult)<``"success"``, `void`\>\> + +#### Type parameters + +| Name | +| :------ | +| `T` | #### Parameters @@ -635,7 +672,7 @@ ___ | `predicate` | [`AbstractPredicate`](internal-AbstractPredicate.md) | `undefined` | | `amountToSpend` | [`BigNumberish`](../namespaces/internal.md#bignumberish) | `undefined` | | `receiverAddress` | [`AbstractAddress`](internal-AbstractAddress.md) | `undefined` | -| `predicateData?` | [`InputValue`](../namespaces/internal.md#inputvalue)<`void`\>[] | `undefined` | +| `predicateData?` | [`InputValue`](../namespaces/internal.md#inputvalue)<`T`\>[] | `undefined` | | `assetId` | `BytesLike` | `NativeAssetId` | | `options?` | [`BuildPredicateOptions`](../index.md#buildpredicateoptions) | `undefined` | | `walletAddress?` | [`AbstractAddress`](internal-AbstractAddress.md) | `undefined` | @@ -646,4 +683,4 @@ ___ #### Defined in -[packages/providers/src/provider.ts:769](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L769) +[packages/providers/src/provider.ts:785](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/provider.ts#L785) diff --git a/docs/packages/fuel-ts-providers/classes/ScriptTransactionRequest.md b/docs/packages/fuel-ts-providers/classes/ScriptTransactionRequest.md index d97023f9da3..84a42338286 100644 --- a/docs/packages/fuel-ts-providers/classes/ScriptTransactionRequest.md +++ b/docs/packages/fuel-ts-providers/classes/ScriptTransactionRequest.md @@ -34,7 +34,7 @@ nav_order: 1 #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:423](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L423) +[packages/providers/src/transaction-request/transaction-request.ts:427](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L427) ## Properties @@ -46,7 +46,7 @@ determined bytes offset for start of script data #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:421](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L421) +[packages/providers/src/transaction-request/transaction-request.ts:425](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L425) ___ @@ -138,7 +138,7 @@ Script to execute #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:417](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L417) +[packages/providers/src/transaction-request/transaction-request.ts:421](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L421) ___ @@ -150,7 +150,7 @@ Script input data (parameters) #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:419](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L419) +[packages/providers/src/transaction-request/transaction-request.ts:423](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L423) ___ @@ -166,7 +166,7 @@ Type of the transaction #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:415](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L415) +[packages/providers/src/transaction-request/transaction-request.ts:419](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L419) ___ @@ -253,7 +253,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:498](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L498) +[packages/providers/src/transaction-request/transaction-request.ts:502](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L502) ___ @@ -299,7 +299,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:483](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L483) +[packages/providers/src/transaction-request/transaction-request.ts:487](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L487) ___ @@ -393,7 +393,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:470](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L470) +[packages/providers/src/transaction-request/transaction-request.ts:474](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L474) ___ @@ -584,7 +584,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:443](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L443) +[packages/providers/src/transaction-request/transaction-request.ts:447](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L447) ___ @@ -598,7 +598,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:449](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L449) +[packages/providers/src/transaction-request/transaction-request.ts:453](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L453) ___ @@ -612,7 +612,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:455](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L455) +[packages/providers/src/transaction-request/transaction-request.ts:459](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L459) ___ @@ -691,7 +691,25 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:461](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L461) +[packages/providers/src/transaction-request/transaction-request.ts:465](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L465) + +___ + +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Inherited from + +[BaseTransactionRequest](internal-BaseTransactionRequest.md).[toJSON](internal-BaseTransactionRequest.md#tojson) + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) ___ @@ -709,7 +727,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:429](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L429) +[packages/providers/src/transaction-request/transaction-request.ts:433](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L433) ___ @@ -826,4 +844,4 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:407](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L407) +[packages/providers/src/transaction-request/transaction-request.ts:411](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L411) diff --git a/docs/packages/fuel-ts-providers/classes/internal-BaseTransactionRequest.md b/docs/packages/fuel-ts-providers/classes/internal-BaseTransactionRequest.md index e56eadd79ee..c54bf2787e1 100644 --- a/docs/packages/fuel-ts-providers/classes/internal-BaseTransactionRequest.md +++ b/docs/packages/fuel-ts-providers/classes/internal-BaseTransactionRequest.md @@ -460,6 +460,20 @@ Pushes an output to the list without any side effects and returns the index ___ +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) + +___ + ### toTransaction ▸ `Abstract` **toTransaction**(): [`TransactionScript`](../namespaces/internal.md#transactionscript) \| [`TransactionCreate`](../namespaces/internal.md#transactioncreate) diff --git a/docs/packages/fuel-ts-providers/index.md b/docs/packages/fuel-ts-providers/index.md index 1426ca63a86..3342ae8d45d 100644 --- a/docs/packages/fuel-ts-providers/index.md +++ b/docs/packages/fuel-ts-providers/index.md @@ -366,7 +366,7 @@ A Fuel message #### Defined in -[packages/providers/src/message.ts:8](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L8) +[packages/providers/src/message.ts:9](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L9) ___ @@ -402,7 +402,7 @@ Message Proof #### Defined in -[packages/providers/src/message.ts:21](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L21) +[packages/providers/src/message.ts:23](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L23) ___ @@ -583,7 +583,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:593](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L593) +[packages/providers/src/transaction-request/transaction-request.ts:597](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L597) ___ @@ -603,7 +603,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:594](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L594) +[packages/providers/src/transaction-request/transaction-request.ts:598](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L598) ___ @@ -803,26 +803,6 @@ ___ ## Functions -### arraifyFromUint8Array - -▸ **arraifyFromUint8Array**(`bytes`): `Uint8Array` - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `bytes` | `BytesLike` | - -#### Returns - -`Uint8Array` - -#### Defined in - -[packages/providers/src/util.ts:17](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/util.ts#L17) - -___ - ### buildBlockExplorerUrl ▸ **buildBlockExplorerUrl**(`__namedParameters`): `string` @@ -847,7 +827,7 @@ Builds a block explorer url based on and the given path, block explorer URL and #### Defined in -[packages/providers/src/util.ts:119](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/util.ts#L119) +[packages/providers/src/utils/block-explorer.ts:21](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/utils/block-explorer.ts#L21) ___ @@ -869,7 +849,7 @@ ___ #### Defined in -[packages/providers/src/util.ts:28](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/util.ts#L28) +[packages/providers/src/utils/fee.ts:7](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/utils/fee.ts#L7) ___ @@ -897,7 +877,7 @@ ___ #### Defined in -[packages/providers/src/util.ts:81](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/util.ts#L81) +[packages/providers/src/utils/fee.ts:20](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/utils/fee.ts#L20) ___ @@ -937,7 +917,7 @@ ___ #### Defined in -[packages/providers/src/util.ts:31](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/util.ts#L31) +[packages/providers/src/utils/fee.ts:10](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/utils/fee.ts#L10) ___ @@ -962,7 +942,7 @@ ___ #### Defined in -[packages/providers/src/util.ts:61](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/util.ts#L61) +[packages/providers/src/utils/receipts.ts:18](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/utils/receipts.ts#L18) ___ @@ -1066,6 +1046,29 @@ resource is RawMessage ___ +### normalizeJSON + +▸ **normalizeJSON**(`root`): `any` + +Stringify Transaction to a JSON object +compatible with the Transaction class constructor. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `root` | `any` | + +#### Returns + +`any` + +#### Defined in + +[packages/providers/src/utils/json.ts:39](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/utils/json.ts#L39) + +___ + ### outputify ▸ **outputify**(`value`): [`Output`](namespaces/internal.md#output) @@ -1088,13 +1091,13 @@ ___ ### sleep -▸ **sleep**(`time?`): `Promise`<`unknown`\> +▸ **sleep**(`time`): `Promise`<`unknown`\> #### Parameters -| Name | Type | Default value | -| :------ | :------ | :------ | -| `time` | `number` | `1000` | +| Name | Type | +| :------ | :------ | +| `time` | `number` | #### Returns @@ -1102,7 +1105,7 @@ ___ #### Defined in -[packages/providers/src/util.ts:41](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/util.ts#L41) +[packages/providers/src/utils/sleep.ts:1](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/utils/sleep.ts#L1) ___ @@ -1122,4 +1125,4 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:598](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L598) +[packages/providers/src/transaction-request/transaction-request.ts:602](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L602) diff --git a/docs/packages/fuel-ts-providers/interfaces/CreateTransactionRequestLike.md b/docs/packages/fuel-ts-providers/interfaces/CreateTransactionRequestLike.md index 7691dc0a5cb..fc01ceb8aaf 100644 --- a/docs/packages/fuel-ts-providers/interfaces/CreateTransactionRequestLike.md +++ b/docs/packages/fuel-ts-providers/interfaces/CreateTransactionRequestLike.md @@ -26,7 +26,7 @@ Witness index of contract bytecode to create #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:521](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L521) +[packages/providers/src/transaction-request/transaction-request.ts:525](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L525) ___ @@ -118,7 +118,7 @@ Salt #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:523](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L523) +[packages/providers/src/transaction-request/transaction-request.ts:527](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L527) ___ @@ -130,7 +130,7 @@ List of storage slots to initialize #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:525](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L525) +[packages/providers/src/transaction-request/transaction-request.ts:529](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L529) ___ diff --git a/docs/packages/fuel-ts-providers/interfaces/ScriptTransactionRequestLike.md b/docs/packages/fuel-ts-providers/interfaces/ScriptTransactionRequestLike.md index a9b7fb9d5ca..31be7c53dbf 100644 --- a/docs/packages/fuel-ts-providers/interfaces/ScriptTransactionRequestLike.md +++ b/docs/packages/fuel-ts-providers/interfaces/ScriptTransactionRequestLike.md @@ -106,7 +106,7 @@ Script to execute #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:401](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L401) +[packages/providers/src/transaction-request/transaction-request.ts:405](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L405) ___ @@ -118,7 +118,7 @@ Script input data (parameters) #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:403](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L403) +[packages/providers/src/transaction-request/transaction-request.ts:407](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L407) ___ diff --git a/docs/packages/fuel-ts-providers/namespaces/internal.md b/docs/packages/fuel-ts-providers/namespaces/internal.md index 5d10a54d4aa..551211acd69 100644 --- a/docs/packages/fuel-ts-providers/namespaces/internal.md +++ b/docs/packages/fuel-ts-providers/namespaces/internal.md @@ -356,7 +356,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1374 +packages/providers/src/__generated__/operations.ts:1396 ___ @@ -373,7 +373,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1396 +packages/providers/src/__generated__/operations.ts:1418 ___ @@ -407,7 +407,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1403 +packages/providers/src/__generated__/operations.ts:1425 ___ @@ -428,7 +428,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1284 +packages/providers/src/__generated__/operations.ts:1306 ___ @@ -447,7 +447,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1297 +packages/providers/src/__generated__/operations.ts:1319 ___ @@ -464,7 +464,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1116 +packages/providers/src/__generated__/operations.ts:1123 ___ @@ -481,7 +481,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1131 +packages/providers/src/__generated__/operations.ts:1138 ___ @@ -500,7 +500,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1174 +packages/providers/src/__generated__/operations.ts:1181 ___ @@ -544,7 +544,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:919 +packages/providers/src/__generated__/operations.ts:926 ___ @@ -561,7 +561,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1194 +packages/providers/src/__generated__/operations.ts:1201 ___ @@ -580,7 +580,28 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1216 +packages/providers/src/__generated__/operations.ts:1223 + +___ + +### GqlGetContractBalanceQuery + +Ƭ **GqlGetContractBalanceQuery**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `__typename` | ``"Query"`` | +| `contractBalance` | { `__typename`: ``"ContractBalance"`` ; `amount`: `string` ; `assetId`: `string` ; `contract`: `string` } | +| `contractBalance.__typename` | ``"ContractBalance"`` | +| `contractBalance.amount` | `string` | +| `contractBalance.assetId` | `string` | +| `contractBalance.contract` | `string` | + +#### Defined in + +packages/providers/src/__generated__/operations.ts:1291 ___ @@ -597,7 +618,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1274 +packages/providers/src/__generated__/operations.ts:1281 ___ @@ -617,7 +638,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:912 +packages/providers/src/__generated__/operations.ts:919 ___ @@ -634,7 +655,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1341 +packages/providers/src/__generated__/operations.ts:1363 ___ @@ -653,7 +674,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1316 +packages/providers/src/__generated__/operations.ts:1338 ___ @@ -670,7 +691,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1242 +packages/providers/src/__generated__/operations.ts:1249 ___ @@ -687,7 +708,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:955 +packages/providers/src/__generated__/operations.ts:962 ___ @@ -704,7 +725,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:990 +packages/providers/src/__generated__/operations.ts:997 ___ @@ -723,7 +744,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1074 +packages/providers/src/__generated__/operations.ts:1081 ___ @@ -742,7 +763,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1029 +packages/providers/src/__generated__/operations.ts:1036 ___ @@ -761,7 +782,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:905 +packages/providers/src/__generated__/operations.ts:912 ___ @@ -778,7 +799,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1409 +packages/providers/src/__generated__/operations.ts:1431 ___ @@ -813,7 +834,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1390 +packages/providers/src/__generated__/operations.ts:1412 ___ @@ -832,7 +853,7 @@ ___ #### Defined in -packages/providers/src/__generated__/operations.ts:1383 +packages/providers/src/__generated__/operations.ts:1405 ___ diff --git a/docs/packages/fuel-ts-wallet-manager/classes/WalletManager.md b/docs/packages/fuel-ts-wallet-manager/classes/WalletManager.md index 71c1d38a752..8e02e8b22bb 100644 --- a/docs/packages/fuel-ts-wallet-manager/classes/WalletManager.md +++ b/docs/packages/fuel-ts-wallet-manager/classes/WalletManager.md @@ -148,7 +148,7 @@ Deserialize all vaults to state #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:274](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L274) +[packages/wallet-manager/src/wallet-manager.ts:282](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L282) ___ @@ -172,7 +172,7 @@ Serialize all vaults to store #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:261](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L261) +[packages/wallet-manager/src/wallet-manager.ts:269](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L269) ___ @@ -308,7 +308,7 @@ typeof [`MnemonicVault`](internal-MnemonicVault.md) \| typeof [`PrivateKeyVault` #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:288](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L288) +[packages/wallet-manager/src/wallet-manager.ts:296](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L296) ___ @@ -362,7 +362,7 @@ Retrieve and decrypt WalletManager state from storage #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:233](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L233) +[packages/wallet-manager/src/wallet-manager.ts:241](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L241) ___ @@ -418,7 +418,7 @@ Store encrypted WalletManager state on storage #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:246](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L246) +[packages/wallet-manager/src/wallet-manager.ts:254](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L254) ___ @@ -464,4 +464,4 @@ Update WalletManager encryption passphrase #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:214](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L214) +[packages/wallet-manager/src/wallet-manager.ts:222](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L222) diff --git a/docs/packages/fuel-ts-wallet-manager/classes/internal-BaseTransactionRequest.md b/docs/packages/fuel-ts-wallet-manager/classes/internal-BaseTransactionRequest.md index 670ff05134e..a09babed816 100644 --- a/docs/packages/fuel-ts-wallet-manager/classes/internal-BaseTransactionRequest.md +++ b/docs/packages/fuel-ts-wallet-manager/classes/internal-BaseTransactionRequest.md @@ -460,6 +460,20 @@ Pushes an output to the list without any side effects and returns the index ___ +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) + +___ + ### toTransaction ▸ `Abstract` **toTransaction**(): [`TransactionScript`](../namespaces/internal.md#transactionscript) \| [`TransactionCreate`](../namespaces/internal.md#transactioncreate) diff --git a/docs/packages/fuel-ts-wallet-manager/classes/internal-CreateTransactionRequest.md b/docs/packages/fuel-ts-wallet-manager/classes/internal-CreateTransactionRequest.md index e276405456c..3d3f682ce5b 100644 --- a/docs/packages/fuel-ts-wallet-manager/classes/internal-CreateTransactionRequest.md +++ b/docs/packages/fuel-ts-wallet-manager/classes/internal-CreateTransactionRequest.md @@ -34,7 +34,7 @@ nav_order: 1 #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:545](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L545) +[packages/providers/src/transaction-request/transaction-request.ts:549](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L549) ## Properties @@ -46,7 +46,7 @@ Witness index of contract bytecode to create #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:539](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L539) +[packages/providers/src/transaction-request/transaction-request.ts:543](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L543) ___ @@ -138,7 +138,7 @@ Salt #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:541](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L541) +[packages/providers/src/transaction-request/transaction-request.ts:545](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L545) ___ @@ -150,7 +150,7 @@ List of storage slots to initialize #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:543](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L543) +[packages/providers/src/transaction-request/transaction-request.ts:547](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L547) ___ @@ -166,7 +166,7 @@ Type of the transaction #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:537](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L537) +[packages/providers/src/transaction-request/transaction-request.ts:541](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L541) ___ @@ -254,7 +254,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:579](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L579) +[packages/providers/src/transaction-request/transaction-request.ts:583](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L583) ___ @@ -545,7 +545,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:572](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L572) +[packages/providers/src/transaction-request/transaction-request.ts:576](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L576) ___ @@ -601,6 +601,24 @@ Pushes an output to the list without any side effects and returns the index ___ +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Inherited from + +[BaseTransactionRequest](internal-BaseTransactionRequest.md).[toJSON](internal-BaseTransactionRequest.md#tojson) + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) + +___ + ### toTransaction ▸ **toTransaction**(): [`TransactionCreate`](../namespaces/internal.md#transactioncreate) @@ -615,7 +633,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:557](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L557) +[packages/providers/src/transaction-request/transaction-request.ts:561](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L561) ___ @@ -732,4 +750,4 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:529](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L529) +[packages/providers/src/transaction-request/transaction-request.ts:533](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L533) diff --git a/docs/packages/fuel-ts-wallet-manager/classes/internal-ScriptTransactionRequest.md b/docs/packages/fuel-ts-wallet-manager/classes/internal-ScriptTransactionRequest.md index 6710705431a..6efbc9fa46e 100644 --- a/docs/packages/fuel-ts-wallet-manager/classes/internal-ScriptTransactionRequest.md +++ b/docs/packages/fuel-ts-wallet-manager/classes/internal-ScriptTransactionRequest.md @@ -34,7 +34,7 @@ nav_order: 1 #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:423](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L423) +[packages/providers/src/transaction-request/transaction-request.ts:427](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L427) ## Properties @@ -46,7 +46,7 @@ determined bytes offset for start of script data #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:421](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L421) +[packages/providers/src/transaction-request/transaction-request.ts:425](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L425) ___ @@ -138,7 +138,7 @@ Script to execute #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:417](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L417) +[packages/providers/src/transaction-request/transaction-request.ts:421](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L421) ___ @@ -150,7 +150,7 @@ Script input data (parameters) #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:419](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L419) +[packages/providers/src/transaction-request/transaction-request.ts:423](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L423) ___ @@ -166,7 +166,7 @@ Type of the transaction #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:415](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L415) +[packages/providers/src/transaction-request/transaction-request.ts:419](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L419) ___ @@ -253,7 +253,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:498](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L498) +[packages/providers/src/transaction-request/transaction-request.ts:502](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L502) ___ @@ -299,7 +299,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:483](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L483) +[packages/providers/src/transaction-request/transaction-request.ts:487](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L487) ___ @@ -393,7 +393,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:470](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L470) +[packages/providers/src/transaction-request/transaction-request.ts:474](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L474) ___ @@ -584,7 +584,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:443](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L443) +[packages/providers/src/transaction-request/transaction-request.ts:447](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L447) ___ @@ -598,7 +598,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:449](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L449) +[packages/providers/src/transaction-request/transaction-request.ts:453](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L453) ___ @@ -612,7 +612,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:455](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L455) +[packages/providers/src/transaction-request/transaction-request.ts:459](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L459) ___ @@ -691,7 +691,25 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:461](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L461) +[packages/providers/src/transaction-request/transaction-request.ts:465](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L465) + +___ + +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Inherited from + +[BaseTransactionRequest](internal-BaseTransactionRequest.md).[toJSON](internal-BaseTransactionRequest.md#tojson) + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) ___ @@ -709,7 +727,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:429](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L429) +[packages/providers/src/transaction-request/transaction-request.ts:433](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L433) ___ @@ -826,4 +844,4 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:407](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L407) +[packages/providers/src/transaction-request/transaction-request.ts:411](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L411) diff --git a/docs/packages/fuel-ts-wallet-manager/interfaces/internal-CreateTransactionRequestLike.md b/docs/packages/fuel-ts-wallet-manager/interfaces/internal-CreateTransactionRequestLike.md index 9d1b62ff56a..0533e7d978d 100644 --- a/docs/packages/fuel-ts-wallet-manager/interfaces/internal-CreateTransactionRequestLike.md +++ b/docs/packages/fuel-ts-wallet-manager/interfaces/internal-CreateTransactionRequestLike.md @@ -26,7 +26,7 @@ Witness index of contract bytecode to create #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:521](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L521) +[packages/providers/src/transaction-request/transaction-request.ts:525](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L525) ___ @@ -118,7 +118,7 @@ Salt #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:523](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L523) +[packages/providers/src/transaction-request/transaction-request.ts:527](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L527) ___ @@ -130,7 +130,7 @@ List of storage slots to initialize #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:525](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L525) +[packages/providers/src/transaction-request/transaction-request.ts:529](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L529) ___ diff --git a/docs/packages/fuel-ts-wallet-manager/interfaces/internal-ScriptTransactionRequestLike.md b/docs/packages/fuel-ts-wallet-manager/interfaces/internal-ScriptTransactionRequestLike.md index 687d079fd24..0f10c051c90 100644 --- a/docs/packages/fuel-ts-wallet-manager/interfaces/internal-ScriptTransactionRequestLike.md +++ b/docs/packages/fuel-ts-wallet-manager/interfaces/internal-ScriptTransactionRequestLike.md @@ -106,7 +106,7 @@ Script to execute #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:401](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L401) +[packages/providers/src/transaction-request/transaction-request.ts:405](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L405) ___ @@ -118,7 +118,7 @@ Script input data (parameters) #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:403](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L403) +[packages/providers/src/transaction-request/transaction-request.ts:407](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L407) ___ diff --git a/docs/packages/fuel-ts-wallet-manager/namespaces/internal.md b/docs/packages/fuel-ts-wallet-manager/namespaces/internal.md index ce59d4a2249..26450ba79ab 100644 --- a/docs/packages/fuel-ts-wallet-manager/namespaces/internal.md +++ b/docs/packages/fuel-ts-wallet-manager/namespaces/internal.md @@ -664,7 +664,7 @@ A Fuel message #### Defined in -[packages/providers/src/message.ts:8](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L8) +[packages/providers/src/message.ts:9](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L9) ___ @@ -1223,7 +1223,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:593](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L593) +[packages/providers/src/transaction-request/transaction-request.ts:597](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L597) ___ @@ -1243,7 +1243,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:594](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L594) +[packages/providers/src/transaction-request/transaction-request.ts:598](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L598) ___ diff --git a/docs/packages/fuel-ts-wallet/classes/internal-BaseTransactionRequest.md b/docs/packages/fuel-ts-wallet/classes/internal-BaseTransactionRequest.md index 93b5d4a1c5f..1fb449fab01 100644 --- a/docs/packages/fuel-ts-wallet/classes/internal-BaseTransactionRequest.md +++ b/docs/packages/fuel-ts-wallet/classes/internal-BaseTransactionRequest.md @@ -460,6 +460,20 @@ Pushes an output to the list without any side effects and returns the index ___ +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) + +___ + ### toTransaction ▸ `Abstract` **toTransaction**(): [`TransactionScript`](../namespaces/internal.md#transactionscript) \| [`TransactionCreate`](../namespaces/internal.md#transactioncreate) diff --git a/docs/packages/fuel-ts-wallet/classes/internal-CreateTransactionRequest.md b/docs/packages/fuel-ts-wallet/classes/internal-CreateTransactionRequest.md index 549416d8fda..5b92a14603c 100644 --- a/docs/packages/fuel-ts-wallet/classes/internal-CreateTransactionRequest.md +++ b/docs/packages/fuel-ts-wallet/classes/internal-CreateTransactionRequest.md @@ -34,7 +34,7 @@ nav_order: 1 #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:545](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L545) +[packages/providers/src/transaction-request/transaction-request.ts:549](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L549) ## Properties @@ -46,7 +46,7 @@ Witness index of contract bytecode to create #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:539](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L539) +[packages/providers/src/transaction-request/transaction-request.ts:543](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L543) ___ @@ -138,7 +138,7 @@ Salt #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:541](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L541) +[packages/providers/src/transaction-request/transaction-request.ts:545](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L545) ___ @@ -150,7 +150,7 @@ List of storage slots to initialize #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:543](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L543) +[packages/providers/src/transaction-request/transaction-request.ts:547](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L547) ___ @@ -166,7 +166,7 @@ Type of the transaction #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:537](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L537) +[packages/providers/src/transaction-request/transaction-request.ts:541](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L541) ___ @@ -254,7 +254,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:579](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L579) +[packages/providers/src/transaction-request/transaction-request.ts:583](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L583) ___ @@ -545,7 +545,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:572](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L572) +[packages/providers/src/transaction-request/transaction-request.ts:576](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L576) ___ @@ -601,6 +601,24 @@ Pushes an output to the list without any side effects and returns the index ___ +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Inherited from + +[BaseTransactionRequest](internal-BaseTransactionRequest.md).[toJSON](internal-BaseTransactionRequest.md#tojson) + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) + +___ + ### toTransaction ▸ **toTransaction**(): [`TransactionCreate`](../namespaces/internal.md#transactioncreate) @@ -615,7 +633,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:557](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L557) +[packages/providers/src/transaction-request/transaction-request.ts:561](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L561) ___ @@ -732,4 +750,4 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:529](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L529) +[packages/providers/src/transaction-request/transaction-request.ts:533](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L533) diff --git a/docs/packages/fuel-ts-wallet/classes/internal-ScriptTransactionRequest.md b/docs/packages/fuel-ts-wallet/classes/internal-ScriptTransactionRequest.md index da8902ea37d..11102b6111f 100644 --- a/docs/packages/fuel-ts-wallet/classes/internal-ScriptTransactionRequest.md +++ b/docs/packages/fuel-ts-wallet/classes/internal-ScriptTransactionRequest.md @@ -34,7 +34,7 @@ nav_order: 1 #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:423](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L423) +[packages/providers/src/transaction-request/transaction-request.ts:427](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L427) ## Properties @@ -46,7 +46,7 @@ determined bytes offset for start of script data #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:421](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L421) +[packages/providers/src/transaction-request/transaction-request.ts:425](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L425) ___ @@ -138,7 +138,7 @@ Script to execute #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:417](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L417) +[packages/providers/src/transaction-request/transaction-request.ts:421](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L421) ___ @@ -150,7 +150,7 @@ Script input data (parameters) #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:419](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L419) +[packages/providers/src/transaction-request/transaction-request.ts:423](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L423) ___ @@ -166,7 +166,7 @@ Type of the transaction #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:415](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L415) +[packages/providers/src/transaction-request/transaction-request.ts:419](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L419) ___ @@ -253,7 +253,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:498](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L498) +[packages/providers/src/transaction-request/transaction-request.ts:502](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L502) ___ @@ -299,7 +299,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:483](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L483) +[packages/providers/src/transaction-request/transaction-request.ts:487](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L487) ___ @@ -393,7 +393,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:470](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L470) +[packages/providers/src/transaction-request/transaction-request.ts:474](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L474) ___ @@ -584,7 +584,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:443](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L443) +[packages/providers/src/transaction-request/transaction-request.ts:447](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L447) ___ @@ -598,7 +598,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:449](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L449) +[packages/providers/src/transaction-request/transaction-request.ts:453](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L453) ___ @@ -612,7 +612,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:455](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L455) +[packages/providers/src/transaction-request/transaction-request.ts:459](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L459) ___ @@ -691,7 +691,25 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:461](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L461) +[packages/providers/src/transaction-request/transaction-request.ts:465](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L465) + +___ + +### toJSON + +▸ **toJSON**(): `any` + +#### Returns + +`any` + +#### Inherited from + +[BaseTransactionRequest](internal-BaseTransactionRequest.md).[toJSON](internal-BaseTransactionRequest.md#tojson) + +#### Defined in + +[packages/providers/src/transaction-request/transaction-request.ts:398](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L398) ___ @@ -709,7 +727,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:429](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L429) +[packages/providers/src/transaction-request/transaction-request.ts:433](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L433) ___ @@ -826,4 +844,4 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:407](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L407) +[packages/providers/src/transaction-request/transaction-request.ts:411](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L411) diff --git a/docs/packages/fuel-ts-wallet/interfaces/internal-CreateTransactionRequestLike.md b/docs/packages/fuel-ts-wallet/interfaces/internal-CreateTransactionRequestLike.md index da1fcca1a71..f948e2302dd 100644 --- a/docs/packages/fuel-ts-wallet/interfaces/internal-CreateTransactionRequestLike.md +++ b/docs/packages/fuel-ts-wallet/interfaces/internal-CreateTransactionRequestLike.md @@ -26,7 +26,7 @@ Witness index of contract bytecode to create #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:521](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L521) +[packages/providers/src/transaction-request/transaction-request.ts:525](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L525) ___ @@ -118,7 +118,7 @@ Salt #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:523](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L523) +[packages/providers/src/transaction-request/transaction-request.ts:527](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L527) ___ @@ -130,7 +130,7 @@ List of storage slots to initialize #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:525](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L525) +[packages/providers/src/transaction-request/transaction-request.ts:529](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L529) ___ diff --git a/docs/packages/fuel-ts-wallet/interfaces/internal-ScriptTransactionRequestLike.md b/docs/packages/fuel-ts-wallet/interfaces/internal-ScriptTransactionRequestLike.md index 42818ed7d7e..397b716fb38 100644 --- a/docs/packages/fuel-ts-wallet/interfaces/internal-ScriptTransactionRequestLike.md +++ b/docs/packages/fuel-ts-wallet/interfaces/internal-ScriptTransactionRequestLike.md @@ -106,7 +106,7 @@ Script to execute #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:401](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L401) +[packages/providers/src/transaction-request/transaction-request.ts:405](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L405) ___ @@ -118,7 +118,7 @@ Script input data (parameters) #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:403](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L403) +[packages/providers/src/transaction-request/transaction-request.ts:407](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L407) ___ diff --git a/docs/packages/fuel-ts-wallet/namespaces/internal.md b/docs/packages/fuel-ts-wallet/namespaces/internal.md index f090c4ce766..b8efdc46b30 100644 --- a/docs/packages/fuel-ts-wallet/namespaces/internal.md +++ b/docs/packages/fuel-ts-wallet/namespaces/internal.md @@ -656,7 +656,7 @@ A Fuel message #### Defined in -[packages/providers/src/message.ts:8](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L8) +[packages/providers/src/message.ts:9](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/message.ts#L9) ___ @@ -1215,7 +1215,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:593](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L593) +[packages/providers/src/transaction-request/transaction-request.ts:597](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L597) ___ @@ -1235,7 +1235,7 @@ ___ #### Defined in -[packages/providers/src/transaction-request/transaction-request.ts:594](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L594) +[packages/providers/src/transaction-request/transaction-request.ts:598](https://github.com/FuelLabs/fuels-ts/blob/master/packages/providers/src/transaction-request/transaction-request.ts#L598) ___ diff --git a/packages/abi-coder/CHANGELOG.md b/packages/abi-coder/CHANGELOG.md index 16aed388cb9..f77a23aac66 100644 --- a/packages/abi-coder/CHANGELOG.md +++ b/packages/abi-coder/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/math@0.30.0 + - @fuel-ts/versions@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/abi-coder/package.json b/packages/abi-coder/package.json index 38131cd552e..7856eeb43e1 100644 --- a/packages/abi-coder/package.json +++ b/packages/abi-coder/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/abi-coder", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/abi-typegen/CHANGELOG.md b/packages/abi-typegen/CHANGELOG.md index 2d3540c0d74..740420b9584 100644 --- a/packages/abi-typegen/CHANGELOG.md +++ b/packages/abi-typegen/CHANGELOG.md @@ -1,5 +1,12 @@ # @fuel-ts/abi-typegen +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/versions@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/abi-typegen/package.json b/packages/abi-typegen/package.json index cef8823c2b2..a8f83be4c50 100644 --- a/packages/abi-typegen/package.json +++ b/packages/abi-typegen/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/abi-typegen", - "version": "0.29.1", + "version": "0.30.0", "description": "Generates Typescript definitions from Sway ABI Json files", "author": "Fuel Labs (https://fuel.network/)", "typedocMain": "./src/index.ts", diff --git a/packages/address/CHANGELOG.md b/packages/address/CHANGELOG.md index 5e615fd6bbe..5d8c7b917cf 100644 --- a/packages/address/CHANGELOG.md +++ b/packages/address/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/constants@0.30.0 + - @fuel-ts/interfaces@0.30.0 + - @fuel-ts/keystore@0.30.0 + - @fuel-ts/versions@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/address/package.json b/packages/address/package.json index f7bc95b8b80..30a6bb3040b 100644 --- a/packages/address/package.json +++ b/packages/address/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/address", - "version": "0.29.1", + "version": "0.30.0", "description": "Utilities for encoding and decoding addresses", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/constants/CHANGELOG.md b/packages/constants/CHANGELOG.md index 0f2c5293e88..3ace0d31168 100644 --- a/packages/constants/CHANGELOG.md +++ b/packages/constants/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.30.0 + ## 0.29.1 ## 0.29.0 diff --git a/packages/constants/package.json b/packages/constants/package.json index 7bba89f0439..a1ff0e5036c 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/constants", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/contract/CHANGELOG.md b/packages/contract/CHANGELOG.md index 64b7db6becc..ea18efe58b9 100644 --- a/packages/contract/CHANGELOG.md +++ b/packages/contract/CHANGELOG.md @@ -1,5 +1,31 @@ # Change Log +## 0.30.0 + +### Minor Changes + +- [#764](https://github.com/FuelLabs/fuels-ts/pull/764) [`9eaad60`](https://github.com/FuelLabs/fuels-ts/commit/9eaad60e1aceffc31882175e9e81ad202bfe41f9) Thanks [@Torres-ssf](https://github.com/Torres-ssf)! - Make parameter walletOrProvider required in Contract constructor + +- [#712](https://github.com/FuelLabs/fuels-ts/pull/712) [`f521146`](https://github.com/FuelLabs/fuels-ts/commit/f521146c328a7fb2c98679ec3f0c9aa6df2f684f) Thanks [@Dhaiwat10](https://github.com/Dhaiwat10)! - Add `getBalance` method for contracts and `getContractBalance` method for providers + +### Patch Changes + +- [#766](https://github.com/FuelLabs/fuels-ts/pull/766) [`dcdfea0`](https://github.com/FuelLabs/fuels-ts/commit/dcdfea0f480998537b6c9aee7b06fda25c7ec531) Thanks [@luizstacio](https://github.com/luizstacio)! - Fix JSON stringify/parse for transaction request + +- Updated dependencies [[`dcdfea0`](https://github.com/FuelLabs/fuels-ts/commit/dcdfea0f480998537b6c9aee7b06fda25c7ec531), [`f521146`](https://github.com/FuelLabs/fuels-ts/commit/f521146c328a7fb2c98679ec3f0c9aa6df2f684f)]: + - @fuel-ts/providers@0.30.0 + - @fuel-ts/script@0.30.0 + - @fuel-ts/wallet@0.30.0 + - @fuel-ts/abi-coder@0.30.0 + - @fuel-ts/address@0.30.0 + - @fuel-ts/interfaces@0.30.0 + - @fuel-ts/keystore@0.30.0 + - @fuel-ts/math@0.30.0 + - @fuel-ts/merkle@0.30.0 + - @fuel-ts/sparsemerkle@0.30.0 + - @fuel-ts/transactions@0.30.0 + - @fuel-ts/versions@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/contract/package.json b/packages/contract/package.json index 0fa0fb66759..5a22ad7ec47 100644 --- a/packages/contract/package.json +++ b/packages/contract/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/contract", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/example-contract/CHANGELOG.md b/packages/example-contract/CHANGELOG.md index 9ce9c77528f..b8ded7ff1b9 100644 --- a/packages/example-contract/CHANGELOG.md +++ b/packages/example-contract/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - fuels@0.30.0 + - @fuel-ts/wallet@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/example-contract/package.json b/packages/example-contract/package.json index acc1a5a783b..3958b912396 100644 --- a/packages/example-contract/package.json +++ b/packages/example-contract/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/example-contract", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "scripts": { diff --git a/packages/fuels/CHANGELOG.md b/packages/fuels/CHANGELOG.md index 6da0a73216b..54a405c7791 100644 --- a/packages/fuels/CHANGELOG.md +++ b/packages/fuels/CHANGELOG.md @@ -1,5 +1,36 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies [[`2d70903`](https://github.com/FuelLabs/fuels-ts/commit/2d70903c980a738bee82bdd1181ed84545b6aa66), [`8649f0f`](https://github.com/FuelLabs/fuels-ts/commit/8649f0ff536af7124b199fe1a84b68160ec38942), [`9eaad60`](https://github.com/FuelLabs/fuels-ts/commit/9eaad60e1aceffc31882175e9e81ad202bfe41f9), [`dcdfea0`](https://github.com/FuelLabs/fuels-ts/commit/dcdfea0f480998537b6c9aee7b06fda25c7ec531), [`f521146`](https://github.com/FuelLabs/fuels-ts/commit/f521146c328a7fb2c98679ec3f0c9aa6df2f684f)]: + - @fuel-ts/wallet-manager@0.30.0 + - @fuel-ts/predicate@0.30.0 + - @fuel-ts/contract@0.30.0 + - @fuel-ts/providers@0.30.0 + - @fuel-ts/hasher@0.30.0 + - @fuel-ts/script@0.30.0 + - @fuel-ts/wallet@0.30.0 + - @fuel-ts/signer@0.30.0 + - @fuel-ts/hdwallet@0.30.0 + - @fuel-ts/abi-coder@0.30.0 + - @fuel-ts/abi-typegen@0.30.0 + - @fuel-ts/address@0.30.0 + - @fuel-ts/constants@0.30.0 + - @fuel-ts/interfaces@0.30.0 + - @fuel-ts/keystore@0.30.0 + - @fuel-ts/math@0.30.0 + - @fuel-ts/merkle@0.30.0 + - @fuel-ts/merkle-shared@0.30.0 + - @fuel-ts/merklesum@0.30.0 + - @fuel-ts/mnemonic@0.30.0 + - @fuel-ts/sparsemerkle@0.30.0 + - @fuel-ts/testcases@0.30.0 + - @fuel-ts/transactions@0.30.0 + - @fuel-ts/versions@0.30.0 + - @fuel-ts/wordlists@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/fuels/package.json b/packages/fuels/package.json index 599922bc9a6..64f17f3e2f0 100644 --- a/packages/fuels/package.json +++ b/packages/fuels/package.json @@ -1,6 +1,6 @@ { "name": "fuels", - "version": "0.29.1", + "version": "0.30.0", "description": "Fuel TS SDK", "author": "Fuel Labs (https://fuel.network/)", "typedoc": "src/index.ts", diff --git a/packages/hasher/CHANGELOG.md b/packages/hasher/CHANGELOG.md index a2582a78ab1..9a5bd3873f9 100644 --- a/packages/hasher/CHANGELOG.md +++ b/packages/hasher/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies [[`dcdfea0`](https://github.com/FuelLabs/fuels-ts/commit/dcdfea0f480998537b6c9aee7b06fda25c7ec531), [`f521146`](https://github.com/FuelLabs/fuels-ts/commit/f521146c328a7fb2c98679ec3f0c9aa6df2f684f)]: + - @fuel-ts/providers@0.30.0 + - @fuel-ts/constants@0.30.0 + - @fuel-ts/keystore@0.30.0 + - @fuel-ts/math@0.30.0 + - @fuel-ts/transactions@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/hasher/package.json b/packages/hasher/package.json index 732afde471e..5c36f52d328 100644 --- a/packages/hasher/package.json +++ b/packages/hasher/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/hasher", - "version": "0.29.1", + "version": "0.30.0", "description": "Sha256 hash utility for Fuel", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/hdwallet/CHANGELOG.md b/packages/hdwallet/CHANGELOG.md index 512295de8af..071260012e0 100644 --- a/packages/hdwallet/CHANGELOG.md +++ b/packages/hdwallet/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/signer@0.30.0 + - @fuel-ts/math@0.30.0 + - @fuel-ts/mnemonic@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/hdwallet/package.json b/packages/hdwallet/package.json index 0316a1c696c..b857ac02c04 100644 --- a/packages/hdwallet/package.json +++ b/packages/hdwallet/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/hdwallet", - "version": "0.29.1", + "version": "0.30.0", "description": "The Hierarchal Desterministic (HD) Wallet", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/interfaces/CHANGELOG.md b/packages/interfaces/CHANGELOG.md index 578968b1e77..262432d4927 100644 --- a/packages/interfaces/CHANGELOG.md +++ b/packages/interfaces/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.30.0 + ## 0.29.1 ## 0.29.0 diff --git a/packages/interfaces/package.json b/packages/interfaces/package.json index 36d7fbaee73..109134ab680 100644 --- a/packages/interfaces/package.json +++ b/packages/interfaces/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/interfaces", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/keystore/CHANGELOG.md b/packages/keystore/CHANGELOG.md index 301927b5be9..48c7c8ec99a 100644 --- a/packages/keystore/CHANGELOG.md +++ b/packages/keystore/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.30.0 + ## 0.29.1 ## 0.29.0 diff --git a/packages/keystore/package.json b/packages/keystore/package.json index 240e049ed36..2e04dd4e4b1 100644 --- a/packages/keystore/package.json +++ b/packages/keystore/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/keystore", - "version": "0.29.1", + "version": "0.30.0", "description": "Utilities for encrypting and decrypting data", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/math/CHANGELOG.md b/packages/math/CHANGELOG.md index e59e161e616..f507b458f06 100644 --- a/packages/math/CHANGELOG.md +++ b/packages/math/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/math/package.json b/packages/math/package.json index 5bb4ff8132e..dfaa23a673f 100644 --- a/packages/math/package.json +++ b/packages/math/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/math", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/merkle-shared/CHANGELOG.md b/packages/merkle-shared/CHANGELOG.md index 0f2007ad328..1934649a9e7 100644 --- a/packages/merkle-shared/CHANGELOG.md +++ b/packages/merkle-shared/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.30.0 + ## 0.29.1 ## 0.29.0 diff --git a/packages/merkle-shared/package.json b/packages/merkle-shared/package.json index bf3d25993d5..a27ff2e270f 100644 --- a/packages/merkle-shared/package.json +++ b/packages/merkle-shared/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/merkle-shared", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "src/index.ts", diff --git a/packages/merkle/CHANGELOG.md b/packages/merkle/CHANGELOG.md index 059336dc249..795003fd59b 100644 --- a/packages/merkle/CHANGELOG.md +++ b/packages/merkle/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/math@0.30.0 + - @fuel-ts/merkle-shared@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/merkle/package.json b/packages/merkle/package.json index 14c6ffb3061..be3c2575c81 100644 --- a/packages/merkle/package.json +++ b/packages/merkle/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/merkle", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/merklesum/CHANGELOG.md b/packages/merklesum/CHANGELOG.md index b130bead0d7..acc66921f73 100644 --- a/packages/merklesum/CHANGELOG.md +++ b/packages/merklesum/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/math@0.30.0 + - @fuel-ts/merkle-shared@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/merklesum/package.json b/packages/merklesum/package.json index 9e26f084cae..8befd78f9dd 100644 --- a/packages/merklesum/package.json +++ b/packages/merklesum/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/merklesum", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/mnemonic/CHANGELOG.md b/packages/mnemonic/CHANGELOG.md index 7379a77a22c..2ade33493f2 100644 --- a/packages/mnemonic/CHANGELOG.md +++ b/packages/mnemonic/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/keystore@0.30.0 + - @fuel-ts/wordlists@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/mnemonic/package.json b/packages/mnemonic/package.json index 1e0ad80f63c..6f3f15d8d1c 100644 --- a/packages/mnemonic/package.json +++ b/packages/mnemonic/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/mnemonic", - "version": "0.29.1", + "version": "0.30.0", "description": "Mnemonic implementation from BIP39", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/predicate/CHANGELOG.md b/packages/predicate/CHANGELOG.md index 6d37cd0788a..d09c22f2515 100644 --- a/packages/predicate/CHANGELOG.md +++ b/packages/predicate/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 0.30.0 + +### Minor Changes + +- [#746](https://github.com/FuelLabs/fuels-ts/pull/746) [`8649f0f`](https://github.com/FuelLabs/fuels-ts/commit/8649f0ff536af7124b199fe1a84b68160ec38942) Thanks [@camsjams](https://github.com/camsjams)! - Add support for main args + +### Patch Changes + +- Updated dependencies [[`9eaad60`](https://github.com/FuelLabs/fuels-ts/commit/9eaad60e1aceffc31882175e9e81ad202bfe41f9), [`dcdfea0`](https://github.com/FuelLabs/fuels-ts/commit/dcdfea0f480998537b6c9aee7b06fda25c7ec531), [`f521146`](https://github.com/FuelLabs/fuels-ts/commit/f521146c328a7fb2c98679ec3f0c9aa6df2f684f)]: + - @fuel-ts/contract@0.30.0 + - @fuel-ts/abi-coder@0.30.0 + - @fuel-ts/address@0.30.0 + - @fuel-ts/interfaces@0.30.0 + - @fuel-ts/versions@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/predicate/package.json b/packages/predicate/package.json index 9910fdcd3bf..74d3bbbec3a 100644 --- a/packages/predicate/package.json +++ b/packages/predicate/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/predicate", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/providers/CHANGELOG.md b/packages/providers/CHANGELOG.md index 37a32772cc2..e1e2d0efe7e 100644 --- a/packages/providers/CHANGELOG.md +++ b/packages/providers/CHANGELOG.md @@ -1,5 +1,24 @@ # Change Log +## 0.30.0 + +### Minor Changes + +- [#712](https://github.com/FuelLabs/fuels-ts/pull/712) [`f521146`](https://github.com/FuelLabs/fuels-ts/commit/f521146c328a7fb2c98679ec3f0c9aa6df2f684f) Thanks [@Dhaiwat10](https://github.com/Dhaiwat10)! - Add `getBalance` method for contracts and `getContractBalance` method for providers + +### Patch Changes + +- [#766](https://github.com/FuelLabs/fuels-ts/pull/766) [`dcdfea0`](https://github.com/FuelLabs/fuels-ts/commit/dcdfea0f480998537b6c9aee7b06fda25c7ec531) Thanks [@luizstacio](https://github.com/luizstacio)! - Fix JSON stringify/parse for transaction request + +- Updated dependencies []: + - @fuel-ts/abi-coder@0.30.0 + - @fuel-ts/address@0.30.0 + - @fuel-ts/constants@0.30.0 + - @fuel-ts/interfaces@0.30.0 + - @fuel-ts/keystore@0.30.0 + - @fuel-ts/math@0.30.0 + - @fuel-ts/transactions@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/providers/package.json b/packages/providers/package.json index ab339db7eb2..e814b4b78cb 100644 --- a/packages/providers/package.json +++ b/packages/providers/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/providers", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/script/CHANGELOG.md b/packages/script/CHANGELOG.md index 484a88b7474..6163d5dfcb6 100644 --- a/packages/script/CHANGELOG.md +++ b/packages/script/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies [[`dcdfea0`](https://github.com/FuelLabs/fuels-ts/commit/dcdfea0f480998537b6c9aee7b06fda25c7ec531), [`f521146`](https://github.com/FuelLabs/fuels-ts/commit/f521146c328a7fb2c98679ec3f0c9aa6df2f684f)]: + - @fuel-ts/providers@0.30.0 + - @fuel-ts/wallet@0.30.0 + - @fuel-ts/abi-coder@0.30.0 + - @fuel-ts/constants@0.30.0 + - @fuel-ts/math@0.30.0 + - @fuel-ts/transactions@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/script/package.json b/packages/script/package.json index 25b0ef37db1..2f245f32dae 100644 --- a/packages/script/package.json +++ b/packages/script/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/script", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/signer/CHANGELOG.md b/packages/signer/CHANGELOG.md index 25b8365ef47..5e7d65c1bb4 100644 --- a/packages/signer/CHANGELOG.md +++ b/packages/signer/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/hasher@0.30.0 + - @fuel-ts/address@0.30.0 + - @fuel-ts/keystore@0.30.0 + - @fuel-ts/math@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/signer/package.json b/packages/signer/package.json index 8ad0e5aa000..ccfd40c0522 100644 --- a/packages/signer/package.json +++ b/packages/signer/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/signer", - "version": "0.29.1", + "version": "0.30.0", "description": "Secp256k1 signer for the Fuel Network", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/sparsemerkle/CHANGELOG.md b/packages/sparsemerkle/CHANGELOG.md index 059336dc249..795003fd59b 100644 --- a/packages/sparsemerkle/CHANGELOG.md +++ b/packages/sparsemerkle/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/math@0.30.0 + - @fuel-ts/merkle-shared@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/sparsemerkle/package.json b/packages/sparsemerkle/package.json index a9108d1a90e..3219a536149 100644 --- a/packages/sparsemerkle/package.json +++ b/packages/sparsemerkle/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/sparsemerkle", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/testcases/CHANGELOG.md b/packages/testcases/CHANGELOG.md index dcb31ab0668..1b8898e1a9c 100644 --- a/packages/testcases/CHANGELOG.md +++ b/packages/testcases/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.30.0 + ## 0.29.1 ## 0.29.0 diff --git a/packages/testcases/package.json b/packages/testcases/package.json index 91fb25bd8ba..7d4a0eaf222 100644 --- a/packages/testcases/package.json +++ b/packages/testcases/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/testcases", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "files": [ diff --git a/packages/transactions/CHANGELOG.md b/packages/transactions/CHANGELOG.md index 2835a39c1db..2b8d0976146 100644 --- a/packages/transactions/CHANGELOG.md +++ b/packages/transactions/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/abi-coder@0.30.0 + - @fuel-ts/constants@0.30.0 + - @fuel-ts/math@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/transactions/package.json b/packages/transactions/package.json index 4fb02598684..1f1be7a1a6d 100644 --- a/packages/transactions/package.json +++ b/packages/transactions/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/transactions", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/versions/CHANGELOG.md b/packages/versions/CHANGELOG.md index 991ee8b9cc2..a068ae2d413 100644 --- a/packages/versions/CHANGELOG.md +++ b/packages/versions/CHANGELOG.md @@ -1,5 +1,7 @@ # @fuel-ts/versions +## 0.30.0 + ## 0.29.1 ## 0.29.0 diff --git a/packages/versions/package.json b/packages/versions/package.json index 0d9b25bdbff..de85186dc83 100644 --- a/packages/versions/package.json +++ b/packages/versions/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/versions", - "version": "0.29.1", + "version": "0.30.0", "description": "Validates supported versions of the Fuel toolchain", "author": "Fuel Labs (https://fuel.network/)", "typedocMain": "./src/index.ts", diff --git a/packages/wallet-manager/CHANGELOG.md b/packages/wallet-manager/CHANGELOG.md index 2e41de41bb8..369126bf0de 100644 --- a/packages/wallet-manager/CHANGELOG.md +++ b/packages/wallet-manager/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- [#756](https://github.com/FuelLabs/fuels-ts/pull/756) [`2d70903`](https://github.com/FuelLabs/fuels-ts/commit/2d70903c980a738bee82bdd1181ed84545b6aa66) Thanks [@luizstacio](https://github.com/luizstacio)! - Fix wallet manager state when unlock fails + +- Updated dependencies []: + - @fuel-ts/wallet@0.30.0 + - @fuel-ts/address@0.30.0 + - @fuel-ts/interfaces@0.30.0 + - @fuel-ts/keystore@0.30.0 + - @fuel-ts/mnemonic@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/wallet-manager/package.json b/packages/wallet-manager/package.json index a7d0ec9a226..c0436fdbab5 100644 --- a/packages/wallet-manager/package.json +++ b/packages/wallet-manager/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/wallet-manager", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/wallet/CHANGELOG.md b/packages/wallet/CHANGELOG.md index c3d0f0e660c..96ce4f894db 100644 --- a/packages/wallet/CHANGELOG.md +++ b/packages/wallet/CHANGELOG.md @@ -1,5 +1,22 @@ # Change Log +## 0.30.0 + +### Patch Changes + +- Updated dependencies [[`dcdfea0`](https://github.com/FuelLabs/fuels-ts/commit/dcdfea0f480998537b6c9aee7b06fda25c7ec531), [`f521146`](https://github.com/FuelLabs/fuels-ts/commit/f521146c328a7fb2c98679ec3f0c9aa6df2f684f)]: + - @fuel-ts/providers@0.30.0 + - @fuel-ts/hasher@0.30.0 + - @fuel-ts/signer@0.30.0 + - @fuel-ts/hdwallet@0.30.0 + - @fuel-ts/abi-coder@0.30.0 + - @fuel-ts/address@0.30.0 + - @fuel-ts/constants@0.30.0 + - @fuel-ts/interfaces@0.30.0 + - @fuel-ts/math@0.30.0 + - @fuel-ts/mnemonic@0.30.0 + - @fuel-ts/transactions@0.30.0 + ## 0.29.1 ### Patch Changes diff --git a/packages/wallet/package.json b/packages/wallet/package.json index 8c0f7a477f6..e67a2038308 100644 --- a/packages/wallet/package.json +++ b/packages/wallet/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/wallet", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/wordlists/CHANGELOG.md b/packages/wordlists/CHANGELOG.md index 2c3ae569162..88e7038ffd1 100644 --- a/packages/wordlists/CHANGELOG.md +++ b/packages/wordlists/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.30.0 + ## 0.29.1 ## 0.29.0 diff --git a/packages/wordlists/package.json b/packages/wordlists/package.json index d64fcc2f4b0..3f2ff5b1c54 100644 --- a/packages/wordlists/package.json +++ b/packages/wordlists/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/wordlists", - "version": "0.29.1", + "version": "0.30.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "src/index.ts",