From 307d9ba11fb3daf53cdd9b15fa8ad3b096e5b939 Mon Sep 17 00:00:00 2001 From: 71walceli Date: Wed, 1 Jan 2025 02:16:40 -0500 Subject: [PATCH 1/9] Added Paseo People to well known chains Paseo People chain was added since `polkadot-api@1.8.0`, so I'm adding it to be used with the light client provider. Please let me know if anything else is needed --- packages/core/src/providers/light-client/wellknown-chains.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/providers/light-client/wellknown-chains.ts b/packages/core/src/providers/light-client/wellknown-chains.ts index 090324e8..58c450bc 100644 --- a/packages/core/src/providers/light-client/wellknown-chains.ts +++ b/packages/core/src/providers/light-client/wellknown-chains.ts @@ -23,6 +23,7 @@ export const wellknownChains = { paseo: [ () => import("polkadot-api/chains/paseo"), { paseo_asset_hub: () => import("polkadot-api/chains/paseo_asset_hub") }, + { paseo_people: () => import("polkadot-api/chains/paseo_people") }, ], westend: [ () => import("polkadot-api/chains/westend2"), From e338d8c40b302edcd77d5e681e857ff37b8dd96d Mon Sep 17 00:00:00 2001 From: 71walceli <71walceli@71walceli.dev> Date: Wed, 1 Jan 2025 03:10:46 -0500 Subject: [PATCH 2/9] Added changelist --- .changeset/few-penguins-rest.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/few-penguins-rest.md diff --git a/.changeset/few-penguins-rest.md b/.changeset/few-penguins-rest.md new file mode 100644 index 00000000..61493852 --- /dev/null +++ b/.changeset/few-penguins-rest.md @@ -0,0 +1,7 @@ +--- +"@reactive-dot/core": minor +--- + +Added Paseo People relay chain + +`polkadot-api` v1.8.0 added the parachain. From 09da1b7a941221ed91d88689536675b4295bc073 Mon Sep 17 00:00:00 2001 From: 71walceli <71walceli@71walceli.dev> Date: Wed, 1 Jan 2025 03:14:31 -0500 Subject: [PATCH 3/9] Updated polkadot-api --- package.json | 3 + yarn.lock | 233 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 235 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index aeeeea86..e5e4c333 100644 --- a/package.json +++ b/package.json @@ -44,5 +44,8 @@ "husky": "^9.1.7", "nx": "^20.2.1", "prettier": "^3.4.2" + }, + "dependencies": { + "polkadot-api": "1.8.0" } } diff --git a/yarn.lock b/yarn.lock index 5d9adee0..4a6e1ddc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4318,6 +4318,13 @@ __metadata: languageName: node linkType: hard +"@noble/hashes@npm:^1.6.1": + version: 1.6.1 + resolution: "@noble/hashes@npm:1.6.1" + checksum: 10c0/27643cd8b551bc933b57cc29aa8c8763d586552fc4c3e06ecf7897f55be3463c0c9dff7f6ebacd88e5ce6d0cdb5415ca4874d0cf4359b5ea4a85be21ada03aab + languageName: node + linkType: hard + "@nodelib/fs.scandir@npm:2.1.5": version: 2.1.5 resolution: "@nodelib/fs.scandir@npm:2.1.5" @@ -4623,6 +4630,43 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/cli@npm:0.10.0": + version: 0.10.0 + resolution: "@polkadot-api/cli@npm:0.10.0" + dependencies: + "@commander-js/extra-typings": "npm:^12.1.0" + "@polkadot-api/codegen": "npm:0.12.12" + "@polkadot-api/ink-contracts": "npm:0.2.4" + "@polkadot-api/json-rpc-provider": "npm:0.0.4" + "@polkadot-api/known-chains": "npm:0.6.0" + "@polkadot-api/metadata-compatibility": "npm:0.1.14" + "@polkadot-api/observable-client": "npm:0.7.0" + "@polkadot-api/polkadot-sdk-compat": "npm:2.3.1" + "@polkadot-api/sm-provider": "npm:0.1.7" + "@polkadot-api/smoldot": "npm:0.3.8" + "@polkadot-api/substrate-bindings": "npm:0.11.0" + "@polkadot-api/substrate-client": "npm:0.3.0" + "@polkadot-api/utils": "npm:0.1.2" + "@polkadot-api/wasm-executor": "npm:^0.1.2" + "@polkadot-api/ws-provider": "npm:0.3.6" + "@types/node": "npm:^22.10.2" + commander: "npm:^12.1.0" + execa: "npm:^9.5.2" + fs.promises.exists: "npm:^1.1.4" + ora: "npm:^8.1.1" + read-pkg: "npm:^9.0.1" + rxjs: "npm:^7.8.1" + tsc-prog: "npm:^2.3.0" + tsup: "npm:^8.3.5" + typescript: "npm:^5.7.2" + write-package: "npm:^7.1.0" + bin: + papi: dist/main.js + polkadot-api: dist/main.js + checksum: 10c0/833349fc3aa5288d1e541eeb1c0d7cd88889195e52c5bd92fa75fd0a30f1c53a4c617e81ae612823df63707e7f336fac94e7c3b8bb8ca343ccece6c57706ed3b + languageName: node + linkType: hard + "@polkadot-api/cli@npm:0.9.22": version: 0.9.22 resolution: "@polkadot-api/cli@npm:0.9.22" @@ -4673,6 +4717,19 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/codegen@npm:0.12.12": + version: 0.12.12 + resolution: "@polkadot-api/codegen@npm:0.12.12" + dependencies: + "@polkadot-api/ink-contracts": "npm:0.2.4" + "@polkadot-api/metadata-builders": "npm:0.10.0" + "@polkadot-api/metadata-compatibility": "npm:0.1.14" + "@polkadot-api/substrate-bindings": "npm:0.11.0" + "@polkadot-api/utils": "npm:0.1.2" + checksum: 10c0/777e06cdf6b487a1cc814cebe344abf17939ffed927168f18721cccd448f10850a0afc2602ea64dcda83da99b4cc333cae1ade8e3062b8d4dab7e2b69bae14d9 + languageName: node + linkType: hard + "@polkadot-api/descriptors@portal:.papi/descriptors::locator=%40reactive-dot%2Fexample-react%40workspace%3Aexamples%2Freact": version: 0.0.0-use.local resolution: "@polkadot-api/descriptors@portal:.papi/descriptors::locator=%40reactive-dot%2Fexample-react%40workspace%3Aexamples%2Freact" @@ -4701,6 +4758,18 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/ink-contracts@npm:0.2.4": + version: 0.2.4 + resolution: "@polkadot-api/ink-contracts@npm:0.2.4" + dependencies: + "@polkadot-api/metadata-builders": "npm:0.10.0" + "@polkadot-api/substrate-bindings": "npm:0.11.0" + "@polkadot-api/utils": "npm:0.1.2" + scale-ts: "npm:^1.6.1" + checksum: 10c0/42184e035c83f80a40d0e82393649e1305b0b521b3efbed50bfdda7530eba0251fb07c0e6b2544e5869c4f25de0f6eb1fc925b35e5b01eddb3709f48ecd418cb + languageName: node + linkType: hard + "@polkadot-api/json-rpc-provider-proxy@npm:0.2.4": version: 0.2.4 resolution: "@polkadot-api/json-rpc-provider-proxy@npm:0.2.4" @@ -4722,6 +4791,13 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/known-chains@npm:0.6.0": + version: 0.6.0 + resolution: "@polkadot-api/known-chains@npm:0.6.0" + checksum: 10c0/7bba0ad99a58e7f37f9175617b849be89265fc6769be3c35cf410f6bf5f9fddbb9d55fea915769d2e81301cade42c2f25db7a1a6dad981bd39fdf2cbe9d2e2ab + languageName: node + linkType: hard + "@polkadot-api/ledger-signer@npm:^0.1.8": version: 0.1.8 resolution: "@polkadot-api/ledger-signer@npm:0.1.8" @@ -4757,6 +4833,16 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/metadata-builders@npm:0.10.0": + version: 0.10.0 + resolution: "@polkadot-api/metadata-builders@npm:0.10.0" + dependencies: + "@polkadot-api/substrate-bindings": "npm:0.11.0" + "@polkadot-api/utils": "npm:0.1.2" + checksum: 10c0/0fb49a6cd4e2b66e3c3983f66e427b5763da0b67d5c4847c190e6e546f67bc4908d456b2afe80ce85316736d3aa408d779f309b292957648820aca44e6578719 + languageName: node + linkType: hard + "@polkadot-api/metadata-builders@npm:0.9.3": version: 0.9.3 resolution: "@polkadot-api/metadata-builders@npm:0.9.3" @@ -4777,6 +4863,16 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/metadata-compatibility@npm:0.1.14": + version: 0.1.14 + resolution: "@polkadot-api/metadata-compatibility@npm:0.1.14" + dependencies: + "@polkadot-api/metadata-builders": "npm:0.10.0" + "@polkadot-api/substrate-bindings": "npm:0.11.0" + checksum: 10c0/c660ad7334c69283498dc443d2f8aeb289b9b277f863bf8144cd2586e394b2e77e2521a33f7af5ca48be6a55144062e066657c7c3b8e3aa719219aca3535e012 + languageName: node + linkType: hard + "@polkadot-api/observable-client@npm:0.6.4": version: 0.6.4 resolution: "@polkadot-api/observable-client@npm:0.6.4" @@ -4791,6 +4887,20 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/observable-client@npm:0.7.0": + version: 0.7.0 + resolution: "@polkadot-api/observable-client@npm:0.7.0" + dependencies: + "@polkadot-api/metadata-builders": "npm:0.10.0" + "@polkadot-api/substrate-bindings": "npm:0.11.0" + "@polkadot-api/utils": "npm:0.1.2" + peerDependencies: + "@polkadot-api/substrate-client": 0.3.0 + rxjs: ">=7.8.0" + checksum: 10c0/3d71b230fa43af5238740a87619bc0a22d7f541e24f05d89f85d190689507832c39f58affc47d3c8596375c0504d4e2dc0348607dec7e2a04c9d2d5872c5a954 + languageName: node + linkType: hard + "@polkadot-api/pjs-signer@npm:0.6.2": version: 0.6.2 resolution: "@polkadot-api/pjs-signer@npm:0.6.2" @@ -4804,6 +4914,19 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/pjs-signer@npm:0.6.3": + version: 0.6.3 + resolution: "@polkadot-api/pjs-signer@npm:0.6.3" + dependencies: + "@polkadot-api/metadata-builders": "npm:0.10.0" + "@polkadot-api/polkadot-signer": "npm:0.1.6" + "@polkadot-api/signers-common": "npm:0.1.4" + "@polkadot-api/substrate-bindings": "npm:0.11.0" + "@polkadot-api/utils": "npm:0.1.2" + checksum: 10c0/152f5e0b8bdac1666cae73683287ef26c15b1d15f9429e0826a50521e15d39d6d1ef27c4ed9553b41715d422b9887a2d7f3f5a359b47eca1a1eada7dc30eb8f1 + languageName: node + linkType: hard + "@polkadot-api/polkadot-sdk-compat@npm:2.3.1": version: 2.3.1 resolution: "@polkadot-api/polkadot-sdk-compat@npm:2.3.1" @@ -4833,6 +4956,19 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/signer@npm:0.1.13": + version: 0.1.13 + resolution: "@polkadot-api/signer@npm:0.1.13" + dependencies: + "@noble/hashes": "npm:^1.6.1" + "@polkadot-api/polkadot-signer": "npm:0.1.6" + "@polkadot-api/signers-common": "npm:0.1.4" + "@polkadot-api/substrate-bindings": "npm:0.11.0" + "@polkadot-api/utils": "npm:0.1.2" + checksum: 10c0/f536b57026076b3d8caf46541299247a46db179af0461256183050723557baa715b664bec84ad5d9a34a393ab0b56f2febd72aa05a63ee85d8c5e628dde301f8 + languageName: node + linkType: hard + "@polkadot-api/signers-common@npm:0.1.3": version: 0.1.3 resolution: "@polkadot-api/signers-common@npm:0.1.3" @@ -4845,6 +4981,18 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/signers-common@npm:0.1.4": + version: 0.1.4 + resolution: "@polkadot-api/signers-common@npm:0.1.4" + dependencies: + "@polkadot-api/metadata-builders": "npm:0.10.0" + "@polkadot-api/polkadot-signer": "npm:0.1.6" + "@polkadot-api/substrate-bindings": "npm:0.11.0" + "@polkadot-api/utils": "npm:0.1.2" + checksum: 10c0/f3406ec0e8166181de9c0bc99af3302fa96d1d309ac6c0a8f6ee59c4db1ff397443b7610a02c6d9c08a0db6256ae9b31299f88e8685ddef67b02b7b1ecd31d6c + languageName: node + linkType: hard + "@polkadot-api/sm-provider@npm:0.1.7": version: 0.1.7 resolution: "@polkadot-api/sm-provider@npm:0.1.7" @@ -4879,6 +5027,18 @@ __metadata: languageName: node linkType: hard +"@polkadot-api/substrate-bindings@npm:0.11.0": + version: 0.11.0 + resolution: "@polkadot-api/substrate-bindings@npm:0.11.0" + dependencies: + "@noble/hashes": "npm:^1.6.1" + "@polkadot-api/utils": "npm:0.1.2" + "@scure/base": "npm:^1.2.1" + scale-ts: "npm:^1.6.1" + checksum: 10c0/8e0ea627a036b2bfd34adba06bb535d5ec473b118c53c2de88e48f245907decebbebd701b27f62d351509c6d28c88630160c1a4110ef5a61b0ca53088e94864f + languageName: node + linkType: hard + "@polkadot-api/substrate-client@npm:0.3.0": version: 0.3.0 resolution: "@polkadot-api/substrate-client@npm:0.3.0" @@ -5492,7 +5652,16 @@ __metadata: languageName: node linkType: hard -"@scure/base@npm:^1.1.9": +"@rx-state/core@npm:^0.1.4": + version: 0.1.4 + resolution: "@rx-state/core@npm:0.1.4" + peerDependencies: + rxjs: ">=7" + checksum: 10c0/d1ca270c87d273fae93e84ee060d66cb3f60308e00cf72b87b6fae67d9478e2375724c8bd00751bb098f83097deb03d3000e642a441168fc4f9d5af8ad009997 + languageName: node + linkType: hard + +"@scure/base@npm:^1.1.9, @scure/base@npm:^1.2.1": version: 1.2.1 resolution: "@scure/base@npm:1.2.1" checksum: 10c0/e61068854370855b89c50c28fa4092ea6780f1e0db64ea94075ab574ebcc964f719a3120dc708db324991f4b3e652d92ebda03fce2bf6a4900ceeacf9c0ff933 @@ -6315,6 +6484,15 @@ __metadata: languageName: node linkType: hard +"@types/node@npm:^22.10.2": + version: 22.10.3 + resolution: "@types/node@npm:22.10.3" + dependencies: + undici-types: "npm:~6.20.0" + checksum: 10c0/0471a73c8672c803b1f2b912c2c466d00a217186933e8ff38ec7779b4a3f88a0eea3b513a59f2abf9de17cc8bbca688a3c6643c6513ac8dd1c3e45d25fab93b1 + languageName: node + linkType: hard + "@types/node@npm:^22.9.0": version: 22.9.1 resolution: "@types/node@npm:22.9.1" @@ -10895,6 +11073,26 @@ __metadata: languageName: node linkType: hard +"execa@npm:^9.5.2": + version: 9.5.2 + resolution: "execa@npm:9.5.2" + dependencies: + "@sindresorhus/merge-streams": "npm:^4.0.0" + cross-spawn: "npm:^7.0.3" + figures: "npm:^6.1.0" + get-stream: "npm:^9.0.0" + human-signals: "npm:^8.0.0" + is-plain-obj: "npm:^4.1.0" + is-stream: "npm:^4.0.1" + npm-run-path: "npm:^6.0.0" + pretty-ms: "npm:^9.0.0" + signal-exit: "npm:^4.1.0" + strip-final-newline: "npm:^4.0.0" + yoctocolors: "npm:^2.0.0" + checksum: 10c0/94782a6282e03253224406c29068d18f9095cc251a45d1f19ac3d8f2a9db2cbe32fb8ceb039db1451d8fce3531135a6c0c559f76d634f85416268fc4a6995365 + languageName: node + linkType: hard + "expect-type@npm:^1.1.0": version: 1.1.0 resolution: "expect-type@npm:1.1.0" @@ -16001,6 +16199,38 @@ __metadata: languageName: node linkType: hard +"polkadot-api@npm:1.8.0": + version: 1.8.0 + resolution: "polkadot-api@npm:1.8.0" + dependencies: + "@polkadot-api/cli": "npm:0.10.0" + "@polkadot-api/ink-contracts": "npm:0.2.4" + "@polkadot-api/json-rpc-provider": "npm:0.0.4" + "@polkadot-api/known-chains": "npm:0.6.0" + "@polkadot-api/logs-provider": "npm:0.0.6" + "@polkadot-api/metadata-builders": "npm:0.10.0" + "@polkadot-api/metadata-compatibility": "npm:0.1.14" + "@polkadot-api/observable-client": "npm:0.7.0" + "@polkadot-api/pjs-signer": "npm:0.6.3" + "@polkadot-api/polkadot-sdk-compat": "npm:2.3.1" + "@polkadot-api/polkadot-signer": "npm:0.1.6" + "@polkadot-api/signer": "npm:0.1.13" + "@polkadot-api/sm-provider": "npm:0.1.7" + "@polkadot-api/smoldot": "npm:0.3.8" + "@polkadot-api/substrate-bindings": "npm:0.11.0" + "@polkadot-api/substrate-client": "npm:0.3.0" + "@polkadot-api/utils": "npm:0.1.2" + "@polkadot-api/ws-provider": "npm:0.3.6" + "@rx-state/core": "npm:^0.1.4" + peerDependencies: + rxjs: ">=7.8.0" + bin: + papi: bin/cli.mjs + polkadot-api: bin/cli.mjs + checksum: 10c0/3a77289fe5eaecd33fe5a335a1d289c474b182c178467fdc3e222cea477d5d2e9f54eb8fe86742a1a9a63ab910abbc0f2b88babc858707f8b908c353b8dd99a6 + languageName: node + linkType: hard + "polkadot-api@npm:^1.7.8": version: 1.7.8 resolution: "polkadot-api@npm:1.7.8" @@ -17229,6 +17459,7 @@ __metadata: "@trivago/prettier-plugin-sort-imports": "npm:^5.2.0" husky: "npm:^9.1.7" nx: "npm:^20.2.1" + polkadot-api: "npm:1.8.0" prettier: "npm:^3.4.2" languageName: unknown linkType: soft From b39d05d3b7bf0abc3a9eb532b666e6ce8b673f38 Mon Sep 17 00:00:00 2001 From: 71walceli <71walceli@71walceli.dev> Date: Wed, 1 Jan 2025 21:16:37 -0500 Subject: [PATCH 4/9] Fixed way of adding Paseo chain, as it must be passed in single object --- .../core/src/providers/light-client/wellknown-chains.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/providers/light-client/wellknown-chains.ts b/packages/core/src/providers/light-client/wellknown-chains.ts index 58c450bc..e65b3173 100644 --- a/packages/core/src/providers/light-client/wellknown-chains.ts +++ b/packages/core/src/providers/light-client/wellknown-chains.ts @@ -22,8 +22,10 @@ export const wellknownChains = { ], paseo: [ () => import("polkadot-api/chains/paseo"), - { paseo_asset_hub: () => import("polkadot-api/chains/paseo_asset_hub") }, - { paseo_people: () => import("polkadot-api/chains/paseo_people") }, + { + paseo_asset_hub: () => import("polkadot-api/chains/paseo_asset_hub"), + paseo_people: () => import("polkadot-api/chains/paseo_people"), + }, ], westend: [ () => import("polkadot-api/chains/westend2"), From 7729e3295771bfc5811704d6c6ddb4f1a836f7ec Mon Sep 17 00:00:00 2001 From: 71walceli <71walceli@71walceli.dev> Date: Fri, 3 Jan 2025 20:52:16 -0500 Subject: [PATCH 5/9] Updated `polkadot-api` for examples --- examples/react/package.json | 2 +- examples/vue/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/react/package.json b/examples/react/package.json index 2f60c135..d57fcb4f 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -16,7 +16,7 @@ "@reactive-dot/wallet-walletconnect": "workspace:^", "date-fns": "^4.1.0", "jotai-devtools": "^0.10.1", - "polkadot-api": "^1.7.8", + "polkadot-api": "^1.8.0", "react": "^19.0.0", "react-dom": "^19.0.0", "react-error-boundary": "^4.1.2", diff --git a/examples/vue/package.json b/examples/vue/package.json index 764423bf..00817ff2 100644 --- a/examples/vue/package.json +++ b/examples/vue/package.json @@ -12,7 +12,7 @@ "dependencies": { "@polkadot-api/descriptors": "portal:.papi/descriptors", "@reactive-dot/vue": "workspace:^", - "polkadot-api": "^1.7.8", + "polkadot-api": "^1.8.0", "vue": "^3.5.12" }, "devDependencies": { From e0258a1d7fb5313c3ec66014eecdfe4be6794e1c Mon Sep 17 00:00:00 2001 From: 71walceli <71walceli@71walceli.dev> Date: Fri, 3 Jan 2025 21:25:48 -0500 Subject: [PATCH 6/9] Updated `polkadot-api` peer deps --- packages/core/package.json | 3 +- packages/react/package.json | 2 +- yarn.lock | 204 ++++-------------------------------- 3 files changed, 20 insertions(+), 189 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 580d21f4..be172616 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -45,11 +45,10 @@ "@tsconfig/recommended": "^1.0.8", "@tsconfig/strictest": "^2.0.5", "eslint": "^9.16.0", - "polkadot-api": "^1.7.8", "typescript": "^5.7.2", "vitest": "^2.1.8" }, "peerDependencies": { - "polkadot-api": "1.x" + "polkadot-api": "^1.8.0" } } diff --git a/packages/react/package.json b/packages/react/package.json index b3d23c46..b21203fa 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -40,7 +40,7 @@ "@tsconfig/strictest": "^2.0.5", "@types/react": "^19.0.1", "eslint": "^9.16.0", - "polkadot-api": "^1.7.8", + "polkadot-api": "^1.8.0", "react": "^19.0.0", "typescript": "^5.7.2" }, diff --git a/yarn.lock b/yarn.lock index 4a6e1ddc..3209ed71 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4667,56 +4667,6 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/cli@npm:0.9.22": - version: 0.9.22 - resolution: "@polkadot-api/cli@npm:0.9.22" - dependencies: - "@commander-js/extra-typings": "npm:^12.1.0" - "@polkadot-api/codegen": "npm:0.12.11" - "@polkadot-api/ink-contracts": "npm:0.2.3" - "@polkadot-api/json-rpc-provider": "npm:0.0.4" - "@polkadot-api/known-chains": "npm:0.5.8" - "@polkadot-api/metadata-compatibility": "npm:0.1.13" - "@polkadot-api/observable-client": "npm:0.6.4" - "@polkadot-api/polkadot-sdk-compat": "npm:2.3.1" - "@polkadot-api/sm-provider": "npm:0.1.7" - "@polkadot-api/smoldot": "npm:0.3.8" - "@polkadot-api/substrate-bindings": "npm:0.10.0" - "@polkadot-api/substrate-client": "npm:0.3.0" - "@polkadot-api/utils": "npm:0.1.2" - "@polkadot-api/wasm-executor": "npm:^0.1.2" - "@polkadot-api/ws-provider": "npm:0.3.6" - "@types/node": "npm:^22.9.1" - commander: "npm:^12.1.0" - execa: "npm:^9.5.1" - fs.promises.exists: "npm:^1.1.4" - ora: "npm:^8.1.1" - read-pkg: "npm:^9.0.1" - rxjs: "npm:^7.8.1" - tsc-prog: "npm:^2.3.0" - tsup: "npm:^8.3.5" - typescript: "npm:^5.6.3" - write-package: "npm:^7.1.0" - bin: - papi: dist/main.js - polkadot-api: dist/main.js - checksum: 10c0/9bd5398b2abc99767ec1bf2762491b7db68327431da65690ac3e9329b6fcdac4d15206826cba7663e90d925dcc75cf7ee9641a5486e4103d9a00bbe3466f239e - languageName: node - linkType: hard - -"@polkadot-api/codegen@npm:0.12.11": - version: 0.12.11 - resolution: "@polkadot-api/codegen@npm:0.12.11" - dependencies: - "@polkadot-api/ink-contracts": "npm:0.2.3" - "@polkadot-api/metadata-builders": "npm:0.9.3" - "@polkadot-api/metadata-compatibility": "npm:0.1.13" - "@polkadot-api/substrate-bindings": "npm:0.10.0" - "@polkadot-api/utils": "npm:0.1.2" - checksum: 10c0/89cdd068711fb8c952a0b215c3d1359518f1aa254a67635b68af18b62c8119b71981b85e534b949afb1e907688c5b89fbfdd693e320cd1ac8382c7962f448a1a - languageName: node - linkType: hard - "@polkadot-api/codegen@npm:0.12.12": version: 0.12.12 resolution: "@polkadot-api/codegen@npm:0.12.12" @@ -4746,18 +4696,6 @@ __metadata: languageName: node linkType: soft -"@polkadot-api/ink-contracts@npm:0.2.3": - version: 0.2.3 - resolution: "@polkadot-api/ink-contracts@npm:0.2.3" - dependencies: - "@polkadot-api/metadata-builders": "npm:0.9.3" - "@polkadot-api/substrate-bindings": "npm:0.10.0" - "@polkadot-api/utils": "npm:0.1.2" - scale-ts: "npm:^1.6.1" - checksum: 10c0/86ad6bbca8baddde07381ea47f45e698c994a06f72b12aaafe572fa79b366c3e10b57656ca5753a7b57d6e881aabfd1bade8b37aad88605506d4ab8b84bfff72 - languageName: node - linkType: hard - "@polkadot-api/ink-contracts@npm:0.2.4": version: 0.2.4 resolution: "@polkadot-api/ink-contracts@npm:0.2.4" @@ -4784,13 +4722,6 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/known-chains@npm:0.5.8": - version: 0.5.8 - resolution: "@polkadot-api/known-chains@npm:0.5.8" - checksum: 10c0/2f0dfd5f610927f00f41245113952c581cfa2b3fc0e1e29578ac52ca87b44a24aad5d10b76e3a79022cd6da46bb02048c854537004aee6da3df1a61bd53e0c72 - languageName: node - linkType: hard - "@polkadot-api/known-chains@npm:0.6.0": version: 0.6.0 resolution: "@polkadot-api/known-chains@npm:0.6.0" @@ -4853,16 +4784,6 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/metadata-compatibility@npm:0.1.13": - version: 0.1.13 - resolution: "@polkadot-api/metadata-compatibility@npm:0.1.13" - dependencies: - "@polkadot-api/metadata-builders": "npm:0.9.3" - "@polkadot-api/substrate-bindings": "npm:0.10.0" - checksum: 10c0/86daed1a450e1e33d55936482b054773cd4cf957c8c51bc53ba1251921210ae97bcf925c66c4ed5b5fa3e3d77023afdefea2509c77764636f6cbd8677cec9cd0 - languageName: node - linkType: hard - "@polkadot-api/metadata-compatibility@npm:0.1.14": version: 0.1.14 resolution: "@polkadot-api/metadata-compatibility@npm:0.1.14" @@ -4873,20 +4794,6 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/observable-client@npm:0.6.4": - version: 0.6.4 - resolution: "@polkadot-api/observable-client@npm:0.6.4" - dependencies: - "@polkadot-api/metadata-builders": "npm:0.9.3" - "@polkadot-api/substrate-bindings": "npm:0.10.0" - "@polkadot-api/utils": "npm:0.1.2" - peerDependencies: - "@polkadot-api/substrate-client": 0.3.0 - rxjs: ">=7.8.0" - checksum: 10c0/ecc9f75313f931c3bcac39c82a340ac9126d3ceaed75ee6ed7c8de5ae6d3abbeac9fd3087df1831e9d09cc3cad9e7d5fe8fc818a9a3566ac513eb41cd8f92b2f - languageName: node - linkType: hard - "@polkadot-api/observable-client@npm:0.7.0": version: 0.7.0 resolution: "@polkadot-api/observable-client@npm:0.7.0" @@ -4901,19 +4808,6 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/pjs-signer@npm:0.6.2": - version: 0.6.2 - resolution: "@polkadot-api/pjs-signer@npm:0.6.2" - dependencies: - "@polkadot-api/metadata-builders": "npm:0.9.3" - "@polkadot-api/polkadot-signer": "npm:0.1.6" - "@polkadot-api/signers-common": "npm:0.1.3" - "@polkadot-api/substrate-bindings": "npm:0.10.0" - "@polkadot-api/utils": "npm:0.1.2" - checksum: 10c0/a005da0a7411d52b354f4d882ec32e0e1281d9355bccc2e42c8e53b70ac8d3394cc0d75af8ff47b7616bb0d9e4b1a2e01adda3aa56f88c3bd19c51099d4815b7 - languageName: node - linkType: hard - "@polkadot-api/pjs-signer@npm:0.6.3": version: 0.6.3 resolution: "@polkadot-api/pjs-signer@npm:0.6.3" @@ -4943,19 +4837,6 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/signer@npm:0.1.12": - version: 0.1.12 - resolution: "@polkadot-api/signer@npm:0.1.12" - dependencies: - "@noble/hashes": "npm:^1.5.0" - "@polkadot-api/polkadot-signer": "npm:0.1.6" - "@polkadot-api/signers-common": "npm:0.1.3" - "@polkadot-api/substrate-bindings": "npm:0.10.0" - "@polkadot-api/utils": "npm:0.1.2" - checksum: 10c0/9212d46a2db107b33934b024d93017859df3dfc28b7b73a0c8523c6a4b944d4b325107e49c13bfafc9dbb99fd3925d0c2df1aa134b231ccf5a4db48f678c9adf - languageName: node - linkType: hard - "@polkadot-api/signer@npm:0.1.13": version: 0.1.13 resolution: "@polkadot-api/signer@npm:0.1.13" @@ -5084,11 +4965,10 @@ __metadata: "@tsconfig/recommended": "npm:^1.0.8" "@tsconfig/strictest": "npm:^2.0.5" eslint: "npm:^9.16.0" - polkadot-api: "npm:^1.7.8" typescript: "npm:^5.7.2" vitest: "npm:^2.1.8" peerDependencies: - polkadot-api: 1.x + polkadot-api: ^1.8.0 languageName: unknown linkType: soft @@ -5148,7 +5028,7 @@ __metadata: date-fns: "npm:^4.1.0" eslint: "npm:^9.16.0" jotai-devtools: "npm:^0.10.1" - polkadot-api: "npm:^1.7.8" + polkadot-api: "npm:^1.8.0" react: "npm:^19.0.0" react-dom: "npm:^19.0.0" react-error-boundary: "npm:^4.1.2" @@ -5169,7 +5049,7 @@ __metadata: "@tsconfig/strictest": "npm:^2.0.5" "@vitejs/plugin-vue": "npm:^5.2.1" eslint: "npm:^9.16.0" - polkadot-api: "npm:^1.7.8" + polkadot-api: "npm:^1.8.0" typescript: "npm:^5.7.2" vite: "npm:^6.0.3" vue: "npm:^3.5.12" @@ -5187,7 +5067,7 @@ __metadata: "@types/react": "npm:^19.0.1" eslint: "npm:^9.16.0" jotai: "npm:^2.10.3" - polkadot-api: "npm:^1.7.8" + polkadot-api: "npm:^1.8.0" react: "npm:^19.0.0" typescript: "npm:^5.7.2" peerDependencies: @@ -6502,15 +6382,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^22.9.1": - version: 22.10.1 - resolution: "@types/node@npm:22.10.1" - dependencies: - undici-types: "npm:~6.20.0" - checksum: 10c0/0fbb6d29fa35d807f0223a4db709c598ac08d66820240a2cd6a8a69b8f0bc921d65b339d850a666b43b4e779f967e6ed6cf6f0fca3575e08241e6b900364c234 - languageName: node - linkType: hard - "@types/normalize-package-data@npm:^2.4.3": version: 2.4.4 resolution: "@types/normalize-package-data@npm:2.4.4" @@ -11053,26 +10924,6 @@ __metadata: languageName: node linkType: hard -"execa@npm:^9.5.1": - version: 9.5.1 - resolution: "execa@npm:9.5.1" - dependencies: - "@sindresorhus/merge-streams": "npm:^4.0.0" - cross-spawn: "npm:^7.0.3" - figures: "npm:^6.1.0" - get-stream: "npm:^9.0.0" - human-signals: "npm:^8.0.0" - is-plain-obj: "npm:^4.1.0" - is-stream: "npm:^4.0.1" - npm-run-path: "npm:^6.0.0" - pretty-ms: "npm:^9.0.0" - signal-exit: "npm:^4.1.0" - strip-final-newline: "npm:^4.0.0" - yoctocolors: "npm:^2.0.0" - checksum: 10c0/1a628d535c5a088f9e17a735bb3143efc4198095392b319ba877b2975d5c3c57724536dccb6f68f1cd9b3af331c5a9e8c1aeb338d52ab316b1e008ff453374a7 - languageName: node - linkType: hard - "execa@npm:^9.5.2": version: 9.5.2 resolution: "execa@npm:9.5.2" @@ -16231,34 +16082,35 @@ __metadata: languageName: node linkType: hard -"polkadot-api@npm:^1.7.8": - version: 1.7.8 - resolution: "polkadot-api@npm:1.7.8" +"polkadot-api@npm:^1.8.0": + version: 1.8.1 + resolution: "polkadot-api@npm:1.8.1" dependencies: - "@polkadot-api/cli": "npm:0.9.22" - "@polkadot-api/ink-contracts": "npm:0.2.3" + "@polkadot-api/cli": "npm:0.10.0" + "@polkadot-api/ink-contracts": "npm:0.2.4" "@polkadot-api/json-rpc-provider": "npm:0.0.4" - "@polkadot-api/known-chains": "npm:0.5.8" + "@polkadot-api/known-chains": "npm:0.6.0" "@polkadot-api/logs-provider": "npm:0.0.6" - "@polkadot-api/metadata-builders": "npm:0.9.3" - "@polkadot-api/metadata-compatibility": "npm:0.1.13" - "@polkadot-api/observable-client": "npm:0.6.4" - "@polkadot-api/pjs-signer": "npm:0.6.2" + "@polkadot-api/metadata-builders": "npm:0.10.0" + "@polkadot-api/metadata-compatibility": "npm:0.1.14" + "@polkadot-api/observable-client": "npm:0.7.0" + "@polkadot-api/pjs-signer": "npm:0.6.3" "@polkadot-api/polkadot-sdk-compat": "npm:2.3.1" "@polkadot-api/polkadot-signer": "npm:0.1.6" - "@polkadot-api/signer": "npm:0.1.12" + "@polkadot-api/signer": "npm:0.1.13" "@polkadot-api/sm-provider": "npm:0.1.7" "@polkadot-api/smoldot": "npm:0.3.8" - "@polkadot-api/substrate-bindings": "npm:0.10.0" + "@polkadot-api/substrate-bindings": "npm:0.11.0" "@polkadot-api/substrate-client": "npm:0.3.0" "@polkadot-api/utils": "npm:0.1.2" "@polkadot-api/ws-provider": "npm:0.3.6" + "@rx-state/core": "npm:^0.1.4" peerDependencies: rxjs: ">=7.8.0" bin: papi: bin/cli.mjs polkadot-api: bin/cli.mjs - checksum: 10c0/fcf249b55cd689da93e3cfa225c7cc04a7b9060c1ebefc05af456aedd4c694d0579b329e6ee52944f955286b9ec335d400168f291618649a00f699690b429bc9 + checksum: 10c0/ae6c34208c1a96267000bba8171b48b1d4145f5d8326ce135a87902727a86842a146bde98e3cf1bc1d17f60a632a60d50f1e164079e4d2aab0d89b0b457be818 languageName: node linkType: hard @@ -19694,16 +19546,6 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.6.3": - version: 5.6.3 - resolution: "typescript@npm:5.6.3" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/44f61d3fb15c35359bc60399cb8127c30bae554cd555b8e2b46d68fa79d680354b83320ad419ff1b81a0bdf324197b29affe6cc28988cd6a74d4ac60c94f9799 - languageName: node - linkType: hard - "typescript@npm:^5.7.2": version: 5.7.2 resolution: "typescript@npm:5.7.2" @@ -19714,16 +19556,6 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A^5.6.3#optional!builtin": - version: 5.6.3 - resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/7c9d2e07c81226d60435939618c91ec2ff0b75fbfa106eec3430f0fcf93a584bc6c73176676f532d78c3594fe28a54b36eb40b3d75593071a7ec91301533ace7 - languageName: node - linkType: hard - "typescript@patch:typescript@npm%3A^5.7.2#optional!builtin": version: 5.7.2 resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin::version=5.7.2&hash=5786d5" From d19ae0c5fcd83cc999f132d9613eeedb16c5608e Mon Sep 17 00:00:00 2001 From: 71walceli <71walceli@71walceli.dev> Date: Sat, 11 Jan 2025 10:10:00 -0500 Subject: [PATCH 7/9] Reviewed deps --- packages/core/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/package.json b/packages/core/package.json index be172616..b5247441 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -45,10 +45,11 @@ "@tsconfig/recommended": "^1.0.8", "@tsconfig/strictest": "^2.0.5", "eslint": "^9.16.0", + "polkadot-api": "^1.8.0", "typescript": "^5.7.2", "vitest": "^2.1.8" }, "peerDependencies": { - "polkadot-api": "^1.8.0" + "polkadot-api": "^1.x" } } From b9c5db66c3d351d301987cc882ba3255fbacb9e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ti=E1=BA=BFn=20Nguy=E1=BB=85n=20Kh=E1=BA=AFc?= Date: Mon, 13 Jan 2025 15:32:13 +0700 Subject: [PATCH 8/9] Apply suggestions from code review --- .changeset/few-penguins-rest.md | 4 +--- package.json | 3 --- packages/core/package.json | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.changeset/few-penguins-rest.md b/.changeset/few-penguins-rest.md index 61493852..8c684a76 100644 --- a/.changeset/few-penguins-rest.md +++ b/.changeset/few-penguins-rest.md @@ -2,6 +2,4 @@ "@reactive-dot/core": minor --- -Added Paseo People relay chain - -`polkadot-api` v1.8.0 added the parachain. +Added "Paseo People" to light client well-known parachains. diff --git a/package.json b/package.json index e5e4c333..aeeeea86 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,5 @@ "husky": "^9.1.7", "nx": "^20.2.1", "prettier": "^3.4.2" - }, - "dependencies": { - "polkadot-api": "1.8.0" } } diff --git a/packages/core/package.json b/packages/core/package.json index b5247441..6dc6a761 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -50,6 +50,6 @@ "vitest": "^2.1.8" }, "peerDependencies": { - "polkadot-api": "^1.x" + "polkadot-api": "1.x" } } From 7230b5f5ee25de28e3eb3144e3d71ca7dce7986e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ti=E1=BA=BFn=20Nguy=E1=BB=85n=20Kh=E1=BA=AFc?= Date: Mon, 13 Jan 2025 15:34:23 +0700 Subject: [PATCH 9/9] build: update yarn.lock --- yarn.lock | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/yarn.lock b/yarn.lock index 3209ed71..a35829e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4965,10 +4965,11 @@ __metadata: "@tsconfig/recommended": "npm:^1.0.8" "@tsconfig/strictest": "npm:^2.0.5" eslint: "npm:^9.16.0" + polkadot-api: "npm:^1.8.0" typescript: "npm:^5.7.2" vitest: "npm:^2.1.8" peerDependencies: - polkadot-api: ^1.8.0 + polkadot-api: 1.x languageName: unknown linkType: soft @@ -16050,38 +16051,6 @@ __metadata: languageName: node linkType: hard -"polkadot-api@npm:1.8.0": - version: 1.8.0 - resolution: "polkadot-api@npm:1.8.0" - dependencies: - "@polkadot-api/cli": "npm:0.10.0" - "@polkadot-api/ink-contracts": "npm:0.2.4" - "@polkadot-api/json-rpc-provider": "npm:0.0.4" - "@polkadot-api/known-chains": "npm:0.6.0" - "@polkadot-api/logs-provider": "npm:0.0.6" - "@polkadot-api/metadata-builders": "npm:0.10.0" - "@polkadot-api/metadata-compatibility": "npm:0.1.14" - "@polkadot-api/observable-client": "npm:0.7.0" - "@polkadot-api/pjs-signer": "npm:0.6.3" - "@polkadot-api/polkadot-sdk-compat": "npm:2.3.1" - "@polkadot-api/polkadot-signer": "npm:0.1.6" - "@polkadot-api/signer": "npm:0.1.13" - "@polkadot-api/sm-provider": "npm:0.1.7" - "@polkadot-api/smoldot": "npm:0.3.8" - "@polkadot-api/substrate-bindings": "npm:0.11.0" - "@polkadot-api/substrate-client": "npm:0.3.0" - "@polkadot-api/utils": "npm:0.1.2" - "@polkadot-api/ws-provider": "npm:0.3.6" - "@rx-state/core": "npm:^0.1.4" - peerDependencies: - rxjs: ">=7.8.0" - bin: - papi: bin/cli.mjs - polkadot-api: bin/cli.mjs - checksum: 10c0/3a77289fe5eaecd33fe5a335a1d289c474b182c178467fdc3e222cea477d5d2e9f54eb8fe86742a1a9a63ab910abbc0f2b88babc858707f8b908c353b8dd99a6 - languageName: node - linkType: hard - "polkadot-api@npm:^1.8.0": version: 1.8.1 resolution: "polkadot-api@npm:1.8.1" @@ -17311,7 +17280,6 @@ __metadata: "@trivago/prettier-plugin-sort-imports": "npm:^5.2.0" husky: "npm:^9.1.7" nx: "npm:^20.2.1" - polkadot-api: "npm:1.8.0" prettier: "npm:^3.4.2" languageName: unknown linkType: soft