diff --git a/.github/workflows/connect-test-local.yml b/.github/workflows/connect-test-local.yml index 5430e2c9..960ee65d 100644 --- a/.github/workflows/connect-test-local.yml +++ b/.github/workflows/connect-test-local.yml @@ -62,11 +62,11 @@ jobs: - name: test solana local run: | pnpm test:ci - working-directory: ./sdk/apps/solana + working-directory: ./sdk/packages/solana - name: test sui local run: | pnpm test:ci - working-directory: ./sdk/apps/sui + working-directory: ./sdk/packages/sui - name: Clean target working-directory: ./infra run: | diff --git a/.github/workflows/connect-test-production.yml b/.github/workflows/connect-test-production.yml index ac14a069..c54eca2d 100644 --- a/.github/workflows/connect-test-production.yml +++ b/.github/workflows/connect-test-production.yml @@ -39,8 +39,8 @@ jobs: - name: test solana production run: | pnpm test:production - working-directory: ./sdk/apps/solana + working-directory: ./sdk/packages/solana - name: test sui production run: | pnpm test:production - working-directory: ./sdk/apps/sui + working-directory: ./sdk/packages/sui diff --git a/sdk/apps/modal-example/package.json b/sdk/apps/modal-example/package.json index 00f43bae..0bc75739 100644 --- a/sdk/apps/modal-example/package.json +++ b/sdk/apps/modal-example/package.json @@ -21,8 +21,8 @@ "@nightlylabs/nightly-connect-solana": "0.0.29", "@nightlylabs/nightly-connect-sui": "0.0.29", "@nightlylabs/wallet-selector-sui": "0.3.0", - "@nightlylabs/nightly-connect-polkadot": "0.0.14", - "@nightlylabs/wallet-selector-polkadot": "0.2.2", + "@nightlylabs/nightly-connect-polkadot": "0.0.15", + "@nightlylabs/wallet-selector-polkadot": "0.2.3", "@nightlylabs/wallet-selector-base": "^0.4.0", "@polkadot/extension-inject": "^0.46.5", "@polkadot/api": "^10.10.1", diff --git a/sdk/apps/modal-example/src/routes/externalModal.tsx b/sdk/apps/modal-example/src/routes/externalModal.tsx index 902acb2f..f7ed664c 100644 --- a/sdk/apps/modal-example/src/routes/externalModal.tsx +++ b/sdk/apps/modal-example/src/routes/externalModal.tsx @@ -47,7 +47,7 @@ export default function SolanaExternalModal() { setPublicKey(pk) }) adapter.on('change', (a) => { - if (a.accounts) { + if (!!a.accounts?.length && a.accounts[0].publicKey) { setPublicKey(new PublicKey(a.accounts[0].publicKey)) } }) diff --git a/sdk/apps/modal-example/src/routes/solana.tsx b/sdk/apps/modal-example/src/routes/solana.tsx index 2ec3f4e1..47e447b1 100644 --- a/sdk/apps/modal-example/src/routes/solana.tsx +++ b/sdk/apps/modal-example/src/routes/solana.tsx @@ -31,7 +31,7 @@ export default function Solana() { setPublicKey(undefined) }) adapter.on('change', (a) => { - if (a.accounts) { + if (!!a.accounts?.length && a.accounts[0].publicKey) { setPublicKey(new PublicKey(a.accounts[0].publicKey)) } }) diff --git a/sdk/apps/modal-example/src/routes/sui.tsx b/sdk/apps/modal-example/src/routes/sui.tsx index b7e1e789..8d563829 100644 --- a/sdk/apps/modal-example/src/routes/sui.tsx +++ b/sdk/apps/modal-example/src/routes/sui.tsx @@ -35,7 +35,7 @@ export default function Sui() { }) adapter.on('change', (a) => { - if (a.accounts) { + if (!!a.accounts?.length && a.accounts[0].address) { setPublicKey(a.accounts[0].address) } }) diff --git a/sdk/apps/modal-example/src/routes/suiInitOnConnect.tsx b/sdk/apps/modal-example/src/routes/suiInitOnConnect.tsx index 9df17401..a3b6f228 100644 --- a/sdk/apps/modal-example/src/routes/suiInitOnConnect.tsx +++ b/sdk/apps/modal-example/src/routes/suiInitOnConnect.tsx @@ -31,7 +31,7 @@ export default function Sui() { }) adapter.on('change', (a) => { - if (a.accounts) { + if (!!a.accounts?.length && a.accounts[0].address) { setPublicKey(a.accounts[0].address) } }) diff --git a/sdk/build-only-packages.sh b/sdk/build-only-packages.sh index abc50631..59e7fc63 100644 --- a/sdk/build-only-packages.sh +++ b/sdk/build-only-packages.sh @@ -3,14 +3,14 @@ cd ./apps/base pnpm build # connect networks -cd ../solana +cd ../../packages/solana pnpm build cd ../sui pnpm build cd ../polkadot pnpm build # ui packages -cd ../../packages/qr-codes +cd ../qr-codes pnpm build cd ../modal pnpm build diff --git a/sdk/apps/polkadot/.gitignore b/sdk/packages/polkadot/.gitignore similarity index 100% rename from sdk/apps/polkadot/.gitignore rename to sdk/packages/polkadot/.gitignore diff --git a/sdk/apps/polkadot/package.json b/sdk/packages/polkadot/package.json similarity index 99% rename from sdk/apps/polkadot/package.json rename to sdk/packages/polkadot/package.json index 0fb5e843..82d0bc67 100644 --- a/sdk/apps/polkadot/package.json +++ b/sdk/packages/polkadot/package.json @@ -55,4 +55,4 @@ "eventemitter3": "^5.0.1", "uuid": "^9.0.0" } -} \ No newline at end of file +} diff --git a/sdk/apps/polkadot/rollup.config.js b/sdk/packages/polkadot/rollup.config.js similarity index 96% rename from sdk/apps/polkadot/rollup.config.js rename to sdk/packages/polkadot/rollup.config.js index 1db37e6a..4de938d5 100644 --- a/sdk/apps/polkadot/rollup.config.js +++ b/sdk/packages/polkadot/rollup.config.js @@ -69,7 +69,7 @@ export default [ ] }, { - input: 'dist/types/apps/polkadot/src/index.d.ts', + input: 'dist/types/packages/polkadot/src/index.d.ts', output: [{ file: 'dist/index.d.ts', format: 'esm' }], plugins: [dts()] } diff --git a/sdk/apps/polkadot/src/Accounts.ts b/sdk/packages/polkadot/src/Accounts.ts similarity index 100% rename from sdk/apps/polkadot/src/Accounts.ts rename to sdk/packages/polkadot/src/Accounts.ts diff --git a/sdk/apps/polkadot/src/Signer.ts b/sdk/packages/polkadot/src/Signer.ts similarity index 100% rename from sdk/apps/polkadot/src/Signer.ts rename to sdk/packages/polkadot/src/Signer.ts diff --git a/sdk/apps/polkadot/src/app.ts b/sdk/packages/polkadot/src/app.ts similarity index 100% rename from sdk/apps/polkadot/src/app.ts rename to sdk/packages/polkadot/src/app.ts diff --git a/sdk/apps/polkadot/src/client.ts b/sdk/packages/polkadot/src/client.ts similarity index 100% rename from sdk/apps/polkadot/src/client.ts rename to sdk/packages/polkadot/src/client.ts diff --git a/sdk/apps/polkadot/src/e2e.test.ts b/sdk/packages/polkadot/src/e2e.test.ts similarity index 100% rename from sdk/apps/polkadot/src/e2e.test.ts rename to sdk/packages/polkadot/src/e2e.test.ts diff --git a/sdk/apps/polkadot/src/http-client.ts b/sdk/packages/polkadot/src/http-client.ts similarity index 100% rename from sdk/apps/polkadot/src/http-client.ts rename to sdk/packages/polkadot/src/http-client.ts diff --git a/sdk/apps/polkadot/src/http-e2e.test.ts b/sdk/packages/polkadot/src/http-e2e.test.ts similarity index 100% rename from sdk/apps/polkadot/src/http-e2e.test.ts rename to sdk/packages/polkadot/src/http-e2e.test.ts diff --git a/sdk/apps/polkadot/src/index.ts b/sdk/packages/polkadot/src/index.ts similarity index 100% rename from sdk/apps/polkadot/src/index.ts rename to sdk/packages/polkadot/src/index.ts diff --git a/sdk/apps/polkadot/src/requestTypes.ts b/sdk/packages/polkadot/src/requestTypes.ts similarity index 100% rename from sdk/apps/polkadot/src/requestTypes.ts rename to sdk/packages/polkadot/src/requestTypes.ts diff --git a/sdk/apps/polkadot/src/testUtils.ts b/sdk/packages/polkadot/src/testUtils.ts similarity index 100% rename from sdk/apps/polkadot/src/testUtils.ts rename to sdk/packages/polkadot/src/testUtils.ts diff --git a/sdk/apps/polkadot/src/utils.ts b/sdk/packages/polkadot/src/utils.ts similarity index 100% rename from sdk/apps/polkadot/src/utils.ts rename to sdk/packages/polkadot/src/utils.ts diff --git a/sdk/apps/polkadot/tsconfig.json b/sdk/packages/polkadot/tsconfig.json similarity index 100% rename from sdk/apps/polkadot/tsconfig.json rename to sdk/packages/polkadot/tsconfig.json diff --git a/sdk/apps/polkadot/vitest.config.ts b/sdk/packages/polkadot/vitest.config.ts similarity index 100% rename from sdk/apps/polkadot/vitest.config.ts rename to sdk/packages/polkadot/vitest.config.ts diff --git a/sdk/packages/selector-polkadot/package.json b/sdk/packages/selector-polkadot/package.json index bfdda9fc..5c0061e4 100644 --- a/sdk/packages/selector-polkadot/package.json +++ b/sdk/packages/selector-polkadot/package.json @@ -41,4 +41,4 @@ "tslib": "^2.5.3", "typescript": "^5.1.3" } -} \ No newline at end of file +} diff --git a/sdk/apps/solana/.gitignore b/sdk/packages/solana/.gitignore similarity index 100% rename from sdk/apps/solana/.gitignore rename to sdk/packages/solana/.gitignore diff --git a/sdk/apps/solana/package.json b/sdk/packages/solana/package.json similarity index 99% rename from sdk/apps/solana/package.json rename to sdk/packages/solana/package.json index 580ccf9d..3967e236 100644 --- a/sdk/apps/solana/package.json +++ b/sdk/packages/solana/package.json @@ -50,4 +50,4 @@ "eventemitter3": "^5.0.1", "uuid": "^9.0.0" } -} \ No newline at end of file +} diff --git a/sdk/apps/solana/rollup.config.js b/sdk/packages/solana/rollup.config.js similarity index 96% rename from sdk/apps/solana/rollup.config.js rename to sdk/packages/solana/rollup.config.js index 5280ddb4..5d63dab4 100644 --- a/sdk/apps/solana/rollup.config.js +++ b/sdk/packages/solana/rollup.config.js @@ -61,7 +61,7 @@ export default [ ] }, { - input: 'dist/types/apps/solana/src/index.d.ts', + input: 'dist/types/packages/solana/src/index.d.ts', output: [{ file: 'dist/index.d.ts', format: 'esm' }], plugins: [dts()] } diff --git a/sdk/apps/solana/src/app.ts b/sdk/packages/solana/src/app.ts similarity index 100% rename from sdk/apps/solana/src/app.ts rename to sdk/packages/solana/src/app.ts diff --git a/sdk/apps/solana/src/client.ts b/sdk/packages/solana/src/client.ts similarity index 100% rename from sdk/apps/solana/src/client.ts rename to sdk/packages/solana/src/client.ts diff --git a/sdk/apps/solana/src/e2e.test.ts b/sdk/packages/solana/src/e2e.test.ts similarity index 100% rename from sdk/apps/solana/src/e2e.test.ts rename to sdk/packages/solana/src/e2e.test.ts diff --git a/sdk/apps/solana/src/http-client.ts b/sdk/packages/solana/src/http-client.ts similarity index 100% rename from sdk/apps/solana/src/http-client.ts rename to sdk/packages/solana/src/http-client.ts diff --git a/sdk/apps/solana/src/http-e2e.test.ts b/sdk/packages/solana/src/http-e2e.test.ts similarity index 100% rename from sdk/apps/solana/src/http-e2e.test.ts rename to sdk/packages/solana/src/http-e2e.test.ts diff --git a/sdk/apps/solana/src/index.ts b/sdk/packages/solana/src/index.ts similarity index 100% rename from sdk/apps/solana/src/index.ts rename to sdk/packages/solana/src/index.ts diff --git a/sdk/apps/solana/src/requestTypes.ts b/sdk/packages/solana/src/requestTypes.ts similarity index 100% rename from sdk/apps/solana/src/requestTypes.ts rename to sdk/packages/solana/src/requestTypes.ts diff --git a/sdk/apps/solana/src/testUtils.ts b/sdk/packages/solana/src/testUtils.ts similarity index 100% rename from sdk/apps/solana/src/testUtils.ts rename to sdk/packages/solana/src/testUtils.ts diff --git a/sdk/apps/solana/src/utils.ts b/sdk/packages/solana/src/utils.ts similarity index 100% rename from sdk/apps/solana/src/utils.ts rename to sdk/packages/solana/src/utils.ts diff --git a/sdk/apps/solana/tsconfig.json b/sdk/packages/solana/tsconfig.json similarity index 100% rename from sdk/apps/solana/tsconfig.json rename to sdk/packages/solana/tsconfig.json diff --git a/sdk/apps/solana/vitest.config.ts b/sdk/packages/solana/vitest.config.ts similarity index 100% rename from sdk/apps/solana/vitest.config.ts rename to sdk/packages/solana/vitest.config.ts diff --git a/sdk/apps/sui/.gitignore b/sdk/packages/sui/.gitignore similarity index 100% rename from sdk/apps/sui/.gitignore rename to sdk/packages/sui/.gitignore diff --git a/sdk/apps/sui/package.json b/sdk/packages/sui/package.json similarity index 99% rename from sdk/apps/sui/package.json rename to sdk/packages/sui/package.json index 28ec007a..af552747 100644 --- a/sdk/apps/sui/package.json +++ b/sdk/packages/sui/package.json @@ -53,4 +53,4 @@ "eventemitter3": "^5.0.1", "uuid": "^9.0.0" } -} \ No newline at end of file +} diff --git a/sdk/apps/sui/rollup.config.js b/sdk/packages/sui/rollup.config.js similarity index 96% rename from sdk/apps/sui/rollup.config.js rename to sdk/packages/sui/rollup.config.js index 00405c9f..39affc85 100644 --- a/sdk/apps/sui/rollup.config.js +++ b/sdk/packages/sui/rollup.config.js @@ -67,7 +67,7 @@ export default [ ] }, { - input: 'dist/types/apps/sui/src/index.d.ts', + input: 'dist/types/packages/sui/src/index.d.ts', output: [{ file: 'dist/index.d.ts', format: 'esm' }], plugins: [dts()] } diff --git a/sdk/apps/sui/src/app.ts b/sdk/packages/sui/src/app.ts similarity index 100% rename from sdk/apps/sui/src/app.ts rename to sdk/packages/sui/src/app.ts diff --git a/sdk/apps/sui/src/client.ts b/sdk/packages/sui/src/client.ts similarity index 100% rename from sdk/apps/sui/src/client.ts rename to sdk/packages/sui/src/client.ts diff --git a/sdk/apps/sui/src/e2e.test.ts b/sdk/packages/sui/src/e2e.test.ts similarity index 100% rename from sdk/apps/sui/src/e2e.test.ts rename to sdk/packages/sui/src/e2e.test.ts diff --git a/sdk/apps/sui/src/http-client.test.ts b/sdk/packages/sui/src/http-client.test.ts similarity index 100% rename from sdk/apps/sui/src/http-client.test.ts rename to sdk/packages/sui/src/http-client.test.ts diff --git a/sdk/apps/sui/src/http-client.ts b/sdk/packages/sui/src/http-client.ts similarity index 100% rename from sdk/apps/sui/src/http-client.ts rename to sdk/packages/sui/src/http-client.ts diff --git a/sdk/apps/sui/src/index.ts b/sdk/packages/sui/src/index.ts similarity index 100% rename from sdk/apps/sui/src/index.ts rename to sdk/packages/sui/src/index.ts diff --git a/sdk/apps/sui/src/requestTypes.ts b/sdk/packages/sui/src/requestTypes.ts similarity index 100% rename from sdk/apps/sui/src/requestTypes.ts rename to sdk/packages/sui/src/requestTypes.ts diff --git a/sdk/apps/sui/src/testUtils.ts b/sdk/packages/sui/src/testUtils.ts similarity index 100% rename from sdk/apps/sui/src/testUtils.ts rename to sdk/packages/sui/src/testUtils.ts diff --git a/sdk/apps/sui/src/utils.ts b/sdk/packages/sui/src/utils.ts similarity index 100% rename from sdk/apps/sui/src/utils.ts rename to sdk/packages/sui/src/utils.ts diff --git a/sdk/apps/sui/tsconfig.json b/sdk/packages/sui/tsconfig.json similarity index 100% rename from sdk/apps/sui/tsconfig.json rename to sdk/packages/sui/tsconfig.json diff --git a/sdk/pnpm-lock.yaml b/sdk/pnpm-lock.yaml index db9063e2..55271d7a 100644 --- a/sdk/pnpm-lock.yaml +++ b/sdk/pnpm-lock.yaml @@ -132,19 +132,19 @@ importers: specifier: ^0.8.0 version: 0.8.0 '@nightlylabs/nightly-connect-polkadot': - specifier: 0.0.14 - version: 0.0.14 + specifier: 0.0.15 + version: link:../../packages/polkadot '@nightlylabs/nightly-connect-solana': specifier: 0.0.29 - version: link:../solana + version: link:../../packages/solana '@nightlylabs/nightly-connect-sui': specifier: 0.0.29 - version: link:../sui + version: link:../../packages/sui '@nightlylabs/wallet-selector-base': specifier: ^0.4.0 version: link:../../packages/selector-base '@nightlylabs/wallet-selector-polkadot': - specifier: 0.2.2 + specifier: 0.2.3 version: link:../../packages/selector-polkadot '@nightlylabs/wallet-selector-solana': specifier: 0.3.0 @@ -256,76 +256,6 @@ importers: specifier: 5.1.6 version: 5.1.6 - apps/polkadot: - dependencies: - '@nightlylabs/nightly-connect-base': - specifier: 0.0.27 - version: link:../base - '@polkadot/api': - specifier: ^10.10.1 - version: 10.10.1 - '@polkadot/extension-inject': - specifier: ^0.46.5 - version: 0.46.5(@polkadot/api@10.10.1)(@polkadot/util@12.5.1) - '@polkadot/types': - specifier: ^10.10.1 - version: 10.10.1 - '@polkadot/util': - specifier: ^12.5.1 - version: 12.5.1 - '@polkadot/util-crypto': - specifier: ^12.5.1 - version: 12.5.1(@polkadot/util@12.5.1) - eventemitter3: - specifier: ^5.0.1 - version: 5.0.1 - uuid: - specifier: ^9.0.0 - version: 9.0.0 - devDependencies: - '@polkadot/keyring': - specifier: ^12.5.1 - version: 12.5.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.5.1) - '@rollup/plugin-commonjs': - specifier: ^25.0.0 - version: 25.0.0(rollup@3.23.1) - '@rollup/plugin-node-resolve': - specifier: ^15.1.0 - version: 15.1.0(rollup@3.23.1) - '@rollup/plugin-terser': - specifier: ^0.4.3 - version: 0.4.3(rollup@3.23.1) - '@rollup/plugin-typescript': - specifier: ^11.1.1 - version: 11.1.1(rollup@3.23.1)(tslib@2.5.3)(typescript@5.1.6) - '@types/node': - specifier: ^20.3.0 - version: 20.4.2 - '@vitest/ui': - specifier: ^0.31.1 - version: 0.31.1(vitest@0.31.1) - bs58: - specifier: ^5.0.0 - version: 5.0.0 - js-sha256: - specifier: ^0.9.0 - version: 0.9.0 - rollup: - specifier: ^3.23.1 - version: 3.23.1 - rollup-plugin-dts: - specifier: ^5.3.0 - version: 5.3.0(rollup@3.23.1)(typescript@5.1.6) - tslib: - specifier: ^2.5.3 - version: 2.5.3 - tweetnacl: - specifier: ^1.0.3 - version: 1.0.3 - typescript: - specifier: ^5.1.3 - version: 5.1.6 - apps/qrcode-example: dependencies: '@nightlylabs/qr-code': @@ -339,125 +269,6 @@ importers: specifier: ^4.3.9 version: 4.3.9(@types/node@20.9.0) - apps/solana: - dependencies: - '@nightlylabs/nightly-connect-base': - specifier: 0.0.27 - version: link:../base - '@solana/web3.js': - specifier: ^1.77.2 - version: 1.77.2 - eventemitter3: - specifier: ^5.0.1 - version: 5.0.1 - uuid: - specifier: ^9.0.0 - version: 9.0.0 - devDependencies: - '@rollup/plugin-commonjs': - specifier: ^25.0.0 - version: 25.0.0(rollup@3.23.1) - '@rollup/plugin-node-resolve': - specifier: ^15.1.0 - version: 15.1.0(rollup@3.23.1) - '@rollup/plugin-terser': - specifier: ^0.4.3 - version: 0.4.3(rollup@3.23.1) - '@rollup/plugin-typescript': - specifier: ^11.1.1 - version: 11.1.1(rollup@3.23.1)(tslib@2.5.3)(typescript@5.1.3) - '@types/node': - specifier: ^20.3.0 - version: 20.3.0 - '@vitest/ui': - specifier: ^0.31.1 - version: 0.31.1(vitest@0.31.1) - bs58: - specifier: ^5.0.0 - version: 5.0.0 - js-sha256: - specifier: ^0.9.0 - version: 0.9.0 - rollup: - specifier: ^3.23.1 - version: 3.23.1 - rollup-plugin-dts: - specifier: ^5.3.0 - version: 5.3.0(rollup@3.23.1)(typescript@5.1.3) - tslib: - specifier: ^2.5.3 - version: 2.5.3 - tweetnacl: - specifier: ^1.0.3 - version: 1.0.3 - typescript: - specifier: ^5.1.3 - version: 5.1.3 - - apps/sui: - dependencies: - '@mysten/sui.js': - specifier: ^0.42.0 - version: 0.42.0 - '@mysten/wallet-standard': - specifier: ^0.8.0 - version: 0.8.0 - '@nightlylabs/nightly-connect-base': - specifier: ^0.0.27 - version: link:../base - '@noble/hashes': - specifier: ^1.3.0 - version: 1.3.0 - eventemitter3: - specifier: ^5.0.1 - version: 5.0.1 - uuid: - specifier: ^9.0.0 - version: 9.0.0 - devDependencies: - '@rollup/plugin-commonjs': - specifier: ^25.0.0 - version: 25.0.0(rollup@3.23.1) - '@rollup/plugin-node-resolve': - specifier: ^15.2.1 - version: 15.2.1(rollup@3.23.1) - '@rollup/plugin-terser': - specifier: ^0.4.3 - version: 0.4.3(rollup@3.23.1) - '@rollup/plugin-typescript': - specifier: ^11.1.1 - version: 11.1.1(rollup@3.23.1)(tslib@2.5.3)(typescript@5.1.3) - '@types/node': - specifier: ^20.3.0 - version: 20.3.0 - '@vitest/ui': - specifier: ^0.31.1 - version: 0.31.1(vitest@0.31.1) - bs58: - specifier: ^5.0.0 - version: 5.0.0 - cross-fetch: - specifier: ^3.1.6 - version: 3.1.6 - js-sha256: - specifier: ^0.9.0 - version: 0.9.0 - rollup: - specifier: ^3.23.1 - version: 3.23.1 - rollup-plugin-dts: - specifier: ^5.3.0 - version: 5.3.0(rollup@3.23.1)(typescript@5.1.3) - tslib: - specifier: ^2.5.3 - version: 2.5.3 - tweetnacl: - specifier: ^1.0.3 - version: 1.0.3 - typescript: - specifier: ^5.1.3 - version: 5.1.3 - packages/eslint-config-custom: dependencies: '@typescript-eslint/eslint-plugin': @@ -558,6 +369,76 @@ importers: specifier: ^4.3.9 version: 4.3.9(@types/node@20.9.0) + packages/polkadot: + dependencies: + '@nightlylabs/nightly-connect-base': + specifier: 0.0.27 + version: link:../../apps/base + '@polkadot/api': + specifier: ^10.10.1 + version: 10.10.1 + '@polkadot/extension-inject': + specifier: ^0.46.5 + version: 0.46.5(@polkadot/api@10.10.1)(@polkadot/util@12.5.1) + '@polkadot/types': + specifier: ^10.10.1 + version: 10.10.1 + '@polkadot/util': + specifier: ^12.5.1 + version: 12.5.1 + '@polkadot/util-crypto': + specifier: ^12.5.1 + version: 12.5.1(@polkadot/util@12.5.1) + eventemitter3: + specifier: ^5.0.1 + version: 5.0.1 + uuid: + specifier: ^9.0.0 + version: 9.0.0 + devDependencies: + '@polkadot/keyring': + specifier: ^12.5.1 + version: 12.5.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.5.1) + '@rollup/plugin-commonjs': + specifier: ^25.0.0 + version: 25.0.0(rollup@3.23.1) + '@rollup/plugin-node-resolve': + specifier: ^15.1.0 + version: 15.2.1(rollup@3.23.1) + '@rollup/plugin-terser': + specifier: ^0.4.3 + version: 0.4.3(rollup@3.23.1) + '@rollup/plugin-typescript': + specifier: ^11.1.1 + version: 11.1.1(rollup@3.23.1)(tslib@2.6.2)(typescript@5.1.6) + '@types/node': + specifier: ^20.3.0 + version: 20.9.0 + '@vitest/ui': + specifier: ^0.31.1 + version: 0.31.1(vitest@0.31.1) + bs58: + specifier: ^5.0.0 + version: 5.0.0 + js-sha256: + specifier: ^0.9.0 + version: 0.9.0 + rollup: + specifier: ^3.23.1 + version: 3.23.1 + rollup-plugin-dts: + specifier: ^5.3.0 + version: 5.3.0(rollup@3.23.1)(typescript@5.1.6) + tslib: + specifier: ^2.5.3 + version: 2.6.2 + tweetnacl: + specifier: ^1.0.3 + version: 1.0.3 + typescript: + specifier: ^5.1.3 + version: 5.1.6 + packages/qr-codes: dependencies: qrcode-generator: @@ -633,7 +514,7 @@ importers: dependencies: '@nightlylabs/nightly-connect-polkadot': specifier: ^0.0.15 - version: link:../../apps/polkadot + version: link:../polkadot '@nightlylabs/wallet-selector-base': specifier: ^0.4.0 version: link:../selector-base @@ -679,7 +560,7 @@ importers: dependencies: '@nightlylabs/nightly-connect-solana': specifier: ^0.0.29 - version: link:../../apps/solana + version: link:../solana '@nightlylabs/wallet-selector-base': specifier: ^0.4.0 version: link:../selector-base @@ -737,7 +618,7 @@ importers: version: 0.8.0 '@nightlylabs/nightly-connect-sui': specifier: 0.0.29 - version: link:../../apps/sui + version: link:../sui '@nightlylabs/wallet-selector-base': specifier: 0.4.0 version: link:../selector-base @@ -782,6 +663,125 @@ importers: specifier: ^5.1.3 version: 5.1.3 + packages/solana: + dependencies: + '@nightlylabs/nightly-connect-base': + specifier: 0.0.27 + version: link:../../apps/base + '@solana/web3.js': + specifier: ^1.77.2 + version: 1.77.2 + eventemitter3: + specifier: ^5.0.1 + version: 5.0.1 + uuid: + specifier: ^9.0.0 + version: 9.0.0 + devDependencies: + '@rollup/plugin-commonjs': + specifier: ^25.0.0 + version: 25.0.0(rollup@3.23.1) + '@rollup/plugin-node-resolve': + specifier: ^15.1.0 + version: 15.2.1(rollup@3.23.1) + '@rollup/plugin-terser': + specifier: ^0.4.3 + version: 0.4.3(rollup@3.23.1) + '@rollup/plugin-typescript': + specifier: ^11.1.1 + version: 11.1.1(rollup@3.23.1)(tslib@2.6.2)(typescript@5.1.6) + '@types/node': + specifier: ^20.3.0 + version: 20.9.0 + '@vitest/ui': + specifier: ^0.31.1 + version: 0.31.1(vitest@0.31.1) + bs58: + specifier: ^5.0.0 + version: 5.0.0 + js-sha256: + specifier: ^0.9.0 + version: 0.9.0 + rollup: + specifier: ^3.23.1 + version: 3.23.1 + rollup-plugin-dts: + specifier: ^5.3.0 + version: 5.3.0(rollup@3.23.1)(typescript@5.1.6) + tslib: + specifier: ^2.5.3 + version: 2.6.2 + tweetnacl: + specifier: ^1.0.3 + version: 1.0.3 + typescript: + specifier: ^5.1.3 + version: 5.1.6 + + packages/sui: + dependencies: + '@mysten/sui.js': + specifier: ^0.42.0 + version: 0.42.0 + '@mysten/wallet-standard': + specifier: ^0.8.0 + version: 0.8.0 + '@nightlylabs/nightly-connect-base': + specifier: ^0.0.27 + version: link:../../apps/base + '@noble/hashes': + specifier: ^1.3.0 + version: 1.3.2 + eventemitter3: + specifier: ^5.0.1 + version: 5.0.1 + uuid: + specifier: ^9.0.0 + version: 9.0.0 + devDependencies: + '@rollup/plugin-commonjs': + specifier: ^25.0.0 + version: 25.0.0(rollup@3.23.1) + '@rollup/plugin-node-resolve': + specifier: ^15.2.1 + version: 15.2.1(rollup@3.23.1) + '@rollup/plugin-terser': + specifier: ^0.4.3 + version: 0.4.3(rollup@3.23.1) + '@rollup/plugin-typescript': + specifier: ^11.1.1 + version: 11.1.1(rollup@3.23.1)(tslib@2.6.2)(typescript@5.1.6) + '@types/node': + specifier: ^20.3.0 + version: 20.9.0 + '@vitest/ui': + specifier: ^0.31.1 + version: 0.31.1(vitest@0.31.1) + bs58: + specifier: ^5.0.0 + version: 5.0.0 + cross-fetch: + specifier: ^3.1.6 + version: 3.1.6 + js-sha256: + specifier: ^0.9.0 + version: 0.9.0 + rollup: + specifier: ^3.23.1 + version: 3.23.1 + rollup-plugin-dts: + specifier: ^5.3.0 + version: 5.3.0(rollup@3.23.1)(typescript@5.1.6) + tslib: + specifier: ^2.5.3 + version: 2.6.2 + tweetnacl: + specifier: ^1.0.3 + version: 1.0.3 + typescript: + specifier: ^5.1.3 + version: 5.1.6 + packages/tsconfig: {} packages/ui: @@ -4718,7 +4718,7 @@ packages: '@jest/schemas': 29.4.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.4.2 + '@types/node': 20.9.0 '@types/yargs': 17.0.24 chalk: 4.1.2 @@ -4855,7 +4855,7 @@ packages: dependencies: '@mysten/bcs': 0.7.3 '@noble/curves': 1.1.0 - '@noble/hashes': 1.3.1 + '@noble/hashes': 1.3.2 '@open-rpc/client-js': 1.8.1 '@scure/bip32': 1.3.2 '@scure/bip39': 1.2.1 @@ -5081,24 +5081,6 @@ packages: - utf-8-validate dev: false - /@nightlylabs/nightly-connect-polkadot@0.0.14: - resolution: {integrity: sha512-GP3TxEUa/UIiHeZqTrE3e7VTQ6yndCbozWAG1VA3YE5/q4xK1eZ5Rwnwz1ga4M3qu19L1spKePeljndhet5LEg==} - dependencies: - '@nightlylabs/nightly-connect-base': 0.0.27 - '@polkadot/api': 10.10.1 - '@polkadot/extension-inject': 0.46.5(@polkadot/api@10.10.1)(@polkadot/util@12.5.1) - '@polkadot/types': 10.10.1 - '@polkadot/util': 12.5.1 - '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) - eventemitter3: 5.0.1 - uuid: 9.0.0 - transitivePeerDependencies: - - bufferutil - - encoding - - supports-color - - utf-8-validate - dev: false - /@nightlylabs/nightly-connect-solana@0.0.28: resolution: {integrity: sha512-8PBkmuXzWZNPqu6SGT2tsGK4DgD3yswQsUVb3L+GgFGCdQI7eUqyHd2ofWFWzEgj4a1XuixA29ZcSyw20ajgzw==} dependencies: @@ -5470,7 +5452,7 @@ packages: '@polkadot/util': 12.5.1 '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) '@polkadot/x-fetch': 12.3.2 - '@polkadot/x-global': 12.3.2 + '@polkadot/x-global': 12.5.1 '@polkadot/x-ws': 12.3.2 eventemitter3: 5.0.1 mock-socket: 9.2.1 @@ -6121,6 +6103,26 @@ packages: typescript: 5.1.6 dev: true + /@rollup/plugin-typescript@11.1.1(rollup@3.23.1)(tslib@2.6.2)(typescript@5.1.6): + resolution: {integrity: sha512-Ioir+x5Bejv72Lx2Zbz3/qGg7tvGbxQZALCLoJaGrkNXak/19+vKgKYJYM3i/fJxvsb23I9FuFQ8CUBEfsmBRg==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^2.14.0||^3.0.0 + tslib: '*' + typescript: '>=3.7.0' + peerDependenciesMeta: + rollup: + optional: true + tslib: + optional: true + dependencies: + '@rollup/pluginutils': 5.0.2(rollup@3.23.1) + resolve: 1.22.2 + rollup: 3.23.1 + tslib: 2.6.2 + typescript: 5.1.6 + dev: true + /@rollup/pluginutils@3.1.0(rollup@3.23.1): resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==} engines: {node: '>= 8.0.0'} @@ -6175,7 +6177,7 @@ packages: /@scure/bip39@1.2.1: resolution: {integrity: sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==} dependencies: - '@noble/hashes': 1.3.1 + '@noble/hashes': 1.3.2 '@scure/base': 1.1.1 dev: false @@ -7473,18 +7475,18 @@ packages: /@types/bn.js@5.1.1: resolution: {integrity: sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 /@types/body-parser@1.19.2: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 20.4.2 + '@types/node': 20.9.0 /@types/bonjour@3.5.10: resolution: {integrity: sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: false /@types/bs58@4.0.1: @@ -7504,7 +7506,7 @@ packages: /@types/clean-css@4.2.6: resolution: {integrity: sha512-Ze1tf+LnGPmG6hBFMi0B4TEB0mhF7EiMM5oyjLDNPE9hxrPU0W+5+bHvO+eFPA+bt0iC1zkQMoU/iGdRVjcRbw==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 source-map: 0.6.1 dev: true @@ -7512,13 +7514,13 @@ packages: resolution: {integrity: sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==} dependencies: '@types/express-serve-static-core': 4.17.35 - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: false /@types/connect@3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 /@types/cookie@0.5.1: resolution: {integrity: sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g==} @@ -7565,7 +7567,7 @@ packages: /@types/express-serve-static-core@4.17.35: resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -7586,13 +7588,13 @@ packages: resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: true /@types/graceful-fs@4.1.6: resolution: {integrity: sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: true /@types/hast@2.3.4: @@ -7619,7 +7621,7 @@ packages: /@types/http-proxy@1.17.11: resolution: {integrity: sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: false /@types/istanbul-lib-coverage@2.0.4: @@ -7645,7 +7647,7 @@ packages: /@types/keyv@3.1.4: resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: false /@types/lodash@4.14.195: @@ -7679,7 +7681,7 @@ packages: /@types/node-fetch@2.6.4: resolution: {integrity: sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 form-data: 3.0.1 dev: true @@ -7704,6 +7706,7 @@ packages: /@types/node@20.4.2: resolution: {integrity: sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw==} + dev: false /@types/node@20.9.0: resolution: {integrity: sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==} @@ -7785,7 +7788,7 @@ packages: /@types/resolve@1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 /@types/resolve@1.20.2: resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} @@ -7793,7 +7796,7 @@ packages: /@types/responselike@1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: false /@types/retry@0.12.0: @@ -7803,7 +7806,7 @@ packages: /@types/sax@1.2.4: resolution: {integrity: sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: false /@types/scheduler@0.16.3: @@ -7816,7 +7819,7 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 20.4.2 + '@types/node': 20.9.0 /@types/serve-index@1.9.1: resolution: {integrity: sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==} @@ -7828,12 +7831,12 @@ packages: resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==} dependencies: '@types/mime': 3.0.1 - '@types/node': 20.4.2 + '@types/node': 20.9.0 /@types/sockjs@0.3.33: resolution: {integrity: sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: false /@types/trusted-types@2.0.3: @@ -7851,13 +7854,13 @@ packages: /@types/ws@7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: false /@types/ws@8.5.5: resolution: {integrity: sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 dev: false /@types/yargs-parser@21.0.0: @@ -10997,7 +11000,7 @@ packages: resolution: {integrity: sha512-EzV94NYKoO09GLXGjXj9JIlXijVck4ONSr5wiCWDvhsvj5jxSrzTmRU/9C1DyB6uToszLs8aifA6NQ7lEQdvFw==} engines: {node: '>= 0.8'} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 require-like: 0.1.2 dev: false @@ -12714,7 +12717,7 @@ packages: dependencies: '@jest/types': 29.5.0 '@types/graceful-fs': 4.1.6 - '@types/node': 20.4.2 + '@types/node': 20.9.0 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -12737,7 +12740,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.5.0 - '@types/node': 20.4.2 + '@types/node': 20.9.0 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -12747,7 +12750,7 @@ packages: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -12755,7 +12758,7 @@ packages: resolution: {integrity: sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 20.4.2 + '@types/node': 20.9.0 jest-util: 29.5.0 merge-stream: 2.0.0 supports-color: 8.1.1