From 4afacecb0324360ed77defaf97385ae34982c574 Mon Sep 17 00:00:00 2001 From: Rikkard29 Date: Mon, 16 Oct 2023 10:17:58 +0200 Subject: [PATCH] Update nodes & refactor handleAddress function --- package.json | 3 +- pnpm-lock.yaml | 1221 +++++++++++++---- src/index.ts | 2 +- src/maps/assets.json | 507 +++++-- src/maps/consts.ts | 47 +- src/maps/pallets.json | 42 +- src/nodes/ParachainNode.ts | 24 +- src/nodes/supported/Amplitude.ts | 4 +- .../{Statemine.ts => AssetHubKusama.ts} | 12 +- .../{Statemint.ts => AssetHubPolkadot.ts} | 10 +- src/nodes/supported/Centrifuge.ts | 2 +- src/nodes/supported/ComposableFinance.ts | 2 +- src/nodes/supported/Dorafactory.ts | 18 - src/nodes/supported/Efinity.ts | 18 - src/nodes/supported/Encointer.ts | 2 +- src/nodes/supported/Equilibrium.ts | 2 +- src/nodes/supported/Genshiro.ts | 27 + src/nodes/supported/HydraDX.ts | 4 +- src/nodes/supported/Imbue.ts | 2 +- src/nodes/supported/Integritee.ts | 5 +- src/nodes/supported/InvArchTinker.ts | 6 +- src/nodes/supported/Kico.ts | 18 - src/nodes/supported/Litentry.ts | 2 +- src/nodes/supported/Manta.ts | 17 + src/nodes/supported/Nodle.ts | 28 + src/nodes/supported/OriginTrail.ts | 21 + src/nodes/supported/ParallelHeiko.ts | 2 +- src/nodes/supported/Pendulum.ts | 28 + src/nodes/supported/Pichiu.ts | 18 - src/nodes/supported/Polkadex.ts | 17 + src/nodes/supported/Turing.ts | 2 +- src/nodes/supported/Zeidgeist.ts | 17 + src/pallets/assets/assets.test.ts | 35 +- src/pallets/assets/assets.ts | 8 +- src/pallets/assets/assetsUtils.test.ts | 14 +- src/pallets/assets/assetsUtils.ts | 2 +- src/pallets/xcmPallet/transfer.test.ts | 16 +- src/pallets/xcmPallet/transfer.ts | 24 +- src/scripts/updateAssets.ts | 93 +- src/types.ts | 14 +- src/utils.test.ts | 2 +- src/utils.ts | 414 ++---- 42 files changed, 1841 insertions(+), 911 deletions(-) rename src/nodes/supported/{Statemine.ts => AssetHubKusama.ts} (53%) rename src/nodes/supported/{Statemint.ts => AssetHubPolkadot.ts} (61%) delete mode 100644 src/nodes/supported/Dorafactory.ts delete mode 100644 src/nodes/supported/Efinity.ts create mode 100644 src/nodes/supported/Genshiro.ts delete mode 100644 src/nodes/supported/Kico.ts create mode 100644 src/nodes/supported/Manta.ts create mode 100644 src/nodes/supported/Nodle.ts create mode 100644 src/nodes/supported/OriginTrail.ts create mode 100644 src/nodes/supported/Pendulum.ts delete mode 100644 src/nodes/supported/Pichiu.ts create mode 100644 src/nodes/supported/Polkadex.ts create mode 100644 src/nodes/supported/Zeidgeist.ts diff --git a/package.json b/package.json index 72aeb37a..e3b65ae0 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "updatePallets": "node --loader ts-node/esm --experimental-specifier-resolution=node ./src/scripts/updatePallets.ts", "release": "pnpm runAll && pnpm build && standard-version && git push --follow-tags", "test": "vitest run --coverage", + "test:watch": "vitest", "compile": "tsc --noEmit", "runAll": "pnpm compile && pnpm format:write && pnpm lint && pnpm test" }, @@ -43,7 +44,7 @@ "peerDependencies": { "@polkadot/api": "^10.6.1", "@polkadot/api-base": "^10.6.1", - "@polkadot/apps-config": "^0.124.1", + "@polkadot/apps-config": "^0.132.1", "@polkadot/types": "^10.6.1" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 32d0994a..2f12b03c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,16 +6,16 @@ overrides: dependencies: '@polkadot/api': specifier: ^10.6.1 - version: 10.6.1 + version: 10.9.1 '@polkadot/api-base': specifier: ^10.6.1 version: 10.6.1 '@polkadot/apps-config': - specifier: ^0.124.1 - version: 0.124.1(@polkadot/util-crypto@12.1.2) + specifier: ^0.132.1 + version: 0.132.1(@polkadot/keyring@12.5.1)(@polkadot/util-crypto@12.5.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0) '@polkadot/types': specifier: ^10.6.1 - version: 10.6.1 + version: 10.9.1 ethers: specifier: ^5.7.1 version: 5.7.2 @@ -29,7 +29,7 @@ devDependencies: version: 7.20.2(@babel/core@7.20.12) '@nuxtjs/eslint-config-typescript': specifier: latest - version: 12.1.0(eslint@8.49.0)(typescript@4.9.5) + version: 12.1.0(eslint@8.51.0)(typescript@4.9.5) '@rollup/plugin-babel': specifier: ^6.0.3 version: 6.0.3(@babel/core@7.20.12)(rollup@3.12.1) @@ -44,13 +44,13 @@ devDependencies: version: 0.32.2(vitest@0.34.4) eslint: specifier: latest - version: 8.49.0 + version: 8.51.0 eslint-config-prettier: specifier: ^8.6.0 - version: 8.6.0(eslint@8.49.0) + version: 8.6.0(eslint@8.51.0) eslint-plugin-prettier: specifier: ^4.2.1 - version: 4.2.1(eslint-config-prettier@8.6.0)(eslint@8.49.0)(prettier@2.8.3) + version: 4.2.1(eslint-config-prettier@8.6.0)(eslint@8.51.0)(prettier@2.8.3) prettier: specifier: ^2.8.3 version: 2.8.3 @@ -86,10 +86,12 @@ packages: engines: {node: '>=0.10.0'} dev: true - /@acala-network/type-definitions@4.1.8-13: - resolution: {integrity: sha512-AMXbqsJehhDcwEngSB173eQvuCAsXEm/7rNZMQ8KLG56a8FrNAgrEz+83foogLuTcehCPUPfC0R1Ef/+874rRw==} + /@acala-network/type-definitions@5.1.1(@polkadot/types@10.9.1): + resolution: {integrity: sha512-QNhPwWePz/gFluSACKIhq0Z7rTntS21uIZUNpp9tsvc0zlJ20QjHJnv+ZfkdaKauFrL5upFfTgWqrLhN0jV0JQ==} + peerDependencies: + '@polkadot/types': ^10.5.1 dependencies: - '@open-web3/orml-type-definitions': 1.1.4 + '@polkadot/types': 10.9.1 dev: false /@ampproject/remapping@2.2.1: @@ -1244,10 +1246,12 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true - /@bifrost-finance/type-definitions@1.7.2: - resolution: {integrity: sha512-JL19CHFL4DxO29LRrv9o7r7Au9TtY+8pwG4fMP8M6jq2/MkvWd7OQFn1lmEy58akntNrVReIkZPuP81MFKv9jg==} + /@bifrost-finance/type-definitions@1.8.4(@polkadot/api@10.9.1): + resolution: {integrity: sha512-Vj1/aK3ikvlYIKSHmFQDpgiWRn8pCFRxIqPS1zRIlbqy/aj7T2iOsImdrIX9piPdJquLsJFap3VvX8Lw3YVnmw==} + peerDependencies: + '@polkadot/api': ^10.7.3 dependencies: - '@open-web3/orml-type-definitions': 0.9.4-38 + '@polkadot/api': 10.9.1 dev: false /@crustio/type-definitions@1.3.0: @@ -1271,18 +1275,18 @@ packages: resolution: {integrity: sha512-Iz1Bz06doQ8WXSiVmGIANBxYOh8s3pMUfL97rnxq55MH2Qf6291GzYv9Or18GQ3A0j7yhkBbqnFN6Q8BDwzLYQ==} dev: false - /@digitalnative/type-definitions@1.1.27(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2): + /@digitalnative/type-definitions@1.1.27(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2): resolution: {integrity: sha512-xzkcPX/yv4oYp7OzlkfozVR1KDwqLjQFJhIPLJp3zuVudGFo4I+spwFQmWQswcxgZI1HGoQGVePzEqAQIRZtVQ==} dependencies: - '@polkadot/keyring': 6.11.1(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2) + '@polkadot/keyring': 6.11.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2) '@polkadot/types': 4.17.1 transitivePeerDependencies: - '@polkadot/util' - '@polkadot/util-crypto' dev: false - /@docknetwork/node-types@0.15.0: - resolution: {integrity: sha512-ACIHUIiAt82nhYxtwHSyS4JaJ28UbWS+fAwbTblKcsQBe7YRM2tjbLmkaqQjGPjxJS+wmh/xf7/PnA8PfboNZg==} + /@docknetwork/node-types@0.16.0: + resolution: {integrity: sha512-VUZB8guX9161hDIEVn/UKJEUlXjIDE6vH5flx6uDHVc0QOhBy1bq6AGLayG4ZH19dCN39ta2sKGIFq9wLO4H2A==} engines: {node: '>=14.0.0'} dev: false @@ -1291,6 +1295,20 @@ packages: engines: {node: '>=14.0.0'} dev: false + /@emotion/is-prop-valid@1.2.1: + resolution: {integrity: sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw==} + dependencies: + '@emotion/memoize': 0.8.1 + dev: false + + /@emotion/memoize@0.8.1: + resolution: {integrity: sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==} + dev: false + + /@emotion/unitless@0.8.1: + resolution: {integrity: sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==} + dev: false + /@equilab/definitions@1.4.18: resolution: {integrity: sha512-rFEPaHmdn5I1QItbQun9H/x+o3hgjA6kLYLrNN6nl/ndtQMY2tqx/mQfcGIlKA1xVmyn9mUAqD8G0P/nBHD3yA==} dev: false @@ -1493,13 +1511,13 @@ packages: dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.49.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.51.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.49.0 + eslint: 8.51.0 eslint-visitor-keys: 3.4.3 dev: true @@ -1525,8 +1543,8 @@ packages: - supports-color dev: true - /@eslint/js@8.49.0: - resolution: {integrity: sha512-1S8uAY/MTJqVx0SC4epBq+N2yhuwtNwLbJYNZyhL2pO1ZVKn5HFXav5T41Ryzy9K9V7ZId2JB2oy/W4aCd9/2w==} + /@eslint/js@8.51.0: + resolution: {integrity: sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true @@ -1845,12 +1863,24 @@ packages: '@ethersproject/strings': 5.7.0 dev: false - /@frequency-chain/api-augment@1.6.0: - resolution: {integrity: sha512-OkyLC4ttgkB+6PpTN94NIWPgi6rEclzK7pBSULtfl6ZhgjW9IalykbJmispG3Ntgwdb69TMUU0wSdDPBS15r9A==} + /@fragnova/api-augment@0.1.0-spec-1.0.4-mainnet: + resolution: {integrity: sha512-511tzGJt8BWUVMNqX6NNq4KrGWYBKrLVQ2GKERUi08TtpteEQnFH3Nzh8W6x3dpBG3naZ+V5ue+bEmEB9foRIQ==} dependencies: - '@polkadot/api': 10.6.1 - '@polkadot/rpc-provider': 10.6.1 - '@polkadot/types': 10.6.1 + '@polkadot/api': 9.14.2 + '@polkadot/rpc-provider': 9.14.2 + '@polkadot/types': 9.14.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: false + + /@frequency-chain/api-augment@1.7.0-rc1: + resolution: {integrity: sha512-J/8r66Y1oqvFREeVv2TsDovpM8jBGQEemozOcgOTGpgSF3sHH6mNnp0bKR4r7T2zQN3m6G++eROKqIKRagBhrA==} + dependencies: + '@polkadot/api': 10.9.1 + '@polkadot/rpc-provider': 10.9.1 + '@polkadot/types': 10.9.1 transitivePeerDependencies: - bufferutil - supports-color @@ -1882,8 +1912,8 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@interlay/interbtc-types@1.11.0: - resolution: {integrity: sha512-bn3XjyRlXyhe1QKUHx5IEQJDNC6LoSCJJIkTnSp5xm52GRBEWgHOvLAnfJi3gyj7A3lV/yA2Xjqf294bZgMmfw==} + /@interlay/interbtc-types@1.12.0: + resolution: {integrity: sha512-ELJa2ftIbe8Ds2ejS7kO5HumN9EB5l2OBi3Qsy5iHJsHKq2HtXfFoKnW38HarM6hADrWG+e/yNGHSKJIJzEZuA==} dev: false /@istanbuljs/schema@0.1.3: @@ -1939,9 +1969,9 @@ packages: '@jridgewell/sourcemap-codec': 1.4.14 dev: true - /@kiltprotocol/type-definitions@0.30.0: - resolution: {integrity: sha512-1UpPDjX8PFqTFm3lRRfYUPEY9M8KrbpRinf4q4K843lY5GdTxQaevrVdK9/WCHKywLyDa4tSrlUv9KQjrTP4bg==} - engines: {node: '>=14.0'} + /@kiltprotocol/type-definitions@0.33.1: + resolution: {integrity: sha512-pQfpzrizMmIbVeDEeCjLzYtusP2laUSoXkfvAQNs3qJPqqn99mlRdGd6sAD/rSEOpGjAl7BlV4dpxqFKkrd7Fg==} + engines: {node: '>=16.0'} dev: false /@laminar/type-definitions@0.3.1: @@ -1950,26 +1980,22 @@ packages: '@open-web3/orml-type-definitions': 0.8.2-11 dev: false - /@logion/node-api@0.9.0-3: - resolution: {integrity: sha512-6m2My8yI9jmhqP6FHPJdrsqdg/1vyJtY1/4cnuqCByJaVgNDGrcdtcmzW4BXCww+hJMrdm3PeLthKHCrwpo0gA==} + /@logion/node-api@0.16.0: + resolution: {integrity: sha512-lc825osQK/psRqptw8LrmlvZWGBYLq4YADhhvUl9d3rQCpDDjUEKHqRVJ7CoG/B6sxj4qdqUCCYH678vGJRPcg==} engines: {node: '>=16'} dependencies: - '@polkadot/api': 9.14.2 - '@polkadot/util': 10.4.2 - '@polkadot/util-crypto': 10.4.2(@polkadot/util@10.4.2) - '@types/uuid': 8.3.4 + '@polkadot/api': 10.9.1 + '@polkadot/util': 12.3.2 + '@polkadot/util-crypto': 12.3.2(@polkadot/util@12.3.2) + '@types/uuid': 9.0.5 fast-sha256: 1.3.0 - uuid: 8.3.2 + uuid: 9.0.1 transitivePeerDependencies: - bufferutil - supports-color - utf-8-validate dev: false - /@mangata-finance/types@0.17.0: - resolution: {integrity: sha512-v0o7rePG4P2fDH1yVvSfuHpHQCA7Xki9IwPMTu51Y4FoQdvD1zHUOI4mIOc3ssjOAJsCePNdsTm+/xj3DeiSxQ==} - dev: false - /@metaverse-network-sdk/type-definitions@0.0.1-16: resolution: {integrity: sha512-lo1NbA0gi+Tu23v4cTkN/oxEhQxaf3QxQ2qvUUfTxDU7a1leYp2Bw3IcoUvqHAGb/PPp8bNmYQfAKXsjqp+LZw==} dependencies: @@ -1988,6 +2014,12 @@ packages: '@noble/hashes': 1.3.1 dev: false + /@noble/curves@1.2.0: + resolution: {integrity: sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==} + dependencies: + '@noble/hashes': 1.3.2 + dev: false + /@noble/hashes@1.0.0: resolution: {integrity: sha512-DZVbtY62kc3kkBtMHqwCOfXrT/hnoORy5BJ4+HU1IR59X0KWAOqsfzQPcUl/lQLlG7qXbe/fZ3r/emxtAl+sqg==} dev: false @@ -2005,6 +2037,11 @@ packages: engines: {node: '>= 16'} dev: false + /@noble/hashes@1.3.2: + resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} + engines: {node: '>= 16'} + dev: false + /@noble/secp256k1@1.5.5: resolution: {integrity: sha512-sZ1W6gQzYnu45wPrWx8D3kwI2/U29VYTx9OjbDAd7jwRItJ0cSTMPRL/C8AWZFn9kWFLQGqEXVEE86w4Z8LpIQ==} dev: false @@ -2034,18 +2071,18 @@ packages: fastq: 1.15.0 dev: true - /@nuxtjs/eslint-config-typescript@12.1.0(eslint@8.49.0)(typescript@4.9.5): + /@nuxtjs/eslint-config-typescript@12.1.0(eslint@8.51.0)(typescript@4.9.5): resolution: {integrity: sha512-l2fLouDYwdAvCZEEw7wGxOBj+i8TQcHFu3zMPTLqKuv1qu6WcZIr0uztkbaa8ND1uKZ9YPqKx6UlSOjM4Le69Q==} peerDependencies: eslint: ^8.48.0 dependencies: - '@nuxtjs/eslint-config': 12.0.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) - '@typescript-eslint/eslint-plugin': 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@4.9.5) - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@4.9.5) - eslint: 8.49.0 - eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) - eslint-plugin-vue: 9.17.0(eslint@8.49.0) + '@nuxtjs/eslint-config': 12.0.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.51.0) + '@typescript-eslint/eslint-plugin': 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.51.0)(typescript@4.9.5) + '@typescript-eslint/parser': 6.7.0(eslint@8.51.0)(typescript@4.9.5) + eslint: 8.51.0 + eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.51.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.51.0) + eslint-plugin-vue: 9.17.0(eslint@8.51.0) transitivePeerDependencies: - eslint-import-resolver-node - eslint-import-resolver-webpack @@ -2053,19 +2090,19 @@ packages: - typescript dev: true - /@nuxtjs/eslint-config@12.0.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0): + /@nuxtjs/eslint-config@12.0.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.51.0): resolution: {integrity: sha512-ewenelo75x0eYEUK+9EBXjc/OopQCvdkmYmlZuoHq5kub/vtiRpyZ/autppwokpHUq8tiVyl2ejMakoiHiDTrg==} peerDependencies: eslint: ^8.23.0 dependencies: - eslint: 8.49.0 - eslint-config-standard: 17.0.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@15.6.1)(eslint-plugin-promise@6.1.1)(eslint@8.49.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) - eslint-plugin-n: 15.6.1(eslint@8.49.0) - eslint-plugin-node: 11.1.0(eslint@8.49.0) - eslint-plugin-promise: 6.1.1(eslint@8.49.0) - eslint-plugin-unicorn: 44.0.2(eslint@8.49.0) - eslint-plugin-vue: 9.17.0(eslint@8.49.0) + eslint: 8.51.0 + eslint-config-standard: 17.0.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@15.6.1)(eslint-plugin-promise@6.1.1)(eslint@8.51.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.51.0) + eslint-plugin-n: 15.6.1(eslint@8.51.0) + eslint-plugin-node: 11.1.0(eslint@8.51.0) + eslint-plugin-promise: 6.1.1(eslint@8.51.0) + eslint-plugin-unicorn: 44.0.2(eslint@8.51.0) + eslint-plugin-vue: 9.17.0(eslint@8.51.0) local-pkg: 0.4.3 transitivePeerDependencies: - '@typescript-eslint/parser' @@ -2078,12 +2115,6 @@ packages: resolution: {integrity: sha512-cUv5+mprnaGNt0tu3FhK1nFRBK7SGjPhA1O0nxWWeRmuuH5fjkr0glbHE9kcKuCBfsh7nt6NGwxwl9emQtUDSA==} dev: false - /@open-web3/orml-type-definitions@0.9.4-26: - resolution: {integrity: sha512-i784NbOBIoTbc/Qj8738wqckYqbtM7W53YTHZZYMd1iBSldNkW5LXn0lOlsnaoiTs14BKlepDCRETRYoeI7KOQ==} - dependencies: - lodash.merge: 4.6.2 - dev: false - /@open-web3/orml-type-definitions@0.9.4-38: resolution: {integrity: sha512-kV0++JlRLEf7Z1y+Jm+792zqx6Q7dzpGP73rJJmQrBaeTML5mQzu4veZ24TVtcLV6hsGjUU/ixrJODNj6CCuZQ==} dependencies: @@ -2096,27 +2127,39 @@ packages: lodash.merge: 4.6.2 dev: false - /@parallel-finance/type-definitions@1.7.14: - resolution: {integrity: sha512-64cIrOcS5z2SSzTAITg3qDdQReoBLCZhAGHzR1VnYQzF0u59Ow6XnWmg0/R4EuyhnsqW4aMhnrmlVE7RhG9kPg==} + /@open-web3/orml-type-definitions@2.0.1: + resolution: {integrity: sha512-wqeSBOKk8UU9CBqYhK2yQh9YqwaS7vai71WuOGFNJnzRT+6WnzY0leaLTionuzfE3M4Y/jTrc8BTL6+PVFCr6Q==} dependencies: - '@open-web3/orml-type-definitions': 1.1.4 + lodash.merge: 4.6.2 + dev: false + + /@parallel-finance/type-definitions@1.7.17: + resolution: {integrity: sha512-OFz9sXwlp90xDdKK1gUvpdUsnlUPhhRhzvC0SqOnnT1SCpJgPv4RD5DGBN6wSHuRwNsYnCWH+8RkK7jWVgUvrQ==} + dependencies: + '@open-web3/orml-type-definitions': 2.0.1 + dev: false + + /@peaqnetwork/type-definitions@0.0.4: + resolution: {integrity: sha512-bMja9T9PHQrEy4Uhh0ZTWvKGpgiDd51tZg4ZOpgC1KtVBF6Wx+bNtt+Zyg0DKwRh2Eg+xI5OEBPycsFOpdIWIA==} + dependencies: + '@open-web3/orml-type-definitions': 0.9.4-38 dev: false /@phala/typedefs@0.2.33: resolution: {integrity: sha512-CaRzIGfU6CUIKLPswYtOw/xbtTttqmJZpr3fhkxLvkBQMXIH14iISD763OFXtWui7DrAMBKo/bHawvFNgWGKTg==} dev: false - /@polkadot/api-augment@10.6.1: - resolution: {integrity: sha512-wgZG2yaIziWgYZxkkkdGgqPOwsxaXW/aHe5trTWxBgbX8SDJbGFiu5yWKetsUnpWIO1nsvovMnCjjeBsmG2YHg==} + /@polkadot/api-augment@10.10.1: + resolution: {integrity: sha512-J0r1DT1M5y75iO1iwcpUBokKD3q6b22kWlPfiHEDNFydVw5vm7OTRBk9Njjl8rOnlSzcW/Ya8qWfV/wkrqHxUQ==} engines: {node: '>=16'} dependencies: - '@polkadot/api-base': 10.6.1 - '@polkadot/rpc-augment': 10.6.1 - '@polkadot/types': 10.6.1 - '@polkadot/types-augment': 10.6.1 - '@polkadot/types-codec': 10.6.1 - '@polkadot/util': 12.1.2 - tslib: 2.5.0 + '@polkadot/api-base': 10.10.1 + '@polkadot/rpc-augment': 10.10.1 + '@polkadot/types': 10.10.1 + '@polkadot/types-augment': 10.10.1 + '@polkadot/types-codec': 10.10.1 + '@polkadot/util': 12.5.1 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - supports-color @@ -2173,6 +2216,21 @@ packages: - utf-8-validate dev: false + /@polkadot/api-base@10.10.1: + resolution: {integrity: sha512-joH2Ywxnn+AStkw+JWAdF3i3WJy4NcBYp0SWJM/WqGafWR/FuHnati2pcj/MHzkHT8JkBippmSSJFvsqRhlwcQ==} + engines: {node: '>=16'} + dependencies: + '@polkadot/rpc-core': 10.10.1 + '@polkadot/types': 10.10.1 + '@polkadot/util': 12.5.1 + rxjs: 7.8.1 + tslib: 2.6.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: false + /@polkadot/api-base@10.6.1: resolution: {integrity: sha512-RvZtQoAZiRNknzOsS/89AsZSr/36j3c6Gkx3IfMtRGlLC8QXRTLgecNGcuEJLgu44oz1jqOJrCxS39/+h+AJlQ==} engines: {node: '>=16'} @@ -2232,20 +2290,20 @@ packages: - utf-8-validate dev: false - /@polkadot/api-derive@10.6.1: - resolution: {integrity: sha512-yywRRrU1QkUtruR4k+ywlknGJ6tNhFlqEX8ZhCsUhwLDW1dZQO5AX+2fPxTvyhXcPL/NLUtTJEIyJxeysFMWlg==} + /@polkadot/api-derive@10.10.1: + resolution: {integrity: sha512-Q9Ibs4eRPqdV8qnRzFPD3dlWNbLHxRqMqNTNPmNQwKPo5m6fcQbZ0UZy3yJ+PI9S4AQHGhsWtfoi5qW8006GHQ==} engines: {node: '>=16'} dependencies: - '@polkadot/api': 10.6.1 - '@polkadot/api-augment': 10.6.1 - '@polkadot/api-base': 10.6.1 - '@polkadot/rpc-core': 10.6.1 - '@polkadot/types': 10.6.1 - '@polkadot/types-codec': 10.6.1 - '@polkadot/util': 12.1.2 - '@polkadot/util-crypto': 12.1.2(@polkadot/util@12.1.2) + '@polkadot/api': 10.10.1 + '@polkadot/api-augment': 10.10.1 + '@polkadot/api-base': 10.10.1 + '@polkadot/rpc-core': 10.10.1 + '@polkadot/types': 10.10.1 + '@polkadot/types-codec': 10.10.1 + '@polkadot/util': 12.5.1 + '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) rxjs: 7.8.1 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - supports-color @@ -2311,27 +2369,27 @@ packages: - utf-8-validate dev: false - /@polkadot/api@10.6.1: - resolution: {integrity: sha512-LVDMfppdjvYCqvWoFRQRTAAmRho0Vyv9lBtdPfZLQuSq/eHQLRmtgz1dT/8aL3kmJL0ui0inBP9Ql3Fr6qsU8w==} + /@polkadot/api@10.10.1: + resolution: {integrity: sha512-YHVkmNvjGF4Eg3thAbVhj9UX3SXx+Yxk6yVuzsEcckEudIRHzL2ikIWGCfUprfzSeFNpUCKdJIi1tsxVHtA7Tg==} engines: {node: '>=16'} dependencies: - '@polkadot/api-augment': 10.6.1 - '@polkadot/api-base': 10.6.1 - '@polkadot/api-derive': 10.6.1 - '@polkadot/keyring': 12.1.2(@polkadot/util-crypto@12.1.2)(@polkadot/util@12.1.2) - '@polkadot/rpc-augment': 10.6.1 - '@polkadot/rpc-core': 10.6.1 - '@polkadot/rpc-provider': 10.6.1 - '@polkadot/types': 10.6.1 - '@polkadot/types-augment': 10.6.1 - '@polkadot/types-codec': 10.6.1 - '@polkadot/types-create': 10.6.1 - '@polkadot/types-known': 10.6.1 - '@polkadot/util': 12.1.2 - '@polkadot/util-crypto': 12.1.2(@polkadot/util@12.1.2) + '@polkadot/api-augment': 10.10.1 + '@polkadot/api-base': 10.10.1 + '@polkadot/api-derive': 10.10.1 + '@polkadot/keyring': 12.5.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.5.1) + '@polkadot/rpc-augment': 10.10.1 + '@polkadot/rpc-core': 10.10.1 + '@polkadot/rpc-provider': 10.10.1 + '@polkadot/types': 10.10.1 + '@polkadot/types-augment': 10.10.1 + '@polkadot/types-codec': 10.10.1 + '@polkadot/types-create': 10.10.1 + '@polkadot/types-known': 10.10.1 + '@polkadot/util': 12.5.1 + '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) eventemitter3: 5.0.1 rxjs: 7.8.1 - tslib: 2.5.0 + tslib: 2.6.2 transitivePeerDependencies: - bufferutil - supports-color @@ -2418,51 +2476,61 @@ packages: - utf-8-validate dev: false - /@polkadot/apps-config@0.124.1(@polkadot/util-crypto@12.1.2): - resolution: {integrity: sha512-SqDLf0ksU5WkU96L3nIiICwaBDLj4APYjKkwpSUAWk1NcvXDWZQQG56obgaLPHZ2If6GZrQge/fUmItuRBIZrg==} + /@polkadot/apps-config@0.132.1(@polkadot/keyring@12.5.1)(@polkadot/util-crypto@12.5.1)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-AS5BAYnDPSuYU7EXmYpizHS/uFswwlGU+17yr0ng26kETy+mPft2koaBnRq5jUsqVIXN2sfI7619OgTK5XhuEg==} + engines: {node: '>=16'} dependencies: - '@acala-network/type-definitions': 4.1.8-13 - '@babel/runtime': 7.20.13 - '@bifrost-finance/type-definitions': 1.7.2 + '@acala-network/type-definitions': 5.1.1(@polkadot/types@10.9.1) + '@bifrost-finance/type-definitions': 1.8.4(@polkadot/api@10.9.1) '@crustio/type-definitions': 1.3.0 '@darwinia/types': 2.8.10 '@darwinia/types-known': 2.8.10 - '@digitalnative/type-definitions': 1.1.27(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2) - '@docknetwork/node-types': 0.15.0 + '@digitalnative/type-definitions': 1.1.27(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2) + '@docknetwork/node-types': 0.16.0 '@edgeware/node-types': 3.6.2-wako '@equilab/definitions': 1.4.18 - '@frequency-chain/api-augment': 1.6.0 - '@interlay/interbtc-types': 1.11.0 - '@kiltprotocol/type-definitions': 0.30.0 + '@fragnova/api-augment': 0.1.0-spec-1.0.4-mainnet + '@frequency-chain/api-augment': 1.7.0-rc1 + '@interlay/interbtc-types': 1.12.0 + '@kiltprotocol/type-definitions': 0.33.1 '@laminar/type-definitions': 0.3.1 - '@logion/node-api': 0.9.0-3 - '@mangata-finance/types': 0.17.0 + '@logion/node-api': 0.16.0 '@metaverse-network-sdk/type-definitions': 0.0.1-16 - '@parallel-finance/type-definitions': 1.7.14 + '@parallel-finance/type-definitions': 1.7.17 + '@peaqnetwork/type-definitions': 0.0.4 '@phala/typedefs': 0.2.33 - '@polkadot/api': 9.14.2 - '@polkadot/api-derive': 9.14.2 - '@polkadot/networks': 10.4.2 - '@polkadot/types': 9.14.2 - '@polkadot/util': 10.4.2 - '@polkadot/x-fetch': 10.4.2 - '@polymathnetwork/polymesh-types': 0.0.2 - '@snowfork/snowbridge-types': 0.2.7(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2) - '@sora-substrate/type-definitions': 1.12.4 - '@subsocial/definitions': 0.7.14 - '@unique-nft/opal-testnet-types': 930.34.0(@polkadot/api@9.14.2)(@polkadot/types@9.14.2) - '@unique-nft/quartz-mainnet-types': 930.34.0(@polkadot/api@9.14.2)(@polkadot/types@9.14.2) - '@unique-nft/unique-mainnet-types': 930.33.0(@polkadot/api@9.14.2)(@polkadot/types@9.14.2) - '@zeitgeistpm/type-defs': 0.10.0 + '@polkadot/api': 10.9.1 + '@polkadot/api-derive': 10.9.1 + '@polkadot/networks': 12.3.2 + '@polkadot/react-identicon': 3.6.3(@polkadot/keyring@12.5.1)(@polkadot/networks@12.3.2)(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0) + '@polkadot/types': 10.9.1 + '@polkadot/types-codec': 10.9.1 + '@polkadot/util': 12.3.2 + '@polkadot/wasm-util': 7.2.1(@polkadot/util@12.3.2) + '@polkadot/x-fetch': 12.3.2 + '@polkadot/x-ws': 12.3.2 + '@polymeshassociation/polymesh-types': 5.4.1 + '@snowfork/snowbridge-types': 0.2.7(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2) + '@sora-substrate/type-definitions': 1.17.16 + '@subsocial/definitions': 0.8.13 + '@unique-nft/opal-testnet-types': 942.57.0(@polkadot/api@10.9.1)(@polkadot/types@10.9.1) + '@unique-nft/quartz-mainnet-types': 942.57.0(@polkadot/api@10.9.1)(@polkadot/types@10.9.1) + '@unique-nft/sapphire-mainnet-types': 942.57.0(@polkadot/api@10.9.1)(@polkadot/types@10.9.1) + '@unique-nft/unique-mainnet-types': 941.56.0(@polkadot/api@10.9.1)(@polkadot/types@10.9.1) + '@zeitgeistpm/type-defs': 1.0.0 '@zeroio/type-definitions': 0.0.14 - lodash: 4.17.21 - moonbeam-types-bundle: 2.0.9 - pontem-types-bundle: 1.0.15(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2) - rxjs: 7.8.0 + moonbeam-types-bundle: 2.0.10 + pontem-types-bundle: 1.0.15(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2) + rxjs: 7.8.1 + tslib: 2.6.0 transitivePeerDependencies: + - '@polkadot/keyring' - '@polkadot/util-crypto' - bufferutil - encoding + - react + - react-dom + - react-is - supports-color - utf-8-validate dev: false @@ -2503,7 +2571,19 @@ packages: tslib: 2.6.0 dev: false - /@polkadot/keyring@6.11.1(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2): + /@polkadot/keyring@12.5.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.5.1): + resolution: {integrity: sha512-u6b+Q7wI6WY/vwmJS9uUHy/5hKZ226nTlVNmxjkj9GvrRsQvUSwS94163yHPJwiZJiIv5xK5m0rwCMyoYu+wjA==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/util': 12.5.1 + '@polkadot/util-crypto': 12.5.1 + dependencies: + '@polkadot/util': 12.5.1 + '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) + tslib: 2.6.2 + dev: false + + /@polkadot/keyring@6.11.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2): resolution: {integrity: sha512-rW8INl7pO6Dmaffd6Df1yAYCRWa2RmWQ0LGfJeA/M6seVIkI6J3opZqAd4q2Op+h9a7z4TESQGk8yggOEL+Csg==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2511,11 +2591,11 @@ packages: '@polkadot/util-crypto': 6.11.1 dependencies: '@babel/runtime': 7.20.13 - '@polkadot/util': 10.4.2 - '@polkadot/util-crypto': 12.1.2(@polkadot/util@12.1.2) + '@polkadot/util': 12.3.2 + '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) dev: false - /@polkadot/keyring@7.9.2(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2): + /@polkadot/keyring@7.9.2(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2): resolution: {integrity: sha512-6UGoIxhiTyISkYEZhUbCPpgVxaneIfb/DBVlHtbvaABc8Mqh1KuqcTIq19Mh9wXlBuijl25rw4lUASrE/9sBqg==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2523,11 +2603,11 @@ packages: '@polkadot/util-crypto': 7.9.2 dependencies: '@babel/runtime': 7.20.13 - '@polkadot/util': 10.4.2 - '@polkadot/util-crypto': 12.1.2(@polkadot/util@12.1.2) + '@polkadot/util': 12.3.2 + '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) dev: false - /@polkadot/keyring@8.7.1(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2): + /@polkadot/keyring@8.7.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2): resolution: {integrity: sha512-t6ZgQVC+nQT7XwbWtEhkDpiAzxKVJw8Xd/gWdww6xIrawHu7jo3SGB4QNdPgkf8TvDHYAAJiupzVQYAlOIq3GA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2535,8 +2615,8 @@ packages: '@polkadot/util-crypto': 8.7.1 dependencies: '@babel/runtime': 7.20.13 - '@polkadot/util': 10.4.2 - '@polkadot/util-crypto': 12.1.2(@polkadot/util@12.1.2) + '@polkadot/util': 12.3.2 + '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) dev: false /@polkadot/keyring@8.7.1(@polkadot/util-crypto@8.7.1)(@polkadot/util@8.7.1): @@ -2568,7 +2648,7 @@ packages: dependencies: '@babel/runtime': 7.20.13 '@polkadot/util': 10.4.2 - '@substrate/ss58-registry': 1.39.0 + '@substrate/ss58-registry': 1.40.0 dev: false /@polkadot/networks@12.1.2: @@ -2589,6 +2669,15 @@ packages: tslib: 2.6.0 dev: false + /@polkadot/networks@12.5.1: + resolution: {integrity: sha512-PP6UUdzz6iHHZH4q96cUEhTcydHj16+61sqeaYEJSF6Q9iY+5WVWQ26+rdjmre/EBdrMQkSS/CKy73mO5z/JkQ==} + engines: {node: '>=16'} + dependencies: + '@polkadot/util': 12.5.1 + '@substrate/ss58-registry': 1.43.0 + tslib: 2.6.2 + dev: false + /@polkadot/networks@6.11.1: resolution: {integrity: sha512-0C6Ha2kvr42se3Gevx6UhHzv3KnPHML0N73Amjwvdr4y0HLZ1Nfw+vcm5yqpz5gpiehqz97XqFrsPRauYdcksQ==} engines: {node: '>=14.0.0'} @@ -2605,6 +2694,49 @@ packages: '@substrate/ss58-registry': 1.40.0 dev: false + /@polkadot/react-identicon@3.6.3(@polkadot/keyring@12.5.1)(@polkadot/networks@12.3.2)(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-6VfaYEtwnbgszvzIwRpEkE6pMHbuIwUS+aLKJDL02wjFUkJBy7YFfOtJf2WrKt863MpxiLZ+7Y5GRnHJI8Vw7A==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/keyring': '*' + '@polkadot/util': '*' + '@polkadot/util-crypto': '*' + react: '*' + react-dom: '*' + react-is: '*' + dependencies: + '@polkadot/keyring': 12.5.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.5.1) + '@polkadot/ui-settings': 3.6.3(@polkadot/networks@12.3.2)(@polkadot/util@12.3.2) + '@polkadot/ui-shared': 3.6.3(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2) + '@polkadot/util': 12.3.2 + '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) + ethereum-blockies-base64: 1.0.2 + jdenticon: 3.2.0 + react: 18.2.0 + react-copy-to-clipboard: 5.1.0(react@18.2.0) + react-dom: 18.2.0(react@18.2.0) + react-is: 18.2.0 + styled-components: 6.1.0(react-dom@18.2.0)(react@18.2.0) + tslib: 2.6.2 + transitivePeerDependencies: + - '@polkadot/networks' + dev: false + + /@polkadot/rpc-augment@10.10.1: + resolution: {integrity: sha512-PcvsX8DNV8BNDXXnY2K8F4mE7cWz7fKg8ykXNZTN8XUN6MrI4k/ohv7itYic7X5LaP25ZmQt5UiGyjKDGIELow==} + engines: {node: '>=16'} + dependencies: + '@polkadot/rpc-core': 10.10.1 + '@polkadot/types': 10.10.1 + '@polkadot/types-codec': 10.10.1 + '@polkadot/util': 12.5.1 + tslib: 2.6.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: false + /@polkadot/rpc-augment@10.6.1: resolution: {integrity: sha512-xlDU/yRuGJiW0FpRH43/ltyniW0aRMAtgwphxcrQWXiSy5IiPwwFNUoGUgAibPvXf/U2/8cPKlkm1aZVIitBjQ==} engines: {node: '>=16'} @@ -2664,6 +2796,22 @@ packages: - utf-8-validate dev: false + /@polkadot/rpc-core@10.10.1: + resolution: {integrity: sha512-awfFfJYsVF6W4DrqTj5RP00SSDRNB770FIoe1QE1Op4NcSrfeLpwh54HUJS716f4l5mOSYuvMp+zCbKzt8zKow==} + engines: {node: '>=16'} + dependencies: + '@polkadot/rpc-augment': 10.10.1 + '@polkadot/rpc-provider': 10.10.1 + '@polkadot/types': 10.10.1 + '@polkadot/util': 12.5.1 + rxjs: 7.8.1 + tslib: 2.6.2 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: false + /@polkadot/rpc-core@10.6.1: resolution: {integrity: sha512-Od6Np+dJGjRD82ISZy/wh8D+DRRqbifFaVm9X+xS2I80qCdaLjN/A78mC+LqruOhlNC+1JgrF8h8/lASWwz73w==} engines: {node: '>=16'} @@ -2727,6 +2875,30 @@ packages: - utf-8-validate dev: false + /@polkadot/rpc-provider@10.10.1: + resolution: {integrity: sha512-VMDWoJgx6/mPHAOT66Sq+Jf2lJABfV/ZUIXtT2k8HjOndbm6oKrFqGEOSSLvB2q4olDee3FkFFxkyW1s6k4JaQ==} + engines: {node: '>=16'} + dependencies: + '@polkadot/keyring': 12.5.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.5.1) + '@polkadot/types': 10.10.1 + '@polkadot/types-support': 10.10.1 + '@polkadot/util': 12.5.1 + '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) + '@polkadot/x-fetch': 12.5.1 + '@polkadot/x-global': 12.5.1 + '@polkadot/x-ws': 12.5.1 + eventemitter3: 5.0.1 + mock-socket: 9.3.1 + nock: 13.3.4 + tslib: 2.6.2 + optionalDependencies: + '@substrate/connect': 0.7.33 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: false + /@polkadot/rpc-provider@10.6.1: resolution: {integrity: sha512-4tkNgHQJ6/2HnK68kscgO5JhitWNwnQUPFIAhtkIjKec9mu9hzjRS8XzouvYoYO93Cfhf7fD0E5gF0akKLRBRg==} engines: {node: '>=16'} @@ -2766,7 +2938,7 @@ packages: eventemitter3: 5.0.1 mock-socket: 9.2.1 nock: 13.3.1 - tslib: 2.6.0 + tslib: 2.6.2 optionalDependencies: '@substrate/connect': 0.7.26 transitivePeerDependencies: @@ -2821,6 +2993,16 @@ packages: - utf-8-validate dev: false + /@polkadot/types-augment@10.10.1: + resolution: {integrity: sha512-XRHE75IocXfFE6EADYov3pqXCyBk5SWbiHoZ0+4WYWP9SwMuzsBaAy84NlhLBlkG3+ehIqi0HpAd/qrljJGZbg==} + engines: {node: '>=16'} + dependencies: + '@polkadot/types': 10.10.1 + '@polkadot/types-codec': 10.10.1 + '@polkadot/util': 12.5.1 + tslib: 2.6.2 + dev: false + /@polkadot/types-augment@10.6.1: resolution: {integrity: sha512-BUOIDHqqiS+NPJSBUTbeF/d3pGebLQPQU8BiN1dDMc9KQaOUVEkSX+0ZBUfOCIHB3AaqgQGL9qofObvdigQSuA==} engines: {node: '>=16'} @@ -2838,7 +3020,7 @@ packages: '@polkadot/types': 10.9.1 '@polkadot/types-codec': 10.9.1 '@polkadot/util': 12.3.2 - tslib: 2.6.0 + tslib: 2.6.2 dev: false /@polkadot/types-augment@7.15.1: @@ -2861,6 +3043,15 @@ packages: '@polkadot/util': 10.4.2 dev: false + /@polkadot/types-codec@10.10.1: + resolution: {integrity: sha512-ETPG0wzWzt/bDKRQmYbO7CLe/0lUt8VrG6/bECdv+Kye+8Qedba2LZyTWm/9f2ngms8TZ82yI8mPv/mozdtfnw==} + engines: {node: '>=16'} + dependencies: + '@polkadot/util': 12.5.1 + '@polkadot/x-bigint': 12.5.1 + tslib: 2.6.2 + dev: false + /@polkadot/types-codec@10.6.1: resolution: {integrity: sha512-4a4va5gb/L3Tc7902iGrf7Azf6YtUteaqf3qtCRbl8pFMNAu3ZVkfcrto09miwx6CgDEIQM9Zk7dzdPIFHJDQw==} engines: {node: '>=16'} @@ -2896,6 +3087,15 @@ packages: '@polkadot/x-bigint': 10.4.2 dev: false + /@polkadot/types-create@10.10.1: + resolution: {integrity: sha512-7OiLzd+Ter5zrpjP7fDwA1m89kd38VvMVixfOSv8x7ld2pDT+yyyKl14TCwRSWrKWCMtIb6M3iasPhq5cUa7cw==} + engines: {node: '>=16'} + dependencies: + '@polkadot/types-codec': 10.10.1 + '@polkadot/util': 12.5.1 + tslib: 2.6.2 + dev: false + /@polkadot/types-create@10.6.1: resolution: {integrity: sha512-Wj7ohXlK68h5JwIDMS/GR/znlMjwNtt4MYye7qCVhcbCjPaqb6DtK/bhL8FdkufD6bKZWkwA+gb5uF1paoxLGQ==} engines: {node: '>=16'} @@ -2911,7 +3111,7 @@ packages: dependencies: '@polkadot/types-codec': 10.9.1 '@polkadot/util': 12.3.2 - tslib: 2.6.0 + tslib: 2.6.2 dev: false /@polkadot/types-create@7.15.1: @@ -2932,16 +3132,16 @@ packages: '@polkadot/util': 10.4.2 dev: false - /@polkadot/types-known@10.6.1: - resolution: {integrity: sha512-IPHCrHx+WHMcutmORB9hBJRyeD1uA9V1QuM+4WBFt7567m61q1s6Z4bhACfh8RsqXeIiLezylBn5gIf5VvHu/A==} + /@polkadot/types-known@10.10.1: + resolution: {integrity: sha512-yRa1lbDRqg3V/zoa0vSwdGOiYTIWktILW8OfkaLDExTu0GZBSbVHZlLAta52XVpA9Zww7mrUUC9+iernOwk//w==} engines: {node: '>=16'} dependencies: - '@polkadot/networks': 12.1.2 - '@polkadot/types': 10.6.1 - '@polkadot/types-codec': 10.6.1 - '@polkadot/types-create': 10.6.1 - '@polkadot/util': 12.1.2 - tslib: 2.5.0 + '@polkadot/networks': 12.5.1 + '@polkadot/types': 10.10.1 + '@polkadot/types-codec': 10.10.1 + '@polkadot/types-create': 10.10.1 + '@polkadot/util': 12.5.1 + tslib: 2.6.2 dev: false /@polkadot/types-known@10.9.1: @@ -2953,7 +3153,7 @@ packages: '@polkadot/types-codec': 10.9.1 '@polkadot/types-create': 10.9.1 '@polkadot/util': 12.3.2 - tslib: 2.6.0 + tslib: 2.6.2 dev: false /@polkadot/types-known@4.17.1: @@ -3000,6 +3200,14 @@ packages: '@polkadot/util': 10.4.2 dev: false + /@polkadot/types-support@10.10.1: + resolution: {integrity: sha512-Cd2mwk9RG6LlX8X3H0bRY7wCTbZPqU3z38CMFhvNkFDAyjqKjtn8hpS4n8mMrZK2EwCs/MjQH1wb7rtFkaWmJw==} + engines: {node: '>=16'} + dependencies: + '@polkadot/util': 12.5.1 + tslib: 2.6.2 + dev: false + /@polkadot/types-support@10.6.1: resolution: {integrity: sha512-nEMWzvuTZfeLxBs4FVdJZkuoO51DJYnSzPzNpoa1N7VOcteInR75rnkdHUbh4IF6AoKmc+yL7Uro8i66wRkQNg==} engines: {node: '>=16'} @@ -3013,7 +3221,7 @@ packages: engines: {node: '>=16'} dependencies: '@polkadot/util': 12.3.2 - tslib: 2.6.0 + tslib: 2.6.2 dev: false /@polkadot/types-support@7.15.1: @@ -3032,6 +3240,20 @@ packages: '@polkadot/util': 10.4.2 dev: false + /@polkadot/types@10.10.1: + resolution: {integrity: sha512-Ben62P1tjYEhKag34GBGcLX6NqcFR1VD5nNbWaxgr+t36Jl/tlHs6P9DlbFqQP7Tt9FmGrAYY0m3oTkhjG1NzA==} + engines: {node: '>=16'} + dependencies: + '@polkadot/keyring': 12.5.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.5.1) + '@polkadot/types-augment': 10.10.1 + '@polkadot/types-codec': 10.10.1 + '@polkadot/types-create': 10.10.1 + '@polkadot/util': 12.5.1 + '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) + rxjs: 7.8.1 + tslib: 2.6.2 + dev: false + /@polkadot/types@10.6.1: resolution: {integrity: sha512-ZRzFwX0Pd+djq8aRxbT03F5UooVdSF9vKDeDfoFLN4pvh5CT/J2/bYJXhdTnbg5o3QanVKekiVxEg0Zk80nWzw==} engines: {node: '>=16'} @@ -3110,6 +3332,33 @@ packages: rxjs: 7.8.1 dev: false + /@polkadot/ui-settings@3.6.3(@polkadot/networks@12.3.2)(@polkadot/util@12.3.2): + resolution: {integrity: sha512-a1nUL1qXfX0mDdauhfkwVeob4xaqEEnNbyznfAg/5QdisU7LHAKqJgEuIda6T6XT2bTtTwCkBcE8TYASMv5cpA==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/networks': '*' + '@polkadot/util': '*' + dependencies: + '@polkadot/networks': 12.3.2 + '@polkadot/util': 12.3.2 + eventemitter3: 5.0.1 + store: 2.0.12 + tslib: 2.6.2 + dev: false + + /@polkadot/ui-shared@3.6.3(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2): + resolution: {integrity: sha512-dh1k9iItpsam+dDNMR987/fqnM50hzI4nXujGfbAl/JY83rAtHE3CyDR3BUv7R0AisAZX4OM0DfopiOnWdC4xg==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/util': '*' + '@polkadot/util-crypto': '*' + dependencies: + '@polkadot/util': 12.3.2 + '@polkadot/util-crypto': 12.5.1(@polkadot/util@12.5.1) + colord: 2.9.3 + tslib: 2.6.2 + dev: false + /@polkadot/util-crypto@10.4.2(@polkadot/util@10.4.2): resolution: {integrity: sha512-RxZvF7C4+EF3fzQv8hZOLrYCBq5+wA+2LWv98nECkroChY3C2ZZvyWDqn8+aonNULt4dCVTWDZM0QIY6y4LUAQ==} engines: {node: '>=14.0.0'} @@ -3165,6 +3414,24 @@ packages: tslib: 2.6.0 dev: false + /@polkadot/util-crypto@12.5.1(@polkadot/util@12.5.1): + resolution: {integrity: sha512-Y8ORbMcsM/VOqSG3DgqutRGQ8XXK+X9M3C8oOEI2Tji65ZsXbh9Yh+ryPLM0oBp/9vqOXjkLgZJbbVuQceOw0A==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/util': 12.5.1 + dependencies: + '@noble/curves': 1.2.0 + '@noble/hashes': 1.3.2 + '@polkadot/networks': 12.5.1 + '@polkadot/util': 12.5.1 + '@polkadot/wasm-crypto': 7.2.2(@polkadot/util@12.5.1)(@polkadot/x-randomvalues@12.5.1) + '@polkadot/wasm-util': 7.2.2(@polkadot/util@12.5.1) + '@polkadot/x-bigint': 12.5.1 + '@polkadot/x-randomvalues': 12.5.1(@polkadot/util@12.5.1)(@polkadot/wasm-util@7.2.2) + '@scure/base': 1.1.3 + tslib: 2.6.2 + dev: false + /@polkadot/util-crypto@6.11.1(@polkadot/util@6.11.1): resolution: {integrity: sha512-fWA1Nz17FxWJslweZS4l0Uo30WXb5mYV1KEACVzM+BSZAvG5eoiOAYX6VYZjyw6/7u53XKrWQlD83iPsg3KvZw==} engines: {node: '>=14.0.0'} @@ -3247,6 +3514,19 @@ packages: tslib: 2.6.0 dev: false + /@polkadot/util@12.5.1: + resolution: {integrity: sha512-fDBZL7D4/baMG09Qowseo884m3QBzErGkRWNBId1UjWR99kyex+cIY9fOSzmuQxo6nLdJlLHw1Nz2caN3+Bq0A==} + engines: {node: '>=16'} + dependencies: + '@polkadot/x-bigint': 12.5.1 + '@polkadot/x-global': 12.5.1 + '@polkadot/x-textdecoder': 12.5.1 + '@polkadot/x-textencoder': 12.5.1 + '@types/bn.js': 5.1.1 + bn.js: 5.2.1 + tslib: 2.6.2 + dev: false + /@polkadot/util@6.11.1: resolution: {integrity: sha512-TEdCetr9rsdUfJZqQgX/vxLuV4XU8KMoKBMJdx+JuQ5EWemIdQkEtMBdL8k8udNGbgSNiYFA6rPppATeIxAScg==} engines: {node: '>=14.0.0'} @@ -3309,7 +3589,20 @@ packages: '@polkadot/util': 12.3.2 '@polkadot/wasm-util': 7.2.1(@polkadot/util@12.3.2) '@polkadot/x-randomvalues': 12.3.2(@polkadot/util@12.3.2)(@polkadot/wasm-util@7.2.1) - tslib: 2.6.0 + tslib: 2.6.2 + dev: false + + /@polkadot/wasm-bridge@7.2.2(@polkadot/util@12.5.1)(@polkadot/x-randomvalues@12.5.1): + resolution: {integrity: sha512-CgNENd65DVYtackOVXXRA0D1RPoCv5+77IdBCf7kNqu6LeAnR4nfTI6qjaApUdN1xRweUsQjSH7tu7VjkMOA0A==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/util': '*' + '@polkadot/x-randomvalues': '*' + dependencies: + '@polkadot/util': 12.5.1 + '@polkadot/wasm-util': 7.2.2(@polkadot/util@12.5.1) + '@polkadot/x-randomvalues': 12.5.1(@polkadot/util@12.5.1)(@polkadot/wasm-util@7.2.2) + tslib: 2.6.2 dev: false /@polkadot/wasm-crypto-asmjs@4.6.1(@polkadot/util@6.11.1): @@ -3359,7 +3652,17 @@ packages: '@polkadot/util': '*' dependencies: '@polkadot/util': 12.3.2 - tslib: 2.6.0 + tslib: 2.6.2 + dev: false + + /@polkadot/wasm-crypto-asmjs@7.2.2(@polkadot/util@12.5.1): + resolution: {integrity: sha512-wKg+cpsWQCTSVhjlHuNeB/184rxKqY3vaklacbLOMbUXieIfuDBav5PJdzS3yeiVE60TpYaHW4iX/5OYHS82gg==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/util': '*' + dependencies: + '@polkadot/util': 12.5.1 + tslib: 2.6.2 dev: false /@polkadot/wasm-crypto-init@6.4.1(@polkadot/util@10.4.2)(@polkadot/x-randomvalues@10.4.2): @@ -3406,7 +3709,23 @@ packages: '@polkadot/wasm-crypto-wasm': 7.2.1(@polkadot/util@12.3.2) '@polkadot/wasm-util': 7.2.1(@polkadot/util@12.3.2) '@polkadot/x-randomvalues': 12.3.2(@polkadot/util@12.3.2)(@polkadot/wasm-util@7.2.1) - tslib: 2.6.0 + tslib: 2.6.2 + dev: false + + /@polkadot/wasm-crypto-init@7.2.2(@polkadot/util@12.5.1)(@polkadot/x-randomvalues@12.5.1): + resolution: {integrity: sha512-vD4iPIp9x+SssUIWUenxWLPw4BVIwhXHNMpsV81egK990tvpyIxL205/EF5QRb1mKn8WfWcNFm5tYwwh9NdnnA==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/util': '*' + '@polkadot/x-randomvalues': '*' + dependencies: + '@polkadot/util': 12.5.1 + '@polkadot/wasm-bridge': 7.2.2(@polkadot/util@12.5.1)(@polkadot/x-randomvalues@12.5.1) + '@polkadot/wasm-crypto-asmjs': 7.2.2(@polkadot/util@12.5.1) + '@polkadot/wasm-crypto-wasm': 7.2.2(@polkadot/util@12.5.1) + '@polkadot/wasm-util': 7.2.2(@polkadot/util@12.5.1) + '@polkadot/x-randomvalues': 12.5.1(@polkadot/util@12.5.1)(@polkadot/wasm-util@7.2.2) + tslib: 2.6.2 dev: false /@polkadot/wasm-crypto-wasm@4.6.1(@polkadot/util@6.11.1): @@ -3459,7 +3778,18 @@ packages: dependencies: '@polkadot/util': 12.3.2 '@polkadot/wasm-util': 7.2.1(@polkadot/util@12.3.2) - tslib: 2.6.0 + tslib: 2.6.2 + dev: false + + /@polkadot/wasm-crypto-wasm@7.2.2(@polkadot/util@12.5.1): + resolution: {integrity: sha512-3efoIB6jA3Hhv6k0YIBwCtlC8gCSWCk+R296yIXRLLr3cGN415KM/PO/d1JIXYI64lbrRzWRmZRhllw3jf6Atg==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/util': '*' + dependencies: + '@polkadot/util': 12.5.1 + '@polkadot/wasm-util': 7.2.2(@polkadot/util@12.5.1) + tslib: 2.6.2 dev: false /@polkadot/wasm-crypto@4.6.1(@polkadot/util@6.11.1)(@polkadot/x-randomvalues@6.11.1): @@ -3538,7 +3868,24 @@ packages: '@polkadot/wasm-crypto-wasm': 7.2.1(@polkadot/util@12.3.2) '@polkadot/wasm-util': 7.2.1(@polkadot/util@12.3.2) '@polkadot/x-randomvalues': 12.3.2(@polkadot/util@12.3.2)(@polkadot/wasm-util@7.2.1) - tslib: 2.6.0 + tslib: 2.6.2 + dev: false + + /@polkadot/wasm-crypto@7.2.2(@polkadot/util@12.5.1)(@polkadot/x-randomvalues@12.5.1): + resolution: {integrity: sha512-1ZY1rxUTawYm0m1zylvBMFovNIHYgG2v/XoASNp/EMG5c8FQIxCbhJRaTBA983GVq4lN/IAKREKEp9ZbLLqssA==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/util': '*' + '@polkadot/x-randomvalues': '*' + dependencies: + '@polkadot/util': 12.5.1 + '@polkadot/wasm-bridge': 7.2.2(@polkadot/util@12.5.1)(@polkadot/x-randomvalues@12.5.1) + '@polkadot/wasm-crypto-asmjs': 7.2.2(@polkadot/util@12.5.1) + '@polkadot/wasm-crypto-init': 7.2.2(@polkadot/util@12.5.1)(@polkadot/x-randomvalues@12.5.1) + '@polkadot/wasm-crypto-wasm': 7.2.2(@polkadot/util@12.5.1) + '@polkadot/wasm-util': 7.2.2(@polkadot/util@12.5.1) + '@polkadot/x-randomvalues': 12.5.1(@polkadot/util@12.5.1)(@polkadot/wasm-util@7.2.2) + tslib: 2.6.2 dev: false /@polkadot/wasm-util@6.4.1(@polkadot/util@10.4.2): @@ -3571,6 +3918,16 @@ packages: tslib: 2.6.0 dev: false + /@polkadot/wasm-util@7.2.2(@polkadot/util@12.5.1): + resolution: {integrity: sha512-N/25960ifCc56sBlJZ2h5UBpEPvxBmMLgwYsl7CUuT+ea2LuJW9Xh8VHDN/guYXwmm92/KvuendYkEUykpm/JQ==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/util': '*' + dependencies: + '@polkadot/util': 12.5.1 + tslib: 2.6.2 + dev: false + /@polkadot/x-bigint@10.4.2: resolution: {integrity: sha512-awRiox+/XSReLzimAU94fPldowiwnnMUkQJe8AebYhNocAj6SJU00GNoj6j6tAho6yleOwrTJXZaWFBaQVJQNg==} engines: {node: '>=14.0.0'} @@ -3595,6 +3952,14 @@ packages: tslib: 2.6.0 dev: false + /@polkadot/x-bigint@12.5.1: + resolution: {integrity: sha512-Fw39eoN9v0sqxSzfSC5awaDVdzojIiE7d1hRSQgVSrES+8whWvtbYMR0qwbVhTuW7DvogHmye41P9xKMlXZysg==} + engines: {node: '>=16'} + dependencies: + '@polkadot/x-global': 12.5.1 + tslib: 2.6.2 + dev: false + /@polkadot/x-bigint@8.7.1: resolution: {integrity: sha512-ClkhgdB/KqcAKk3zA6Qw8wBL6Wz67pYTPkrAtImpvoPJmR+l4RARauv+MH34JXMUNlNb3aUwqN6lq2Z1zN+mJg==} engines: {node: '>=14.0.0'} @@ -3631,6 +3996,15 @@ packages: tslib: 2.6.0 dev: false + /@polkadot/x-fetch@12.5.1: + resolution: {integrity: sha512-Bc019lOKCoQJrthiS+H3LwCahGtl5tNnb2HK7xe3DBQIUx9r2HsF/uEngNfMRUFkUYg5TPCLFbEWU8NIREBS1A==} + engines: {node: '>=16'} + dependencies: + '@polkadot/x-global': 12.5.1 + node-fetch: 3.3.2 + tslib: 2.6.2 + dev: false + /@polkadot/x-fetch@8.7.1: resolution: {integrity: sha512-ygNparcalYFGbspXtdtZOHvNXZBkNgmNO+um9C0JYq74K5OY9/be93uyfJKJ8JcRJtOqBfVDsJpbiRkuJ1PRfg==} engines: {node: '>=14.0.0'} @@ -3664,6 +4038,13 @@ packages: tslib: 2.6.0 dev: false + /@polkadot/x-global@12.5.1: + resolution: {integrity: sha512-6K0YtWEg0eXInDOihU5aSzeb1t9TiDdX9ZuRly+58ALSqw5kPZYmQLbzE1d8HWzyXRXK+YH65GtLzfMGqfYHmw==} + engines: {node: '>=16'} + dependencies: + tslib: 2.6.2 + dev: false + /@polkadot/x-global@6.11.1: resolution: {integrity: sha512-lsBK/e4KbjfieyRmnPs7bTiGbP/6EoCZz7rqD/voNS5qsJAaXgB9LR+ilubun9gK/TDpebyxgO+J19OBiQPIRw==} engines: {node: '>=14.0.0'} @@ -3709,7 +4090,20 @@ packages: '@polkadot/util': 12.3.2 '@polkadot/wasm-util': 7.2.1(@polkadot/util@12.3.2) '@polkadot/x-global': 12.3.2 - tslib: 2.6.0 + tslib: 2.6.2 + dev: false + + /@polkadot/x-randomvalues@12.5.1(@polkadot/util@12.5.1)(@polkadot/wasm-util@7.2.2): + resolution: {integrity: sha512-UsMb1d+77EPNjW78BpHjZLIm4TaIpfqq89OhZP/6gDIoS2V9iE/AK3jOWKm1G7Y2F8XIoX1qzQpuMakjfagFoQ==} + engines: {node: '>=16'} + peerDependencies: + '@polkadot/util': 12.5.1 + '@polkadot/wasm-util': '*' + dependencies: + '@polkadot/util': 12.5.1 + '@polkadot/wasm-util': 7.2.2(@polkadot/util@12.5.1) + '@polkadot/x-global': 12.5.1 + tslib: 2.6.2 dev: false /@polkadot/x-randomvalues@6.11.1: @@ -3760,6 +4154,14 @@ packages: tslib: 2.6.0 dev: false + /@polkadot/x-textdecoder@12.5.1: + resolution: {integrity: sha512-j2YZGWfwhMC8nHW3BXq10fAPY02ObLL/qoTjCMJ1Cmc/OGq18Ep7k9cXXbjFAq3wf3tUUewt/u/hStKCk3IvfQ==} + engines: {node: '>=16'} + dependencies: + '@polkadot/x-global': 12.5.1 + tslib: 2.6.2 + dev: false + /@polkadot/x-textdecoder@6.11.1: resolution: {integrity: sha512-DI1Ym2lyDSS/UhnTT2e9WutukevFZ0WGpzj4eotuG2BTHN3e21uYtYTt24SlyRNMrWJf5+TkZItmZeqs1nwAfQ==} engines: {node: '>=14.0.0'} @@ -3800,6 +4202,14 @@ packages: tslib: 2.6.0 dev: false + /@polkadot/x-textencoder@12.5.1: + resolution: {integrity: sha512-1JNNpOGb4wD+c7zFuOqjibl49LPnHNr4rj4s3WflLUIZvOMY6euoDuN3ISjQSHCLlVSoH0sOCWA3qXZU4bCTDQ==} + engines: {node: '>=16'} + dependencies: + '@polkadot/x-global': 12.5.1 + tslib: 2.6.2 + dev: false + /@polkadot/x-textencoder@6.11.1: resolution: {integrity: sha512-8ipjWdEuqFo+R4Nxsc3/WW9CSEiprX4XU91a37ZyRVC4e9R1bmvClrpXmRQLVcAQyhRvG8DKOOtWbz8xM+oXKg==} engines: {node: '>=14.0.0'} @@ -3852,6 +4262,18 @@ packages: - utf-8-validate dev: false + /@polkadot/x-ws@12.5.1: + resolution: {integrity: sha512-efNMhB3Lh6pW2iTipMkqwrjpuUtb3EwR/jYZftiIGo5tDPB7rqoMOp9s6KRFJEIUfZkLnMUtbkZ5fHzUJaCjmQ==} + engines: {node: '>=16'} + dependencies: + '@polkadot/x-global': 12.5.1 + tslib: 2.6.2 + ws: 8.14.2 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + dev: false + /@polkadot/x-ws@8.7.1: resolution: {integrity: sha512-Mt0tcNzGXyKnN3DQ06alkv+JLtTfXWu6zSypFrrKHSQe3u79xMQ1nSicmpT3gWLhIa8YF+8CYJXMrqaXgCnDhw==} engines: {node: '>=14.0.0'} @@ -3864,8 +4286,8 @@ packages: - supports-color dev: false - /@polymathnetwork/polymesh-types@0.0.2: - resolution: {integrity: sha512-wGexzpZ4IdrwReQGSH7ViCN+kyoKMQcQC5exATgeG+1cZxOtcbxp+1LWP9xTrnw7R5+PYWPzIl+f71gMkSDD5A==} + /@polymeshassociation/polymesh-types@5.4.1: + resolution: {integrity: sha512-M+bVH7TXPTj1gh9jZX5HV/lB306ABg7J0uEL6lXZoO0+u2GHprv/AfQRDpaKoy2PEcy3QrsXAg3NXwD2jhZP3w==} dev: false /@rollup/plugin-babel@6.0.3(@babel/core@7.20.12)(rollup@3.12.1): @@ -3931,15 +4353,19 @@ packages: resolution: {integrity: sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==} dev: false + /@scure/base@1.1.3: + resolution: {integrity: sha512-/+SgoRjLq7Xlf0CWuLHq2LUZeL/w65kfzAPG5NH9pcmBhs+nunQTn4gvdwgMTIXnt9b2C/1SeL2XiysZEyIC9Q==} + dev: false + /@sinclair/typebox@0.27.8: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true - /@snowfork/snowbridge-types@0.2.7(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2): + /@snowfork/snowbridge-types@0.2.7(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2): resolution: {integrity: sha512-Dz3OM8xvYhzL7XU/QOjgyPWZI4IgPKGByaJo6eZe3UMS6F7TLaFaZW1oYhQVTTahGWWAE6ZwwCuMkVh2FC/9bw==} dependencies: '@polkadot/api': 7.15.1 - '@polkadot/keyring': 8.7.1(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2) + '@polkadot/keyring': 8.7.1(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2) '@polkadot/types': 7.15.1 transitivePeerDependencies: - '@polkadot/util' @@ -3948,16 +4374,16 @@ packages: - supports-color dev: false - /@sora-substrate/type-definitions@1.12.4: - resolution: {integrity: sha512-G+s1DTKGfkncUXUPXQNNrbj/9ZnNxksEXBmqP/RQrmnfYE3C59P5Zkp+D98WsXobkWOnMxqBDlK+VbUQbvMoRA==} + /@sora-substrate/type-definitions@1.17.16: + resolution: {integrity: sha512-JRXpvBPSjV7MkI4GXBAqz/LL1Ji6AU7F/2MAadTWDDfc/GOFFdZ4cCHZxRFClh5azYjTP01VpWFuaeXn4eqgsA==} dependencies: - '@open-web3/orml-type-definitions': 0.9.4-26 + '@open-web3/orml-type-definitions': 1.1.4 dev: false - /@subsocial/definitions@0.7.14: - resolution: {integrity: sha512-dor5S6/tbY09n40e/dh7qFcqF9slMihOMDTXWBM5hTe8nS/Pf5Zp4/r9WiZxxYLoY2v5MlSqyJxjiSCjTxxjUw==} + /@subsocial/definitions@0.8.13: + resolution: {integrity: sha512-P6uCfkdsvlg3kqk+31UfvGFshZGBGtZqfemLVzpZIR6YNwXutKuII6oAwgWTDg36owjP6pHLCKxI5nDk89uKew==} dependencies: - '@polkadot/api': 10.9.1 + '@polkadot/api': 10.10.1 lodash.camelcase: 4.3.0 transitivePeerDependencies: - bufferutil @@ -4005,6 +4431,18 @@ packages: dev: false optional: true + /@substrate/connect@0.7.33: + resolution: {integrity: sha512-1B984/bmXVQvTT9oV3c3b7215lvWmulP9rfP3T3Ri+OU3uIsyCzYw0A+XG6J8/jgO2FnroeNIBWlgoLaUM1uzw==} + requiresBuild: true + dependencies: + '@substrate/connect-extension-protocol': 1.0.1 + smoldot: 2.0.1 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + dev: false + optional: true + /@substrate/smoldot-light@0.6.8: resolution: {integrity: sha512-9lVwbG6wrtss0sd6013BJGe4WN4taujsGG49pwyt1Lj36USeL2Sb164TTUxmZF/g2NQEqDPwPROBdekQ2gFmgg==} dependencies: @@ -4026,14 +4464,14 @@ packages: dev: false optional: true - /@substrate/ss58-registry@1.39.0: - resolution: {integrity: sha512-qZYpuE6n+mwew+X71dOur/CbMXj6rNW27o63JeJwdQH/GvcSKm3JLNhd+bGzwUKg0D/zD30Qc6p4JykArzM+tA==} - dev: false - /@substrate/ss58-registry@1.40.0: resolution: {integrity: sha512-QuU2nBql3J4KCnOWtWDw4n1K4JU0T79j54ZZvm/9nhsX6AIar13FyhsaBfs6QkJ2ixTQAnd7TocJIoJRWbqMZA==} dev: false + /@substrate/ss58-registry@1.43.0: + resolution: {integrity: sha512-USEkXA46P9sqClL7PZv0QFsit4S8Im97wchKG0/H/9q3AT/S76r40UHfCr4Un7eBJPE23f7fU9BZ0ITpP9MCsA==} + dev: false + /@tsconfig/node10@1.0.9: resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} dev: true @@ -4110,8 +4548,12 @@ packages: resolution: {integrity: sha512-7aqorHYgdNO4DM36stTiGO3DvKoex9TQRwsJU6vMaFGyqpBA1MNZkz+PG3gaNUPpTAOYhT1WR7M1JyA3fbS9Cw==} dev: true - /@types/uuid@8.3.4: - resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} + /@types/stylis@4.2.1: + resolution: {integrity: sha512-OSaMrXUKxVigGlKRrET39V2xdhzlztQ9Aqumn1WbCBKHOi9ry7jKSd7rkyj0GzmWaU960Rd+LpOFpLfx5bMQAg==} + dev: false + + /@types/uuid@9.0.5: + resolution: {integrity: sha512-xfHdwa1FMJ082prjSJpoEI57GZITiQz10r3vEJCHa2khEFQjKy91aWKz6+zybzssCvXUwE1LQWgWVwZ4nYUvHQ==} dev: false /@types/websocket@1.0.5: @@ -4120,7 +4562,7 @@ packages: '@types/node': 18.11.18 dev: false - /@typescript-eslint/eslint-plugin@6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@4.9.5): + /@typescript-eslint/eslint-plugin@6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.51.0)(typescript@4.9.5): resolution: {integrity: sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -4132,13 +4574,13 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.8.1 - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@4.9.5) + '@typescript-eslint/parser': 6.7.0(eslint@8.51.0)(typescript@4.9.5) '@typescript-eslint/scope-manager': 6.7.0 - '@typescript-eslint/type-utils': 6.7.0(eslint@8.49.0)(typescript@4.9.5) - '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@4.9.5) + '@typescript-eslint/type-utils': 6.7.0(eslint@8.51.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.7.0(eslint@8.51.0)(typescript@4.9.5) '@typescript-eslint/visitor-keys': 6.7.0 debug: 4.3.4 - eslint: 8.49.0 + eslint: 8.51.0 graphemer: 1.4.0 ignore: 5.2.4 natural-compare: 1.4.0 @@ -4149,7 +4591,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.7.0(eslint@8.49.0)(typescript@4.9.5): + /@typescript-eslint/parser@6.7.0(eslint@8.51.0)(typescript@4.9.5): resolution: {integrity: sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -4164,7 +4606,7 @@ packages: '@typescript-eslint/typescript-estree': 6.7.0(typescript@4.9.5) '@typescript-eslint/visitor-keys': 6.7.0 debug: 4.3.4 - eslint: 8.49.0 + eslint: 8.51.0 typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -4178,7 +4620,7 @@ packages: '@typescript-eslint/visitor-keys': 6.7.0 dev: true - /@typescript-eslint/type-utils@6.7.0(eslint@8.49.0)(typescript@4.9.5): + /@typescript-eslint/type-utils@6.7.0(eslint@8.51.0)(typescript@4.9.5): resolution: {integrity: sha512-f/QabJgDAlpSz3qduCyQT0Fw7hHpmhOzY/Rv6zO3yO+HVIdPfIWhrQoAyG+uZVtWAIS85zAyzgAFfyEr+MgBpg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -4189,9 +4631,9 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 6.7.0(typescript@4.9.5) - '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.7.0(eslint@8.51.0)(typescript@4.9.5) debug: 4.3.4 - eslint: 8.49.0 + eslint: 8.51.0 ts-api-utils: 1.0.3(typescript@4.9.5) typescript: 4.9.5 transitivePeerDependencies: @@ -4224,19 +4666,19 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@6.7.0(eslint@8.49.0)(typescript@4.9.5): + /@typescript-eslint/utils@6.7.0(eslint@8.51.0)(typescript@4.9.5): resolution: {integrity: sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.49.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0) '@types/json-schema': 7.0.13 '@types/semver': 7.5.2 '@typescript-eslint/scope-manager': 6.7.0 '@typescript-eslint/types': 6.7.0 '@typescript-eslint/typescript-estree': 6.7.0(typescript@4.9.5) - eslint: 8.49.0 + eslint: 8.51.0 semver: 7.5.4 transitivePeerDependencies: - supports-color @@ -4251,34 +4693,44 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@unique-nft/opal-testnet-types@930.34.0(@polkadot/api@9.14.2)(@polkadot/types@9.14.2): - resolution: {integrity: sha512-6N5MQC5o4V5J0PZ/JmhRfYOtJTSpCjxxM1pdGysh6aIu/rSey8ELa/9BnGwLIZsOPxW77PKwnt7NIRc01Sze3g==} + /@unique-nft/opal-testnet-types@942.57.0(@polkadot/api@10.9.1)(@polkadot/types@10.9.1): + resolution: {integrity: sha512-VmVDQQmIQn3xQgdkmNov3Ja6yMQlZRIIBkPcIm+eKuX5LeldaBTW5YZJfXjGF9Q18PkoFTSc38QmrfBC+x8D8g==} peerDependencies: - '@polkadot/api': ^9.5.2 - '@polkadot/types': ^9.5.2 + '@polkadot/api': ^10.7.2 + '@polkadot/types': ^10.7.2 dependencies: - '@polkadot/api': 9.14.2 - '@polkadot/types': 9.14.2 + '@polkadot/api': 10.9.1 + '@polkadot/types': 10.9.1 dev: false - /@unique-nft/quartz-mainnet-types@930.34.0(@polkadot/api@9.14.2)(@polkadot/types@9.14.2): - resolution: {integrity: sha512-YwJ3h7Q0crnvGsYfBXjxtPIpQnB9T5JY1LLAapLGvOO3A0iA1PWbSiqAgOdjZTt4zivYm3IbdhxQhyyY6d5jLA==} + /@unique-nft/quartz-mainnet-types@942.57.0(@polkadot/api@10.9.1)(@polkadot/types@10.9.1): + resolution: {integrity: sha512-Tg6VuIIJt9uEhauEOjw5vpXX37B56f6IImtihOLnoyHmHt83LDTWI78YyD8Wph3A///ixexNfQj4VbchFmQRlA==} peerDependencies: - '@polkadot/api': ^9.5.2 - '@polkadot/types': ^9.5.2 + '@polkadot/api': ^10.7.2 + '@polkadot/types': ^10.7.2 dependencies: - '@polkadot/api': 9.14.2 - '@polkadot/types': 9.14.2 + '@polkadot/api': 10.9.1 + '@polkadot/types': 10.9.1 dev: false - /@unique-nft/unique-mainnet-types@930.33.0(@polkadot/api@9.14.2)(@polkadot/types@9.14.2): - resolution: {integrity: sha512-KlliDzrwcyl1igi/rjltue/T6DZQP5yAijcFzWtCsKfLzkCPxcplzYgd5S+VKRoAFrndOMVXleXTUgpPSYiL9Q==} + /@unique-nft/sapphire-mainnet-types@942.57.0(@polkadot/api@10.9.1)(@polkadot/types@10.9.1): + resolution: {integrity: sha512-JopqrlUILDvbfRZdg3oF1y40rHUUZt42hNXHTGejAGLSRQIRyfZOJ8fIVFb+WmJLNbbgefnW/OdlFk2Hvqwm8w==} peerDependencies: - '@polkadot/api': ^9.5.2 - '@polkadot/types': ^9.5.2 + '@polkadot/api': ^10.7.2 + '@polkadot/types': ^10.7.2 dependencies: - '@polkadot/api': 9.14.2 - '@polkadot/types': 9.14.2 + '@polkadot/api': 10.9.1 + '@polkadot/types': 10.9.1 + dev: false + + /@unique-nft/unique-mainnet-types@941.56.0(@polkadot/api@10.9.1)(@polkadot/types@10.9.1): + resolution: {integrity: sha512-bkYPdaRQ2mN8QgrWLi7fREjEbUquCATR8vYnBP8ISXc1lp+N6zHYb0XkIloSn6qoDOyfOlXk61JzDjUSoEKTeQ==} + peerDependencies: + '@polkadot/api': ^10.2.1 + '@polkadot/types': ^10.2.1 + dependencies: + '@polkadot/api': 10.9.1 + '@polkadot/types': 10.9.1 dev: false /@vitest/coverage-v8@0.32.2(vitest@0.34.4): @@ -4340,8 +4792,8 @@ packages: pretty-format: 29.7.0 dev: true - /@zeitgeistpm/type-defs@0.10.0: - resolution: {integrity: sha512-nQBdyRbkIopPOVjRHk9c/RBWiQI6iYE8fs5rmtSNCXm6IxoXssk/1PtWE+UxXXq9mco7rPao9nJMeYXJ1Ro2kg==} + /@zeitgeistpm/type-defs@1.0.0: + resolution: {integrity: sha512-dtjNlJSb8ELz87aTD6jqKKfO7kY4HFYzSmDk9JrzHLv+w/JKtG+aLz+WImL6MSaF1MjDE1tm28dj980Zn+nfGA==} dev: false /@zeroio/type-definitions@0.0.14: @@ -4678,10 +5130,20 @@ packages: resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} engines: {node: '>=6'} + /camelize@1.0.1: + resolution: {integrity: sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==} + dev: false + /caniuse-lite@1.0.30001450: resolution: {integrity: sha512-qMBmvmQmFXaSxexkjjfMvD5rnDL0+m+dUMZKoDYsGG8iZN29RuYh9eRoMvKsT6uMAWlyUUGDEQGJJYjzCIO9ew==} dev: true + /canvas-renderer@2.2.1: + resolution: {integrity: sha512-RrBgVL5qCEDIXpJ6NrzyRNoTnXxYarqm/cS/W6ERhUJts5UQtt/XPEosGN3rqUkZ4fjBArlnCbsISJ+KCFnIAg==} + dependencies: + '@types/node': 18.11.18 + dev: false + /chai@4.3.7: resolution: {integrity: sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==} engines: {node: '>=4'} @@ -4764,6 +5226,10 @@ packages: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} dev: true + /colord@2.9.3: + resolution: {integrity: sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==} + dev: false + /combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -4965,6 +5431,12 @@ packages: resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} dev: true + /copy-to-clipboard@3.3.3: + resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==} + dependencies: + toggle-selection: 1.0.6 + dev: false + /core-js-compat@3.27.2: resolution: {integrity: sha512-welaYuF7ZtbYKGrIy7y3eb40d37rG1FvzEOfe7hSLd2iD6duMDqUhRfSvCGyC46HhR6Y8JXXdZ2lnRUMkPBpvg==} dependencies: @@ -4998,12 +5470,29 @@ packages: which: 2.0.2 dev: true + /css-color-keywords@1.0.0: + resolution: {integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==} + engines: {node: '>=4'} + dev: false + + /css-to-react-native@3.2.0: + resolution: {integrity: sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==} + dependencies: + camelize: 1.0.1 + css-color-keywords: 1.0.0 + postcss-value-parser: 4.2.0 + dev: false + /cssesc@3.0.0: resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} engines: {node: '>=4'} hasBin: true dev: true + /csstype@3.1.2: + resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} + dev: false + /cuint@0.2.2: resolution: {integrity: sha512-d4ZVpCW31eWwCMe1YT3ur7mUDnTXbgwyzaL320DrcRT45rfjYxkt5QWLrmOJ+/UEAI2+fQgKe/fCjR8l4TpRgw==} dev: false @@ -5344,16 +5833,16 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@8.6.0(eslint@8.49.0): + /eslint-config-prettier@8.6.0(eslint@8.51.0): resolution: {integrity: sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.49.0 + eslint: 8.51.0 dev: true - /eslint-config-standard@17.0.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@15.6.1)(eslint-plugin-promise@6.1.1)(eslint@8.49.0): + /eslint-config-standard@17.0.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@15.6.1)(eslint-plugin-promise@6.1.1)(eslint@8.51.0): resolution: {integrity: sha512-/2ks1GKyqSOkH7JFvXJicu0iMpoojkwB+f5Du/1SC0PtBL+s8v30k9njRZ21pm2drKYm2342jFnGWzttxPmZVg==} peerDependencies: eslint: ^8.0.1 @@ -5361,10 +5850,10 @@ packages: eslint-plugin-n: ^15.0.0 eslint-plugin-promise: ^6.0.0 dependencies: - eslint: 8.49.0 - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) - eslint-plugin-n: 15.6.1(eslint@8.49.0) - eslint-plugin-promise: 6.1.1(eslint@8.49.0) + eslint: 8.51.0 + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.51.0) + eslint-plugin-n: 15.6.1(eslint@8.51.0) + eslint-plugin-promise: 6.1.1(eslint@8.51.0) dev: true /eslint-import-resolver-node@0.3.7: @@ -5377,7 +5866,7 @@ packages: - supports-color dev: true - /eslint-import-resolver-typescript@3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0): + /eslint-import-resolver-typescript@3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.51.0): resolution: {integrity: sha512-QTHR9ddNnn35RTxlaEnx2gCxqFlF2SEN0SE2d17SqwyM7YOSI2GHWRYp5BiRkObTUNYPupC/3Fq2a0PpT+EKpg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -5386,9 +5875,9 @@ packages: dependencies: debug: 4.3.4 enhanced-resolve: 5.12.0 - eslint: 8.49.0 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + eslint: 8.51.0 + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.6.0)(eslint@8.51.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.51.0) fast-glob: 3.3.1 get-tsconfig: 4.7.0 is-core-module: 2.13.0 @@ -5400,7 +5889,7 @@ packages: - supports-color dev: true - /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0): + /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.6.0)(eslint@8.51.0): resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} engines: {node: '>=4'} peerDependencies: @@ -5421,38 +5910,38 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@4.9.5) + '@typescript-eslint/parser': 6.7.0(eslint@8.51.0)(typescript@4.9.5) debug: 3.2.7 - eslint: 8.49.0 + eslint: 8.51.0 eslint-import-resolver-node: 0.3.7 - eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) + eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.51.0) transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-es@3.0.1(eslint@8.49.0): + /eslint-plugin-es@3.0.1(eslint@8.51.0): resolution: {integrity: sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==} engines: {node: '>=8.10.0'} peerDependencies: eslint: '>=4.19.1' dependencies: - eslint: 8.49.0 + eslint: 8.51.0 eslint-utils: 2.1.0 regexpp: 3.2.0 dev: true - /eslint-plugin-es@4.1.0(eslint@8.49.0): + /eslint-plugin-es@4.1.0(eslint@8.51.0): resolution: {integrity: sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==} engines: {node: '>=8.10.0'} peerDependencies: eslint: '>=4.19.1' dependencies: - eslint: 8.49.0 + eslint: 8.51.0 eslint-utils: 2.1.0 regexpp: 3.2.0 dev: true - /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0): + /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.51.0): resolution: {integrity: sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==} engines: {node: '>=4'} peerDependencies: @@ -5462,16 +5951,16 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@4.9.5) + '@typescript-eslint/parser': 6.7.0(eslint@8.51.0)(typescript@4.9.5) array-includes: 3.1.6 array.prototype.findlastindex: 1.2.3 array.prototype.flat: 1.3.1 array.prototype.flatmap: 1.3.1 debug: 3.2.7 doctrine: 2.1.0 - eslint: 8.49.0 + eslint: 8.51.0 eslint-import-resolver-node: 0.3.7 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.6.0)(eslint@8.51.0) has: 1.0.3 is-core-module: 2.13.0 is-glob: 4.0.3 @@ -5487,16 +5976,16 @@ packages: - supports-color dev: true - /eslint-plugin-n@15.6.1(eslint@8.49.0): + /eslint-plugin-n@15.6.1(eslint@8.51.0): resolution: {integrity: sha512-R9xw9OtCRxxaxaszTQmQAlPgM+RdGjaL1akWuY/Fv9fRAi8Wj4CUKc6iYVG8QNRjRuo8/BqVYIpfqberJUEacA==} engines: {node: '>=12.22.0'} peerDependencies: eslint: '>=7.0.0' dependencies: builtins: 5.0.1 - eslint: 8.49.0 - eslint-plugin-es: 4.1.0(eslint@8.49.0) - eslint-utils: 3.0.0(eslint@8.49.0) + eslint: 8.51.0 + eslint-plugin-es: 4.1.0(eslint@8.51.0) + eslint-utils: 3.0.0(eslint@8.51.0) ignore: 5.2.4 is-core-module: 2.13.0 minimatch: 3.1.2 @@ -5504,14 +5993,14 @@ packages: semver: 7.5.4 dev: true - /eslint-plugin-node@11.1.0(eslint@8.49.0): + /eslint-plugin-node@11.1.0(eslint@8.51.0): resolution: {integrity: sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==} engines: {node: '>=8.10.0'} peerDependencies: eslint: '>=5.16.0' dependencies: - eslint: 8.49.0 - eslint-plugin-es: 3.0.1(eslint@8.49.0) + eslint: 8.51.0 + eslint-plugin-es: 3.0.1(eslint@8.51.0) eslint-utils: 2.1.0 ignore: 5.2.4 minimatch: 3.1.2 @@ -5519,7 +6008,7 @@ packages: semver: 6.3.1 dev: true - /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.6.0)(eslint@8.49.0)(prettier@2.8.3): + /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.6.0)(eslint@8.51.0)(prettier@2.8.3): resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -5530,22 +6019,22 @@ packages: eslint-config-prettier: optional: true dependencies: - eslint: 8.49.0 - eslint-config-prettier: 8.6.0(eslint@8.49.0) + eslint: 8.51.0 + eslint-config-prettier: 8.6.0(eslint@8.51.0) prettier: 2.8.3 prettier-linter-helpers: 1.0.0 dev: true - /eslint-plugin-promise@6.1.1(eslint@8.49.0): + /eslint-plugin-promise@6.1.1(eslint@8.51.0): resolution: {integrity: sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - eslint: 8.49.0 + eslint: 8.51.0 dev: true - /eslint-plugin-unicorn@44.0.2(eslint@8.49.0): + /eslint-plugin-unicorn@44.0.2(eslint@8.51.0): resolution: {integrity: sha512-GLIDX1wmeEqpGaKcnMcqRvMVsoabeF0Ton0EX4Th5u6Kmf7RM9WBl705AXFEsns56ESkEs0uyelLuUTvz9Tr0w==} engines: {node: '>=14.18'} peerDependencies: @@ -5554,8 +6043,8 @@ packages: '@babel/helper-validator-identifier': 7.19.1 ci-info: 3.7.1 clean-regexp: 1.0.0 - eslint: 8.49.0 - eslint-utils: 3.0.0(eslint@8.49.0) + eslint: 8.51.0 + eslint-utils: 3.0.0(eslint@8.51.0) esquery: 1.5.0 indent-string: 4.0.0 is-builtin-module: 3.2.1 @@ -5568,19 +6057,19 @@ packages: strip-indent: 3.0.0 dev: true - /eslint-plugin-vue@9.17.0(eslint@8.49.0): + /eslint-plugin-vue@9.17.0(eslint@8.51.0): resolution: {integrity: sha512-r7Bp79pxQk9I5XDP0k2dpUC7Ots3OSWgvGZNu3BxmKK6Zg7NgVtcOB6OCna5Kb9oQwJPl5hq183WD0SY5tZtIQ==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.2.0 || ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.49.0) - eslint: 8.49.0 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0) + eslint: 8.51.0 natural-compare: 1.4.0 nth-check: 2.1.1 postcss-selector-parser: 6.0.13 semver: 7.5.4 - vue-eslint-parser: 9.3.1(eslint@8.49.0) + vue-eslint-parser: 9.3.1(eslint@8.51.0) xml-name-validator: 4.0.0 transitivePeerDependencies: - supports-color @@ -5601,13 +6090,13 @@ packages: eslint-visitor-keys: 1.3.0 dev: true - /eslint-utils@3.0.0(eslint@8.49.0): + /eslint-utils@3.0.0(eslint@8.51.0): resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} peerDependencies: eslint: '>=5' dependencies: - eslint: 8.49.0 + eslint: 8.51.0 eslint-visitor-keys: 2.1.0 dev: true @@ -5626,15 +6115,15 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.49.0: - resolution: {integrity: sha512-jw03ENfm6VJI0jA9U+8H5zfl5b+FvuU3YYvZRdZHOlU2ggJkxrlkJH4HcDrZpj6YwD8kuYqvQM8LyesoazrSOQ==} + /eslint@8.51.0: + resolution: {integrity: sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.49.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0) '@eslint-community/regexpp': 4.8.1 '@eslint/eslintrc': 2.1.2 - '@eslint/js': 8.49.0 + '@eslint/js': 8.51.0 '@humanwhocodes/config-array': 0.11.11 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 @@ -5709,6 +6198,12 @@ packages: engines: {node: '>=0.10.0'} dev: true + /ethereum-blockies-base64@1.0.2: + resolution: {integrity: sha512-Vg2HTm7slcWNKaRhCUl/L3b4KrB8ohQXdd5Pu3OI897EcR6tVRvUqdTwAyx+dnmoDzj8e2bwBLDQ50ByFmcz6w==} + dependencies: + pnglib: 0.0.1 + dev: false + /ethers@5.7.2: resolution: {integrity: sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==} dependencies: @@ -6451,13 +6946,20 @@ packages: istanbul-lib-report: 3.0.0 dev: true + /jdenticon@3.2.0: + resolution: {integrity: sha512-z6Iq3fTODUMSOiR2nNYrqigS6Y0GvdXfyQWrUby7htDHvX7GNEwaWR4hcaL+FmhEgBe08Xkup/BKxXQhDJByPA==} + engines: {node: '>=6.4.0'} + hasBin: true + dependencies: + canvas-renderer: 2.2.1 + dev: false + /js-sha3@0.8.0: resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==} dev: false /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - dev: true /js-yaml@4.1.0: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} @@ -6606,6 +7108,13 @@ packages: /lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + /loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + dependencies: + js-tokens: 4.0.0 + dev: false + /loupe@2.3.6: resolution: {integrity: sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==} dependencies: @@ -6763,13 +7272,18 @@ packages: engines: {node: '>= 8'} dev: false + /mock-socket@9.3.1: + resolution: {integrity: sha512-qxBgB7Qa2sEQgHFjj0dSigq7fX4k6Saisd5Nelwp2q8mlbAFh5dHV9JTTlF8viYJLSSWgMCZFUom8PJcMNBoJw==} + engines: {node: '>= 8'} + dev: false + /modify-values@1.0.1: resolution: {integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==} engines: {node: '>=0.10.0'} dev: true - /moonbeam-types-bundle@2.0.9: - resolution: {integrity: sha512-0HjdhYFfdfgFqpjDgdO04fijoTtJvjFVgZJST4LZhepQ8ciMfW5XWzuedVyIW/bRDB3NelyI9f3qZFsjq9s0sA==} + /moonbeam-types-bundle@2.0.10: + resolution: {integrity: sha512-QDk/ktioLqDQCOLUu/+FyyF3UYWdKOqqa6q1vwI75pdKBg5elNpRXugEC1irzkLolTanvMRc2rO+qarT9ijjyg==} dependencies: '@polkadot/api': 9.14.2 typescript: 4.9.5 @@ -6794,7 +7308,6 @@ packages: resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - dev: true /natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -6820,6 +7333,18 @@ packages: - supports-color dev: false + /nock@13.3.4: + resolution: {integrity: sha512-DDpmn5oLEdCTclEqweOT4U7bEpuoifBMFUXem9sA4turDAZ5tlbrEoWqCorwXey8CaAw44mst5JOQeVNiwtkhw==} + engines: {node: '>= 10.13'} + dependencies: + debug: 4.3.4 + json-stringify-safe: 5.0.1 + lodash: 4.17.21 + propagate: 2.0.1 + transitivePeerDependencies: + - supports-color + dev: false + /node-domexception@1.0.0: resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} engines: {node: '>=10.5.0'} @@ -6846,6 +7371,15 @@ packages: formdata-polyfill: 4.0.10 dev: false + /node-fetch@3.3.2: + resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + data-uri-to-buffer: 4.0.1 + fetch-blob: 3.2.0 + formdata-polyfill: 4.0.10 + dev: false + /node-gyp-build@4.6.0: resolution: {integrity: sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==} hasBin: true @@ -6880,6 +7414,11 @@ packages: boolbase: 1.0.0 dev: true + /object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + dev: false + /object-inspect@1.12.3: resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} dev: true @@ -7085,7 +7624,6 @@ packages: /picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} - dev: true /picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} @@ -7122,10 +7660,14 @@ packages: engines: {node: '>=4'} dev: true - /pontem-types-bundle@1.0.15(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2): + /pnglib@0.0.1: + resolution: {integrity: sha512-95ChzOoYLOPIyVmL+Y6X+abKGXUJlvOVLkB1QQkyXl7Uczc6FElUy/x01NS7r2GX6GRezloO/ecCX9h4U9KadA==} + dev: false + + /pontem-types-bundle@1.0.15(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2): resolution: {integrity: sha512-PXQTwvb6QB5VW3UILU9w7du55j7hd2mZspfLPcum7XEwxhVhzH22dygd3waSNEhybTgcsV40XB4d3OIdwgaLvw==} dependencies: - '@polkadot/keyring': 7.9.2(@polkadot/util-crypto@12.1.2)(@polkadot/util@10.4.2) + '@polkadot/keyring': 7.9.2(@polkadot/util-crypto@12.5.1)(@polkadot/util@12.3.2) '@polkadot/types': 6.12.1 typescript: 4.9.5 transitivePeerDependencies: @@ -7141,6 +7683,10 @@ packages: util-deprecate: 1.0.2 dev: true + /postcss-value-parser@4.2.0: + resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} + dev: false + /postcss@8.4.29: resolution: {integrity: sha512-cbI+jaqIeu/VGqXEarWkRCCffhjgXc0qjBtXpqJhTBohMUjUQnbBr0xqX3vEKudc4iviTewcJo5ajcec5+wdJw==} engines: {node: ^10 || ^12 || >=14} @@ -7150,6 +7696,15 @@ packages: source-map-js: 1.0.2 dev: true + /postcss@8.4.31: + resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.6 + picocolors: 1.0.0 + source-map-js: 1.0.2 + dev: false + /prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -7181,6 +7736,14 @@ packages: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} dev: true + /prop-types@15.8.1: + resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + react-is: 16.13.1 + dev: false + /propagate@2.0.1: resolution: {integrity: sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==} engines: {node: '>= 8'} @@ -7205,9 +7768,39 @@ packages: engines: {node: '>=8'} dev: true + /react-copy-to-clipboard@5.1.0(react@18.2.0): + resolution: {integrity: sha512-k61RsNgAayIJNoy9yDsYzDe/yAZAzEbEgcz3DZMhF686LEyukcE1hzurxe85JandPUG+yTfGVFzuEw3xt8WP/A==} + peerDependencies: + react: ^15.3.0 || 16 || 17 || 18 + dependencies: + copy-to-clipboard: 3.3.3 + prop-types: 15.8.1 + react: 18.2.0 + dev: false + + /react-dom@18.2.0(react@18.2.0): + resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==} + peerDependencies: + react: ^18.2.0 + dependencies: + loose-envify: 1.4.0 + react: 18.2.0 + scheduler: 0.23.0 + dev: false + + /react-is@16.13.1: + resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} + dev: false + /react-is@18.2.0: resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} - dev: true + + /react@18.2.0: + resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} + engines: {node: '>=0.10.0'} + dependencies: + loose-envify: 1.4.0 + dev: false /read-pkg-up@3.0.0: resolution: {integrity: sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==} @@ -7435,16 +8028,10 @@ packages: tslib: 1.14.1 dev: false - /rxjs@7.8.0: - resolution: {integrity: sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==} - dependencies: - tslib: 2.5.0 - dev: false - /rxjs@7.8.1: resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} dependencies: - tslib: 2.5.0 + tslib: 2.6.0 dev: false /safe-array-concat@1.0.1: @@ -7478,6 +8065,12 @@ packages: regexp-tree: 0.1.24 dev: true + /scheduler@0.23.0: + resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==} + dependencies: + loose-envify: 1.4.0 + dev: false + /scrypt-js@3.0.1: resolution: {integrity: sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==} dev: false @@ -7534,6 +8127,10 @@ packages: safe-buffer: 5.2.1 dev: false + /shallowequal@1.1.0: + resolution: {integrity: sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==} + dev: false + /shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -7574,10 +8171,19 @@ packages: dev: false optional: true + /smoldot@2.0.1: + resolution: {integrity: sha512-Wqw2fL/sELQByLSeeTX1Z/d0H4McmphPMx8vh6UZS/bIIDx81oU7s/drmx2iL/ME36uk++YxpRuJey8/MOyfOA==} + dependencies: + ws: 8.14.2 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + dev: false + optional: true + /source-map-js@1.0.2: resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} engines: {node: '>=0.10.0'} - dev: true /source-map@0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} @@ -7651,6 +8257,10 @@ packages: resolution: {integrity: sha512-f9aPhy8fYBuMN+sNfakZV18U39PbalgjXG3lLB9WkaYTxijru61wb57V9wxxNthXM5Sd88ETBWi29qLAsHO52Q==} dev: true + /store@2.0.12: + resolution: {integrity: sha512-eO9xlzDpXLiMr9W1nQ3Nfp9EzZieIQc10zPPMP5jsVV7bLOziSFFBP0XoDXACEIFtdI+rIz0NwWVA/QVJ8zJtw==} + dev: false + /string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -7731,6 +8341,30 @@ packages: acorn: 8.10.0 dev: true + /styled-components@6.1.0(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-VWNfYYBuXzuLS/QYEeoPgMErP26WL+dX9//rEh80B2mmlS1yRxRxuL5eax4m6ybYEUoHWlTy2XOU32767mlMkg==} + engines: {node: '>= 16'} + peerDependencies: + react: '>= 16.8.0' + react-dom: '>= 16.8.0' + dependencies: + '@emotion/is-prop-valid': 1.2.1 + '@emotion/unitless': 0.8.1 + '@types/stylis': 4.2.1 + css-to-react-native: 3.2.0 + csstype: 3.1.2 + postcss: 8.4.31 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + shallowequal: 1.1.0 + stylis: 4.3.0 + tslib: 2.6.2 + dev: false + + /stylis@4.3.0: + resolution: {integrity: sha512-E87pIogpwUsUwXw7dNyU4QDjdgVMy52m+XEOPEKUn161cCzWjjhPSQhByfd1CcNvrOLnXQ6OnnZDwnJrz/Z4YQ==} + dev: false + /supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} @@ -7816,6 +8450,10 @@ packages: is-number: 7.0.0 dev: true + /toggle-selection@1.0.6: + resolution: {integrity: sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==} + dev: false + /tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} dev: false @@ -7885,6 +8523,10 @@ packages: resolution: {integrity: sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==} dev: false + /tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + dev: false + /tweetnacl@1.0.3: resolution: {integrity: sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==} dev: false @@ -8059,8 +8701,8 @@ packages: /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - /uuid@8.3.2: - resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + /uuid@9.0.1: + resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} hasBin: true dev: false @@ -8207,14 +8849,14 @@ packages: - terser dev: true - /vue-eslint-parser@9.3.1(eslint@8.49.0): + /vue-eslint-parser@9.3.1(eslint@8.51.0): resolution: {integrity: sha512-Clr85iD2XFZ3lJ52/ppmUDG/spxQu6+MAeHXjjyI4I1NUYZ9xmenQp4N0oaHJhrA8OOxltCVxMRfANGa70vU0g==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: '>=6.0.0' dependencies: debug: 4.3.4 - eslint: 8.49.0 + eslint: 8.51.0 eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 espree: 9.6.1 @@ -8336,6 +8978,19 @@ packages: optional: true dev: false + /ws@8.14.2: + resolution: {integrity: sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: false + /xml-name-validator@4.0.0: resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==} engines: {node: '>=12'} diff --git a/src/index.ts b/src/index.ts index 26acc785..9eab03f7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,5 +10,5 @@ export * from './pallets/builder' export * from './pallets/pallets' export * from './types' export { NODE_NAMES, SUPPORTED_PALLETS } from './maps/consts' -export { getNodeEndpointOption } from './utils' +export { getNodeEndpointOption, getNode } from './utils' export * from './errors' diff --git a/src/maps/assets.json b/src/maps/assets.json index d2050055..f08ec0bc 100644 --- a/src/maps/assets.json +++ b/src/maps/assets.json @@ -69,6 +69,11 @@ "symbol": "ASTR", "decimals": 18 }, + { + "assetId": "0x892ddd9387dbdecedaef878bd7acf8603109227f", + "symbol": "TAI", + "decimals": 12 + }, { "assetId": "9", "symbol": "PHA", @@ -266,6 +271,11 @@ "symbol": "TST", "decimals": 18 }, + { + "assetId": "4294969281", + "symbol": "USDC", + "decimals": 6 + }, { "assetId": "1326", "symbol": "aASTR", @@ -455,6 +465,11 @@ } ], "otherAssets": [ + { + "assetId": "100003", + "symbol": "LpArbUSDC", + "decimals": 6 + }, { "assetId": "3", "symbol": "aUSD", @@ -475,13 +490,18 @@ "symbol": "CFG", "decimals": 18 }, + { + "assetId": "100002", + "symbol": "LpBaseUSDC", + "decimals": 6 + }, { "assetId": "1", "symbol": "USDT", "decimals": 6 }, { - "assetId": "100,001", + "assetId": "100001", "symbol": "LpEthUSDC", "decimals": 6 }, @@ -490,10 +510,20 @@ "symbol": "GLMR", "decimals": 18 }, + { + "assetId": "100004", + "symbol": "LpCeloUSDC", + "decimals": 6 + }, { "assetId": "2", "symbol": "xcUSDC", "decimals": 6 + }, + { + "assetId": "4139607887", + "symbol": "ALTF1", + "decimals": 6 } ] }, @@ -742,6 +772,11 @@ "symbol": "DAI", "decimals": 18 }, + { + "assetId": "23", + "symbol": "USDT", + "decimals": 6 + }, { "assetId": "4", "symbol": "WETH", @@ -784,20 +819,60 @@ } ], "otherAssets": [ + { + "assetId": "7", + "symbol": "WBNB.wh", + "decimals": 18 + }, + { + "assetId": "5", + "symbol": "TBTC.wh", + "decimals": 18 + }, + { + "assetId": "8", + "symbol": "USDC.wh", + "decimals": 6 + }, { "assetId": "1", "symbol": "LDOT", "decimals": 10 }, + { + "assetId": "9", + "symbol": "WBTC.wh", + "decimals": 8 + }, { "assetId": "2", "symbol": "USDT", "decimals": 6 }, + { + "assetId": "10", + "symbol": "GLMR", + "decimals": 18 + }, + { + "assetId": "6", + "symbol": "WETH.wh", + "decimals": 18 + }, + { + "assetId": "11", + "symbol": "BNC", + "decimals": 12 + }, { "assetId": "3", "symbol": "VDOT", "decimals": 10 + }, + { + "assetId": "4", + "symbol": "DAI.wh", + "decimals": 18 } ] }, @@ -814,7 +889,7 @@ { "assetId": "1", "symbol": "DOT", - "decimals": 12 + "decimals": 0 } ] }, @@ -839,6 +914,11 @@ } ], "otherAssets": [ + { + "assetId": "150874409661081770150564009349448205842", + "symbol": "ZTG", + "decimals": 10 + }, { "assetId": "144012926827374458669278577633504620722", "symbol": "FIL", @@ -879,6 +959,11 @@ "symbol": "ASTR", "decimals": 18 }, + { + "assetId": "166377000701797186346254371275954761085", + "symbol": "USDC", + "decimals": 6 + }, { "assetId": "89994634370519791027168048838578580624", "symbol": "SUB", @@ -944,6 +1029,11 @@ "symbol": "vFIL", "decimals": 18 }, + { + "assetId": "238111524681612888331172110363070489924", + "symbol": "OTP", + "decimals": 12 + }, { "assetId": "132685552157663328694213725410064821485", "symbol": "PHA", @@ -1143,7 +1233,7 @@ } ] }, - "Statemint": { + "AssetHubPolkadot": { "paraId": 1000, "relayChainAssetSymbol": "DOT", "nativeAssets": [ @@ -1228,6 +1318,11 @@ "symbol": "VSC", "decimals": 9 }, + { + "assetId": "19760401", + "symbol": "APPL", + "decimals": 0 + }, { "assetId": "5", "symbol": "PLX", @@ -1240,7 +1335,7 @@ }, { "assetId": "1984", - "symbol": "USDT", + "symbol": "USDt", "decimals": 6 }, { @@ -1263,6 +1358,11 @@ "symbol": "BRZ", "decimals": 6 }, + { + "assetId": "19120101", + "symbol": "NTDC", + "decimals": 0 + }, { "assetId": "1", "symbol": "no1", @@ -1613,17 +1713,6 @@ } ] }, - "Dorafactory": { - "paraId": 2115, - "relayChainAssetSymbol": "KSM", - "nativeAssets": [ - { - "symbol": "DORA", - "decimals": 12 - } - ], - "otherAssets": [] - }, "Encointer": { "paraId": 1001, "relayChainAssetSymbol": "KSM", @@ -1668,78 +1757,6 @@ ], "otherAssets": [] }, - "Kico": { - "paraId": 2107, - "relayChainAssetSymbol": "KSM", - "nativeAssets": [ - { - "symbol": "KICO", - "decimals": 14 - } - ], - "otherAssets": [ - { - "assetId": "100", - "symbol": "KSM", - "decimals": 12 - }, - { - "assetId": "0", - "symbol": "KICO", - "decimals": 14 - }, - { - "assetId": "10", - "symbol": "aUSD", - "decimals": 12 - }, - { - "assetId": "11", - "symbol": "SOL", - "decimals": 12 - }, - { - "assetId": "4000000004", - "symbol": "aUSD-KSM", - "decimals": 10 - }, - { - "assetId": "4000000000", - "symbol": "KICO-aUSD", - "decimals": 10 - }, - { - "assetId": "4000000001", - "symbol": "KSM-KICO", - "decimals": 10 - }, - { - "assetId": "13", - "symbol": "LIKE", - "decimals": 12 - }, - { - "assetId": "102", - "symbol": "KAR", - "decimals": 12 - }, - { - "assetId": "4000000002", - "symbol": "KAR-KICO", - "decimals": 10 - }, - { - "assetId": "4000000003", - "symbol": "KAR-aUSD", - "decimals": 10 - }, - { - "assetId": "12", - "symbol": "LT", - "decimals": 12 - } - ] - }, "Karura": { "paraId": 2000, "relayChainAssetSymbol": "KSM", @@ -2206,6 +2223,11 @@ "symbol": "vKSM", "decimals": 12 }, + { + "assetId": "47", + "symbol": "TKN0x0000001E-TKN0x00000000", + "decimals": 18 + }, { "assetId": "24", "symbol": "TKN0x0000000F-TKN0x00000000", @@ -2305,6 +2327,11 @@ "assetId": "36", "symbol": "TKN0x00000000-TKN0x0000001E", "decimals": 18 + }, + { + "assetId": "46", + "symbol": "TKN0x00000000-TKN0x0000002D", + "decimals": 18 } ] }, @@ -2854,17 +2881,6 @@ } ] }, - "Pichiu": { - "paraId": 2102, - "relayChainAssetSymbol": "KSM", - "nativeAssets": [ - { - "symbol": "PCHU", - "decimals": 18 - } - ], - "otherAssets": [] - }, "Pioneer": { "paraId": 2096, "relayChainAssetSymbol": "KSM", @@ -3062,7 +3078,7 @@ } ] }, - "Statemine": { + "AssetHubKusama": { "paraId": 1000, "relayChainAssetSymbol": "KSM", "nativeAssets": [ @@ -3262,6 +3278,11 @@ "symbol": "ARIS", "decimals": 8 }, + { + "assetId": "11", + "symbol": "USDT", + "decimals": 4 + }, { "assetId": "224", "symbol": "SIK", @@ -3367,6 +3388,11 @@ "symbol": "ki", "decimals": 18 }, + { + "assetId": "5797867", + "symbol": "TAKE", + "decimals": 0 + }, { "assetId": "33", "symbol": "BUSSY", @@ -3549,7 +3575,7 @@ }, { "assetId": "1984", - "symbol": "USDT", + "symbol": "USDt", "decimals": 6 }, { @@ -3757,6 +3783,11 @@ "symbol": "KOJO", "decimals": 3 }, + { + "assetId": "19840", + "symbol": "USDt", + "decimals": 3 + }, { "assetId": "37", "symbol": "MNCH", @@ -3906,7 +3937,7 @@ "relayChainAssetSymbol": "DOT", "nativeAssets": [ { - "symbol": "EQ", + "symbol": "TOKEN", "decimals": 9 } ], @@ -3940,15 +3971,283 @@ } ] }, - "Efinity": { - "paraId": 2021, + "Manta": { + "paraId": 2104, "relayChainAssetSymbol": "DOT", "nativeAssets": [ { - "symbol": "EFI", + "symbol": "MANTA", "decimals": 18 } ], + "otherAssets": [ + { + "assetId": "21", + "symbol": "BUSD.aca.eth", + "decimals": 18 + }, + { + "assetId": "26", + "symbol": "WBTC.aca.eth", + "decimals": 8 + }, + { + "assetId": "35", + "symbol": "WBNB.MRL.BSC", + "decimals": 18 + }, + { + "assetId": "16", + "symbol": "SHIB", + "decimals": 18 + }, + { + "assetId": "29", + "symbol": "WBNB", + "decimals": 18 + }, + { + "assetId": "23", + "symbol": "DAI.aca.eth", + "decimals": 18 + }, + { + "assetId": "9", + "symbol": "USDT", + "decimals": 6 + }, + { + "assetId": "31", + "symbol": "DAI.MRL.ETH", + "decimals": 18 + }, + { + "assetId": "18", + "symbol": "LINK", + "decimals": 18 + }, + { + "assetId": "20", + "symbol": "ARB.aca.eth", + "decimals": 18 + }, + { + "assetId": "8", + "symbol": "DOT", + "decimals": 10 + }, + { + "assetId": "30", + "symbol": "BNC", + "decimals": 12 + }, + { + "assetId": "33", + "symbol": "USDC.MRL.ETH", + "decimals": 6 + }, + { + "assetId": "10", + "symbol": "GLMR", + "decimals": 18 + }, + { + "assetId": "12", + "symbol": "LDOT", + "decimals": 10 + }, + { + "assetId": "17", + "symbol": "UNI", + "decimals": 18 + }, + { + "assetId": "25", + "symbol": "MATIC.aca.poly", + "decimals": 18 + }, + { + "assetId": "13", + "symbol": "ARB.aca.arb", + "decimals": 18 + }, + { + "assetId": "22", + "symbol": "USDT.aca.eth", + "decimals": 6 + }, + { + "assetId": "28", + "symbol": "MATIC.aca.eth", + "decimals": 18 + }, + { + "assetId": "34", + "symbol": "TBTC.MRL.ETH", + "decimals": 18 + }, + { + "assetId": "24", + "symbol": "USDC.aca.eth", + "decimals": 6 + }, + { + "assetId": "19", + "symbol": "APE", + "decimals": 18 + }, + { + "assetId": "32", + "symbol": "WETH.MRL.ETH", + "decimals": 18 + }, + { + "assetId": "27", + "symbol": "WETH.aca.eth", + "decimals": 18 + }, + { + "assetId": "15", + "symbol": "LDO", + "decimals": 18 + }, + { + "assetId": "11", + "symbol": "ACA", + "decimals": 12 + }, + { + "assetId": "14", + "symbol": "BUSD.aca.bsc", + "decimals": 18 + } + ] + }, + "Genshiro": { + "paraId": 2024, + "relayChainAssetSymbol": "KSM", + "nativeAssets": [ + { + "symbol": "Unknown", + "decimals": 9 + }, + { + "symbol": "EQD", + "decimals": 9 + }, + { + "symbol": "GENS", + "decimals": 9 + }, + { + "symbol": "ETH", + "decimals": 9 + }, + { + "symbol": "BTC", + "decimals": 9 + }, + { + "symbol": "KSM", + "decimals": 9 + }, + { + "symbol": "CRV", + "decimals": 9 + } + ], + "otherAssets": [] + }, + "Nodle": { + "paraId": 2026, + "relayChainAssetSymbol": "DOT", + "nativeAssets": [ + { + "symbol": "NODL", + "decimals": 11 + } + ], "otherAssets": [] + }, + "OriginTrail": { + "paraId": 2043, + "relayChainAssetSymbol": "DOT", + "nativeAssets": [ + { + "symbol": "OTP", + "decimals": 12 + } + ], + "otherAssets": [ + { + "assetId": "1", + "symbol": "TRAC", + "decimals": 18 + } + ] + }, + "Pendulum": { + "paraId": 2094, + "relayChainAssetSymbol": "DOT", + "nativeAssets": [ + { + "symbol": "PEN", + "decimals": 12 + } + ], + "otherAssets": [] + }, + "Polkadex": { + "paraId": 2040, + "relayChainAssetSymbol": "DOT", + "nativeAssets": [ + { + "symbol": "PDEX", + "decimals": 12 + } + ], + "otherAssets": [ + { + "assetId": "1" + }, + { + "assetId": "0" + }, + { + "assetId": "456" + }, + { + "assetId": "222121451965151777636299756141619631150" + }, + { + "assetId": "95930534000017180603917534864279132680" + }, + { + "assetId": "188197390862117588552302061289480388608" + }, + { + "assetId": "3496813586714279103986568049643838918" + }, + { + "assetId": "123" + } + ] + }, + "Zeidgeist": { + "paraId": 2092, + "relayChainAssetSymbol": "DOT", + "nativeAssets": [ + { + "symbol": "ZTG", + "decimals": 10 + } + ], + "otherAssets": [ + { + "assetId": "0", + "symbol": "DOT", + "decimals": 10 + } + ] } } diff --git a/src/maps/consts.ts b/src/maps/consts.ts index e587f02a..eaf89ac5 100644 --- a/src/maps/consts.ts +++ b/src/maps/consts.ts @@ -5,7 +5,6 @@ import ParachainNode from '../nodes/ParachainNode' import Unique from '../nodes/supported/Unique' import { TNode } from '../types' import Crust from '../nodes/supported/Crust' -import Efinity from '../nodes/supported/Efinity' import { BifrostPolkadot } from '../nodes/supported/BifrostPolkadot' import Bitgreen from '../nodes/supported/Bitgreen' import { Centrifuge } from '../nodes/supported/Centrifuge' @@ -24,23 +23,20 @@ import Basilisk from '../nodes/supported/Basilisk' import BifrostKusama from '../nodes/supported/BifrostKusama' import Pioneer from '../nodes/supported/Pioneer' import Turing from '../nodes/supported/Turing' -import Pichiu from '../nodes/supported/Pichiu' import Picasso from '../nodes/supported/Picasso' import ParallelHeiko from '../nodes/supported/ParallelHeiko' import Moonriver from '../nodes/supported/Moonriver' import Mangata from '../nodes/supported/Mangata' import Litmus from '../nodes/supported/Litmus' import Kintsugi from '../nodes/supported/Kintsugi' -import Kico from '../nodes/supported/Kico' import Calamari from '../nodes/supported/Calamari' import CrustShadow from '../nodes/supported/CrustShadow' -import Dorafactory from '../nodes/supported/Dorafactory' import Imbue from '../nodes/supported/Imbue' import Integritee from '../nodes/supported/Integritee' import InvArchTinker from '../nodes/supported/InvArchTinker' import Karura from '../nodes/supported/Karura' -import Statemint from '../nodes/supported/Statemint' -import Statemine from '../nodes/supported/Statemine' +import AssetHubPolkadot from '../nodes/supported/AssetHubPolkadot' +import AssetHubKusama from '../nodes/supported/AssetHubKusama' import Encointer from '../nodes/supported/Encointer' import Robonomics from '../nodes/supported/Robonomics' import Astar from '../nodes/supported/Astar' @@ -49,9 +45,16 @@ import Darwinia from '../nodes/supported/Darwinia' import Crab from '../nodes/supported/Crab' import Quartz from '../nodes/supported/Quartz' import Shiden from '../nodes/supported/Shiden' +import Manta from '../nodes/supported/Manta' +import Genshiro from '../nodes/supported/Genshiro' +import Nodle from '../nodes/supported/Nodle' +import OriginTrail from '../nodes/supported/OriginTrail' +import Pendulum from '../nodes/supported/Pendulum' +import Polkadex from '../nodes/supported/Polkadex' +import Zeidgeist from '../nodes/supported/Zeidgeist' export const NODE_NAMES = [ - 'Statemint', + 'AssetHubPolkadot', 'Acala', 'Astar', 'BifrostPolkadot', @@ -66,7 +69,7 @@ export const NODE_NAMES = [ 'Litentry', 'Moonbeam', 'Parallel', - 'Statemine', + 'AssetHubKusama', 'Encointer', 'Altair', 'Amplitude', @@ -77,19 +80,16 @@ export const NODE_NAMES = [ 'Calamari', 'CrustShadow', 'Crab', - 'Dorafactory', 'Imbue', 'Integritee', 'InvArchTinker', 'Karura', - 'Kico', 'Kintsugi', 'Litmus', 'Mangata', 'Moonriver', 'ParallelHeiko', 'Picasso', - 'Pichiu', 'Quartz', 'Robonomics', 'Shiden', @@ -97,17 +97,22 @@ export const NODE_NAMES = [ 'Equilibrium', 'Unique', 'Crust', - 'Efinity' + 'Manta', + 'Genshiro', + 'Nodle', + 'OriginTrail', + 'Pendulum', + 'Polkadex', + 'Zeidgeist' ] as const export const nodes: Record = { - Statemint: new Statemint(), + AssetHubPolkadot: new AssetHubPolkadot(), Acala: new Acala(), Astar: new Astar(), Equilibrium: new Equilibrium(), Unique: new Unique(), Crust: new Crust(), - Efinity: new Efinity(), BifrostPolkadot: new BifrostPolkadot(), Bitgreen: new Bitgreen(), Centrifuge: new Centrifuge(), @@ -120,7 +125,7 @@ export const nodes: Record = { Litentry: new Litentry(), Moonbeam: new Moonbeam(), Parallel: new Parallel(), - Statemine: new Statemine(), + AssetHubKusama: new AssetHubKusama(), Encointer: new Encointer(), Altair: new Altair(), Amplitude: new Amplitude(), @@ -131,23 +136,27 @@ export const nodes: Record = { Calamari: new Calamari(), CrustShadow: new CrustShadow(), Crab: new Crab(), - Dorafactory: new Dorafactory(), Imbue: new Imbue(), Integritee: new Integritee(), InvArchTinker: new InvArchTinker(), Karura: new Karura(), - Kico: new Kico(), Kintsugi: new Kintsugi(), Litmus: new Litmus(), Mangata: new Mangata(), Moonriver: new Moonriver(), ParallelHeiko: new ParallelHeiko(), Picasso: new Picasso(), - Pichiu: new Pichiu(), Quartz: new Quartz(), Robonomics: new Robonomics(), Shiden: new Shiden(), - Turing: new Turing() + Turing: new Turing(), + Manta: new Manta(), + Genshiro: new Genshiro(), + Nodle: new Nodle(), + OriginTrail: new OriginTrail(), + Pendulum: new Pendulum(), + Polkadex: new Polkadex(), + Zeidgeist: new Zeidgeist() } export const SUPPORTED_PALLETS = ['XTokens', 'OrmlXTokens', 'PolkadotXcm', 'RelayerXcm'] as const diff --git a/src/maps/pallets.json b/src/maps/pallets.json index aaecab62..7481a8b5 100644 --- a/src/maps/pallets.json +++ b/src/maps/pallets.json @@ -1,5 +1,5 @@ { - "Statemint": { + "AssetHubPolkadot": { "defaultPallet": "PolkadotXcm", "supportedPallets": ["PolkadotXcm"] }, @@ -59,7 +59,7 @@ "defaultPallet": "XTokens", "supportedPallets": ["PolkadotXcm", "XTokens"] }, - "Statemine": { + "AssetHubKusama": { "defaultPallet": "PolkadotXcm", "supportedPallets": ["PolkadotXcm"] }, @@ -103,10 +103,6 @@ "defaultPallet": "PolkadotXcm", "supportedPallets": ["PolkadotXcm"] }, - "Dorafactory": { - "defaultPallet": "XTokens", - "supportedPallets": ["PolkadotXcm", "XTokens"] - }, "Imbue": { "defaultPallet": "XTokens", "supportedPallets": ["PolkadotXcm", "XTokens"] @@ -123,10 +119,6 @@ "defaultPallet": "XTokens", "supportedPallets": ["PolkadotXcm", "XTokens"] }, - "Kico": { - "defaultPallet": "XTokens", - "supportedPallets": ["XTokens", "PolkadotXcm"] - }, "Kintsugi": { "defaultPallet": "XTokens", "supportedPallets": ["PolkadotXcm", "XTokens"] @@ -151,10 +143,6 @@ "defaultPallet": "XTokens", "supportedPallets": ["PolkadotXcm", "XTokens"] }, - "Pichiu": { - "defaultPallet": "OrmlXTokens", - "supportedPallets": ["PolkadotXcm", "OrmlXTokens"] - }, "Quartz": { "defaultPallet": "XTokens", "supportedPallets": ["XTokens", "PolkadotXcm"] @@ -183,7 +171,31 @@ "defaultPallet": "XTokens", "supportedPallets": ["PolkadotXcm", "XTokens"] }, - "Efinity": { + "Manta": { + "defaultPallet": "XTokens", + "supportedPallets": ["PolkadotXcm", "XTokens"] + }, + "Genshiro": { + "defaultPallet": "PolkadotXcm", + "supportedPallets": ["PolkadotXcm"] + }, + "Nodle": { + "defaultPallet": "XTokens", + "supportedPallets": ["PolkadotXcm", "XTokens"] + }, + "OriginTrail": { + "defaultPallet": "PolkadotXcm", + "supportedPallets": ["PolkadotXcm"] + }, + "Pendulum": { + "defaultPallet": "XTokens", + "supportedPallets": ["PolkadotXcm", "XTokens"] + }, + "Zeidgeist": { + "defaultPallet": "XTokens", + "supportedPallets": ["PolkadotXcm", "XTokens"] + }, + "Polkadex": { "defaultPallet": "XTokens", "supportedPallets": ["PolkadotXcm", "XTokens"] } diff --git a/src/nodes/ParachainNode.ts b/src/nodes/ParachainNode.ts index 7459ec86..3b2a1bb8 100644 --- a/src/nodes/ParachainNode.ts +++ b/src/nodes/ParachainNode.ts @@ -14,7 +14,7 @@ import { TSerializedApiCall } from '../types' import { - handleAddress, + generateAddressPayload, getFees, createHeaderPolkadotXCM, createCurrencySpecification @@ -66,7 +66,7 @@ abstract class ParachainNode { transfer( api: ApiPromise, - currencySymbol: string, + currencySymbol: string | undefined, currencyId: number | undefined, amount: any, to: string, @@ -82,15 +82,30 @@ abstract class ParachainNode { currency: currencySymbol, currencyID: currencyId, amount, - addressSelection: handleAddress(scenario, 'xTokens', api, to, this.version, paraId), + addressSelection: generateAddressPayload( + api, + scenario, + 'XTokens', + to, + this.version, + paraId + ), fees: getFees(scenario), + scenario, serializedApiCallEnabled }) } else if (supportsPolkadotXCM(this)) { return this.transferPolkadotXCM({ api, header: createHeaderPolkadotXCM(scenario, this.version, paraId), - addressSelection: handleAddress(scenario, 'polkadotXCM', api, to, this.version, paraId), + addressSelection: generateAddressPayload( + api, + scenario, + 'PolkadotXcm', + to, + this.version, + paraId + ), currencySelection: createCurrencySpecification( amount, scenario, @@ -99,6 +114,7 @@ abstract class ParachainNode { currencyId ), scenario, + currencySymbol, serializedApiCallEnabled }) } else { diff --git a/src/nodes/supported/Amplitude.ts b/src/nodes/supported/Amplitude.ts index c7595f70..abeec074 100644 --- a/src/nodes/supported/Amplitude.ts +++ b/src/nodes/supported/Amplitude.ts @@ -6,11 +6,11 @@ import XTokensTransferImpl from '../XTokensTransferImpl' class Amplitude extends ParachainNode implements IXTokensTransfer { constructor() { - super('Amplitude', 'amplitude', 'kusama', Version.V1) + super('Amplitude', 'amplitude', 'kusama', Version.V3) } transferXTokens(input: XTokensTransferInput) { - return XTokensTransferImpl.transferXTokens(input, { XCM: input.currency }) + return XTokensTransferImpl.transferXTokens(input, { XCM: input.currencyID }) } } diff --git a/src/nodes/supported/Statemine.ts b/src/nodes/supported/AssetHubKusama.ts similarity index 53% rename from src/nodes/supported/Statemine.ts rename to src/nodes/supported/AssetHubKusama.ts index 7ba101b4..8c7dd0d6 100644 --- a/src/nodes/supported/Statemine.ts +++ b/src/nodes/supported/AssetHubKusama.ts @@ -1,21 +1,19 @@ -// Contains detailed structure of XCM call construction for Statemine Parachain +// Contains detailed structure of XCM call construction for AssetHubKusama Parachain import { IPolkadotXCMTransfer, PolkadotXCMTransferInput, Version } from '../../types' import ParachainNode from '../ParachainNode' import PolkadotXCMTransferImpl from '../PolkadotXCMTransferImpl' -class Statemine extends ParachainNode implements IPolkadotXCMTransfer { +class AssetHubKusama extends ParachainNode implements IPolkadotXCMTransfer { constructor() { - super('Statemine', 'statemine', 'kusama', Version.V3) + super('AssetHubKusama', 'KusamaAssetHub', 'kusama', Version.V3) } transferPolkadotXCM(input: PolkadotXCMTransferInput) { // TESTED https://kusama.subscan.io/xcm_message/kusama-ddc2a48f0d8e0337832d7aae26f6c3053e1f4ffd // TESTED https://kusama.subscan.io/xcm_message/kusama-8e423130a4d8b61679af95dbea18a55124f99672 - const method = - input.scenario === 'ParaToPara' ? 'limitedReserveTransferAssets' : 'limitedTeleportAssets' - return PolkadotXCMTransferImpl.transferPolkadotXCM(input, method, 'Unlimited') + return PolkadotXCMTransferImpl.transferPolkadotXCM(input, 'limitedTeleportAssets', 'Unlimited') } } -export default Statemine +export default AssetHubKusama diff --git a/src/nodes/supported/Statemint.ts b/src/nodes/supported/AssetHubPolkadot.ts similarity index 61% rename from src/nodes/supported/Statemint.ts rename to src/nodes/supported/AssetHubPolkadot.ts index b683af6c..604f91df 100644 --- a/src/nodes/supported/Statemint.ts +++ b/src/nodes/supported/AssetHubPolkadot.ts @@ -4,18 +4,16 @@ import { IPolkadotXCMTransfer, PolkadotXCMTransferInput, Version } from '../../t import ParachainNode from '../ParachainNode' import PolkadotXCMTransferImpl from '../PolkadotXCMTransferImpl' -class Statemint extends ParachainNode implements IPolkadotXCMTransfer { +class AssetHubPolkadot extends ParachainNode implements IPolkadotXCMTransfer { constructor() { - super('Statemint', 'statemint', 'polkadot', Version.V3) + super('AssetHubPolkadot', 'PolkadotAssetHub', 'polkadot', Version.V3) } transferPolkadotXCM(input: PolkadotXCMTransferInput) { // TESTED https://polkadot.subscan.io/xcm_message/polkadot-e4cdf1c59ffbb3d504adbc893d6b7d72665e484d // TESTED https://polkadot.subscan.io/xcm_message/polkadot-c01158ff1a5c5a596138ed9d0f0f2bccc1d9c51d - const method = - input.scenario === 'ParaToPara' ? 'limitedReserveTransferAssets' : 'limitedTeleportAssets' - return PolkadotXCMTransferImpl.transferPolkadotXCM(input, method, 'Unlimited') + return PolkadotXCMTransferImpl.transferPolkadotXCM(input, 'limitedTeleportAssets', 'Unlimited') } } -export default Statemint +export default AssetHubPolkadot diff --git a/src/nodes/supported/Centrifuge.ts b/src/nodes/supported/Centrifuge.ts index fd884afd..284e212b 100644 --- a/src/nodes/supported/Centrifuge.ts +++ b/src/nodes/supported/Centrifuge.ts @@ -6,7 +6,7 @@ import XTokensTransferImpl from '../XTokensTransferImpl' export class Centrifuge extends ParachainNode implements IXTokensTransfer { constructor() { - super('Centrifuge', 'centrifuge', 'polkadot', Version.V1) + super('Centrifuge', 'centrifuge', 'polkadot', Version.V3) } transferXTokens(input: XTokensTransferInput) { diff --git a/src/nodes/supported/ComposableFinance.ts b/src/nodes/supported/ComposableFinance.ts index 1fc9c727..8ff24647 100644 --- a/src/nodes/supported/ComposableFinance.ts +++ b/src/nodes/supported/ComposableFinance.ts @@ -5,7 +5,7 @@ import ParachainNode from '../ParachainNode' class ComposableFinance extends ParachainNode { constructor() { - super('ComposableFinance', 'composableFinance', 'polkadot', Version.V3) + super('ComposableFinance', 'composable', 'polkadot', Version.V3) } } diff --git a/src/nodes/supported/Dorafactory.ts b/src/nodes/supported/Dorafactory.ts deleted file mode 100644 index 1248b76c..00000000 --- a/src/nodes/supported/Dorafactory.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Contains detailed structure of XCM call construction for DoraFactory Parachain - -import { IXTokensTransfer, Version, XTokensTransferInput } from '../../types' -import ParachainNode from '../ParachainNode' -import XTokensTransferImpl from '../XTokensTransferImpl' - -class Dorafactory extends ParachainNode implements IXTokensTransfer { - constructor() { - super('Dorafactory', 'dorafactory', 'kusama', Version.V1) - } - - transferXTokens(input: XTokensTransferInput) { - const { currency, fees } = input - return XTokensTransferImpl.transferXTokens(input, currency, fees) - } -} - -export default Dorafactory diff --git a/src/nodes/supported/Efinity.ts b/src/nodes/supported/Efinity.ts deleted file mode 100644 index 4e3dc976..00000000 --- a/src/nodes/supported/Efinity.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Contains detailed structure of XCM call construction for Efinity Parachain - -import { IXTokensTransfer, Version, XTokensTransferInput } from '../../types' -import ParachainNode from '../ParachainNode' -import XTokensTransferImpl from '../XTokensTransferImpl' - -class Efinity extends ParachainNode implements IXTokensTransfer { - constructor() { - super('Efinity', 'efinity', 'polkadot', Version.V3) - } - - transferXTokens(input: XTokensTransferInput) { - const currencySelection = { currencyId: [0, input.currencyID] } - return XTokensTransferImpl.transferXTokens(input, currencySelection) - } -} - -export default Efinity diff --git a/src/nodes/supported/Encointer.ts b/src/nodes/supported/Encointer.ts index f6b65667..2dc00763 100644 --- a/src/nodes/supported/Encointer.ts +++ b/src/nodes/supported/Encointer.ts @@ -7,7 +7,7 @@ import PolkadotXCMTransferImpl from '../PolkadotXCMTransferImpl' class Encointer extends ParachainNode implements IPolkadotXCMTransfer { constructor() { - super('Encointer', 'encointer', 'kusama', Version.V1) + super('Encointer', 'encointer', 'kusama', Version.V3) } transferPolkadotXCM(input: PolkadotXCMTransferInput) { diff --git a/src/nodes/supported/Equilibrium.ts b/src/nodes/supported/Equilibrium.ts index 5e9ebd60..b6f6a558 100644 --- a/src/nodes/supported/Equilibrium.ts +++ b/src/nodes/supported/Equilibrium.ts @@ -6,7 +6,7 @@ import PolkadotXCMTransferImpl from '../PolkadotXCMTransferImpl' class Equilibrium extends ParachainNode implements IPolkadotXCMTransfer { constructor() { - super('Equilibrium', 'equilibrium', 'polkadot', Version.V1) + super('Equilibrium', 'equilibrium', 'polkadot', Version.V3) } transferPolkadotXCM(input: PolkadotXCMTransferInput) { diff --git a/src/nodes/supported/Genshiro.ts b/src/nodes/supported/Genshiro.ts new file mode 100644 index 00000000..98400342 --- /dev/null +++ b/src/nodes/supported/Genshiro.ts @@ -0,0 +1,27 @@ +// Contains detailed structure of XCM call construction for Genshiro Parachain + +import { InvalidCurrencyError } from '../../errors' +import { IPolkadotXCMTransfer, PolkadotXCMTransferInput, Version } from '../../types' +import ParachainNode from '../ParachainNode' +import PolkadotXCMTransferImpl from '../PolkadotXCMTransferImpl' + +class Genshiro extends ParachainNode implements IPolkadotXCMTransfer { + constructor() { + super('Genshiro', 'Genshiro', 'kusama', Version.V3) + } + + transferPolkadotXCM(input: PolkadotXCMTransferInput) { + if (input.scenario === 'ParaToPara' && input.currencySymbol !== 'GENS') { + throw new InvalidCurrencyError( + `Node ${this.node} does not support currency ${input.currencySymbol}` + ) + } + return PolkadotXCMTransferImpl.transferPolkadotXCM( + input, + 'limitedReserveTransferAssets', + 'Unlimited' + ) + } +} + +export default Genshiro diff --git a/src/nodes/supported/HydraDX.ts b/src/nodes/supported/HydraDX.ts index d7884e37..21bbc022 100644 --- a/src/nodes/supported/HydraDX.ts +++ b/src/nodes/supported/HydraDX.ts @@ -6,11 +6,11 @@ import XTokensTransferImpl from '../XTokensTransferImpl' class HydraDX extends ParachainNode implements IXTokensTransfer { constructor() { - super('HydraDX', 'hydra', 'polkadot', Version.V3) + super('HydraDX', 'hydradx', 'polkadot', Version.V3) } transferXTokens(input: XTokensTransferInput) { - const { currencyID, fees } = input + const { currencyID } = input return XTokensTransferImpl.transferXTokens(input, currencyID) } } diff --git a/src/nodes/supported/Imbue.ts b/src/nodes/supported/Imbue.ts index 9b965d02..74fcc494 100644 --- a/src/nodes/supported/Imbue.ts +++ b/src/nodes/supported/Imbue.ts @@ -10,7 +10,7 @@ class Imbue extends ParachainNode implements IXTokensTransfer { } transferXTokens(input: XTokensTransferInput) { - const { currency, fees } = input + const { currency } = input return XTokensTransferImpl.transferXTokens(input, currency) } } diff --git a/src/nodes/supported/Integritee.ts b/src/nodes/supported/Integritee.ts index 9ab6709d..bae4b526 100644 --- a/src/nodes/supported/Integritee.ts +++ b/src/nodes/supported/Integritee.ts @@ -1,15 +1,18 @@ // Contains detailed structure of XCM call construction for Integritee Parachain +import { InvalidCurrencyError } from '../../errors' import { IXTokensTransfer, Version, XTokensTransferInput } from '../../types' import ParachainNode from '../ParachainNode' import XTokensTransferImpl from '../XTokensTransferImpl' class Integritee extends ParachainNode implements IXTokensTransfer { constructor() { - super('Integritee', 'integritee', 'kusama', Version.V1) + super('Integritee', 'integritee', 'kusama', Version.V3) } transferXTokens(input: XTokensTransferInput) { + if (input.currency === 'KSM') + throw new InvalidCurrencyError(`Node ${this.node} does not support currency KSM`) return XTokensTransferImpl.transferXTokens(input, input.currency) } } diff --git a/src/nodes/supported/InvArchTinker.ts b/src/nodes/supported/InvArchTinker.ts index 1baf566f..08f96ea0 100644 --- a/src/nodes/supported/InvArchTinker.ts +++ b/src/nodes/supported/InvArchTinker.ts @@ -6,12 +6,12 @@ import XTokensTransferImpl from '../XTokensTransferImpl' class InvArchTinker extends ParachainNode implements IXTokensTransfer { constructor() { - super('InvArchTinker', 'tinker', 'kusama', Version.V1) + super('InvArchTinker', 'tinker', 'kusama', Version.V3) } transferXTokens(input: XTokensTransferInput) { - const { currencyID, fees } = input - return XTokensTransferImpl.transferXTokens(input, currencyID, fees) + const { currencyID } = input + return XTokensTransferImpl.transferXTokens(input, currencyID) } } diff --git a/src/nodes/supported/Kico.ts b/src/nodes/supported/Kico.ts deleted file mode 100644 index f12e5e89..00000000 --- a/src/nodes/supported/Kico.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Contains detailed structure of XCM call construction for Kico Parachain - -import { IXTokensTransfer, Version, XTokensTransferInput } from '../../types' -import ParachainNode from '../ParachainNode' -import XTokensTransferImpl from '../XTokensTransferImpl' - -class Kico extends ParachainNode implements IXTokensTransfer { - constructor() { - super('Kico', 'kico', 'kusama', Version.V1) - } - - transferXTokens(input: XTokensTransferInput) { - const { currencyID, fees } = input - return XTokensTransferImpl.transferXTokens(input, currencyID, fees) - } -} - -export default Kico diff --git a/src/nodes/supported/Litentry.ts b/src/nodes/supported/Litentry.ts index 754dc84e..38bdc39d 100644 --- a/src/nodes/supported/Litentry.ts +++ b/src/nodes/supported/Litentry.ts @@ -6,7 +6,7 @@ import XTokensTransferImpl from '../XTokensTransferImpl' class Litentry extends ParachainNode implements IXTokensTransfer { constructor() { - super('Litentry', 'litentry', 'polkadot', Version.V1) + super('Litentry', 'litentry', 'polkadot', Version.V3) } transferXTokens(input: XTokensTransferInput) { diff --git a/src/nodes/supported/Manta.ts b/src/nodes/supported/Manta.ts new file mode 100644 index 00000000..d1cc36ae --- /dev/null +++ b/src/nodes/supported/Manta.ts @@ -0,0 +1,17 @@ +// Contains detailed structure of XCM call construction for Manta Parachain + +import { IXTokensTransfer, Version, XTokensTransferInput } from '../../types' +import ParachainNode from '../ParachainNode' +import XTokensTransferImpl from '../XTokensTransferImpl' + +class Manta extends ParachainNode implements IXTokensTransfer { + constructor() { + super('Manta', 'manta', 'polkadot', Version.V3) + } + + transferXTokens(input: XTokensTransferInput) { + return XTokensTransferImpl.transferXTokens(input, { ForeignAssetId: input.currencyID }) + } +} + +export default Manta diff --git a/src/nodes/supported/Nodle.ts b/src/nodes/supported/Nodle.ts new file mode 100644 index 00000000..3bf79251 --- /dev/null +++ b/src/nodes/supported/Nodle.ts @@ -0,0 +1,28 @@ +// Contains detailed structure of XCM call construction for Nodle Parachain + +import { InvalidCurrencyError, ScenarioNotSupportedError } from '../../errors' +import { IXTokensTransfer, Version, XTokensTransferInput } from '../../types' +import ParachainNode from '../ParachainNode' +import XTokensTransferImpl from '../XTokensTransferImpl' + +class Nodle extends ParachainNode implements IXTokensTransfer { + constructor() { + super('Nodle', 'nodle', 'polkadot', Version.V3) + } + + transferXTokens(input: XTokensTransferInput) { + if (input.scenario !== 'ParaToPara') { + throw new ScenarioNotSupportedError(this.node, input.scenario) + } + + if (input.currency !== 'NODL') { + throw new InvalidCurrencyError( + `Asset ${input.currency} is not supported by node ${this.node}.` + ) + } + + return XTokensTransferImpl.transferXTokens(input, 'NodleNative') + } +} + +export default Nodle diff --git a/src/nodes/supported/OriginTrail.ts b/src/nodes/supported/OriginTrail.ts new file mode 100644 index 00000000..d923a0ed --- /dev/null +++ b/src/nodes/supported/OriginTrail.ts @@ -0,0 +1,21 @@ +// Contains detailed structure of XCM call construction for OriginTrail Parachain + +import { IPolkadotXCMTransfer, PolkadotXCMTransferInput, Version } from '../../types' +import ParachainNode from '../ParachainNode' +import PolkadotXCMTransferImpl from '../PolkadotXCMTransferImpl' + +class OriginTrail extends ParachainNode implements IPolkadotXCMTransfer { + constructor() { + super('OriginTrail', 'origintrail-parachain', 'polkadot', Version.V3) + } + + transferPolkadotXCM(input: PolkadotXCMTransferInput) { + return PolkadotXCMTransferImpl.transferPolkadotXCM( + input, + 'limitedReserveTransferAssets', + 'Unlimited' + ) + } +} + +export default OriginTrail diff --git a/src/nodes/supported/ParallelHeiko.ts b/src/nodes/supported/ParallelHeiko.ts index 6e4f4335..cf1960a6 100644 --- a/src/nodes/supported/ParallelHeiko.ts +++ b/src/nodes/supported/ParallelHeiko.ts @@ -6,7 +6,7 @@ import XTokensTransferImpl from '../XTokensTransferImpl' class ParallelHeiko extends ParachainNode implements IXTokensTransfer { constructor() { - super('ParallelHeiko', 'heiko', 'kusama', Version.V1) + super('ParallelHeiko', 'heiko', 'kusama', Version.V3) } transferXTokens(input: XTokensTransferInput) { diff --git a/src/nodes/supported/Pendulum.ts b/src/nodes/supported/Pendulum.ts new file mode 100644 index 00000000..64aec8e7 --- /dev/null +++ b/src/nodes/supported/Pendulum.ts @@ -0,0 +1,28 @@ +// Contains detailed structure of XCM call construction for Pendulum Parachain + +import { InvalidCurrencyError, ScenarioNotSupportedError } from '../../errors' +import { IXTokensTransfer, Version, XTokensTransferInput } from '../../types' +import ParachainNode from '../ParachainNode' +import XTokensTransferImpl from '../XTokensTransferImpl' + +class Pendulum extends ParachainNode implements IXTokensTransfer { + constructor() { + super('Pendulum', 'pendulum', 'polkadot', Version.V1) + } + + transferXTokens(input: XTokensTransferInput) { + if (input.scenario !== 'ParaToPara') { + throw new ScenarioNotSupportedError(this.node, input.scenario) + } + + if (input.currency !== 'PEN') { + throw new InvalidCurrencyError( + `Asset ${input.currency} is not supported by node ${this.node}.` + ) + } + + return XTokensTransferImpl.transferXTokens(input, { XCM: input.currencyID }) + } +} + +export default Pendulum diff --git a/src/nodes/supported/Pichiu.ts b/src/nodes/supported/Pichiu.ts deleted file mode 100644 index 9e7cd9d3..00000000 --- a/src/nodes/supported/Pichiu.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Contains detailed structure of XCM call construction for Pichiu Parachain - -import { IXTokensTransfer, Version, XTokensTransferInput } from '../../types' -import ParachainNode from '../ParachainNode' -import XTokensTransferImpl from '../XTokensTransferImpl' - -class Pichiu extends ParachainNode implements IXTokensTransfer { - constructor() { - super('Pichiu', 'pichiu', 'kusama', Version.V1) - } - - transferXTokens(input: XTokensTransferInput) { - const { currency, fees } = input - return XTokensTransferImpl.transferXTokens(input, currency, fees, 'OrmlXTokens') - } -} - -export default Pichiu diff --git a/src/nodes/supported/Polkadex.ts b/src/nodes/supported/Polkadex.ts new file mode 100644 index 00000000..2a93fb8f --- /dev/null +++ b/src/nodes/supported/Polkadex.ts @@ -0,0 +1,17 @@ +// Contains detailed structure of XCM call construction for Polkadex Parachain + +import { IXTokensTransfer, Version, XTokensTransferInput } from '../../types' +import ParachainNode from '../ParachainNode' +import XTokensTransferImpl from '../XTokensTransferImpl' + +class Polkadex extends ParachainNode implements IXTokensTransfer { + constructor() { + super('Polkadex', 'polkadex', 'polkadot', Version.V3) + } + + transferXTokens(input: XTokensTransferInput) { + return XTokensTransferImpl.transferXTokens(input, input.currencyID) + } +} + +export default Polkadex diff --git a/src/nodes/supported/Turing.ts b/src/nodes/supported/Turing.ts index 90b3e638..b28b07e2 100644 --- a/src/nodes/supported/Turing.ts +++ b/src/nodes/supported/Turing.ts @@ -10,7 +10,7 @@ class Turing extends ParachainNode implements IXTokensTransfer { } transferXTokens(input: XTokensTransferInput) { - const { currencyID, fees } = input + const { currencyID } = input return XTokensTransferImpl.transferXTokens(input, currencyID) } } diff --git a/src/nodes/supported/Zeidgeist.ts b/src/nodes/supported/Zeidgeist.ts new file mode 100644 index 00000000..aa359457 --- /dev/null +++ b/src/nodes/supported/Zeidgeist.ts @@ -0,0 +1,17 @@ +// Contains detailed structure of XCM call construction for Zeidgeist Parachain + +import { IXTokensTransfer, Version, XTokensTransferInput } from '../../types' +import ParachainNode from '../ParachainNode' +import XTokensTransferImpl from '../XTokensTransferImpl' + +class Zeidgeist extends ParachainNode implements IXTokensTransfer { + constructor() { + super('Zeidgeist', 'zeitgeist', 'polkadot', Version.V3) + } + + transferXTokens(input: XTokensTransferInput) { + return XTokensTransferImpl.transferXTokens(input, { ForeignAsset: input.currencyID }) + } +} + +export default Zeidgeist diff --git a/src/pallets/assets/assets.test.ts b/src/pallets/assets/assets.test.ts index 68709bb3..4eb39798 100644 --- a/src/pallets/assets/assets.test.ts +++ b/src/pallets/assets/assets.test.ts @@ -1,4 +1,4 @@ -//Contains tests for different Asset operation functions +// Contains tests for different Asset operation functions import { describe, expect, it } from 'vitest' import { NODE_NAMES } from '../../maps/consts' @@ -29,24 +29,24 @@ describe('getAssetsObject', () => { }) describe('getAssetId', () => { - it('should return id of BTC from statemine', () => { - const assetId = getAssetId('Statemine', 'BTC') + it('should return id of BTC from AssetHubKusama', () => { + const assetId = getAssetId('AssetHubKusama', 'BTC') expect(assetId).toEqual('9999') }) it('should return null for not existing assetId', () => { - const assetId = getAssetId('Statemine', 'BTG') + const assetId = getAssetId('AssetHubKusama', 'BTG') expect(assetId).toBeNull() }) }) describe('getRelayChainSymbol', () => { - it('should return relay chain currency symbol for Statemine', () => { - const assetId = getRelayChainSymbol('Statemine') + it('should return relay chain currency symbol for AssetHubKusama', () => { + const assetId = getRelayChainSymbol('AssetHubKusama') expect(assetId).toEqual('KSM') }) - it('should return relay chain currency symbol for Statemint', () => { - const assetId = getRelayChainSymbol('Statemint') + it('should return relay chain currency symbol for AssetHubPolkadot', () => { + const assetId = getRelayChainSymbol('AssetHubPolkadot') expect(assetId).toEqual('DOT') }) it('should return relay chain currency symbol for all nodes', () => { @@ -78,19 +78,18 @@ describe('getOtherAssets', () => { expect(assets).toBeInstanceOf(Array) assets.forEach(asset => { expect(asset).toBeTypeOf('object') - expect(asset).toHaveProperty('symbol') - expect(asset).toHaveProperty('decimals') + expect(asset).toHaveProperty('assetId') }) }) }) }) describe('getAllAssetsSymbols', () => { - it('should return all assets symbols for all nodes', () => { + it('should return all assets symbols for node or empty array', () => { NODE_NAMES.forEach(node => { - const assets = getAllAssetsSymbols(node) - expect(assets).toBeInstanceOf(Array) - assets.forEach(asset => expect(asset).toBeTypeOf('string')) + const assetsSymbols = getAllAssetsSymbols(node) + expect(assetsSymbols).toBeInstanceOf(Array) + assetsSymbols.forEach(assetSymbol => expect(assetSymbol).toBeTypeOf('string')) }) }) }) @@ -102,9 +101,11 @@ describe('getAssetDecimals', () => { expect(obj).not.toBeNull() if (obj) { ;[...obj.nativeAssets, ...obj.otherAssets].forEach(asset => { - const decimals = getAssetDecimals(node, asset.symbol) - expect(decimals).toBeTypeOf('number') - expect(decimals).toBeGreaterThanOrEqual(0) + if (asset.symbol) { + const decimals = getAssetDecimals(node, asset.symbol) + expect(decimals).toBeTypeOf('number') + expect(decimals).toBeGreaterThanOrEqual(0) + } }) } }) diff --git a/src/pallets/assets/assets.ts b/src/pallets/assets/assets.ts index 34cd5acd..35cb99aa 100644 --- a/src/pallets/assets/assets.ts +++ b/src/pallets/assets/assets.ts @@ -34,12 +34,8 @@ export function getAllAssetsSymbols(node: TNode) { const { relayChainAssetSymbol, nativeAssets, otherAssets } = getAssetsObject(node) return [ relayChainAssetSymbol, - ...nativeAssets.map(function ({ symbol }) { - return symbol - }), - ...otherAssets.map(function ({ symbol }) { - return symbol - }) + ...nativeAssets.map(({ symbol }) => symbol), + ...otherAssets.filter(asset => !!asset.symbol).map(({ symbol }) => symbol) ] } diff --git a/src/pallets/assets/assetsUtils.test.ts b/src/pallets/assets/assetsUtils.test.ts index fbb0bd2c..371119d8 100644 --- a/src/pallets/assets/assetsUtils.test.ts +++ b/src/pallets/assets/assetsUtils.test.ts @@ -10,10 +10,12 @@ describe('getAssetBySymbolOrId', () => { NODE_NAMES.forEach(node => { const { otherAssets } = getAssetsObject(node) otherAssets.forEach(other => { - const asset = getAssetBySymbolOrId(node, other.symbol) - expect(asset).toHaveProperty('symbol') - expect(other.symbol).toEqual(asset?.symbol) - expect(asset).toHaveProperty('assetId') + if (other.symbol) { + const asset = getAssetBySymbolOrId(node, other.symbol) + expect(asset).toHaveProperty('symbol') + expect(other.symbol).toEqual(asset?.symbol) + expect(asset).toHaveProperty('assetId') + } }) }) }) @@ -63,8 +65,8 @@ describe('getAssetBySymbolOrId', () => { }) }) - it('should find assetId for KSM asset in Statemine', () => { - const asset = getAssetBySymbolOrId('Statemine', 'KSM') + it('should find assetId for KSM asset in AssetHubKusama', () => { + const asset = getAssetBySymbolOrId('AssetHubKusama', 'KSM') expect(asset).toHaveProperty('symbol') expect(asset).toHaveProperty('assetId') }) diff --git a/src/pallets/assets/assetsUtils.ts b/src/pallets/assets/assetsUtils.ts index bab81d3b..89f6dffd 100644 --- a/src/pallets/assets/assetsUtils.ts +++ b/src/pallets/assets/assetsUtils.ts @@ -6,7 +6,7 @@ import { getAssetsObject } from './assets' export const getAssetBySymbolOrId = ( node: TNode, symbolOrId: string | number -): { symbol: string; assetId?: number } | null => { +): { symbol?: string; assetId?: number } | null => { const { otherAssets, nativeAssets, relayChainAssetSymbol } = getAssetsObject(node) const asset = [...otherAssets, ...nativeAssets].find( diff --git a/src/pallets/xcmPallet/transfer.test.ts b/src/pallets/xcmPallet/transfer.test.ts index 06dd19e7..65a5a875 100644 --- a/src/pallets/xcmPallet/transfer.test.ts +++ b/src/pallets/xcmPallet/transfer.test.ts @@ -75,16 +75,16 @@ describe('send', () => { expect(t).toThrowError(InvalidCurrencyError) }) - it('should throw an IncompatibleNodesError when passing Statemine, DOT and Statemint as destination', () => { + it('should throw an IncompatibleNodesError when passing AssetHubKusama, DOT and AssetHubPolkadot as destination', () => { const t = () => { - send(api, 'Statemine', 'DOT', AMOUNT, ADDRESS, 'Statemint') + send(api, 'AssetHubKusama', 'DOT', AMOUNT, ADDRESS, 'AssetHubPolkadot') } expect(t).toThrowError(IncompatibleNodesError) }) - it('should throw an IncompatibleNodesError when passing Statemint, DOT and Statemine as destination', () => { + it('should throw an IncompatibleNodesError when passing AssetHubPolkadot, DOT and AssetHubKusama as destination', () => { const t = () => { - send(api, 'Statemint', 'DOT', AMOUNT, ADDRESS, 'Statemine') + send(api, 'AssetHubPolkadot', 'DOT', AMOUNT, ADDRESS, 'AssetHubKusama') } expect(t).toThrowError(IncompatibleNodesError) }) @@ -93,10 +93,12 @@ describe('send', () => { NODE_NAMES.forEach(node => { const symbols = getAllAssetsSymbols(node) symbols.forEach(symbol => { - const t = () => { - send(api, node, symbol, AMOUNT, ADDRESS) + if (symbol) { + const t = () => { + send(api, node, symbol, AMOUNT, ADDRESS) + } + expect(t).not.toThrowError(InvalidCurrencyError) } - expect(t).not.toThrowError(InvalidCurrencyError) }) }) }) diff --git a/src/pallets/xcmPallet/transfer.ts b/src/pallets/xcmPallet/transfer.ts index 805fc51c..266ca218 100644 --- a/src/pallets/xcmPallet/transfer.ts +++ b/src/pallets/xcmPallet/transfer.ts @@ -3,11 +3,11 @@ import type { ApiPromise } from '@polkadot/api' import { Extrinsic, TNode, TSerializedApiCall, Version } from '../../types' import { - handleAddress, createHeaderPolkadotXCM, createCurrencySpecification, getNode, - callPolkadotJsTxFunction + callPolkadotJsTxFunction, + generateAddressPayload } from '../../utils' import { getParaId, getRelayChainSymbol, hasSupportForAsset } from '../assets' import { getAssetBySymbolOrId } from '../assets/assetsUtils' @@ -40,7 +40,7 @@ const sendCommon = ( ) } - if (destination && !hasSupportForAsset(destination, asset.symbol)) { + if (destination && asset.symbol && !hasSupportForAsset(destination, asset.symbol)) { throw new InvalidCurrencyError( `Destination node ${destination} does not support currency or currencyId ${currencySymbolOrId}.` ) @@ -97,14 +97,14 @@ export const transferRelayToParaCommon = ( serializedApiCallEnabled = false ): Extrinsic | TSerializedApiCall | never => { const paraId = getParaId(destination) - if (destination === 'Statemint' || destination === 'Statemine') { - // Same for Statemint, Statemine and Encoiter + if (destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama') { + // Same for AssetHubPolkadot, AssetHubKusama and Encoiter const serializedApiCall = { module: 'xcmPallet', section: 'limitedTeleportAssets', parameters: [ createHeaderPolkadotXCM('RelayToPara', Version.V3, paraId), - handleAddress('RelayToPara', '', api, to, Version.V3, paraId), + generateAddressPayload(api, 'RelayToPara', null, to, Version.V3, paraId), createCurrencySpecification(amount, 'RelayToPara', Version.V3, destination), 0, 'Unlimited' @@ -120,7 +120,7 @@ export const transferRelayToParaCommon = ( section: 'limitedTeleportAssets', parameters: [ createHeaderPolkadotXCM('RelayToPara', Version.V1, paraId), - handleAddress('RelayToPara', '', api, to, Version.V1, paraId), + generateAddressPayload(api, 'RelayToPara', null, to, Version.V1, paraId), createCurrencySpecification(amount, 'RelayToPara', Version.V1, destination), 0, 'Unlimited' @@ -130,7 +130,13 @@ export const transferRelayToParaCommon = ( return serializedApiCall } return callPolkadotJsTxFunction(api, serializedApiCall) - } else if (destination === 'Darwinia' || destination === 'Crab') { + } else if ( + destination === 'Darwinia' || + destination === 'Crab' || + destination === 'Integritee' || + destination === 'Nodle' || + destination === 'Pendulum' + ) { // Do not do anything because Darwinia and Crab does not have DOT and KSM registered throw new NodeNotSupportedError( 'These nodes do not support XCM transfers from Relay / to Relay chain.' @@ -142,7 +148,7 @@ export const transferRelayToParaCommon = ( section: 'reserveTransferAssets', parameters: [ createHeaderPolkadotXCM('RelayToPara', Version.V3, paraId), - handleAddress('RelayToPara', '', api, to, Version.V3, paraId), + generateAddressPayload(api, 'RelayToPara', null, to, Version.V3, paraId), createCurrencySpecification(amount, 'RelayToPara', Version.V3, destination), 0 ] diff --git a/src/scripts/updateAssets.ts b/src/scripts/updateAssets.ts index c0540838..bd932332 100644 --- a/src/scripts/updateAssets.ts +++ b/src/scripts/updateAssets.ts @@ -29,7 +29,7 @@ const nodeToQuery: NodeToAssetModuleMap = { Litentry: null, // Assets query returns empty array Moonbeam: 'assets.metadata', Parallel: 'assets.metadata', - Statemint: 'assets.metadata', + AssetHubPolkadot: 'assets.metadata', Altair: null, // Assets query returns empty array Amplitude: null, // No assets metadata query Bajun: null, // No assets metadata query @@ -38,12 +38,10 @@ const nodeToQuery: NodeToAssetModuleMap = { Calamari: 'assets.metadata', Crab: null, // No assets metadata query CrustShadow: 'assets.metadata', - Dorafactory: null, // No assets metadata query Encointer: null, // No assets metadata query Imbue: null, // Assets query returns empty array Integritee: null, // No assets metadata query InvArchTinker: null, // Assets query returns empty array - Kico: 'currencies.dicoAssetsInfo', Karura: 'assetRegistry.assetMetadatas', Kintsugi: 'assetRegistry.metadata', Litmus: null, // Assets query returns empty array @@ -51,17 +49,22 @@ const nodeToQuery: NodeToAssetModuleMap = { Moonriver: 'assets.metadata', ParallelHeiko: 'assets.metadata', Picasso: 'assetsRegistry.assetSymbol', - Pichiu: 'assets.metadata', Pioneer: 'assetManager.assetMetadatas', Quartz: null, // No assets metadata query Robonomics: 'assets.metadata', Shiden: 'assets.metadata', - Statemine: 'assets.metadata', + AssetHubKusama: 'assets.metadata', Turing: 'assetRegistry.metadata', Equilibrium: null, // No foreign assets metadata query Unique: null, // Foreign assets query returns empty array Crust: 'assets.metadata', - Efinity: null // No foreign assets metadata query + Manta: 'assets.metadata', + Genshiro: null, // Assets metadata entries have no symbol property (Only GENS paraToPara for now) + Nodle: null, // Only NODL paraToPara for now + OriginTrail: 'assets.metadata', + Pendulum: '', // Only PEN paraToPara for now + Polkadex: 'assets.asset', + Zeidgeist: 'assetRegistry.metadata' } const fetchNativeAssets = async (api: ApiPromise): Promise => { @@ -69,15 +72,24 @@ const fetchNativeAssets = async (api: ApiPromise): Promise ({ symbol, decimals: +decimals[i] })) + return symbols.map((symbol, i) => ({ + symbol, + decimals: decimals[i] ? +decimals[i] : +decimals[0] + })) } const fetchBifrostNativeAssets = async (api: ApiPromise): Promise => { const res = await api.rpc.state.getMetadata() - const TYPE_ID = 131 const DEFAULT_DECIMALS = -1 // Decimals for Bifrost Polkadot will be set to -1 and later derived from other assets - return res.asLatest.lookup.types.at(TYPE_ID)!.type.def.asVariant.variants.map(k => ({ + const typeId = res.asLatest.lookup.types.find(obj => { + return obj.type.path + .toArray() + .map(el => el.toHuman().toString()) + .includes('TokenSymbol') + }) + + return typeId!.type.def.asVariant.variants.map(k => ({ symbol: k.name.toHuman(), decimals: DEFAULT_DECIMALS })) @@ -103,6 +115,20 @@ const fetchOtherAssets = async (api: ApiPromise, query: string) => { ) } +const fetchAssetIdsOnly = async (api: ApiPromise, query: string) => { + const [module, section] = query.split('.') + const res = await api.query[module][section].entries() + return res.map( + ([ + { + args: [era] + } + ]) => ({ + assetId: era.toString() + }) + ) +} + const fetchOtherAssetsCentrifuge = async (api: ApiPromise, query: string) => { const [module, section] = query.split('.') const res = await api.query[module][section].entries() @@ -122,8 +148,12 @@ const fetchOtherAssetsCentrifuge = async (api: ApiPromise, query: string) => { value ]) => { const { symbol, decimals } = value.toHuman() as any + const eraObj = era as any return { - assetId: Object.values(era.toHuman() ?? {})[0], + assetId: + eraObj.type === 'Tranche' + ? Object.values(era.toHuman() ?? {})[0][0].replaceAll(',', '') + : Object.values(era.toHuman() ?? {})[0].replaceAll(',', ''), symbol, decimals: +decimals } @@ -174,26 +204,6 @@ const fetchOtherAssetsInnerType = async (api: ApiPromise, query: string) => { .filter(asset => asset !== null) as unknown as TAssetDetails[] } -const fetchOtherAssetsType2 = async (api: ApiPromise, query: string) => { - const [module, section] = query.split('.') - const res = await api.query[module][section].entries() - return res.map( - ([ - { - args: [era] - }, - value - ]) => { - const json = (value.toHuman() as any).metadata - return { - assetId: era.toString(), - symbol: json.symbol, - decimals: +json.decimals - } - } - ) -} - const fetchAssetsType2 = async (api: ApiPromise, query: string): Promise> => { const [module, section] = query.split('.') const res = await api.query[module][section].entries() @@ -263,6 +273,26 @@ const fetchNodeAssets = async ( return assets } + if (node === 'Polkadex') { + const nativeAssets = (await fetchNativeAssets(api)) ?? [] + const otherAssets = await fetchAssetIdsOnly(api, query!) + await api.disconnect() + return { + nativeAssets, + otherAssets + } + } + + if (node === 'Zeidgeist') { + const nativeAssets = (await fetchNativeAssets(api)) ?? [] + const { otherAssets } = (await fetchAssetsType2(api, query!)) ?? [] + await api.disconnect() + return { + nativeAssets, + otherAssets + } + } + if (node === 'Pioneer') { const { otherAssets } = await fetchAssetsType2(api, query!) const nativeAssets = (await fetchNativeAssets(api)) ?? [] @@ -305,8 +335,7 @@ const fetchNodeAssets = async ( const nativeAssets = (await fetchNativeAssets(api)) ?? [] - const fetcher = node === 'Kico' ? fetchOtherAssetsType2 : fetchOtherAssets - const otherAssets = query ? await fetcher(api, query) : [] + const otherAssets = query ? await fetchOtherAssets(api, query) : [] await api.disconnect() diff --git a/src/types.ts b/src/types.ts index de0b5e9b..6245cc57 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,7 +1,7 @@ // derrived from https://github.com/kodadot/packages/blob/main/minimark/src/common/types.ts import { ApiPromise } from '@polkadot/api' -import { SubmittableExtrinsic } from '@polkadot/api-base/types' +import { SubmittableExtrinsic } from '@polkadot/api/types' import { NODE_NAMES, SUPPORTED_PALLETS } from './maps/consts' export type UpdateFunction = (name: string, index: number) => string @@ -11,8 +11,8 @@ export type TRelayChainType = 'polkadot' | 'kusama' export type TNode = (typeof NODE_NAMES)[number] export type TAssetDetails = { assetId: string - symbol: string - decimals: number + symbol?: string + decimals?: number } export type TNativeAssetDetails = { assetId?: string @@ -43,11 +43,12 @@ export type TSerializedApiCall = { export type XTokensTransferInput = { api: ApiPromise - currency: string + currency: string | undefined currencyID: number | undefined amount: any addressSelection: any fees: number + scenario: TScenario serializedApiCallEnabled?: boolean } @@ -61,6 +62,7 @@ export type PolkadotXCMTransferInput = { addressSelection: any currencySelection: any scenario: TScenario + currencySymbol: string | undefined serializedApiCallEnabled?: boolean } @@ -69,6 +71,6 @@ export interface IPolkadotXCMTransfer { } export enum Version { - V1, - V3 + V1 = 'V1', + V3 = 'V3' } diff --git a/src/utils.test.ts b/src/utils.test.ts index 4707a4d2..f71cffb2 100644 --- a/src/utils.test.ts +++ b/src/utils.test.ts @@ -1,4 +1,4 @@ -//Contains tests for important utils features that are used during call creation +// Contains tests for important utils features that are used during call creation import { describe, expect, it } from 'vitest' import { NODE_NAMES } from './maps/consts' diff --git a/src/utils.ts b/src/utils.ts index fbe955dc..7a830ac0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -3,16 +3,16 @@ import { ApiPromise, WsProvider } from '@polkadot/api' import { ethers } from 'ethers' import { prodRelayPolkadot, prodRelayKusama } from '@polkadot/apps-config/endpoints' -import { TNode, TScenario, TSerializedApiCall, Version } from './types' +import { TNode, TPallet, TScenario, TSerializedApiCall, Version } from './types' import { nodes } from './maps/consts' import ParachainNode from './nodes/ParachainNode' -export function createAccID(api: ApiPromise, account: string) { +export const createAccID = (api: ApiPromise, account: string) => { console.log('Generating AccountId32 address') return api.createType('AccountId32', account).toHex() } -export function getFees(scenario: TScenario) { +export const getFees = (scenario: TScenario) => { if (scenario === 'ParaToRelay') { console.log('Asigning fees for transfer to Relay chain') return 4600000000 @@ -23,38 +23,25 @@ export function getFees(scenario: TScenario) { throw new Error(`Fees for scenario ${scenario} are not defined.`) } -export function handleAddress( - scenario: TScenario, - pallet: string, +export const generateAddressPayload = ( api: ApiPromise, - to: string, + scenario: TScenario, + pallet: TPallet | null, + recipientAddress: string, version: Version, nodeId: number | undefined -): any { - if (scenario === 'ParaToRelay' && pallet === 'xTokens') { - console.log('AccountId32 transfer') - if (version === Version.V3) { - return { - V3: { - parents: 1, - interior: { - X1: { - AccountId32: { - id: createAccID(api, to) - } - } - } - } - } - } +) => { + const isEthAddress = ethers.utils.isAddress(recipientAddress) + + if (scenario === 'ParaToRelay') { return { - V1: { - parents: 1, + [version]: { + parents: pallet === 'XTokens' ? 1 : 0, interior: { X1: { AccountId32: { - network: 'any', - id: createAccID(api, to) + ...(version === Version.V1 && { network: 'any' }), + id: createAccID(api, recipientAddress) } } } @@ -62,177 +49,40 @@ export function handleAddress( } } - if (scenario === 'ParaToPara' && pallet === 'xTokens') { - if (ethers.utils.isAddress(to)) { - console.log('AccountKey20 transfer') - if (version === Version.V3) { - return { - V3: { - parents: 1, - interior: { - X2: [ - { - Parachain: nodeId - }, - { - AccountKey20: { - key: to - } - } - ] - } - } - } - } - return { - V1: { - parents: 1, - interior: { - X2: [ - { - Parachain: nodeId - }, - { - AccountKey20: { - network: 'Any', - key: to - } - } - ] - } - } - } - } else { - console.log('AccountId32 transfer') - if (version === Version.V3) { - return { - V3: { - parents: 1, - interior: { - X2: [ - { - Parachain: nodeId - }, - { - AccountId32: { - id: createAccID(api, to) - } - } - ] - } - } - } - } - return { - V1: { - parents: 1, - interior: { - X2: [ - { - Parachain: nodeId - }, - { - AccountId32: { - network: 'Any', - id: createAccID(api, to) - } - } - ] - } - } - } - } - } - - if (scenario === 'ParaToRelay' && pallet === 'polkadotXCM') { - console.log('AccountId32 transfer') - if (version === Version.V3) { - return { - V3: { - parents: 0, - interior: { - X1: { - AccountId32: { - id: createAccID(api, to) - } - } - } - } - } - } else { - return { - V1: { - parents: 0, - interior: { - X1: { - AccountId32: { - network: 'any', - id: createAccID(api, to) + if (scenario === 'ParaToPara' && pallet === 'XTokens') { + return { + [version]: { + parents: 1, + interior: { + X2: [ + { + Parachain: nodeId + }, + { + [isEthAddress ? 'AccountKey20' : 'AccountId32']: { + ...(version === Version.V1 && { network: 'any' }), + ...(isEthAddress + ? { key: recipientAddress } + : { id: createAccID(api, recipientAddress) }) } } - } + ] } } } } - if (scenario === 'ParaToPara' && pallet === 'polkadotXCM') { - if (ethers.utils.isAddress(to)) { - console.log('AccountKey20 transfer') - if (version === Version.V3) { - return { - V3: { - parents: 0, - interior: { - X1: { - AccountKey20: { - key: to - } - } - } - } - } - } else { - return { - V1: { - parents: 0, - interior: { - X1: { - AccountKey20: { - network: 'Any', - key: to - } - } - } - } - } - } - } else { - console.log('AccountId32 transfer') - if (version === Version.V3) { - return { - V3: { - parents: 0, - interior: { - X1: { - AccountId32: { - id: createAccID(api, to) - } - } - } - } - } - } else { - return { - V1: { - parents: 0, - interior: { - X1: { - AccountId32: { - network: 'Any', - id: createAccID(api, to) - } - } + if (scenario === 'ParaToPara' && pallet === 'PolkadotXcm') { + return { + [version]: { + parents: 0, + interior: { + X1: { + [isEthAddress ? 'AccountKey20' : 'AccountId32']: { + ...(version === Version.V1 && { network: 'any' }), + ...(isEthAddress + ? { key: recipientAddress } + : { id: createAccID(api, recipientAddress) }) } } } @@ -240,32 +90,15 @@ export function handleAddress( } } - if (scenario === 'RelayToPara') { - if (ethers.utils.isAddress(to)) { - console.log('AccountKey20 transfer') - return { - V3: { - parents: 0, - interior: { - X1: { - AccountKey20: { - key: to - } - } - } - } - } - } else { - console.log('AccountId32 transfer') - return { - V3: { - parents: 0, - interior: { - X1: { - AccountId32: { - id: createAccID(api, to) - } - } + return { + V3: { + parents: 0, + interior: { + X1: { + [isEthAddress ? 'AccountKey20' : 'AccountId32']: { + ...(isEthAddress + ? { key: recipientAddress } + : { id: createAccID(api, recipientAddress) }) } } } @@ -273,49 +106,31 @@ export function handleAddress( } } -export function createCurrencySpecification( +export const createCurrencySpecification = ( amount: any, scenario: TScenario, version: Version, node?: TNode, cur?: number | string -) { +) => { if (scenario === 'ParaToRelay') { - console.log('polkadotXCM transfer in native currency to Relay chain') - if (version === Version.V3) { - return { - V3: [ - { - id: { - Concrete: { - parents: 1, - interior: 'Here' - } - }, - fun: { - Fungible: amount - } - } - ] - } - } else { - return { - V1: [ - { - id: { - Concrete: { - parents: 1, - interior: 'Here' - } - }, - fun: { - Fungible: amount + return { + [version]: [ + { + id: { + Concrete: { + parents: 1, + interior: 'Here' } + }, + fun: { + Fungible: amount } - ] - } + } + ] } } + if (scenario === 'RelayToPara' || scenario === 'ParaToPara') { console.log('polkadotXCM Native currency to sender chain transfer') if ((node === 'Darwinia' || node === 'Crab') && scenario === 'ParaToPara') { @@ -339,8 +154,11 @@ export function createCurrencySpecification( } ] } - } else if ((node === 'Statemine' || node === 'Statemint') && scenario === 'ParaToPara') { - // Another specific case for Statemint & Statemine to send for example USDt + } else if ( + (node === 'AssetHubPolkadot' || node === 'AssetHubKusama') && + scenario === 'ParaToPara' + ) { + // Another specific case for AssetHubPolkadot & AssetHubKusama to send for example USDt return { V3: [ { @@ -386,54 +204,20 @@ export function createCurrencySpecification( } } -export function createHeaderPolkadotXCM(scenario: TScenario, version: Version, nodeId?: number) { - console.log('Generating header for polkadotXCM transfer') +export const createHeaderPolkadotXCM = (scenario: TScenario, version: Version, nodeId?: number) => { if (scenario === 'ParaToRelay') { - if (version === Version.V3) { - return { - V3: { - parents: 1, - interior: 'Here' - } - } - } else { - return { - V1: { - parents: 1, - interior: 'Here' - } + return { + [version]: { + parents: 1, + interior: 'Here' } } } + if (scenario === 'ParaToPara') { - if (version === Version.V3) { - return { - V3: { - parents: 1, - interior: { - X1: { - Parachain: nodeId - } - } - } - } - } else { - return { - V1: { - parents: 1, - interior: { - X1: { - Parachain: nodeId - } - } - } - } - } - } - if (scenario === 'RelayToPara') { return { - V3: { - parents: 0, + [version]: { + parents: 1, interior: { X1: { Parachain: nodeId @@ -442,15 +226,49 @@ export function createHeaderPolkadotXCM(scenario: TScenario, version: Version, n } } } + + return { + V3: { + parents: 0, + interior: { + X1: { + Parachain: nodeId + } + } + } + } } -export function getNode(node: TNode): ParachainNode { +export const getNode = (node: TNode): ParachainNode => { return nodes[node] } -export function getNodeEndpointOption(node: TNode) { +export const getNodeEndpointOption = (node: TNode) => { const { type, name } = getNode(node) const { linked } = type === 'polkadot' ? prodRelayPolkadot : prodRelayKusama + + // TMP Fix because some nodes don't have providers in endpoint options + if (node === 'Imbue') { + return { + info: 'imbue', + paraId: 2121, + providers: { + 'Imbue Network 0': 'wss://kusama.imbuenetwork.com' + } + } + } + if (node === 'Polkadex') { + return { + info: 'polkadex', + paraId: 2040, + providers: { + Dwellir: 'wss://polkadex-rpc.dwellir.com', + OnFinality: 'wss://polkadex-parachain.api.onfinality.io/public-ws', + RadiumBlock: 'wss://polkadex-parachain.public.curie.radiumblock.co/ws' + } + } + } + return linked ? linked.find(function (o) { return o.info === name @@ -458,7 +276,7 @@ export function getNodeEndpointOption(node: TNode) { : undefined } -export async function createApiInstance(wsUrl: string) { +export const createApiInstance = async (wsUrl: string) => { const wsProvider = new WsProvider(wsUrl) return await ApiPromise.create({ provider: wsProvider }) }