parent
5511a4f140
commit
5eecad1635
28
package.json
28
package.json
@ -12,21 +12,21 @@
|
||||
"packages/*"
|
||||
],
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^5.7.1",
|
||||
"@polkadot/api-contract": "^5.7.1",
|
||||
"@polkadot/api": "^5.7.2-8",
|
||||
"@polkadot/api-contract": "^5.7.2-8",
|
||||
"@polkadot/hw-ledger": "^7.3.1",
|
||||
"@polkadot/keyring": "^7.3.1",
|
||||
"@polkadot/networks": "^7.3.1",
|
||||
"@polkadot/phishing": "^0.6.277",
|
||||
"@polkadot/types": "^5.7.1",
|
||||
"@polkadot/types-known": "^5.7.1",
|
||||
"@polkadot/types-support": "^5.7.1",
|
||||
"@polkadot/phishing": "^0.6.281",
|
||||
"@polkadot/types": "^5.7.2-8",
|
||||
"@polkadot/types-known": "^5.7.2-8",
|
||||
"@polkadot/types-support": "^5.7.2-8",
|
||||
"@polkadot/util": "^7.3.1",
|
||||
"@polkadot/util-crypto": "^7.3.1",
|
||||
"@polkadot/wasm-crypto": "^4.2.1",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"styled-components": "^5.2.0",
|
||||
"typescript": "^4.3.5"
|
||||
"typescript": "^4.4.2"
|
||||
},
|
||||
"scripts": {
|
||||
"analyze": "yarn clean && BUILD_ANALYZE=1 yarn run build:code && yarn source-map-explorer packages/apps/build/main.*.js",
|
||||
@ -68,23 +68,23 @@
|
||||
"start:electron": "yarn clean:electronBuild && concurrently 'yarn build:devElectronMain && cd packages/apps-electron && electron ./build/electron.js' 'yarn build:devElectronRenderer'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.0",
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/register": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@crustio/crust-pin": "^1.0.0",
|
||||
"@pinata/sdk": "^1.1.23",
|
||||
"@polkadot/dev": "^0.62.65",
|
||||
"@polkadot/ts": "^0.4.6",
|
||||
"@polkadot/dev": "^0.62.66",
|
||||
"@polkadot/ts": "^0.4.7",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"@types/chart.js": "^2.9.34",
|
||||
"@types/file-saver": "^2.0.3",
|
||||
"@types/jest": "^27.0.1",
|
||||
"@types/react-beautiful-dnd": "^13.1.1",
|
||||
"@types/react-beautiful-dnd": "^13.1.2",
|
||||
"@types/react-copy-to-clipboard": "^5.0.1",
|
||||
"@types/react-dom": "^17.0.9",
|
||||
"@types/react-router-dom": "^5.1.8",
|
||||
"@types/store": "^2.0.2",
|
||||
"@types/styled-components": "^5.1.13",
|
||||
"@types/styled-components": "^5.1.14",
|
||||
"@types/styled-theming": "^2.2.5",
|
||||
"concurrently": "^6.2.1",
|
||||
"devtron": "^1.4.0",
|
||||
@ -101,7 +101,7 @@
|
||||
"stylelint": "^13.13.1",
|
||||
"stylelint-config-recommended": "^5.0.0",
|
||||
"stylelint-config-styled-components": "^0.1.1",
|
||||
"webpack": "^5.51.1",
|
||||
"webpack": "^5.52.0",
|
||||
"webpack-cli": "^4.8.0"
|
||||
},
|
||||
"packageManager": "yarn@3.0.1"
|
||||
|
||||
@ -7,26 +7,26 @@
|
||||
"sideEffects": true,
|
||||
"repository": "github:polkadot-js/apps",
|
||||
"dependencies": {
|
||||
"@acala-network/type-definitions": "2.1.1",
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@bifrost-finance/type-definitions": "1.2.24",
|
||||
"@acala-network/type-definitions": "2.2.1",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@bifrost-finance/type-definitions": "1.2.26",
|
||||
"@crustio/type-definitions": "0.0.10",
|
||||
"@darwinia/types": "1.1.7",
|
||||
"@digitalnative/type-definitions": "1.1.12",
|
||||
"@digitalnative/type-definitions": "1.1.13",
|
||||
"@docknetwork/node-types": "0.4.7",
|
||||
"@edgeware/node-types": "3.6.2-wako",
|
||||
"@equilab/definitions": "1.3.7",
|
||||
"@interlay/interbtc-types": "0.12.2",
|
||||
"@interlay/interbtc-types": "0.12.3",
|
||||
"@kiltprotocol/type-definitions": "0.1.14",
|
||||
"@laminar/type-definitions": "0.3.1",
|
||||
"@parallel-finance/type-definitions": "1.1.1",
|
||||
"@parallel-finance/type-definitions": "1.1.2",
|
||||
"@phala/typedefs": "0.2.14",
|
||||
"@polkadot/networks": "^7.3.1",
|
||||
"@polymathnetwork/polymesh-types": "0.0.2",
|
||||
"@snowfork/snowbridge-types": "0.2.5",
|
||||
"@sora-substrate/type-definitions": "1.5.10",
|
||||
"@sora-substrate/type-definitions": "1.6.2",
|
||||
"@subsocial/types": "0.6.1-1",
|
||||
"@zeitgeistpm/type-defs": "0.2.5",
|
||||
"@zeitgeistpm/type-defs": "0.2.7",
|
||||
"moonbeam-types-bundle": "1.2.4",
|
||||
"pontem-types-bundle": "1.0.14",
|
||||
"rxjs": "^7.3.0"
|
||||
|
||||
@ -4,9 +4,9 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.15.0",
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@polkadot/dev": "^0.62.65",
|
||||
"@polkadot/dev": "^0.62.66",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"electron-log": "^4.3.5",
|
||||
"electron-updater": "^4.3.10"
|
||||
@ -21,6 +21,6 @@
|
||||
"react-dom": "^17.0.2",
|
||||
"thread-loader": "^3.0.4",
|
||||
"tmp": "^0.2.1",
|
||||
"webpack": "^5.51.1"
|
||||
"webpack": "^5.52.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,6 +5,6 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3"
|
||||
"@babel/runtime": "^7.15.4"
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,12 +6,12 @@
|
||||
"license": "Apache-2.0",
|
||||
"homepage": ".",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.15.0",
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/apps-config": "^0.95.2-85",
|
||||
"@polkadot/apps-routing": "^0.95.2-85",
|
||||
"@polkadot/dev": "^0.62.65",
|
||||
"@polkadot/dev": "^0.62.66",
|
||||
"@polkadot/react-api": "^0.95.2-85",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-hooks": "^0.95.2-85",
|
||||
@ -23,6 +23,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/punycode": "^2.1.0",
|
||||
"assert": "^2.0.0",
|
||||
"babel-loader": "^8.2.2",
|
||||
"buffer": "^6.0.3",
|
||||
"copy-webpack-plugin": "^7.0.0",
|
||||
@ -32,16 +33,19 @@
|
||||
"file-loader": "^6.2.0",
|
||||
"html-loader": "^1.3.2",
|
||||
"html-webpack-plugin": "^4.5.2",
|
||||
"https-browserify": "^1.0.0",
|
||||
"markdown-loader": "^6.0.0",
|
||||
"mini-css-extract-plugin": "^1.6.2",
|
||||
"null-loader": "^4.0.1",
|
||||
"os-browserify": "^0.3.0",
|
||||
"path-browserify": "^1.0.1",
|
||||
"process": "^0.11.10",
|
||||
"stream-browserify": "^3.0.0",
|
||||
"stream-http": "^3.2.0",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.51.1",
|
||||
"webpack": "^5.52.0",
|
||||
"webpack-cli": "^4.8.0",
|
||||
"webpack-dev-server": "^4.0.0-rc.0",
|
||||
"webpack-dev-server": "^4.1.0",
|
||||
"webpack-merge": "^5.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -169,7 +169,11 @@ function createWebpack (context, mode = 'production') {
|
||||
},
|
||||
extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx'],
|
||||
fallback: {
|
||||
assert: require.resolve('assert/'),
|
||||
crypto: require.resolve('crypto-browserify'),
|
||||
http: require.resolve('stream-http'),
|
||||
https: require.resolve('https-browserify'),
|
||||
os: require.resolve('os-browserify/browser'),
|
||||
path: require.resolve('path-browserify'),
|
||||
stream: require.resolve('stream-browserify')
|
||||
}
|
||||
|
||||
@ -5,10 +5,10 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@polkadot/phishing": "^0.6.277",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/phishing": "^0.6.281",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/vanitygen": "^0.45.4-1",
|
||||
"@polkadot/vanitygen": "^0.45.4-2",
|
||||
"detect-browser": "^5.2.0",
|
||||
"file-saver": "^2.0.5"
|
||||
},
|
||||
|
||||
@ -5,12 +5,12 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"file-saver": "^2.0.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/react": "^12.0.0",
|
||||
"testcontainers": "^7.19.1"
|
||||
"testcontainers": "^7.20.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"secp256k1": "^3.8.0"
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@polkadot/api-contract": "^5.7.1"
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/api-contract": "^5.7.2-8"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-query": "^0.95.2-85"
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-query": "^0.95.2-85"
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-params": "^0.95.2-85",
|
||||
"@polkadot/react-signer": "^0.95.2-85"
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-query": "^0.95.2-85"
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-query": "^0.95.2-85"
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/apps-config": "^0.95.2-85",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-query": "^0.95.2-85",
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/app-explorer": "^0.95.2-85",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-query": "^0.95.2-85"
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-params": "^0.95.2-85"
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-query": "^0.95.2-85"
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85",
|
||||
"@polkadot/react-query": "^0.95.2-85"
|
||||
}
|
||||
|
||||
@ -5,9 +5,10 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@polkadot/api": "^5.7.1",
|
||||
"@polkadot/extension-dapp": "^0.39.4-6",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/api": "^5.7.2-8",
|
||||
"@polkadot/extension-compat-metamask": "^0.39.4-9",
|
||||
"@polkadot/extension-dapp": "^0.39.4-9",
|
||||
"@substrate/connect": "^0.3.18",
|
||||
"fflate": "^0.7.1",
|
||||
"rxjs": "^7.3.0"
|
||||
|
||||
@ -5,17 +5,17 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
||||
"@fortawesome/react-fontawesome": "^0.1.15",
|
||||
"@polkadot/keyring": "^7.3.1",
|
||||
"@polkadot/react-api": "^0.95.2-85",
|
||||
"@polkadot/react-identicon": "^0.85.4-1",
|
||||
"@polkadot/react-qr": "^0.85.4-1",
|
||||
"@polkadot/react-identicon": "^0.85.4-2",
|
||||
"@polkadot/react-qr": "^0.85.4-2",
|
||||
"@polkadot/react-query": "^0.95.2-85",
|
||||
"@polkadot/ui-keyring": "^0.85.4-1",
|
||||
"@polkadot/ui-settings": "^0.85.4-1",
|
||||
"@polkadot/ui-keyring": "^0.85.4-2",
|
||||
"@polkadot/ui-settings": "^0.85.4-2",
|
||||
"@polkadot/util": "^7.3.1",
|
||||
"@polkadot/util-crypto": "^7.3.1",
|
||||
"chart.js": "^2.9.4",
|
||||
@ -32,8 +32,8 @@
|
||||
"react-i18next": "^11.11.4",
|
||||
"react-is": "^17.0.2",
|
||||
"react-markdown": "^5.0.3",
|
||||
"react-router": "^5.2.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-router": "^5.2.1",
|
||||
"react-router-dom": "^5.3.0",
|
||||
"react-tooltip": "^4.2.21",
|
||||
"semantic-ui-css": "^2.4.1",
|
||||
"semantic-ui-react": "^0.88.2",
|
||||
|
||||
@ -66,7 +66,7 @@ function ExtrinsicDisplay ({ defaultValue, isDisabled, isError, isPrivate, label
|
||||
try {
|
||||
method = extrinsic.fn(...values.map(({ value }): any => value));
|
||||
} catch (error) {
|
||||
onError && onError(error);
|
||||
onError && onError(error as Error);
|
||||
}
|
||||
} else {
|
||||
onError && onError(null);
|
||||
|
||||
@ -33,7 +33,7 @@ export type SignerCallback = (id: number, result: SignerResult | null) => void;
|
||||
|
||||
export type TxCallback = (status: SubmittableResult) => void;
|
||||
|
||||
export type TxFailedCallback = (status: SubmittableResult | null) => void;
|
||||
export type TxFailedCallback = (status: Error | SubmittableResult | null) => void;
|
||||
|
||||
export interface QueueTx extends AccountInfo {
|
||||
error?: Error;
|
||||
|
||||
@ -26,7 +26,7 @@ function TxButton ({ accountId, className = '', extrinsic: propsExtrinsic, icon,
|
||||
}, [isStarted, onStart]);
|
||||
|
||||
const _onFailed = useCallback(
|
||||
(result: SubmittableResult | null): void => {
|
||||
(result: Error | SubmittableResult | null): void => {
|
||||
mountedRef.current && setIsSending(false);
|
||||
|
||||
onFailed && onFailed(result);
|
||||
|
||||
@ -5,6 +5,6 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3"
|
||||
"@babel/runtime": "^7.15.4"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,6 +5,6 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3"
|
||||
"@babel/runtime": "^7.15.4"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-85",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/react-components": "^0.95.2-85"
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,9 +87,9 @@ async function signAndSend (queueSetTxStatus: QueueTxMessageSetStatus, currentIt
|
||||
}));
|
||||
} catch (error) {
|
||||
console.error('signAndSend: error:', error);
|
||||
queueSetTxStatus(currentItem.id, 'error', {}, error);
|
||||
queueSetTxStatus(currentItem.id, 'error', {}, error as Error);
|
||||
|
||||
currentItem.txFailedCb && currentItem.txFailedCb(error);
|
||||
currentItem.txFailedCb && currentItem.txFailedCb(error as Error);
|
||||
}
|
||||
}
|
||||
|
||||
@ -102,9 +102,9 @@ async function signAsync (queueSetTxStatus: QueueTxMessageSetStatus, { id, txFai
|
||||
return tx.toJSON();
|
||||
} catch (error) {
|
||||
console.error('signAsync: error:', error);
|
||||
queueSetTxStatus(id, 'error', undefined, error);
|
||||
queueSetTxStatus(id, 'error', undefined, error as Error);
|
||||
|
||||
txFailedCb(error);
|
||||
txFailedCb(error as Error);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
@ -27,7 +27,7 @@ async function send (queueSetTxStatus: QueueTxMessageSetStatus, currentItem: Que
|
||||
}));
|
||||
} catch (error) {
|
||||
console.error('send: error:', error);
|
||||
queueSetTxStatus(currentItem.id, 'error', {}, error);
|
||||
queueSetTxStatus(currentItem.id, 'error', {}, error as Error);
|
||||
|
||||
currentItem.txFailedCb && currentItem.txFailedCb(null);
|
||||
}
|
||||
|
||||
@ -6,10 +6,10 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@testing-library/react": "^12.0.0",
|
||||
"testcontainers": "^7.19.1"
|
||||
"testcontainers": "^7.20.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types-support": "^5.7.1",
|
||||
"@polkadot/types-support": "^5.7.2-8",
|
||||
"@testing-library/jest-dom": "^5.14.1",
|
||||
"tsconfig-paths": "^3.11.0"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user