parent
6334225e26
commit
ea01033892
38
package.json
38
package.json
@ -64,15 +64,15 @@
|
||||
"test:skipped": "echo 'tests skipped'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.19.6",
|
||||
"@babel/core": "^7.20.2",
|
||||
"@babel/register": "^7.18.9",
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@crustio/crust-pin": "^1.0.0",
|
||||
"@pinata/sdk": "^1.2.1",
|
||||
"@polkadot/dev": "^0.67.150",
|
||||
"@polkadot/dev": "^0.67.154",
|
||||
"@types/chart.js": "^2.9.37",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/jest": "^29.2.1",
|
||||
"@types/jest": "^29.2.2",
|
||||
"@types/react-beautiful-dnd": "^13.1.2",
|
||||
"@types/react-copy-to-clipboard": "^5.0.4",
|
||||
"@types/react-dom": "^18.0.8",
|
||||
@ -80,7 +80,7 @@
|
||||
"@types/store": "^2.0.2",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"@types/styled-theming": "^2.2.5",
|
||||
"concurrently": "^7.3.0",
|
||||
"concurrently": "^7.5.0",
|
||||
"devtron": "^1.4.0",
|
||||
"dnslink-cloudflare": "^3.0.0",
|
||||
"electron": "^12.2.3",
|
||||
@ -94,24 +94,24 @@
|
||||
"styled-components": "^5.3.6"
|
||||
},
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^9.6.2",
|
||||
"@polkadot/api-augment": "^9.6.2",
|
||||
"@polkadot/api-base": "^9.6.2",
|
||||
"@polkadot/api-contract": "^9.6.2",
|
||||
"@polkadot/api-derive": "^9.6.2",
|
||||
"@polkadot/api": "^9.7.1",
|
||||
"@polkadot/api-augment": "^9.7.1",
|
||||
"@polkadot/api-base": "^9.7.1",
|
||||
"@polkadot/api-contract": "^9.7.1",
|
||||
"@polkadot/api-derive": "^9.7.1",
|
||||
"@polkadot/hw-ledger": "^10.1.11",
|
||||
"@polkadot/keyring": "^10.1.11",
|
||||
"@polkadot/networks": "^10.1.11",
|
||||
"@polkadot/phishing": "^0.18.10",
|
||||
"@polkadot/rpc-augment": "^9.6.2",
|
||||
"@polkadot/rpc-core": "^9.6.2",
|
||||
"@polkadot/rpc-provider": "^9.6.2",
|
||||
"@polkadot/types": "^9.6.2",
|
||||
"@polkadot/types-augment": "^9.6.2",
|
||||
"@polkadot/types-codec": "^9.6.2",
|
||||
"@polkadot/types-create": "^9.6.2",
|
||||
"@polkadot/types-known": "^9.6.2",
|
||||
"@polkadot/types-support": "^9.6.2",
|
||||
"@polkadot/rpc-augment": "^9.7.1",
|
||||
"@polkadot/rpc-core": "^9.7.1",
|
||||
"@polkadot/rpc-provider": "^9.7.1",
|
||||
"@polkadot/types": "^9.7.1",
|
||||
"@polkadot/types-augment": "^9.7.1",
|
||||
"@polkadot/types-codec": "^9.7.1",
|
||||
"@polkadot/types-create": "^9.7.1",
|
||||
"@polkadot/types-known": "^9.7.1",
|
||||
"@polkadot/types-support": "^9.7.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"@polkadot/util-crypto": "^10.1.11",
|
||||
"@polkadot/wasm-crypto": "^6.3.1",
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@acala-network/type-definitions": "^4.1.5",
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@bifrost-finance/type-definitions": "1.7.1",
|
||||
"@crustio/type-definitions": "1.3.0",
|
||||
"@darwinia/types": "2.8.10",
|
||||
@ -31,10 +31,10 @@
|
||||
"@metaverse-network-sdk/type-definitions": "^0.0.1-13",
|
||||
"@parallel-finance/type-definitions": "1.7.13",
|
||||
"@phala/typedefs": "0.2.32",
|
||||
"@polkadot/api": "^9.6.2",
|
||||
"@polkadot/api-derive": "^9.6.2",
|
||||
"@polkadot/api": "^9.7.1",
|
||||
"@polkadot/api-derive": "^9.7.1",
|
||||
"@polkadot/networks": "^10.1.11",
|
||||
"@polkadot/types": "^9.6.2",
|
||||
"@polkadot/types": "^9.7.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"@polkadot/x-fetch": "^10.1.11",
|
||||
"@polymathnetwork/polymesh-types": "0.0.2",
|
||||
|
||||
@ -12,9 +12,9 @@
|
||||
"sideEffects": false,
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.19.6",
|
||||
"@babel/core": "^7.20.2",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@polkadot/dev": "^0.67.150",
|
||||
"@polkadot/dev": "^0.67.154",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"electron-log": "^4.4.8",
|
||||
"electron-updater": "^4.6.5"
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0"
|
||||
"@babel/runtime": "^7.20.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,12 +13,12 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.19.6",
|
||||
"@babel/core": "^7.20.2",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/apps-config": "^0.121.2-130-x",
|
||||
"@polkadot/apps-routing": "^0.121.2-130-x",
|
||||
"@polkadot/dev": "^0.67.150",
|
||||
"@polkadot/dev": "^0.67.154",
|
||||
"@polkadot/react-api": "^0.121.2-130-x",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-hooks": "^0.121.2-130-x",
|
||||
|
||||
@ -13,13 +13,13 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/hw-ledger": "^10.1.11",
|
||||
"@polkadot/phishing": "^0.18.10",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-hooks": "^0.121.2-130-x",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"@polkadot/vanitygen": "^0.52.14",
|
||||
"@polkadot/vanitygen": "^0.52.15",
|
||||
"detect-browser": "^5.3.0",
|
||||
"file-saver": "^2.0.5"
|
||||
},
|
||||
|
||||
@ -13,12 +13,12 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"file-saver": "^2.0.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/react": "^13.4.0",
|
||||
"testcontainers": "^8.15.0"
|
||||
"testcontainers": "^8.16.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0"
|
||||
"@babel/runtime": "^7.20.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"secp256k1": "^3.8.0"
|
||||
}
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0"
|
||||
"@babel/runtime": "^7.20.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/api-contract": "^9.6.2"
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api-contract": "^9.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-query": "^0.121.2-130-x"
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-query": "^0.121.2-130-x"
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-params": "^0.121.2-130-x",
|
||||
"@polkadot/react-signer": "^0.121.2-130-x"
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0"
|
||||
"@babel/runtime": "^7.20.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-query": "^0.121.2-130-x"
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-query": "^0.121.2-130-x"
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0"
|
||||
"@babel/runtime": "^7.20.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0"
|
||||
"@babel/runtime": "^7.20.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0"
|
||||
"@babel/runtime": "^7.20.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/apps-config": "^0.121.2-130-x",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-query": "^0.121.2-130-x",
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/app-explorer": "^0.121.2-130-x",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-query": "^0.121.2-130-x"
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-params": "^0.121.2-130-x"
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-query": "^0.121.2-130-x"
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"@polkadot/react-query": "^0.121.2-130-x"
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0"
|
||||
"@babel/runtime": "^7.20.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,11 +17,11 @@
|
||||
"path": false
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/api": "^9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api": "^9.7.1",
|
||||
"@polkadot/extension-compat-metamask": "^0.44.6",
|
||||
"@polkadot/extension-dapp": "^0.44.6",
|
||||
"@polkadot/rpc-provider": "^9.6.2",
|
||||
"@polkadot/rpc-provider": "^9.7.1",
|
||||
"fflate": "^0.7.4",
|
||||
"rxjs": "^7.5.7"
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||
|
||||
@ -11,12 +11,12 @@ import { ApiPromise } from '@polkadot/api';
|
||||
export default function createOptions (api: ApiPromise, rpcs: Record<string, Record<string, DefinitionRpcExt>>, sectionName: string): DropdownOptions {
|
||||
const section = rpcs[sectionName];
|
||||
|
||||
if (!section || Object.keys((api.rpc as Record<string, Record<string, unknown>>)[sectionName]).length === 0) {
|
||||
if (!section || Object.keys((api.rpc as unknown as Record<string, Record<string, unknown>>)[sectionName]).length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return Object
|
||||
.keys((api.rpc as Record<string, Record<string, unknown>>)[sectionName])
|
||||
.keys((api.rpc as unknown as Record<string, Record<string, unknown>>)[sectionName])
|
||||
.filter((s) => !s.startsWith('$'))
|
||||
.sort()
|
||||
.map((methodName) => section[methodName])
|
||||
|
||||
@ -10,7 +10,7 @@ export default function createOptions (api: ApiPromise): DropdownOptions {
|
||||
.keys(api.rpc)
|
||||
.filter((s) => !s.startsWith('$'))
|
||||
.sort()
|
||||
.filter((section) => Object.keys((api.rpc as Record<string, Record<string, unknown>>)[section]).length !== 0)
|
||||
.filter((section) => Object.keys((api.rpc as unknown as Record<string, Record<string, unknown>>)[section]).length !== 0)
|
||||
.map((name): { text: string; value: string } => ({
|
||||
text: name,
|
||||
value: name
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/hw-ledger": "^10.1.11",
|
||||
"is-ipfs": "6.0.2"
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/react-components": "^0.121.2-130-x",
|
||||
"multiformats": "^9.8.1"
|
||||
}
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0"
|
||||
"@babel/runtime": "^7.20.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"type": "module",
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/hw-ledger": "^10.1.11",
|
||||
"@polkadot/react-components": "^0.121.2-130-x"
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@ const AVAIL_STATUS = ['queued', 'qr', 'signing'];
|
||||
|
||||
async function submitRpc (api: ApiPromise, { method, section }: DefinitionRpcExt, values: unknown[]): Promise<QueueTxResult> {
|
||||
try {
|
||||
const rpc = api.rpc as Record<string, Record<string, (...params: unknown[]) => Promise<unknown>>>;
|
||||
const rpc = api.rpc as unknown as Record<string, Record<string, (...params: unknown[]) => Promise<unknown>>>;
|
||||
|
||||
assert(isFunction(rpc[section] && rpc[section][method]), `api.rpc.${section}.${method} does not exist`);
|
||||
|
||||
|
||||
@ -14,10 +14,10 @@
|
||||
"version": "0.121.2-130-x",
|
||||
"dependencies": {
|
||||
"@testing-library/react": "^13.4.0",
|
||||
"testcontainers": "^8.15.0"
|
||||
"testcontainers": "^8.16.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types-support": "^9.6.2",
|
||||
"@polkadot/types-support": "^9.7.1",
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
"tsconfig-paths": "^4.1.0"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user