From f04a075ec197c8fcb962bad48c70747359e10a20 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 20 Dec 2022 18:48:52 +0000 Subject: [PATCH] ci(changesets): versioning packages (#686) --- .changeset/angry-mails-heal.md | 5 -- .changeset/famous-eyes-guess.md | 6 -- .changeset/neat-needles-switch.md | 9 --- .changeset/red-rockets-glare.md | 5 -- .changeset/violet-planes-chew.md | 5 -- .changeset/young-panthers-argue.md | 7 -- docs/_data/versions.yml | 8 +- docs/guide/local-docs.md | 5 +- docs/guide/predicates/index.md | 2 +- .../send-and-spend-funds-from-predicates.md | 14 ++-- .../connecting-to-an-external-node.md | 48 +----------- docs/guide/providers/connection.md | 10 +-- docs/guide/providers/index.md | 11 +-- docs/guide/providers/querying-the-chain.md | 77 +------------------ docs/guide/testing/index.md | 11 +-- docs/guide/testing/testing-with-jest.md | 62 +-------------- docs/guide/types/address.md | 9 ++- docs/guide/types/bits256.md | 2 +- docs/guide/types/bytes32.md | 2 +- docs/guide/types/conversion.md | 2 +- docs/guide/wallets/access.md | 6 +- .../wallets/checking-balances-and-coins.md | 27 +------ .../wallets/encrypting-and-storing-wallets.md | 20 +---- docs/guide/wallets/index.md | 11 +-- docs/guide/wallets/mnemonic-wallet.md | 23 +----- docs/guide/wallets/private-keys.md | 45 +---------- docs/guide/wallets/signing.md | 2 +- docs/guide/wallets/test-wallets.md | 62 +-------------- docs/guide/wallets/transferring-assets.md | 30 +------- .../fuel-ts-address/classes/Address.md | 58 ++++++++++---- docs/packages/fuel-ts-address/index.md | 32 ++++++-- ...-StorageAbstract.md => StorageAbstract.md} | 24 ++---- .../classes/{internal-Vault.md => Vault.md} | 10 +-- .../classes/WalletManager.md | 42 +++++----- .../classes/internal-MnemonicVault.md | 14 ++-- .../classes/internal-PrivateKeyVault.md | 18 ++--- docs/packages/fuel-ts-wallet-manager/index.md | 68 ++++++++++++++++ .../interfaces/WalletManagerState.md | 21 +++++ .../namespaces/internal.md | 64 --------------- packages/abi-coder/CHANGELOG.md | 8 ++ packages/abi-coder/package.json | 2 +- packages/abi-typegen/CHANGELOG.md | 13 ++++ packages/abi-typegen/package.json | 2 +- packages/address/CHANGELOG.md | 14 ++++ packages/address/package.json | 2 +- packages/constants/CHANGELOG.md | 2 + packages/constants/package.json | 2 +- packages/contract/CHANGELOG.md | 18 +++++ packages/contract/package.json | 2 +- packages/example-contract/CHANGELOG.md | 8 ++ packages/example-contract/package.json | 2 +- packages/forc-bin/CHANGELOG.md | 6 ++ packages/forc-bin/package.json | 2 +- packages/fuels/CHANGELOG.md | 37 +++++++++ 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 | 10 +++ packages/predicate/package.json | 2 +- packages/providers/CHANGELOG.md | 15 ++++ 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 | 8 ++ 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 +- 95 files changed, 551 insertions(+), 646 deletions(-) delete mode 100644 .changeset/angry-mails-heal.md delete mode 100644 .changeset/famous-eyes-guess.md delete mode 100644 .changeset/neat-needles-switch.md delete mode 100644 .changeset/red-rockets-glare.md delete mode 100644 .changeset/violet-planes-chew.md delete mode 100644 .changeset/young-panthers-argue.md rename docs/packages/fuel-ts-wallet-manager/classes/{internal-StorageAbstract.md => StorageAbstract.md} (76%) rename docs/packages/fuel-ts-wallet-manager/classes/{internal-Vault.md => Vault.md} (88%) create mode 100644 docs/packages/fuel-ts-wallet-manager/interfaces/WalletManagerState.md diff --git a/.changeset/angry-mails-heal.md b/.changeset/angry-mails-heal.md deleted file mode 100644 index 28c2db74fcb..00000000000 --- a/.changeset/angry-mails-heal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fuel-ts/address": minor ---- - -Added new helper to take unknown string and turn into address diff --git a/.changeset/famous-eyes-guess.md b/.changeset/famous-eyes-guess.md deleted file mode 100644 index 900dd1ac482..00000000000 --- a/.changeset/famous-eyes-guess.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@fuel-ts/wallet-manager": patch ---- - -Return account after addAccount -Export types from WalletManager diff --git a/.changeset/neat-needles-switch.md b/.changeset/neat-needles-switch.md deleted file mode 100644 index eeafaa19ba4..00000000000 --- a/.changeset/neat-needles-switch.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@fuel-ts/abi-typegen": patch -"forc-bin": patch -"fuels": patch -"@fuel-ts/providers": patch -"@fuel-ts/versions": patch ---- - -Upgrading forc to `0.32.2` and fuel-core to `0.15.1` diff --git a/.changeset/red-rockets-glare.md b/.changeset/red-rockets-glare.md deleted file mode 100644 index 110bc41df02..00000000000 --- a/.changeset/red-rockets-glare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"fuels": patch ---- - -update docs diff --git a/.changeset/violet-planes-chew.md b/.changeset/violet-planes-chew.md deleted file mode 100644 index 3ebed48631e..00000000000 --- a/.changeset/violet-planes-chew.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fuel-ts/abi-typegen": patch ---- - -Fixing DTS declaration template for Structs diff --git a/.changeset/young-panthers-argue.md b/.changeset/young-panthers-argue.md deleted file mode 100644 index efaf26540f3..00000000000 --- a/.changeset/young-panthers-argue.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@fuel-ts/abi-typegen": patch -"fuels": patch -"@fuel-ts/versions": patch ---- - -Refactoring and fixing broken tests diff --git a/docs/_data/versions.yml b/docs/_data/versions.yml index 0aa5bfcab7c..70ce8343d6c 100644 --- a/docs/_data/versions.yml +++ b/docs/_data/versions.yml @@ -1,5 +1,5 @@ # generated-file -fuels: 0.26.0 -fuel-core: 0.14.0 -sway: 0.31.3 -forc: 0.31.3 +fuels: 0.27.0 +fuel-core: 0.15.1 +sway: 0.32.2 +forc: 0.32.2 diff --git a/docs/guide/local-docs.md b/docs/guide/local-docs.md index 2640c5e74bd..00805b13dcb 100644 --- a/docs/guide/local-docs.md +++ b/docs/guide/local-docs.md @@ -1,9 +1,8 @@ -# Local Docs - There are two parts to the fuels-ts repository documentation ## Part One: Typedoc -[typedoc](https://typedoc.org/) does the work of gathering all types, functions, classes, etc. from all of our source code. It will read through the `packages` folder and collect all that information and convert it into a markdown file, modifying the contents of [`docs/packages`](https://github.com/FuelLabs/fuels-ts/tree/master/docs/packages). +[typedoc](https://typedoc.org/) gathers all types, functions, classes, etc., from our source code. It will read through the `packages` folder, collect all that information, and convert it into a markdown file, modifying the contents of [`docs/packages`](https://github.com/FuelLabs/fuels-ts/tree/master/docs/packages). + Furthermore, I've enhanced typedoc to also build out the [Guide documentation](https://fuellabs.github.io/fuels-ts/guide/) with a custom plugin called `typedoc-plugin-guide-builder` that's in our [repo here](https://github.com/FuelLabs/fuels-ts/tree/master/scripts/typedoc-plugin-guide-builder) (We should move this to a standalone plugin later on). This portion of the typedoc process takes source files from [`docs/_guide`](https://github.com/FuelLabs/fuels-ts/tree/master/docs/_guide), runs them through the plugins and renders code snippets pulled from source code. diff --git a/docs/guide/predicates/index.md b/docs/guide/predicates/index.md index 36a5319d2e2..355be8e51f1 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#L324-L330) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L331-L337) --- 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 bc1f87ea43f..ff2f5cf4fe6 100644 --- a/docs/guide/predicates/send-and-spend-funds-from-predicates.md +++ b/docs/guide/predicates/send-and-spend-funds-from-predicates.md @@ -68,7 +68,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#L334-L348) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L341-L355) --- @@ -82,7 +82,7 @@ Next, let's add some coins to the wallets. await TestUtils.seedWallet(wallet2, [{ assetId: NativeAssetId, amount: bn(20_000) }]); await TestUtils.seedWallet(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#L350-L355) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L357-L362) --- @@ -109,7 +109,7 @@ Now we can load the predicate binary, and prepare some transaction variables. 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#L357-L375) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L364-L382) --- @@ -125,7 +125,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#L377-L384) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L384-L391) --- @@ -142,7 +142,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#L386-L394) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L393-L401) --- @@ -158,7 +158,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#L396-L403) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L403-L410) --- @@ -180,7 +180,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#L405-L418) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L412-L425) --- diff --git a/docs/guide/providers/connecting-to-an-external-node.md b/docs/guide/providers/connecting-to-an-external-node.md index 0467007b544..dea30ae56b6 100644 --- a/docs/guide/providers/connecting-to-an-external-node.md +++ b/docs/guide/providers/connecting-to-an-external-node.md @@ -1,35 +1,10 @@ ---- -title: "Connecting To An External Node" -parent: "Providers" -grand_parent: "Guide" -nav_order: 2 ---- - -[info]: this file is autogenerated - +[nav_order: 2] # Connecting to the Testnet or an external node We can interact with the `Testnet` node by using the following example. - -```typescript - import { Provider, WalletUnlocked } from 'fuels'; - const provider = new Provider('node-beta-2.fuel.network'); - // Setup a private key - const PRIVATE_KEY = 'a1447cd75accc6b71a976fd3401a1f6ce318d27ba660b0315ee6ac347bf39568'; - - // Create the wallet, passing provider - const wallet: WalletUnlocked = Wallet.fromPrivateKey(PRIVATE_KEY, provider); - - const signer = new Signer(PRIVATE_KEY); - // 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#L236-L250) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:provider-testnet) In the code example, we connected a new provider to the Testnet node and created a new wallet from a private key. @@ -45,21 +20,4 @@ In the code example, we connected a new provider to the Testnet node and created If you want to connect to another node just change the url or IP and port. For example, to connect to a local node that was created with `fuel-core` you can use: - -```typescript - import { Provider, WalletUnlocked } from 'fuels'; - const localProvider = new Provider('http://127.0.0.1:4000/graphql'); - // Setup a private key - const PRIVATE_KEY = 'a1447cd75accc6b71a976fd3401a1f6ce318d27ba660b0315ee6ac347bf39568'; - - // Create the wallet, passing provider - const wallet: WalletUnlocked = Wallet.fromPrivateKey(PRIVATE_KEY, localProvider); - - const signer = new Signer(PRIVATE_KEY); - // 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#L254-L266) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:provider-local) diff --git a/docs/guide/providers/connection.md b/docs/guide/providers/connection.md index 4748062479e..aa03a53794c 100644 --- a/docs/guide/providers/connection.md +++ b/docs/guide/providers/connection.md @@ -1,12 +1,4 @@ ---- -title: "Connection" -parent: "Providers" -grand_parent: "Guide" -nav_order: 1 ---- - -[info]: this file is autogenerated - +[nav_order: 1] # Connecting to a Fuel node diff --git a/docs/guide/providers/index.md b/docs/guide/providers/index.md index f97e7fe4e03..a83fad6caad 100644 --- a/docs/guide/providers/index.md +++ b/docs/guide/providers/index.md @@ -1,13 +1,4 @@ ---- -title: "Providers" -parent: "Guide" -has_children: true -has_toc: false -nav_order: 3 ---- - -[info]: this file is autogenerated - +[nav_order: 3] # Providers diff --git a/docs/guide/providers/querying-the-chain.md b/docs/guide/providers/querying-the-chain.md index 6f68554adce..0f8463de52a 100644 --- a/docs/guide/providers/querying-the-chain.md +++ b/docs/guide/providers/querying-the-chain.md @@ -1,12 +1,4 @@ ---- -title: "Querying The Chain" -parent: "Providers" -grand_parent: "Guide" -nav_order: 3 ---- - -[info]: this file is autogenerated - +[nav_order: 3] # Interacting with the blockchain @@ -28,77 +20,16 @@ See [connecting](./connecting.md) This method returns all coins (of an optional given asset ID) from a wallet, including spent ones. - -```typescript - import { Provider, TestUtils } from 'fuels'; - const provider = new Provider('http://127.0.0.1:4000/graphql'); - const assetIdA = '0x0101010101010101010101010101010101010101010101010101010101010101'; - - const wallet = await TestUtils.generateTestWallet(provider, [ - [42, NativeAssetId], - [100, assetIdA], - ]); - - // get single coin - const coin = await wallet.getCoins(NativeAssetId); - - // get all coins - const coins = await wallet.getCoins(); - - expect(coin.length).toEqual(1); - expect(coin).toEqual([ - expect.objectContaining({ - assetId: NativeAssetId, - amount: bn(42), - }), - ]); - expect(coins).toEqual([ - expect.objectContaining({ - assetId: NativeAssetId, - amount: bn(42), - }), - expect.objectContaining({ - 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#L270-L303) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:wallet-query) ## Get spendable resources from an address The last argument says how much you want to spend. This method returns only spendable, i.e., unspent coins (of a given asset ID). If you ask for more spendable than the amount of unspent coins you have, it returns an error. - -```typescript - const spendableResources = await wallet.getResourcesToSpend([ - { amount: 32, assetId: NativeAssetId, max: 42 }, - { amount: 50, assetId: assetIdA }, - ]); - 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#L313-L320) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:wallet-get-spendable-resources) ## Get balances from an address Get all the spendable balances of all assets for an address. This is different from getting the coins because we only return the numbers (the sum of UTXOs coins amount for each asset id) and not the UTXOs coins themselves. - -```typescript - const walletBalances = await wallet.getBalances(); - expect(walletBalances).toEqual([ - { assetId: NativeAssetId, amount: bn(42) }, - { 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#L305-L311) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:wallet-get-balances) diff --git a/docs/guide/testing/index.md b/docs/guide/testing/index.md index af55a154b99..714803169a1 100644 --- a/docs/guide/testing/index.md +++ b/docs/guide/testing/index.md @@ -1,13 +1,4 @@ ---- -title: "Testing" -parent: "Guide" -has_children: true -has_toc: false -nav_order: 7 ---- - -[info]: this file is autogenerated - +[nav_order: 7] # Testing diff --git a/docs/guide/testing/testing-with-jest.md b/docs/guide/testing/testing-with-jest.md index bd7b14f042b..5b3c45a333a 100644 --- a/docs/guide/testing/testing-with-jest.md +++ b/docs/guide/testing/testing-with-jest.md @@ -1,67 +1,9 @@ ---- -title: "Testing With Jest" -parent: "Testing" -grand_parent: "Guide" ---- - -[info]: this file is autogenerated # Testing with Jest As noted in [the testing intro](./index.md), you are free to test your Sway and TS-SDK code with any JS framework available. Below we have an example of how to load and test a contract using Jest, but the general principles and steps are the same for any testing harness. Here is a simple Sway program that takes an input and then returns it: - -```rust -contract; - -abi ExampleContract { - fn return_input(input: u64) -> u64; -} - -impl ExampleContract for Contract { - fn return_input(input: u64) -> u64 { - input - } -} -``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/example-contract/src/main.sw#L1-L13) - ---- - +[@code:rust](./packages/example-contract/src/main.sw#typedoc:Testing-with-jest-contract) Here is JavaScript code testing the above program using a conventional Jest setup: - -```typescript -import fs from 'fs'; -import { ContractFactory, NativeAssetId, Provider, TestUtils, toHex } from 'fuels'; -import path from 'path'; - -import { ExampleContractAbi__factory } from './example-contract-types'; - -describe('ExampleContract', () => { - it('should return the input', async () => { - const provider = new Provider('http://127.0.0.1:4000/graphql'); - const wallet = await TestUtils.generateTestWallet(provider, [[1_000, NativeAssetId]]); - - // Deploy - const bytecode = fs.readFileSync(path.join(__dirname, '../out/debug/example-contract.bin')); - const factory = new ContractFactory(bytecode, ExampleContractAbi__factory.abi, wallet); - const contract = await factory.deployContract(); - - // Call - const { value } = await contract.functions.return_input(1337).call(); - - // Assert - expect(value.toHex()).toEqual(toHex(1337)); - - // You can also make a call using the factory - const contractInstance = ExampleContractAbi__factory.connect(contract.id, wallet); - const { value: v2 } = await contractInstance.functions.return_input(1337).call(); - expect(v2.toHex()).toBe(toHex(1337)); - }); -}); -``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/example-contract/src/example-contract.test.ts#L1-L30) - ---- - +[@code:typescript](./packages/example-contract/src/example-contract.test.ts#typedoc:Testing-with-jest) diff --git a/docs/guide/types/address.md b/docs/guide/types/address.md index 63b81219dbc..0dd5d650e02 100644 --- a/docs/guide/types/address.md +++ b/docs/guide/types/address.md @@ -86,11 +86,18 @@ You can also use a number of utilities as part of the Address Class: const addressCloneFromBech = Address.fromString(address.toString()); const addressCloneFromB256 = Address.fromString(address.toB256()); + // if you aren't sure where the address comes from, use fromDynamicInput + const dataFromInput: string = + '0xf1e92c42b90934aa6372e30bc568a326f6e66a1a0288595e6e3fbd392a4f3e6e'; + // if the input string can't be resolved this will throw an error + const someAddress = Address.fromDynamicInput(dataFromInput); + // you can verify equality using the helper functions expect(address.equals(addressCloneFromBech)).toBeTruthy(); expect(addressCloneFromBech.toString()).toEqual(addressCloneFromB256.toString()); + expect(someAddress).toBeTruthy(); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L69-L80) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L69-L87) --- diff --git a/docs/guide/types/bits256.md b/docs/guide/types/bits256.md index eea71275f1b..98814d1b487 100644 --- a/docs/guide/types/bits256.md +++ b/docs/guide/types/bits256.md @@ -28,7 +28,7 @@ Here are some example tools in the SDK: // a string b256 can be safely passed into hexlify without mangling expect(randomB256).toEqual(hexlify(randomB256)); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L100-L115) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L107-L122) --- diff --git a/docs/guide/types/bytes32.md b/docs/guide/types/bytes32.md index bf28fa701da..9136c82efd5 100644 --- a/docs/guide/types/bytes32.md +++ b/docs/guide/types/bytes32.md @@ -25,7 +25,7 @@ These are the main ways of creating a `Bytes32`: // a byte32 string can be safely passed into hexlify more than once without mangling expect(zeroed32Bytes).toEqual(hexlify(zeroed32Bytes)); ``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L84-L96) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L91-L103) --- diff --git a/docs/guide/types/conversion.md b/docs/guide/types/conversion.md index fee30d81296..c73be9c9414 100644 --- a/docs/guide/types/conversion.md +++ b/docs/guide/types/conversion.md @@ -30,7 +30,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#L119-L138) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L126-L145) --- diff --git a/docs/guide/wallets/access.md b/docs/guide/wallets/access.md index 630bc1db6c3..63bf3c867fa 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#L142-L150) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L149-L157) --- @@ -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#L154-L162) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L161-L169) --- @@ -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#L164-L166) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L171-L173) --- diff --git a/docs/guide/wallets/checking-balances-and-coins.md b/docs/guide/wallets/checking-balances-and-coins.md index 0d26a772e74..cd439fb11c9 100644 --- a/docs/guide/wallets/checking-balances-and-coins.md +++ b/docs/guide/wallets/checking-balances-and-coins.md @@ -1,32 +1,9 @@ ---- -title: "Checking Balances And Coins" -parent: "Wallets" -grand_parent: "Guide" ---- - -[info]: this file is autogenerated # Checking balances and coins First, one should remember that, with UTXOs, each _coin_ is unique. Each UTXO corresponds to a unique _coin_, and said _coin_ has a corresponding _amount_ (the same way a dollar bill has either 10$ or 5$ face value). So, when you want to query the balance for a given asset ID, you want to query the sum of the amount in each unspent coin. This querying is done very easily with a wallet: - -```typescript - 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#L168-L171) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:wallet-check-balance) If you want to query all the balances (i.e., get the balance for each asset ID in that wallet), then it is as simple as: - -```typescript - 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#L173-L176) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:wallet-check-balances) diff --git a/docs/guide/wallets/encrypting-and-storing-wallets.md b/docs/guide/wallets/encrypting-and-storing-wallets.md index 8e6d1fb8949..4b79a8828a8 100644 --- a/docs/guide/wallets/encrypting-and-storing-wallets.md +++ b/docs/guide/wallets/encrypting-and-storing-wallets.md @@ -1,10 +1,3 @@ ---- -title: "Encrypting And Storing Wallets" -parent: "Wallets" -grand_parent: "Guide" ---- - -[info]: this file is autogenerated # Encrypting and storing wallets ## Creating a wallet and storing an encrypted JSON wallet on disk @@ -13,18 +6,7 @@ You can also manage a wallet using [JSON wallets](https://cryptobook.nakov.com/s You can create a random wallet and, at the same time, encrypt and store it. Then, later, you can recover the wallet if you know the master password: - -```typescript - const walletManager = new WalletManager(); - const password = '0b540281-f87b-49ca-be37-2264c7f260f7'; - const wallet = Wallet.generate(); - - await walletManager.unlock(password); -``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.test.ts#L123-L129) - ---- - +[@code:typescript](./packages/wallet-manager/src/wallet-manager.test.ts#typedoc:wallet-manager-create) ## Encrypting and storing a wallet created from a mnemonic or private key diff --git a/docs/guide/wallets/index.md b/docs/guide/wallets/index.md index 13639c145a4..5ec0e573df6 100644 --- a/docs/guide/wallets/index.md +++ b/docs/guide/wallets/index.md @@ -1,13 +1,4 @@ ---- -title: "Wallets" -parent: "Guide" -has_children: true -has_toc: false -nav_order: 2 ---- - -[info]: this file is autogenerated - +[nav_order: 2] # Managing wallets diff --git a/docs/guide/wallets/mnemonic-wallet.md b/docs/guide/wallets/mnemonic-wallet.md index 2a472113dcc..39c36cc0dd3 100644 --- a/docs/guide/wallets/mnemonic-wallet.md +++ b/docs/guide/wallets/mnemonic-wallet.md @@ -1,10 +1,3 @@ ---- -title: "Mnemonic Wallet" -parent: "Wallets" -grand_parent: "Guide" ---- - -[info]: this file is autogenerated # Creating a wallet from mnemonic phrases A mnemonic phrase is a cryptographically-generated sequence of words that's used to derive a private key. For instance: `"oblige salon price punch saddle immune slogan rare snap desert retire surprise";` would generate the address `0xdf9d0e6c6c5f5da6e82e5e1a77974af6642bdb450a10c43f0c6910a212600185`. @@ -15,18 +8,4 @@ The SDK gives you two wallets from mnemonic instantiation methods: one that take Here's how you can create wallets with both mnemonic phrases and derivation paths: - -```typescript - const walletManager = new WalletManager(); - const password = '0b540281-f87b-49ca-be37-2264c7f260f7'; - - await walletManager.unlock(password); - - // Add a vault of type mnemonic - await walletManager.addVault(config); - -``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.test.ts#L13-L22) - ---- - +[@code:typescript](./packages/wallet-manager/src/wallet-manager.test.ts#typedoc:wallet-manager-mnemonic) diff --git a/docs/guide/wallets/private-keys.md b/docs/guide/wallets/private-keys.md index 1e677483baf..5018180d2eb 100644 --- a/docs/guide/wallets/private-keys.md +++ b/docs/guide/wallets/private-keys.md @@ -1,51 +1,12 @@ ---- -title: "Private Keys" -parent: "Wallets" -grand_parent: "Guide" ---- - -[info]: this file is autogenerated # Creating a wallet from a private key A new wallet with a randomly generated private key can be created by supplying `Wallet.generate`. - -```typescript - import { Wallet, WalletLocked, WalletUnlocked } from 'fuels'; - - // use the `generate` helper to make an Unlocked Wallet - const myWallet: WalletUnlocked = Wallet.generate(); - - // 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#L142-L150) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:wallets) Alternatively, you can create a wallet from a Private Key: - -```typescript - // unlock an existing wallet - let unlockedWallet: WalletUnlocked = lockedWallet.unlock(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#L156-L161) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:wallet-from-private-key) You can obtain an address to a private key using the `Signer` package - -```typescript - const signer = new Signer(PRIVATE_KEY); - // 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#L245-L249) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:signer-address) diff --git a/docs/guide/wallets/signing.md b/docs/guide/wallets/signing.md index 153967255a9..50b05352aec 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#L184-L195) +###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L191-L202) --- diff --git a/docs/guide/wallets/test-wallets.md b/docs/guide/wallets/test-wallets.md index 0bd45239e72..9ab9c45b4d4 100644 --- a/docs/guide/wallets/test-wallets.md +++ b/docs/guide/wallets/test-wallets.md @@ -1,71 +1,13 @@ ---- -title: "Test Wallets" -parent: "Wallets" -grand_parent: "Guide" ---- - -[info]: this file is autogenerated # Setting up test wallets You'll often want to create one or more test wallets when testing your contracts. Here's how to do it. ## Create a single wallet - -```typescript - import { Wallet, WalletLocked, WalletUnlocked } from 'fuels'; - - // use the `generate` helper to make an Unlocked Wallet - const myWallet: WalletUnlocked = Wallet.generate(); - - // 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#L142-L150) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:wallets) ## Setting up multiple test wallets If you need multiple test wallets, they can be set up as follows: - -```typescript - import { Provider, TestUtils, bn } from 'fuels'; - const provider = new Provider('http://127.0.0.1:4000/graphql'); - const assetIdA = '0x0101010101010101010101010101010101010101010101010101010101010101'; - const assetIdB = '0x0202020202020202020202020202020202020202020202020202020202020202'; - - // single asset - const walletA = await TestUtils.generateTestWallet(provider, [[42, NativeAssetId]]); - - // multiple assets - const walletB = await TestUtils.generateTestWallet(provider, [ - // [Amount, AssetId] - [100, assetIdA], - [200, assetIdB], - [30, NativeAssetId], - ]); - - // this wallet has no assets - const walletC = await TestUtils.generateTestWallet(provider); - - // retrieve balances of wallets - const walletABalances = await walletA.getBalances(); - const walletBBalances = await walletB.getBalances(); - const walletCBalances = await walletC.getBalances(); - - // validate balances - expect(walletABalances).toEqual([{ assetId: NativeAssetId, amount: bn(42) }]); - expect(walletBBalances).toEqual([ - { assetId: NativeAssetId, amount: bn(30) }, - { assetId: assetIdA, amount: bn(100) }, - { assetId: assetIdB, amount: bn(200) }, - ]); - expect(walletCBalances).toEqual([]); -``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuel-gauge/src/doc-examples.test.ts#L199-L232) - ---- - +[@code:typescript](./packages/fuel-gauge/src/doc-examples.test.ts#typedoc:wallet-setup) diff --git a/docs/guide/wallets/transferring-assets.md b/docs/guide/wallets/transferring-assets.md index c7aca5a1346..e3de9c9e7e9 100644 --- a/docs/guide/wallets/transferring-assets.md +++ b/docs/guide/wallets/transferring-assets.md @@ -1,33 +1,5 @@ ---- -title: "Transferring Assets" -parent: "Wallets" -grand_parent: "Guide" ---- - -[info]: this file is autogenerated # Transferring assets With `wallet.transfer` you can initiate a transaction to transfer an asset from your wallet to a target address. - -```rust - // setup a provider and two test wallets - const provider = new Provider('http://127.0.0.1:4000/graphql'); - const sender = await generateTestWallet(provider, [[100, NativeAssetId]]); - const receiver = await generateTestWallet(provider); - - // transfer 1 unit of the base asset - const response = await sender.transfer(receiver.address, 1, NativeAssetId); - await response.wait(); - - // retrieve balances of both wallets - const senderBalances = await sender.getBalances(); - const receiverBalances = await receiver.getBalances(); - // validate new balances - expect(senderBalances).toEqual([{ assetId: NativeAssetId, amount: bn(99) }]); - expect(receiverBalances).toEqual([{ assetId: NativeAssetId, amount: bn(1) }]); -``` -###### [see code in context](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet/src/transfer.test.ts#L11-L27) - ---- - +[@code:rust](./packages/wallet/src/transfer.test.ts#typedoc:wallet-transfer) diff --git a/docs/packages/fuel-ts-address/classes/Address.md b/docs/packages/fuel-ts-address/classes/Address.md index 2001a367383..c04ec7882c9 100644 --- a/docs/packages/fuel-ts-address/classes/Address.md +++ b/docs/packages/fuel-ts-address/classes/Address.md @@ -34,7 +34,7 @@ nav_order: 1 #### Defined in -[packages/address/src/address.ts:21](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L21) +[packages/address/src/address.ts:23](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L23) ## Properties @@ -44,7 +44,7 @@ nav_order: 1 #### Defined in -[packages/address/src/address.ts:19](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L19) +[packages/address/src/address.ts:21](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L21) ## Methods @@ -72,7 +72,7 @@ true if addresses are equal #### Defined in -[packages/address/src/address.ts:88](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L88) +[packages/address/src/address.ts:90](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L90) ___ @@ -92,7 +92,7 @@ This address as a Bech32m string #### Defined in -[packages/address/src/address.ts:34](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L34) +[packages/address/src/address.ts:36](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L36) ___ @@ -112,7 +112,7 @@ This address as 256 bit hash string #### Defined in -[packages/address/src/address.ts:41](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L41) +[packages/address/src/address.ts:43](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L43) ___ @@ -132,7 +132,7 @@ Returns this address as a byte array #### Defined in -[packages/address/src/address.ts:48](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L48) +[packages/address/src/address.ts:50](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L50) ___ @@ -152,7 +152,7 @@ This address as hexed 256 bit hash string #### Defined in -[packages/address/src/address.ts:55](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L55) +[packages/address/src/address.ts:57](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L57) ___ @@ -174,7 +174,7 @@ a string address in Bech32m Format #### Defined in -[packages/address/src/address.ts:71](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L71) +[packages/address/src/address.ts:73](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L73) ___ @@ -196,7 +196,7 @@ a string address in Bech32m Format #### Defined in -[packages/address/src/address.ts:63](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L63) +[packages/address/src/address.ts:65](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L65) ___ @@ -214,7 +214,7 @@ a string address in Bech32m Format #### Defined in -[packages/address/src/address.ts:79](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L79) +[packages/address/src/address.ts:81](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L81) ___ @@ -238,7 +238,7 @@ a new `Address` instance #### Defined in -[packages/address/src/address.ts:131](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L131) +[packages/address/src/address.ts:133](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L133) ___ @@ -262,7 +262,35 @@ a new `Address` instance #### Defined in -[packages/address/src/address.ts:107](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L107) +[packages/address/src/address.ts:109](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L109) + +___ + +### fromDynamicInput + +▸ `Static` **fromDynamicInput**(`addressId`): [`Address`](Address.md) + +Takes an optional string and returns back an Address + +**`Throws`** + +thrown if the input string is not nilsy and cannot be resolved to a valid address format + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `addressId` | `string` | Can be a string containing Bech32, B256, or Public Key | + +#### Returns + +[`Address`](Address.md) + +a new `Address` instance + +#### Defined in + +[packages/address/src/address.ts:145](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L145) ___ @@ -286,7 +314,7 @@ a new `Address` instance #### Defined in -[packages/address/src/address.ts:97](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L97) +[packages/address/src/address.ts:99](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L99) ___ @@ -304,7 +332,7 @@ a new `Address` instance #### Defined in -[packages/address/src/address.ts:115](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L115) +[packages/address/src/address.ts:117](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L117) ___ @@ -328,4 +356,4 @@ a new `Address` instance #### Defined in -[packages/address/src/address.ts:123](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L123) +[packages/address/src/address.ts:125](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/address.ts#L125) diff --git a/docs/packages/fuel-ts-address/index.md b/docs/packages/fuel-ts-address/index.md index 6f7c4574a4f..2a5ee4bddf8 100644 --- a/docs/packages/fuel-ts-address/index.md +++ b/docs/packages/fuel-ts-address/index.md @@ -44,7 +44,7 @@ nav_order: 1 #### Defined in -[packages/address/src/utils.ts:86](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L86) +[packages/address/src/utils.ts:93](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L93) ___ @@ -88,7 +88,7 @@ Takes a Bech32 address and returns the byte data #### Defined in -[packages/address/src/utils.ts:60](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L60) +[packages/address/src/utils.ts:67](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L67) ___ @@ -102,7 +102,7 @@ ___ #### Defined in -[packages/address/src/utils.ts:98](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L98) +[packages/address/src/utils.ts:105](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L105) ___ @@ -150,6 +150,28 @@ Determines if a given string is Bech32 format ___ +### isPublicKey + +▸ **isPublicKey**(`address`): `boolean` + +Determines if a given string is in Public Key format (512 bits) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `address` | `string` | + +#### Returns + +`boolean` + +#### Defined in + +[packages/address/src/utils.ts:60](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L60) + +___ + ### normalizeBech32 ▸ **normalizeBech32**(`address`): [`Bech32Address`](namespaces/internal.md#bech32address) @@ -171,7 +193,7 @@ using `address.toLowerCase()`. #### Defined in -[packages/address/src/utils.ts:81](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L81) +[packages/address/src/utils.ts:88](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L88) ___ @@ -193,7 +215,7 @@ Converts a Bech32 address string into B256 #### Defined in -[packages/address/src/utils.ts:67](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L67) +[packages/address/src/utils.ts:74](https://github.com/FuelLabs/fuels-ts/blob/master/packages/address/src/utils.ts#L74) ___ diff --git a/docs/packages/fuel-ts-wallet-manager/classes/internal-StorageAbstract.md b/docs/packages/fuel-ts-wallet-manager/classes/StorageAbstract.md similarity index 76% rename from docs/packages/fuel-ts-wallet-manager/classes/internal-StorageAbstract.md rename to docs/packages/fuel-ts-wallet-manager/classes/StorageAbstract.md index e08994fb03b..700f7fb0631 100644 --- a/docs/packages/fuel-ts-wallet-manager/classes/internal-StorageAbstract.md +++ b/docs/packages/fuel-ts-wallet-manager/classes/StorageAbstract.md @@ -8,7 +8,7 @@ nav_order: 1 # Class: StorageAbstract -[@fuel-ts/wallet-manager](../index.md).[internal](../namespaces/internal.md).StorageAbstract +[@fuel-ts/wallet-manager](../index.md).StorageAbstract ## Constructors @@ -34,13 +34,7 @@ ___ ### getItem -▸ `Abstract` **getItem**<`T`\>(`key`): `Promise`<``null`` \| `T`\> - -#### Type parameters - -| Name | -| :------ | -| `T` | +▸ `Abstract` **getItem**(`key`): `Promise`<`undefined` \| ``null`` \| `string`\> #### Parameters @@ -50,7 +44,7 @@ ___ #### Returns -`Promise`<``null`` \| `T`\> +`Promise`<`undefined` \| ``null`` \| `string`\> #### Defined in @@ -80,24 +74,18 @@ ___ ### setItem -▸ `Abstract` **setItem**<`T`\>(`key`, `value`): `Promise`<`unknown`\> - -#### Type parameters - -| Name | -| :------ | -| `T` | +▸ `Abstract` **setItem**(`key`, `value`): `Promise`<`void`\> #### Parameters | Name | Type | | :------ | :------ | | `key` | `string` | -| `value` | `T` | +| `value` | `string` | #### Returns -`Promise`<`unknown`\> +`Promise`<`void`\> #### Defined in diff --git a/docs/packages/fuel-ts-wallet-manager/classes/internal-Vault.md b/docs/packages/fuel-ts-wallet-manager/classes/Vault.md similarity index 88% rename from docs/packages/fuel-ts-wallet-manager/classes/internal-Vault.md rename to docs/packages/fuel-ts-wallet-manager/classes/Vault.md index 4a9d23772c3..9d0bf7fc23a 100644 --- a/docs/packages/fuel-ts-wallet-manager/classes/internal-Vault.md +++ b/docs/packages/fuel-ts-wallet-manager/classes/Vault.md @@ -8,7 +8,7 @@ nav_order: 1 # Class: Vault -[@fuel-ts/wallet-manager](../index.md).[internal](../namespaces/internal.md).Vault +[@fuel-ts/wallet-manager](../index.md).Vault ## Type parameters @@ -57,11 +57,11 @@ nav_order: 1 ### addAccount -▸ **addAccount**(): [`Account`](../namespaces/internal.md#account) +▸ **addAccount**(): [`Account`](../index.md#account) #### Returns -[`Account`](../namespaces/internal.md#account) +[`Account`](../index.md#account) #### Defined in @@ -91,11 +91,11 @@ ___ ### getAccounts -▸ **getAccounts**(): [`Account`](../namespaces/internal.md#account)[] +▸ **getAccounts**(): [`Account`](../index.md#account)[] #### Returns -[`Account`](../namespaces/internal.md#account)[] +[`Account`](../index.md#account)[] #### Defined in diff --git a/docs/packages/fuel-ts-wallet-manager/classes/WalletManager.md b/docs/packages/fuel-ts-wallet-manager/classes/WalletManager.md index 07a2505498a..71c1d38a752 100644 --- a/docs/packages/fuel-ts-wallet-manager/classes/WalletManager.md +++ b/docs/packages/fuel-ts-wallet-manager/classes/WalletManager.md @@ -31,7 +31,7 @@ WalletManager is a upper package to manage multiple vaults like mnemonic and pri | Name | Type | | :------ | :------ | -| `options?` | [`WalletManagerOptions`](../namespaces/internal.md#walletmanageroptions) | +| `options?` | [`WalletManagerOptions`](../index.md#walletmanageroptions) | #### Overrides @@ -65,7 +65,7 @@ ___ ### #vaults -• `Private` **#vaults**: [`VaultsState`](../namespaces/internal.md#vaultsstate) = `[]` +• `Private` **#vaults**: [`VaultsState`](../index.md#vaultsstate) = `[]` #### Defined in @@ -85,7 +85,7 @@ ___ ### storage -• `Readonly` **storage**: [`StorageAbstract`](internal-StorageAbstract.md) +• `Readonly` **storage**: [`StorageAbstract`](StorageAbstract.md) Storage @@ -140,7 +140,7 @@ Deserialize all vaults to state | Name | Type | | :------ | :------ | -| `vaults` | [`VaultsState`](../namespaces/internal.md#vaultsstate) | +| `vaults` | [`VaultsState`](../index.md#vaultsstate) | #### Returns @@ -148,7 +148,7 @@ Deserialize all vaults to state #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:272](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L272) +[packages/wallet-manager/src/wallet-manager.ts:274](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L274) ___ @@ -164,7 +164,7 @@ Serialize all vaults to store | Name | Type | | :------ | :------ | -| `vaults` | [`VaultsState`](../namespaces/internal.md#vaultsstate) | +| `vaults` | [`VaultsState`](../index.md#vaultsstate) | #### Returns @@ -172,13 +172,13 @@ Serialize all vaults to store #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:259](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L259) +[packages/wallet-manager/src/wallet-manager.ts:261](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L261) ___ ### addAccount -▸ **addAccount**(`options?`): `Promise`<`void`\> +▸ **addAccount**(`options?`): `Promise`<[`Account`](../index.md#account)\> Add account to a selected vault or on the first vault as default. If not vaults are adds it will return error @@ -192,7 +192,7 @@ If not vaults are adds it will return error #### Returns -`Promise`<`void`\> +`Promise`<[`Account`](../index.md#account)\> #### Defined in @@ -211,7 +211,7 @@ didn't found it will throw. | Name | Type | | :------ | :------ | -| `vaultConfig` | [`VaultConfig`](../namespaces/internal.md#vaultconfig) | +| `vaultConfig` | [`VaultConfig`](../index.md#vaultconfig) | #### Returns @@ -219,7 +219,7 @@ didn't found it will throw. #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:163](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L163) +[packages/wallet-manager/src/wallet-manager.ts:165](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L165) ___ @@ -256,7 +256,7 @@ the format of the return depends on the Vault type. | Name | Type | | :------ | :------ | -| `T` | extends [`Vault`](internal-Vault.md)<{ `secret?`: `string` }, `T`\> | +| `T` | extends [`Vault`](Vault.md)<{ `secret?`: `string` }, `T`\> | #### Parameters @@ -276,13 +276,13 @@ ___ ### getAccounts -▸ **getAccounts**(): [`Account`](../namespaces/internal.md#account)[] +▸ **getAccounts**(): [`Account`](../index.md#account)[] List all accounts on the Wallet Manager not vault information is revealed #### Returns -[`Account`](../namespaces/internal.md#account)[] +[`Account`](../index.md#account)[] #### Defined in @@ -308,7 +308,7 @@ typeof [`MnemonicVault`](internal-MnemonicVault.md) \| typeof [`PrivateKeyVault` #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:286](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L286) +[packages/wallet-manager/src/wallet-manager.ts:288](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L288) ___ @@ -362,7 +362,7 @@ Retrieve and decrypt WalletManager state from storage #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:231](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L231) +[packages/wallet-manager/src/wallet-manager.ts:233](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L233) ___ @@ -379,7 +379,7 @@ secrets. #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:184](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L184) +[packages/wallet-manager/src/wallet-manager.ts:186](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L186) ___ @@ -402,7 +402,7 @@ created by the vault. #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:154](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L154) +[packages/wallet-manager/src/wallet-manager.ts:156](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L156) ___ @@ -418,7 +418,7 @@ Store encrypted WalletManager state on storage #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:244](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L244) +[packages/wallet-manager/src/wallet-manager.ts:246](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L246) ___ @@ -441,7 +441,7 @@ Vaults with secrets are not unlocked or instantiated on this moment. #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:198](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L198) +[packages/wallet-manager/src/wallet-manager.ts:200](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L200) ___ @@ -464,4 +464,4 @@ Update WalletManager encryption passphrase #### Defined in -[packages/wallet-manager/src/wallet-manager.ts:212](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L212) +[packages/wallet-manager/src/wallet-manager.ts:214](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/wallet-manager.ts#L214) diff --git a/docs/packages/fuel-ts-wallet-manager/classes/internal-MnemonicVault.md b/docs/packages/fuel-ts-wallet-manager/classes/internal-MnemonicVault.md index ed49d2873be..7aa90e4dd2e 100644 --- a/docs/packages/fuel-ts-wallet-manager/classes/internal-MnemonicVault.md +++ b/docs/packages/fuel-ts-wallet-manager/classes/internal-MnemonicVault.md @@ -12,7 +12,7 @@ nav_order: 1 ## Implements -- [`Vault`](internal-Vault.md)<[`MnemonicVaultOptions`](../interfaces/internal-MnemonicVaultOptions.md)\> +- [`Vault`](Vault.md)<[`MnemonicVaultOptions`](../interfaces/internal-MnemonicVaultOptions.md)\> ## Constructors @@ -78,7 +78,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[type](internal-Vault.md#type) +[Vault](Vault.md).[type](Vault.md#type) #### Defined in @@ -101,7 +101,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[addAccount](internal-Vault.md#addaccount) +[Vault](Vault.md).[addAccount](Vault.md#addaccount) #### Defined in @@ -125,7 +125,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[exportAccount](internal-Vault.md#exportaccount) +[Vault](Vault.md).[exportAccount](Vault.md#exportaccount) #### Defined in @@ -143,7 +143,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[getAccounts](internal-Vault.md#getaccounts) +[Vault](Vault.md).[getAccounts](Vault.md#getaccounts) #### Defined in @@ -187,7 +187,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[getWallet](internal-Vault.md#getwallet) +[Vault](Vault.md).[getWallet](Vault.md#getwallet) #### Defined in @@ -205,7 +205,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[serialize](internal-Vault.md#serialize) +[Vault](Vault.md).[serialize](Vault.md#serialize) #### Defined in diff --git a/docs/packages/fuel-ts-wallet-manager/classes/internal-PrivateKeyVault.md b/docs/packages/fuel-ts-wallet-manager/classes/internal-PrivateKeyVault.md index 037c1b34860..c06a49fa809 100644 --- a/docs/packages/fuel-ts-wallet-manager/classes/internal-PrivateKeyVault.md +++ b/docs/packages/fuel-ts-wallet-manager/classes/internal-PrivateKeyVault.md @@ -12,7 +12,7 @@ nav_order: 1 ## Implements -- [`Vault`](internal-Vault.md)<[`PkVaultOptions`](../interfaces/internal-PkVaultOptions.md)\> +- [`Vault`](Vault.md)<[`PkVaultOptions`](../interfaces/internal-PkVaultOptions.md)\> ## Constructors @@ -51,7 +51,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[type](internal-Vault.md#type) +[Vault](Vault.md).[type](Vault.md#type) #### Defined in @@ -74,7 +74,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[addAccount](internal-Vault.md#addaccount) +[Vault](Vault.md).[addAccount](Vault.md#addaccount) #### Defined in @@ -98,7 +98,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[exportAccount](internal-Vault.md#exportaccount) +[Vault](Vault.md).[exportAccount](Vault.md#exportaccount) #### Defined in @@ -108,15 +108,15 @@ ___ ### getAccounts -▸ **getAccounts**(): [`Account`](../namespaces/internal.md#account)[] +▸ **getAccounts**(): [`Account`](../index.md#account)[] #### Returns -[`Account`](../namespaces/internal.md#account)[] +[`Account`](../index.md#account)[] #### Implementation of -[Vault](internal-Vault.md).[getAccounts](internal-Vault.md#getaccounts) +[Vault](Vault.md).[getAccounts](Vault.md#getaccounts) #### Defined in @@ -165,7 +165,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[getWallet](internal-Vault.md#getwallet) +[Vault](Vault.md).[getWallet](Vault.md#getwallet) #### Defined in @@ -183,7 +183,7 @@ ___ #### Implementation of -[Vault](internal-Vault.md).[serialize](internal-Vault.md#serialize) +[Vault](Vault.md).[serialize](Vault.md#serialize) #### Defined in diff --git a/docs/packages/fuel-ts-wallet-manager/index.md b/docs/packages/fuel-ts-wallet-manager/index.md index 1aafb3b3eb0..172f2c616dc 100644 --- a/docs/packages/fuel-ts-wallet-manager/index.md +++ b/docs/packages/fuel-ts-wallet-manager/index.md @@ -14,4 +14,72 @@ nav_order: 1 ## Classes +- [StorageAbstract](classes/StorageAbstract.md) +- [Vault](classes/Vault.md) - [WalletManager](classes/WalletManager.md) + +## Interfaces + +- [WalletManagerState](interfaces/WalletManagerState.md) + +## Type Aliases + +### Account + +Ƭ **Account**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `address` | [`AbstractAddress`](classes/internal-AbstractAddress.md) | +| `publicKey` | `string` | +| `vaultId?` | `number` | + +#### Defined in + +[packages/wallet-manager/src/types.ts:5](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/types.ts#L5) + +___ + +### VaultConfig + +Ƭ **VaultConfig**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `secret?` | `string` | +| `title?` | `string` | +| `type` | `string` | + +#### Defined in + +[packages/wallet-manager/src/types.ts:15](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/types.ts#L15) + +___ + +### VaultsState + +Ƭ **VaultsState**: { `data?`: [`VaultConfig`](index.md#vaultconfig) ; `title?`: `string` ; `type`: `string` ; `vault`: [`Vault`](classes/Vault.md) }[] + +#### Defined in + +[packages/wallet-manager/src/types.ts:21](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/types.ts#L21) + +___ + +### WalletManagerOptions + +Ƭ **WalletManagerOptions**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `storage` | [`StorageAbstract`](classes/StorageAbstract.md) | + +#### Defined in + +[packages/wallet-manager/src/types.ts:11](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/types.ts#L11) diff --git a/docs/packages/fuel-ts-wallet-manager/interfaces/WalletManagerState.md b/docs/packages/fuel-ts-wallet-manager/interfaces/WalletManagerState.md new file mode 100644 index 00000000000..83bfbfa09ab --- /dev/null +++ b/docs/packages/fuel-ts-wallet-manager/interfaces/WalletManagerState.md @@ -0,0 +1,21 @@ +--- +layout: default +title: WalletManagerState +parent: "@fuel-ts/wallet-manager" +nav_order: 2 + +--- + +# Interface: WalletManagerState + +[@fuel-ts/wallet-manager](../index.md).WalletManagerState + +## Properties + +### vaults + +• **vaults**: [`VaultsState`](../index.md#vaultsstate) + +#### Defined in + +[packages/wallet-manager/src/types.ts:29](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/types.ts#L29) diff --git a/docs/packages/fuel-ts-wallet-manager/namespaces/internal.md b/docs/packages/fuel-ts-wallet-manager/namespaces/internal.md index 9b0c44dc57d..ce59d4a2249 100644 --- a/docs/packages/fuel-ts-wallet-manager/namespaces/internal.md +++ b/docs/packages/fuel-ts-wallet-manager/namespaces/internal.md @@ -32,9 +32,7 @@ nav_order: 3 - [PrivateKeyVault](../classes/internal-PrivateKeyVault.md) - [ScriptTransactionRequest](../classes/internal-ScriptTransactionRequest.md) - [Signer](../classes/internal-Signer.md) -- [StorageAbstract](../classes/internal-StorageAbstract.md) - [TransactionResponse](../classes/internal-TransactionResponse.md) -- [Vault](../classes/internal-Vault.md) - [WalletLocked](../classes/internal-WalletLocked.md) - [WalletUnlocked](../classes/internal-WalletUnlocked.md) @@ -273,24 +271,6 @@ ___ ## Type Aliases -### Account - -Ƭ **Account**: `Object` - -#### Type declaration - -| Name | Type | -| :------ | :------ | -| `address` | [`AbstractAddress`](../classes/internal-AbstractAddress.md) | -| `publicKey` | `string` | -| `vaultId?` | `number` | - -#### Defined in - -[packages/wallet-manager/src/types.ts:5](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/types.ts#L5) - -___ - ### AddressLike Ƭ **AddressLike**: [`AbstractAddress`](../classes/internal-AbstractAddress.md) \| [`AbstractWallet`](../classes/internal-AbstractWallet.md) @@ -1517,50 +1497,6 @@ ___ ___ -### VaultConfig - -Ƭ **VaultConfig**: `Object` - -#### Type declaration - -| Name | Type | -| :------ | :------ | -| `secret?` | `string` | -| `title?` | `string` | -| `type` | `string` | - -#### Defined in - -[packages/wallet-manager/src/types.ts:15](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/types.ts#L15) - -___ - -### VaultsState - -Ƭ **VaultsState**: { `data?`: [`VaultConfig`](internal.md#vaultconfig) ; `title?`: `string` ; `type`: `string` ; `vault`: [`Vault`](../classes/internal-Vault.md) }[] - -#### Defined in - -[packages/wallet-manager/src/types.ts:21](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/types.ts#L21) - -___ - -### WalletManagerOptions - -Ƭ **WalletManagerOptions**: `Object` - -#### Type declaration - -| Name | Type | -| :------ | :------ | -| `storage` | [`StorageAbstract`](../classes/internal-StorageAbstract.md) | - -#### Defined in - -[packages/wallet-manager/src/types.ts:11](https://github.com/FuelLabs/fuels-ts/blob/master/packages/wallet-manager/src/types.ts#L11) - -___ - ### Witness Ƭ **Witness**: `Object` diff --git a/packages/abi-coder/CHANGELOG.md b/packages/abi-coder/CHANGELOG.md index 353a36c494a..16f6d068183 100644 --- a/packages/abi-coder/CHANGELOG.md +++ b/packages/abi-coder/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies [[`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020), [`450bbcd`](https://github.com/FuelLabs/fuels-ts/commit/450bbcd496177a2beafb969e97e48366cf7d35e1)]: + - @fuel-ts/versions@0.27.0 + - @fuel-ts/math@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/abi-coder/package.json b/packages/abi-coder/package.json index 5a7a21dc56d..4856ee0dd42 100644 --- a/packages/abi-coder/package.json +++ b/packages/abi-coder/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/abi-coder", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/abi-typegen/CHANGELOG.md b/packages/abi-typegen/CHANGELOG.md index 91901ddb566..db61702230f 100644 --- a/packages/abi-typegen/CHANGELOG.md +++ b/packages/abi-typegen/CHANGELOG.md @@ -1,5 +1,18 @@ # @fuel-ts/abi-typegen +## 0.27.0 + +### Patch Changes + +- [#658](https://github.com/FuelLabs/fuels-ts/pull/658) [`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020) Thanks [@arboleya](https://github.com/arboleya)! - Upgrading forc to `0.32.2` and fuel-core to `0.15.1` + +- [#690](https://github.com/FuelLabs/fuels-ts/pull/690) [`9391f76`](https://github.com/FuelLabs/fuels-ts/commit/9391f76875f90de816d66d52810607bc1ba7a0e9) Thanks [@arboleya](https://github.com/arboleya)! - Fixing DTS declaration template for Structs + +- [#688](https://github.com/FuelLabs/fuels-ts/pull/688) [`450bbcd`](https://github.com/FuelLabs/fuels-ts/commit/450bbcd496177a2beafb969e97e48366cf7d35e1) Thanks [@arboleya](https://github.com/arboleya)! - Refactoring and fixing broken tests + +- Updated dependencies [[`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020), [`450bbcd`](https://github.com/FuelLabs/fuels-ts/commit/450bbcd496177a2beafb969e97e48366cf7d35e1)]: + - @fuel-ts/versions@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/abi-typegen/package.json b/packages/abi-typegen/package.json index 78032b05321..7e7f58340af 100644 --- a/packages/abi-typegen/package.json +++ b/packages/abi-typegen/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/abi-typegen", - "version": "0.26.0", + "version": "0.27.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 37707a9a269..b051a6e52fe 100644 --- a/packages/address/CHANGELOG.md +++ b/packages/address/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## 0.27.0 + +### Minor Changes + +- [#678](https://github.com/FuelLabs/fuels-ts/pull/678) [`8103891`](https://github.com/FuelLabs/fuels-ts/commit/8103891071145a86380a8c9bcb11132249138486) Thanks [@camsjams](https://github.com/camsjams)! - Added new helper to take unknown string and turn into address + +### Patch Changes + +- Updated dependencies [[`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020), [`450bbcd`](https://github.com/FuelLabs/fuels-ts/commit/450bbcd496177a2beafb969e97e48366cf7d35e1)]: + - @fuel-ts/versions@0.27.0 + - @fuel-ts/constants@0.27.0 + - @fuel-ts/interfaces@0.27.0 + - @fuel-ts/keystore@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/address/package.json b/packages/address/package.json index 71544bbe6b2..22f1d1ac1d6 100644 --- a/packages/address/package.json +++ b/packages/address/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/address", - "version": "0.26.0", + "version": "0.27.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 17f089804db..36187e183bb 100644 --- a/packages/constants/CHANGELOG.md +++ b/packages/constants/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.27.0 + ## 0.26.0 ## 0.25.1 diff --git a/packages/constants/package.json b/packages/constants/package.json index bc73517af82..2b58f5c8e55 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/constants", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/contract/CHANGELOG.md b/packages/contract/CHANGELOG.md index ba5364f0a88..3bdf0daf2de 100644 --- a/packages/contract/CHANGELOG.md +++ b/packages/contract/CHANGELOG.md @@ -1,5 +1,23 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies [[`8103891`](https://github.com/FuelLabs/fuels-ts/commit/8103891071145a86380a8c9bcb11132249138486), [`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020), [`450bbcd`](https://github.com/FuelLabs/fuels-ts/commit/450bbcd496177a2beafb969e97e48366cf7d35e1)]: + - @fuel-ts/address@0.27.0 + - @fuel-ts/providers@0.27.0 + - @fuel-ts/versions@0.27.0 + - @fuel-ts/wallet@0.27.0 + - @fuel-ts/script@0.27.0 + - @fuel-ts/abi-coder@0.27.0 + - @fuel-ts/transactions@0.27.0 + - @fuel-ts/interfaces@0.27.0 + - @fuel-ts/keystore@0.27.0 + - @fuel-ts/math@0.27.0 + - @fuel-ts/merkle@0.27.0 + - @fuel-ts/sparsemerkle@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/contract/package.json b/packages/contract/package.json index e27d9268356..afcf2245fd8 100644 --- a/packages/contract/package.json +++ b/packages/contract/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/contract", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/example-contract/CHANGELOG.md b/packages/example-contract/CHANGELOG.md index 4d9c5ffd39f..75ab70614e9 100644 --- a/packages/example-contract/CHANGELOG.md +++ b/packages/example-contract/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies [[`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020), [`79797d6`](https://github.com/FuelLabs/fuels-ts/commit/79797d6288db6af7aef263e75af3961b993cfd35), [`450bbcd`](https://github.com/FuelLabs/fuels-ts/commit/450bbcd496177a2beafb969e97e48366cf7d35e1)]: + - fuels@0.27.0 + - @fuel-ts/wallet@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/example-contract/package.json b/packages/example-contract/package.json index e0de78ebd93..5400f3b27cf 100644 --- a/packages/example-contract/package.json +++ b/packages/example-contract/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/example-contract", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "scripts": { diff --git a/packages/forc-bin/CHANGELOG.md b/packages/forc-bin/CHANGELOG.md index 35a9d4c1111..05907126aed 100644 --- a/packages/forc-bin/CHANGELOG.md +++ b/packages/forc-bin/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 0.27.2 + +### Patch Changes + +- [#658](https://github.com/FuelLabs/fuels-ts/pull/658) [`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020) Thanks [@arboleya](https://github.com/arboleya)! - Upgrading forc to `0.32.2` and fuel-core to `0.15.1` + ## 0.27.1 ### Patch Changes diff --git a/packages/forc-bin/package.json b/packages/forc-bin/package.json index dec3ad22753..b77ba2c9cf6 100644 --- a/packages/forc-bin/package.json +++ b/packages/forc-bin/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "forc-bin", - "version": "0.27.1", + "version": "0.27.2", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/fuels/CHANGELOG.md b/packages/fuels/CHANGELOG.md index ea44bfbdc7f..96efa6e1006 100644 --- a/packages/fuels/CHANGELOG.md +++ b/packages/fuels/CHANGELOG.md @@ -1,5 +1,42 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- [#658](https://github.com/FuelLabs/fuels-ts/pull/658) [`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020) Thanks [@arboleya](https://github.com/arboleya)! - Upgrading forc to `0.32.2` and fuel-core to `0.15.1` + +- [#676](https://github.com/FuelLabs/fuels-ts/pull/676) [`79797d6`](https://github.com/FuelLabs/fuels-ts/commit/79797d6288db6af7aef263e75af3961b993cfd35) Thanks [@camsjams](https://github.com/camsjams)! - update docs + +- [#688](https://github.com/FuelLabs/fuels-ts/pull/688) [`450bbcd`](https://github.com/FuelLabs/fuels-ts/commit/450bbcd496177a2beafb969e97e48366cf7d35e1) Thanks [@arboleya](https://github.com/arboleya)! - Refactoring and fixing broken tests + +- Updated dependencies [[`8103891`](https://github.com/FuelLabs/fuels-ts/commit/8103891071145a86380a8c9bcb11132249138486), [`8dbde2c`](https://github.com/FuelLabs/fuels-ts/commit/8dbde2ca01578ebf45e419bd79cda4178d3013fc), [`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020), [`9391f76`](https://github.com/FuelLabs/fuels-ts/commit/9391f76875f90de816d66d52810607bc1ba7a0e9), [`450bbcd`](https://github.com/FuelLabs/fuels-ts/commit/450bbcd496177a2beafb969e97e48366cf7d35e1)]: + - @fuel-ts/address@0.27.0 + - @fuel-ts/wallet-manager@0.27.0 + - @fuel-ts/abi-typegen@0.27.0 + - @fuel-ts/providers@0.27.0 + - @fuel-ts/versions@0.27.0 + - @fuel-ts/contract@0.27.0 + - @fuel-ts/predicate@0.27.0 + - @fuel-ts/signer@0.27.0 + - @fuel-ts/wallet@0.27.0 + - @fuel-ts/script@0.27.0 + - @fuel-ts/hasher@0.27.0 + - @fuel-ts/abi-coder@0.27.0 + - @fuel-ts/hdwallet@0.27.0 + - @fuel-ts/transactions@0.27.0 + - @fuel-ts/constants@0.27.0 + - @fuel-ts/interfaces@0.27.0 + - @fuel-ts/keystore@0.27.0 + - @fuel-ts/math@0.27.0 + - @fuel-ts/merkle@0.27.0 + - @fuel-ts/merkle-shared@0.27.0 + - @fuel-ts/merklesum@0.27.0 + - @fuel-ts/mnemonic@0.27.0 + - @fuel-ts/sparsemerkle@0.27.0 + - @fuel-ts/testcases@0.27.0 + - @fuel-ts/wordlists@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/fuels/package.json b/packages/fuels/package.json index 43a1479bd09..5a74c3a3497 100644 --- a/packages/fuels/package.json +++ b/packages/fuels/package.json @@ -1,6 +1,6 @@ { "name": "fuels", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": "src/index.ts", diff --git a/packages/hasher/CHANGELOG.md b/packages/hasher/CHANGELOG.md index 47a859b2b0a..0239d0abd65 100644 --- a/packages/hasher/CHANGELOG.md +++ b/packages/hasher/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies [[`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020)]: + - @fuel-ts/providers@0.27.0 + - @fuel-ts/transactions@0.27.0 + - @fuel-ts/constants@0.27.0 + - @fuel-ts/keystore@0.27.0 + - @fuel-ts/math@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/hasher/package.json b/packages/hasher/package.json index 83142bc60ac..88638e5a195 100644 --- a/packages/hasher/package.json +++ b/packages/hasher/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/hasher", - "version": "0.26.0", + "version": "0.27.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 3d26f37a9fb..dfa01d33905 100644 --- a/packages/hdwallet/CHANGELOG.md +++ b/packages/hdwallet/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/signer@0.27.0 + - @fuel-ts/math@0.27.0 + - @fuel-ts/mnemonic@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/hdwallet/package.json b/packages/hdwallet/package.json index d577e28afe2..459d0fd7b00 100644 --- a/packages/hdwallet/package.json +++ b/packages/hdwallet/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/hdwallet", - "version": "0.26.0", + "version": "0.27.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 b76dc4c4e1e..8bf67c6cb0c 100644 --- a/packages/interfaces/CHANGELOG.md +++ b/packages/interfaces/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.27.0 + ## 0.26.0 ## 0.25.1 diff --git a/packages/interfaces/package.json b/packages/interfaces/package.json index b2e93770083..7e24e6431e2 100644 --- a/packages/interfaces/package.json +++ b/packages/interfaces/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/interfaces", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/keystore/CHANGELOG.md b/packages/keystore/CHANGELOG.md index 18728d32949..c4d7e13c0c6 100644 --- a/packages/keystore/CHANGELOG.md +++ b/packages/keystore/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.27.0 + ## 0.26.0 ## 0.25.1 diff --git a/packages/keystore/package.json b/packages/keystore/package.json index 8e93b23ca5c..b0366c5b555 100644 --- a/packages/keystore/package.json +++ b/packages/keystore/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/keystore", - "version": "0.26.0", + "version": "0.27.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 850dba1fd49..fe5ace27177 100644 --- a/packages/math/CHANGELOG.md +++ b/packages/math/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.27.0 + ## 0.26.0 ## 0.25.1 diff --git a/packages/math/package.json b/packages/math/package.json index d6139bf6c76..b7e31a2295b 100644 --- a/packages/math/package.json +++ b/packages/math/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/math", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/merkle-shared/CHANGELOG.md b/packages/merkle-shared/CHANGELOG.md index 2fc17034949..a18a0d76e9b 100644 --- a/packages/merkle-shared/CHANGELOG.md +++ b/packages/merkle-shared/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.27.0 + ## 0.26.0 ## 0.25.1 diff --git a/packages/merkle-shared/package.json b/packages/merkle-shared/package.json index ea464e4d75a..0d1e2fecd2a 100644 --- a/packages/merkle-shared/package.json +++ b/packages/merkle-shared/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/merkle-shared", - "version": "0.26.0", + "version": "0.27.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 b22a2679767..a8c9dc52fc8 100644 --- a/packages/merkle/CHANGELOG.md +++ b/packages/merkle/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/math@0.27.0 + - @fuel-ts/merkle-shared@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/merkle/package.json b/packages/merkle/package.json index 94f47d5c3b4..34fe6bf8466 100644 --- a/packages/merkle/package.json +++ b/packages/merkle/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/merkle", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/merklesum/CHANGELOG.md b/packages/merklesum/CHANGELOG.md index 8d9261aa1f2..fece974d785 100644 --- a/packages/merklesum/CHANGELOG.md +++ b/packages/merklesum/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/math@0.27.0 + - @fuel-ts/merkle-shared@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/merklesum/package.json b/packages/merklesum/package.json index efa8babdee4..55ef53941ef 100644 --- a/packages/merklesum/package.json +++ b/packages/merklesum/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/merklesum", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/mnemonic/CHANGELOG.md b/packages/mnemonic/CHANGELOG.md index 6ade1a58aff..179fca63378 100644 --- a/packages/mnemonic/CHANGELOG.md +++ b/packages/mnemonic/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/keystore@0.27.0 + - @fuel-ts/wordlists@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/mnemonic/package.json b/packages/mnemonic/package.json index 7bae2eee5bc..aa8ec8bbb1c 100644 --- a/packages/mnemonic/package.json +++ b/packages/mnemonic/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/mnemonic", - "version": "0.26.0", + "version": "0.27.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 1d43b1d5fd9..02a171edbb2 100644 --- a/packages/predicate/CHANGELOG.md +++ b/packages/predicate/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies [[`8103891`](https://github.com/FuelLabs/fuels-ts/commit/8103891071145a86380a8c9bcb11132249138486)]: + - @fuel-ts/address@0.27.0 + - @fuel-ts/contract@0.27.0 + - @fuel-ts/abi-coder@0.27.0 + - @fuel-ts/interfaces@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/predicate/package.json b/packages/predicate/package.json index f2420ffb446..c75c12dcc5d 100644 --- a/packages/predicate/package.json +++ b/packages/predicate/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/predicate", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/providers/CHANGELOG.md b/packages/providers/CHANGELOG.md index b820b309c78..39acfefa664 100644 --- a/packages/providers/CHANGELOG.md +++ b/packages/providers/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- [#658](https://github.com/FuelLabs/fuels-ts/pull/658) [`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020) Thanks [@arboleya](https://github.com/arboleya)! - Upgrading forc to `0.32.2` and fuel-core to `0.15.1` + +- Updated dependencies [[`8103891`](https://github.com/FuelLabs/fuels-ts/commit/8103891071145a86380a8c9bcb11132249138486)]: + - @fuel-ts/address@0.27.0 + - @fuel-ts/abi-coder@0.27.0 + - @fuel-ts/transactions@0.27.0 + - @fuel-ts/constants@0.27.0 + - @fuel-ts/interfaces@0.27.0 + - @fuel-ts/keystore@0.27.0 + - @fuel-ts/math@0.27.0 + ## 0.26.0 ### Minor Changes diff --git a/packages/providers/package.json b/packages/providers/package.json index 7c0dee39f49..81f586bec92 100644 --- a/packages/providers/package.json +++ b/packages/providers/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/providers", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/script/CHANGELOG.md b/packages/script/CHANGELOG.md index 26a49ad8946..e610c8187f3 100644 --- a/packages/script/CHANGELOG.md +++ b/packages/script/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies [[`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020)]: + - @fuel-ts/providers@0.27.0 + - @fuel-ts/wallet@0.27.0 + - @fuel-ts/abi-coder@0.27.0 + - @fuel-ts/transactions@0.27.0 + - @fuel-ts/constants@0.27.0 + - @fuel-ts/math@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/script/package.json b/packages/script/package.json index 8275e71af3c..b6084432d7b 100644 --- a/packages/script/package.json +++ b/packages/script/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/script", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/signer/CHANGELOG.md b/packages/signer/CHANGELOG.md index b8289aedc9c..b6f66d751a9 100644 --- a/packages/signer/CHANGELOG.md +++ b/packages/signer/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies [[`8103891`](https://github.com/FuelLabs/fuels-ts/commit/8103891071145a86380a8c9bcb11132249138486)]: + - @fuel-ts/address@0.27.0 + - @fuel-ts/hasher@0.27.0 + - @fuel-ts/keystore@0.27.0 + - @fuel-ts/math@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/signer/package.json b/packages/signer/package.json index a93a68abd32..2ca191932da 100644 --- a/packages/signer/package.json +++ b/packages/signer/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/signer", - "version": "0.26.0", + "version": "0.27.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 b22a2679767..a8c9dc52fc8 100644 --- a/packages/sparsemerkle/CHANGELOG.md +++ b/packages/sparsemerkle/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/math@0.27.0 + - @fuel-ts/merkle-shared@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/sparsemerkle/package.json b/packages/sparsemerkle/package.json index 886a8bd9b10..4b265c3c82b 100644 --- a/packages/sparsemerkle/package.json +++ b/packages/sparsemerkle/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/sparsemerkle", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/testcases/CHANGELOG.md b/packages/testcases/CHANGELOG.md index 750a37dc31c..0db27c8913c 100644 --- a/packages/testcases/CHANGELOG.md +++ b/packages/testcases/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.27.0 + ## 0.26.0 ## 0.25.1 diff --git a/packages/testcases/package.json b/packages/testcases/package.json index 5845332ec03..f633281dc16 100644 --- a/packages/testcases/package.json +++ b/packages/testcases/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/testcases", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "files": [ diff --git a/packages/transactions/CHANGELOG.md b/packages/transactions/CHANGELOG.md index 209ba563d4a..0a6cb244d90 100644 --- a/packages/transactions/CHANGELOG.md +++ b/packages/transactions/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies []: + - @fuel-ts/abi-coder@0.27.0 + - @fuel-ts/constants@0.27.0 + - @fuel-ts/math@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/transactions/package.json b/packages/transactions/package.json index 85d9118bfa0..e4584a56206 100644 --- a/packages/transactions/package.json +++ b/packages/transactions/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/transactions", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/versions/CHANGELOG.md b/packages/versions/CHANGELOG.md index f650c0b8851..45e341754ee 100644 --- a/packages/versions/CHANGELOG.md +++ b/packages/versions/CHANGELOG.md @@ -1,5 +1,13 @@ # @fuel-ts/versions +## 0.27.0 + +### Patch Changes + +- [#658](https://github.com/FuelLabs/fuels-ts/pull/658) [`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020) Thanks [@arboleya](https://github.com/arboleya)! - Upgrading forc to `0.32.2` and fuel-core to `0.15.1` + +- [#688](https://github.com/FuelLabs/fuels-ts/pull/688) [`450bbcd`](https://github.com/FuelLabs/fuels-ts/commit/450bbcd496177a2beafb969e97e48366cf7d35e1) Thanks [@arboleya](https://github.com/arboleya)! - Refactoring and fixing broken tests + ## 0.26.0 ### Patch Changes diff --git a/packages/versions/package.json b/packages/versions/package.json index 14ab4aab01a..7fae983ca40 100644 --- a/packages/versions/package.json +++ b/packages/versions/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/versions", - "version": "0.26.0", + "version": "0.27.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 629b9dc2919..e519c7cd13b 100644 --- a/packages/wallet-manager/CHANGELOG.md +++ b/packages/wallet-manager/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- [#691](https://github.com/FuelLabs/fuels-ts/pull/691) [`8dbde2c`](https://github.com/FuelLabs/fuels-ts/commit/8dbde2ca01578ebf45e419bd79cda4178d3013fc) Thanks [@luizstacio](https://github.com/luizstacio)! - Return account after addAccount + Export types from WalletManager +- Updated dependencies [[`8103891`](https://github.com/FuelLabs/fuels-ts/commit/8103891071145a86380a8c9bcb11132249138486)]: + - @fuel-ts/address@0.27.0 + - @fuel-ts/wallet@0.27.0 + - @fuel-ts/interfaces@0.27.0 + - @fuel-ts/keystore@0.27.0 + - @fuel-ts/mnemonic@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/wallet-manager/package.json b/packages/wallet-manager/package.json index 0714d4176ff..e704f86f200 100644 --- a/packages/wallet-manager/package.json +++ b/packages/wallet-manager/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/wallet-manager", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/wallet/CHANGELOG.md b/packages/wallet/CHANGELOG.md index ecb019c0c82..f78e62e5240 100644 --- a/packages/wallet/CHANGELOG.md +++ b/packages/wallet/CHANGELOG.md @@ -1,5 +1,22 @@ # Change Log +## 0.27.0 + +### Patch Changes + +- Updated dependencies [[`8103891`](https://github.com/FuelLabs/fuels-ts/commit/8103891071145a86380a8c9bcb11132249138486), [`d0eb1c7`](https://github.com/FuelLabs/fuels-ts/commit/d0eb1c732f63842b8d4801456054ec3b9ccdd020)]: + - @fuel-ts/address@0.27.0 + - @fuel-ts/providers@0.27.0 + - @fuel-ts/signer@0.27.0 + - @fuel-ts/hasher@0.27.0 + - @fuel-ts/abi-coder@0.27.0 + - @fuel-ts/hdwallet@0.27.0 + - @fuel-ts/transactions@0.27.0 + - @fuel-ts/constants@0.27.0 + - @fuel-ts/interfaces@0.27.0 + - @fuel-ts/math@0.27.0 + - @fuel-ts/mnemonic@0.27.0 + ## 0.26.0 ### Patch Changes diff --git a/packages/wallet/package.json b/packages/wallet/package.json index 2a3d3140a5e..5cb4c0a3814 100644 --- a/packages/wallet/package.json +++ b/packages/wallet/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/wallet", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "typedoc": { diff --git a/packages/wordlists/CHANGELOG.md b/packages/wordlists/CHANGELOG.md index de9572bd23c..42c277e849d 100644 --- a/packages/wordlists/CHANGELOG.md +++ b/packages/wordlists/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 0.27.0 + ## 0.26.0 ## 0.25.1 diff --git a/packages/wordlists/package.json b/packages/wordlists/package.json index 48189430825..c0725399efe 100644 --- a/packages/wordlists/package.json +++ b/packages/wordlists/package.json @@ -1,6 +1,6 @@ { "name": "@fuel-ts/wordlists", - "version": "0.26.0", + "version": "0.27.0", "description": "", "author": "Fuel Labs (https://fuel.network/)", "main": "src/index.ts",