diff --git a/.changeset/smart-roses-trade.md b/.changeset/smart-roses-trade.md new file mode 100644 index 00000000..a845151c --- /dev/null +++ b/.changeset/smart-roses-trade.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/biome.json b/biome.json index bf47d25e..aae3e9ff 100644 --- a/biome.json +++ b/biome.json @@ -38,6 +38,12 @@ "useIgnoreFile": true }, "files": { - "ignore": ["**/node_modules", "**/.turbo", "**/build", "pnpm-lock.yaml"] + "ignore": [ + "**/node_modules", + "**/.turbo", + "**/build", + "**/contracts", + "pnpm-lock.yaml" + ] } } diff --git a/examples/nodejs/package.json b/examples/nodejs/package.json deleted file mode 100644 index 6e5eb69b..00000000 --- a/examples/nodejs/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "nodejs", - "private": true, - "version": "0.0.0", - "main": "./src/index.ts", - "scripts": { - "build": "tsup", - "dev": "tsx watch src/index.ts" - }, - "dependencies": { - "@fuels/connectors": "workspace:*", - "fuels": "0.79.0" - }, - "devDependencies": { - "tsup": "8.0.2", - "tsx": "4.7.1", - "typescript": "5.4.3" - } -} diff --git a/examples/nodejs/src/index.ts b/examples/nodejs/src/index.ts deleted file mode 100644 index 4eb52a60..00000000 --- a/examples/nodejs/src/index.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { FuelWalletConnector } from '@fuels/connectors'; -import { Fuel, Mnemonic, WalletManager } from 'fuels'; - -const main = async () => { - // Mnemonic - const WALLET_PASSWORD = 'Qwe1234567$'; - const mnemonic = Mnemonic.generate(16); - - // Vault with initial account - const manager = new WalletManager(); - await manager.unlock(WALLET_PASSWORD); - await manager.addVault({ - title: '@fuels/connectors', - type: 'mnemonic', - secret: mnemonic, - }); - - // Adding second account - await manager.addAccount({ vaultId: 0 }); - - // Listing accounts - const accounts = manager.getAccounts(); - console.log('mnenomic\n', mnemonic, '\n\naccounts'); - console.log(accounts.map((ac) => ac.address.toString())); - - // Listing available connectors - const fuel = new Fuel({ - connectors: [new FuelWalletConnector()], // Build and check "dist" to confirm only this connector was bundled - }); - const connectors = await fuel.connectors(); - console.log( - '\navailable connectors\n', - connectors.map((c) => c.name), - ); -}; - -main(); diff --git a/examples/nodejs/tsconfig.json b/examples/nodejs/tsconfig.json deleted file mode 100644 index 8a0f2ffa..00000000 --- a/examples/nodejs/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./dist", - "baseUrl": "." - }, - "exclude": ["dist"] -} diff --git a/examples/nodejs/tsup.config.js b/examples/nodejs/tsup.config.js deleted file mode 100644 index fad046da..00000000 --- a/examples/nodejs/tsup.config.js +++ /dev/null @@ -1,11 +0,0 @@ -import baseConfig from '@fuels/tsup-config'; -import { defineConfig } from 'tsup'; - -export default defineConfig((options) => ({ - ...baseConfig(options, { withReact: false }), - entry: ['src/index.ts'], - noExternal: ['@fuels/connectors'], - minify: false, - splitting: true, - metafile: true, -})); diff --git a/examples/react-app/index.html b/examples/react-app/index.html index 8af9404d..52f64961 100644 --- a/examples/react-app/index.html +++ b/examples/react-app/index.html @@ -1,12 +1,17 @@ -
- - -