Skip to content

Commit

Permalink
papi upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantcornholio committed Sep 11, 2024
1 parent 1ce70c3 commit 470f33c
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 103 deletions.
6 changes: 3 additions & 3 deletions .papi/descriptors/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"version": "0.1.0-autogenerated.13128332760513449832",
"version": "0.1.0-autogenerated.13690154651401807995",
"name": "@polkadot-api/descriptors",
"files": [
"dist"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"module": "./dist/index.mjs",
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"default": "./dist/index.js"
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"express": "4.19.2",
"matrix-js-sdk": "^26.1.0",
"pg": "^8.11.2",
"polkadot-api": "^1.0.1",
"polkadot-api": "^1.2.1",
"prom-client": "^14.2.0",
"reflect-metadata": "^0.1.13",
"request": "^2.88.2",
Expand Down
10 changes: 5 additions & 5 deletions src/papi/chains/paseo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
XcmV3MultiassetAssetId,
XcmV3MultiassetFungibility,
XcmV3WeightLimit,
XcmVersionedMultiAssets,
XcmVersionedMultiLocation,
XcmVersionedAssets,
XcmVersionedLocation,
} from "@polkadot-api/descriptors";
import { NetworkApi, NetworkData } from "#src/papi/chains/index";
import { signer } from "#src/papi/signer";
Expand Down Expand Up @@ -40,11 +40,11 @@ export const networkApi: NetworkApi = {
const api = client.getTypedApi(paseo);

return await api.tx.XcmPallet.limited_teleport_assets({
dest: XcmVersionedMultiLocation.V3({
dest: XcmVersionedLocation.V3({
parents: 0,
interior: XcmV3Junctions.X1(XcmV3Junction.Parachain(parachain_id)),
}),
beneficiary: XcmVersionedMultiLocation.V3({
beneficiary: XcmVersionedLocation.V3({
parents: 0,
interior: XcmV3Junctions.X1(
XcmV3Junction.AccountId32({
Expand All @@ -53,7 +53,7 @@ export const networkApi: NetworkApi = {
}),
),
}),
assets: XcmVersionedMultiAssets.V3([
assets: XcmVersionedAssets.V3([
{
fun: XcmV3MultiassetFungibility.Fungible(dripAmount),
id: XcmV3MultiassetAssetId.Concrete({ interior: XcmV3Junctions.Here(), parents: 0 }),
Expand Down
10 changes: 5 additions & 5 deletions src/papi/chains/versi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
XcmV3MultiassetAssetId,
XcmV3MultiassetFungibility,
XcmV3WeightLimit,
XcmVersionedMultiAssets,
XcmVersionedMultiLocation,
XcmVersionedAssets,
XcmVersionedLocation,
} from "@polkadot-api/descriptors";
import { parityWhitelist } from "#src/papi/chains/common";
import { NetworkApi, NetworkData } from "#src/papi/chains/index";
Expand All @@ -31,11 +31,11 @@ const networkApi: NetworkApi = {
const api = client.getTypedApi(versi);

return await api.tx.XcmPallet.limited_teleport_assets({
dest: XcmVersionedMultiLocation.V3({
dest: XcmVersionedLocation.V3({
parents: 0,
interior: XcmV3Junctions.X1(XcmV3Junction.Parachain(parachain_id)),
}),
beneficiary: XcmVersionedMultiLocation.V3({
beneficiary: XcmVersionedLocation.V3({
parents: 0,
interior: XcmV3Junctions.X1(
XcmV3Junction.AccountId32({
Expand All @@ -44,7 +44,7 @@ const networkApi: NetworkApi = {
}),
),
}),
assets: XcmVersionedMultiAssets.V3([
assets: XcmVersionedAssets.V3([
{
fun: XcmV3MultiassetFungibility.Fungible(dripAmount),
id: XcmV3MultiassetAssetId.Concrete({ interior: XcmV3Junctions.Here(), parents: 0 }),
Expand Down
180 changes: 91 additions & 89 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1403,22 +1403,20 @@ __metadata:
languageName: node
linkType: hard

"@polkadot-api/cli@npm:0.7.5":
version: 0.7.5
resolution: "@polkadot-api/cli@npm:0.7.5"
"@polkadot-api/cli@npm:0.8.2":
version: 0.8.2
resolution: "@polkadot-api/cli@npm:0.8.2"
dependencies:
"@commander-js/extra-typings": "npm:^12.1.0"
"@polkadot-api/codegen": "npm:0.8.0"
"@polkadot-api/codegen": "npm:0.11.0"
"@polkadot-api/json-rpc-provider": "npm:0.0.3"
"@polkadot-api/json-rpc-provider-proxy": "npm:0.2.0"
"@polkadot-api/known-chains": "npm:0.4.0"
"@polkadot-api/metadata-builders": "npm:0.5.0"
"@polkadot-api/metadata-compatibility": "npm:0.1.2"
"@polkadot-api/observable-client": "npm:0.5.1"
"@polkadot-api/polkadot-sdk-compat": "npm:2.0.0"
"@polkadot-api/known-chains": "npm:0.5.1"
"@polkadot-api/metadata-compatibility": "npm:0.1.5"
"@polkadot-api/observable-client": "npm:0.5.3"
"@polkadot-api/polkadot-sdk-compat": "npm:2.1.0"
"@polkadot-api/sm-provider": "npm:0.1.1"
"@polkadot-api/smoldot": "npm:0.3.2"
"@polkadot-api/substrate-bindings": "npm:0.6.3"
"@polkadot-api/substrate-bindings": "npm:0.7.0"
"@polkadot-api/substrate-client": "npm:0.2.1"
"@polkadot-api/utils": "npm:0.1.1"
"@polkadot-api/wasm-executor": "npm:^0.1.1"
Expand All @@ -1430,28 +1428,26 @@ __metadata:
ora: "npm:^8.0.1"
read-pkg: "npm:^9.0.1"
rxjs: "npm:^7.8.1"
scale-ts: "npm:^1.6.0"
tsc-prog: "npm:^2.3.0"
tsup: "npm:^8.2.4"
typescript: "npm:^5.5.4"
write-package: "npm:^7.1.0"
ws: "npm:^8.18.0"
bin:
papi: dist/main.js
polkadot-api: dist/main.js
checksum: 10c0/40f282390fd756fdd7e75b7862df5523b7c35821df1128cee7a297fce215c7055d2b845e4b4958e2e9890235a8b2674ef2512b1d7e3caea05efafe3dcd95119c
checksum: 10c0/c1b27258eff148d4ae58a06d99dc5ffe6ec147c388d597e8837a4e4cee6d0103e924336ef3e2371997790fcdb8dd1bc7cb453c256d895a2febc0df7496e02801
languageName: node
linkType: hard

"@polkadot-api/codegen@npm:0.8.0":
version: 0.8.0
resolution: "@polkadot-api/codegen@npm:0.8.0"
"@polkadot-api/codegen@npm:0.11.0":
version: 0.11.0
resolution: "@polkadot-api/codegen@npm:0.11.0"
dependencies:
"@polkadot-api/metadata-builders": "npm:0.5.0"
"@polkadot-api/metadata-compatibility": "npm:0.1.2"
"@polkadot-api/substrate-bindings": "npm:0.6.3"
"@polkadot-api/metadata-builders": "npm:0.7.0"
"@polkadot-api/metadata-compatibility": "npm:0.1.5"
"@polkadot-api/substrate-bindings": "npm:0.7.0"
"@polkadot-api/utils": "npm:0.1.1"
checksum: 10c0/3955073e75a709913e74efff583cfd9d478d75955cea46435b01bf58bc6d6cba6d60875546fb15d8bdc597869a6d8e96952f6178ed5a66f4f431486a79c3a751
checksum: 10c0/7c06d41336bea99ceae83bfdb1418572ec4b5c70ff68d2d7489c7d235e43bf07e7297d0351bcc7a37e09355d0ea46722c8bfcd1f813264cef770b7763de0267b
languageName: node
linkType: hard

Expand Down Expand Up @@ -1484,98 +1480,92 @@ __metadata:
languageName: node
linkType: hard

"@polkadot-api/known-chains@npm:0.4.0":
version: 0.4.0
resolution: "@polkadot-api/known-chains@npm:0.4.0"
checksum: 10c0/df6fc9bbb2f9cedcd636dc7d89052f3823dcd90348d3b2e11e1f5a4cdec9187cd74c0e50bc96f731c760f1d6b760b88396f0b8d569b703ef1d3e0212c3d34806
"@polkadot-api/known-chains@npm:0.5.1":
version: 0.5.1
resolution: "@polkadot-api/known-chains@npm:0.5.1"
checksum: 10c0/c44c173b84fb7a61e42ae9735b919c9d331089907d2a0efb16453f332b80ae00bd53ea1235593ffafe248edb5af9aa0d0f18b3e3b8f79c4a25cb4fb2fc950a32
languageName: node
linkType: hard

"@polkadot-api/logs-provider@npm:0.0.3":
version: 0.0.3
resolution: "@polkadot-api/logs-provider@npm:0.0.3"
"@polkadot-api/logs-provider@npm:0.0.5":
version: 0.0.5
resolution: "@polkadot-api/logs-provider@npm:0.0.5"
dependencies:
"@polkadot-api/json-rpc-provider": "npm:0.0.2"
checksum: 10c0/d40843b41077fa1045881d6c36424f8896b87e3f3661d85e631761b9a377b4d11b60c77613a2ea4bc047e692ea2aaf2674409b6c30950821f863b84b6395fd8f
"@polkadot-api/json-rpc-provider": "npm:0.0.3"
checksum: 10c0/fc4cd29ae48b8be5b9fc40fd7c0b02a6a9eb66c8c6db78fb9de4525aab2f9a479331d1c06aa9a8b3fe8cf90b0634321fe44895e5ebbdbbafe415488a1e5792b9
languageName: node
linkType: hard

"@polkadot-api/metadata-builders@npm:0.5.0":
version: 0.5.0
resolution: "@polkadot-api/metadata-builders@npm:0.5.0"
"@polkadot-api/metadata-builders@npm:0.7.0":
version: 0.7.0
resolution: "@polkadot-api/metadata-builders@npm:0.7.0"
dependencies:
"@polkadot-api/substrate-bindings": "npm:0.6.3"
"@polkadot-api/substrate-bindings": "npm:0.7.0"
"@polkadot-api/utils": "npm:0.1.1"
checksum: 10c0/6eecbd3826d3573a7dc6bc4b4bced63196fd482da4fd25402085d121bc262aa538909bd40aa14288a2f2f4cf2fc1930d00c29a7b931e2e34be6ef394afb951ef
checksum: 10c0/0aef58dccd134b6fb03dac4120b71ac40d317a2e12274147de053623590e2de46ac775095cddccabe99af972a7ffecc5d0a846fe14940af2c174eaa71362b4d4
languageName: node
linkType: hard

"@polkadot-api/metadata-compatibility@npm:0.1.2":
version: 0.1.2
resolution: "@polkadot-api/metadata-compatibility@npm:0.1.2"
"@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": "npm:0.5.0"
"@polkadot-api/substrate-bindings": "npm:0.6.3"
"@polkadot-api/utils": "npm:0.1.1"
checksum: 10c0/d7522788554d561ae3e71f177d9f32a7e53ff92c37132876551ed559c49fb6570fb36c4839a9dcd8ca32dbcfd357850e1aa68c986dea943cc978954f1ed0c087
"@polkadot-api/metadata-builders": "npm:0.7.0"
"@polkadot-api/substrate-bindings": "npm:0.7.0"
checksum: 10c0/ce63fe3c8d17c27f0c3332d4bddb917ffc518ccf1d62c23e2721f142a0a068f9972bc03ffdc6857074954be23a44657f0075cd83e07b26f4809d8b419787324c
languageName: node
linkType: hard

"@polkadot-api/observable-client@npm:0.5.1":
version: 0.5.1
resolution: "@polkadot-api/observable-client@npm:0.5.1"
"@polkadot-api/observable-client@npm:0.5.3":
version: 0.5.3
resolution: "@polkadot-api/observable-client@npm:0.5.3"
dependencies:
"@polkadot-api/metadata-builders": "npm:0.5.0"
"@polkadot-api/metadata-compatibility": "npm:0.1.2"
"@polkadot-api/substrate-bindings": "npm:0.6.3"
"@polkadot-api/metadata-builders": "npm:0.7.0"
"@polkadot-api/substrate-bindings": "npm:0.7.0"
"@polkadot-api/utils": "npm:0.1.1"
peerDependencies:
"@polkadot-api/substrate-client": 0.2.1
rxjs: ">=7.8.0"
checksum: 10c0/0dfc2d51567c23dd1e3ff94b7b2c762a3a609fdf536665ba510a40eb45d69b2c5bf73a8f1e82cdc51fcaa150efe95062cf3d77ab1c6803108b87ebfebb86b211
checksum: 10c0/417b0fb09cf7ce6c9873a57fda3417e733df492b42bab738b47e1c70e4735348655910fcef771a6367cf40b453d3271e8346e1ebbd3338fdef8f328dd0cd45cc
languageName: node
linkType: hard

"@polkadot-api/pjs-signer@npm:0.4.0":
version: 0.4.0
resolution: "@polkadot-api/pjs-signer@npm:0.4.0"
"@polkadot-api/pjs-signer@npm:0.4.2":
version: 0.4.2
resolution: "@polkadot-api/pjs-signer@npm:0.4.2"
dependencies:
"@polkadot-api/metadata-builders": "npm:0.5.0"
"@polkadot-api/polkadot-signer": "npm:0.1.3"
"@polkadot-api/substrate-bindings": "npm:0.6.3"
"@polkadot-api/metadata-builders": "npm:0.7.0"
"@polkadot-api/polkadot-signer": "npm:0.1.4"
"@polkadot-api/substrate-bindings": "npm:0.7.0"
"@polkadot-api/utils": "npm:0.1.1"
checksum: 10c0/5953dfa0ec51075730934981ad927139261c812ba5cb81d973a9680cca299f53e38d23a3a6545bc9dbd268c571cd10b88b4c8931652fa4b9f78d846347b85375
checksum: 10c0/1e59bdb2ed8db7e78c00c2494bfb4d0a25ad1568dcf43c3a17b1a728c600a54612857649cc837b97ac19073ebadb11f92b549608cc10b9bb2df8f64b64847c5c
languageName: node
linkType: hard

"@polkadot-api/polkadot-sdk-compat@npm:2.0.0":
version: 2.0.0
resolution: "@polkadot-api/polkadot-sdk-compat@npm:2.0.0"
"@polkadot-api/polkadot-sdk-compat@npm:2.1.0":
version: 2.1.0
resolution: "@polkadot-api/polkadot-sdk-compat@npm:2.1.0"
dependencies:
"@polkadot-api/json-rpc-provider": "npm:0.0.3"
checksum: 10c0/809a5ad8a0bed21d9af7b3d4f1ace6d0eab65b94cb15fb9ebabcdfee8a9475f8320b2766a07bdabf6a635184722537e3476712a5dffc5a1ad4232a8b723566a6
checksum: 10c0/a87529f83d6611f5c4e96acac462a961b196b6de01294c1a82546a1d1ca42c03240dfeef1e749337d496c26b1e0933b6c19856afdb71e80889cb720218ff5d8d
languageName: node
linkType: hard

"@polkadot-api/polkadot-signer@npm:0.1.3":
version: 0.1.3
resolution: "@polkadot-api/polkadot-signer@npm:0.1.3"
dependencies:
"@polkadot-api/metadata-builders": "npm:0.5.0"
"@polkadot-api/substrate-bindings": "npm:0.6.3"
"@polkadot-api/utils": "npm:0.1.1"
checksum: 10c0/1507d80b0c5c477aef709aa2a05956d4e605cdace62c9335037c1525ad3bb23bde8f2d2a168816426360adb3c299771d5ff17acb767d6d94ad063dcddf84e644
"@polkadot-api/polkadot-signer@npm:0.1.4":
version: 0.1.4
resolution: "@polkadot-api/polkadot-signer@npm:0.1.4"
checksum: 10c0/c454e972e436496f5ccf50b314d2ed2340f30b7f99ac5b17852376f2702a57817af0480fda9daf48f2aafefb854993704e9d6e20c408d45894aff59810660267
languageName: node
linkType: hard

"@polkadot-api/signer@npm:0.1.3":
version: 0.1.3
resolution: "@polkadot-api/signer@npm:0.1.3"
"@polkadot-api/signer@npm:0.1.4":
version: 0.1.4
resolution: "@polkadot-api/signer@npm:0.1.4"
dependencies:
"@polkadot-api/polkadot-signer": "npm:0.1.3"
"@polkadot-api/polkadot-signer": "npm:0.1.4"
"@polkadot-api/substrate-bindings": "npm:0.6.3"
"@polkadot-api/utils": "npm:0.1.1"
checksum: 10c0/fe392a4fb8b0094b373c061894948b1229e44cf1e0ceb30908d3703cd1cc1201e2bbf82890a2912f721cd15c5c74aa77fade7bb2f338529deed9a9463a5aa65e
checksum: 10c0/abbdca7c2176c48a7a7b0ec7c26526ad117381475f697634499918efe11b97760bc2ca4110efe2880a17efa86d47930fe9a06b7b208f47cb1295976d17b58703
languageName: node
linkType: hard

Expand Down Expand Up @@ -1613,6 +1603,18 @@ __metadata:
languageName: node
linkType: hard

"@polkadot-api/substrate-bindings@npm:0.7.0":
version: 0.7.0
resolution: "@polkadot-api/substrate-bindings@npm:0.7.0"
dependencies:
"@noble/hashes": "npm:^1.4.0"
"@polkadot-api/utils": "npm:0.1.1"
"@scure/base": "npm:^1.1.7"
scale-ts: "npm:^1.6.0"
checksum: 10c0/69e983692a9049af7b5bbfef21c7f3352c153ddd7695f26422b4ee9291320f8d39fad80d0f4b76bdc6ec977df50fc70e4197803ce6d9c0c12a263fa9667e68df
languageName: node
linkType: hard

"@polkadot-api/substrate-client@npm:0.2.1":
version: 0.2.1
resolution: "@polkadot-api/substrate-client@npm:0.2.1"
Expand Down Expand Up @@ -5084,7 +5086,7 @@ __metadata:
lint-staged: "npm:^12.3.8"
matrix-js-sdk: "npm:^26.1.0"
pg: "npm:^8.11.2"
polkadot-api: "npm:^1.0.1"
polkadot-api: "npm:^1.2.1"
prom-client: "npm:^14.2.0"
reflect-metadata: "npm:^0.1.13"
request: "npm:^2.88.2"
Expand Down Expand Up @@ -8334,24 +8336,24 @@ __metadata:
languageName: node
linkType: hard

"polkadot-api@npm:^1.0.1":
version: 1.0.1
resolution: "polkadot-api@npm:1.0.1"
"polkadot-api@npm:^1.2.1":
version: 1.2.1
resolution: "polkadot-api@npm:1.2.1"
dependencies:
"@polkadot-api/cli": "npm:0.7.5"
"@polkadot-api/cli": "npm:0.8.2"
"@polkadot-api/json-rpc-provider": "npm:0.0.3"
"@polkadot-api/known-chains": "npm:0.4.0"
"@polkadot-api/logs-provider": "npm:0.0.3"
"@polkadot-api/metadata-builders": "npm:0.5.0"
"@polkadot-api/metadata-compatibility": "npm:0.1.2"
"@polkadot-api/observable-client": "npm:0.5.1"
"@polkadot-api/pjs-signer": "npm:0.4.0"
"@polkadot-api/polkadot-sdk-compat": "npm:2.0.0"
"@polkadot-api/polkadot-signer": "npm:0.1.3"
"@polkadot-api/signer": "npm:0.1.3"
"@polkadot-api/known-chains": "npm:0.5.1"
"@polkadot-api/logs-provider": "npm:0.0.5"
"@polkadot-api/metadata-builders": "npm:0.7.0"
"@polkadot-api/metadata-compatibility": "npm:0.1.5"
"@polkadot-api/observable-client": "npm:0.5.3"
"@polkadot-api/pjs-signer": "npm:0.4.2"
"@polkadot-api/polkadot-sdk-compat": "npm:2.1.0"
"@polkadot-api/polkadot-signer": "npm:0.1.4"
"@polkadot-api/signer": "npm:0.1.4"
"@polkadot-api/sm-provider": "npm:0.1.1"
"@polkadot-api/smoldot": "npm:0.3.2"
"@polkadot-api/substrate-bindings": "npm:0.6.3"
"@polkadot-api/substrate-bindings": "npm:0.7.0"
"@polkadot-api/substrate-client": "npm:0.2.1"
"@polkadot-api/utils": "npm:0.1.1"
"@polkadot-api/ws-provider": "npm:0.2.0"
Expand All @@ -8360,7 +8362,7 @@ __metadata:
bin:
papi: bin/cli.mjs
polkadot-api: bin/cli.mjs
checksum: 10c0/bb2c80d654313a62887177f956624ccfc114b2b8e9ff991a2e50f3da4272aa9596cf6e73ec0be0547e0a9cee61cc366235bd1da66891b35de666cd7623f7e896
checksum: 10c0/30e80b1e6655eb6033221b36224e2b241298d912e41a02b40041ce7b294a351cc2d096aef41373a33a7b924bc735470c0986733e102203837c1c2ce182339d44
languageName: node
linkType: hard

Expand Down

0 comments on commit 470f33c

Please sign in to comment.