From 4f60ce075024dbd96550ccc996598e4f1436ecd9 Mon Sep 17 00:00:00 2001 From: Bobo Date: Tue, 9 Jul 2024 07:47:28 +0200 Subject: [PATCH] Polkadot.js uplift to v11.3.1 (#1327) * Types import fix * Error fixes * Cleanup * Polkassembly uplift * getVested to the portal codebase * Polkasafe uplift * fix: resolved usePrice and XCM issue * fix: updated polkasafe logic * feat: added Bifrost into restrictedXcmNetwork * fix: updated Polkasafe logic --------- Co-authored-by: impelcrypto --- package.json | 34 +- src/components/assets/Account.vue | 4 +- .../header/modals/SelectMultisigAccount.vue | 12 +- src/css/icon.scss | 5 + src/hooks/chain/useAvgBlockTime.ts | 5 +- src/hooks/helper/plasmUtils.ts | 6 +- src/hooks/transfer/useTokenTransfer.ts | 7 +- src/hooks/useAppRouter.ts | 7 +- src/hooks/useBalance.ts | 39 +- src/hooks/usePrice.ts | 36 +- src/hooks/xcm/useTransferRouter.ts | 8 +- src/links/index.ts | 6 +- src/modules/multisig/index.ts | 30 +- src/modules/xcm/index.ts | 5 + src/types/polkasafe.ts | 7 + src/v2/models/Polkadot.ts | 106 + src/v2/models/index.ts | 1 + .../implementations/BalancesRepository.ts | 3 +- .../implementations/IdentityRepository.ts | 8 +- .../implementations/PolkasafeRepository.ts | 4 +- .../implementations/SystemRepository.ts | 11 +- .../implementations/XcmRepository.ts | 17 +- .../implementations/XvmRepository.ts | 2 +- tests/common-api.ts | 7 +- yarn.lock | 2930 +++++++++++++++-- 25 files changed, 2957 insertions(+), 343 deletions(-) create mode 100644 src/types/polkasafe.ts create mode 100644 src/v2/models/Polkadot.ts diff --git a/package.json b/package.json index bd9b0137a..f6e8ea69a 100644 --- a/package.json +++ b/package.json @@ -31,22 +31,22 @@ "@astar-network/metamask-astar-types": "^0.6.1", "@ethersproject/bignumber": "^5.5.0", "@layerzerolabs/scan-client": "^0.0.8", - "@polkadot/api": "^10.9.1", - "@polkadot/api-contract": "^10.9.1", - "@polkadot/extension-dapp": "0.46.5", - "@polkadot/hw-ledger": "^12.3.2", - "@polkadot/keyring": "^12.3.2", - "@polkadot/networks": "^12.3.2", - "@polkadot/rpc-provider": "^10.9.1", - "@polkadot/types": "^10.9.1", - "@polkadot/types-known": "^10.9.1", - "@polkadot/types-support": "^10.9.1", - "@polkadot/ui-keyring": "^3.5.1", - "@polkadot/util": "^12.3.2", - "@polkadot/util-crypto": "^12.3.2", - "@polkadot/vue-identicon": "^3.5.1", - "@polkadot/wasm-crypto": "^7.2.1", - "@polkadot/x-randomvalues": "^12.3.2", + "@polkadot/api": "^11.3.1", + "@polkadot/api-contract": "^11.3.1", + "@polkadot/extension-dapp": "0.47.5", + "@polkadot/hw-ledger": "^12.6.2", + "@polkadot/keyring": "^12.6.2", + "@polkadot/networks": "^12.6.2", + "@polkadot/rpc-provider": "^11.3.1", + "@polkadot/types": "^11.3.1", + "@polkadot/types-known": "^11.3.1", + "@polkadot/types-support": "^11.3.1", + "@polkadot/ui-keyring": "^3.6.6", + "@polkadot/util": "^12.6.2", + "@polkadot/util-crypto": "^12.6.2", + "@polkadot/vue-identicon": "^3.6.6", + "@polkadot/wasm-crypto": "^7.3.2", + "@polkadot/x-randomvalues": "^12.6.2", "@quasar/app-webpack": "^3.11.2", "@quasar/extras": "^1.16.7", "@vue/apollo-composable": "^4.0.0-beta.4", @@ -72,7 +72,7 @@ "luxon": "^2.5.2", "marked": "^4.0.15", "path": "^0.12.7", - "polkasafe": "^1.1.10", + "polkasafe": "^1.4.2", "quasar": "^2.12.7", "query-string": "^7.1.0", "reflect-metadata": "^0.1.13", diff --git a/src/components/assets/Account.vue b/src/components/assets/Account.vue index 41488d797..1e3489591 100644 --- a/src/components/assets/Account.vue +++ b/src/components/assets/Account.vue @@ -72,7 +72,7 @@ width="24" :src="iconWallet" alt="wallet-icon" - :class="multisig && 'img--polkasafe'" + :class="multisig && 'img--polkasafe-account'" /> @@ -145,7 +145,7 @@