From 7ce27ddbdd2449cf1d7d9eba46e795004cd75902 Mon Sep 17 00:00:00 2001 From: Sergey Zhuravlev Date: Tue, 16 Jun 2026 23:15:37 +0200 Subject: [PATCH 1/2] fix(host-chat): update account service params --- packages/host-chat/src/accountService.ts | 47 +++++------------------- 1 file changed, 9 insertions(+), 38 deletions(-) diff --git a/packages/host-chat/src/accountService.ts b/packages/host-chat/src/accountService.ts index 1e4d5e04..47c30cbe 100644 --- a/packages/host-chat/src/accountService.ts +++ b/packages/host-chat/src/accountService.ts @@ -9,11 +9,9 @@ import type { People_lite } from '../.papi/descriptors/dist/index.js'; import { toError } from './helpers.js'; -interface NetworkConfig { - id: Network; - name: string; - wsUrl: string; - apiUrl: string; +interface Config { + identityEndpoint: string; + client: LazyClient; } type AccountStatus = 'ASSIGNED' | 'PENDING'; @@ -23,8 +21,6 @@ type AccountService = { getConsumerInfo(address: string): ResultAsync; }; -type Network = 'paseo-next' | 'paseo-next-v2' | 'preview' | 'stable'; - type SearchResponse = { candidateAccountId: string; username: string; @@ -56,8 +52,10 @@ export type Identity = { credibility: Credibility; }; -export const createAccountService = (network: Network, lazyClient: LazyClient): AccountService => { - const networkConfig = NETWORK_CONFIGS[network]; +export const createAccountService = (config: Config): AccountService => { + const identityEndpoint = config.identityEndpoint.endsWith('/') + ? config.identityEndpoint + : `${config.identityEndpoint}/`; return { search(query, status) { @@ -68,7 +66,7 @@ export const createAccountService = (network: Network, lazyClient: LazyClient): }); const request = fromPromise( - fetch(`${networkConfig.apiUrl}/usernames?${params}`, { + fetch(`${identityEndpoint}usernames?${params}`, { method: 'GET', headers: { Accept: 'application/json' }, }), @@ -88,7 +86,7 @@ export const createAccountService = (network: Network, lazyClient: LazyClient): getConsumerInfo(address) { const textDecoder = new TextDecoder(); const accountId = AccountId(); - const client = lazyClient.getClient(); + const client = config.client.getClient(); const api = client.getUnsafeApi(); const consumerInfo = fromPromise(api.query.Resources?.Consumers?.getValue(address), toError); @@ -126,30 +124,3 @@ export const createAccountService = (network: Network, lazyClient: LazyClient): }, }; }; - -const NETWORK_CONFIGS: Record = { - stable: { - id: 'stable', - name: 'PoP Stable', - wsUrl: 'wss://pop3-testnet.parity-lab.parity.io/people', - apiUrl: 'https://polkadot-app.api.polkadotcommunity.foundation/api/v1', - }, - preview: { - id: 'preview', - name: 'PoP Preview', - wsUrl: 'wss://previewnet.substrate.dev/people', - apiUrl: 'https://polkadot-app-stg.parity.io/api/v1', - }, - 'paseo-next': { - id: 'paseo-next', - name: 'Paseo Next', - wsUrl: 'wss://paseo-people-next-rpc.polkadot.io', - apiUrl: 'https://identity-backend.parity-testnet.parity.io/api/v1', - }, - 'paseo-next-v2': { - id: 'paseo-next-v2', - name: 'Paseo Next V2', - wsUrl: 'wss://paseo-people-next-system-rpc.polkadot.io', - apiUrl: 'https://identity-backend-next.parity-testnet.parity.io/api/v1', - }, -}; From 48a75392142fb33fbf6ff3d4ec326285554f07e3 Mon Sep 17 00:00:00 2001 From: Sergey Zhuravlev Date: Tue, 16 Jun 2026 23:17:54 +0200 Subject: [PATCH 2/2] chore(release): publish 0.8.10 --- CHANGELOG.md | 10 +++ package-lock.json | 70 +++++++++---------- packages/handoff-service/package.json | 2 +- packages/host-api-wrapper/package.json | 4 +- packages/host-api/package.json | 4 +- packages/host-chat/package.json | 8 +-- packages/host-container/package.json | 4 +- packages/host-papp-react-ui/package.json | 6 +- packages/host-papp/package.json | 10 +-- .../package.json | 4 +- packages/host-worker-sandbox/package.json | 6 +- packages/product-bulletin/package.json | 4 +- packages/product-react-renderer/package.json | 6 +- packages/scale/package.json | 2 +- packages/statement-store/package.json | 6 +- packages/storage-adapter/package.json | 2 +- .../substrate-slot-sr25519-wasm/package.json | 2 +- 17 files changed, 80 insertions(+), 70 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5834361d..eb8a11bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## 0.8.10 (2026-06-16) + +### 🩹 Fixes + +- **host-chat:** update account service params + +### ❤️ Thank You + +- Sergey Zhuravlev @johnthecat + ## 0.8.9 (2026-06-15) ### 🩹 Fixes diff --git a/package-lock.json b/package-lock.json index cd125906..2b8cc874 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17329,7 +17329,7 @@ }, "packages/handoff-service": { "name": "@novasamatech/handoff-service", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { "@noble/ciphers": "2.2.0", @@ -17342,10 +17342,10 @@ }, "packages/host-api": { "name": "@novasamatech/host-api", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { - "@novasamatech/scale": "0.8.9", + "@novasamatech/scale": "0.8.10", "nanoevents": "9.1.0", "nanoid": "5.1.11", "neverthrow": "^8.2.0", @@ -17354,10 +17354,10 @@ }, "packages/host-api-wrapper": { "name": "@novasamatech/host-api-wrapper", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { - "@novasamatech/host-api": "0.8.9", + "@novasamatech/host-api": "0.8.10", "@polkadot-api/json-rpc-provider-proxy": "^0.4.0", "@polkadot-api/substrate-bindings": "^0.20.3", "@polkadot/extension-inject": "^0.63.1", @@ -17397,12 +17397,12 @@ }, "packages/host-chat": { "name": "@novasamatech/host-chat", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { - "@novasamatech/scale": "0.8.9", - "@novasamatech/statement-store": "0.8.9", - "@novasamatech/storage-adapter": "0.8.9", + "@novasamatech/scale": "0.8.10", + "@novasamatech/statement-store": "0.8.10", + "@novasamatech/storage-adapter": "0.8.10", "nanoid": "5.1.11", "neverthrow": "^8.2.0" } @@ -17427,11 +17427,11 @@ }, "packages/host-container": { "name": "@novasamatech/host-container", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { "@noble/hashes": "2.2.0", - "@novasamatech/host-api": "0.8.9", + "@novasamatech/host-api": "0.8.10", "@polkadot-api/substrate-client": "^0.7.0", "nanoevents": "9.1.0", "nanoid": "5.1.11", @@ -17462,16 +17462,16 @@ }, "packages/host-papp": { "name": "@novasamatech/host-papp", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { "@noble/ciphers": "2.2.0", "@noble/curves": "2.2.0", "@noble/hashes": "2.2.0", - "@novasamatech/host-api": "0.8.9", - "@novasamatech/scale": "0.8.9", - "@novasamatech/statement-store": "0.8.9", - "@novasamatech/storage-adapter": "0.8.9", + "@novasamatech/host-api": "0.8.10", + "@novasamatech/scale": "0.8.10", + "@novasamatech/statement-store": "0.8.10", + "@novasamatech/storage-adapter": "0.8.10", "@polkadot-api/utils": "^0.4.0", "@polkadot-labs/hdkd-helpers": "^0.0.30", "nanoevents": "9.1.0", @@ -17484,11 +17484,11 @@ }, "packages/host-papp-react-ui": { "name": "@novasamatech/host-papp-react-ui", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { - "@novasamatech/host-papp": "0.8.9", - "@novasamatech/statement-store": "0.8.9", + "@novasamatech/host-papp": "0.8.10", + "@novasamatech/statement-store": "0.8.10", "@novasamatech/tr-ui": "^0.2.11", "@polkadot-api/utils": "^0.4.0", "@radix-ui/react-dialog": "1.1.16", @@ -18007,10 +18007,10 @@ }, "packages/host-substrate-chain-connection": { "name": "@novasamatech/host-substrate-chain-connection", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { - "@novasamatech/storage-adapter": "0.8.9", + "@novasamatech/storage-adapter": "0.8.10", "@polkadot-api/json-rpc-provider": "^0.2.0", "@polkadot-api/json-rpc-provider-proxy": "^0.4.0", "@polkadot-api/ws-provider": "^0.9.0", @@ -18020,31 +18020,31 @@ }, "packages/host-worker-sandbox": { "name": "@novasamatech/host-worker-sandbox", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { - "@novasamatech/host-api": "0.8.9", - "@novasamatech/host-container": "0.8.9", + "@novasamatech/host-api": "0.8.10", + "@novasamatech/host-container": "0.8.10", "quickjs-emscripten": "0.32.0" } }, "packages/product-bulletin": { "name": "@novasamatech/product-bulletin", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { - "@novasamatech/host-api-wrapper": "0.8.9", + "@novasamatech/host-api-wrapper": "0.8.10", "@parity/bulletin-sdk": "^0.3.0", "polkadot-api": ">=2" } }, "packages/product-react-renderer": { "name": "@novasamatech/product-react-renderer", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { - "@novasamatech/host-api": "0.8.9", - "@novasamatech/host-api-wrapper": "0.8.9", + "@novasamatech/host-api": "0.8.10", + "@novasamatech/host-api-wrapper": "0.8.10", "react-reconciler": "0.33.0", "scale-ts": "1.6.1" }, @@ -18071,7 +18071,7 @@ }, "packages/scale": { "name": "@novasamatech/scale", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { "@polkadot-api/utils": "^0.4.0", @@ -18080,14 +18080,14 @@ }, "packages/statement-store": { "name": "@novasamatech/statement-store", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { "@noble/ciphers": "2.2.0", "@noble/hashes": "2.2.0", - "@novasamatech/scale": "0.8.9", + "@novasamatech/scale": "0.8.10", "@novasamatech/sdk-statement": "^0.6.0", - "@novasamatech/substrate-slot-sr25519-wasm": "0.8.9", + "@novasamatech/substrate-slot-sr25519-wasm": "0.8.10", "@polkadot-api/substrate-bindings": "^0.20.3", "@polkadot-api/substrate-client": "^0.7.0", "@polkadot-labs/hdkd-helpers": "^0.0.30", @@ -18131,7 +18131,7 @@ }, "packages/storage-adapter": { "name": "@novasamatech/storage-adapter", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0", "dependencies": { "nanoevents": "^9.1.0", @@ -18140,7 +18140,7 @@ }, "packages/substrate-slot-sr25519-wasm": { "name": "@novasamatech/substrate-slot-sr25519-wasm", - "version": "0.8.9", + "version": "0.8.10", "license": "Apache-2.0" } } diff --git a/packages/handoff-service/package.json b/packages/handoff-service/package.json index 55a6d9f8..3fe398d2 100644 --- a/packages/handoff-service/package.json +++ b/packages/handoff-service/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/handoff-service", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "HOP (Handoff Pool) file transfer service for P2P chat", "license": "Apache-2.0", "repository": { diff --git a/packages/host-api-wrapper/package.json b/packages/host-api-wrapper/package.json index 9c288480..38f4451b 100644 --- a/packages/host-api-wrapper/package.json +++ b/packages/host-api-wrapper/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/host-api-wrapper", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Host API wrapper: integrate and run your product inside Polkadot browser.", "license": "Apache-2.0", "repository": { @@ -28,7 +28,7 @@ "@polkadot/extension-inject": "^0.63.1", "@polkadot-api/json-rpc-provider-proxy": "^0.4.0", "@polkadot-api/substrate-bindings": "^0.20.3", - "@novasamatech/host-api": "0.8.9", + "@novasamatech/host-api": "0.8.10", "polkadot-api": ">=2", "neverthrow": "^8.2.0" }, diff --git a/packages/host-api/package.json b/packages/host-api/package.json index 67445c24..ec87bae8 100644 --- a/packages/host-api/package.json +++ b/packages/host-api/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/host-api", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Host API: transport implementation for host - product integration.", "license": "Apache-2.0", "repository": { @@ -22,7 +22,7 @@ "README.md" ], "dependencies": { - "@novasamatech/scale": "0.8.9", + "@novasamatech/scale": "0.8.10", "nanoevents": "9.1.0", "nanoid": "5.1.11", "neverthrow": "^8.2.0", diff --git a/packages/host-chat/package.json b/packages/host-chat/package.json index 198b9f87..97b60056 100644 --- a/packages/host-chat/package.json +++ b/packages/host-chat/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/host-chat", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Host statement store chat integration", "license": "Apache-2.0", "repository": { @@ -40,9 +40,9 @@ "README.md" ], "dependencies": { - "@novasamatech/scale": "0.8.9", - "@novasamatech/statement-store": "0.8.9", - "@novasamatech/storage-adapter": "0.8.9", + "@novasamatech/scale": "0.8.10", + "@novasamatech/statement-store": "0.8.10", + "@novasamatech/storage-adapter": "0.8.10", "nanoid": "5.1.11", "neverthrow": "^8.2.0" }, diff --git a/packages/host-container/package.json b/packages/host-container/package.json index c091c972..cc9b1834 100644 --- a/packages/host-container/package.json +++ b/packages/host-container/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/host-container", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Host container for hosting and managing products within the Polkadot ecosystem.", "license": "Apache-2.0", "repository": { @@ -28,7 +28,7 @@ "@noble/hashes": "2.2.0", "polkadot-api": ">=2", "@polkadot-api/substrate-client": "^0.7.0", - "@novasamatech/host-api": "0.8.9", + "@novasamatech/host-api": "0.8.10", "nanoevents": "9.1.0", "nanoid": "5.1.11", "neverthrow": "^8.2.0" diff --git a/packages/host-papp-react-ui/package.json b/packages/host-papp-react-ui/package.json index 91225646..a7ced6e2 100644 --- a/packages/host-papp-react-ui/package.json +++ b/packages/host-papp-react-ui/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/host-papp-react-ui", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Polkadot app UI Flow", "license": "Apache-2.0", "repository": { @@ -33,8 +33,8 @@ "react-dom": ">=18" }, "dependencies": { - "@novasamatech/host-papp": "0.8.9", - "@novasamatech/statement-store": "0.8.9", + "@novasamatech/host-papp": "0.8.10", + "@novasamatech/statement-store": "0.8.10", "@polkadot-api/utils": "^0.4.0", "@radix-ui/react-dialog": "1.1.16", "@radix-ui/react-popover": "1.1.16", diff --git a/packages/host-papp/package.json b/packages/host-papp/package.json index 99944dc3..db104c7d 100644 --- a/packages/host-papp/package.json +++ b/packages/host-papp/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/host-papp", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Polkadot app integration", "license": "Apache-2.0", "repository": { @@ -34,10 +34,10 @@ "@noble/ciphers": "2.2.0", "@noble/curves": "2.2.0", "@noble/hashes": "2.2.0", - "@novasamatech/host-api": "0.8.9", - "@novasamatech/scale": "0.8.9", - "@novasamatech/statement-store": "0.8.9", - "@novasamatech/storage-adapter": "0.8.9", + "@novasamatech/host-api": "0.8.10", + "@novasamatech/scale": "0.8.10", + "@novasamatech/statement-store": "0.8.10", + "@novasamatech/storage-adapter": "0.8.10", "@polkadot-api/utils": "^0.4.0", "@polkadot-labs/hdkd-helpers": "^0.0.30", "nanoevents": "9.1.0", diff --git a/packages/host-substrate-chain-connection/package.json b/packages/host-substrate-chain-connection/package.json index 03ef418d..f713640d 100644 --- a/packages/host-substrate-chain-connection/package.json +++ b/packages/host-substrate-chain-connection/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/host-substrate-chain-connection", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Chain connection pool with ref counting and provider branching for Polkadot API", "license": "Apache-2.0", "repository": { @@ -25,7 +25,7 @@ "README.md" ], "dependencies": { - "@novasamatech/storage-adapter": "0.8.9", + "@novasamatech/storage-adapter": "0.8.10", "@polkadot-api/ws-provider": "^0.9.0", "@polkadot-api/json-rpc-provider": "^0.2.0", "@polkadot-api/json-rpc-provider-proxy": "^0.4.0", diff --git a/packages/host-worker-sandbox/package.json b/packages/host-worker-sandbox/package.json index 335d25e4..4ea19386 100644 --- a/packages/host-worker-sandbox/package.json +++ b/packages/host-worker-sandbox/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/host-worker-sandbox", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "QuickJS-based sandbox for running product worker code with Triangle Host API.", "license": "Apache-2.0", "repository": { @@ -25,8 +25,8 @@ "README.md" ], "dependencies": { - "@novasamatech/host-api": "0.8.9", - "@novasamatech/host-container": "0.8.9", + "@novasamatech/host-api": "0.8.10", + "@novasamatech/host-container": "0.8.10", "quickjs-emscripten": "0.32.0" }, "publishConfig": { diff --git a/packages/product-bulletin/package.json b/packages/product-bulletin/package.json index 9df74ad6..0a73e4a0 100644 --- a/packages/product-bulletin/package.json +++ b/packages/product-bulletin/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/product-bulletin", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Bulletin Chain client adapter for Polkadot product applications", "license": "Apache-2.0", "repository": { @@ -27,7 +27,7 @@ "README.md" ], "dependencies": { - "@novasamatech/host-api-wrapper": "0.8.9", + "@novasamatech/host-api-wrapper": "0.8.10", "@parity/bulletin-sdk": "^0.3.0", "polkadot-api": ">=2" }, diff --git a/packages/product-react-renderer/package.json b/packages/product-react-renderer/package.json index a4f5bc2b..7c61d721 100644 --- a/packages/product-react-renderer/package.json +++ b/packages/product-react-renderer/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/product-react-renderer", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "React wrapper for custom renderer format from host-api-wrapper", "license": "Apache-2.0", "repository": { @@ -24,8 +24,8 @@ "README.md" ], "dependencies": { - "@novasamatech/host-api": "0.8.9", - "@novasamatech/host-api-wrapper": "0.8.9", + "@novasamatech/host-api": "0.8.10", + "@novasamatech/host-api-wrapper": "0.8.10", "scale-ts": "1.6.1", "react-reconciler": "0.33.0" }, diff --git a/packages/scale/package.json b/packages/scale/package.json index 1e65dbba..38ee76be 100644 --- a/packages/scale/package.json +++ b/packages/scale/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/scale", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "additional scale-ts bindings", "license": "Apache-2.0", "repository": { diff --git a/packages/statement-store/package.json b/packages/statement-store/package.json index 085c299b..2c977cfd 100644 --- a/packages/statement-store/package.json +++ b/packages/statement-store/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/statement-store", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Statement store integration", "license": "Apache-2.0", "repository": { @@ -25,9 +25,9 @@ "README.md" ], "dependencies": { - "@novasamatech/scale": "0.8.9", + "@novasamatech/scale": "0.8.10", "@novasamatech/sdk-statement": "^0.6.0", - "@novasamatech/substrate-slot-sr25519-wasm": "0.8.9", + "@novasamatech/substrate-slot-sr25519-wasm": "0.8.10", "@polkadot-api/substrate-bindings": "^0.20.3", "@polkadot-api/substrate-client": "^0.7.0", "@polkadot-labs/hdkd-helpers": "^0.0.30", diff --git a/packages/storage-adapter/package.json b/packages/storage-adapter/package.json index e480d75e..5f8ae2c1 100644 --- a/packages/storage-adapter/package.json +++ b/packages/storage-adapter/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/storage-adapter", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Statement store integration", "license": "Apache-2.0", "repository": { diff --git a/packages/substrate-slot-sr25519-wasm/package.json b/packages/substrate-slot-sr25519-wasm/package.json index 4205279d..defa7e16 100644 --- a/packages/substrate-slot-sr25519-wasm/package.json +++ b/packages/substrate-slot-sr25519-wasm/package.json @@ -1,7 +1,7 @@ { "name": "@novasamatech/substrate-slot-sr25519-wasm", "type": "module", - "version": "0.8.9", + "version": "0.8.10", "description": "Substrate sr25519 slot-account crypto (SecretKey::from_bytes) for mobile SlotAccountKey", "license": "Apache-2.0", "repository": {