Clear proxy/multisig state (#2963)
* Clear old state between use * Patch * Check tx outside multisig call * Set key for modal
This commit is contained in:
parent
95af7e1b72
commit
5b9cf5ba2a
@ -1,6 +1,6 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 0.45.1 Jun 16, 2020
|
||||
## 0.45.2 Jun 16, 2020
|
||||
|
||||
- I18n for ja (Thanks to https://github.com/SotaWatanabe)
|
||||
- Ia8n for pt (thanks to https://github.com/laurogripa)
|
||||
|
||||
@ -10,5 +10,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "0.45.1"
|
||||
"version": "0.45.2"
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"main": "packages/apps-electron/build/electron.js",
|
||||
"description": "An Apps portal into the Polkadot network",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"license": "Apache-2",
|
||||
"private": true,
|
||||
"homepage": ".",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/apps-config",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
|
||||
@ -2,11 +2,11 @@
|
||||
"name": "@polkadot/apps-electron",
|
||||
"main": "index.js",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"dependencies": {
|
||||
"@babel/polyfill": "^7.10.1",
|
||||
"@polkadot/dev": "^0.55.10",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"electron-updater": "^4.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/apps-routing",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/apps",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "An Apps portal into the Polkadot network",
|
||||
"main": "index.js",
|
||||
"homepage": ".",
|
||||
@ -16,8 +16,8 @@
|
||||
"@babel/polyfill": "^7.10.1",
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/dev": "^0.55.10",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-signer": "0.45.1",
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-signer": "0.45.2",
|
||||
"query-string": "^6.13.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-123code",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A basic app that shows the ropes on customisation",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,6 +12,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-accounts",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@ -12,7 +12,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-qr": "^0.54.1",
|
||||
"@polkadot/vanitygen": "^0.14.1",
|
||||
"detect-browser": "^5.1.0",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-claims",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "An app for claiming Polkadot tokens",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -13,7 +13,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"secp256k1": "^3.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-contracts",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "Deployment and management of substrate contracts",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-council",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "Council",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,7 +12,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-query": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-query": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-dashboard",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "Dashboard for all apps, allowing for an overview and quick navigation",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,7 +12,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/apps-routing": "0.45.1",
|
||||
"@polkadot/react-components": "0.45.1"
|
||||
"@polkadot/apps-routing": "0.45.2",
|
||||
"@polkadot/react-components": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-democracy",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A referendum & proposal app",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,7 +12,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-query": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-query": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-explorer",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@ -12,6 +12,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-extrinsics",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@ -12,8 +12,8 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-params": "0.45.1",
|
||||
"@polkadot/react-signer": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-params": "0.45.2",
|
||||
"@polkadot/react-signer": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-generic-asset",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A basic GenericAsset transfer app",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,6 +12,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-i18n",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A basic string translayor",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,6 +12,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-js",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A simple JavaScript console for playing with the API",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,6 +12,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-parachains",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "Parachains",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,7 +12,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-query": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-query": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-settings",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "Settings management",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,9 +12,9 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/apps-config": "0.45.1",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-query": "0.45.1",
|
||||
"@polkadot/apps-config": "0.45.2",
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-query": "0.45.2",
|
||||
"query-string": "^6.13.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-society",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A society",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -9,6 +9,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-staking",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A basic staking app",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,8 +12,8 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/app-explorer": "0.45.1",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-query": "0.45.1"
|
||||
"@polkadot/app-explorer": "0.45.2",
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-query": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-storage",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@ -12,7 +12,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-params": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-params": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-sudo",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A basic app that shows the ropes on customisation",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -13,6 +13,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-tech-comm",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "Council",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -12,7 +12,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-query": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-query": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-toolbox",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@ -12,6 +12,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@polkadot/app-treasury",
|
||||
"private": true,
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A referendum & proposal app",
|
||||
"main": "index.js",
|
||||
"scripts": {},
|
||||
@ -13,7 +13,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-query": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-query": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/react-api",
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A collection of RxJs React components the Polkadot JS API",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/react-components",
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@ -12,9 +12,9 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/keyring": "^2.14.1",
|
||||
"@polkadot/react-api": "0.45.1",
|
||||
"@polkadot/react-api": "0.45.2",
|
||||
"@polkadot/react-identicon": "^0.54.1",
|
||||
"@polkadot/react-query": "0.45.1",
|
||||
"@polkadot/react-query": "0.45.2",
|
||||
"@polkadot/ui-keyring": "^0.54.1",
|
||||
"@polkadot/ui-settings": "^0.54.1",
|
||||
"chart.js": "^2.9.3",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/react-hooks",
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A collection of React hooks the Polkadot JS Apps UI",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/react-params",
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@ -11,6 +11,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1"
|
||||
"@polkadot/react-components": "0.45.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/react-query",
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"description": "A collection of RxJs React components the Polkadot JS API",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/react-signer",
|
||||
"version": "0.45.1",
|
||||
"version": "0.45.2",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@ -11,7 +11,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/react-components": "0.45.1",
|
||||
"@polkadot/react-components": "0.45.2",
|
||||
"@polkadot/react-qr": "^0.54.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -66,10 +66,10 @@ function filterProxies (tx: SubmittableExtrinsic<'promise'>, proxies: [string, P
|
||||
.map(([address]) => address);
|
||||
}
|
||||
|
||||
async function queryForMultisig (api: ApiPromise, requestAddress: string, proxyAddress: string | null, tx?: SubmittableExtrinsic<'promise'>): Promise<MultiState | null> {
|
||||
async function queryForMultisig (api: ApiPromise, requestAddress: string, proxyAddress: string | null, tx: SubmittableExtrinsic<'promise'>): Promise<MultiState | null> {
|
||||
const multiModule = api.tx.multisig ? 'multisig' : 'utility';
|
||||
|
||||
if (tx && isFunction(api.query[multiModule]?.multisigs)) {
|
||||
if (isFunction(api.query[multiModule]?.multisigs)) {
|
||||
const address = proxyAddress || requestAddress;
|
||||
const { threshold, who } = extractExternal(address);
|
||||
const hash = (proxyAddress ? api.tx.proxy.proxy(requestAddress, null, tx) : tx).method.hash;
|
||||
@ -96,16 +96,13 @@ async function queryForMultisig (api: ApiPromise, requestAddress: string, proxyA
|
||||
|
||||
async function queryForProxy (api: ApiPromise, address: string, tx: SubmittableExtrinsic<'promise'>): Promise<ProxyState | null> {
|
||||
if (isFunction(api.query.proxy?.proxies)) {
|
||||
const [_proxies] = await api.query.proxy.proxies(address);
|
||||
const { isProxied } = extractExternal(address);
|
||||
const [_proxies] = await api.query.proxy.proxies(address);
|
||||
const proxies = _proxies.map(([accountId, type]): [string, ProxyType] => [accountId.toString(), type]);
|
||||
const proxiesFilter = filterProxies(tx, proxies);
|
||||
|
||||
if (_proxies.length) {
|
||||
const proxies = _proxies.map(([accountId, type]): [string, ProxyType] => [accountId.toString(), type]);
|
||||
const proxiesFilter = filterProxies(tx, proxies);
|
||||
|
||||
return proxiesFilter.length
|
||||
? { address, isProxied, proxies, proxiesFilter }
|
||||
: null;
|
||||
if (proxiesFilter.length) {
|
||||
return { address, isProxied, proxies, proxiesFilter };
|
||||
}
|
||||
}
|
||||
|
||||
@ -132,13 +129,12 @@ function Address ({ currentItem, onChange, passwordError, requestAddress }: Prop
|
||||
|
||||
// proxy for requestor
|
||||
useEffect((): void => {
|
||||
if (currentItem.extrinsic) {
|
||||
setProxyInfo(null);
|
||||
|
||||
currentItem.extrinsic &&
|
||||
queryForProxy(api, requestAddress, currentItem.extrinsic)
|
||||
.then((info) => mountedRef.current && setProxyInfo(info))
|
||||
.catch(console.error);
|
||||
} else {
|
||||
setProxyInfo(null);
|
||||
}
|
||||
}, [api, currentItem, mountedRef, requestAddress]);
|
||||
|
||||
useEffect((): void => {
|
||||
@ -147,7 +143,9 @@ function Address ({ currentItem, onChange, passwordError, requestAddress }: Prop
|
||||
|
||||
// multisig
|
||||
useEffect((): void => {
|
||||
if (extractExternal(proxyAddress || requestAddress).isMultisig) {
|
||||
setMultInfo(null);
|
||||
|
||||
currentItem.extrinsic && extractExternal(proxyAddress || requestAddress).isMultisig &&
|
||||
queryForMultisig(api, requestAddress, proxyAddress, currentItem.extrinsic)
|
||||
.then((info): void => {
|
||||
if (mountedRef.current) {
|
||||
@ -156,9 +154,6 @@ function Address ({ currentItem, onChange, passwordError, requestAddress }: Prop
|
||||
}
|
||||
})
|
||||
.catch(console.error);
|
||||
} else {
|
||||
setMultInfo(null);
|
||||
}
|
||||
}, [proxyAddress, api, currentItem, mountedRef, requestAddress]);
|
||||
|
||||
// address
|
||||
|
||||
@ -96,6 +96,7 @@ function Signer ({ children, className = '' }: Props): React.ReactElement<Props>
|
||||
<Modal
|
||||
className={className}
|
||||
header={t('Authorize transaction')}
|
||||
key={currentItem.id}
|
||||
size='large'
|
||||
>
|
||||
{currentItem.isUnsigned
|
||||
|
||||
96
yarn.lock
96
yarn.lock
@ -3006,7 +3006,7 @@ __metadata:
|
||||
resolution: "@polkadot/app-123code@workspace:packages/page-123code"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3015,7 +3015,7 @@ __metadata:
|
||||
resolution: "@polkadot/app-accounts@workspace:packages/page-accounts"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-qr": ^0.54.1
|
||||
"@polkadot/vanitygen": ^0.14.1
|
||||
detect-browser: ^5.1.0
|
||||
@ -3028,7 +3028,7 @@ __metadata:
|
||||
resolution: "@polkadot/app-claims@workspace:packages/page-claims"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
secp256k1: ^3.8.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@ -3047,8 +3047,8 @@ __metadata:
|
||||
resolution: "@polkadot/app-council@workspace:packages/page-council"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-query": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-query": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3057,8 +3057,8 @@ __metadata:
|
||||
resolution: "@polkadot/app-dashboard@workspace:packages/page-dashboard"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/apps-routing": 0.45.1
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/apps-routing": 0.45.2
|
||||
"@polkadot/react-components": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3067,17 +3067,17 @@ __metadata:
|
||||
resolution: "@polkadot/app-democracy@workspace:packages/page-democracy"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-query": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-query": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/app-explorer@0.45.1, @polkadot/app-explorer@workspace:packages/page-explorer":
|
||||
"@polkadot/app-explorer@0.45.2, @polkadot/app-explorer@workspace:packages/page-explorer":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/app-explorer@workspace:packages/page-explorer"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3086,9 +3086,9 @@ __metadata:
|
||||
resolution: "@polkadot/app-extrinsics@workspace:packages/page-extrinsics"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-params": 0.45.1
|
||||
"@polkadot/react-signer": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-params": 0.45.2
|
||||
"@polkadot/react-signer": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3097,7 +3097,7 @@ __metadata:
|
||||
resolution: "@polkadot/app-generic-asset@workspace:packages/page-generic-asset"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3106,7 +3106,7 @@ __metadata:
|
||||
resolution: "@polkadot/app-i18n@workspace:packages/page-i18n"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3115,7 +3115,7 @@ __metadata:
|
||||
resolution: "@polkadot/app-js@workspace:packages/page-js"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3124,8 +3124,8 @@ __metadata:
|
||||
resolution: "@polkadot/app-parachains@workspace:packages/page-parachains"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-query": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-query": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3134,9 +3134,9 @@ __metadata:
|
||||
resolution: "@polkadot/app-settings@workspace:packages/page-settings"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/apps-config": 0.45.1
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-query": 0.45.1
|
||||
"@polkadot/apps-config": 0.45.2
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-query": 0.45.2
|
||||
query-string: ^6.13.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@ -3146,7 +3146,7 @@ __metadata:
|
||||
resolution: "@polkadot/app-society@workspace:packages/page-society"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3155,9 +3155,9 @@ __metadata:
|
||||
resolution: "@polkadot/app-staking@workspace:packages/page-staking"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/app-explorer": 0.45.1
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-query": 0.45.1
|
||||
"@polkadot/app-explorer": 0.45.2
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-query": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3166,8 +3166,8 @@ __metadata:
|
||||
resolution: "@polkadot/app-storage@workspace:packages/page-storage"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-params": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-params": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3176,7 +3176,7 @@ __metadata:
|
||||
resolution: "@polkadot/app-sudo@workspace:packages/page-sudo"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3185,8 +3185,8 @@ __metadata:
|
||||
resolution: "@polkadot/app-tech-comm@workspace:packages/page-tech-comm"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-query": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-query": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3195,7 +3195,7 @@ __metadata:
|
||||
resolution: "@polkadot/app-toolbox@workspace:packages/page-toolbox"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3204,12 +3204,12 @@ __metadata:
|
||||
resolution: "@polkadot/app-treasury@workspace:packages/page-treasury"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-query": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-query": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/apps-config@0.45.1, @polkadot/apps-config@workspace:packages/apps-config":
|
||||
"@polkadot/apps-config@0.45.2, @polkadot/apps-config@workspace:packages/apps-config":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/apps-config@workspace:packages/apps-config"
|
||||
dependencies:
|
||||
@ -3224,7 +3224,7 @@ __metadata:
|
||||
dependencies:
|
||||
"@babel/polyfill": ^7.10.1
|
||||
"@polkadot/dev": ^0.55.10
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@types/react": ^16.9.36
|
||||
"@types/react-dom": ^16.9.8
|
||||
babel-loader: ^8.1.0
|
||||
@ -3238,7 +3238,7 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/apps-routing@0.45.1, @polkadot/apps-routing@workspace:packages/apps-routing":
|
||||
"@polkadot/apps-routing@0.45.2, @polkadot/apps-routing@workspace:packages/apps-routing":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/apps-routing@workspace:packages/apps-routing"
|
||||
dependencies:
|
||||
@ -3253,8 +3253,8 @@ __metadata:
|
||||
"@babel/polyfill": ^7.10.1
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/dev": ^0.55.10
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-signer": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-signer": 0.45.2
|
||||
babel-loader: ^8.1.0
|
||||
copy-webpack-plugin: ^6.0.2
|
||||
css-loader: ^3.6.0
|
||||
@ -3410,7 +3410,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/react-api@0.45.1, @polkadot/react-api@workspace:packages/react-api":
|
||||
"@polkadot/react-api@0.45.2, @polkadot/react-api@workspace:packages/react-api":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/react-api@workspace:packages/react-api"
|
||||
dependencies:
|
||||
@ -3421,15 +3421,15 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/react-components@0.45.1, @polkadot/react-components@workspace:packages/react-components":
|
||||
"@polkadot/react-components@0.45.2, @polkadot/react-components@workspace:packages/react-components":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/react-components@workspace:packages/react-components"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/keyring": ^2.14.1
|
||||
"@polkadot/react-api": 0.45.1
|
||||
"@polkadot/react-api": 0.45.2
|
||||
"@polkadot/react-identicon": ^0.54.1
|
||||
"@polkadot/react-query": 0.45.1
|
||||
"@polkadot/react-query": 0.45.2
|
||||
"@polkadot/ui-keyring": ^0.54.1
|
||||
"@polkadot/ui-settings": ^0.54.1
|
||||
"@types/codeflask": ^1.4.1
|
||||
@ -3488,12 +3488,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/react-params@0.45.1, @polkadot/react-params@workspace:packages/react-params":
|
||||
"@polkadot/react-params@0.45.2, @polkadot/react-params@workspace:packages/react-params":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/react-params@workspace:packages/react-params"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3514,7 +3514,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/react-query@0.45.1, @polkadot/react-query@workspace:packages/react-query":
|
||||
"@polkadot/react-query@0.45.2, @polkadot/react-query@workspace:packages/react-query":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/react-query@workspace:packages/react-query"
|
||||
dependencies:
|
||||
@ -3522,12 +3522,12 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/react-signer@0.45.1, @polkadot/react-signer@workspace:packages/react-signer":
|
||||
"@polkadot/react-signer@0.45.2, @polkadot/react-signer@workspace:packages/react-signer":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/react-signer@workspace:packages/react-signer"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/react-components": 0.45.1
|
||||
"@polkadot/react-components": 0.45.2
|
||||
"@polkadot/react-qr": ^0.54.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
Loading…
Reference in New Issue
Block a user