From 4fe247eda9aa3ccdb3bd25f4d2eb6d766b773ece Mon Sep 17 00:00:00 2001 From: Stepan Lavrentev <40560660+stepanLav@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:48:02 +0300 Subject: [PATCH] feat: adding Avail project (#18) --- avail.yaml | 65 +++++++ chainTypes/availChainTypes.ts | 183 +++++++++++++++++++ package.json | 5 +- yarn.lock | 320 +++++++++++++++++----------------- 4 files changed, 411 insertions(+), 162 deletions(-) create mode 100644 avail.yaml create mode 100644 chainTypes/availChainTypes.ts diff --git a/avail.yaml b/avail.yaml new file mode 100644 index 0000000..bb6fd5e --- /dev/null +++ b/avail.yaml @@ -0,0 +1,65 @@ +specVersion: 1.0.0 +name: subquery-proxy-avail +version: 1.0.0 +runner: + node: + name: "@subql/node" + version: "*" + query: + name: "@subql/query" + version: v1.5.0 +description: Nova SubQuery project +repository: https://github.com/nova-wallet/subquery-proxy +schema: + file: ./schema.graphql +network: + chainId: "0xb91746b45e0346cc2f815a520b9c6cb4d5c0902af848db0a80f85932d2e8276a" + endpoint: >- + wss://avail-mainnet.public.blastapi.io/ + chaintypes: + file: ./dist/availChainTypes.js +dataSources: + - name: main + kind: substrate/Runtime + startBlock: 1 + mapping: + file: ./dist/index.js + handlers: + - handler: handlePureProxyEvent + kind: substrate/EventHandler + filter: + module: proxy + method: PureCreated + - handler: handlePureProxyEvent + kind: substrate/EventHandler + filter: + module: proxy + method: AnonymousCreated + - handler: handleMultisigCall + kind: substrate/CallHandler + filter: + module: multisig + method: asMulti + success: true + isSigned: true + - handler: handleMultisigCall + kind: substrate/CallHandler + filter: + module: multisig + method: approveAsMulti + success: true + isSigned: true + - handler: handleMultisigCall + kind: substrate/CallHandler + filter: + module: multisig + method: cancelAsMulti + success: true + isSigned: true + - handler: handleMultisigCall + kind: substrate/CallHandler + filter: + module: multisig + method: asMultiThreshold1 + success: true + isSigned: true diff --git a/chainTypes/availChainTypes.ts b/chainTypes/availChainTypes.ts new file mode 100644 index 0000000..69bc937 --- /dev/null +++ b/chainTypes/availChainTypes.ts @@ -0,0 +1,183 @@ +import { OverrideBundleDefinition } from "@polkadot/types/types"; + +const definitions: OverrideBundleDefinition = { + types: [ + { + minmax: [0, undefined], + types: { + "AppId": "Compact", + "DataLookupItem": { + "appId": "AppId", + "start": "Compact" + }, + "CompactDataLookup": { + "size": "Compact", + "index": "Vec" + }, + "KateCommitment": { + "rows": "Compact", + "cols": "Compact", + "commitment": "Vec", + "dataRoot": "H256" + }, + "V3HeaderExtension": { + "appLookup": "CompactDataLookup", + "commitment": "KateCommitment" + }, + "HeaderExtension": { + "_enum": { + "V1": null, + "V2": null, + "V3": "V3HeaderExtension" + } + }, + "DaHeader": { + "parentHash": "Hash", + "number": "Compact", + "stateRoot": "Hash", + "extrinsicsRoot": "Hash", + "digest": "Digest", + "extension": "HeaderExtension" + }, + "Header": "DaHeader", + "CheckAppIdExtra": { + "appId": "AppId" + }, + "CheckAppIdTypes": {}, + "CheckAppId": { + "extra": "CheckAppIdExtra", + "types": "CheckAppIdTypes" + }, + "BlockLengthColumns": "Compact", + "BlockLengthRows": "Compact", + "BlockLength": { + "max": "PerDispatchClass", + "cols": "BlockLengthColumns", + "rows": "BlockLengthRows", + "chunkSize": "Compact" + }, + "PerDispatchClass": { + "normal": "u32", + "operational": "u32", + "mandatory": "u32" + }, + "DataProof": { + "roots": "TxDataRoots", + "proof": "Vec", + "numberOfLeaves": "Compact", + "leafIndex": "Compact", + "leaf": "H256" + }, + "TxDataRoots": { + "dataRoot": "H256", + "blobRoot": "H256", + "bridgeRoot": "H256" + }, + "ProofResponse": { + "dataProof": "DataProof", + "message": "Option" + }, + "AddressedMessage": { + "message": "Message", + "from": "H256", + "to": "H256", + "originDomain": "u32", + "destinationDomain": "u32", + "id": "u64" + }, + "Message": { + "_enum": { + "ArbitraryMessage": "ArbitraryMessage", + "FungibleToken": "FungibleToken" + } + }, + "MessageType": { + "_enum": [ + "ArbitraryMessage", + "FungibleToken" + ] + }, + "FungibleToken": { + "assetId": "H256", + "amount": "String" + }, + "BoundedData": "Vec", + "ArbitraryMessage": "BoundedData", + "Cell": { + "row": "u32", + "col": "u32" + } + }, + }, + ], + rpc: { + "kate": { + "blockLength": { + "description": "Get Block Length", + "params": [ + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "BlockLength" + }, + "queryProof": { + "description": "Generate the kate proof for the given `cells`", + "params": [ + { + "name": "cells", + "type": "Vec" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "Vec<(U256, [u8; 48])>" + }, + "queryDataProof": { + "description": "Generate the data proof for the given `transaction_index`", + "params": [ + { + "name": "transaction_index", + "type": "u32" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "ProofResponse" + }, + "queryRows": { + "description": "Query rows based on their indices", + "params": [ + { + "name": "rows", + "type": "Vec" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "Vec>" + } + } + }, + signedExtensions: { + "CheckAppId": { + "extrinsic": { + "appId": "AppId" + }, + "payload": {} + } + } +}; + +export default { typesBundle: { spec: { "avail": definitions } } }; \ No newline at end of file diff --git a/package.json b/package.json index 8521440..bc6116d 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "author": "Novasama Technlogies", "license": "MIT", "devDependencies": { - "@polkadot/api": "^10", + "@polkadot/api": "^11", "@subql/cli": "latest", "@subql/testing": "latest", "@subql/types": "latest", @@ -49,6 +49,7 @@ "moonbeamChaintypes": "./chainTypes/moonbeamChaintypes.ts", "bittensorChaintypes": "./chainTypes/bittensorChainTypes.ts", "alephZeroChaintypes": "./chainTypes/alephZeroChaintypes.ts", - "kusamaAssetHubChaintypes": "./chainTypes/kusamaAssetHubChaintypes.ts" + "kusamaAssetHubChaintypes": "./chainTypes/kusamaAssetHubChaintypes.ts", + "availChainTypes": "./chainTypes/availChainTypes.ts" } } diff --git a/yarn.lock b/yarn.lock index 4679cc1..5fa23dc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2002,35 +2002,33 @@ "@polkadot-api/substrate-client" "0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" "@polkadot-api/utils" "0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" -"@polkadot-api/client@0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0": - version "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - resolved "https://registry.yarnpkg.com/@polkadot-api/client/-/client-0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0.tgz#5d6b863f63f5c6ecd4183fcf0c5c84dd349f7627" - integrity sha512-0fqK6pUKcGHSG2pBvY+gfSS+1mMdjd/qRygAcKI5d05tKsnZLRnmhb9laDguKmGEIB0Bz9vQqNK3gIN/cfvVwg== - dependencies: - "@polkadot-api/metadata-builders" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - "@polkadot-api/substrate-bindings" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - "@polkadot-api/substrate-client" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - "@polkadot-api/utils" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" +"@polkadot-api/json-rpc-provider-proxy@0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@polkadot-api/json-rpc-provider-proxy/-/json-rpc-provider-proxy-0.0.1.tgz#bb5c943642cdf0ec7bc48c0a2647558b9fcd7bdb" + integrity sha512-gmVDUP8LpCH0BXewbzqXF2sdHddq1H1q+XrAW2of+KZj4woQkIGBRGTJHeBEVHe30EB+UejR1N2dT4PO/RvDdg== "@polkadot-api/json-rpc-provider-proxy@0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": version "0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" resolved "https://registry.yarnpkg.com/@polkadot-api/json-rpc-provider-proxy/-/json-rpc-provider-proxy-0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0.tgz#f12f53b25229efa6d0e393e205cb61a0110b8f25" integrity sha512-hzupcyUtObK6W1dyyeEp4BJBHRiGecB6t6YJQPk78UY1PnLsqFiboNh5doAywf+DoGBT1YXlxbYBAE3Wg43c9w== -"@polkadot-api/json-rpc-provider-proxy@0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0": - version "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - resolved "https://registry.yarnpkg.com/@polkadot-api/json-rpc-provider-proxy/-/json-rpc-provider-proxy-0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0.tgz#cc28fb801db6a47824261a709ab924ec6951eb96" - integrity sha512-0hZ8vtjcsyCX8AyqP2sqUHa1TFFfxGWmlXJkit0Nqp9b32MwZqn5eaUAiV2rNuEpoglKOdKnkGtUF8t5MoodKw== +"@polkadot-api/json-rpc-provider@0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@polkadot-api/json-rpc-provider/-/json-rpc-provider-0.0.1.tgz#333645d40ccd9bccfd1f32503f17e4e63e76e297" + integrity sha512-/SMC/l7foRjpykLTUTacIH05H3mr9ip8b5xxfwXlVezXrNVLp3Cv0GX6uItkKd+ZjzVPf3PFrDF2B2/HLSNESA== "@polkadot-api/json-rpc-provider@0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": version "0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" resolved "https://registry.yarnpkg.com/@polkadot-api/json-rpc-provider/-/json-rpc-provider-0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0.tgz#c27d6139d1641eddf3c566966f447688c7f87909" integrity sha512-772gcl5MXdmIvXuhJwVqM/APp+6f6ocRGfzcYoFfdghJ4A68l9ir1SDny691vcJXE8CQ7NAcz5Gl3t1Gz1MIqg== -"@polkadot-api/json-rpc-provider@0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0": - version "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - resolved "https://registry.yarnpkg.com/@polkadot-api/json-rpc-provider/-/json-rpc-provider-0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0.tgz#2f71bfb192d28dd4c400ef8b1c5f934c676950f3" - integrity sha512-EaUS9Fc3wsiUr6ZS43PQqaRScW7kM6DYbuM/ou0aYjm8N9MBqgDbGm2oL6RE1vAVmOfEuHcXZuZkhzWtyvQUtA== +"@polkadot-api/metadata-builders@0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@polkadot-api/metadata-builders/-/metadata-builders-0.0.1.tgz#a76b48febef9ea72be8273d889e2677101045a05" + integrity sha512-GCI78BHDzXAF/L2pZD6Aod/yl82adqQ7ftNmKg51ixRL02JpWUA+SpUKTJE5MY1p8kiJJIo09P2um24SiJHxNA== + dependencies: + "@polkadot-api/substrate-bindings" "0.0.1" + "@polkadot-api/utils" "0.0.1" "@polkadot-api/metadata-builders@0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": version "0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" @@ -2040,13 +2038,25 @@ "@polkadot-api/substrate-bindings" "0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" "@polkadot-api/utils" "0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" -"@polkadot-api/metadata-builders@0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0": - version "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - resolved "https://registry.yarnpkg.com/@polkadot-api/metadata-builders/-/metadata-builders-0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0.tgz#085db2a3c7b100626b2fae3be35a32a24ea7714f" - integrity sha512-BD7rruxChL1VXt0icC2gD45OtT9ofJlql0qIllHSRYgama1CR2Owt+ApInQxB+lWqM+xNOznZRpj8CXNDvKIMg== +"@polkadot-api/observable-client@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@polkadot-api/observable-client/-/observable-client-0.1.0.tgz#472045ea06a2bc4bccdc2db5c063eadcbf6f5351" + integrity sha512-GBCGDRztKorTLna/unjl/9SWZcRmvV58o9jwU2Y038VuPXZcr01jcw/1O3x+yeAuwyGzbucI/mLTDa1QoEml3A== dependencies: - "@polkadot-api/substrate-bindings" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - "@polkadot-api/utils" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" + "@polkadot-api/metadata-builders" "0.0.1" + "@polkadot-api/substrate-bindings" "0.0.1" + "@polkadot-api/substrate-client" "0.0.1" + "@polkadot-api/utils" "0.0.1" + +"@polkadot-api/substrate-bindings@0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@polkadot-api/substrate-bindings/-/substrate-bindings-0.0.1.tgz#c4b7f4d6c3672d2c15cbc6c02964f014b73cbb0b" + integrity sha512-bAe7a5bOPnuFVmpv7y4BBMRpNTnMmE0jtTqRUw/+D8ZlEHNVEJQGr4wu3QQCl7k1GnSV1wfv3mzIbYjErEBocg== + dependencies: + "@noble/hashes" "^1.3.1" + "@polkadot-api/utils" "0.0.1" + "@scure/base" "^1.1.1" + scale-ts "^1.6.0" "@polkadot-api/substrate-bindings@0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": version "0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" @@ -2058,46 +2068,36 @@ "@scure/base" "^1.1.1" scale-ts "^1.4.3" -"@polkadot-api/substrate-bindings@0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0": - version "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - resolved "https://registry.yarnpkg.com/@polkadot-api/substrate-bindings/-/substrate-bindings-0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0.tgz#f836a554a9ead6fb6356079c725cd53f87238932" - integrity sha512-N4vdrZopbsw8k57uG58ofO7nLXM4Ai7835XqakN27MkjXMp5H830A1KJE0L9sGQR7ukOCDEIHHcwXVrzmJ/PBg== - dependencies: - "@noble/hashes" "^1.3.1" - "@polkadot-api/utils" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - "@scure/base" "^1.1.1" - scale-ts "^1.6.0" +"@polkadot-api/substrate-client@0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@polkadot-api/substrate-client/-/substrate-client-0.0.1.tgz#0e8010a0abe2fb47d6fa7ab94e45e1d0de083314" + integrity sha512-9Bg9SGc3AwE+wXONQoW8GC00N3v6lCZLW74HQzqB6ROdcm5VAHM4CB/xRzWSUF9CXL78ugiwtHx3wBcpx4H4Wg== "@polkadot-api/substrate-client@0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": version "0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" resolved "https://registry.yarnpkg.com/@polkadot-api/substrate-client/-/substrate-client-0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0.tgz#a341f49a8df48f06f87aa615ea1ba5f2de9e0c66" integrity sha512-rHLhKLJxv9CSplu+tXOgpxBwYDXCh32xwbJcZqxMWlXkjoNI2OB9hulX/3GJ0NE/ngMh3DV1hrqNLmyc/8PU+A== -"@polkadot-api/substrate-client@0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0": - version "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - resolved "https://registry.yarnpkg.com/@polkadot-api/substrate-client/-/substrate-client-0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0.tgz#55ae463f4143495e328465dd16b03e71663ef4c4" - integrity sha512-lcdvd2ssUmB1CPzF8s2dnNOqbrDa+nxaaGbuts+Vo8yjgSKwds2Lo7Oq+imZN4VKW7t9+uaVcKFLMF7PdH0RWw== +"@polkadot-api/utils@0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@polkadot-api/utils/-/utils-0.0.1.tgz#908b22becac705149d7cc946532143d0fb003bfc" + integrity sha512-3j+pRmlF9SgiYDabSdZsBSsN5XHbpXOAce1lWj56IEEaFZVjsiCaxDOA7C9nCcgfVXuvnbxqqEGQvnY+QfBAUw== "@polkadot-api/utils@0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0": version "0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0" resolved "https://registry.yarnpkg.com/@polkadot-api/utils/-/utils-0.0.1-12c4b0432a814086c3c1a3b8052b31c72c2c9ad3.1.0.tgz#6130f32e0a3e08f7733d7a9f2caf3133fe88012c" integrity sha512-H7hOfilvx65wYxMjAI130rK34GcAPzMEuoP5W693N0PsXYc1QeoEHSza5NSgoN1U4jGNzDBoxu0al2WGKo1B5g== -"@polkadot-api/utils@0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0": - version "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - resolved "https://registry.yarnpkg.com/@polkadot-api/utils/-/utils-0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0.tgz#759698dcf948745ea37cc5ab6abd49a00f1b0c31" - integrity sha512-0CYaCjfLQJTCRCiYvZ81OncHXEKPzAexCMoVloR+v2nl/O2JRya/361MtPkeNLC6XBoaEgLAG9pWQpH3WePzsw== - -"@polkadot/api-augment@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-10.12.4.tgz#cbf03b97d60c204d05cb2478e6f862e68877cd71" - integrity sha512-ZKKeA8OnB1kkqBlvMhTw7QpPsRxpf/OE2UGhuCabQmU+MysYaWTPGssqAFEBqUZ+iyvTk83s+ssoMlXxdIhblA== - dependencies: - "@polkadot/api-base" "10.12.4" - "@polkadot/rpc-augment" "10.12.4" - "@polkadot/types" "10.12.4" - "@polkadot/types-augment" "10.12.4" - "@polkadot/types-codec" "10.12.4" +"@polkadot/api-augment@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-11.3.1.tgz#c7deeac438b017613e244c25505216a9d4c3977e" + integrity sha512-Yj+6rb6h0WwY3yJ+UGhjGW+tyMRFUMsKQuGw+eFsXdjiNU9UoXsAqA2dG7Q1F+oeX/g+y2gLGBezNoCwbl6HfA== + dependencies: + "@polkadot/api-base" "11.3.1" + "@polkadot/rpc-augment" "11.3.1" + "@polkadot/types" "11.3.1" + "@polkadot/types-augment" "11.3.1" + "@polkadot/types-codec" "11.3.1" "@polkadot/util" "^12.6.2" tslib "^2.6.2" @@ -2138,13 +2138,13 @@ rxjs "^7.8.1" tslib "^2.6.2" -"@polkadot/api-base@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-10.12.4.tgz#a4bcb69097e177ad2a2e67e89857244f34931e0b" - integrity sha512-e9s5rW9KgR+xs3sTI3B38KKQnd+D0WZ3PyNm66Q9aqIZDgDmpe9LIdmKfrqsX/rH74132Fq90mt3aN//DpwgBg== +"@polkadot/api-base@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-11.3.1.tgz#6c74c88d4a4b3d22344bb8715a135493f5a3dd33" + integrity sha512-b8UkNL00NN7+3QaLCwL5cKg+7YchHoKCAhwKusWHNBZkkO6Oo2BWilu0dZkPJOyqV9P389Kbd9+oH+SKs9u2VQ== dependencies: - "@polkadot/rpc-core" "10.12.4" - "@polkadot/types" "10.12.4" + "@polkadot/rpc-core" "11.3.1" + "@polkadot/types" "11.3.1" "@polkadot/util" "^12.6.2" rxjs "^7.8.1" tslib "^2.6.2" @@ -2160,17 +2160,17 @@ "@polkadot/util" "^10.4.2" rxjs "^7.8.0" -"@polkadot/api-derive@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-10.12.4.tgz#a3b4cc3eb685dd3255d36e534f6810af668a5b45" - integrity sha512-V5DogVPWoMw8U6V5hCkxDZP2qpashLUruyWVDcGhQmMb0f5d5PG/dPlZ3CzvAars6G2ypJ8ciSNKDdApP5JWaQ== - dependencies: - "@polkadot/api" "10.12.4" - "@polkadot/api-augment" "10.12.4" - "@polkadot/api-base" "10.12.4" - "@polkadot/rpc-core" "10.12.4" - "@polkadot/types" "10.12.4" - "@polkadot/types-codec" "10.12.4" +"@polkadot/api-derive@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-11.3.1.tgz#3617655b6dab56d5beb8efbf7383ab457370df35" + integrity sha512-9dopzrh4cRuft1nANmBvMY/hEhFDu0VICMTOGxQLOl8NMfcOFPTLAN0JhSBUoicGZhV+c4vpv01NBx/7/IL1HA== + dependencies: + "@polkadot/api" "11.3.1" + "@polkadot/api-augment" "11.3.1" + "@polkadot/api-base" "11.3.1" + "@polkadot/rpc-core" "11.3.1" + "@polkadot/types" "11.3.1" + "@polkadot/types-codec" "11.3.1" "@polkadot/util" "^12.6.2" "@polkadot/util-crypto" "^12.6.2" rxjs "^7.8.1" @@ -2192,23 +2192,23 @@ "@polkadot/util-crypto" "^10.4.2" rxjs "^7.8.0" -"@polkadot/api@10.12.4", "@polkadot/api@^10": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-10.12.4.tgz#eeec23a45a26d173b5717e1b840d2d2fb19a9fc7" - integrity sha512-bCWF1ciMqvy2XusHRk2AGKgOmod2dk/4WqQu43F8OSUXuazDOXeYJgJTv/oDznU6xQASW7awntp3JpSvsxviaA== +"@polkadot/api@11.3.1", "@polkadot/api@^11": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-11.3.1.tgz#6092aea8147ea03873b3f383cceae0390a67f71d" + integrity sha512-q4kFIIHTLvKxM24b0Eo8hJevsPMme+aITJGrDML9BgdZYTRN14+cu5nXiCsQvaEamdyYj+uCXWe2OV9X7pPxsA== dependencies: - "@polkadot/api-augment" "10.12.4" - "@polkadot/api-base" "10.12.4" - "@polkadot/api-derive" "10.12.4" + "@polkadot/api-augment" "11.3.1" + "@polkadot/api-base" "11.3.1" + "@polkadot/api-derive" "11.3.1" "@polkadot/keyring" "^12.6.2" - "@polkadot/rpc-augment" "10.12.4" - "@polkadot/rpc-core" "10.12.4" - "@polkadot/rpc-provider" "10.12.4" - "@polkadot/types" "10.12.4" - "@polkadot/types-augment" "10.12.4" - "@polkadot/types-codec" "10.12.4" - "@polkadot/types-create" "10.12.4" - "@polkadot/types-known" "10.12.4" + "@polkadot/rpc-augment" "11.3.1" + "@polkadot/rpc-core" "11.3.1" + "@polkadot/rpc-provider" "11.3.1" + "@polkadot/types" "11.3.1" + "@polkadot/types-augment" "11.3.1" + "@polkadot/types-codec" "11.3.1" + "@polkadot/types-create" "11.3.1" + "@polkadot/types-known" "11.3.1" "@polkadot/util" "^12.6.2" "@polkadot/util-crypto" "^12.6.2" eventemitter3 "^5.0.1" @@ -2285,14 +2285,14 @@ "@polkadot/util" "^12.6.2" tslib "^2.6.2" -"@polkadot/rpc-augment@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-10.12.4.tgz#b41d88119aee801738b350d55bdab129f88fd5cd" - integrity sha512-GELqgtpoxmvFdXREYhrTGAFJ+xnQp8IYHFFtixfLM3SeV/F5FF0T7c1jSJ4PlEgK1tYg/KQ/DLl21fF7aWaInA== +"@polkadot/rpc-augment@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-11.3.1.tgz#b589ef5b7ab578cf274077604543071ce9889301" + integrity sha512-2PaDcKNju4QYQpxwVkWbRU3M0t340nMX9cMo+8awgvgL1LliV/fUDZueMKLuSS910JJMTPQ7y2pK4eQgMt08gQ== dependencies: - "@polkadot/rpc-core" "10.12.4" - "@polkadot/types" "10.12.4" - "@polkadot/types-codec" "10.12.4" + "@polkadot/rpc-core" "11.3.1" + "@polkadot/types" "11.3.1" + "@polkadot/types-codec" "11.3.1" "@polkadot/util" "^12.6.2" tslib "^2.6.2" @@ -2319,14 +2319,14 @@ rxjs "^7.8.1" tslib "^2.6.2" -"@polkadot/rpc-core@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-10.12.4.tgz#ecb5500335e6e202d0551356928289725321cf7c" - integrity sha512-OtOW3AQyvDR+0G7VylfwEyE5XnYhHrcRtGULT9NzjZTVHnDFghNIYoDcu6ucHBuMsvx5mbyaXsRtWDDZdr4trw== +"@polkadot/rpc-core@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-11.3.1.tgz#c23e23ee5c403c4edb207d603ae4dc16e69bc710" + integrity sha512-KKNepsDd/mpmXcA6v/h14eFFPEzLGd7nrvx2UUXUxoZ0Fq2MH1hplP3s93k1oduNY/vOXJR2K9S4dKManA6GVQ== dependencies: - "@polkadot/rpc-augment" "10.12.4" - "@polkadot/rpc-provider" "10.12.4" - "@polkadot/types" "10.12.4" + "@polkadot/rpc-augment" "11.3.1" + "@polkadot/rpc-provider" "11.3.1" + "@polkadot/types" "11.3.1" "@polkadot/util" "^12.6.2" rxjs "^7.8.1" tslib "^2.6.2" @@ -2363,14 +2363,14 @@ optionalDependencies: "@substrate/connect" "0.8.7" -"@polkadot/rpc-provider@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-10.12.4.tgz#91fc29064e9d8152d8fec8fbf401b5be7ab3716e" - integrity sha512-awXLK28nt6BvOwoTnOVPtz+Qu5sx40Al1yb5lzKG6jYFQrEmqrENufHNOCLU3Uspfqmc6eJmNluZOmVtJKDCPg== +"@polkadot/rpc-provider@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-11.3.1.tgz#1d1289bf42d065b5f04f9baa46ef90d96940819e" + integrity sha512-pqERChoHo45hd3WAgW8UuzarRF+G/o/eXEbl0PXLubiayw4X4qCmIzmtntUcKYgxGNcYGZaG87ZU8OjN97m6UA== dependencies: "@polkadot/keyring" "^12.6.2" - "@polkadot/types" "10.12.4" - "@polkadot/types-support" "10.12.4" + "@polkadot/types" "11.3.1" + "@polkadot/types-support" "11.3.1" "@polkadot/util" "^12.6.2" "@polkadot/util-crypto" "^12.6.2" "@polkadot/x-fetch" "^12.6.2" @@ -2381,7 +2381,7 @@ nock "^13.5.0" tslib "^2.6.2" optionalDependencies: - "@substrate/connect" "0.8.8" + "@substrate/connect" "0.8.10" "@polkadot/rpc-provider@9.14.2": version "9.14.2" @@ -2413,13 +2413,13 @@ "@polkadot/util" "^12.6.2" tslib "^2.6.2" -"@polkadot/types-augment@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-10.12.4.tgz#e396b9a0a9bf428a4352cbb36ecf3a5ebc696e19" - integrity sha512-BS7uMd5WzbpcXimYcbwQGJFjsZikVW1XXPS3FHAkcdPOKm1qWZ/r3V18XH9G4DKj0O0s4VrdVTl0nMcOZurKKg== +"@polkadot/types-augment@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-11.3.1.tgz#1f7f553f0ca6eb8fbc0306901edc045fe18729e1" + integrity sha512-eR3HVpvUmB3v7q2jTWVmVfAVfb1/kuNn7ij94Zqadg/fuUq0pKqIOKwkUj3OxRM3A/5BnW3MbgparjKD3r+fyw== dependencies: - "@polkadot/types" "10.12.4" - "@polkadot/types-codec" "10.12.4" + "@polkadot/types" "11.3.1" + "@polkadot/types-codec" "11.3.1" "@polkadot/util" "^12.6.2" tslib "^2.6.2" @@ -2442,10 +2442,10 @@ "@polkadot/x-bigint" "^12.6.2" tslib "^2.6.2" -"@polkadot/types-codec@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-10.12.4.tgz#21052005bb448814d0d16230c1835a81f601e450" - integrity sha512-8SEwgQT+JfmI62C9MZisA/1oQFuQW1OySvZFZlSqkaoRooK+JMl7Sp9fnRhCuiHMiz08YO4lX16O+aAu0/bmmw== +"@polkadot/types-codec@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-11.3.1.tgz#2767cf482cd49afdd5dce9701615f68ec59cec5e" + integrity sha512-i7IiiuuL+Z/jFoKTA9xeh4wGQnhnNNjMT0+1ohvlOvnFsoKZKFQQOaDPPntGJVL1JDCV+KjkN2uQKZSeW8tguQ== dependencies: "@polkadot/util" "^12.6.2" "@polkadot/x-bigint" "^12.6.2" @@ -2469,12 +2469,12 @@ "@polkadot/util" "^12.6.2" tslib "^2.6.2" -"@polkadot/types-create@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-10.12.4.tgz#f271a9625ab9d533f41e10ad1ffac7a9d7a910f1" - integrity sha512-K3a6q+q+as/FfxrbXgFdgK8aqrsUgAkH5c0KQS+nt6xMs+Yf2ctpqiLPOjOEVEw8kHRpYtjx1db8Namegk51ig== +"@polkadot/types-create@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-11.3.1.tgz#3ac2c8283f61555f9e572ca30e3485b95a0a54e2" + integrity sha512-pBXtpz5FehcRJ6j5MzFUIUN8ZWM7z6HbqK1GxBmYbJVRElcGcOg7a/rL2pQVphU0Rx1E8bSO4thzGf4wUxSX7w== dependencies: - "@polkadot/types-codec" "10.12.4" + "@polkadot/types-codec" "11.3.1" "@polkadot/util" "^12.6.2" tslib "^2.6.2" @@ -2487,15 +2487,15 @@ "@polkadot/types-codec" "9.14.2" "@polkadot/util" "^10.4.2" -"@polkadot/types-known@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-10.12.4.tgz#5a2c002a0af405a11f11ee93c3b2bb95788db03d" - integrity sha512-fiS26ep9QwHIUn/N0X9R3DIFP8ar4cEG/oJyxs5uBNtIEiAZdWucEZAZFxJnNp6Lib0PGYaz9T9ph0+UbnKKEg== +"@polkadot/types-known@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-11.3.1.tgz#fc34ed29ac2474db6b66805a15d12008226346bb" + integrity sha512-3BIof7u6tn9bk3ZCIxA07iNoQ3uj4+vn3DTOjCKECozkRlt6V+kWRvqh16Hc0SHMg/QjcMb2fIu/WZhka1McUQ== dependencies: "@polkadot/networks" "^12.6.2" - "@polkadot/types" "10.12.4" - "@polkadot/types-codec" "10.12.4" - "@polkadot/types-create" "10.12.4" + "@polkadot/types" "11.3.1" + "@polkadot/types-codec" "11.3.1" + "@polkadot/types-create" "11.3.1" "@polkadot/util" "^12.6.2" tslib "^2.6.2" @@ -2519,10 +2519,10 @@ "@polkadot/util" "^12.6.2" tslib "^2.6.2" -"@polkadot/types-support@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-10.12.4.tgz#e59db00e2d7665d2a32d5f8c18d548ad2b10e1bd" - integrity sha512-uK0AoxzbuFEwlR3eoTKdWuZxAKYOn2B67Xo+swwRL0/VTZvEc6mGnFUd1RfVM+cWKfH3eqwKQCYhjvFRlOkA8g== +"@polkadot/types-support@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-11.3.1.tgz#dee02a67784baa13177fe9957f5d8d62e8a7e570" + integrity sha512-jTFz1GKyF7nI29yIOq4v0NiWTOf5yX4HahJNeFD8TcxoLhF+6tH/XXqrUXJEfbaTlSrRWiW1LZYlb+snctqKHA== dependencies: "@polkadot/util" "^12.6.2" tslib "^2.6.2" @@ -2549,15 +2549,15 @@ rxjs "^7.8.1" tslib "^2.6.2" -"@polkadot/types@10.12.4": - version "10.12.4" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-10.12.4.tgz#6c26c81fd523c1b75e53eccf676f3d8697358699" - integrity sha512-KJfxAdOyA/ZmGzRpRWojZx6hOU4iFHiwmerAZQzxELMCUCSsAd4joiXWQX7leSrlJCvvk8/VecnXGTqRe8jtGw== +"@polkadot/types@11.3.1": + version "11.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-11.3.1.tgz#bab61b701218158099e3f548d20efc27cbf1287f" + integrity sha512-5c7uRFXQTT11Awi6T0yFIdAfD6xGDAOz06Kp7M5S9OGNZY28wSPk5x6BYfNphWPaIBmHHewYJB5qmnrdYQAWKQ== dependencies: "@polkadot/keyring" "^12.6.2" - "@polkadot/types-augment" "10.12.4" - "@polkadot/types-codec" "10.12.4" - "@polkadot/types-create" "10.12.4" + "@polkadot/types-augment" "11.3.1" + "@polkadot/types-codec" "11.3.1" + "@polkadot/types-create" "11.3.1" "@polkadot/util" "^12.6.2" "@polkadot/util-crypto" "^12.6.2" rxjs "^7.8.1" @@ -3462,10 +3462,10 @@ resolved "https://registry.yarnpkg.com/@substrate/connect-known-chains/-/connect-known-chains-1.0.9.tgz#8b83d9a374e2d4fb236a6be2aef46bc93a64ca49" integrity sha512-HN8qdtHZxs0ttc+ZUTm0apBNzVHx/Eo1zTGjxg7pn87/991lcGGcKQ+tyVsuLWNuraN+FaPUuiiW59TE11Ae4w== -"@substrate/connect-known-chains@^1.1.1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@substrate/connect-known-chains/-/connect-known-chains-1.1.2.tgz#987952dd46a87485285b4fd74a3d3051efe90181" - integrity sha512-XvyemTVqon+6EF2G7QL0fEXxjuz3nUNFgFV0TSWhSVpPb+Sfs+vfipbEZxGNouxvjCoJdr6CF0rwgGsrrKOnAA== +"@substrate/connect-known-chains@^1.1.4": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@substrate/connect-known-chains/-/connect-known-chains-1.7.0.tgz#01e0a576d336cf8ca7e18e07bc9f3a2e7f527d8d" + integrity sha512-Qf+alxEPmNycUyrPkXWrlFA97punnBCGxSWqiLG1CNu+jQoFYqi8x7gZYfqmdUHDY4nG1F84KHPPk7Zy4ngSfg== "@substrate/connect@0.7.19": version "0.7.19" @@ -3476,6 +3476,16 @@ "@substrate/smoldot-light" "0.7.9" eventemitter3 "^4.0.7" +"@substrate/connect@0.8.10": + version "0.8.10" + resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.8.10.tgz#810b6589f848828aa840c731a1f36b84fe0e5956" + integrity sha512-DIyQ13DDlXqVFnLV+S6/JDgiGowVRRrh18kahieJxhgvzcWicw5eLc6jpfQ0moVVLBYkO7rctB5Wreldwpva8w== + dependencies: + "@substrate/connect-extension-protocol" "^2.0.0" + "@substrate/connect-known-chains" "^1.1.4" + "@substrate/light-client-extension-helpers" "^0.0.6" + smoldot "2.0.22" + "@substrate/connect@0.8.7": version "0.8.7" resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.8.7.tgz#94dc18cc330d9834b948894848ae112dd2e8689d" @@ -3486,16 +3496,6 @@ "@substrate/light-client-extension-helpers" "^0.0.3" smoldot "2.0.21" -"@substrate/connect@0.8.8": - version "0.8.8" - resolved "https://registry.yarnpkg.com/@substrate/connect/-/connect-0.8.8.tgz#80879f2241e2bd4f24a9aa25d7997fd91a5e68e3" - integrity sha512-zwaxuNEVI9bGt0rT8PEJiXOyebLIo6QN1SyiAHRPBOl6g3Sy0KKdSN8Jmyn++oXhVRD8aIe75/V8ZkS81T+BPQ== - dependencies: - "@substrate/connect-extension-protocol" "^2.0.0" - "@substrate/connect-known-chains" "^1.1.1" - "@substrate/light-client-extension-helpers" "^0.0.4" - smoldot "2.0.22" - "@substrate/light-client-extension-helpers@^0.0.3": version "0.0.3" resolved "https://registry.yarnpkg.com/@substrate/light-client-extension-helpers/-/light-client-extension-helpers-0.0.3.tgz#e87ed4dd61b671f6987a76411de6f685070f3ae6" @@ -3509,17 +3509,17 @@ "@substrate/connect-known-chains" "^1.0.7" rxjs "^7.8.1" -"@substrate/light-client-extension-helpers@^0.0.4": - version "0.0.4" - resolved "https://registry.yarnpkg.com/@substrate/light-client-extension-helpers/-/light-client-extension-helpers-0.0.4.tgz#a5958d5c1aac7df69f55bd90991aa935500f8124" - integrity sha512-vfKcigzL0SpiK+u9sX6dq2lQSDtuFLOxIJx2CKPouPEHIs8C+fpsufn52r19GQn+qDhU8POMPHOVoqLktj8UEA== +"@substrate/light-client-extension-helpers@^0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@substrate/light-client-extension-helpers/-/light-client-extension-helpers-0.0.6.tgz#bec1c7997241226db50b44ad85a992b4348d21c3" + integrity sha512-girltEuxQ1BvkJWmc8JJlk4ZxnlGXc/wkLcNguhY+UoDEMBK0LsdtfzQKIfrIehi4QdeSBlFEFBoI4RqPmsZzA== dependencies: - "@polkadot-api/client" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - "@polkadot-api/json-rpc-provider" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - "@polkadot-api/json-rpc-provider-proxy" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" - "@polkadot-api/substrate-client" "0.0.1-492c132563ea6b40ae1fc5470dec4cd18768d182.1.0" + "@polkadot-api/json-rpc-provider" "0.0.1" + "@polkadot-api/json-rpc-provider-proxy" "0.0.1" + "@polkadot-api/observable-client" "0.1.0" + "@polkadot-api/substrate-client" "0.0.1" "@substrate/connect-extension-protocol" "^2.0.0" - "@substrate/connect-known-chains" "^1.1.1" + "@substrate/connect-known-chains" "^1.1.4" rxjs "^7.8.1" "@substrate/smoldot-light@0.7.9":