From 318e158d21be830b57daba79083c8d5fe3f281e1 Mon Sep 17 00:00:00 2001 From: Aurora Poppyseed Date: Mon, 15 Apr 2024 11:54:56 +0200 Subject: [PATCH 01/19] adding local env example --- .env.local.example | 6 +-- package.json | 2 +- pnpm-lock.yaml | 123 ++++++++++++++++++++++++--------------------- 3 files changed, 70 insertions(+), 61 deletions(-) diff --git a/.env.local.example b/.env.local.example index fd6faa75..aef937ec 100644 --- a/.env.local.example +++ b/.env.local.example @@ -19,14 +19,14 @@ NEXT_PUBLIC_URL=http://localhost:3000 ## → ABIs under `/packages/contracts/deployments/{contract}/metadata.json` (auto-generated on build) ## → Addresses for all chains under `/packages/contracts/deployments/{contract}/{chain}.ts` (auto-generated on deploy) ## NOTE: See dynamic contract imports under `src/deployments/deployments.ts` -NEXT_PUBLIC_DEFAULT_CHAIN=rococo-coretime -NEXT_PUBLIC_RELAY_CHAIN=rococo +NEXT_PUBLIC_DEFAULT_CHAIN=kusama-coretime +NEXT_PUBLIC_RELAY_CHAIN=kusama ## Multiple supported chain identifiers (Optional) ## IMPORTANT: It's mandatory to use double quotes in the array # NEXT_PUBLIC_SUPPORTED_CHAINS=["alephzero-testnet"] -NEXT_PUBLIC_SUPPORTED_CHAINS=[{"coretime": "development", "relay": "development"}, {"coretime": "polkadot", "relay": "polkadot"}, {"coretime": "kusama", "relay": "kusama"}, {"coretime": "rococo-coretime", "relay": "rococo"}] +NEXT_PUBLIC_SUPPORTED_CHAINS=[{"coretime": "development", "relay": "development"}, {"coretime": "westend-coretime", "relay": "westend"}, {"coretime": "polkadot", "relay": "polkadot"}, {"coretime": "kusama-coretime", "relay": "kusama"}, {"coretime": "rococo-coretime", "relay": "rococo"}] NEXT_PUBLIC_SUBSCAN_TOKEN= diff --git a/package.json b/package.json index 4d33d51d..f1e6185e 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "@polkadot/types": "^10.12.6", "@polkadot/util": "^12.6.2", "@polkadot/util-crypto": "^12.6.2", - "@poppyseed/lastic-sdk": "^0.2.5", + "@poppyseed/lastic-sdk": "^0.2.7", "@types/react": "18.2.25", "autoprefixer": "^10.4.19", "eslint-config-next": "^13.5.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ae12544e..2aed5c9b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -116,8 +116,8 @@ devDependencies: specifier: ^12.6.2 version: 12.6.2(@polkadot/util@12.6.2) '@poppyseed/lastic-sdk': - specifier: ^0.2.5 - version: 0.2.5(@nightlylabs/wallet-selector-polkadot@0.2.4)(@polkadot/api-contract@10.12.6)(@polkadot/api@10.12.6)(@polkadot/extension-inject@0.46.9)(@polkadot/types@10.12.6)(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2)(postcss@8.4.38)(react-dom@18.2.0)(react@18.2.0) + specifier: ^0.2.7 + version: 0.2.7(@nightlylabs/wallet-selector-polkadot@0.2.4)(@polkadot/api-contract@10.12.6)(@polkadot/api@10.12.6)(@polkadot/extension-inject@0.46.9)(@polkadot/types@10.12.6)(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2)(postcss@8.4.38)(react-dom@18.2.0)(react@18.2.0) '@types/react': specifier: 18.2.25 version: 18.2.25 @@ -4085,8 +4085,8 @@ packages: resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==} dev: false - /@poppyseed/lastic-sdk@0.2.5(@nightlylabs/wallet-selector-polkadot@0.2.4)(@polkadot/api-contract@10.12.6)(@polkadot/api@10.12.6)(@polkadot/extension-inject@0.46.9)(@polkadot/types@10.12.6)(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2)(postcss@8.4.38)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-BZvn+gFbhgpJoXjRL43NhNfwVyQgQs0of2+MnJmv5ID+OylMy9JgVCoefm1YnauTNjuuHSSEgxYvsAtWEtL6tA==} + /@poppyseed/lastic-sdk@0.2.7(@nightlylabs/wallet-selector-polkadot@0.2.4)(@polkadot/api-contract@10.12.6)(@polkadot/api@10.12.6)(@polkadot/extension-inject@0.46.9)(@polkadot/types@10.12.6)(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2)(postcss@8.4.38)(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-f/S9a28aJADb8UKEVKD0f5Cue94DDrRbonXLh8KrYimUwJAs6yaSzpEMgqJ/q9qNawh5ShIJGfRbY+5XKeeWMw==} engines: {node: '>=18', pnpm: '8'} peerDependencies: '@nightlylabs/wallet-selector-polkadot': '>=0.1.10' @@ -4226,120 +4226,128 @@ packages: resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} dev: false - /@rollup/rollup-android-arm-eabi@4.14.2: - resolution: {integrity: sha512-ahxSgCkAEk+P/AVO0vYr7DxOD3CwAQrT0Go9BJyGQ9Ef0QxVOfjDZMiF4Y2s3mLyPrjonchIMH/tbWHucJMykQ==} + /@rollup/rollup-android-arm-eabi@4.14.3: + resolution: {integrity: sha512-X9alQ3XM6I9IlSlmC8ddAvMSyG1WuHk5oUnXGw+yUBs3BFoTizmG1La/Gr8fVJvDWAq+zlYTZ9DBgrlKRVY06g==} cpu: [arm] os: [android] requiresBuild: true dev: true optional: true - /@rollup/rollup-android-arm64@4.14.2: - resolution: {integrity: sha512-lAarIdxZWbFSHFSDao9+I/F5jDaKyCqAPMq5HqnfpBw8dKDiCaaqM0lq5h1pQTLeIqueeay4PieGR5jGZMWprw==} + /@rollup/rollup-android-arm64@4.14.3: + resolution: {integrity: sha512-eQK5JIi+POhFpzk+LnjKIy4Ks+pwJ+NXmPxOCSvOKSNRPONzKuUvWE+P9JxGZVxrtzm6BAYMaL50FFuPe0oWMQ==} cpu: [arm64] os: [android] requiresBuild: true dev: true optional: true - /@rollup/rollup-darwin-arm64@4.14.2: - resolution: {integrity: sha512-SWsr8zEUk82KSqquIMgZEg2GE5mCSfr9sE/thDROkX6pb3QQWPp8Vw8zOq2GyxZ2t0XoSIUlvHDkrf5Gmf7x3Q==} + /@rollup/rollup-darwin-arm64@4.14.3: + resolution: {integrity: sha512-Od4vE6f6CTT53yM1jgcLqNfItTsLt5zE46fdPaEmeFHvPs5SjZYlLpHrSiHEKR1+HdRfxuzXHjDOIxQyC3ptBA==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - /@rollup/rollup-darwin-x64@4.14.2: - resolution: {integrity: sha512-o/HAIrQq0jIxJAhgtIvV5FWviYK4WB0WwV91SLUnsliw1lSAoLsmgEEgRWzDguAFeUEUUoIWXiJrPqU7vGiVkA==} + /@rollup/rollup-darwin-x64@4.14.3: + resolution: {integrity: sha512-0IMAO21axJeNIrvS9lSe/PGthc8ZUS+zC53O0VhF5gMxfmcKAP4ESkKOCwEi6u2asUrt4mQv2rjY8QseIEb1aw==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.14.2: - resolution: {integrity: sha512-nwlJ65UY9eGq91cBi6VyDfArUJSKOYt5dJQBq8xyLhvS23qO+4Nr/RreibFHjP6t+5ap2ohZrUJcHv5zk5ju/g==} + /@rollup/rollup-linux-arm-gnueabihf@4.14.3: + resolution: {integrity: sha512-ge2DC7tHRHa3caVEoSbPRJpq7azhG+xYsd6u2MEnJ6XzPSzQsTKyXvh6iWjXRf7Rt9ykIUWHtl0Uz3T6yXPpKw==} cpu: [arm] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm64-gnu@4.14.2: - resolution: {integrity: sha512-Pg5TxxO2IVlMj79+c/9G0LREC9SY3HM+pfAwX7zj5/cAuwrbfj2Wv9JbMHIdPCfQpYsI4g9mE+2Bw/3aeSs2rQ==} + /@rollup/rollup-linux-arm-musleabihf@4.14.3: + resolution: {integrity: sha512-ljcuiDI4V3ySuc7eSk4lQ9wU8J8r8KrOUvB2U+TtK0TiW6OFDmJ+DdIjjwZHIw9CNxzbmXY39wwpzYuFDwNXuw==} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-arm64-gnu@4.14.3: + resolution: {integrity: sha512-Eci2us9VTHm1eSyn5/eEpaC7eP/mp5n46gTRB3Aar3BgSvDQGJZuicyq6TsH4HngNBgVqC5sDYxOzTExSU+NjA==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm64-musl@4.14.2: - resolution: {integrity: sha512-cAOTjGNm84gc6tS02D1EXtG7tDRsVSDTBVXOLbj31DkwfZwgTPYZ6aafSU7rD/4R2a34JOwlF9fQayuTSkoclA==} + /@rollup/rollup-linux-arm64-musl@4.14.3: + resolution: {integrity: sha512-UrBoMLCq4E92/LCqlh+blpqMz5h1tJttPIniwUgOFJyjWI1qrtrDhhpHPuFxULlUmjFHfloWdixtDhSxJt5iKw==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-powerpc64le-gnu@4.14.2: - resolution: {integrity: sha512-4RyT6v1kXb7C0fn6zV33rvaX05P0zHoNzaXI/5oFHklfKm602j+N4mn2YvoezQViRLPnxP8M1NaY4s/5kXO5cw==} + /@rollup/rollup-linux-powerpc64le-gnu@4.14.3: + resolution: {integrity: sha512-5aRjvsS8q1nWN8AoRfrq5+9IflC3P1leMoy4r2WjXyFqf3qcqsxRCfxtZIV58tCxd+Yv7WELPcO9mY9aeQyAmw==} cpu: [ppc64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-riscv64-gnu@4.14.2: - resolution: {integrity: sha512-KNUH6jC/vRGAKSorySTyc/yRYlCwN/5pnMjXylfBniwtJx5O7X17KG/0efj8XM3TZU7raYRXJFFReOzNmL1n1w==} + /@rollup/rollup-linux-riscv64-gnu@4.14.3: + resolution: {integrity: sha512-sk/Qh1j2/RJSX7FhEpJn8n0ndxy/uf0kI/9Zc4b1ELhqULVdTfN6HL31CDaTChiBAOgLcsJ1sgVZjWv8XNEsAQ==} cpu: [riscv64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-s390x-gnu@4.14.2: - resolution: {integrity: sha512-xPV4y73IBEXToNPa3h5lbgXOi/v0NcvKxU0xejiFw6DtIYQqOTMhZ2DN18/HrrP0PmiL3rGtRG9gz1QE8vFKXQ==} + /@rollup/rollup-linux-s390x-gnu@4.14.3: + resolution: {integrity: sha512-jOO/PEaDitOmY9TgkxF/TQIjXySQe5KVYB57H/8LRP/ux0ZoO8cSHCX17asMSv3ruwslXW/TLBcxyaUzGRHcqg==} cpu: [s390x] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-x64-gnu@4.14.2: - resolution: {integrity: sha512-QBhtr07iFGmF9egrPOWyO5wciwgtzKkYPNLVCFZTmr4TWmY0oY2Dm/bmhHjKRwZoGiaKdNcKhFtUMBKvlchH+Q==} + /@rollup/rollup-linux-x64-gnu@4.14.3: + resolution: {integrity: sha512-8ybV4Xjy59xLMyWo3GCfEGqtKV5M5gCSrZlxkPGvEPCGDLNla7v48S662HSGwRd6/2cSneMQWiv+QzcttLrrOA==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-x64-musl@4.14.2: - resolution: {integrity: sha512-8zfsQRQGH23O6qazZSFY5jP5gt4cFvRuKTpuBsC1ZnSWxV8ZKQpPqOZIUtdfMOugCcBvFGRa1pDC/tkf19EgBw==} + /@rollup/rollup-linux-x64-musl@4.14.3: + resolution: {integrity: sha512-s+xf1I46trOY10OqAtZ5Rm6lzHre/UiLA1J2uOhCFXWkbZrJRkYBPO6FhvGfHmdtQ3Bx793MNa7LvoWFAm93bg==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-arm64-msvc@4.14.2: - resolution: {integrity: sha512-H4s8UjgkPnlChl6JF5empNvFHp77Jx+Wfy2EtmYPe9G22XV+PMuCinZVHurNe8ggtwoaohxARJZbaH/3xjB/FA==} + /@rollup/rollup-win32-arm64-msvc@4.14.3: + resolution: {integrity: sha512-+4h2WrGOYsOumDQ5S2sYNyhVfrue+9tc9XcLWLh+Kw3UOxAvrfOrSMFon60KspcDdytkNDh7K2Vs6eMaYImAZg==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-ia32-msvc@4.14.2: - resolution: {integrity: sha512-djqpAjm/i8erWYF0K6UY4kRO3X5+T4TypIqw60Q8MTqSBaQNpNXDhxdjpZ3ikgb+wn99svA7jxcXpiyg9MUsdw==} + /@rollup/rollup-win32-ia32-msvc@4.14.3: + resolution: {integrity: sha512-T1l7y/bCeL/kUwh9OD4PQT4aM7Bq43vX05htPJJ46RTI4r5KNt6qJRzAfNfM+OYMNEVBWQzR2Gyk+FXLZfogGw==} cpu: [ia32] os: [win32] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-x64-msvc@4.14.2: - resolution: {integrity: sha512-teAqzLT0yTYZa8ZP7zhFKEx4cotS8Tkk5XiqNMJhD4CpaWB1BHARE4Qy+RzwnXvSAYv+Q3jAqCVBS+PS+Yee8Q==} + /@rollup/rollup-win32-x64-msvc@4.14.3: + resolution: {integrity: sha512-/BypzV0H1y1HzgYpxqRaXGBRqfodgoBBCcsrujT6QRcakDQdfU+Lq9PENPh5jB4I44YWq+0C2eHsHya+nZY1sA==} cpu: [x64] os: [win32] requiresBuild: true @@ -5692,7 +5700,7 @@ packages: postcss: ^8.1.0 dependencies: browserslist: 4.23.0 - caniuse-lite: 1.0.30001609 + caniuse-lite: 1.0.30001610 fraction.js: 4.3.7 normalize-range: 0.1.2 picocolors: 1.0.0 @@ -5859,7 +5867,7 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001609 + caniuse-lite: 1.0.30001610 electron-to-chromium: 1.4.736 node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.23.0) @@ -5948,8 +5956,8 @@ packages: resolution: {integrity: sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==} dev: false - /caniuse-lite@1.0.30001609: - resolution: {integrity: sha512-JFPQs34lHKx1B5t1EpQpWH4c+29zIyn/haGsbpfq3suuV9v56enjFt23zqijxGTMwy1p/4H2tjnQMY+p1WoAyA==} + /caniuse-lite@1.0.30001610: + resolution: {integrity: sha512-QFutAY4NgaelojVMjY63o6XlZyORPaLfyMnsl3HgnWdJUcX6K0oaJymHjH8PT5Gk7sTm8rvC/c5COUQKXqmOMA==} /canvas-renderer@2.2.1: resolution: {integrity: sha512-RrBgVL5qCEDIXpJ6NrzyRNoTnXxYarqm/cS/W6ERhUJts5UQtt/XPEosGN3rqUkZ4fjBArlnCbsISJ+KCFnIAg==} @@ -8852,7 +8860,7 @@ packages: '@next/env': 13.5.6 '@swc/helpers': 0.5.2 busboy: 1.6.0 - caniuse-lite: 1.0.30001609 + caniuse-lite: 1.0.30001610 postcss: 8.4.31 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -9865,28 +9873,29 @@ packages: inherits: 2.0.4 dev: false - /rollup@4.14.2: - resolution: {integrity: sha512-WkeoTWvuBoFjFAhsEOHKRoZ3r9GfTyhh7Vff1zwebEFLEFjT1lG3784xEgKiTa7E+e70vsC81roVL2MP4tgEEQ==} + /rollup@4.14.3: + resolution: {integrity: sha512-ag5tTQKYsj1bhrFC9+OEWqb5O6VYgtQDO9hPDBMmIbePwhfSr+ExlcU741t8Dhw5DkPCQf6noz0jb36D6W9/hw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.14.2 - '@rollup/rollup-android-arm64': 4.14.2 - '@rollup/rollup-darwin-arm64': 4.14.2 - '@rollup/rollup-darwin-x64': 4.14.2 - '@rollup/rollup-linux-arm-gnueabihf': 4.14.2 - '@rollup/rollup-linux-arm64-gnu': 4.14.2 - '@rollup/rollup-linux-arm64-musl': 4.14.2 - '@rollup/rollup-linux-powerpc64le-gnu': 4.14.2 - '@rollup/rollup-linux-riscv64-gnu': 4.14.2 - '@rollup/rollup-linux-s390x-gnu': 4.14.2 - '@rollup/rollup-linux-x64-gnu': 4.14.2 - '@rollup/rollup-linux-x64-musl': 4.14.2 - '@rollup/rollup-win32-arm64-msvc': 4.14.2 - '@rollup/rollup-win32-ia32-msvc': 4.14.2 - '@rollup/rollup-win32-x64-msvc': 4.14.2 + '@rollup/rollup-android-arm-eabi': 4.14.3 + '@rollup/rollup-android-arm64': 4.14.3 + '@rollup/rollup-darwin-arm64': 4.14.3 + '@rollup/rollup-darwin-x64': 4.14.3 + '@rollup/rollup-linux-arm-gnueabihf': 4.14.3 + '@rollup/rollup-linux-arm-musleabihf': 4.14.3 + '@rollup/rollup-linux-arm64-gnu': 4.14.3 + '@rollup/rollup-linux-arm64-musl': 4.14.3 + '@rollup/rollup-linux-powerpc64le-gnu': 4.14.3 + '@rollup/rollup-linux-riscv64-gnu': 4.14.3 + '@rollup/rollup-linux-s390x-gnu': 4.14.3 + '@rollup/rollup-linux-x64-gnu': 4.14.3 + '@rollup/rollup-linux-x64-musl': 4.14.3 + '@rollup/rollup-win32-arm64-msvc': 4.14.3 + '@rollup/rollup-win32-ia32-msvc': 4.14.3 + '@rollup/rollup-win32-x64-msvc': 4.14.3 fsevents: 2.3.3 dev: true @@ -10651,7 +10660,7 @@ packages: postcss: 8.4.38 postcss-load-config: 4.0.2(postcss@8.4.38) resolve-from: 5.0.0 - rollup: 4.14.2 + rollup: 4.14.3 source-map: 0.8.0-beta.0 sucrase: 3.35.0 tree-kill: 1.2.2 From aed40e259201a930291edefea942d66b545d4445 Mon Sep 17 00:00:00 2001 From: Aurora Poppyseed Date: Wed, 17 Apr 2024 11:46:09 +0200 Subject: [PATCH 02/19] adding data collected from different chains --- package.json | 2 +- pnpm-lock.yaml | 328 ++++++++++++++---- src/app/(App)/bulkcore1/CoreOwners.tsx | 6 +- src/app/(App)/bulkcore1/CoreUtilisation.tsx | 6 +- .../[regionId]/[mask]/PastTransactions.tsx | 5 +- src/app/(App)/my-cores/PastTransactions.tsx | 5 +- src/app/(App)/paraId/ParaIdRelay.tsx | 2 +- .../(App)/paraId/ParachainsSubscanInfo.tsx | 2 +- src/app/(App)/test/CoreUtilisationKSMDOT.tsx | 19 +- .../test/paraIdData.ts => config/network.ts} | 0 10 files changed, 289 insertions(+), 86 deletions(-) rename src/{app/(App)/test/paraIdData.ts => config/network.ts} (100%) diff --git a/package.json b/package.json index f1e6185e..bf60dad1 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@mui/x-date-pickers": "^6.19.9", "@paraspell/sdk": "^4.1.1", "@polkadot/api-base": "^10.12.6", - "@poppyseed/squid-sdk": "^0.0.5", + "@poppyseed/squid-sdk": "^0.1.0", "@poppyseed/xcm-sdk": "^4.0.1", "animate.css": "^4.1.1", "axios": "^1.6.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2aed5c9b..d596ebbc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,8 +39,8 @@ dependencies: specifier: ^10.12.6 version: 10.12.6 '@poppyseed/squid-sdk': - specifier: ^0.0.5 - version: 0.0.5(@subsquid/substrate-runtime@1.0.3)(typeorm@0.3.20) + specifier: ^0.1.0 + version: 0.1.0(@subsquid/substrate-runtime@1.0.3)(typeorm@0.3.20) '@poppyseed/xcm-sdk': specifier: ^4.0.1 version: 4.0.1(@polkadot/api-base@10.12.6)(@polkadot/api@10.12.6)(@polkadot/apps-config@0.133.1)(@polkadot/types@10.12.6)(@polkadot/util@12.6.2) @@ -117,7 +117,7 @@ devDependencies: version: 12.6.2(@polkadot/util@12.6.2) '@poppyseed/lastic-sdk': specifier: ^0.2.7 - version: 0.2.7(@nightlylabs/wallet-selector-polkadot@0.2.4)(@polkadot/api-contract@10.12.6)(@polkadot/api@10.12.6)(@polkadot/extension-inject@0.46.9)(@polkadot/types@10.12.6)(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2)(postcss@8.4.38)(react-dom@18.2.0)(react@18.2.0) + version: 0.2.7(@nightlylabs/wallet-selector-polkadot@0.2.5)(@polkadot/api-contract@10.12.6)(@polkadot/api@10.12.6)(@polkadot/extension-inject@0.46.9)(@polkadot/types@10.12.6)(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2)(postcss@8.4.38)(react-dom@18.2.0)(react@18.2.0) '@types/react': specifier: 18.2.25 version: 18.2.25 @@ -149,12 +149,12 @@ packages: resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} engines: {node: '>=0.10.0'} - /@acala-network/type-definitions@5.1.2(@polkadot/types@10.12.6): + /@acala-network/type-definitions@5.1.2(@polkadot/types@10.13.1): resolution: {integrity: sha512-di3HH8Zn8i1jkQkQiwc44A8ovN9MvK5HwcNV3ngvW3TeF0dHbpHBQHdElJYpVge5IaEyhQ0kWihIEnVqpw4G9A==} peerDependencies: '@polkadot/types': ^10.5.1 dependencies: - '@polkadot/types': 10.12.6 + '@polkadot/types': 10.13.1 dev: false /@alloc/quick-lru@5.2.0: @@ -461,12 +461,12 @@ packages: '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 - /@bifrost-finance/type-definitions@1.8.4(@polkadot/api@10.12.6): + /@bifrost-finance/type-definitions@1.8.4(@polkadot/api@10.13.1): resolution: {integrity: sha512-Vj1/aK3ikvlYIKSHmFQDpgiWRn8pCFRxIqPS1zRIlbqy/aj7T2iOsImdrIX9piPdJquLsJFap3VvX8Lw3YVnmw==} peerDependencies: '@polkadot/api': ^10.7.3 dependencies: - '@polkadot/api': 10.12.6 + '@polkadot/api': 10.13.1 dev: false /@changesets/apply-release-plan@7.0.0: @@ -1467,9 +1467,9 @@ packages: /@frequency-chain/api-augment@1.7.4: resolution: {integrity: sha512-sTg6j4pfMI3MqV3ZRAgn+ZLXSvYn0+KXaczG8E4KZARovyACNvhOtzMfOFvgCtVpSgeO63FkKNx8i0K9/Yf51w==} dependencies: - '@polkadot/api': 10.12.6 - '@polkadot/rpc-provider': 10.12.6 - '@polkadot/types': 10.12.6 + '@polkadot/api': 10.13.1 + '@polkadot/rpc-provider': 10.13.1 + '@polkadot/types': 10.13.1 transitivePeerDependencies: - bufferutil - supports-color @@ -1502,7 +1502,7 @@ packages: peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: - '@graphql-tools/utils': 10.1.2(graphql@15.8.0) + '@graphql-tools/utils': 10.1.3(graphql@15.8.0) graphql: 15.8.0 tslib: 2.6.2 dev: false @@ -1526,7 +1526,7 @@ packages: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@graphql-tools/merge': 9.0.3(graphql@15.8.0) - '@graphql-tools/utils': 10.1.2(graphql@15.8.0) + '@graphql-tools/utils': 10.1.3(graphql@15.8.0) graphql: 15.8.0 tslib: 2.6.2 value-or-promise: 1.0.12 @@ -1556,8 +1556,8 @@ packages: value-or-promise: 1.0.12 dev: false - /@graphql-tools/utils@10.1.2(graphql@15.8.0): - resolution: {integrity: sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw==} + /@graphql-tools/utils@10.1.3(graphql@15.8.0): + resolution: {integrity: sha512-loco2ctrrMQzdpSHbcOo6+Ecp21BV67cQ2pNGhuVKAexruu01RdLn3LgtK47B9BpLz3cUD6U0u1R0rur7xMOOg==} engines: {node: '>=16.0.0'} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 @@ -1691,7 +1691,7 @@ packages: resolution: {integrity: sha512-WweuUZqZN2ETcseV6r1AEum1qG6eR5poNhkZ4CIpWBOjMasT2ArTKWyIPxxYllKUS2A8wKv1l8+AqH6Jpzk7Ug==} engines: {node: '>= 12'} dependencies: - ioredis: 5.3.2 + ioredis: 5.4.0 transitivePeerDependencies: - supports-color dev: false @@ -1729,7 +1729,7 @@ packages: resolution: {integrity: sha512-XJITgo4DMCfKrezFbN9EIXOmpXSM22QVVWglcchDRi/v2f4Rp+J1nv/l6mzpGNO6HOUwsSqO5pILANqB7ugH+A==} engines: {node: '>=16'} dependencies: - '@polkadot/api': 10.12.6 + '@polkadot/api': 10.13.1 '@polkadot/util': 12.6.2 '@polkadot/util-crypto': 12.6.2(@polkadot/util@12.6.2) '@types/uuid': 9.0.8 @@ -1750,6 +1750,15 @@ packages: '@polkadot/types': 10.12.6 dev: false + /@mangata-finance/type-definitions@2.1.2(@polkadot/types@10.13.1): + resolution: {integrity: sha512-kr4mVMuQ6DqZ0H72z0YI8tcdlk4XD4vUgRVYYfTJdXFJhRsfS4YRxfs/iiQPNzWKgoQZKcDqsbQD3xz9T1gELw==} + engines: {node: '>=18.0.0'} + peerDependencies: + '@polkadot/types': ^10.9.1 + dependencies: + '@polkadot/types': 10.13.1 + dev: false + /@manypkg/find-root@1.1.0: resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} dependencies: @@ -2166,9 +2175,9 @@ packages: resolution: {integrity: sha512-N0fOMb2Qp7ZZuGGnCzm/mHIgRL/21rv0qwW9ikHSdn8/qNkHkJ8PLJ26d8CUJU+LivkMWis41DzIY5MEHhi6Tg==} dependencies: '@nightlylabs/nightly-connect-base': 0.0.27 - '@polkadot/api': 10.12.6 - '@polkadot/extension-inject': 0.46.9(@polkadot/api@10.12.6)(@polkadot/util@12.6.2) - '@polkadot/types': 10.12.6 + '@polkadot/api': 10.13.1 + '@polkadot/extension-inject': 0.46.9(@polkadot/api@10.13.1)(@polkadot/util@12.6.2) + '@polkadot/types': 10.13.1 '@polkadot/util': 12.6.2 '@polkadot/util-crypto': 12.6.2(@polkadot/util@12.6.2) eventemitter3: 5.0.1 @@ -2215,8 +2224,8 @@ packages: - ts-node dev: true - /@nightlylabs/wallet-selector-polkadot@0.2.4(@polkadot/util@12.6.2): - resolution: {integrity: sha512-q9YVyZIrPR2EwGbPz6r+TF0dy+SAo6Pxy1AasSd3hlgfNEsfziJK/TqleuNI7QPQCGMETm9tWhthQFvVjJkE4A==} + /@nightlylabs/wallet-selector-polkadot@0.2.5(@polkadot/util@12.6.2): + resolution: {integrity: sha512-U3zMwysGHSZzQ5mkO3oRlJQuDDqjNrelobO8oInhSA/JNH7Qmg4ntDYCIAsZF0OAgHayATVEse27f4KfZY9j9Q==} dependencies: '@nightlylabs/nightly-connect-polkadot': 0.0.16 '@nightlylabs/wallet-selector-base': 0.4.0 @@ -2432,6 +2441,22 @@ packages: - supports-color - utf-8-validate + /@polkadot/api-augment@10.13.1: + resolution: {integrity: sha512-IAKaCp19QxgOG4HKk9RAgUgC/VNVqymZ2GXfMNOZWImZhxRIbrK+raH5vN2MbWwtVHpjxyXvGsd1RRhnohI33A==} + engines: {node: '>=18'} + dependencies: + '@polkadot/api-base': 10.13.1 + '@polkadot/rpc-augment': 10.13.1 + '@polkadot/types': 10.13.1 + '@polkadot/types-augment': 10.13.1 + '@polkadot/types-codec': 10.13.1 + '@polkadot/util': 12.6.2 + tslib: 2.6.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + /@polkadot/api-augment@7.15.1: resolution: {integrity: sha512-7csQLS6zuYuGq7W1EkTBz1ZmxyRvx/Qpz7E7zPSwxmY8Whb7Yn2effU9XF0eCcRpyfSW8LodF8wMmLxGYs1OaQ==} engines: {node: '>=14.0.0'} @@ -2494,6 +2519,20 @@ packages: - supports-color - utf-8-validate + /@polkadot/api-base@10.13.1: + resolution: {integrity: sha512-Okrw5hjtEjqSMOG08J6qqEwlUQujTVClvY1/eZkzKwNzPelWrtV6vqfyJklB7zVhenlxfxqhZKKcY7zWSW/q5Q==} + engines: {node: '>=18'} + dependencies: + '@polkadot/rpc-core': 10.13.1 + '@polkadot/types': 10.13.1 + '@polkadot/util': 12.6.2 + rxjs: 7.8.1 + tslib: 2.6.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + /@polkadot/api-base@7.15.1: resolution: {integrity: sha512-UlhLdljJPDwGpm5FxOjvJNFTxXMRFaMuVNx6EklbuetbBEJ/Amihhtj0EJRodxQwtZ4ZtPKYKt+g+Dn7OJJh4g==} engines: {node: '>=14.0.0'} @@ -2580,6 +2619,25 @@ packages: - supports-color - utf-8-validate + /@polkadot/api-derive@10.13.1: + resolution: {integrity: sha512-ef0H0GeCZ4q5Om+c61eLLLL29UxFC2/u/k8V1K2JOIU+2wD5LF7sjAoV09CBMKKHfkLenRckVk2ukm4rBqFRpg==} + engines: {node: '>=18'} + dependencies: + '@polkadot/api': 10.13.1 + '@polkadot/api-augment': 10.13.1 + '@polkadot/api-base': 10.13.1 + '@polkadot/rpc-core': 10.13.1 + '@polkadot/types': 10.13.1 + '@polkadot/types-codec': 10.13.1 + '@polkadot/util': 12.6.2 + '@polkadot/util-crypto': 12.6.2(@polkadot/util@12.6.2) + rxjs: 7.8.1 + tslib: 2.6.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + /@polkadot/api-derive@7.15.1: resolution: {integrity: sha512-CsOQppksQBaa34L1fWRzmfQQpoEBwfH0yTTQxgj3h7rFYGVPxEKGeFjo1+IgI2vXXvOO73Z8E4H/MnbxvKrs1Q==} engines: {node: '>=14.0.0'} @@ -2672,6 +2730,32 @@ packages: - supports-color - utf-8-validate + /@polkadot/api@10.13.1: + resolution: {integrity: sha512-YrKWR4TQR5CDyGkF0mloEUo7OsUA+bdtENpJGOtNavzOQUDEbxFE0PVzokzZfVfHhHX2CojPVmtzmmLxztyJkg==} + engines: {node: '>=18'} + dependencies: + '@polkadot/api-augment': 10.13.1 + '@polkadot/api-base': 10.13.1 + '@polkadot/api-derive': 10.13.1 + '@polkadot/keyring': 12.6.2(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2) + '@polkadot/rpc-augment': 10.13.1 + '@polkadot/rpc-core': 10.13.1 + '@polkadot/rpc-provider': 10.13.1 + '@polkadot/types': 10.13.1 + '@polkadot/types-augment': 10.13.1 + '@polkadot/types-codec': 10.13.1 + '@polkadot/types-create': 10.13.1 + '@polkadot/types-known': 10.13.1 + '@polkadot/util': 12.6.2 + '@polkadot/util-crypto': 12.6.2(@polkadot/util@12.6.2) + eventemitter3: 5.0.1 + rxjs: 7.8.1 + tslib: 2.6.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + /@polkadot/api@7.15.1: resolution: {integrity: sha512-z0z6+k8+R9ixRMWzfsYrNDnqSV5zHKmyhTCL0I7+1I081V18MJTCFUKubrh0t1gD0/FCt3U9Ibvr4IbtukYLrQ==} engines: {node: '>=14.0.0'} @@ -2729,8 +2813,8 @@ packages: resolution: {integrity: sha512-g9RS3yfsu2KXUkhycT7ZzV3KEZnhtuLGZw06/LUzFDz60TWyXRimGIoBTLPjErjQ6Z35Qe14Qj7LwVCPQ9CaCA==} engines: {node: '>=18'} dependencies: - '@acala-network/type-definitions': 5.1.2(@polkadot/types@10.12.6) - '@bifrost-finance/type-definitions': 1.8.4(@polkadot/api@10.12.6) + '@acala-network/type-definitions': 5.1.2(@polkadot/types@10.13.1) + '@bifrost-finance/type-definitions': 1.8.4(@polkadot/api@10.13.1) '@crustio/type-definitions': 1.3.0 '@darwinia/types': 2.8.10 '@darwinia/types-known': 2.8.10 @@ -2744,18 +2828,18 @@ packages: '@kiltprotocol/type-definitions': 0.33.1 '@laminar/type-definitions': 0.3.1 '@logion/node-api': 0.19.0-2 - '@mangata-finance/type-definitions': 2.1.2(@polkadot/types@10.12.6) + '@mangata-finance/type-definitions': 2.1.2(@polkadot/types@10.13.1) '@metaverse-network-sdk/type-definitions': 0.0.1-16 '@parallel-finance/type-definitions': 2.0.0 '@peaqnetwork/type-definitions': 0.0.4 '@pendulum-chain/type-definitions': 0.3.7 '@phala/typedefs': 0.2.33 - '@polkadot/api': 10.12.6 - '@polkadot/api-derive': 10.12.6 + '@polkadot/api': 10.13.1 + '@polkadot/api-derive': 10.13.1 '@polkadot/networks': 12.6.2 '@polkadot/react-identicon': 3.6.5(@polkadot/keyring@12.6.2)(@polkadot/networks@12.6.2)(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0) - '@polkadot/types': 10.12.6 - '@polkadot/types-codec': 10.12.6 + '@polkadot/types': 10.13.1 + '@polkadot/types-codec': 10.13.1 '@polkadot/util': 12.6.2 '@polkadot/wasm-util': 7.3.2(@polkadot/util@12.6.2) '@polkadot/x-fetch': 12.6.2 @@ -2764,10 +2848,10 @@ packages: '@snowfork/snowbridge-types': 0.2.7(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2) '@sora-substrate/type-definitions': 1.20.1 '@subsocial/definitions': 0.8.13 - '@unique-nft/opal-testnet-types': 942.57.0(@polkadot/api@10.12.6)(@polkadot/types@10.12.6) - '@unique-nft/quartz-mainnet-types': 942.57.0(@polkadot/api@10.12.6)(@polkadot/types@10.12.6) - '@unique-nft/sapphire-mainnet-types': 942.57.0(@polkadot/api@10.12.6)(@polkadot/types@10.12.6) - '@unique-nft/unique-mainnet-types': 942.57.0(@polkadot/api@10.12.6)(@polkadot/types@10.12.6) + '@unique-nft/opal-testnet-types': 942.57.0(@polkadot/api@10.13.1)(@polkadot/types@10.13.1) + '@unique-nft/quartz-mainnet-types': 942.57.0(@polkadot/api@10.13.1)(@polkadot/types@10.13.1) + '@unique-nft/sapphire-mainnet-types': 942.57.0(@polkadot/api@10.13.1)(@polkadot/types@10.13.1) + '@unique-nft/unique-mainnet-types': 942.57.0(@polkadot/api@10.13.1)(@polkadot/types@10.13.1) '@zeitgeistpm/type-defs': 1.0.0 '@zeroio/type-definitions': 0.0.14 moonbeam-types-bundle: 2.0.10 @@ -2813,8 +2897,8 @@ packages: '@polkadot/util': '*' dependencies: '@polkadot/api': 10.10.1 - '@polkadot/rpc-provider': 10.12.6 - '@polkadot/types': 10.12.6 + '@polkadot/rpc-provider': 10.13.1 + '@polkadot/types': 10.13.1 '@polkadot/util': 12.6.2 '@polkadot/util-crypto': 12.6.2(@polkadot/util@12.6.2) '@polkadot/x-global': 12.6.2 @@ -2845,6 +2929,26 @@ packages: - utf-8-validate dev: true + /@polkadot/extension-inject@0.46.9(@polkadot/api@10.13.1)(@polkadot/util@12.6.2): + resolution: {integrity: sha512-m0jnrs9+jEOpMH6OUNl7nHpz9SFFWK9LzuqB8T3htEE3RUYPL//SLCPyEKxAAgHu7F8dgkUHssAWQfANofALCQ==} + engines: {node: '>=18'} + peerDependencies: + '@polkadot/api': '*' + '@polkadot/util': '*' + dependencies: + '@polkadot/api': 10.13.1 + '@polkadot/rpc-provider': 10.12.6 + '@polkadot/types': 10.12.6 + '@polkadot/util': 12.6.2 + '@polkadot/util-crypto': 12.6.2(@polkadot/util@12.6.2) + '@polkadot/x-global': 12.6.2 + tslib: 2.6.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: true + /@polkadot/keyring@10.4.2(@polkadot/util-crypto@10.4.2)(@polkadot/util@10.4.2): resolution: {integrity: sha512-7iHhJuXaHrRTG6cJDbZE9G+c1ts1dujp0qbO4RfAPmT7YUvphHvAtCKueN9UKPz5+TYDL+rP/jDEaSKU8jl/qQ==} engines: {node: '>=14.0.0'} @@ -3017,6 +3121,20 @@ packages: - supports-color - utf-8-validate + /@polkadot/rpc-augment@10.13.1: + resolution: {integrity: sha512-iLsWUW4Jcx3DOdVrSHtN0biwxlHuTs4QN2hjJV0gd0jo7W08SXhWabZIf9mDmvUJIbR7Vk+9amzvegjRyIf5+A==} + engines: {node: '>=18'} + dependencies: + '@polkadot/rpc-core': 10.13.1 + '@polkadot/types': 10.13.1 + '@polkadot/types-codec': 10.13.1 + '@polkadot/util': 12.6.2 + tslib: 2.6.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + /@polkadot/rpc-augment@7.15.1: resolution: {integrity: sha512-sK0+mphN7nGz/eNPsshVi0qd0+N0Pqxuebwc1YkUGP0f9EkDxzSGp6UjGcSwWVaAtk9WZZ1MpK1Jwb/2GrKV7Q==} engines: {node: '>=14.0.0'} @@ -3077,6 +3195,21 @@ packages: - supports-color - utf-8-validate + /@polkadot/rpc-core@10.13.1: + resolution: {integrity: sha512-eoejSHa+/tzHm0vwic62/aptTGbph8vaBpbvLIK7gd00+rT813ROz5ckB1CqQBFB23nHRLuzzX/toY8ID3xrKw==} + engines: {node: '>=18'} + dependencies: + '@polkadot/rpc-augment': 10.13.1 + '@polkadot/rpc-provider': 10.13.1 + '@polkadot/types': 10.13.1 + '@polkadot/util': 12.6.2 + rxjs: 7.8.1 + tslib: 2.6.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + /@polkadot/rpc-core@7.15.1: resolution: {integrity: sha512-4Sb0e0PWmarCOizzxQAE1NQSr5z0n+hdkrq3+aPohGu9Rh4PodG+OWeIBy7Ov/3GgdhNQyBLG+RiVtliXecM3g==} engines: {node: '>=14.0.0'} @@ -3155,6 +3288,29 @@ packages: - supports-color - utf-8-validate + /@polkadot/rpc-provider@10.13.1: + resolution: {integrity: sha512-oJ7tatVXYJ0L7NpNiGd69D558HG5y5ZDmH2Bp9Dd4kFTQIiV8A39SlWwWUPCjSsen9lqSvvprNLnG/VHTpenbw==} + engines: {node: '>=18'} + dependencies: + '@polkadot/keyring': 12.6.2(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2) + '@polkadot/types': 10.13.1 + '@polkadot/types-support': 10.13.1 + '@polkadot/util': 12.6.2 + '@polkadot/util-crypto': 12.6.2(@polkadot/util@12.6.2) + '@polkadot/x-fetch': 12.6.2 + '@polkadot/x-global': 12.6.2 + '@polkadot/x-ws': 12.6.2 + eventemitter3: 5.0.1 + mock-socket: 9.3.1 + nock: 13.5.4 + tslib: 2.6.2 + optionalDependencies: + '@substrate/connect': 0.8.8 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + /@polkadot/rpc-provider@7.15.1: resolution: {integrity: sha512-n0RWfSaD/r90JXeJkKry1aGZwJeBUUiMpXUQ9Uvp6DYBbYEDs0fKtWLpdT3PdFrMbe5y3kwQmNLxwe6iF4+mzg==} engines: {node: '>=14.0.0'} @@ -3220,6 +3376,15 @@ packages: '@polkadot/util': 12.6.2 tslib: 2.6.2 + /@polkadot/types-augment@10.13.1: + resolution: {integrity: sha512-TcrLhf95FNFin61qmVgOgayzQB/RqVsSg9thAso1Fh6pX4HSbvI35aGPBAn3SkA6R+9/TmtECirpSNLtIGFn0g==} + engines: {node: '>=18'} + dependencies: + '@polkadot/types': 10.13.1 + '@polkadot/types-codec': 10.13.1 + '@polkadot/util': 12.6.2 + tslib: 2.6.2 + /@polkadot/types-augment@7.15.1: resolution: {integrity: sha512-aqm7xT/66TCna0I2utpIekoquKo0K5pnkA/7WDzZ6gyD8he2h0IXfe8xWjVmuyhjxrT/C/7X1aUF2Z0xlOCwzQ==} engines: {node: '>=14.0.0'} @@ -3257,6 +3422,14 @@ packages: '@polkadot/x-bigint': 12.6.2 tslib: 2.6.2 + /@polkadot/types-codec@10.13.1: + resolution: {integrity: sha512-AiQ2Vv2lbZVxEdRCN8XSERiWlOWa2cTDLnpAId78EnCtx4HLKYQSd+Jk9Y4BgO35R79mchK4iG+w6gZ+ukG2bg==} + engines: {node: '>=18'} + dependencies: + '@polkadot/util': 12.6.2 + '@polkadot/x-bigint': 12.6.2 + tslib: 2.6.2 + /@polkadot/types-codec@7.15.1: resolution: {integrity: sha512-nI11dT7FGaeDd/fKPD8iJRFGhosOJoyjhZ0gLFFDlKCaD3AcGBRTTY8HFJpP/5QXXhZzfZsD93fVKrosnegU0Q==} engines: {node: '>=14.0.0'} @@ -3291,6 +3464,14 @@ packages: '@polkadot/util': 12.6.2 tslib: 2.6.2 + /@polkadot/types-create@10.13.1: + resolution: {integrity: sha512-Usn1jqrz35SXgCDAqSXy7mnD6j4RvB4wyzTAZipFA6DGmhwyxxIgOzlWQWDb+1PtPKo9vtMzen5IJ+7w5chIeA==} + engines: {node: '>=18'} + dependencies: + '@polkadot/types-codec': 10.13.1 + '@polkadot/util': 12.6.2 + tslib: 2.6.2 + /@polkadot/types-create@7.15.1: resolution: {integrity: sha512-+HiaHn7XOwP0kv/rVdORlVkNuMoxuvt+jd67A/CeEreJiXqRLu+S61Mdk7wi6719PTaOal1hTDFfyGrtUd8FSQ==} engines: {node: '>=14.0.0'} @@ -3332,6 +3513,17 @@ packages: '@polkadot/util': 12.6.2 tslib: 2.6.2 + /@polkadot/types-known@10.13.1: + resolution: {integrity: sha512-uHjDW05EavOT5JeU8RbiFWTgPilZ+odsCcuEYIJGmK+es3lk/Qsdns9Zb7U7NJl7eJ6OWmRtyrWsLs+bU+jjIQ==} + engines: {node: '>=18'} + dependencies: + '@polkadot/networks': 12.6.2 + '@polkadot/types': 10.13.1 + '@polkadot/types-codec': 10.13.1 + '@polkadot/types-create': 10.13.1 + '@polkadot/util': 12.6.2 + tslib: 2.6.2 + /@polkadot/types-known@4.17.1: resolution: {integrity: sha512-YkOwGrO+k9aVrBR8FgYHnfJKhOfpdgC5ZRYNL/xJ9oa7lBYqPts9ENAxeBmJS/5IGeDF9f32MNyrCP2umeCXWg==} engines: {node: '>=14.0.0'} @@ -3391,6 +3583,13 @@ packages: '@polkadot/util': 12.6.2 tslib: 2.6.2 + /@polkadot/types-support@10.13.1: + resolution: {integrity: sha512-4gEPfz36XRQIY7inKq0HXNVVhR6HvXtm7yrEmuBuhM86LE0lQQBkISUSgR358bdn2OFSLMxMoRNoh3kcDvdGDQ==} + engines: {node: '>=18'} + dependencies: + '@polkadot/util': 12.6.2 + tslib: 2.6.2 + /@polkadot/types-support@7.15.1: resolution: {integrity: sha512-FIK251ffVo+NaUXLlaJeB5OvT7idDd3uxaoBM6IwsS87rzt2CcWMyCbu0uX89AHZUhSviVx7xaBxfkGEqMePWA==} engines: {node: '>=14.0.0'} @@ -3434,6 +3633,19 @@ packages: rxjs: 7.8.1 tslib: 2.6.2 + /@polkadot/types@10.13.1: + resolution: {integrity: sha512-Hfvg1ZgJlYyzGSAVrDIpp3vullgxrjOlh/CSThd/PI4TTN1qHoPSFm2hs77k3mKkOzg+LrWsLE0P/LP2XddYcw==} + engines: {node: '>=18'} + dependencies: + '@polkadot/keyring': 12.6.2(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2) + '@polkadot/types-augment': 10.13.1 + '@polkadot/types-codec': 10.13.1 + '@polkadot/types-create': 10.13.1 + '@polkadot/util': 12.6.2 + '@polkadot/util-crypto': 12.6.2(@polkadot/util@12.6.2) + rxjs: 7.8.1 + tslib: 2.6.2 + /@polkadot/types@4.17.1: resolution: {integrity: sha512-rjW4OFdwvFekzN3ATLibC2JPSd8AWt5YepJhmuCPdwH26r3zB8bEC6dM7YQExLVUmygVPvgXk5ffHI6RAdXBMg==} engines: {node: '>=14.0.0'} @@ -4085,7 +4297,7 @@ packages: resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==} dev: false - /@poppyseed/lastic-sdk@0.2.7(@nightlylabs/wallet-selector-polkadot@0.2.4)(@polkadot/api-contract@10.12.6)(@polkadot/api@10.12.6)(@polkadot/extension-inject@0.46.9)(@polkadot/types@10.12.6)(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2)(postcss@8.4.38)(react-dom@18.2.0)(react@18.2.0): + /@poppyseed/lastic-sdk@0.2.7(@nightlylabs/wallet-selector-polkadot@0.2.5)(@polkadot/api-contract@10.12.6)(@polkadot/api@10.12.6)(@polkadot/extension-inject@0.46.9)(@polkadot/types@10.12.6)(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2)(postcss@8.4.38)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-f/S9a28aJADb8UKEVKD0f5Cue94DDrRbonXLh8KrYimUwJAs6yaSzpEMgqJ/q9qNawh5ShIJGfRbY+5XKeeWMw==} engines: {node: '>=18', pnpm: '8'} peerDependencies: @@ -4100,7 +4312,7 @@ packages: react-dom: '>=18' dependencies: '@changesets/cli': 2.27.1 - '@nightlylabs/wallet-selector-polkadot': 0.2.4(@polkadot/util@12.6.2) + '@nightlylabs/wallet-selector-polkadot': 0.2.5(@polkadot/util@12.6.2) '@polkadot/api': 10.12.6 '@polkadot/api-contract': 10.12.6 '@polkadot/extension-dapp': 0.46.9(@polkadot/api@10.12.6)(@polkadot/util-crypto@12.6.2)(@polkadot/util@12.6.2) @@ -4135,8 +4347,8 @@ packages: - utf-8-validate dev: true - /@poppyseed/squid-sdk@0.0.5(@subsquid/substrate-runtime@1.0.3)(typeorm@0.3.20): - resolution: {integrity: sha512-xCR+K69mTEndjbPTNNFxb9b0dgLu7vdOdhtW0ZAz6V7s6nW/Y59uMbaV6cBb+Vws1sQegyiZ34LZkSYl5IZniQ==} + /@poppyseed/squid-sdk@0.1.0(@subsquid/substrate-runtime@1.0.3)(typeorm@0.3.20): + resolution: {integrity: sha512-EDzMxvwWhz6Budc6EZx8ZKCGBBCEWMJIAGhgyMxykgc8H1fK6aasOYFv8zciI1Vevv6gA4SEAbb8H13haMITPA==} dependencies: '@kodadot1/static': 0.0.3 '@subsquid/archive-registry': 3.3.2 @@ -4395,7 +4607,7 @@ packages: /@subsocial/definitions@0.8.13: resolution: {integrity: sha512-P6uCfkdsvlg3kqk+31UfvGFshZGBGtZqfemLVzpZIR6YNwXutKuII6oAwgWTDg36owjP6pHLCKxI5nDk89uKew==} dependencies: - '@polkadot/api': 10.12.6 + '@polkadot/api': 10.13.1 lodash.camelcase: 4.3.0 transitivePeerDependencies: - bufferutil @@ -4441,7 +4653,7 @@ packages: '@apollo/utils.keyvaluecache': 1.0.2 '@graphql-tools/merge': 9.0.3(graphql@15.8.0) '@graphql-tools/schema': 10.0.3(graphql@15.8.0) - '@graphql-tools/utils': 10.1.2(graphql@15.8.0) + '@graphql-tools/utils': 10.1.3(graphql@15.8.0) '@keyv/redis': 2.5.8 '@subsquid/logger': 1.3.3 '@subsquid/openreader': 4.5.1 @@ -4955,7 +5167,7 @@ packages: resolution: {integrity: sha512-DxMhY+NAsTwMMFHBTtJFNp5qiHKJ7TeqOo23zVEM9alT1Ml27Q3xcTH0xwxn7Q0BbMcVEJOs/7aQtUWupUQN3Q==} dependencies: '@types/node': 20.12.7 - '@types/qs': 6.9.14 + '@types/qs': 6.9.15 '@types/range-parser': 1.2.7 dev: false @@ -4964,7 +5176,7 @@ packages: dependencies: '@types/body-parser': 1.19.2 '@types/express-serve-static-core': 4.17.31 - '@types/qs': 6.9.14 + '@types/qs': 6.9.15 '@types/serve-static': 1.15.7 dev: false @@ -5023,8 +5235,8 @@ packages: /@types/prop-types@15.7.12: resolution: {integrity: sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==} - /@types/qs@6.9.14: - resolution: {integrity: sha512-5khscbd3SwWMhFqylJBLQ0zIu7c1K6Vz0uBIt915BI3zV0q1nfjRQD3RqSBcPaO6PHEF4ov/t9y89fSiyThlPA==} + /@types/qs@6.9.15: + resolution: {integrity: sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg==} dev: false /@types/range-parser@1.2.7: @@ -5227,44 +5439,44 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@unique-nft/opal-testnet-types@942.57.0(@polkadot/api@10.12.6)(@polkadot/types@10.12.6): + /@unique-nft/opal-testnet-types@942.57.0(@polkadot/api@10.13.1)(@polkadot/types@10.13.1): resolution: {integrity: sha512-VmVDQQmIQn3xQgdkmNov3Ja6yMQlZRIIBkPcIm+eKuX5LeldaBTW5YZJfXjGF9Q18PkoFTSc38QmrfBC+x8D8g==} peerDependencies: '@polkadot/api': ^10.7.2 '@polkadot/types': ^10.7.2 dependencies: - '@polkadot/api': 10.12.6 - '@polkadot/types': 10.12.6 + '@polkadot/api': 10.13.1 + '@polkadot/types': 10.13.1 dev: false - /@unique-nft/quartz-mainnet-types@942.57.0(@polkadot/api@10.12.6)(@polkadot/types@10.12.6): + /@unique-nft/quartz-mainnet-types@942.57.0(@polkadot/api@10.13.1)(@polkadot/types@10.13.1): resolution: {integrity: sha512-Tg6VuIIJt9uEhauEOjw5vpXX37B56f6IImtihOLnoyHmHt83LDTWI78YyD8Wph3A///ixexNfQj4VbchFmQRlA==} peerDependencies: '@polkadot/api': ^10.7.2 '@polkadot/types': ^10.7.2 dependencies: - '@polkadot/api': 10.12.6 - '@polkadot/types': 10.12.6 + '@polkadot/api': 10.13.1 + '@polkadot/types': 10.13.1 dev: false - /@unique-nft/sapphire-mainnet-types@942.57.0(@polkadot/api@10.12.6)(@polkadot/types@10.12.6): + /@unique-nft/sapphire-mainnet-types@942.57.0(@polkadot/api@10.13.1)(@polkadot/types@10.13.1): resolution: {integrity: sha512-JopqrlUILDvbfRZdg3oF1y40rHUUZt42hNXHTGejAGLSRQIRyfZOJ8fIVFb+WmJLNbbgefnW/OdlFk2Hvqwm8w==} peerDependencies: '@polkadot/api': ^10.7.2 '@polkadot/types': ^10.7.2 dependencies: - '@polkadot/api': 10.12.6 - '@polkadot/types': 10.12.6 + '@polkadot/api': 10.13.1 + '@polkadot/types': 10.13.1 dev: false - /@unique-nft/unique-mainnet-types@942.57.0(@polkadot/api@10.12.6)(@polkadot/types@10.12.6): + /@unique-nft/unique-mainnet-types@942.57.0(@polkadot/api@10.13.1)(@polkadot/types@10.13.1): resolution: {integrity: sha512-9jK4jICjjR1u+tamI8vzXgsz5WrN/bxq8vg4Ng7oaN4p104jIfggOz3X0wr5OcSEhNDmUfAVZNrzmeu5rC/lNw==} peerDependencies: '@polkadot/api': ^10.7.2 '@polkadot/types': ^10.7.2 dependencies: - '@polkadot/api': 10.12.6 - '@polkadot/types': 10.12.6 + '@polkadot/api': 10.13.1 + '@polkadot/types': 10.13.1 dev: false /@wallet-standard/app@1.0.1: @@ -8038,8 +8250,8 @@ packages: hasown: 2.0.2 side-channel: 1.0.6 - /ioredis@5.3.2: - resolution: {integrity: sha512-1DKMMzlIHM02eBBVOFQ1+AolGjs6+xEcM4PDL7NqOS6szq7H9jSaEkIUH6/a5Hl241LzW6JLSiAbNvTQjUupUA==} + /ioredis@5.4.0: + resolution: {integrity: sha512-lGiiZyWFOskPu3pH4P8+uicHOZHpzYpgfKZFre68wLK6059zBo+KDTQpwxAVibBajKqpcrRJ5k+jl/uNHcCo3A==} engines: {node: '>=12.22.0'} dependencies: '@ioredis/commands': 1.2.0 diff --git a/src/app/(App)/bulkcore1/CoreOwners.tsx b/src/app/(App)/bulkcore1/CoreOwners.tsx index 0e3220e9..a8f4dae9 100644 --- a/src/app/(App)/bulkcore1/CoreOwners.tsx +++ b/src/app/(App)/bulkcore1/CoreOwners.tsx @@ -6,7 +6,9 @@ import { format } from 'date-fns' import { useEffect, useState } from 'react' const PastTransactions = () => { - const { activeAccount } = useInkathon() + const { activeAccount, activeRelayChain } = useInkathon() + const network = activeRelayChain?.network + const [result, setResult] = useState | null>(null) const [currentPage, setCurrentPage] = useState(1) const [offset, setOffset] = useState(0) @@ -18,7 +20,7 @@ const PastTransactions = () => { useEffect(() => { const fetchData = async () => { let query = client.eventAllPurchased(7, offset) - const fetchedResult: GraphLike = await client.fetch(query) + const fetchedResult: GraphLike = await client.fetch(network, query) setResult(fetchedResult) } diff --git a/src/app/(App)/bulkcore1/CoreUtilisation.tsx b/src/app/(App)/bulkcore1/CoreUtilisation.tsx index 248c45e0..88afa5d7 100644 --- a/src/app/(App)/bulkcore1/CoreUtilisation.tsx +++ b/src/app/(App)/bulkcore1/CoreUtilisation.tsx @@ -1,5 +1,6 @@ import Border from '@/components/border/Border' import MiniBarGraphData from '@/components/graph/MiniBarGraphData' +import { useInkathon } from '@poppyseed/lastic-sdk' import { GraphLike, SaleInitializedEvent, getClient } from '@poppyseed/squid-sdk' import React, { useEffect, useState } from 'react' import CoreOwners from './CoreOwners' @@ -7,6 +8,9 @@ import CoreOwners from './CoreOwners' type DataSetKey = 'price' | 'cores' // Add more keys as needed const CoreUtilisation: React.FC = () => { + const { activeAccount, activeRelayChain } = useInkathon() + const network = activeRelayChain?.network + const [result, setResult] = useState | null>(null) const [activeDataSet, setActiveDataSet] = useState('price') // Change to string to accommodate multiple datasets const client = getClient() @@ -14,7 +18,7 @@ const CoreUtilisation: React.FC = () => { useEffect(() => { const fetchData = async () => { const query = client.eventAllSaleInitialized() - const fetchedResult: GraphLike = await client.fetch(query) + const fetchedResult: GraphLike = await client.fetch(network, query) setResult(fetchedResult) } diff --git a/src/app/(App)/core/[number]/[regionId]/[mask]/PastTransactions.tsx b/src/app/(App)/core/[number]/[regionId]/[mask]/PastTransactions.tsx index 60b8a098..a6a97e6a 100644 --- a/src/app/(App)/core/[number]/[regionId]/[mask]/PastTransactions.tsx +++ b/src/app/(App)/core/[number]/[regionId]/[mask]/PastTransactions.tsx @@ -7,7 +7,8 @@ import { format } from 'date-fns' import { useEffect, useState } from 'react' const PastTransactions = ({ coreNb }: { coreNb: number }) => { - const { activeAccount } = useInkathon() + const { activeAccount, activeRelayChain } = useInkathon() + const network = activeRelayChain?.network const [result, setResult] = useState | null>(null) const client = getClient() @@ -18,7 +19,7 @@ const PastTransactions = ({ coreNb }: { coreNb: number }) => { useEffect(() => { const fetchData = async () => { - const fetchedResult: GraphLike = await client.fetch(query) + const fetchedResult: GraphLike = await client.fetch(network, query) setResult(fetchedResult) } diff --git a/src/app/(App)/my-cores/PastTransactions.tsx b/src/app/(App)/my-cores/PastTransactions.tsx index aee5e5f3..e772024f 100644 --- a/src/app/(App)/my-cores/PastTransactions.tsx +++ b/src/app/(App)/my-cores/PastTransactions.tsx @@ -8,7 +8,8 @@ import { format } from 'date-fns' import { useEffect, useMemo, useState } from 'react' const PastTransactions = () => { - const { activeAccount } = useInkathon() + const { activeAccount, activeRelayChain } = useInkathon() + const network = activeRelayChain?.network const [result, setResult] = useState | null>(null) const client = getClient() @@ -23,7 +24,7 @@ const PastTransactions = () => { useEffect(() => { const fetchData = async () => { - const fetchedResult: GraphLike = await client.fetch(query) + const fetchedResult: GraphLike = await client.fetch(network, query) setResult(fetchedResult) } diff --git a/src/app/(App)/paraId/ParaIdRelay.tsx b/src/app/(App)/paraId/ParaIdRelay.tsx index 1df7a710..224e826d 100644 --- a/src/app/(App)/paraId/ParaIdRelay.tsx +++ b/src/app/(App)/paraId/ParaIdRelay.tsx @@ -1,7 +1,7 @@ -import { PossibleNetworks, network_list } from '@/app/(App)/test/paraIdData' import Border from '@/components/border/Border' import GeneralTable from '@/components/table/GeneralTable' import WalletStatus from '@/components/walletStatus/WalletStatus' +import { PossibleNetworks, network_list } from '@/config/network' import { parseFormattedNumber, toShortHead } from '@/utils' import { useInkathon } from '@poppyseed/lastic-sdk' import { useEffect, useMemo, useState } from 'react' diff --git a/src/app/(App)/paraId/ParachainsSubscanInfo.tsx b/src/app/(App)/paraId/ParachainsSubscanInfo.tsx index 4c96a225..e9cca608 100644 --- a/src/app/(App)/paraId/ParachainsSubscanInfo.tsx +++ b/src/app/(App)/paraId/ParachainsSubscanInfo.tsx @@ -2,10 +2,10 @@ import Border from '@/components/border/Border' import { useSubScanCall } from '@/components/callSubscan/callSubScan' import { ParachainInfoRequest, ParachainInfoResponse } from '@/components/callSubscan/types' import GeneralTable from '@/components/table/GeneralTable' +import { PossibleNetworks, network_list } from '@/config/network' import { toShortAddress } from '@/utils' import { useInkathon } from '@poppyseed/lastic-sdk' import React, { useMemo, useState } from 'react' -import { PossibleNetworks, network_list } from '../test/paraIdData' const ParachainInfo: React.FC = () => { const [currentPage, setCurrentPage] = useState(0) diff --git a/src/app/(App)/test/CoreUtilisationKSMDOT.tsx b/src/app/(App)/test/CoreUtilisationKSMDOT.tsx index f18fc013..0ad372e3 100644 --- a/src/app/(App)/test/CoreUtilisationKSMDOT.tsx +++ b/src/app/(App)/test/CoreUtilisationKSMDOT.tsx @@ -4,6 +4,7 @@ import { useSubScanCall } from '@/components/callSubscan/callSubScan' import { AuctionResponse, AuctionsRequest } from '@/components/callSubscan/types' import BarGraph from '@/components/graph/BarGraph' import GeneralTable from '@/components/table/GeneralTable' +import { network_list } from '@/config/network' import React, { useMemo } from 'react' const CoreOwners: React.FC = () => { @@ -37,24 +38,6 @@ const CoreOwners: React.FC = () => { { title: 'Winner Address' }, ] - const network_list = [ - { - name: 'Polkadot', - currency: 'DOT', - apiUrl: 'https://polkadot.api.subscan.io/api/scan/parachain/auctions', - }, - { - name: 'Kusama', - currency: 'KSM', - apiUrl: 'https://kusama.api.subscan.io/api/scan/parachain/auctions', - }, - { - name: 'Rococo', - currency: 'ROC', - apiUrl: 'https://rococo.api.subscan.io/api/scan/parachain/auctions', - }, - ] - const network_currency = network_list[0].currency const TableData = auctionData diff --git a/src/app/(App)/test/paraIdData.ts b/src/config/network.ts similarity index 100% rename from src/app/(App)/test/paraIdData.ts rename to src/config/network.ts From 4d9e75e9b1dfd06130d4dbc4c0c172f7bf0a7b32 Mon Sep 17 00:00:00 2001 From: Aurora Poppyseed Date: Wed, 17 Apr 2024 11:54:01 +0200 Subject: [PATCH 03/19] adding kusama subsquid --- src/app/(App)/bulkcore1/CoreOwners.tsx | 2 +- src/app/(App)/bulkcore1/CoreUtilisation.tsx | 4 ++-- .../[number]/[regionId]/[mask]/PastTransactions.tsx | 2 +- src/app/(App)/my-cores/PastTransactions.tsx | 11 ++++------- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/app/(App)/bulkcore1/CoreOwners.tsx b/src/app/(App)/bulkcore1/CoreOwners.tsx index a8f4dae9..cd4a465b 100644 --- a/src/app/(App)/bulkcore1/CoreOwners.tsx +++ b/src/app/(App)/bulkcore1/CoreOwners.tsx @@ -25,7 +25,7 @@ const PastTransactions = () => { } fetchData() - }, [client, offset]) // Add offset to the dependency array + }, [network, client, offset]) // Add offset to the dependency array const TableHeader = [ { title: 'Time' }, diff --git a/src/app/(App)/bulkcore1/CoreUtilisation.tsx b/src/app/(App)/bulkcore1/CoreUtilisation.tsx index 88afa5d7..f9ce364e 100644 --- a/src/app/(App)/bulkcore1/CoreUtilisation.tsx +++ b/src/app/(App)/bulkcore1/CoreUtilisation.tsx @@ -8,7 +8,7 @@ import CoreOwners from './CoreOwners' type DataSetKey = 'price' | 'cores' // Add more keys as needed const CoreUtilisation: React.FC = () => { - const { activeAccount, activeRelayChain } = useInkathon() + const { activeRelayChain } = useInkathon() const network = activeRelayChain?.network const [result, setResult] = useState | null>(null) @@ -23,7 +23,7 @@ const CoreUtilisation: React.FC = () => { } fetchData() - }, [client]) + }, [client, network]) // Configurations for different data sets const dataConfigs = { diff --git a/src/app/(App)/core/[number]/[regionId]/[mask]/PastTransactions.tsx b/src/app/(App)/core/[number]/[regionId]/[mask]/PastTransactions.tsx index a6a97e6a..197cfea3 100644 --- a/src/app/(App)/core/[number]/[regionId]/[mask]/PastTransactions.tsx +++ b/src/app/(App)/core/[number]/[regionId]/[mask]/PastTransactions.tsx @@ -24,7 +24,7 @@ const PastTransactions = ({ coreNb }: { coreNb: number }) => { } fetchData() - }, [client, query]) + }, [client, query, network]) const TableHeader = [ { title: 'Time' }, diff --git a/src/app/(App)/my-cores/PastTransactions.tsx b/src/app/(App)/my-cores/PastTransactions.tsx index e772024f..13c07056 100644 --- a/src/app/(App)/my-cores/PastTransactions.tsx +++ b/src/app/(App)/my-cores/PastTransactions.tsx @@ -1,7 +1,6 @@ import Border from '@/components/border/Border' import GeneralTable from '@/components/table/GeneralTable' import { parseNativeTokenToHuman } from '@/utils/account/token' -import { decodeAddress, encodeAddress } from '@polkadot/util-crypto' import { useBalance, useInkathon } from '@poppyseed/lastic-sdk' import { GraphLike, PurchasedEvent, getClient } from '@poppyseed/squid-sdk' import { format } from 'date-fns' @@ -13,14 +12,12 @@ const PastTransactions = () => { const [result, setResult] = useState | null>(null) const client = getClient() - const publicKeyBytes = decodeAddress(activeAccount?.address) - const targetNetworkPrefix = 2 // For example, Kusama prefix let { tokenSymbol } = useBalance(activeAccount?.address, true) tokenSymbol = tokenSymbol || 'UNIT' - const newAddress = encodeAddress(publicKeyBytes, targetNetworkPrefix) - const query = client.eventWhoPurchased(newAddress) + //const newAddress = encodeAddress(publicKeyBytes, targetNetworkPrefix) + const query = client.eventWhoPurchased(activeAccount?.address) useEffect(() => { const fetchData = async () => { @@ -28,10 +25,10 @@ const PastTransactions = () => { setResult(fetchedResult) } - if (newAddress) { + if (activeAccount?.address) { fetchData() } - }, [client, query, newAddress]) + }, [client, query, activeAccount?.address, network]) const reversedData = useMemo(() => { // Make a copy of the event array (if it exists) and reverse the copy From aa49bbdcd8f3f748aa5829819592607579ade925 Mon Sep 17 00:00:00 2001 From: Aurora Poppyseed Date: Wed, 17 Apr 2024 12:16:56 +0200 Subject: [PATCH 04/19] truncate hash fixed --- package.json | 1 + pnpm-lock.yaml | 8 ++++++ src/components/web3/SideBarAccountName.tsx | 6 +++-- src/components/web3/SupportedChains.tsx | 30 +++++++++++++++++----- 4 files changed, 37 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index bf60dad1..37d1eea0 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "eslint": "8.36.0", "font-awesome": "^4.7.0", "framer-motion": "^10.18.0", + "js-cookie": "^3.0.5", "next": "^13.5.6", "next-themes": "^0.3.0", "react": "^18.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d596ebbc..78aa54be 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,6 +68,9 @@ dependencies: framer-motion: specifier: ^10.18.0 version: 10.18.0(react-dom@18.2.0)(react@18.2.0) + js-cookie: + specifier: ^3.0.5 + version: 3.0.5 next: specifier: ^13.5.6 version: 13.5.6(react-dom@18.2.0)(react@18.2.0) @@ -8546,6 +8549,11 @@ packages: engines: {node: '>=10'} dev: true + /js-cookie@3.0.5: + resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==} + engines: {node: '>=14'} + dev: false + /js-sdsl@4.4.2: resolution: {integrity: sha512-dwXFwByc/ajSV6m5bcKAPwe4yDDF6D614pxmIi5odytzxRlwqF6nwoiCek80Ixc7Cvma5awClxrzFtxCQvcM8w==} diff --git a/src/components/web3/SideBarAccountName.tsx b/src/components/web3/SideBarAccountName.tsx index 6e656d92..26e3e7f6 100644 --- a/src/components/web3/SideBarAccountName.tsx +++ b/src/components/web3/SideBarAccountName.tsx @@ -1,7 +1,9 @@ -import { parseNativeTokenToHuman, toShortAddress } from '@/utils/account/token' +import { parseNativeTokenToHuman } from '@/utils/account/token' +import { truncateHash } from '@/utils/truncateHash' import { SupportedChainId } from '@azns/resolver-core' import { useResolveAddressToDomain } from '@azns/resolver-react' import { UserIcon, WalletIcon } from '@heroicons/react/24/solid' +import { encodeAddress } from '@polkadot/util-crypto' import { useBalance, useInkathon, useRelayBalance } from '@poppyseed/lastic-sdk' import { useMemo } from 'react' @@ -52,7 +54,7 @@ export const SideBarAccountName = () => { - {toShortAddress(activeAccount?.address, 6)} + {truncateHash(encodeAddress(activeAccount.address, activeChain?.ss58Prefix || 42), 6)}
diff --git a/src/components/web3/SupportedChains.tsx b/src/components/web3/SupportedChains.tsx index 47f58d35..7d6eee3d 100644 --- a/src/components/web3/SupportedChains.tsx +++ b/src/components/web3/SupportedChains.tsx @@ -1,14 +1,10 @@ import { env } from '@/config/environment' import { SubstrateChain, getSubstrateChain, useInkathon } from '@poppyseed/lastic-sdk' -import { FC, useState } from 'react' +import Cookies from 'js-cookie' +import { FC, useEffect, useState } from 'react' import { toast } from 'react-hot-toast' import { FiChevronDown } from 'react-icons/fi' -type ChainConfig = { - coretime: string - relay: string -} - const SupportedChains: FC = () => { const { activeChain, switchActiveChain } = useInkathon() @@ -21,10 +17,32 @@ const SupportedChains: FC = () => { })), ) + useEffect(() => { + const storedNetwork = Cookies.get('activeNetwork') + if (storedNetwork && activeChain?.network !== storedNetwork) { + const chainToSwitch = supportedChains.find( + (chain) => + chain.coretime.network === storedNetwork || chain.relay.network === storedNetwork, + ) + if (chainToSwitch) { + switchActiveChain?.(chainToSwitch.coretime, chainToSwitch.relay) + } + } + }, [activeChain, supportedChains, switchActiveChain]) + + // const handleChainSwitch = async (chain: SubstrateChain, relayChain: SubstrateChain) => { + // if (chain.network !== activeChain?.network) { + // await switchActiveChain?.(chain, relayChain) + // toast.success(`Switched to ${chain.name}`) + // setIsDropdownOpen(false) // Close dropdown after switching + // } + // } + const handleChainSwitch = async (chain: SubstrateChain, relayChain: SubstrateChain) => { if (chain.network !== activeChain?.network) { await switchActiveChain?.(chain, relayChain) toast.success(`Switched to ${chain.name}`) + Cookies.set('activeNetwork', chain.network, { expires: 7 }) // Store the active network in cookies for 7 days setIsDropdownOpen(false) // Close dropdown after switching } } From 4a3f3730d1b2c6e3e86a35034942baa157ec5a39 Mon Sep 17 00:00:00 2001 From: Aurora Poppyseed Date: Wed, 17 Apr 2024 14:53:28 +0200 Subject: [PATCH 05/19] finishing TODOs --- src/app/(App)/bulkcore1/TimeSection.tsx | 94 ++----------------------- src/app/(App)/my-cores/MyCores.tsx | 15 +++- src/components/cores/CoreItem.tsx | 12 ++-- src/hooks/useSubstrateQuery.tsx | 89 +++++++++++++++++++++++ 4 files changed, 114 insertions(+), 96 deletions(-) create mode 100644 src/hooks/useSubstrateQuery.tsx diff --git a/src/app/(App)/bulkcore1/TimeSection.tsx b/src/app/(App)/bulkcore1/TimeSection.tsx index 51943f69..2de1fc34 100644 --- a/src/app/(App)/bulkcore1/TimeSection.tsx +++ b/src/app/(App)/bulkcore1/TimeSection.tsx @@ -1,15 +1,17 @@ import Border from '@/components/border/Border' import TimelineComponent from '@/components/timelineComp/TimelineComp' import BuyWalletStatus from '@/components/walletStatus/BuyWalletStatus' +import { + useBrokerConstants, + useCurrentBlockNumber, + useSubstrateQuery, +} from '@/hooks/useSubstrateQuery' import { saleStatus } from '@/utils/broker' -import { ApiPromise } from '@polkadot/api' import { - BrokerConstantsType, ConfigurationType, SaleInfoType, StatusType, blockTimeToUTC, - getConstants, getCurrentBlockNumber, useBalance, useInkathon, @@ -17,92 +19,6 @@ import { import { useEffect, useMemo, useState } from 'react' import AnalyticSection from './AnalyticSection' -// Define a type for the queryParams -type QueryParams = (string | number | Record)[] - -// Custom hook for querying substrate state -function useSubstrateQuery( - api: ApiPromise | undefined, - queryKey: string, - queryParams: QueryParams = [], -) { - const [data, setData] = useState(null) - - useEffect(() => { - const fetchData = async () => { - if (api?.query?.broker?.[queryKey]) { - try { - const result = await api.query.broker[queryKey](...queryParams) - // Check if the Option type is Some and unwrap the value - if (result) { - setData(result.toString()) - } else { - setData(null) - } - } catch (error) { - console.error(`Failed to fetch ${queryKey}:`, error) - } - } - } - - fetchData() - const intervalId = setInterval(fetchData, 5000) - - return () => clearInterval(intervalId) - }, [api, queryKey, queryParams]) - - return data -} - -function useCurrentBlockNumber(api: ApiPromise | undefined) { - const [currentBlockNumber, setCurrentBlockNumber] = useState(0) - - useEffect(() => { - if (!api) return - - const fetchCurrentBlockNumber = async () => { - const currentBlock = await getCurrentBlockNumber(api) - setCurrentBlockNumber(currentBlock) - } - - const intervalId = setInterval(fetchCurrentBlockNumber, 1000) // Update every second - - return () => clearInterval(intervalId) - }, [api]) - - return currentBlockNumber -} - -function useBrokerConstants(api: ApiPromise | undefined) { - const [brokerConstants, setBrokerConstants] = useState(null) - const [isLoading, setIsLoading] = useState(true) - - useEffect(() => { - let isMounted = true - - const fetchConstants = async () => { - try { - const constants = await getConstants(api) - if (isMounted) { - setBrokerConstants(constants) - setIsLoading(false) - } - } catch (err) { - console.error(err) - setIsLoading(false) - } - } - - fetchConstants() - - return () => { - isMounted = false - } - }, [api]) - - return { brokerConstants, isLoading } -} - function calculateCurrentPrice( currentBlockNumber: number, saleInfo: SaleInfoType, diff --git a/src/app/(App)/my-cores/MyCores.tsx b/src/app/(App)/my-cores/MyCores.tsx index f0b568b6..91013e8a 100644 --- a/src/app/(App)/my-cores/MyCores.tsx +++ b/src/app/(App)/my-cores/MyCores.tsx @@ -1,9 +1,10 @@ import Border from '@/components/border/Border' import CoreItem from '@/components/cores/CoreItem' import WalletStatus from '@/components/walletStatus/WalletStatus' +import { useSubstrateQuery } from '@/hooks/useSubstrateQuery' import { parseNativeTokenToHuman } from '@/utils/account/token' -import { useBalance, useInkathon } from '@poppyseed/lastic-sdk' -import { useEffect, useState } from 'react' +import { ConfigurationType, useBalance, useInkathon } from '@poppyseed/lastic-sdk' +import { useEffect, useMemo, useState } from 'react' // Define a type for the queryParams type QueryParams = (string | number | Record)[] @@ -61,16 +62,23 @@ const useRegionQuery = () => { } export default function MyCores() { - const { activeAccount, activeChain } = useInkathon() + const { activeAccount, activeChain, api } = useInkathon() let { tokenSymbol } = useBalance(activeAccount?.address, true) const regionData = useRegionQuery() + const configurationString = useSubstrateQuery(api, 'configuration') + const [currentPage, setCurrentPage] = useState(1) const itemsPerPage = 6 const handleNextPage = () => setCurrentPage(currentPage + 1) const handlePrevPage = () => setCurrentPage(currentPage - 1) + const configuration = useMemo( + () => (configurationString ? (JSON.parse(configurationString) as ConfigurationType) : null), + [configurationString], + ) + if (!activeAccount || !activeChain) { return ( @@ -98,6 +106,7 @@ export default function MyCores() { {filteredForDisplay.map((region, index) => (
= ({ +const CoreItem: React.FC = ({ + config, coreNumber, size, cost, @@ -29,7 +32,8 @@ const Card: React.FC = ({ }) => { const beginStr = begin.replace(/,/g, '') const coreSize = parseInt(end.replace(/,/g, '')) - parseInt(begin.replace(/,/g, '')) - const bulkSize = 1260 // TODO replace this by config value + + if (!config) return null return ( @@ -40,7 +44,7 @@ const Card: React.FC = ({
{' '} {/* Container to hold both buttons next to each other */} - {coreSize < bulkSize && ( + {coreSize < config.regionLength && (
Partitioned
@@ -81,4 +85,4 @@ const Card: React.FC = ({ ) } -export default Card +export default CoreItem diff --git a/src/hooks/useSubstrateQuery.tsx b/src/hooks/useSubstrateQuery.tsx new file mode 100644 index 00000000..58d9b5c0 --- /dev/null +++ b/src/hooks/useSubstrateQuery.tsx @@ -0,0 +1,89 @@ +import { ApiPromise } from '@polkadot/api' +import { BrokerConstantsType, getConstants, getCurrentBlockNumber } from '@poppyseed/lastic-sdk' +import { useEffect, useState } from 'react' + +// Define a type for the queryParams +type QueryParams = (string | number | Record)[] + +// Custom hook for querying substrate state +export function useSubstrateQuery( + api: ApiPromise | undefined, + queryKey: string, + queryParams: QueryParams = [], +) { + const [data, setData] = useState(null) + + useEffect(() => { + const fetchData = async () => { + if (api?.query?.broker?.[queryKey]) { + try { + const result = await api.query.broker[queryKey](...queryParams) + // Check if the Option type is Some and unwrap the value + if (result) { + setData(result.toString()) + } else { + setData(null) + } + } catch (error) { + console.error(`Failed to fetch ${queryKey}:`, error) + } + } + } + + fetchData() + const intervalId = setInterval(fetchData, 5000) + + return () => clearInterval(intervalId) + }, [api, queryKey, queryParams]) + + return data +} + +export function useCurrentBlockNumber(api: ApiPromise | undefined) { + const [currentBlockNumber, setCurrentBlockNumber] = useState(0) + + useEffect(() => { + if (!api) return + + const fetchCurrentBlockNumber = async () => { + const currentBlock = await getCurrentBlockNumber(api) + setCurrentBlockNumber(currentBlock) + } + + const intervalId = setInterval(fetchCurrentBlockNumber, 1000) // Update every second + + return () => clearInterval(intervalId) + }, [api]) + + return currentBlockNumber +} + +export function useBrokerConstants(api: ApiPromise | undefined) { + const [brokerConstants, setBrokerConstants] = useState(null) + const [isLoading, setIsLoading] = useState(true) + + useEffect(() => { + let isMounted = true + + const fetchConstants = async () => { + try { + const constants = await getConstants(api) + if (isMounted) { + setBrokerConstants(constants) + setIsLoading(false) + } + } catch (err) { + console.error(err) + setIsLoading(false) + } + } + + fetchConstants() + + return () => { + isMounted = false + } + }, [api]) + + return { brokerConstants, isLoading } +} From 030c50a47fc86f7753533562419a0fe030a09375 Mon Sep 17 00:00:00 2001 From: Aurora Poppyseed Date: Wed, 17 Apr 2024 15:55:56 +0200 Subject: [PATCH 06/19] solution with cookies --- src/app/(App)/layout.tsx | 8 ++++--- src/components/web3/SupportedChains.tsx | 32 +++++++------------------ src/utils/common/getCurrentChain.ts | 12 ++++++++++ 3 files changed, 25 insertions(+), 27 deletions(-) create mode 100644 src/utils/common/getCurrentChain.ts diff --git a/src/app/(App)/layout.tsx b/src/app/(App)/layout.tsx index cf7360a5..6bdb1c37 100644 --- a/src/app/(App)/layout.tsx +++ b/src/app/(App)/layout.tsx @@ -3,7 +3,7 @@ import './globals.css' //import type { Metadata } from 'next' import ThemeProvider from '@/components/themeToggle/themeProvider' -import { env } from '@/config/environment' +import { getCurrentChain } from '@/utils/common/getCurrentChain' import { ArrowPathIcon, BoltIcon, @@ -74,6 +74,8 @@ const montserrat = Montserrat({ // } export default function RootLayout({ children }: { children: React.ReactNode }) { + const { defaultChain, relayChain } = getCurrentChain() + return ( @@ -82,8 +84,8 @@ export default function RootLayout({ children }: { children: React.ReactNode })
diff --git a/src/components/web3/SupportedChains.tsx b/src/components/web3/SupportedChains.tsx index 7d6eee3d..97ade729 100644 --- a/src/components/web3/SupportedChains.tsx +++ b/src/components/web3/SupportedChains.tsx @@ -1,12 +1,16 @@ +'use client' + import { env } from '@/config/environment' +import { getCurrentChain } from '@/utils/common/getCurrentChain' import { SubstrateChain, getSubstrateChain, useInkathon } from '@poppyseed/lastic-sdk' import Cookies from 'js-cookie' -import { FC, useEffect, useState } from 'react' +import { FC, useState } from 'react' import { toast } from 'react-hot-toast' import { FiChevronDown } from 'react-icons/fi' const SupportedChains: FC = () => { const { activeChain, switchActiveChain } = useInkathon() + const { defaultChain } = getCurrentChain() const [isDropdownOpen, setIsDropdownOpen] = useState(false) @@ -17,32 +21,12 @@ const SupportedChains: FC = () => { })), ) - useEffect(() => { - const storedNetwork = Cookies.get('activeNetwork') - if (storedNetwork && activeChain?.network !== storedNetwork) { - const chainToSwitch = supportedChains.find( - (chain) => - chain.coretime.network === storedNetwork || chain.relay.network === storedNetwork, - ) - if (chainToSwitch) { - switchActiveChain?.(chainToSwitch.coretime, chainToSwitch.relay) - } - } - }, [activeChain, supportedChains, switchActiveChain]) - - // const handleChainSwitch = async (chain: SubstrateChain, relayChain: SubstrateChain) => { - // if (chain.network !== activeChain?.network) { - // await switchActiveChain?.(chain, relayChain) - // toast.success(`Switched to ${chain.name}`) - // setIsDropdownOpen(false) // Close dropdown after switching - // } - // } - const handleChainSwitch = async (chain: SubstrateChain, relayChain: SubstrateChain) => { if (chain.network !== activeChain?.network) { + Cookies.set('activeChain', chain.network, { expires: 7 }) // Store the active chain in cookies for 7 days + Cookies.set('activeRelayChain', relayChain.network, { expires: 7 }) // Store the active relay chian in cookies for 7 days await switchActiveChain?.(chain, relayChain) toast.success(`Switched to ${chain.name}`) - Cookies.set('activeNetwork', chain.network, { expires: 7 }) // Store the active network in cookies for 7 days setIsDropdownOpen(false) // Close dropdown after switching } } @@ -53,7 +37,7 @@ const SupportedChains: FC = () => { className="flex flex-row justify-between space-x-3 items-center p-2 cursor-pointer" onClick={() => setIsDropdownOpen((prev) => !prev)} > -

Network: {activeChain?.name}

+

Network: {defaultChain}

diff --git a/src/utils/common/getCurrentChain.ts b/src/utils/common/getCurrentChain.ts new file mode 100644 index 00000000..b31d721a --- /dev/null +++ b/src/utils/common/getCurrentChain.ts @@ -0,0 +1,12 @@ +import { env } from '@/config/environment' +import Cookies from 'js-cookie' + +export const getCurrentChain = () => { + const cookiesChain = Cookies.get('activeChain') + const cookiesRelayChain = Cookies.get('activeRelayChain') + + const defaultChain = cookiesChain ? cookiesChain : env.defaultChain + const relayChain = cookiesRelayChain ? cookiesRelayChain : env.relayChain + + return { defaultChain, relayChain } +} From 8ce904daf4d87a013ab5a498024bf586a681a676 Mon Sep 17 00:00:00 2001 From: Aurora Poppyseed Date: Wed, 17 Apr 2024 17:14:16 +0200 Subject: [PATCH 07/19] network change without errors --- src/app/(App)/layout.tsx | 101 ---------------- src/app/{ => [network]}/(App)/Background.tsx | 0 src/app/{ => [network]}/(App)/Navbar.tsx | 0 .../(App)/bulkcore1/AnalyticSection.tsx | 0 .../(App)/bulkcore1/BuyCores.tsx | 0 .../(App)/bulkcore1/CoreOwners.tsx | 0 .../(App)/bulkcore1/CoreUtilisation.tsx | 0 .../(App)/bulkcore1/TimeSection.tsx | 0 .../{ => [network]}/(App)/bulkcore1/page.tsx | 0 .../(App)/bulkcore2/AnalyticSection.tsx | 0 .../(App)/bulkcore2/CoreOwners.tsx | 0 .../(App)/bulkcore2/MiniGraphSection.tsx | 0 .../(App)/bulkcore2/SearchSection.tsx | 0 .../bulkcore2/SecondaryBulkGraphSection.tsx | 0 .../{ => [network]}/(App)/bulkcore2/page.tsx | 0 .../core/[number]/[regionId]/[mask]/Core.tsx | 0 .../[regionId]/[mask]/PastTransactions.tsx | 0 .../core/[number]/[regionId]/[mask]/page.tsx | 0 src/app/{ => [network]}/(App)/globals.css | 0 .../(App)/instacore/AnalyticSection.tsx | 0 .../(App)/instacore/BuyCores.tsx | 0 .../(App)/instacore/InstaGraph.tsx | 0 .../{ => [network]}/(App)/instacore/page.tsx | 0 src/app/[network]/(App)/layout.tsx | 112 ++++++++++++++++++ .../(App)/my-cores/AnalyticSection.tsx | 0 .../(App)/my-cores/MyCores.tsx | 0 .../(App)/my-cores/PastTransactions.tsx | 0 .../{ => [network]}/(App)/my-cores/page.tsx | 0 .../(App)/paraId/AnalyticSection.tsx | 0 .../(App)/paraId/ParaIdFetch.tsx | 0 .../(App)/paraId/ParaIdRelay.tsx | 0 .../(App)/paraId/ParachainsSubscanInfo.tsx | 0 src/app/{ => [network]}/(App)/paraId/page.tsx | 0 .../(App)/renewal/AnalyticSection.tsx | 0 .../(App)/renewal/RenewFetch.tsx | 0 .../{ => [network]}/(App)/renewal/page.tsx | 0 .../(App)/samesections/SubTitle.tsx | 0 .../{ => [network]}/(App)/teleport/page.tsx | 0 .../(App)/test/CoreUtilisationKSMDOT.tsx | 0 src/app/{ => [network]}/(App)/test/page.tsx | 0 src/components/web3/SupportedChains.tsx | 55 ++++----- src/config/environment.ts | 20 +--- src/config/getSupportedChains.ts | 20 ---- src/config/getUrl.ts | 15 --- src/config/types.ts | 4 - src/hooks/useTeleport.tsx | 2 +- src/utils/common/chainPath.ts | 20 ++++ src/utils/common/getCurrentChain.ts | 12 -- 48 files changed, 161 insertions(+), 200 deletions(-) delete mode 100644 src/app/(App)/layout.tsx rename src/app/{ => [network]}/(App)/Background.tsx (100%) rename src/app/{ => [network]}/(App)/Navbar.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore1/AnalyticSection.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore1/BuyCores.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore1/CoreOwners.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore1/CoreUtilisation.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore1/TimeSection.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore1/page.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore2/AnalyticSection.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore2/CoreOwners.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore2/MiniGraphSection.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore2/SearchSection.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore2/SecondaryBulkGraphSection.tsx (100%) rename src/app/{ => [network]}/(App)/bulkcore2/page.tsx (100%) rename src/app/{ => [network]}/(App)/core/[number]/[regionId]/[mask]/Core.tsx (100%) rename src/app/{ => [network]}/(App)/core/[number]/[regionId]/[mask]/PastTransactions.tsx (100%) rename src/app/{ => [network]}/(App)/core/[number]/[regionId]/[mask]/page.tsx (100%) rename src/app/{ => [network]}/(App)/globals.css (100%) rename src/app/{ => [network]}/(App)/instacore/AnalyticSection.tsx (100%) rename src/app/{ => [network]}/(App)/instacore/BuyCores.tsx (100%) rename src/app/{ => [network]}/(App)/instacore/InstaGraph.tsx (100%) rename src/app/{ => [network]}/(App)/instacore/page.tsx (100%) create mode 100644 src/app/[network]/(App)/layout.tsx rename src/app/{ => [network]}/(App)/my-cores/AnalyticSection.tsx (100%) rename src/app/{ => [network]}/(App)/my-cores/MyCores.tsx (100%) rename src/app/{ => [network]}/(App)/my-cores/PastTransactions.tsx (100%) rename src/app/{ => [network]}/(App)/my-cores/page.tsx (100%) rename src/app/{ => [network]}/(App)/paraId/AnalyticSection.tsx (100%) rename src/app/{ => [network]}/(App)/paraId/ParaIdFetch.tsx (100%) rename src/app/{ => [network]}/(App)/paraId/ParaIdRelay.tsx (100%) rename src/app/{ => [network]}/(App)/paraId/ParachainsSubscanInfo.tsx (100%) rename src/app/{ => [network]}/(App)/paraId/page.tsx (100%) rename src/app/{ => [network]}/(App)/renewal/AnalyticSection.tsx (100%) rename src/app/{ => [network]}/(App)/renewal/RenewFetch.tsx (100%) rename src/app/{ => [network]}/(App)/renewal/page.tsx (100%) rename src/app/{ => [network]}/(App)/samesections/SubTitle.tsx (100%) rename src/app/{ => [network]}/(App)/teleport/page.tsx (100%) rename src/app/{ => [network]}/(App)/test/CoreUtilisationKSMDOT.tsx (100%) rename src/app/{ => [network]}/(App)/test/page.tsx (100%) delete mode 100644 src/config/getSupportedChains.ts delete mode 100644 src/config/getUrl.ts delete mode 100644 src/config/types.ts create mode 100644 src/utils/common/chainPath.ts delete mode 100644 src/utils/common/getCurrentChain.ts diff --git a/src/app/(App)/layout.tsx b/src/app/(App)/layout.tsx deleted file mode 100644 index 6bdb1c37..00000000 --- a/src/app/(App)/layout.tsx +++ /dev/null @@ -1,101 +0,0 @@ -'use client' - -import './globals.css' -//import type { Metadata } from 'next' -import ThemeProvider from '@/components/themeToggle/themeProvider' -import { getCurrentChain } from '@/utils/common/getCurrentChain' -import { - ArrowPathIcon, - BoltIcon, - Cog8ToothIcon, - HomeIcon, - ShoppingCartIcon, - WrenchIcon, -} from '@heroicons/react/24/solid' -import { UseInkathonProvider } from '@poppyseed/lastic-sdk' -import { Montserrat, Unbounded } from 'next/font/google' -import Background from './Background' -import Navbar from './Navbar' - -const navigation_app = [ - { - name: 'My Cores', - icon: