chore: update deps (#117)
This commit is contained in:
@@ -19,6 +19,6 @@
|
||||
"types": "./dist/index.d.ts",
|
||||
"sideEffects": false,
|
||||
"peerDependencies": {
|
||||
"polkadot-api": ">=1.11.2"
|
||||
"polkadot-api": ">=1.21.0"
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1,12 +1,15 @@
|
||||
{
|
||||
"version": 0,
|
||||
"descriptorPath": ".papi/descriptors",
|
||||
"options": {
|
||||
"whitelist": ".papi/whitelist.ts"
|
||||
},
|
||||
"entries": {
|
||||
"polkadot_people": {
|
||||
"chain": "polkadot_people",
|
||||
"metadata": ".papi/metadata/polkadot_people.scale",
|
||||
"genesis": "0x67fa177a097bfa18f77ea95ab56e9bcdfeb0e5b8a40e46298bb93e16b6fc5008",
|
||||
"codeHash": "0x5ad90a21b395a16a6d720983bb9fdd096577710beea33c7882bb61a7518dbb79"
|
||||
"codeHash": "0x19d152fef983bf5be332cd07dc6f5c7291d842a4e2d5501eca02a86c10df211d"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+34
-29
@@ -8,23 +8,23 @@
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview",
|
||||
"postinstall": "papi --whitelist whitelist.ts"
|
||||
"postinstall": "papi"
|
||||
},
|
||||
"prettier": {
|
||||
"semi": false
|
||||
},
|
||||
"dependencies": {
|
||||
"@acala-network/chopsticks-core": "^1.2.4",
|
||||
"@ledgerhq/hw-transport-webusb": "^6.29.13",
|
||||
"@acala-network/chopsticks-core": "^1.2.5",
|
||||
"@ledgerhq/hw-transport-webusb": "^6.30.0",
|
||||
"@monaco-editor/react": "^4.7.0",
|
||||
"@polkadot-api/descriptors": "file:.papi/descriptors",
|
||||
"@polkadot-api/json-rpc-provider-proxy": "^0.2.7",
|
||||
"@polkadot-api/metadata-builders": "^0.13.7",
|
||||
"@polkadot-api/observable-client": "^0.16.3",
|
||||
"@polkadot-api/react-builder": "0.3.9",
|
||||
"@polkadot-api/json-rpc-provider-proxy": "^0.2.8",
|
||||
"@polkadot-api/metadata-builders": "^0.13.9",
|
||||
"@polkadot-api/observable-client": "^0.17.3",
|
||||
"@polkadot-api/react-builder": "0.3.11",
|
||||
"@polkadot-api/react-components": "^0.4.1",
|
||||
"@polkadot-api/substrate-bindings": "^0.16.5",
|
||||
"@polkadot-api/tx-utils": "^0.1.8",
|
||||
"@polkadot-api/substrate-bindings": "^0.17.0",
|
||||
"@polkadot-api/tx-utils": "^0.2.2",
|
||||
"@polkadot-api/utils": "^0.2.0",
|
||||
"@polkahub/ui-components": "0.3.2",
|
||||
"@radix-ui/react-accordion": "^1.2.12",
|
||||
@@ -44,15 +44,15 @@
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"idb-keyval": "^6.2.2",
|
||||
"lucide-react": "^0.554.0",
|
||||
"polkadot-api": "^1.20.7",
|
||||
"lucide-react": "^0.562.0",
|
||||
"polkadot-api": "^1.23.3",
|
||||
"polkahub": "0.4.0",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"react": "^19.2.3",
|
||||
"react-dom": "^19.2.3",
|
||||
"react-portal": "^4.3.0",
|
||||
"react-router-dom": "^7.9.6",
|
||||
"react-router-dom": "^7.12.0",
|
||||
"react-svg": "^16.3.0",
|
||||
"react-virtuoso": "^4.14.1",
|
||||
"react-virtuoso": "^4.18.1",
|
||||
"react18-json-view": "^0.2.9",
|
||||
"rxjs": "^7.8.2",
|
||||
"save-as": "^0.1.8",
|
||||
@@ -61,27 +61,32 @@
|
||||
"uuid": "^13.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
"@types/node": "^24.10.1",
|
||||
"@types/react": "^19.2.6",
|
||||
"@eslint/js": "^9.39.2",
|
||||
"@tailwindcss/vite": "^4.1.18",
|
||||
"@types/node": "^25.0.10",
|
||||
"@types/react": "^19.2.9",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@types/react-portal": "^4.0.7",
|
||||
"@vitejs/plugin-react": "^5.1.1",
|
||||
"eslint": "^9.39.1",
|
||||
"@vitejs/plugin-react": "^5.1.2",
|
||||
"eslint": "^9.39.2",
|
||||
"eslint-plugin-react-hooks": "7.0.1",
|
||||
"eslint-plugin-react-refresh": "^0.4.24",
|
||||
"globals": "^16.5.0",
|
||||
"prettier": "^3.6.2",
|
||||
"tailwindcss": "^4.1.17",
|
||||
"eslint-plugin-react-refresh": "^0.4.26",
|
||||
"globals": "^17.0.0",
|
||||
"prettier": "^3.8.1",
|
||||
"tailwindcss": "^4.1.18",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.47.0",
|
||||
"vite": "^7.2.4"
|
||||
"typescript-eslint": "^8.53.1",
|
||||
"vite": "^7.3.1"
|
||||
},
|
||||
"packageManager": "pnpm@10.18.3+sha512.bbd16e6d7286fd7e01f6b3c0b3c932cda2965c06a908328f74663f10a9aea51f1129eea615134bf992831b009eabe167ecb7008b597f40ff9bc75946aadfb08d",
|
||||
"packageManager": "pnpm@10.28.1+sha512.7d7dbbca9e99447b7c3bf7a73286afaaf6be99251eb9498baefa7d406892f67b879adb3a1d7e687fc4ccc1a388c7175fbaae567a26ab44d1067b54fcb0d6a316",
|
||||
"pnpm": {
|
||||
"patchedDependencies": {
|
||||
"react18-json-view": "patches/react18-json-view.patch"
|
||||
}
|
||||
},
|
||||
"onlyBuiltDependencies": [
|
||||
"@reown/appkit",
|
||||
"bufferutil",
|
||||
"utf-8-validate"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+2699
-2342
File diff suppressed because it is too large
Load Diff
@@ -32,7 +32,8 @@ export const CustomSignedExt: FC<{ onClose: () => void }> = ({ onClose }) => {
|
||||
</div>
|
||||
<Subscribe source$={extSub$}>
|
||||
<ul className="space-y-2">
|
||||
{metadata.extrinsic.signedExtensions.map((ext) => (
|
||||
{/* TODO: adapt for different extrinsic versions */}
|
||||
{metadata.extrinsic.signedExtensions[0].map((ext) => (
|
||||
<ExtensionInput key={ext.identifier} {...ext} />
|
||||
))}
|
||||
</ul>
|
||||
@@ -94,7 +95,10 @@ export const customSignedExtensions$ = combineLatest([
|
||||
additionalSigned?: Uint8Array
|
||||
},
|
||||
] => {
|
||||
const ext = metadata.extrinsic.signedExtensions.find(
|
||||
{
|
||||
/* TODO: adapt for different extrinsic versions */
|
||||
}
|
||||
const ext = metadata.extrinsic.signedExtensions[0].find(
|
||||
(v) => v.identifier === id,
|
||||
)
|
||||
if (!ext) return [id, null!]
|
||||
@@ -142,7 +146,8 @@ const extensionValue$ = state((id: string) =>
|
||||
const extSub$ = merge(
|
||||
combineKeys(
|
||||
metadata$.pipe(
|
||||
map((v) => v.extrinsic.signedExtensions.map((ext) => ext.identifier)),
|
||||
// TODO: adapt for different extrinsic versions
|
||||
map((v) => v.extrinsic.signedExtensions[0].map((ext) => ext.identifier)),
|
||||
),
|
||||
extensionValue$,
|
||||
),
|
||||
|
||||
@@ -39,14 +39,17 @@ export const Extrinsic: FC<{ extrinsic: ExtrinsicDescriptor }> = ({
|
||||
)}
|
||||
<div>
|
||||
<h4>Signed Extensions</h4>
|
||||
<SignedExtensions signedExtensions={extrinsic.signedExtensions} />
|
||||
{/* TODO: adapt for different extrinsic versions */}
|
||||
<SignedExtensions signedExtensions={extrinsic.signedExtensions[0]} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
type SignedExtension =
|
||||
ExtrinsicDescriptor["signedExtensions"] extends Array<infer R> ? R : never
|
||||
ExtrinsicDescriptor["signedExtensions"][number] extends Array<infer R>
|
||||
? R
|
||||
: never
|
||||
const SignedExtensions: FC<{ signedExtensions: Array<SignedExtension> }> = ({
|
||||
signedExtensions,
|
||||
}) => {
|
||||
|
||||
Reference in New Issue
Block a user