diff --git a/.changeset/polite-mugs-stare.md b/.changeset/polite-mugs-stare.md new file mode 100644 index 00000000000..e3511505d08 --- /dev/null +++ b/.changeset/polite-mugs-stare.md @@ -0,0 +1,5 @@ +--- +"@fuel-ts/recipes": patch +--- + +docs: proxy contract cookbook diff --git a/.eslintignore b/.eslintignore index 1ee101dbe93..06641c33628 100644 --- a/.eslintignore +++ b/.eslintignore @@ -15,7 +15,7 @@ apps/create-fuels-counter-guide apps/docs/src/typegend apps/docs/src/**/*.test.ts -packages/fuels/src/cli/commands/deploy/proxy +packages/recipes/src packages/fuels/test/fixtures/project packages/account/src/providers/__generated__ packages/account/src/providers/assets diff --git a/.prettierignore b/.prettierignore index 69ea9fadaa0..a5f37d5f210 100644 --- a/.prettierignore +++ b/.prettierignore @@ -20,7 +20,7 @@ apps/docs/src/api apps/docs/src/typegend apps/docs/src/**/*.test.ts -packages/fuels/src/cli/commands/deploy/proxy +packages/recipes/src packages/fuels/test/fixtures/project packages/account/src/providers/assets diff --git a/apps/docs-api/typedoc.json b/apps/docs-api/typedoc.json index d3ed8eb4526..80cfb47a49a 100644 --- a/apps/docs-api/typedoc.json +++ b/apps/docs-api/typedoc.json @@ -16,7 +16,8 @@ "../../packages/errors", "../../packages/hasher", "../../packages/math", - "../../packages/transactions" + "../../packages/transactions", + "../../packages/recipes" ], "out": "src/api", "readme": "./index.md", diff --git a/apps/docs/src/guide/contracts/proxy-contracts.md b/apps/docs/src/guide/contracts/proxy-contracts.md index 4af77760cff..999e79b31a6 100644 --- a/apps/docs/src/guide/contracts/proxy-contracts.md +++ b/apps/docs/src/guide/contracts/proxy-contracts.md @@ -2,9 +2,51 @@ Automatic deployment of proxy contracts can be enabled in `Forc.toml`. -Once that is in place, [fuels deploy](https://docs.fuel.network/docs/fuels-ts/fuels-cli/commands/#fuels-deploy) will take care of it. +We recommend that you use [fuels deploy](https://docs.fuel.network/docs/fuels-ts/fuels-cli/commands/#fuels-deploy) to deploy and upgrade your contract using a proxy as it will take care of everything for you. However, if you want to deploy a proxy contract manually, you can follow the guide below. -## Docs +## Manually Deploying and Upgrading by Proxy + +As mentioned above, we recommend using [fuels deploy](https://docs.fuel.network/docs/fuels-ts/fuels-cli/commands/#fuels-deploy) to deploy and upgrade your contract as everything is handled under the hood. But the below guide will detail this process should you want to implement it yourself. + +We recommend using the [SRC14 compliant owned proxy contract](https://github.com/FuelLabs/sway-standard-implementations/tree/174f5ed9c79c23a6aaf5db906fe27ecdb29c22eb/src14/owned_proxy/contract/out/release) as the underlying proxy as that is the one we will use in this guide and the one used by [fuels deploy](https://docs.fuel.network/docs/fuels-ts/fuels-cli/commands/#fuels-deploy). A TypeScript implementation of this proxy is exported from the `fuels` package as `Src14OwnedProxy` and `Src14OwnedProxyFactory`. + +The overall process is as follows: + +1. Deploy your contract +1. Deploy the proxy contract +1. Set the target of the proxy contract to your deployed contract +1. Make calls to the contract via the proxy contract ID +1. Upgrade the contract by deploying a new version of the contract and updating the target of the proxy contract + +> **Note**: When new storage slots are added to the contract, they must be initialized in the proxy contract before they can be read from. This can be done by first writing to the new storage slot in the proxy contract. Failure to do so will result in the transaction being reverted. + +For example, lets imagine we want to deploy the following counter contract: + +<<< @/../../docs/sway/counter/src/main.sw#proxy-1{rs:line-numbers} + +Let's deploy and interact with it by proxy. First let's setup the environment and deploy the counter contract: + +<<< @./snippets/proxy-contracts.ts#proxy-2{ts:line-numbers} + +Now let's deploy the [SRC14 compliant proxy contract](https://github.com/FuelLabs/sway-standard-implementations/tree/174f5ed9c79c23a6aaf5db906fe27ecdb29c22eb/src14/owned_proxy/contract/out/release) and initialize it by setting its target to the counter target ID. + +<<< @./snippets/proxy-contracts.ts#proxy-3{ts:line-numbers} + +Finally, we can call our counter contract using the contract ID of the proxy. + +<<< @./snippets/proxy-contracts.ts#proxy-4{ts:line-numbers} + +Now let's make some changes to our initial counter contract by adding an additional storage slot to track the number of increments and a new get method that retrieves its value: + +<<< @/../../docs/sway/counter-v2/src/main.sw#proxy-5{rs:line-numbers} + +We can deploy it and update the target of the proxy like so: + +<<< @./snippets/proxy-contracts.ts#proxy-6{ts:line-numbers} + +Then, we can instantiate our upgraded contract via the same proxy contract ID: + +<<< @./snippets/proxy-contracts.ts#proxy-7{ts:line-numbers} For more info, please check these docs: diff --git a/apps/docs/src/guide/contracts/snippets/proxy-contracts.ts b/apps/docs/src/guide/contracts/snippets/proxy-contracts.ts new file mode 100644 index 00000000000..ef1b0385778 --- /dev/null +++ b/apps/docs/src/guide/contracts/snippets/proxy-contracts.ts @@ -0,0 +1,106 @@ +// #region proxy-2 +import { + Provider, + Wallet, + Src14OwnedProxy, + Src14OwnedProxyFactory, +} from 'fuels'; + +import { LOCAL_NETWORK_URL, WALLET_PVT_KEY } from '../../../env'; +import { + Counter, + CounterFactory, + CounterV2, + CounterV2Factory, +} from '../../../typegend'; + +const provider = await Provider.create(LOCAL_NETWORK_URL); +const wallet = Wallet.fromPrivateKey(WALLET_PVT_KEY, provider); + +const counterContractFactory = new CounterFactory(wallet); +const deploy = await counterContractFactory.deploy(); +const { contract: counterContract } = await deploy.waitForResult(); +// #endregion proxy-2 + +// #region proxy-3 +/** + * It is important to pass all storage slots to the proxy in order to + * initialize the storage slots. + */ +const storageSlots = counterContractFactory.storageSlots.concat( + Src14OwnedProxy.storageSlots +); +/** + * These configurables are specific to our recommended SRC14 compliant + * contract. They must be passed on deployment and then `initialize_proxy` + * must be called to setup the proxy contract. + */ +const configurableConstants = { + INITIAL_TARGET: { bits: counterContract.id.toB256() }, + INITIAL_OWNER: { + Initialized: { Address: { bits: wallet.address.toB256() } }, + }, +}; + +const proxyContractFactory = new Src14OwnedProxyFactory(wallet); +const proxyDeploy = await proxyContractFactory.deploy({ + storageSlots, + configurableConstants, +}); + +const { contract: proxyContract } = await proxyDeploy.waitForResult(); +const { waitForResult } = await proxyContract.functions + .initialize_proxy() + .call(); + +await waitForResult(); +// #endregion proxy-3 + +// #region proxy-4 +/** + * Make sure to use only the contract ID of the proxy when instantiating + * the contract as this will remain static even with future upgrades. + */ +const proxiedContract = new Counter(proxyContract.id, wallet); + +const incrementCall = await proxiedContract.functions.increment_count(1).call(); +await incrementCall.waitForResult(); + +const { value: count } = await proxiedContract.functions.get_count().get(); +// #endregion proxy-4 + +console.log('count:', count.toNumber() === 1); + +// #region proxy-6 +const deployV2 = await CounterV2Factory.deploy(wallet); +const { contract: contractV2 } = await deployV2.waitForResult(); + +const updateTargetCall = await proxyContract.functions + .set_proxy_target({ bits: contractV2.id.toB256() }) + .call(); + +await updateTargetCall.waitForResult(); +// #endregion proxy-6 + +// #region proxy-7 +/** + * Again, we are instantiating the contract with the same proxy ID + * but using a new contract instance. + */ +const upgradedContract = new CounterV2(proxyContract.id, wallet); + +const incrementCall2 = await upgradedContract.functions + .increment_count(1) + .call(); + +await incrementCall2.waitForResult(); + +const { value: increments } = await upgradedContract.functions + .get_increments() + .get(); + +const { value: count2 } = await upgradedContract.functions.get_count().get(); +// #endregion proxy-7 + +console.log('secondCount', count2.toNumber() === 2); +console.log('increments', increments); diff --git a/apps/docs/sway/Forc.toml b/apps/docs/sway/Forc.toml index 32e839b962a..b737384200f 100644 --- a/apps/docs/sway/Forc.toml +++ b/apps/docs/sway/Forc.toml @@ -4,6 +4,7 @@ members = [ "call-test-script", "configurable-pin", "counter", + "counter-v2", "echo-asset-id", "echo-bytes", "echo-configurables", diff --git a/apps/docs/sway/counter-v2/Forc.toml b/apps/docs/sway/counter-v2/Forc.toml new file mode 100644 index 00000000000..f43fc0bb453 --- /dev/null +++ b/apps/docs/sway/counter-v2/Forc.toml @@ -0,0 +1,7 @@ +[project] +authors = ["Fuel Labs "] +entry = "main.sw" +license = "Apache-2.0" +name = "counter-v2" + +[dependencies] diff --git a/apps/docs/sway/counter-v2/src/main.sw b/apps/docs/sway/counter-v2/src/main.sw new file mode 100644 index 00000000000..7a7b7acb59a --- /dev/null +++ b/apps/docs/sway/counter-v2/src/main.sw @@ -0,0 +1,52 @@ +// #region proxy-5 +contract; + +abi Counter { + #[storage(read)] + fn get_count() -> u64; + + #[storage(read)] + fn get_increments() -> u64; + + #[storage(write, read)] + fn increment_count(amount: u64) -> u64; + + #[storage(write, read)] + fn decrement_count(amount: u64) -> u64; +} + +storage { + counter: u64 = 0, + increments: u64 = 0, +} + +impl Counter for Contract { + #[storage(read)] + fn get_count() -> u64 { + storage.counter.try_read().unwrap_or(0) + } + + #[storage(read)] + fn get_increments() -> u64 { + storage.increments.try_read().unwrap_or(0) + } + + #[storage(write, read)] + fn increment_count(amount: u64) -> u64 { + let current = storage.counter.try_read().unwrap_or(0); + storage.counter.write(current + amount); + + let current_iteration: u64 = storage.increments.try_read().unwrap_or(0); + storage.increments.write(current_iteration + 1); + + storage.counter.read() + } + + #[storage(write, read)] + fn decrement_count(amount: u64) -> u64 { + let current = storage.counter.try_read().unwrap_or(0); + storage.counter.write(current - amount); + storage.counter.read() + } +} +// #endregion proxy-5 diff --git a/apps/docs/sway/counter/src/main.sw b/apps/docs/sway/counter/src/main.sw index 615a53c7dce..8ae267a19e4 100644 --- a/apps/docs/sway/counter/src/main.sw +++ b/apps/docs/sway/counter/src/main.sw @@ -1,3 +1,4 @@ +// #region proxy-1 contract; abi Counter { @@ -18,20 +19,21 @@ storage { impl Counter for Contract { #[storage(read)] fn get_count() -> u64 { - storage.counter.read() + storage.counter.try_read().unwrap_or(0) } #[storage(write, read)] fn increment_count(amount: u64) -> u64 { - let current = storage.counter.read(); + let current = storage.counter.try_read().unwrap_or(0); storage.counter.write(current + amount); storage.counter.read() } #[storage(write, read)] fn decrement_count(amount: u64) -> u64 { - let current = storage.counter.read(); + let current = storage.counter.try_read().unwrap_or(0); storage.counter.write(current - amount); storage.counter.read() } } +// #endregion proxy-1 diff --git a/packages/fuel-gauge/src/recipes.test.ts b/packages/fuel-gauge/src/recipes.test.ts new file mode 100644 index 00000000000..6fa4daec1ed --- /dev/null +++ b/packages/fuel-gauge/src/recipes.test.ts @@ -0,0 +1,46 @@ +import { hexlify, randomBytes, Src14OwnedProxy, Src14OwnedProxyFactory } from 'fuels'; +import { launchTestNode } from 'fuels/test-utils'; + +/** + * @group node + * @group browser + */ +describe('recipes', () => { + it('deploy and interact with Src14OwnedProxy', async () => { + using launched = await launchTestNode(); + + const { + wallets: [wallet], + } = launched; + + const targetAddress = hexlify(randomBytes(32)); + const configurableConstants = { + INITIAL_TARGET: { bits: targetAddress }, + INITIAL_OWNER: { Initialized: { Address: { bits: wallet.address.toB256() } } }, + }; + + const proxyFactory = new Src14OwnedProxyFactory(wallet); + const { waitForResult: waitForProxyDeploy } = await proxyFactory.deploy({ + configurableConstants, + }); + const { contract: proxyContract } = await waitForProxyDeploy(); + const { waitForResult: waitForProxyInit } = await proxyContract.functions + .initialize_proxy() + .call(); + await waitForProxyInit(); + const proxyAddress = proxyContract.id.toB256(); + + const { waitForResult: waitForFirstTarget } = await proxyContract.functions + .proxy_target() + .call(); + const firstTarget = await waitForFirstTarget(); + expect(firstTarget.value.bits).toEqual(targetAddress); + + const anotherProxy = new Src14OwnedProxy(proxyAddress, wallet); + const { waitForResult: waitForAnotherTarget } = await anotherProxy.functions + .proxy_target() + .call(); + const anotherTarget = await waitForAnotherTarget(); + expect(anotherTarget.value.bits).toEqual(targetAddress); + }); +}); diff --git a/packages/fuels/package.json b/packages/fuels/package.json index 3684af0eb31..2a4a4a4bda1 100644 --- a/packages/fuels/package.json +++ b/packages/fuels/package.json @@ -51,8 +51,7 @@ "dist" ], "scripts": { - "build": "run-s build:proxy build:package build:browser build:minified", - "build:proxy": "tsx scripts/build-proxy-contract.ts", + "build": "run-s build:package build:browser build:minified", "build:package": "tsup", "build:browser": "pnpm vite build", "build:minified": "pnpm uglifyjs --compress --mangle --output dist/browser.min.mjs -- dist/browser.mjs", @@ -79,6 +78,7 @@ "@fuel-ts/transactions": "workspace:*", "@fuel-ts/utils": "workspace:*", "@fuel-ts/versions": "workspace:*", + "@fuel-ts/recipes": "workspace:*", "bundle-require": "^5.0.0", "chalk": "4", "chokidar": "^3.6.0", diff --git a/packages/fuels/src/cli/commands/deploy/deployContracts.ts b/packages/fuels/src/cli/commands/deploy/deployContracts.ts index 497e0bfcfbe..a7c6da13d2b 100644 --- a/packages/fuels/src/cli/commands/deploy/deployContracts.ts +++ b/packages/fuels/src/cli/commands/deploy/deployContracts.ts @@ -2,6 +2,7 @@ import type { WalletUnlocked } from '@fuel-ts/account'; import { ContractFactory } from '@fuel-ts/contract'; import type { DeployContractOptions } from '@fuel-ts/contract'; import { Contract } from '@fuel-ts/program'; +import { Src14OwnedProxy, Src14OwnedProxyFactory } from '@fuel-ts/recipes'; import { existsSync, readFileSync } from 'fs'; import { @@ -20,7 +21,6 @@ import { debug, log } from '../../utils/logger'; import { createWallet } from './createWallet'; import { getDeployConfig } from './getDeployConfig'; -import { Src14OwnedProxy, Src14OwnedProxyFactory } from './proxy/types'; /** * Deploys one contract. diff --git a/packages/fuels/src/cli/commands/deploy/proxy/.gitignore b/packages/fuels/src/cli/commands/deploy/proxy/.gitignore deleted file mode 100644 index 28861df3bd6..00000000000 --- a/packages/fuels/src/cli/commands/deploy/proxy/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -!README.md -!contract/Forc.lock diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts b/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts deleted file mode 100644 index 78cb01a7cee..00000000000 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts +++ /dev/null @@ -1,826 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ - -/* eslint-disable max-classes-per-file */ -/* eslint-disable @typescript-eslint/no-unused-vars */ -/* eslint-disable @typescript-eslint/consistent-type-imports */ - -/* - Fuels version: 0.97.0 -*/ - -import { Contract, Interface } from "../../../../.."; -import type { - Provider, - Account, - StorageSlot, - AbstractAddress, - FunctionFragment, - InvokeFunction, - StrSlice, -} from "../../../../.."; - -import type { Option, Enum } from "./common"; - -export enum AccessErrorInput { NotOwner = 'NotOwner' }; -export enum AccessErrorOutput { NotOwner = 'NotOwner' }; -export type IdentityInput = Enum<{ Address: AddressInput, ContractId: ContractIdInput }>; -export type IdentityOutput = Enum<{ Address: AddressOutput, ContractId: ContractIdOutput }>; -export enum InitializationErrorInput { CannotReinitialized = 'CannotReinitialized' }; -export enum InitializationErrorOutput { CannotReinitialized = 'CannotReinitialized' }; -export enum SetProxyOwnerErrorInput { CannotUninitialize = 'CannotUninitialize' }; -export enum SetProxyOwnerErrorOutput { CannotUninitialize = 'CannotUninitialize' }; -export type StateInput = Enum<{ Uninitialized: undefined, Initialized: IdentityInput, Revoked: undefined }>; -export type StateOutput = Enum<{ Uninitialized: void, Initialized: IdentityOutput, Revoked: void }>; - -export type AddressInput = { bits: string }; -export type AddressOutput = AddressInput; -export type ContractIdInput = { bits: string }; -export type ContractIdOutput = ContractIdInput; -export type ProxyOwnerSetInput = { new_proxy_owner: StateInput }; -export type ProxyOwnerSetOutput = { new_proxy_owner: StateOutput }; -export type ProxyTargetSetInput = { new_target: ContractIdInput }; -export type ProxyTargetSetOutput = { new_target: ContractIdOutput }; - -export type Src14OwnedProxyConfigurables = Partial<{ - INITIAL_TARGET: Option; - INITIAL_OWNER: StateInput; -}>; - -const abi = { - "programType": "contract", - "specVersion": "1", - "encodingVersion": "1", - "concreteTypes": [ - { - "type": "()", - "concreteTypeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d" - }, - { - "type": "enum standards::src5::AccessError", - "concreteTypeId": "3f702ea3351c9c1ece2b84048006c8034a24cbc2bad2e740d0412b4172951d3d", - "metadataTypeId": 1 - }, - { - "type": "enum standards::src5::State", - "concreteTypeId": "192bc7098e2fe60635a9918afb563e4e5419d386da2bdbf0d716b4bc8549802c", - "metadataTypeId": 2 - }, - { - "type": "enum std::option::Option", - "concreteTypeId": "0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8", - "metadataTypeId": 4, - "typeArguments": [ - "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54" - ] - }, - { - "type": "enum sway_libs::ownership::errors::InitializationError", - "concreteTypeId": "1dfe7feadc1d9667a4351761230f948744068a090fe91b1bc6763a90ed5d3893", - "metadataTypeId": 5 - }, - { - "type": "enum sway_libs::upgradability::errors::SetProxyOwnerError", - "concreteTypeId": "3c6e90ae504df6aad8b34a93ba77dc62623e00b777eecacfa034a8ac6e890c74", - "metadataTypeId": 6 - }, - { - "type": "str", - "concreteTypeId": "8c25cb3686462e9a86d2883c5688a22fe738b0bbc85f458d2d2b5f3f667c6d5a" - }, - { - "type": "struct std::contract_id::ContractId", - "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54", - "metadataTypeId": 9 - }, - { - "type": "struct sway_libs::upgradability::events::ProxyOwnerSet", - "concreteTypeId": "96dd838b44f99d8ccae2a7948137ab6256c48ca4abc6168abc880de07fba7247", - "metadataTypeId": 10 - }, - { - "type": "struct sway_libs::upgradability::events::ProxyTargetSet", - "concreteTypeId": "1ddc0adda1270a016c08ffd614f29f599b4725407c8954c8b960bdf651a9a6c8", - "metadataTypeId": 11 - } - ], - "metadataTypes": [ - { - "type": "b256", - "metadataTypeId": 0 - }, - { - "type": "enum standards::src5::AccessError", - "metadataTypeId": 1, - "components": [ - { - "name": "NotOwner", - "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d" - } - ] - }, - { - "type": "enum standards::src5::State", - "metadataTypeId": 2, - "components": [ - { - "name": "Uninitialized", - "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d" - }, - { - "name": "Initialized", - "typeId": 3 - }, - { - "name": "Revoked", - "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d" - } - ] - }, - { - "type": "enum std::identity::Identity", - "metadataTypeId": 3, - "components": [ - { - "name": "Address", - "typeId": 8 - }, - { - "name": "ContractId", - "typeId": 9 - } - ] - }, - { - "type": "enum std::option::Option", - "metadataTypeId": 4, - "components": [ - { - "name": "None", - "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d" - }, - { - "name": "Some", - "typeId": 7 - } - ], - "typeParameters": [ - 7 - ] - }, - { - "type": "enum sway_libs::ownership::errors::InitializationError", - "metadataTypeId": 5, - "components": [ - { - "name": "CannotReinitialized", - "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d" - } - ] - }, - { - "type": "enum sway_libs::upgradability::errors::SetProxyOwnerError", - "metadataTypeId": 6, - "components": [ - { - "name": "CannotUninitialize", - "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d" - } - ] - }, - { - "type": "generic T", - "metadataTypeId": 7 - }, - { - "type": "struct std::address::Address", - "metadataTypeId": 8, - "components": [ - { - "name": "bits", - "typeId": 0 - } - ] - }, - { - "type": "struct std::contract_id::ContractId", - "metadataTypeId": 9, - "components": [ - { - "name": "bits", - "typeId": 0 - } - ] - }, - { - "type": "struct sway_libs::upgradability::events::ProxyOwnerSet", - "metadataTypeId": 10, - "components": [ - { - "name": "new_proxy_owner", - "typeId": 2 - } - ] - }, - { - "type": "struct sway_libs::upgradability::events::ProxyTargetSet", - "metadataTypeId": 11, - "components": [ - { - "name": "new_target", - "typeId": 9 - } - ] - } - ], - "functions": [ - { - "inputs": [], - "name": "proxy_target", - "output": "0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8", - "attributes": [ - { - "name": "doc-comment", - "arguments": [ - " Returns the target contract of the proxy contract." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Returns" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * [Option] - The new proxy contract to which all fallback calls will be passed or `None`." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Number of Storage Accesses" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * Reads: `1`" - ] - }, - { - "name": "storage", - "arguments": [ - "read" - ] - } - ] - }, - { - "inputs": [ - { - "name": "new_target", - "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54" - } - ], - "name": "set_proxy_target", - "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d", - "attributes": [ - { - "name": "doc-comment", - "arguments": [ - " Change the target contract of the proxy contract." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Additional Information" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " This method can only be called by the `proxy_owner`." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Arguments" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * `new_target`: [ContractId] - The new proxy contract to which all fallback calls will be passed." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Reverts" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * When not called by `proxy_owner`." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Number of Storage Accesses" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * Reads: `1`" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * Write: `1`" - ] - }, - { - "name": "storage", - "arguments": [ - "read", - "write" - ] - } - ] - }, - { - "inputs": [], - "name": "proxy_owner", - "output": "192bc7098e2fe60635a9918afb563e4e5419d386da2bdbf0d716b4bc8549802c", - "attributes": [ - { - "name": "doc-comment", - "arguments": [ - " Returns the owner of the proxy contract." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Returns" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * [State] - Represents the state of ownership for this contract." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Number of Storage Accesses" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * Reads: `1`" - ] - }, - { - "name": "storage", - "arguments": [ - "read" - ] - } - ] - }, - { - "inputs": [], - "name": "initialize_proxy", - "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d", - "attributes": [ - { - "name": "doc-comment", - "arguments": [ - " Initializes the proxy contract." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Additional Information" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " This method sets the storage values using the values of the configurable constants `INITIAL_TARGET` and `INITIAL_OWNER`." - ] - }, - { - "name": "doc-comment", - "arguments": [ - " This then allows methods that write to storage to be called." - ] - }, - { - "name": "doc-comment", - "arguments": [ - " This method can only be called once." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Reverts" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * When `storage::SRC14.proxy_owner` is not [State::Uninitialized]." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Number of Storage Accesses" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * Writes: `2`" - ] - }, - { - "name": "storage", - "arguments": [ - "write" - ] - } - ] - }, - { - "inputs": [ - { - "name": "new_proxy_owner", - "concreteTypeId": "192bc7098e2fe60635a9918afb563e4e5419d386da2bdbf0d716b4bc8549802c" - } - ], - "name": "set_proxy_owner", - "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d", - "attributes": [ - { - "name": "doc-comment", - "arguments": [ - " Changes proxy ownership to the passed State." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Additional Information" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " This method can be used to transfer ownership between Identities or to revoke ownership." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Arguments" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * `new_proxy_owner`: [State] - The new state of the proxy ownership." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Reverts" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * When the sender is not the current proxy owner." - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * When the new state of the proxy ownership is [State::Uninitialized]." - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " # Number of Storage Accesses" - ] - }, - { - "name": "doc-comment", - "arguments": [ - "" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * Reads: `1`" - ] - }, - { - "name": "doc-comment", - "arguments": [ - " * Writes: `1`" - ] - }, - { - "name": "storage", - "arguments": [ - "write" - ] - } - ] - } - ], - "loggedTypes": [ - { - "logId": "4571204900286667806", - "concreteTypeId": "3f702ea3351c9c1ece2b84048006c8034a24cbc2bad2e740d0412b4172951d3d" - }, - { - "logId": "2151606668983994881", - "concreteTypeId": "1ddc0adda1270a016c08ffd614f29f599b4725407c8954c8b960bdf651a9a6c8" - }, - { - "logId": "2161305517876418151", - "concreteTypeId": "1dfe7feadc1d9667a4351761230f948744068a090fe91b1bc6763a90ed5d3893" - }, - { - "logId": "4354576968059844266", - "concreteTypeId": "3c6e90ae504df6aad8b34a93ba77dc62623e00b777eecacfa034a8ac6e890c74" - }, - { - "logId": "10870989709723147660", - "concreteTypeId": "96dd838b44f99d8ccae2a7948137ab6256c48ca4abc6168abc880de07fba7247" - }, - { - "logId": "10098701174489624218", - "concreteTypeId": "8c25cb3686462e9a86d2883c5688a22fe738b0bbc85f458d2d2b5f3f667c6d5a" - } - ], - "messagesTypes": [], - "configurables": [ - { - "name": "INITIAL_TARGET", - "concreteTypeId": "0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8", - "offset": 13368 - }, - { - "name": "INITIAL_OWNER", - "concreteTypeId": "192bc7098e2fe60635a9918afb563e4e5419d386da2bdbf0d716b4bc8549802c", - "offset": 13320 - } - ] -}; - -const storageSlots: StorageSlot[] = [ - { - "key": "7bb458adc1d118713319a5baa00a2d049dd64d2916477d2688d76970c898cd55", - "value": "0000000000000000000000000000000000000000000000000000000000000000" - }, - { - "key": "7bb458adc1d118713319a5baa00a2d049dd64d2916477d2688d76970c898cd56", - "value": "0000000000000000000000000000000000000000000000000000000000000000" - }, - { - "key": "bb79927b15d9259ea316f2ecb2297d6cc8851888a98278c0a2e03e1a091ea754", - "value": "0000000000000000000000000000000000000000000000000000000000000000" - }, - { - "key": "bb79927b15d9259ea316f2ecb2297d6cc8851888a98278c0a2e03e1a091ea755", - "value": "0000000000000000000000000000000000000000000000000000000000000000" - } -]; - -export class Src14OwnedProxyInterface extends Interface { - constructor() { - super(abi); - } - - declare functions: { - proxy_target: FunctionFragment; - set_proxy_target: FunctionFragment; - proxy_owner: FunctionFragment; - initialize_proxy: FunctionFragment; - set_proxy_owner: FunctionFragment; - }; -} - -export class Src14OwnedProxy extends Contract { - static readonly abi = abi; - static readonly storageSlots = storageSlots; - - declare interface: Src14OwnedProxyInterface; - declare functions: { - proxy_target: InvokeFunction<[], Option>; - set_proxy_target: InvokeFunction<[new_target: ContractIdInput], void>; - proxy_owner: InvokeFunction<[], StateOutput>; - initialize_proxy: InvokeFunction<[], void>; - set_proxy_owner: InvokeFunction<[new_proxy_owner: StateInput], void>; - }; - - constructor( - id: string | AbstractAddress, - accountOrProvider: Account | Provider, - ) { - super(id, abi, accountOrProvider); - } -} diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts b/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts deleted file mode 100644 index 0a142a18e5d..00000000000 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ - -/* eslint-disable max-classes-per-file */ -/* eslint-disable @typescript-eslint/no-unused-vars */ -/* eslint-disable @typescript-eslint/consistent-type-imports */ - -/* - Fuels version: 0.97.0 -*/ - -import { ContractFactory, decompressBytecode } from "../../../../.."; -import type { Provider, Account, DeployContractOptions } from "../../../../.."; - -import { Src14OwnedProxy } from "./Src14OwnedProxy"; - -const bytecode = decompressBytecode("H4sIAAAAAAAAA9Vbe3Abx3lfgCAFvayz+TAFSjaUUjJkRwosUQ4ly9IhIATSEM2DSVpUGBhg64c0cSyIlVQ5tsccN001aSZlHcdlO06GrtOp6z4GAB+C7T7YR2bUiTtlZhxbTeMWmiatFAst60YZqm6j/r5v93DHw4GOJ84f0QznFne73+5+j9/32FVgISxOCOEV/K/Dn7o259GuXRO/JcSQ8c6CML4nwkZJF8HFnWLovZLXeK/kOyG89+JbGN9C+BZe+q2uEfRE4LIBGiv1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07PBcddbr5H6ND/keq71Pg/BZW71HRfP9iLOOEeYEKftG/3u9Sof2ypvm+Zp9pEJ2jsxvg9GN/tdt8S6zDv0VIOp2Su7l5KmX8MMm+DzDfwPVqpS83QJdJNA7pUuQPm0GM+h7DO4/iOlTqDWwiD5nrQDCzVI+iJFbsu55P31/bJ/oWfpU+GbDln+qA+GePeruWTf1b/sqPHTj+WPjEy+vCD9N+CxC8/eCJtf/f49NCf/NW3Wo/vXP/7r06u2ub76pu9W1viT24589bR7LmJvx+UfY/9yqMPjjK9o48ePXF05JGjn31QkrHoyT4bv7vq7RduWeV5nf8J7/7s9hd3bXj+pmv8T4jXHnvm8eZ/3Py1F1vevVzY+uQj536t9cwfPn167vdK+wIrb/qDgQMjjzzyiyO/9OnY6Oix0T17BniR9xw70S+XL764+Zt3fP7A9t/N/+ZE57Nf/vrLvkvPvzZ7cNOb//qZYwfLl18+uv/V/5j8h4eu+8Ku/xk+uePbe3/06xf23ZVr+sG7/m8Uv9HxR0fvemvl2vu9D6f3bfzxUz/47sbnHn7u7V/9ja6rX/3i3kfH/9To/dHLkms7/1c+d7yuns+r50H5vF19335ePtvfkM8W9X3lEfn0qff1n1PPDvV8Vj7rJuXT88b/AzdExjYINgAA"); - -export class Src14OwnedProxyFactory extends ContractFactory { - - static readonly bytecode = bytecode; - - constructor(accountOrProvider: Account | Provider) { - super( - bytecode, - Src14OwnedProxy.abi, - accountOrProvider, - Src14OwnedProxy.storageSlots - ); - } - - static deploy ( - wallet: Account, - options: DeployContractOptions = {} - ): ReturnType { - const factory = new Src14OwnedProxyFactory(wallet); - return factory.deploy(options); - } -} diff --git a/packages/fuels/src/index.test.ts b/packages/fuels/src/index.test.ts index cb1c70f05a9..5528e63af3c 100644 --- a/packages/fuels/src/index.test.ts +++ b/packages/fuels/src/index.test.ts @@ -7,7 +7,7 @@ describe('index.js', () => { test('should export everything', () => { expect(fuels.hexlify).toBeTruthy(); expect(fuels.arrayify).toBeTruthy(); - + expect(fuels.concat).toBeTruthy(); expect(fuels.Interface).toBeTruthy(); expect(fuels.Address).toBeTruthy(); expect(fuels.FuelError).toBeTruthy(); @@ -19,8 +19,6 @@ describe('index.js', () => { expect(fuels.TransactionType).toBeTruthy(); expect(fuels.Script).toBeTruthy(); expect(fuels.FunctionInvocationScope).toBeTruthy(); - expect(fuels.arrayify).toBeTruthy(); - expect(fuels.hexlify).toBeTruthy(); - expect(fuels.concat).toBeTruthy(); + expect(fuels.Src14OwnedProxy).toBeTruthy(); }); }); diff --git a/packages/fuels/src/index.ts b/packages/fuels/src/index.ts index 2615224f958..e13cabc50c4 100644 --- a/packages/fuels/src/index.ts +++ b/packages/fuels/src/index.ts @@ -16,3 +16,4 @@ export * from '@fuel-ts/utils'; export * from '@fuel-ts/account'; export * from '@fuel-ts/transactions/configs'; export * from '@fuel-ts/account/configs'; +export * from '@fuel-ts/recipes'; diff --git a/packages/recipes/CHANGELOG.md b/packages/recipes/CHANGELOG.md new file mode 100644 index 00000000000..fa4d35e687c --- /dev/null +++ b/packages/recipes/CHANGELOG.md @@ -0,0 +1 @@ +# Change Log \ No newline at end of file diff --git a/packages/recipes/LICENSE b/packages/recipes/LICENSE new file mode 100644 index 00000000000..261eeb9e9f8 --- /dev/null +++ b/packages/recipes/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/recipes/README.md b/packages/recipes/README.md new file mode 100644 index 00000000000..0a54204f511 --- /dev/null +++ b/packages/recipes/README.md @@ -0,0 +1,57 @@ +# `@fuel-ts/recipes` + +**@fuel-ts/recipes** is a sub-module for interacting with Sway programs on **Fuel**. + +This module exports TypeScript recipes of Sway programs. + +It currently includes recipes for: + +- [SRC-14: Owned Proxy Contract](./src/contracts/src14/README.md) + +# Table of contents + +- [Documentation](#documentation) +- [Usage](#usage) + - [Installation](#installation) + - [Full SDK Installation](#full-sdk-installation) +- [Contributing](#contributing) +- [Changelog](#changelog) +- [License](#license) + +## Documentation + + + +See [Fuels-ts Documentation](https://docs.fuel.network/docs/fuels-ts/) + +## Usage + +### Installation + +```sh +pnpm add @fuel-ts/recipes +# or +npm add @fuel-ts/recipes +``` + +### Full SDK Installation + +Alternatively, we recommend you install the [complete SDK](https://github.com/FuelLabs/fuels-ts) using the umbrella package: + +```sh +pnpm add fuels +# or +npm add fuels +``` + +## Contributing + +In order to contribute to `@fuel-ts/recipes`, please see the main [fuels-ts](https://github.com/FuelLabs/fuels-ts) monorepo. + +## Changelog + +The `@fuel-ts/recipes` changelog can be found at [CHANGELOG](./CHANGELOG.md). + +## License + +The primary license for `@fuel-ts/recipes` is `Apache 2.0`, see [LICENSE](./LICENSE). diff --git a/packages/recipes/package.json b/packages/recipes/package.json new file mode 100644 index 00000000000..5f9f46e216b --- /dev/null +++ b/packages/recipes/package.json @@ -0,0 +1,38 @@ +{ + "name": "@fuel-ts/recipes", + "version": "0.97.0", + "description": "Recipes for Sway Programs", + "author": "Fuel Labs (https://fuel.network/)", + "main": "dist/index.js", + "module": "dist/index.mjs", + "types": "dist/index.d.ts", + "engines": { + "node": "^18.20.3 || ^20.0.0 || ^22.0.0" + }, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "require": "./dist/index.js", + "import": "./dist/index.mjs" + } + }, + "files": [ + "dist" + ], + "scripts": { + "build": "tsup && pnpm build:recipes", + "build:recipes": "tsx ./scripts/build-recipes.ts", + "postbuild": "tsx ../../scripts/postbuild.ts" + }, + "license": "Apache-2.0", + "dependencies": { + "@fuel-ts/abi-coder": "workspace:*", + "@fuel-ts/abi-typegen": "workspace:*", + "@fuel-ts/account": "workspace:*", + "@fuel-ts/interfaces": "workspace:*", + "@fuel-ts/program": "workspace:*", + "@fuel-ts/transactions": "workspace:*", + "@fuel-ts/utils": "workspace:*", + "@fuel-ts/contract": "workspace:*" + } +} diff --git a/packages/recipes/scripts/build-recipes.ts b/packages/recipes/scripts/build-recipes.ts new file mode 100644 index 00000000000..0e4003f3f86 --- /dev/null +++ b/packages/recipes/scripts/build-recipes.ts @@ -0,0 +1,75 @@ +import { execSync } from 'child_process'; +import { readFileSync, writeFileSync } from 'fs'; +import { join } from 'path'; + +execSync(`fuels-typegen -i src/contracts/**/*-abi.json -o src/types`); + +const supportedRecipes = ['Src14OwnedProxy'].map((s) => [s, `${s}Factory`]).flat(); +const importReplacementMap = { + Contract: '@fuel-ts/program', + ContractFactory: '@fuel-ts/contract', + DeployContractOptions: '@fuel-ts/contract', + Interface: '@fuel-ts/abi-coder', + Provider: '@fuel-ts/account', + Account: '@fuel-ts/account', + StorageSlot: '@fuel-ts/transactions', + AbstractAddress: '@fuel-ts/interfaces', + FunctionFragment: '@fuel-ts/abi-coder', + InvokeFunction: '@fuel-ts/program', + StrSlice: '@fuel-ts/interfaces', + decompressBytecode: '@fuel-ts/utils', +}; + +for (const recipe of supportedRecipes) { + const contractPath = join(__dirname, '..', 'src', 'types', `${recipe}.ts`); + let contractContents = readFileSync(contractPath, 'utf-8'); + // Find all imports from 'fuels' + const fuelImportsRegex = /import\s+(type\s+)?{([^}]+)}\s+from\s+['"]fuels['"];?/gs; + const matches = [...contractContents.matchAll(fuelImportsRegex)]; + + // Extract the imported items and create new import statements + const importsByPackage = new Map>(); + + matches.flatMap((match) => { + const isTypeImport = Boolean(match[1]); + return match[2] + .split(',') + .map((item) => ({ + name: item.trim(), + isType: isTypeImport, + })) + .filter((item) => item.name.length > 0) + .forEach(({ name, isType }) => { + const packageName = importReplacementMap[name]; + if (!packageName) { + throw new Error(`No package mapping found for: ${name}`); + } + + if (!importsByPackage.has(packageName)) { + importsByPackage.set(packageName, new Set()); + } + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + importsByPackage.get(packageName)!.add(isType ? `type ${name}` : name); + }); + }); + + // Create the import strings + const newImports = Array.from(importsByPackage.entries()) + .map(([pkg, imports]) => `import { ${Array.from(imports).join(', ')} } from '${pkg}';`) + .join('\n'); + + // Replace all 'fuels' imports with the new imports + matches.forEach((match) => { + contractContents = contractContents.replace(match[0], ''); + }); + + // Add new imports at the top of the file + const versionCommentRegex = /\/\*\s*Fuels version: \d+\.\d+\.\d+\s*\*\/\s*/; + contractContents = contractContents.replace( + versionCommentRegex, + (match) => `${match}\n${newImports}` + ); + + // Write the modified contents back to the file + writeFileSync(contractPath, contractContents); +} diff --git a/packages/fuels/src/cli/commands/deploy/proxy/README.md b/packages/recipes/src/contracts/src14/README.md similarity index 77% rename from packages/fuels/src/cli/commands/deploy/proxy/README.md rename to packages/recipes/src/contracts/src14/README.md index 260786468d9..9c1df6d851f 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/README.md +++ b/packages/recipes/src/contracts/src14/README.md @@ -9,13 +9,3 @@ The `contract` folder contains a pre-built version of the owned proxy `contract` - https://github.com/FuelLabs/sway-standard-implementations/tree/174f5ed9c79c23a6aaf5db906fe27ecdb29c22eb/src14/owned_proxy/contract/out/release Check also the `forc` [notes](https://github.com/FuelLabs/sway/tree/d2b5431ffd769e6017d9978616a8dd8ca5e52444/forc-plugins/forc-client/proxy_abi). - -# Build Routine - -The routine is started in the `prebuild` step from: - -- `packages/fuels/package.json` - -Which runs: - -- `tsx packages/fuels/scripts/build-proxy-contract.ts` diff --git a/packages/fuels/src/cli/commands/deploy/proxy/contract/src14_owned_proxy-abi.json b/packages/recipes/src/contracts/src14/src14_owned_proxy-abi.json similarity index 74% rename from packages/fuels/src/cli/commands/deploy/proxy/contract/src14_owned_proxy-abi.json rename to packages/recipes/src/contracts/src14/src14_owned_proxy-abi.json index 9fa09e507ba..920f685f97b 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/contract/src14_owned_proxy-abi.json +++ b/packages/recipes/src/contracts/src14/src14_owned_proxy-abi.json @@ -115,9 +115,7 @@ "typeId": 7 } ], - "typeParameters": [ - 7 - ] + "typeParameters": [7] }, { "type": "enum sway_libs::ownership::errors::InitializationError", @@ -192,27 +190,19 @@ "attributes": [ { "name": "doc-comment", - "arguments": [ - " Returns the target contract of the proxy contract." - ] + "arguments": [" Returns the target contract of the proxy contract."] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Returns" - ] + "arguments": [" # Returns"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", @@ -222,33 +212,23 @@ }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Number of Storage Accesses" - ] + "arguments": [" # Number of Storage Accesses"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " * Reads: `1`" - ] + "arguments": [" * Reads: `1`"] }, { "name": "storage", - "arguments": [ - "read" - ] + "arguments": ["read"] } ] }, @@ -264,51 +244,35 @@ "attributes": [ { "name": "doc-comment", - "arguments": [ - " Change the target contract of the proxy contract." - ] + "arguments": [" Change the target contract of the proxy contract."] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Additional Information" - ] + "arguments": [" # Additional Information"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " This method can only be called by the `proxy_owner`." - ] + "arguments": [" This method can only be called by the `proxy_owner`."] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Arguments" - ] + "arguments": [" # Arguments"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", @@ -318,64 +282,43 @@ }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Reverts" - ] + "arguments": [" # Reverts"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " * When not called by `proxy_owner`." - ] + "arguments": [" * When not called by `proxy_owner`."] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Number of Storage Accesses" - ] + "arguments": [" # Number of Storage Accesses"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " * Reads: `1`" - ] + "arguments": [" * Reads: `1`"] }, { "name": "doc-comment", - "arguments": [ - " * Write: `1`" - ] + "arguments": [" * Write: `1`"] }, { "name": "storage", - "arguments": [ - "read", - "write" - ] + "arguments": ["read", "write"] } ] }, @@ -386,27 +329,19 @@ "attributes": [ { "name": "doc-comment", - "arguments": [ - " Returns the owner of the proxy contract." - ] + "arguments": [" Returns the owner of the proxy contract."] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Returns" - ] + "arguments": [" # Returns"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", @@ -416,33 +351,23 @@ }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Number of Storage Accesses" - ] + "arguments": [" # Number of Storage Accesses"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " * Reads: `1`" - ] + "arguments": [" * Reads: `1`"] }, { "name": "storage", - "arguments": [ - "read" - ] + "arguments": ["read"] } ] }, @@ -453,27 +378,19 @@ "attributes": [ { "name": "doc-comment", - "arguments": [ - " Initializes the proxy contract." - ] + "arguments": [" Initializes the proxy contract."] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Additional Information" - ] + "arguments": [" # Additional Information"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", @@ -489,27 +406,19 @@ }, { "name": "doc-comment", - "arguments": [ - " This method can only be called once." - ] + "arguments": [" This method can only be called once."] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Reverts" - ] + "arguments": [" # Reverts"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", @@ -519,33 +428,23 @@ }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Number of Storage Accesses" - ] + "arguments": [" # Number of Storage Accesses"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " * Writes: `2`" - ] + "arguments": [" * Writes: `2`"] }, { "name": "storage", - "arguments": [ - "write" - ] + "arguments": ["write"] } ] }, @@ -561,27 +460,19 @@ "attributes": [ { "name": "doc-comment", - "arguments": [ - " Changes proxy ownership to the passed State." - ] + "arguments": [" Changes proxy ownership to the passed State."] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Additional Information" - ] + "arguments": [" # Additional Information"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", @@ -591,21 +482,15 @@ }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Arguments" - ] + "arguments": [" # Arguments"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", @@ -615,27 +500,19 @@ }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Reverts" - ] + "arguments": [" # Reverts"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " * When the sender is not the current proxy owner." - ] + "arguments": [" * When the sender is not the current proxy owner."] }, { "name": "doc-comment", @@ -645,39 +522,27 @@ }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " # Number of Storage Accesses" - ] + "arguments": [" # Number of Storage Accesses"] }, { "name": "doc-comment", - "arguments": [ - "" - ] + "arguments": [""] }, { "name": "doc-comment", - "arguments": [ - " * Reads: `1`" - ] + "arguments": [" * Reads: `1`"] }, { "name": "doc-comment", - "arguments": [ - " * Writes: `1`" - ] + "arguments": [" * Writes: `1`"] }, { "name": "storage", - "arguments": [ - "write" - ] + "arguments": ["write"] } ] } @@ -721,4 +586,4 @@ "offset": 13320 } ] -} \ No newline at end of file +} diff --git a/packages/fuels/src/cli/commands/deploy/proxy/contract/src14_owned_proxy-storage_slots.json b/packages/recipes/src/contracts/src14/src14_owned_proxy-storage_slots.json similarity index 99% rename from packages/fuels/src/cli/commands/deploy/proxy/contract/src14_owned_proxy-storage_slots.json rename to packages/recipes/src/contracts/src14/src14_owned_proxy-storage_slots.json index 72849c97055..783fc71b90b 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/contract/src14_owned_proxy-storage_slots.json +++ b/packages/recipes/src/contracts/src14/src14_owned_proxy-storage_slots.json @@ -15,4 +15,4 @@ "key": "bb79927b15d9259ea316f2ecb2297d6cc8851888a98278c0a2e03e1a091ea755", "value": "0000000000000000000000000000000000000000000000000000000000000000" } -] \ No newline at end of file +] diff --git a/packages/fuels/src/cli/commands/deploy/proxy/contract/src14_owned_proxy.bin b/packages/recipes/src/contracts/src14/src14_owned_proxy.bin similarity index 100% rename from packages/fuels/src/cli/commands/deploy/proxy/contract/src14_owned_proxy.bin rename to packages/recipes/src/contracts/src14/src14_owned_proxy.bin diff --git a/packages/recipes/src/index.ts b/packages/recipes/src/index.ts new file mode 100644 index 00000000000..fcb073fefcd --- /dev/null +++ b/packages/recipes/src/index.ts @@ -0,0 +1 @@ +export * from './types'; diff --git a/packages/recipes/src/types/Src14OwnedProxy.ts b/packages/recipes/src/types/Src14OwnedProxy.ts new file mode 100644 index 00000000000..d5b737e7c35 --- /dev/null +++ b/packages/recipes/src/types/Src14OwnedProxy.ts @@ -0,0 +1,686 @@ +/* Autogenerated file. Do not edit manually. */ + +/* eslint-disable max-classes-per-file */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/consistent-type-imports */ + +/* + Fuels version: 0.97.0 +*/ + +import { Contract, type InvokeFunction } from '@fuel-ts/program'; +import { Interface, type FunctionFragment } from '@fuel-ts/abi-coder'; +import { type Provider, type Account } from '@fuel-ts/account'; +import { type StorageSlot } from '@fuel-ts/transactions'; +import { type AbstractAddress, type StrSlice } from '@fuel-ts/interfaces'; +import type { Option, Enum } from './common'; + +export enum AccessErrorInput { + NotOwner = 'NotOwner', +} +export enum AccessErrorOutput { + NotOwner = 'NotOwner', +} +export type IdentityInput = Enum<{ Address: AddressInput; ContractId: ContractIdInput }>; +export type IdentityOutput = Enum<{ Address: AddressOutput; ContractId: ContractIdOutput }>; +export enum InitializationErrorInput { + CannotReinitialized = 'CannotReinitialized', +} +export enum InitializationErrorOutput { + CannotReinitialized = 'CannotReinitialized', +} +export enum SetProxyOwnerErrorInput { + CannotUninitialize = 'CannotUninitialize', +} +export enum SetProxyOwnerErrorOutput { + CannotUninitialize = 'CannotUninitialize', +} +export type StateInput = Enum<{ + Uninitialized: undefined; + Initialized: IdentityInput; + Revoked: undefined; +}>; +export type StateOutput = Enum<{ Uninitialized: void; Initialized: IdentityOutput; Revoked: void }>; + +export type AddressInput = { bits: string }; +export type AddressOutput = AddressInput; +export type ContractIdInput = { bits: string }; +export type ContractIdOutput = ContractIdInput; +export type ProxyOwnerSetInput = { new_proxy_owner: StateInput }; +export type ProxyOwnerSetOutput = { new_proxy_owner: StateOutput }; +export type ProxyTargetSetInput = { new_target: ContractIdInput }; +export type ProxyTargetSetOutput = { new_target: ContractIdOutput }; + +export type Src14OwnedProxyConfigurables = Partial<{ + INITIAL_TARGET: Option; + INITIAL_OWNER: StateInput; +}>; + +const abi = { + programType: 'contract', + specVersion: '1', + encodingVersion: '1', + concreteTypes: [ + { + type: '()', + concreteTypeId: '2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d', + }, + { + type: 'enum standards::src5::AccessError', + concreteTypeId: '3f702ea3351c9c1ece2b84048006c8034a24cbc2bad2e740d0412b4172951d3d', + metadataTypeId: 1, + }, + { + type: 'enum standards::src5::State', + concreteTypeId: '192bc7098e2fe60635a9918afb563e4e5419d386da2bdbf0d716b4bc8549802c', + metadataTypeId: 2, + }, + { + type: 'enum std::option::Option', + concreteTypeId: '0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8', + metadataTypeId: 4, + typeArguments: ['29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54'], + }, + { + type: 'enum sway_libs::ownership::errors::InitializationError', + concreteTypeId: '1dfe7feadc1d9667a4351761230f948744068a090fe91b1bc6763a90ed5d3893', + metadataTypeId: 5, + }, + { + type: 'enum sway_libs::upgradability::errors::SetProxyOwnerError', + concreteTypeId: '3c6e90ae504df6aad8b34a93ba77dc62623e00b777eecacfa034a8ac6e890c74', + metadataTypeId: 6, + }, + { + type: 'str', + concreteTypeId: '8c25cb3686462e9a86d2883c5688a22fe738b0bbc85f458d2d2b5f3f667c6d5a', + }, + { + type: 'struct std::contract_id::ContractId', + concreteTypeId: '29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54', + metadataTypeId: 9, + }, + { + type: 'struct sway_libs::upgradability::events::ProxyOwnerSet', + concreteTypeId: '96dd838b44f99d8ccae2a7948137ab6256c48ca4abc6168abc880de07fba7247', + metadataTypeId: 10, + }, + { + type: 'struct sway_libs::upgradability::events::ProxyTargetSet', + concreteTypeId: '1ddc0adda1270a016c08ffd614f29f599b4725407c8954c8b960bdf651a9a6c8', + metadataTypeId: 11, + }, + ], + metadataTypes: [ + { + type: 'b256', + metadataTypeId: 0, + }, + { + type: 'enum standards::src5::AccessError', + metadataTypeId: 1, + components: [ + { + name: 'NotOwner', + typeId: '2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d', + }, + ], + }, + { + type: 'enum standards::src5::State', + metadataTypeId: 2, + components: [ + { + name: 'Uninitialized', + typeId: '2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d', + }, + { + name: 'Initialized', + typeId: 3, + }, + { + name: 'Revoked', + typeId: '2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d', + }, + ], + }, + { + type: 'enum std::identity::Identity', + metadataTypeId: 3, + components: [ + { + name: 'Address', + typeId: 8, + }, + { + name: 'ContractId', + typeId: 9, + }, + ], + }, + { + type: 'enum std::option::Option', + metadataTypeId: 4, + components: [ + { + name: 'None', + typeId: '2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d', + }, + { + name: 'Some', + typeId: 7, + }, + ], + typeParameters: [7], + }, + { + type: 'enum sway_libs::ownership::errors::InitializationError', + metadataTypeId: 5, + components: [ + { + name: 'CannotReinitialized', + typeId: '2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d', + }, + ], + }, + { + type: 'enum sway_libs::upgradability::errors::SetProxyOwnerError', + metadataTypeId: 6, + components: [ + { + name: 'CannotUninitialize', + typeId: '2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d', + }, + ], + }, + { + type: 'generic T', + metadataTypeId: 7, + }, + { + type: 'struct std::address::Address', + metadataTypeId: 8, + components: [ + { + name: 'bits', + typeId: 0, + }, + ], + }, + { + type: 'struct std::contract_id::ContractId', + metadataTypeId: 9, + components: [ + { + name: 'bits', + typeId: 0, + }, + ], + }, + { + type: 'struct sway_libs::upgradability::events::ProxyOwnerSet', + metadataTypeId: 10, + components: [ + { + name: 'new_proxy_owner', + typeId: 2, + }, + ], + }, + { + type: 'struct sway_libs::upgradability::events::ProxyTargetSet', + metadataTypeId: 11, + components: [ + { + name: 'new_target', + typeId: 9, + }, + ], + }, + ], + functions: [ + { + inputs: [], + name: 'proxy_target', + output: '0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8', + attributes: [ + { + name: 'doc-comment', + arguments: [' Returns the target contract of the proxy contract.'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Returns'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [ + ' * [Option] - The new proxy contract to which all fallback calls will be passed or `None`.', + ], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Number of Storage Accesses'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' * Reads: `1`'], + }, + { + name: 'storage', + arguments: ['read'], + }, + ], + }, + { + inputs: [ + { + name: 'new_target', + concreteTypeId: '29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54', + }, + ], + name: 'set_proxy_target', + output: '2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d', + attributes: [ + { + name: 'doc-comment', + arguments: [' Change the target contract of the proxy contract.'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Additional Information'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' This method can only be called by the `proxy_owner`.'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Arguments'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [ + ' * `new_target`: [ContractId] - The new proxy contract to which all fallback calls will be passed.', + ], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Reverts'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' * When not called by `proxy_owner`.'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Number of Storage Accesses'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' * Reads: `1`'], + }, + { + name: 'doc-comment', + arguments: [' * Write: `1`'], + }, + { + name: 'storage', + arguments: ['read', 'write'], + }, + ], + }, + { + inputs: [], + name: 'proxy_owner', + output: '192bc7098e2fe60635a9918afb563e4e5419d386da2bdbf0d716b4bc8549802c', + attributes: [ + { + name: 'doc-comment', + arguments: [' Returns the owner of the proxy contract.'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Returns'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' * [State] - Represents the state of ownership for this contract.'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Number of Storage Accesses'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' * Reads: `1`'], + }, + { + name: 'storage', + arguments: ['read'], + }, + ], + }, + { + inputs: [], + name: 'initialize_proxy', + output: '2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d', + attributes: [ + { + name: 'doc-comment', + arguments: [' Initializes the proxy contract.'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Additional Information'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [ + ' This method sets the storage values using the values of the configurable constants `INITIAL_TARGET` and `INITIAL_OWNER`.', + ], + }, + { + name: 'doc-comment', + arguments: [' This then allows methods that write to storage to be called.'], + }, + { + name: 'doc-comment', + arguments: [' This method can only be called once.'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Reverts'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' * When `storage::SRC14.proxy_owner` is not [State::Uninitialized].'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Number of Storage Accesses'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' * Writes: `2`'], + }, + { + name: 'storage', + arguments: ['write'], + }, + ], + }, + { + inputs: [ + { + name: 'new_proxy_owner', + concreteTypeId: '192bc7098e2fe60635a9918afb563e4e5419d386da2bdbf0d716b4bc8549802c', + }, + ], + name: 'set_proxy_owner', + output: '2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d', + attributes: [ + { + name: 'doc-comment', + arguments: [' Changes proxy ownership to the passed State.'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Additional Information'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [ + ' This method can be used to transfer ownership between Identities or to revoke ownership.', + ], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Arguments'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' * `new_proxy_owner`: [State] - The new state of the proxy ownership.'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Reverts'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' * When the sender is not the current proxy owner.'], + }, + { + name: 'doc-comment', + arguments: [' * When the new state of the proxy ownership is [State::Uninitialized].'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' # Number of Storage Accesses'], + }, + { + name: 'doc-comment', + arguments: [''], + }, + { + name: 'doc-comment', + arguments: [' * Reads: `1`'], + }, + { + name: 'doc-comment', + arguments: [' * Writes: `1`'], + }, + { + name: 'storage', + arguments: ['write'], + }, + ], + }, + ], + loggedTypes: [ + { + logId: '4571204900286667806', + concreteTypeId: '3f702ea3351c9c1ece2b84048006c8034a24cbc2bad2e740d0412b4172951d3d', + }, + { + logId: '2151606668983994881', + concreteTypeId: '1ddc0adda1270a016c08ffd614f29f599b4725407c8954c8b960bdf651a9a6c8', + }, + { + logId: '2161305517876418151', + concreteTypeId: '1dfe7feadc1d9667a4351761230f948744068a090fe91b1bc6763a90ed5d3893', + }, + { + logId: '4354576968059844266', + concreteTypeId: '3c6e90ae504df6aad8b34a93ba77dc62623e00b777eecacfa034a8ac6e890c74', + }, + { + logId: '10870989709723147660', + concreteTypeId: '96dd838b44f99d8ccae2a7948137ab6256c48ca4abc6168abc880de07fba7247', + }, + { + logId: '10098701174489624218', + concreteTypeId: '8c25cb3686462e9a86d2883c5688a22fe738b0bbc85f458d2d2b5f3f667c6d5a', + }, + ], + messagesTypes: [], + configurables: [ + { + name: 'INITIAL_TARGET', + concreteTypeId: '0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8', + offset: 13368, + }, + { + name: 'INITIAL_OWNER', + concreteTypeId: '192bc7098e2fe60635a9918afb563e4e5419d386da2bdbf0d716b4bc8549802c', + offset: 13320, + }, + ], +}; + +const storageSlots: StorageSlot[] = [ + { + key: '7bb458adc1d118713319a5baa00a2d049dd64d2916477d2688d76970c898cd55', + value: '0000000000000000000000000000000000000000000000000000000000000000', + }, + { + key: '7bb458adc1d118713319a5baa00a2d049dd64d2916477d2688d76970c898cd56', + value: '0000000000000000000000000000000000000000000000000000000000000000', + }, + { + key: 'bb79927b15d9259ea316f2ecb2297d6cc8851888a98278c0a2e03e1a091ea754', + value: '0000000000000000000000000000000000000000000000000000000000000000', + }, + { + key: 'bb79927b15d9259ea316f2ecb2297d6cc8851888a98278c0a2e03e1a091ea755', + value: '0000000000000000000000000000000000000000000000000000000000000000', + }, +]; + +export class Src14OwnedProxyInterface extends Interface { + constructor() { + super(abi); + } + + declare functions: { + proxy_target: FunctionFragment; + set_proxy_target: FunctionFragment; + proxy_owner: FunctionFragment; + initialize_proxy: FunctionFragment; + set_proxy_owner: FunctionFragment; + }; +} + +export class Src14OwnedProxy extends Contract { + static readonly abi = abi; + static readonly storageSlots = storageSlots; + + declare interface: Src14OwnedProxyInterface; + declare functions: { + proxy_target: InvokeFunction<[], Option>; + set_proxy_target: InvokeFunction<[new_target: ContractIdInput], void>; + proxy_owner: InvokeFunction<[], StateOutput>; + initialize_proxy: InvokeFunction<[], void>; + set_proxy_owner: InvokeFunction<[new_proxy_owner: StateInput], void>; + }; + + constructor(id: string | AbstractAddress, accountOrProvider: Account | Provider) { + super(id, abi, accountOrProvider); + } +} diff --git a/packages/recipes/src/types/Src14OwnedProxyFactory.ts b/packages/recipes/src/types/Src14OwnedProxyFactory.ts new file mode 100644 index 00000000000..b0789cb3f5a --- /dev/null +++ b/packages/recipes/src/types/Src14OwnedProxyFactory.ts @@ -0,0 +1,31 @@ +/* Autogenerated file. Do not edit manually. */ + +/* eslint-disable max-classes-per-file */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/consistent-type-imports */ + +/* + Fuels version: 0.97.0 +*/ + +import { ContractFactory, type DeployContractOptions } from '@fuel-ts/contract'; +import { decompressBytecode } from '@fuel-ts/utils'; +import { type Provider, type Account } from '@fuel-ts/account'; +import { Src14OwnedProxy } from './Src14OwnedProxy'; + +const bytecode = decompressBytecode( + 'H4sIAAAAAAAAA9Vbe3Abx3lfgCAFvayz+TAFSjaUUjJkRwosUQ4ly9IhIATSEM2DSVpUGBhg64c0cSyIlVQ5tsccN001aSZlHcdlO06GrtOp6z4GAB+C7T7YR2bUiTtlZhxbTeMWmiatFAst60YZqm6j/r5v93DHw4GOJ84f0QznFne73+5+j9/32FVgISxO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+WjZPQpyGifxGlVVyNb7kPewPUAxlnEjqBVuVvr3Lvfo7CW7sJDVoQFU6Sf8Hmw1XjhTKWdKJCv4bW6+07PBcddbr5H6ND/keq71Pg/BZW71HRfP9iLOOEeYEKftG/3u9Sof2ypvm+Zp9pEJ2jsxvg9GN/tdt8S6zDv0VIOp2Su7l5KmX8MMm+DzDfwPVqpS83QJdJNA7pUuQPm0GM+h7DO4/iOlTqDWwiD5nrQDCzVI+iJFbsu55P31/bJ/oWfpU+GbDln+qA+GePeruWTf1b/sqPHTj+WPjEy+vCD9N+CxC8/eCJtf/f49NCf/NW3Wo/vXP/7r06u2ub76pu9W1viT24589bR7LmJvx+UfY/9yqMPjjK9o48ePXF05JGjn31QkrHoyT4bv7vq7RduWeV5nf8J7/7s9hd3bXj+pmv8T4jXHnvm8eZ/3Py1F1vevVzY+uQj536t9cwfPn167vdK+wIrb/qDgQMjjzzyiyO/9OnY6Oix0T17BniR9xw70S+XL764+Zt3fP7A9t/N/+ZE57Nf/vrLvkvPvzZ7cNOb//qZYwfLl18+uv/V/5j8h4eu+8Ku/xk+uePbe3/06xf23ZVr+sG7/m8Uv9HxR0fvemvl2vu9D6f3bfzxUz/47sbnHn7u7V/9ja6rX/3i3kfH/9To/dHLkms7/1c+d7yuns+r50H5vF19335ePtvfkM8W9X3lEfn0qff1n1PPDvV8Vj7rJuXT88b/AzdExjYINgAA' +); + +export class Src14OwnedProxyFactory extends ContractFactory { + static readonly bytecode = bytecode; + + constructor(accountOrProvider: Account | Provider) { + super(bytecode, Src14OwnedProxy.abi, accountOrProvider, Src14OwnedProxy.storageSlots); + } + + static deploy(wallet: Account, options: DeployContractOptions = {}) { + const factory = new Src14OwnedProxyFactory(wallet); + return factory.deploy(options); + } +} diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts b/packages/recipes/src/types/common.d.ts similarity index 93% rename from packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts rename to packages/recipes/src/types/common.d.ts index 4b26f59da49..d7ca20eaa69 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts +++ b/packages/recipes/src/types/common.d.ts @@ -28,4 +28,4 @@ export type Vec = T[]; * Mimics Sway Result enum type. * Ok represents the success case, while Err represents the error case. */ -export type Result = Enum<{Ok: T, Err: E}>; +export type Result = Enum<{ Ok: T; Err: E }>; diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/index.ts b/packages/recipes/src/types/index.ts similarity index 100% rename from packages/fuels/src/cli/commands/deploy/proxy/types/index.ts rename to packages/recipes/src/types/index.ts diff --git a/packages/recipes/tsconfig.dts.json b/packages/recipes/tsconfig.dts.json new file mode 100644 index 00000000000..ccca2ac1f3e --- /dev/null +++ b/packages/recipes/tsconfig.dts.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["src"], + "exclude": ["**/*.test.ts"] +} diff --git a/packages/recipes/tsconfig.json b/packages/recipes/tsconfig.json new file mode 100644 index 00000000000..b0fced27d72 --- /dev/null +++ b/packages/recipes/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "./dist" + }, + "include": ["src"] +} diff --git a/packages/recipes/tsdoc.json b/packages/recipes/tsdoc.json new file mode 100644 index 00000000000..4514b072727 --- /dev/null +++ b/packages/recipes/tsdoc.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "extends": ["../../tsdoc.base.json"] +} diff --git a/packages/recipes/tsup.config.ts b/packages/recipes/tsup.config.ts new file mode 100644 index 00000000000..4c7f2f0354f --- /dev/null +++ b/packages/recipes/tsup.config.ts @@ -0,0 +1,3 @@ +import { index } from '@internal/tsup'; + +export default index; diff --git a/packages/recipes/typedoc.json b/packages/recipes/typedoc.json new file mode 100644 index 00000000000..a8ec6b825f0 --- /dev/null +++ b/packages/recipes/typedoc.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://typedoc.org/schema.json", + "extends": ["../../typedoc.base.json"], + "entryPoints": ["src/index.ts"], + "readme": "none" +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a1e0269410b..fbfbc98c79b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,7 +31,7 @@ importers: version: 6.0.0 '@codspeed/vitest-plugin': specifier: ^3.1.1 - version: 3.1.1(vite@5.4.9(@types/node@22.5.5)(terser@5.36.0))(vitest@2.0.5(@types/node@22.5.5)(@vitest/browser@2.0.5)(jsdom@16.7.0(bufferutil@4.0.8)(utf-8-validate@6.0.4))(terser@5.36.0)) + version: 3.1.1(vite@5.4.9(@types/node@22.5.5)(terser@5.36.0))(vitest@2.0.5) '@elasticpath/textlint-rule-no-dead-relative-link': specifier: ^1.1.1 version: 1.1.1 @@ -73,7 +73,7 @@ importers: version: 2.0.5(bufferutil@4.0.8)(playwright@1.47.2)(typescript@5.6.3)(utf-8-validate@6.0.4)(vitest@2.0.5)(webdriverio@9.0.9(bufferutil@4.0.8)(utf-8-validate@6.0.4)) '@vitest/coverage-istanbul': specifier: ~2.0.5 - version: 2.0.5(vitest@2.0.5(@types/node@22.5.5)(@vitest/browser@2.0.5)(jsdom@16.7.0(bufferutil@4.0.8)(utf-8-validate@6.0.4))(terser@5.36.0)) + version: 2.0.5(vitest@2.0.5) autocannon: specifier: ^7.15.0 version: 7.15.0 @@ -163,7 +163,7 @@ importers: version: 0.1.1 tsup: specifier: ^6.7.0 - version: 6.7.0(@swc/core@1.7.14)(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(typescript@5.6.3) + version: 6.7.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(typescript@5.6.3) tsx: specifier: ^4.19.1 version: 4.19.1 @@ -266,7 +266,7 @@ importers: version: 8.4.49 tailwindcss: specifier: ^3.4.14 - version: 3.4.14(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3)) + version: 3.4.14(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3)) typescript: specifier: ~5.6.3 version: 5.6.3 @@ -363,7 +363,7 @@ importers: version: 18.3.0 eslint-config-react-app: specifier: ^7.0.1 - version: 7.0.1(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(eslint@9.9.1(jiti@2.3.3))(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10))(typescript@5.6.3) + version: 7.0.1(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(eslint@9.9.1(jiti@2.3.3))(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10))(typescript@5.6.3) fuels: specifier: workspace:* version: link:../../packages/fuels @@ -375,7 +375,7 @@ importers: version: 18.3.1(react@18.3.1) react-scripts: specifier: 5.0.1 - version: 5.0.1(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(@swc/core@1.7.14)(@types/babel__core@7.20.5)(bufferutil@4.0.8)(esbuild@0.17.19)(eslint@9.9.1(jiti@2.3.3))(react@18.3.1)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(type-fest@3.1.0)(typescript@5.6.3)(utf-8-validate@5.0.10) + version: 5.0.1(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/babel__core@7.20.5)(bufferutil@4.0.8)(esbuild@0.17.19)(eslint@9.9.1(jiti@2.3.3))(react@18.3.1)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(type-fest@3.1.0)(typescript@5.6.3)(utf-8-validate@5.0.10) typescript: specifier: ~5.6.3 version: 5.6.3 @@ -496,7 +496,7 @@ importers: version: 6.0.1(jiti@2.3.3)(postcss@8.4.49)(tsx@4.19.1)(yaml@2.6.0) tailwindcss: specifier: ^3.4.14 - version: 3.4.14(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3)) + version: 3.4.14(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3)) typescript: specifier: ~5.6.3 version: 5.6.3 @@ -981,6 +981,9 @@ importers: '@fuel-ts/program': specifier: workspace:* version: link:../program + '@fuel-ts/recipes': + specifier: workspace:* + version: link:../recipes '@fuel-ts/script': specifier: workspace:* version: link:../script @@ -1137,6 +1140,33 @@ importers: specifier: ^0.30.2 version: 0.30.2 + packages/recipes: + dependencies: + '@fuel-ts/abi-coder': + specifier: workspace:* + version: link:../abi-coder + '@fuel-ts/abi-typegen': + specifier: workspace:* + version: link:../abi-typegen + '@fuel-ts/account': + specifier: workspace:* + version: link:../account + '@fuel-ts/contract': + specifier: workspace:* + version: link:../contract + '@fuel-ts/interfaces': + specifier: workspace:* + version: link:../interfaces + '@fuel-ts/program': + specifier: workspace:* + version: link:../program + '@fuel-ts/transactions': + specifier: workspace:* + version: link:../transactions + '@fuel-ts/utils': + specifier: workspace:* + version: link:../utils + packages/script: dependencies: '@fuel-ts/abi-coder': @@ -1294,7 +1324,7 @@ importers: version: 8.4.49 tailwindcss: specifier: ^3.4.14 - version: 3.4.14(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3)) + version: 3.4.14(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3)) typescript: specifier: ~5.6.3 version: 5.6.3 @@ -1376,7 +1406,7 @@ importers: version: 8.4.49 tailwindcss: specifier: ^3.4.14 - version: 3.4.14(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.7.7)(typescript@5.6.3)) + version: 3.4.14(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.7.7)(typescript@5.6.3)) typescript: specifier: ~5.6.3 version: 5.6.3 @@ -11973,10 +12003,6 @@ packages: resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} engines: {node: '>= 6.13.0'} - node-gyp-build@4.8.1: - resolution: {integrity: sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw==} - hasBin: true - node-gyp-build@4.8.2: resolution: {integrity: sha512-IRUxE4BVsHWXkV/SFOut4qTlagw2aM8T5/vnTsmrHJvVoKueJHRc/JaFND7QDDc61kLYUJ6qlZM3sqTSyx2dTw==} hasBin: true @@ -13095,9 +13121,6 @@ packages: resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==} engines: {node: ^10 || ^12 || >=14} - preact@10.23.2: - resolution: {integrity: sha512-kKYfePf9rzKnxOAKDpsWhg/ysrHPqT+yQ7UW4JjdnqjFIeNUnNcEJvhuA8fDenxAGWzUqtd51DfVg7xp/8T9NA==} - preact@10.24.1: resolution: {integrity: sha512-PnBAwFI3Yjxxcxw75n6VId/5TFxNW/81zexzWD9jn1+eSrOP84NdsS38H5IkF/UH3frqRPT+MvuCoVHjTDTnDw==} @@ -19106,11 +19129,11 @@ snapshots: axios: 1.7.7 find-up: 6.3.0 form-data: 4.0.0 - node-gyp-build: 4.8.1 + node-gyp-build: 4.8.2 transitivePeerDependencies: - debug - '@codspeed/vitest-plugin@3.1.1(vite@5.4.9(@types/node@22.5.5)(terser@5.36.0))(vitest@2.0.5(@types/node@22.5.5)(@vitest/browser@2.0.5)(jsdom@16.7.0(bufferutil@4.0.8)(utf-8-validate@6.0.4))(terser@5.36.0))': + '@codspeed/vitest-plugin@3.1.1(vite@5.4.9(@types/node@22.5.5)(terser@5.36.0))(vitest@2.0.5)': dependencies: '@codspeed/core': 3.1.1 vite: 5.4.9(@types/node@22.5.5)(terser@5.36.0) @@ -19234,7 +19257,7 @@ snapshots: '@docsearch/js@3.6.1(@algolia/client-search@4.22.1)(@types/react@18.3.11)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.11.0)': dependencies: '@docsearch/react': 3.6.1(@algolia/client-search@4.22.1)(@types/react@18.3.11)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(search-insights@2.11.0) - preact: 10.23.2 + preact: 10.24.3 transitivePeerDependencies: - '@algolia/client-search' - '@types/react' @@ -20393,7 +20416,7 @@ snapshots: jest-util: 28.1.3 slash: 3.0.0 - '@jest/core@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10)': + '@jest/core@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10)': dependencies: '@jest/console': 27.5.1 '@jest/reporters': 27.5.1 @@ -20407,7 +20430,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 27.5.1 - jest-config: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) + jest-config: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) jest-haste-map: 27.5.1 jest-message-util: 27.5.1 jest-regex-util: 27.5.1 @@ -21260,7 +21283,7 @@ snapshots: dependencies: playwright: 1.47.2 - '@pmmmwh/react-refresh-webpack-plugin@0.5.10(react-refresh@0.11.0)(type-fest@3.1.0)(webpack-dev-server@4.15.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)))(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19))': + '@pmmmwh/react-refresh-webpack-plugin@0.5.10(react-refresh@0.11.0)(type-fest@3.1.0)(webpack-dev-server@4.15.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)))(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19))': dependencies: ansi-html-community: 0.0.8 common-path-prefix: 3.0.0 @@ -21272,10 +21295,10 @@ snapshots: react-refresh: 0.11.0 schema-utils: 3.3.0 source-map: 0.7.4 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) optionalDependencies: type-fest: 3.1.0 - webpack-dev-server: 4.15.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + webpack-dev-server: 4.15.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) '@polka/url@1.0.0-next.24': {} @@ -22357,7 +22380,7 @@ snapshots: '@swc/core-win32-x64-msvc@1.7.14': optional: true - '@swc/core@1.7.14': + '@swc/core@1.7.14(@swc/helpers@0.5.12)': dependencies: '@swc/counter': 0.1.3 '@swc/types': 0.1.12 @@ -22372,6 +22395,7 @@ snapshots: '@swc/core-win32-arm64-msvc': 1.7.14 '@swc/core-win32-ia32-msvc': 1.7.14 '@swc/core-win32-x64-msvc': 1.7.14 + '@swc/helpers': 0.5.12 optional: true '@swc/counter@0.1.3': {} @@ -23341,7 +23365,7 @@ snapshots: vite: 5.4.9(@types/node@22.7.7)(terser@5.36.0) vue: 3.5.12(typescript@5.6.3) - '@vitest/browser@2.0.5(bufferutil@4.0.8)(playwright@1.47.2)(typescript@5.6.3)(utf-8-validate@5.0.10)(vitest@2.0.5)(webdriverio@9.0.9(bufferutil@4.0.8)(utf-8-validate@6.0.4))': + '@vitest/browser@2.0.5(bufferutil@4.0.8)(playwright@1.47.2)(typescript@5.6.3)(utf-8-validate@5.0.10)(vitest@2.0.5)(webdriverio@9.0.9(bufferutil@4.0.8)(utf-8-validate@5.0.10))': dependencies: '@testing-library/dom': 10.4.0 '@testing-library/user-event': 14.5.2(@testing-library/dom@10.4.0) @@ -23353,7 +23377,7 @@ snapshots: ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) optionalDependencies: playwright: 1.47.2 - webdriverio: 9.0.9(bufferutil@4.0.8)(utf-8-validate@6.0.4) + webdriverio: 9.0.9(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - typescript @@ -23378,7 +23402,7 @@ snapshots: - typescript - utf-8-validate - '@vitest/coverage-istanbul@2.0.5(vitest@2.0.5(@types/node@22.5.5)(@vitest/browser@2.0.5)(jsdom@16.7.0(bufferutil@4.0.8)(utf-8-validate@6.0.4))(terser@5.36.0))': + '@vitest/coverage-istanbul@2.0.5(vitest@2.0.5)': dependencies: '@istanbuljs/schema': 0.1.3 debug: 4.3.7(supports-color@5.5.0) @@ -25327,14 +25351,14 @@ snapshots: transitivePeerDependencies: - supports-color - babel-loader@8.3.0(@babel/core@7.22.5)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + babel-loader@8.3.0(@babel/core@7.22.5)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: '@babel/core': 7.22.5 find-cache-dir: 3.3.2 loader-utils: 2.0.4 make-dir: 3.1.0 schema-utils: 2.7.1 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) babel-plugin-istanbul@6.1.1: dependencies: @@ -26678,7 +26702,7 @@ snapshots: dependencies: hyphenate-style-name: 1.0.4 - css-loader@6.8.1(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + css-loader@6.8.1(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: icss-utils: 5.1.0(postcss@8.4.49) postcss: 8.4.49 @@ -26688,9 +26712,9 @@ snapshots: postcss-modules-values: 4.0.0(postcss@8.4.49) postcss-value-parser: 4.2.0 semver: 7.3.8 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) - css-minimizer-webpack-plugin@3.4.1(esbuild@0.17.19)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + css-minimizer-webpack-plugin@3.4.1(esbuild@0.17.19)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: cssnano: 5.1.15(postcss@8.4.49) jest-worker: 27.5.1 @@ -26698,7 +26722,7 @@ snapshots: schema-utils: 4.2.0 serialize-javascript: 6.0.1 source-map: 0.6.1 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) optionalDependencies: esbuild: 0.17.19 @@ -27786,7 +27810,7 @@ snapshots: dependencies: eslint: 8.57.0 - eslint-config-react-app@7.0.1(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(eslint@9.9.1(jiti@2.3.3))(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10))(typescript@5.6.3): + eslint-config-react-app@7.0.1(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(eslint@9.9.1(jiti@2.3.3))(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10))(typescript@5.6.3): dependencies: '@babel/core': 7.22.5 '@babel/eslint-parser': 7.22.5(@babel/core@7.22.5)(eslint@9.9.1(jiti@2.3.3)) @@ -27798,7 +27822,7 @@ snapshots: eslint: 9.9.1(jiti@2.3.3) eslint-plugin-flowtype: 8.0.3(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(eslint@9.9.1(jiti@2.3.3)) eslint-plugin-import: 2.29.1(@typescript-eslint/parser@5.59.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3))(eslint@9.9.1(jiti@2.3.3)) - eslint-plugin-jest: 25.7.0(@typescript-eslint/eslint-plugin@5.59.0(@typescript-eslint/parser@5.59.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3))(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3))(eslint@9.9.1(jiti@2.3.3))(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10))(typescript@5.6.3) + eslint-plugin-jest: 25.7.0(@typescript-eslint/eslint-plugin@5.59.0(@typescript-eslint/parser@5.59.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3))(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3))(eslint@9.9.1(jiti@2.3.3))(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10))(typescript@5.6.3) eslint-plugin-jsx-a11y: 6.9.0(eslint@9.9.1(jiti@2.3.3)) eslint-plugin-react: 7.35.0(eslint@9.9.1(jiti@2.3.3)) eslint-plugin-react-hooks: 4.6.2(eslint@9.9.1(jiti@2.3.3)) @@ -27965,13 +27989,13 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-jest@25.7.0(@typescript-eslint/eslint-plugin@5.59.0(@typescript-eslint/parser@5.59.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3))(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3))(eslint@9.9.1(jiti@2.3.3))(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10))(typescript@5.6.3): + eslint-plugin-jest@25.7.0(@typescript-eslint/eslint-plugin@5.59.0(@typescript-eslint/parser@5.59.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3))(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3))(eslint@9.9.1(jiti@2.3.3))(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10))(typescript@5.6.3): dependencies: '@typescript-eslint/experimental-utils': 5.60.1(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3) eslint: 9.9.1(jiti@2.3.3) optionalDependencies: '@typescript-eslint/eslint-plugin': 5.59.0(@typescript-eslint/parser@5.59.0(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3))(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3) - jest: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) + jest: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) transitivePeerDependencies: - supports-color - typescript @@ -28153,7 +28177,7 @@ snapshots: eslint-visitor-keys@4.1.0: {} - eslint-webpack-plugin@3.2.0(eslint@9.9.1(jiti@2.3.3))(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + eslint-webpack-plugin@3.2.0(eslint@9.9.1(jiti@2.3.3))(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: '@types/eslint': 8.40.2 eslint: 9.9.1(jiti@2.3.3) @@ -28161,7 +28185,7 @@ snapshots: micromatch: 4.0.8 normalize-path: 3.0.0 schema-utils: 4.2.0 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) eslint@8.57.0: dependencies: @@ -28620,11 +28644,11 @@ snapshots: dependencies: flat-cache: 4.0.1 - file-loader@6.2.0(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + file-loader@6.2.0(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: loader-utils: 2.0.4 schema-utils: 3.3.0 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) file-uri-to-path@1.0.0: {} @@ -28760,7 +28784,7 @@ snapshots: forever-agent@0.6.1: {} - fork-ts-checker-webpack-plugin@6.5.3(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + fork-ts-checker-webpack-plugin@6.5.3(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: '@babel/code-frame': 7.25.7 '@types/json-schema': 7.0.12 @@ -28776,7 +28800,7 @@ snapshots: semver: 7.6.3 tapable: 1.1.3 typescript: 5.6.3 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) optionalDependencies: eslint: 9.9.1(jiti@2.3.3) @@ -29340,14 +29364,14 @@ snapshots: relateurl: 0.2.7 terser: 5.18.2 - html-webpack-plugin@5.5.3(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + html-webpack-plugin@5.5.3(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: '@types/html-minifier-terser': 6.1.0 html-minifier-terser: 6.1.0 lodash: 4.17.21 pretty-error: 4.0.0 tapable: 2.2.1 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) htmlescape@1.1.1: {} @@ -30084,16 +30108,16 @@ snapshots: transitivePeerDependencies: - supports-color - jest-cli@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10): + jest-cli@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10): dependencies: - '@jest/core': 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) + '@jest/core': 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) '@jest/test-result': 27.5.1 '@jest/types': 27.5.1 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) + jest-config: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) jest-util: 27.5.1 jest-validate: 27.5.1 prompts: 2.4.2 @@ -30105,7 +30129,7 @@ snapshots: - ts-node - utf-8-validate - jest-config@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10): + jest-config@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10): dependencies: '@babel/core': 7.25.8 '@jest/test-sequencer': 27.5.1 @@ -30132,7 +30156,7 @@ snapshots: slash: 3.0.0 strip-json-comments: 3.1.1 optionalDependencies: - ts-node: 10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3) + ts-node: 10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3) transitivePeerDependencies: - bufferutil - canvas @@ -30469,11 +30493,11 @@ snapshots: leven: 3.1.0 pretty-format: 29.7.0 - jest-watch-typeahead@1.1.0(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10)): + jest-watch-typeahead@1.1.0(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10)): dependencies: ansi-escapes: 4.3.2 chalk: 4.1.2 - jest: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) + jest: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) jest-regex-util: 28.0.2 jest-watcher: 28.1.3 slash: 4.0.0 @@ -30526,11 +30550,11 @@ snapshots: merge-stream: 2.0.0 supports-color: 8.1.1 - jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10): + jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10): dependencies: - '@jest/core': 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) + '@jest/core': 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) import-local: 3.1.0 - jest-cli: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) + jest-cli: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - canvas @@ -31591,10 +31615,10 @@ snapshots: mimic-response@1.0.1: {} - mini-css-extract-plugin@2.7.6(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + mini-css-extract-plugin@2.7.6(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: schema-utils: 4.2.0 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) minify-stream@2.1.0: dependencies: @@ -31957,8 +31981,6 @@ snapshots: node-forge@1.3.1: {} - node-gyp-build@4.8.1: {} - node-gyp-build@4.8.2: {} node-int64@0.4.0: {} @@ -32852,29 +32874,29 @@ snapshots: postcss: 8.4.49 postcss-value-parser: 4.2.0 - postcss-load-config@3.1.4(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3)): + postcss-load-config@3.1.4(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3)): dependencies: lilconfig: 2.1.0 yaml: 1.10.2 optionalDependencies: postcss: 8.4.49 - ts-node: 10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3) + ts-node: 10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3) - postcss-load-config@4.0.1(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3)): + postcss-load-config@4.0.1(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3)): dependencies: lilconfig: 2.1.0 yaml: 2.6.0 optionalDependencies: postcss: 8.4.49 - ts-node: 10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3) + ts-node: 10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3) - postcss-load-config@4.0.1(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.7.7)(typescript@5.6.3)): + postcss-load-config@4.0.1(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.7.7)(typescript@5.6.3)): dependencies: lilconfig: 2.1.0 yaml: 2.6.0 optionalDependencies: postcss: 8.4.49 - ts-node: 10.9.1(@swc/core@1.7.14)(@types/node@22.7.7)(typescript@5.6.3) + ts-node: 10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.7.7)(typescript@5.6.3) postcss-load-config@6.0.1(jiti@2.3.3)(postcss@8.4.49)(tsx@4.19.1)(yaml@2.6.0): dependencies: @@ -32885,13 +32907,13 @@ snapshots: tsx: 4.19.1 yaml: 2.6.0 - postcss-loader@6.2.1(postcss@8.4.49)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + postcss-loader@6.2.1(postcss@8.4.49)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: cosmiconfig: 7.1.0 klona: 2.0.6 postcss: 8.4.49 semver: 7.3.8 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) postcss-logical@5.0.4(postcss@8.4.49): dependencies: @@ -33162,8 +33184,6 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 - preact@10.23.2: {} - preact@10.24.1: {} preact@10.24.3: {} @@ -33454,7 +33474,7 @@ snapshots: regenerator-runtime: 0.13.11 whatwg-fetch: 3.6.2 - react-dev-utils@12.0.1(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + react-dev-utils@12.0.1(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: '@babel/code-frame': 7.22.5 address: 1.2.2 @@ -33465,7 +33485,7 @@ snapshots: escape-string-regexp: 4.0.0 filesize: 8.0.7 find-up: 5.0.0 - fork-ts-checker-webpack-plugin: 6.5.3(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + fork-ts-checker-webpack-plugin: 6.5.3(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) global-modules: 2.0.0 globby: 11.1.0 gzip-size: 6.0.0 @@ -33480,7 +33500,7 @@ snapshots: shell-quote: 1.8.1 strip-ansi: 6.0.1 text-table: 0.2.0 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) optionalDependencies: typescript: 5.6.3 transitivePeerDependencies: @@ -33647,56 +33667,56 @@ snapshots: optionalDependencies: '@types/react': 18.3.1 - react-scripts@5.0.1(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(@swc/core@1.7.14)(@types/babel__core@7.20.5)(bufferutil@4.0.8)(esbuild@0.17.19)(eslint@9.9.1(jiti@2.3.3))(react@18.3.1)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(type-fest@3.1.0)(typescript@5.6.3)(utf-8-validate@5.0.10): + react-scripts@5.0.1(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/babel__core@7.20.5)(bufferutil@4.0.8)(esbuild@0.17.19)(eslint@9.9.1(jiti@2.3.3))(react@18.3.1)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(type-fest@3.1.0)(typescript@5.6.3)(utf-8-validate@5.0.10): dependencies: '@babel/core': 7.22.5 - '@pmmmwh/react-refresh-webpack-plugin': 0.5.10(react-refresh@0.11.0)(type-fest@3.1.0)(webpack-dev-server@4.15.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)))(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + '@pmmmwh/react-refresh-webpack-plugin': 0.5.10(react-refresh@0.11.0)(type-fest@3.1.0)(webpack-dev-server@4.15.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)))(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) '@svgr/webpack': 5.5.0 babel-jest: 27.5.1(@babel/core@7.22.5) - babel-loader: 8.3.0(@babel/core@7.22.5)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + babel-loader: 8.3.0(@babel/core@7.22.5)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) babel-plugin-named-asset-import: 0.3.8(@babel/core@7.22.5) babel-preset-react-app: 10.0.1 bfj: 7.0.2 browserslist: 4.21.9 camelcase: 6.3.0 case-sensitive-paths-webpack-plugin: 2.4.0 - css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) - css-minimizer-webpack-plugin: 3.4.1(esbuild@0.17.19)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) + css-minimizer-webpack-plugin: 3.4.1(esbuild@0.17.19)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) dotenv: 10.0.0 dotenv-expand: 5.1.0 eslint: 9.9.1(jiti@2.3.3) - eslint-config-react-app: 7.0.1(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(eslint@9.9.1(jiti@2.3.3))(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10))(typescript@5.6.3) - eslint-webpack-plugin: 3.2.0(eslint@9.9.1(jiti@2.3.3))(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) - file-loader: 6.2.0(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + eslint-config-react-app: 7.0.1(@babel/plugin-syntax-flow@7.25.7(@babel/core@7.22.5))(@babel/plugin-transform-react-jsx@7.25.7(@babel/core@7.22.5))(eslint@9.9.1(jiti@2.3.3))(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10))(typescript@5.6.3) + eslint-webpack-plugin: 3.2.0(eslint@9.9.1(jiti@2.3.3))(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) + file-loader: 6.2.0(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) fs-extra: 10.1.0 - html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) identity-obj-proxy: 3.0.0 - jest: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) + jest: 27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10) jest-resolve: 27.5.1 - jest-watch-typeahead: 1.1.0(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10)) - mini-css-extract-plugin: 2.7.6(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + jest-watch-typeahead: 1.1.0(jest@27.5.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(utf-8-validate@5.0.10)) + mini-css-extract-plugin: 2.7.6(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) postcss: 8.4.49 postcss-flexbugs-fixes: 5.0.2(postcss@8.4.49) - postcss-loader: 6.2.1(postcss@8.4.49)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + postcss-loader: 6.2.1(postcss@8.4.49)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) postcss-normalize: 10.0.1(browserslist@4.21.9)(postcss@8.4.49) postcss-preset-env: 7.8.3(postcss@8.4.49) prompts: 2.4.2 react: 18.3.1 react-app-polyfill: 3.0.0 - react-dev-utils: 12.0.1(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + react-dev-utils: 12.0.1(eslint@9.9.1(jiti@2.3.3))(typescript@5.6.3)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) react-refresh: 0.11.0 resolve: 1.22.2 resolve-url-loader: 4.0.0 - sass-loader: 12.6.0(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + sass-loader: 12.6.0(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) semver: 7.3.8 - source-map-loader: 3.0.2(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) - style-loader: 3.3.3(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) - tailwindcss: 3.4.14(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3)) - terser-webpack-plugin: 5.3.9(@swc/core@1.7.14)(esbuild@0.17.19)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) - webpack-dev-server: 4.15.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) - webpack-manifest-plugin: 4.1.1(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) - workbox-webpack-plugin: 6.6.0(@types/babel__core@7.20.5)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + source-map-loader: 3.0.2(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) + style-loader: 3.3.3(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) + tailwindcss: 3.4.14(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3)) + terser-webpack-plugin: 5.3.9(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) + webpack-dev-server: 4.15.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) + webpack-manifest-plugin: 4.1.1(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) + workbox-webpack-plugin: 6.6.0(@types/babel__core@7.20.5)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) optionalDependencies: fsevents: 2.3.3 typescript: 5.6.3 @@ -34245,11 +34265,11 @@ snapshots: sanitize.css@13.0.0: {} - sass-loader@12.6.0(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + sass-loader@12.6.0(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: klona: 2.0.6 neo-async: 2.6.2 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) sax@1.2.4: {} @@ -34628,12 +34648,12 @@ snapshots: source-map-js@1.2.1: {} - source-map-loader@3.0.2(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + source-map-loader@3.0.2(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: abab: 2.0.6 iconv-lite: 0.6.3 source-map-js: 1.2.1 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) source-map-support@0.5.21: dependencies: @@ -35024,9 +35044,9 @@ snapshots: dependencies: boundary: 2.0.0 - style-loader@3.3.3(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + style-loader@3.3.3(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) styled-jsx@5.1.1(@babel/core@7.25.8)(react@18.3.1): dependencies: @@ -35169,7 +35189,7 @@ snapshots: tachyons@4.12.0: {} - tailwindcss@3.4.14(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3)): + tailwindcss@3.4.14(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3)): dependencies: '@alloc/quick-lru': 5.2.0 arg: 5.0.2 @@ -35188,7 +35208,7 @@ snapshots: postcss: 8.4.49 postcss-import: 15.1.0(postcss@8.4.49) postcss-js: 4.0.1(postcss@8.4.49) - postcss-load-config: 4.0.1(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3)) + postcss-load-config: 4.0.1(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3)) postcss-nested: 6.0.1(postcss@8.4.49) postcss-selector-parser: 6.0.13 resolve: 1.22.8 @@ -35196,7 +35216,7 @@ snapshots: transitivePeerDependencies: - ts-node - tailwindcss@3.4.14(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.7.7)(typescript@5.6.3)): + tailwindcss@3.4.14(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.7.7)(typescript@5.6.3)): dependencies: '@alloc/quick-lru': 5.2.0 arg: 5.0.2 @@ -35215,7 +35235,7 @@ snapshots: postcss: 8.4.49 postcss-import: 15.1.0(postcss@8.4.49) postcss-js: 4.0.1(postcss@8.4.49) - postcss-load-config: 4.0.1(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.7.7)(typescript@5.6.3)) + postcss-load-config: 4.0.1(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.7.7)(typescript@5.6.3)) postcss-nested: 6.0.1(postcss@8.4.49) postcss-selector-parser: 6.0.13 resolve: 1.22.8 @@ -35261,16 +35281,16 @@ snapshots: ansi-escapes: 4.3.2 supports-hyperlinks: 2.3.0 - terser-webpack-plugin@5.3.9(@swc/core@1.7.14)(esbuild@0.17.19)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + terser-webpack-plugin@5.3.9(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.1 terser: 5.34.1 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) optionalDependencies: - '@swc/core': 1.7.14 + '@swc/core': 1.7.14(@swc/helpers@0.5.12) esbuild: 0.17.19 terser@4.8.1: @@ -35547,7 +35567,7 @@ snapshots: ts-log@2.2.5: {} - ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3): + ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -35565,10 +35585,10 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: - '@swc/core': 1.7.14 + '@swc/core': 1.7.14(@swc/helpers@0.5.12) optional: true - ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.7.7)(typescript@5.6.3): + ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.7.7)(typescript@5.6.3): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -35586,7 +35606,7 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: - '@swc/core': 1.7.14 + '@swc/core': 1.7.14(@swc/helpers@0.5.12) optional: true ts-toolbelt@9.6.0: {} @@ -35610,7 +35630,7 @@ snapshots: tslib@2.8.0: {} - tsup@6.7.0(@swc/core@1.7.14)(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3))(typescript@5.6.3): + tsup@6.7.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3))(typescript@5.6.3): dependencies: bundle-require: 4.0.1(esbuild@0.17.19) cac: 6.7.14 @@ -35620,14 +35640,14 @@ snapshots: execa: 5.1.1 globby: 11.1.0 joycon: 3.1.1 - postcss-load-config: 3.1.4(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14)(@types/node@22.5.5)(typescript@5.6.3)) + postcss-load-config: 3.1.4(postcss@8.4.49)(ts-node@10.9.1(@swc/core@1.7.14(@swc/helpers@0.5.12))(@types/node@22.5.5)(typescript@5.6.3)) resolve-from: 5.0.0 rollup: 3.25.3 source-map: 0.8.0-beta.0 sucrase: 3.32.0 tree-kill: 1.2.2 optionalDependencies: - '@swc/core': 1.7.14 + '@swc/core': 1.7.14(@swc/helpers@0.5.12) postcss: 8.4.49 typescript: 5.6.3 transitivePeerDependencies: @@ -36327,7 +36347,7 @@ snapshots: why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 22.5.5 - '@vitest/browser': 2.0.5(bufferutil@4.0.8)(playwright@1.47.2)(typescript@5.6.3)(utf-8-validate@5.0.10)(vitest@2.0.5)(webdriverio@9.0.9(bufferutil@4.0.8)(utf-8-validate@6.0.4)) + '@vitest/browser': 2.0.5(bufferutil@4.0.8)(playwright@1.47.2)(typescript@5.6.3)(utf-8-validate@5.0.10)(vitest@2.0.5)(webdriverio@9.0.9(bufferutil@4.0.8)(utf-8-validate@5.0.10)) jsdom: 16.7.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - less @@ -36397,7 +36417,7 @@ snapshots: why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 22.7.7 - '@vitest/browser': 2.0.5(bufferutil@4.0.8)(playwright@1.47.2)(typescript@5.6.3)(utf-8-validate@5.0.10)(vitest@2.0.5)(webdriverio@9.0.9(bufferutil@4.0.8)(utf-8-validate@6.0.4)) + '@vitest/browser': 2.0.5(bufferutil@4.0.8)(playwright@1.47.2)(typescript@5.6.3)(utf-8-validate@5.0.10)(vitest@2.0.5)(webdriverio@9.0.9(bufferutil@4.0.8)(utf-8-validate@5.0.10)) jsdom: 16.7.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) transitivePeerDependencies: - less @@ -36469,6 +36489,23 @@ snapshots: '@noble/curves': 1.6.0 '@noble/hashes': 1.5.0 + webdriver@9.0.8(bufferutil@4.0.8)(utf-8-validate@5.0.10): + dependencies: + '@types/node': 20.14.15 + '@types/ws': 8.5.12 + '@wdio/config': 9.0.8 + '@wdio/logger': 9.0.8 + '@wdio/protocols': 9.0.8 + '@wdio/types': 9.0.8 + '@wdio/utils': 9.0.8 + deepmerge-ts: 7.1.0 + ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + optional: true + webdriver@9.0.8(bufferutil@4.0.8)(utf-8-validate@6.0.4): dependencies: '@types/node': 20.14.15 @@ -36485,6 +36522,41 @@ snapshots: - supports-color - utf-8-validate + webdriverio@9.0.9(bufferutil@4.0.8)(utf-8-validate@5.0.10): + dependencies: + '@types/node': 20.14.15 + '@types/sinonjs__fake-timers': 8.1.5 + '@wdio/config': 9.0.8 + '@wdio/logger': 9.0.8 + '@wdio/protocols': 9.0.8 + '@wdio/repl': 9.0.8 + '@wdio/types': 9.0.8 + '@wdio/utils': 9.0.8 + archiver: 7.0.1 + aria-query: 5.3.0 + cheerio: 1.0.0 + css-shorthand-properties: 1.1.1 + css-value: 0.0.1 + grapheme-splitter: 1.0.4 + htmlfy: 0.2.1 + import-meta-resolve: 4.1.0 + is-plain-obj: 4.1.0 + jszip: 3.10.1 + lodash.clonedeep: 4.5.0 + lodash.zip: 4.2.0 + minimatch: 9.0.5 + query-selector-shadow-dom: 1.0.1 + resq: 1.11.0 + rgb2hex: 0.2.5 + serialize-error: 11.0.3 + urlpattern-polyfill: 10.0.0 + webdriver: 9.0.8(bufferutil@4.0.8)(utf-8-validate@5.0.10) + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + optional: true + webdriverio@9.0.9(bufferutil@4.0.8)(utf-8-validate@6.0.4): dependencies: '@types/node': 20.14.15 @@ -36531,16 +36603,16 @@ snapshots: webidl-conversions@6.1.0: {} - webpack-dev-middleware@5.3.3(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + webpack-dev-middleware@5.3.3(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: colorette: 2.0.20 memfs: 3.5.3 mime-types: 2.1.35 range-parser: 1.2.1 schema-utils: 4.2.0 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) - webpack-dev-server@4.15.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + webpack-dev-server@4.15.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: '@types/bonjour': 3.5.10 '@types/connect-history-api-fallback': 1.5.0 @@ -36570,20 +36642,20 @@ snapshots: serve-index: 1.9.1 sockjs: 0.3.24 spdy: 4.0.2 - webpack-dev-middleware: 5.3.3(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + webpack-dev-middleware: 5.3.3(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) optionalDependencies: - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) transitivePeerDependencies: - bufferutil - debug - supports-color - utf-8-validate - webpack-manifest-plugin@4.1.1(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + webpack-manifest-plugin@4.1.1(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: tapable: 2.2.1 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) webpack-sources: 2.3.1 webpack-sources@1.4.3: @@ -36600,7 +36672,7 @@ snapshots: webpack-virtual-modules@0.6.2: {} - webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19): + webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19): dependencies: '@types/eslint-scope': 3.7.4 '@types/estree': 1.0.5 @@ -36623,7 +36695,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.9(@swc/core@1.7.14)(esbuild@0.17.19)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)) + terser-webpack-plugin: 5.3.9(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)) watchpack: 2.4.0 webpack-sources: 3.2.3 transitivePeerDependencies: @@ -36849,12 +36921,12 @@ snapshots: workbox-sw@6.6.0: {} - workbox-webpack-plugin@6.6.0(@types/babel__core@7.20.5)(webpack@5.88.0(@swc/core@1.7.14)(esbuild@0.17.19)): + workbox-webpack-plugin@6.6.0(@types/babel__core@7.20.5)(webpack@5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19)): dependencies: fast-json-stable-stringify: 2.1.0 pretty-bytes: 5.6.0 upath: 1.2.0 - webpack: 5.88.0(@swc/core@1.7.14)(esbuild@0.17.19) + webpack: 5.88.0(@swc/core@1.7.14(@swc/helpers@0.5.12))(esbuild@0.17.19) webpack-sources: 1.4.3 workbox-build: 6.6.0(@types/babel__core@7.20.5) transitivePeerDependencies: diff --git a/scripts/forc-check.sh b/scripts/forc-check.sh index bf090ec15e7..861932bfd9d 100755 --- a/scripts/forc-check.sh +++ b/scripts/forc-check.sh @@ -26,7 +26,7 @@ for forc_toml in $forc_tomls; do authors=$(grep "authors =" Forc.toml) if [[ "$authors" != "$expected_authors" ]]; then - ERROR=1 + ERRORED=1 echo -e "authors field should be: ${RED}$expected_authors] ${NC} but is ${RED}$authors ${NC}" fi