diff --git a/packages/ui/package.json b/packages/ui/package.json index 95a7dc87..c06ec5cf 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -22,7 +22,7 @@ "graphql": "^16.8.1", "graphql-request": "^6.1.0", "graphql-ws": "^5.16.0", - "polkadot-api": "^1.2.0", + "polkadot-api": "^1.3.1", "react": "18.2.0", "react-dom": "18.2.0", "react-icons": "^5.1.0", diff --git a/packages/ui/pnpm-lock.yaml b/packages/ui/pnpm-lock.yaml index ca2b8538..4fd9c105 100644 --- a/packages/ui/pnpm-lock.yaml +++ b/packages/ui/pnpm-lock.yaml @@ -25,7 +25,7 @@ importers: version: 5.16.6(@emotion/react@11.13.3(@types/react@18.3.7)(react@18.2.0))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.7)(react@18.2.0))(@types/react@18.3.7)(react@18.2.0))(react@18.2.0) '@polkadot-api/descriptors': specifier: file:.papi/descriptors - version: file:.papi/descriptors(polkadot-api@1.2.1(jiti@1.21.6)(postcss@8.4.47)(rxjs@7.8.1)(smoldot@2.0.26)(yaml@2.5.1)) + version: file:.papi/descriptors(polkadot-api@1.3.1(jiti@1.21.6)(postcss@8.4.47)(rxjs@7.8.1)(smoldot@2.0.26)(yaml@2.5.1)) '@polkadot/api': specifier: ^12.2.1 version: 12.4.2 @@ -66,8 +66,8 @@ importers: specifier: ^5.16.0 version: 5.16.0(graphql@16.9.0) polkadot-api: - specifier: ^1.2.0 - version: 1.2.1(jiti@1.21.6)(postcss@8.4.47)(rxjs@7.8.1)(smoldot@2.0.26)(yaml@2.5.1) + specifier: ^1.3.1 + version: 1.3.1(jiti@1.21.6)(postcss@8.4.47)(rxjs@7.8.1)(smoldot@2.0.26)(yaml@2.5.1) react: specifier: 18.2.0 version: 18.2.0 @@ -1482,12 +1482,12 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} - '@polkadot-api/cli@0.8.2': - resolution: {integrity: sha512-+ZicMVClxBDd69mbhFBJq/2X5b6aV/hBQJ/jmTc956aY+IV1wktc6u1l3SU2e0QdhkDEpeaa3RyCRZxisx3FwQ==} + '@polkadot-api/cli@0.9.1': + resolution: {integrity: sha512-TLbV7ncWii84VQ3XgBSa7aiYot7jhxYgHwOFPvh+G9De3EVoLUKRcZRNgusUiu1O78u//gLq6lcNenfd6Tb8oA==} hasBin: true - '@polkadot-api/codegen@0.11.0': - resolution: {integrity: sha512-Jhx2+CjxY1v42j0Y4umvnsqde5qS4KiSQ/8Am4I4DbJeKPRBR/v0Cx7KiTDB++0NDaH4gHkqljobl66nQN39tg==} + '@polkadot-api/codegen@0.12.0': + resolution: {integrity: sha512-3C1Lp7DEjGXaCw1zGUFDWa1gCSMZcZZ5bJRKOoboW9o0b4CENB36G/FfsPUvkukBp1b24gjfta2aJHxMSOFo6g==} '@polkadot-api/descriptors@file:.papi/descriptors': resolution: {directory: .papi/descriptors, type: directory} @@ -1500,6 +1500,9 @@ packages: '@polkadot-api/json-rpc-provider-proxy@0.2.0': resolution: {integrity: sha512-0jtKSl2Zw2v5OJFMp30KXhpcKpwAj2FpMtHTMn4FDwcudL2Y1efiAJ9Zoc3Bk70OVWSovUHdU2WTBUVL/efw4Q==} + '@polkadot-api/json-rpc-provider-proxy@0.2.1': + resolution: {integrity: sha512-1drAIT7dKhQinvP1bC1tnLdT5zVISEOPQESByC+Jo9MhzmFM9xQrvAraX3ljJKiA96wRDo1ofJRbvaK9fKD/3g==} + '@polkadot-api/json-rpc-provider@0.0.1': resolution: {integrity: sha512-/SMC/l7foRjpykLTUTacIH05H3mr9ip8b5xxfwXlVezXrNVLp3Cv0GX6uItkKd+ZjzVPf3PFrDF2B2/HLSNESA==} @@ -1509,8 +1512,8 @@ packages: '@polkadot-api/json-rpc-provider@0.0.3': resolution: {integrity: sha512-493nHN9RnLxNPMxQ3oekEFnRomAqWWh3j88FhANoPu5iINBG73l4ccB9QBPVs3JWXq4SwfLVmb6L15ryM69g/g==} - '@polkadot-api/known-chains@0.5.1': - resolution: {integrity: sha512-+UySd2KY7OkBifdGJHgJCJtHp8VjWlwzdRkJA7uNlpxu0vcP2aUhgGu9kqssVZytlq5xHzY/RJ6Tgf/lCKC/WA==} + '@polkadot-api/known-chains@0.5.2': + resolution: {integrity: sha512-QQPAlRaUPKm2XfstC93IPFwH0x592vRqcpqaU9V2Ca++OAgnQqkrqa6nSqcN2bAvkKYUg1HRKqfp9xRFXk262A==} '@polkadot-api/logs-provider@0.0.5': resolution: {integrity: sha512-BGjFD6X4XWOSZ0TNRXt0LyiLVkZWlSIuRreQsB2tAeo19/S9cZSKyPlP/FOFe9HXLZhKscLB35TqXH86q9oh3w==} @@ -1530,8 +1533,8 @@ packages: '@polkadot-api/substrate-client': 0.1.4 rxjs: '>=7.8.0' - '@polkadot-api/observable-client@0.5.3': - resolution: {integrity: sha512-ySVwu0+IitjUboU/2JoIhsurombDhRa2U2XozqoSv+jKaOdWwc5EITpnfm1ioCS4XkINUluQx2LenERZuhV8/Q==} + '@polkadot-api/observable-client@0.5.4': + resolution: {integrity: sha512-yFNDqGPuEgfsAIg9AaJ/Szjxbbl2PItcl1y+RnlEBIN8jriwHiJaIvBviK2mxuboQyo5Fl2yVO+nQBopYPFOxQ==} peerDependencies: '@polkadot-api/substrate-client': 0.2.1 rxjs: '>=7.8.0' @@ -1539,8 +1542,8 @@ packages: '@polkadot-api/pjs-signer@0.4.2': resolution: {integrity: sha512-YsN666209dTIdM2JX2L3RMUX3YAYKMaoEE8oguTXh/2t78gRDMj7Oq02QwatcmR4XyZZStGUy30ye9mcnsEnag==} - '@polkadot-api/polkadot-sdk-compat@2.1.0': - resolution: {integrity: sha512-AH8nEwJsHj8Sns1GHBtbXvfWz4FR33tVfcXG8/AkpnaAMkGfCZKcL3z7xwpkhOywl4IRySATyEpuKFCsQAKRKw==} + '@polkadot-api/polkadot-sdk-compat@2.2.0': + resolution: {integrity: sha512-glWg+I02jVHwWFy1GLhtJMhXTuapwYlsf19lflNn4G/rgPuZzQUvY63iVTv6mCkuyX+wcOoSCan9sGuzX/YAAQ==} '@polkadot-api/polkadot-signer@0.1.4': resolution: {integrity: sha512-s7YfsE2wtt5J0+x+C4Ey/aRdmsZxp85SXay4614nJeHRndLVrGVMXby/BeZ6JchbyeyYg2+urmtfCvqMDiSS7g==} @@ -1580,8 +1583,8 @@ packages: '@polkadot-api/wasm-executor@0.1.1': resolution: {integrity: sha512-OuxbAkSRNLtJtsWDzKx7TEYlRXI2ApT9LcEFckaAr6E4aKLQ5TgbDDXWUvwl4A3AnjoUQx7ltYcsb8qR8UpMAg==} - '@polkadot-api/ws-provider@0.2.0': - resolution: {integrity: sha512-R4B+tUR1H9j6AH2p4Dvv5+aV4/DC/TpKOqB1C5ON2Qvlc0TrH7x4HrZLn82Kq7iwUtnxkrU6esze2UgDGoVKPw==} + '@polkadot-api/ws-provider@0.2.2': + resolution: {integrity: sha512-/bxREzicd/nT6FEw1aVZr2YqBhXAfk80zazQfk+v5atuNkzNeAqke470wDokFZmOschubYfiWZtAx2/EG5rqxA==} '@polkadot/api-augment@12.4.2': resolution: {integrity: sha512-BkG2tQpUUO0iUm65nSqP8hwHkNfN8jQw8apqflJNt9H8EkEL6v7sqwbLvGqtlxM9wzdxbg7lrWp3oHg4rOP31g==} @@ -4536,8 +4539,8 @@ packages: pnglib@0.0.1: resolution: {integrity: sha512-95ChzOoYLOPIyVmL+Y6X+abKGXUJlvOVLkB1QQkyXl7Uczc6FElUy/x01NS7r2GX6GRezloO/ecCX9h4U9KadA==} - polkadot-api@1.2.1: - resolution: {integrity: sha512-8fuc87sai3gZhzwVyCtySR5kKuo0td/PM+XIOkVL1/owutaD69W3V0+w9I5Gm4PCBifpry5yh3kaGvW8N1XQwg==} + polkadot-api@1.3.1: + resolution: {integrity: sha512-be/iXQ2L7+YP/TA7GyZv9hDFhktY85n2Q1fpui5jTTlxq+as+/C7XnyEkp52XNjfWIqII8E1DkEJxXhz5KRXUA==} hasBin: true peerDependencies: rxjs: '>=7.8.0' @@ -7373,22 +7376,22 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@polkadot-api/cli@0.8.2(jiti@1.21.6)(postcss@8.4.47)(smoldot@2.0.26)(yaml@2.5.1)': + '@polkadot-api/cli@0.9.1(jiti@1.21.6)(postcss@8.4.47)(smoldot@2.0.26)(yaml@2.5.1)': dependencies: '@commander-js/extra-typings': 12.1.0(commander@12.1.0) - '@polkadot-api/codegen': 0.11.0 + '@polkadot-api/codegen': 0.12.0 '@polkadot-api/json-rpc-provider': 0.0.3 - '@polkadot-api/known-chains': 0.5.1 + '@polkadot-api/known-chains': 0.5.2 '@polkadot-api/metadata-compatibility': 0.1.5 - '@polkadot-api/observable-client': 0.5.3(@polkadot-api/substrate-client@0.2.1)(rxjs@7.8.1) - '@polkadot-api/polkadot-sdk-compat': 2.1.0 + '@polkadot-api/observable-client': 0.5.4(@polkadot-api/substrate-client@0.2.1)(rxjs@7.8.1) + '@polkadot-api/polkadot-sdk-compat': 2.2.0 '@polkadot-api/sm-provider': 0.1.1(smoldot@2.0.26) '@polkadot-api/smoldot': 0.3.2 '@polkadot-api/substrate-bindings': 0.7.0 '@polkadot-api/substrate-client': 0.2.1 '@polkadot-api/utils': 0.1.1 '@polkadot-api/wasm-executor': 0.1.1 - '@polkadot-api/ws-provider': 0.2.0 + '@polkadot-api/ws-provider': 0.2.2 '@types/node': 22.5.5 commander: 12.1.0 execa: 9.4.0 @@ -7412,22 +7415,24 @@ snapshots: - utf-8-validate - yaml - '@polkadot-api/codegen@0.11.0': + '@polkadot-api/codegen@0.12.0': dependencies: '@polkadot-api/metadata-builders': 0.7.0 '@polkadot-api/metadata-compatibility': 0.1.5 '@polkadot-api/substrate-bindings': 0.7.0 '@polkadot-api/utils': 0.1.1 - '@polkadot-api/descriptors@file:.papi/descriptors(polkadot-api@1.2.1(jiti@1.21.6)(postcss@8.4.47)(rxjs@7.8.1)(smoldot@2.0.26)(yaml@2.5.1))': + '@polkadot-api/descriptors@file:.papi/descriptors(polkadot-api@1.3.1(jiti@1.21.6)(postcss@8.4.47)(rxjs@7.8.1)(smoldot@2.0.26)(yaml@2.5.1))': dependencies: - polkadot-api: 1.2.1(jiti@1.21.6)(postcss@8.4.47)(rxjs@7.8.1)(smoldot@2.0.26)(yaml@2.5.1) + polkadot-api: 1.3.1(jiti@1.21.6)(postcss@8.4.47)(rxjs@7.8.1)(smoldot@2.0.26)(yaml@2.5.1) '@polkadot-api/json-rpc-provider-proxy@0.1.0': optional: true '@polkadot-api/json-rpc-provider-proxy@0.2.0': {} + '@polkadot-api/json-rpc-provider-proxy@0.2.1': {} + '@polkadot-api/json-rpc-provider@0.0.1': optional: true @@ -7435,7 +7440,7 @@ snapshots: '@polkadot-api/json-rpc-provider@0.0.3': {} - '@polkadot-api/known-chains@0.5.1': {} + '@polkadot-api/known-chains@0.5.2': {} '@polkadot-api/logs-provider@0.0.5': dependencies: @@ -7466,7 +7471,7 @@ snapshots: rxjs: 7.8.1 optional: true - '@polkadot-api/observable-client@0.5.3(@polkadot-api/substrate-client@0.2.1)(rxjs@7.8.1)': + '@polkadot-api/observable-client@0.5.4(@polkadot-api/substrate-client@0.2.1)(rxjs@7.8.1)': dependencies: '@polkadot-api/metadata-builders': 0.7.0 '@polkadot-api/substrate-bindings': 0.7.0 @@ -7481,7 +7486,7 @@ snapshots: '@polkadot-api/substrate-bindings': 0.7.0 '@polkadot-api/utils': 0.1.1 - '@polkadot-api/polkadot-sdk-compat@2.1.0': + '@polkadot-api/polkadot-sdk-compat@2.2.0': dependencies: '@polkadot-api/json-rpc-provider': 0.0.3 @@ -7547,10 +7552,10 @@ snapshots: '@polkadot-api/wasm-executor@0.1.1': {} - '@polkadot-api/ws-provider@0.2.0': + '@polkadot-api/ws-provider@0.2.2': dependencies: '@polkadot-api/json-rpc-provider': 0.0.3 - '@polkadot-api/json-rpc-provider-proxy': 0.2.0 + '@polkadot-api/json-rpc-provider-proxy': 0.2.1 ws: 8.18.0 transitivePeerDependencies: - bufferutil @@ -11346,17 +11351,17 @@ snapshots: pnglib@0.0.1: {} - polkadot-api@1.2.1(jiti@1.21.6)(postcss@8.4.47)(rxjs@7.8.1)(smoldot@2.0.26)(yaml@2.5.1): + polkadot-api@1.3.1(jiti@1.21.6)(postcss@8.4.47)(rxjs@7.8.1)(smoldot@2.0.26)(yaml@2.5.1): dependencies: - '@polkadot-api/cli': 0.8.2(jiti@1.21.6)(postcss@8.4.47)(smoldot@2.0.26)(yaml@2.5.1) + '@polkadot-api/cli': 0.9.1(jiti@1.21.6)(postcss@8.4.47)(smoldot@2.0.26)(yaml@2.5.1) '@polkadot-api/json-rpc-provider': 0.0.3 - '@polkadot-api/known-chains': 0.5.1 + '@polkadot-api/known-chains': 0.5.2 '@polkadot-api/logs-provider': 0.0.5 '@polkadot-api/metadata-builders': 0.7.0 '@polkadot-api/metadata-compatibility': 0.1.5 - '@polkadot-api/observable-client': 0.5.3(@polkadot-api/substrate-client@0.2.1)(rxjs@7.8.1) + '@polkadot-api/observable-client': 0.5.4(@polkadot-api/substrate-client@0.2.1)(rxjs@7.8.1) '@polkadot-api/pjs-signer': 0.4.2 - '@polkadot-api/polkadot-sdk-compat': 2.1.0 + '@polkadot-api/polkadot-sdk-compat': 2.2.0 '@polkadot-api/polkadot-signer': 0.1.4 '@polkadot-api/signer': 0.1.4 '@polkadot-api/sm-provider': 0.1.1(smoldot@2.0.26) @@ -11364,7 +11369,7 @@ snapshots: '@polkadot-api/substrate-bindings': 0.7.0 '@polkadot-api/substrate-client': 0.2.1 '@polkadot-api/utils': 0.1.1 - '@polkadot-api/ws-provider': 0.2.0 + '@polkadot-api/ws-provider': 0.2.2 rxjs: 7.8.1 transitivePeerDependencies: - '@microsoft/api-extractor' diff --git a/packages/ui/src/hooks/useIdentity.tsx b/packages/ui/src/hooks/useIdentity.tsx index d3bd82e6..f6a34b41 100644 --- a/packages/ui/src/hooks/useIdentity.tsx +++ b/packages/ui/src/hooks/useIdentity.tsx @@ -1,28 +1,49 @@ import { useEffect, useState } from 'react' -import { DeriveAccountInfo, DeriveAccountRegistration } from '@polkadot/api-derive/types' import { useIdenityApi } from './useIdentityApi' +import { FixedSizeBinary, TypedApi } from 'polkadot-api' +import { dotPpl, IdentityData } from '@polkadot-api/descriptors' export const useIdentity = (address?: string) => { const { api } = useIdenityApi() - const [identity, setIdentity] = useState(null) + const [identity, setIdentity] = useState | null>(null) useEffect(() => { if (!api || !address) { return } - let unsubscribe: () => void - - api.derive.accounts - .info(address, (info: DeriveAccountInfo) => { - setIdentity(info.identity) + const unsub = (api as TypedApi).query.Identity.IdentityOf.watchValue( + address, + 'best' + ).subscribe((val) => { + const id: Record = { judgements: [] } + val?.[0].judgements.forEach(([, judgement]) => { + id.judgements.push(judgement.type) }) - .then((unsub) => { - unsubscribe = unsub + Object.entries(val?.[0]?.info || {}).forEach(([key, value]) => { + if ((value as IdentityData)?.type !== 'None') { + // console.log('key', JSONprint(key)); + // console.log('value', JSONprint(value)); + const text = (value as IdentityData)?.value as FixedSizeBinary<2> | undefined + if (text) { + id[key] = text.asText() + } + } }) - .catch((e) => console.error(e)) - return () => unsubscribe && unsubscribe() + setIdentity(id) + }) + + // api.derive.accounts + // .info(address, (info: DeriveAccountInfo) => { + // setIdentity(info.identity) + // }) + // .then((unsub) => { + // unsubscribe = unsub + // }) + // .catch((e) => console.error(e)) + + return () => unsub && unsub.unsubscribe() }, [address, api]) return identity diff --git a/packages/ui/src/utils/getDisplayArgs.ts b/packages/ui/src/utils/getDisplayArgs.ts index cf0d23dd..08161e34 100644 --- a/packages/ui/src/utils/getDisplayArgs.ts +++ b/packages/ui/src/utils/getDisplayArgs.ts @@ -1,5 +1,4 @@ -import { GenericCall } from '@polkadot/types' -import { AnyTuple } from '@polkadot/types/types' +import { Transaction } from 'polkadot-api' -export const getDisplayArgs = (call: GenericCall | false | undefined) => +export const getDisplayArgs = (call: Transaction | false | undefined) => call && call.toHuman().args diff --git a/yarn.lock b/yarn.lock index 989be32b..1dfea884 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3105,24 +3105,24 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/cli@npm:0.8.1": - version: 0.8.1 - resolution: "@polkadot-api/cli@npm:0.8.1" +"@polkadot-api/cli@npm:0.9.1": + version: 0.9.1 + resolution: "@polkadot-api/cli@npm:0.9.1" dependencies: "@commander-js/extra-typings": ^12.1.0 - "@polkadot-api/codegen": 0.10.0 + "@polkadot-api/codegen": 0.12.0 "@polkadot-api/json-rpc-provider": 0.0.3 - "@polkadot-api/known-chains": 0.5.1 - "@polkadot-api/metadata-compatibility": 0.1.4 - "@polkadot-api/observable-client": 0.5.3 - "@polkadot-api/polkadot-sdk-compat": 2.1.0 + "@polkadot-api/known-chains": 0.5.2 + "@polkadot-api/metadata-compatibility": 0.1.5 + "@polkadot-api/observable-client": 0.5.4 + "@polkadot-api/polkadot-sdk-compat": 2.2.0 "@polkadot-api/sm-provider": 0.1.1 "@polkadot-api/smoldot": 0.3.2 "@polkadot-api/substrate-bindings": 0.7.0 "@polkadot-api/substrate-client": 0.2.1 "@polkadot-api/utils": 0.1.1 "@polkadot-api/wasm-executor": ^0.1.1 - "@polkadot-api/ws-provider": 0.2.0 + "@polkadot-api/ws-provider": 0.2.2 "@types/node": ^22.2.0 commander: ^12.1.0 execa: ^9.3.0 @@ -3137,29 +3137,30 @@ __metadata: bin: papi: dist/main.js polkadot-api: dist/main.js - checksum: a27d033b0f42cc79f6e9552f057593b98a246717afb9488790d7748a905a40b4446edc95a4ba0abb4203116ab88910cfae47cb02a0661f51bc81282d92d8cad0 + checksum: adc6f4c46dd912bf916dd1dd286e9b1629b0966e70b7b4e1814ad53960d9b3ac0665fe88f5a3eaf983cf02d2253534f03a8b6197cb0c36ff9715b454099f5037 languageName: node linkType: hard -"@polkadot-api/codegen@npm:0.10.0": - version: 0.10.0 - resolution: "@polkadot-api/codegen@npm:0.10.0" +"@polkadot-api/codegen@npm:0.12.0": + version: 0.12.0 + resolution: "@polkadot-api/codegen@npm:0.12.0" dependencies: "@polkadot-api/metadata-builders": 0.7.0 - "@polkadot-api/metadata-compatibility": 0.1.4 + "@polkadot-api/metadata-compatibility": 0.1.5 "@polkadot-api/substrate-bindings": 0.7.0 "@polkadot-api/utils": 0.1.1 - checksum: 983847e80d6106844cec2c968df06e436e0451433b9ed12dbfc89f4bb5f2e853d583040b7b07200b3e212856705aa434249a44ca83bfea167326c6447a06aad5 + checksum: 9d75989a1801d12c7052a8f6ceaf0e903f9e8b27066fc9043cf11275fde3619bd82475e137e5573c2fdb5ee5d4093932b012d25ce25a51c3faf590701132c56d languageName: node linkType: hard -"@polkadot-api/descriptors@portal:.papi/descriptors::locator=multix-ui%40workspace%3Apackages%2Fui": - version: 0.0.0-use.local - resolution: "@polkadot-api/descriptors@portal:.papi/descriptors::locator=multix-ui%40workspace%3Apackages%2Fui" +"@polkadot-api/descriptors@file:.papi/descriptors::locator=multix-ui%40workspace%3Apackages%2Fui": + version: 0.1.0-autogenerated.4701309159802401194 + resolution: "@polkadot-api/descriptors@file:.papi/descriptors#.papi/descriptors::hash=a12567&locator=multix-ui%40workspace%3Apackages%2Fui" peerDependencies: polkadot-api: "*" + checksum: 3a71c9270b8408e0f3f61e92db3fce378e1481d9178242c1bb20032b35b0e01a105406c986b1116b509b0429cf30a1e9cb956a2377f7c8f6e273d5d89ad79ab3 languageName: node - linkType: soft + linkType: hard "@polkadot-api/json-rpc-provider-proxy@npm:0.0.1": version: 0.0.1 @@ -3175,6 +3176,13 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/json-rpc-provider-proxy@npm:0.2.1": + version: 0.2.1 + resolution: "@polkadot-api/json-rpc-provider-proxy@npm:0.2.1" + checksum: 818cabf15cb8e0b26136dc832fa2b89b195a5a1ef91be659688ec00ebdeb462646b503e7be76bce4b0cd619d40d903fec37d9e1c9078e7e771ffd41671f6d548 + languageName: node + linkType: hard + "@polkadot-api/json-rpc-provider@npm:0.0.1": version: 0.0.1 resolution: "@polkadot-api/json-rpc-provider@npm:0.0.1" @@ -3196,10 +3204,10 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/known-chains@npm:0.5.1": - version: 0.5.1 - resolution: "@polkadot-api/known-chains@npm:0.5.1" - checksum: c44c173b84fb7a61e42ae9735b919c9d331089907d2a0efb16453f332b80ae00bd53ea1235593ffafe248edb5af9aa0d0f18b3e3b8f79c4a25cb4fb2fc950a32 +"@polkadot-api/known-chains@npm:0.5.2": + version: 0.5.2 + resolution: "@polkadot-api/known-chains@npm:0.5.2" + checksum: 953bc01dd1d8a513c86539211588db2b43dc02a78c6c08de12f7a820b1370dfa6a83aa7c90384105087fba6cded52a6212b6aa9f776a03add3f30bcc28b1bdd9 languageName: node linkType: hard @@ -3232,13 +3240,13 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/metadata-compatibility@npm:0.1.4": - version: 0.1.4 - resolution: "@polkadot-api/metadata-compatibility@npm:0.1.4" +"@polkadot-api/metadata-compatibility@npm:0.1.5": + version: 0.1.5 + resolution: "@polkadot-api/metadata-compatibility@npm:0.1.5" dependencies: "@polkadot-api/metadata-builders": 0.7.0 "@polkadot-api/substrate-bindings": 0.7.0 - checksum: 1fac6ad7530ed747241194d30de119f5f9669cd40ab03084dbad08fd8167c2668602fca9eceaa44a1c77777808bd844284da0230e355c7945abed6e7d5ee1e9a + checksum: ce63fe3c8d17c27f0c3332d4bddb917ffc518ccf1d62c23e2721f142a0a068f9972bc03ffdc6857074954be23a44657f0075cd83e07b26f4809d8b419787324c languageName: node linkType: hard @@ -3256,9 +3264,9 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/observable-client@npm:0.5.3": - version: 0.5.3 - resolution: "@polkadot-api/observable-client@npm:0.5.3" +"@polkadot-api/observable-client@npm:0.5.4": + version: 0.5.4 + resolution: "@polkadot-api/observable-client@npm:0.5.4" dependencies: "@polkadot-api/metadata-builders": 0.7.0 "@polkadot-api/substrate-bindings": 0.7.0 @@ -3266,7 +3274,7 @@ __metadata: peerDependencies: "@polkadot-api/substrate-client": 0.2.1 rxjs: ">=7.8.0" - checksum: 417b0fb09cf7ce6c9873a57fda3417e733df492b42bab738b47e1c70e4735348655910fcef771a6367cf40b453d3271e8346e1ebbd3338fdef8f328dd0cd45cc + checksum: 2b7aad2210daccd43a5aafcbe0caf43e4dcd78d57a79223560711baa6fd71ad1c3f258dbce178d3621c9b209b222f66bfa0dbefd5d8f082b13155395be64b538 languageName: node linkType: hard @@ -3282,12 +3290,12 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/polkadot-sdk-compat@npm:2.1.0": - version: 2.1.0 - resolution: "@polkadot-api/polkadot-sdk-compat@npm:2.1.0" +"@polkadot-api/polkadot-sdk-compat@npm:2.2.0": + version: 2.2.0 + resolution: "@polkadot-api/polkadot-sdk-compat@npm:2.2.0" dependencies: "@polkadot-api/json-rpc-provider": 0.0.3 - checksum: a87529f83d6611f5c4e96acac462a961b196b6de01294c1a82546a1d1ca42c03240dfeef1e749337d496c26b1e0933b6c19856afdb71e80889cb720218ff5d8d + checksum: caa9ede890350fb6b22ea39bc5c22a6868a519c8e90e87e4939e6e41eaf3e8befb2fd10495797a70a175603e468a0ca0d098a3e5e5d39f9d6a880b99e78f9bd4 languageName: node linkType: hard @@ -3405,14 +3413,14 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/ws-provider@npm:0.2.0": - version: 0.2.0 - resolution: "@polkadot-api/ws-provider@npm:0.2.0" +"@polkadot-api/ws-provider@npm:0.2.2": + version: 0.2.2 + resolution: "@polkadot-api/ws-provider@npm:0.2.2" dependencies: "@polkadot-api/json-rpc-provider": 0.0.3 - "@polkadot-api/json-rpc-provider-proxy": 0.2.0 + "@polkadot-api/json-rpc-provider-proxy": 0.2.1 ws: ^8.18.0 - checksum: 502dab5f7888a895b990d954a6b0327e318d34f07b04b38c04cc4e2db6022f9b46fed546ead6b21b13946e07ce7e833d427e173fcfe3aa7b0be2b189bcb2a693 + checksum: bd9f1137c6c19bdb2c01dccefba443bb3eae456d8f4216dfbb123e8fff3c7af6d363bb35f0b530b6618433da0f8fb84031538090dd80bd83718a5f0a27320409 languageName: node linkType: hard @@ -10851,7 +10859,7 @@ __metadata: "@graphql-eslint/eslint-plugin": ^3.20.1 "@mui/material": ^5.15.15 "@mui/styled-engine": ^5.15.14 - "@polkadot-api/descriptors": "portal:.papi/descriptors" + "@polkadot-api/descriptors": "file:.papi/descriptors" "@polkadot/api": ^12.2.1 "@polkadot/api-augment": ^12.2.1 "@polkadot/extension-dapp": ^0.49.1 @@ -10880,7 +10888,7 @@ __metadata: graphql: ^16.8.1 graphql-request: ^6.1.0 graphql-ws: ^5.16.0 - polkadot-api: ^1.2.0 + polkadot-api: ^1.3.1 react: 18.2.0 react-dom: 18.2.0 react-icons: ^5.1.0 @@ -11635,19 +11643,19 @@ __metadata: languageName: node linkType: hard -"polkadot-api@npm:^1.2.0": - version: 1.2.0 - resolution: "polkadot-api@npm:1.2.0" +"polkadot-api@npm:^1.3.1": + version: 1.3.1 + resolution: "polkadot-api@npm:1.3.1" dependencies: - "@polkadot-api/cli": 0.8.1 + "@polkadot-api/cli": 0.9.1 "@polkadot-api/json-rpc-provider": 0.0.3 - "@polkadot-api/known-chains": 0.5.1 + "@polkadot-api/known-chains": 0.5.2 "@polkadot-api/logs-provider": 0.0.5 "@polkadot-api/metadata-builders": 0.7.0 - "@polkadot-api/metadata-compatibility": 0.1.4 - "@polkadot-api/observable-client": 0.5.3 + "@polkadot-api/metadata-compatibility": 0.1.5 + "@polkadot-api/observable-client": 0.5.4 "@polkadot-api/pjs-signer": 0.4.2 - "@polkadot-api/polkadot-sdk-compat": 2.1.0 + "@polkadot-api/polkadot-sdk-compat": 2.2.0 "@polkadot-api/polkadot-signer": 0.1.4 "@polkadot-api/signer": 0.1.4 "@polkadot-api/sm-provider": 0.1.1 @@ -11655,13 +11663,13 @@ __metadata: "@polkadot-api/substrate-bindings": 0.7.0 "@polkadot-api/substrate-client": 0.2.1 "@polkadot-api/utils": 0.1.1 - "@polkadot-api/ws-provider": 0.2.0 + "@polkadot-api/ws-provider": 0.2.2 peerDependencies: rxjs: ">=7.8.0" bin: papi: bin/cli.mjs polkadot-api: bin/cli.mjs - checksum: 46040d3fa664865b853a4debb92f3e0099adfd5ba291f26f2275b5c90270b8ac7bec1ac6164fb2c050248ab6bd45f51b9750c628811e62f78aa73c5011bf586b + checksum: 199e92df0f9eae527241b778b020f9e67c2cc5b7a1c5d7daf2bdb0b0c5270d474858d8ae51c73ba90784ec5f6147cba4b307e26e15a7161d5aceaf80ff6e3d9f languageName: node linkType: hard