From 6555c3ff814fc018bf4e35da7c51f774db47bce0 Mon Sep 17 00:00:00 2001 From: Bobo Date: Fri, 16 Aug 2024 09:35:06 +0200 Subject: [PATCH] Merge release-hotfix to main (#1369) * hotfix: enable xcm with Bifrost (#1361) * Fix ledger on the portal (#1370) * disable celer bridge (#1353) * disable cbridge * fix statement shorter * disable celer bridge icon too (#1354) * Fix usePrice hooks (#1355) * fix usePrice issue * refactor, just using immediate is enough * only enable immediate for h160 wallet (#1356) * Add metadata hash and uplift to polkadot 12.0.1 * Added // @ts-nocheck to ignore some typing errors for now * More // @ts-nocheck * WithSignedTransaction * Remove hash * $api removed * fix: removed useLedger and login toggle (#1371) --------- Co-authored-by: Taegeon Alan Go Co-authored-by: Roy <92044428+impelcrypto@users.noreply.github.com> * Add raw metadata to chain info (#1372) * Add raw metadata to chain info * Enable users to update metadata once more event if it is up to date * Polkadot types errors fix (#1373) * Fix polkadot types errors * Be strict * Polkasafe version update --------- Co-authored-by: Roy <92044428+impelcrypto@users.noreply.github.com> Co-authored-by: Taegeon Alan Go --- package.json | 32 +- .../header/modals/SelectAccount.vue | 75 +- src/config/localStorage.ts | 1 + src/hooks/index.ts | 2 - src/hooks/types/Message.ts | 11 - src/hooks/useAbi.ts | 118 --- src/hooks/useBalance.ts | 2 +- src/hooks/useChainInfo.ts | 11 +- src/hooks/useMessages.ts | 39 - src/hooks/useMetaExtensions.ts | 4 + src/hooks/wallet/useLedger.ts | 85 -- src/hooks/xcm/useXcmBridge.ts | 2 +- src/links/index.ts | 6 +- src/modules/xcm/index.ts | 5 - src/staking-v3/hooks/useDappStaking.ts | 2 +- src/store/contracts/actions.ts | 71 -- src/store/contracts/getters.ts | 17 - src/store/contracts/index.ts | 16 - src/store/contracts/mutations.ts | 19 - src/store/contracts/state.ts | 31 - src/store/index.ts | 4 - .../implementations/SystemRepository.ts | 1 - .../xcm/EquilibriumXcmRepository.ts | 2 +- .../implementations/xcm/PhalaXcmRepository.ts | 2 +- .../implementations/PolkadotWalletService.ts | 1 + tsconfig.json | 2 +- yarn.lock | 820 ++++++++++-------- 27 files changed, 510 insertions(+), 871 deletions(-) delete mode 100644 src/hooks/types/Message.ts delete mode 100644 src/hooks/useAbi.ts delete mode 100644 src/hooks/useMessages.ts delete mode 100644 src/hooks/wallet/useLedger.ts delete mode 100644 src/store/contracts/actions.ts delete mode 100644 src/store/contracts/getters.ts delete mode 100644 src/store/contracts/index.ts delete mode 100644 src/store/contracts/mutations.ts delete mode 100644 src/store/contracts/state.ts diff --git a/package.json b/package.json index f6e8ea69a..b619ae066 100644 --- a/package.json +++ b/package.json @@ -31,22 +31,17 @@ "@astar-network/metamask-astar-types": "^0.6.1", "@ethersproject/bignumber": "^5.5.0", "@layerzerolabs/scan-client": "^0.0.8", - "@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", + "@polkadot/api": "12.3.1", + "@polkadot/api-contract": "12.3.1", + "@polkadot/extension-dapp": "0.51.1", + "@polkadot/hw-ledger": "13.0.2", + "@polkadot/keyring": "13.0.2", + "@polkadot/types": "12.3.1", + "@polkadot/types-known": "12.3.1", + "@polkadot/ui-keyring": "3.8.3", + "@polkadot/util": "13.0.2", + "@polkadot/util-crypto": "13.0.2", + "@polkadot/vue-identicon": "3.8.3", "@quasar/app-webpack": "^3.11.2", "@quasar/extras": "^1.16.7", "@vue/apollo-composable": "^4.0.0-beta.4", @@ -72,7 +67,7 @@ "luxon": "^2.5.2", "marked": "^4.0.15", "path": "^0.12.7", - "polkasafe": "^1.4.2", + "polkasafe": "^1.4.3", "quasar": "^2.12.7", "query-string": "^7.1.0", "reflect-metadata": "^0.1.13", @@ -135,6 +130,9 @@ "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.0.3", "tailwindcss-theme-variants": "^2.0.0-alpha.2" }, + "resolutions": { + "@polkadot/types": "12.3.1" + }, "browserslist": [ "last 10 Chrome versions", "last 10 Firefox versions", diff --git a/src/components/header/modals/SelectAccount.vue b/src/components/header/modals/SelectAccount.vue index f624b06d2..bbf13371a 100644 --- a/src/components/header/modals/SelectAccount.vue +++ b/src/components/header/modals/SelectAccount.vue @@ -73,16 +73,8 @@
-
- - {{ $t('wallet.isLedgerAccount') }} - -
- -
-
@@ -146,8 +138,6 @@ export default defineComponent({ setup(props) { const isShowBalance = ref(false); const isLoadingBalance = ref(false); - const toggleIsLedger = ref(false); - const isLedgerReady = ref(false); const accountBalanceMap = ref([]); const isClosing = ref(false); @@ -289,67 +279,6 @@ export default defineComponent({ { immediate: true } ); - const updateIsLedgerAccount = async (isLedger: boolean): Promise => { - localStorage.setItem(LOCAL_STORAGE.IS_LEDGER, isLedger.toString()); - store.commit('general/setIsLedger', isLedger); - if (isLedger) { - try { - // Memo: send a popup request for permission(first time only) - const ledgerData = new Ledger('hid', 'astar'); - if (process.env.DEV) { - console.info('ledgerData', ledgerData); - } - - const { address } = await ledgerData.getAddress(); - if (address) { - isLedgerReady.value = true; - const transport = (ledgerData as any).__internal__app.transport; - transport.close(); - localStorage.setItem(LOCAL_STORAGE.IS_LEDGER, isLedger.toString()); - store.commit('general/setIsLedger', isLedger); - } - } catch (error: any) { - console.error(error); - const idLedgerLocked = '0x5515'; - const idNotRunningApp = '28161'; - let errMsg = ''; - - if (error.message.includes(idLedgerLocked)) { - errMsg = error.message; - } else if (error.message.includes(idNotRunningApp)) { - errMsg = t('warning.ledgerNotOpened'); - } - - if (errMsg) { - store.dispatch('general/showAlertMsg', { - msg: errMsg, - alertType: 'error', - }); - } - } - } else { - isLedgerReady.value = false; - } - }; - - watch([selAccount], () => { - toggleIsLedger.value = false; - }); - - watch( - [isLedger], - () => { - toggleIsLedger.value = isLedger.value; - }, - { - immediate: true, - } - ); - - watch([toggleIsLedger], async () => { - await updateIsLedgerAccount(toggleIsLedger.value); - }); - onUnmounted(() => { window.removeEventListener('resize', onHeightChange); }); @@ -371,11 +300,9 @@ export default defineComponent({ endpointKey, isMathWallet, windowHeight, - toggleIsLedger, isShowBalance, currentNetworkChain, astarChain, - isLedgerReady, isLedger, displayBalance, backModal, diff --git a/src/config/localStorage.ts b/src/config/localStorage.ts index 2d1c07d29..0c9e541ed 100644 --- a/src/config/localStorage.ts +++ b/src/config/localStorage.ts @@ -22,6 +22,7 @@ export enum LOCAL_STORAGE { MULTISIG = 'multisig', CLOSE_DAPP_STAKING_V3_ONBOARDING = 'closeDappStakingV3Onboarding', DECOMMISSION = 'decommission', + HAS_RAW_METADATA_V15 = 'hasRawMetadataV15', } // Memo: A helper function to return the account's history data that is stored in the browser diff --git a/src/hooks/index.ts b/src/hooks/index.ts index 53cec0c8d..d84a4986c 100644 --- a/src/hooks/index.ts +++ b/src/hooks/index.ts @@ -2,7 +2,6 @@ export * from './useSidebar'; export * from './useAccount'; export * from './useBalance'; export * from './useContracts'; -export * from './useMessages'; export * from './useWasm'; export * from './useChainMetadata'; export * from './useGetMinStaking'; @@ -23,7 +22,6 @@ export * from './chain/useAvgBlockTime'; export * from './dapps-staking/useSignPayload'; export * from './dapps-staking/useCampaign'; export * from './wallet/useWalletIcon'; -export * from './wallet/useLedger'; export * from './wallet/useAccountUnification'; export * from './xcm/useXcmBridge'; export * from './transfer/useTokenTransfer'; diff --git a/src/hooks/types/Message.ts b/src/hooks/types/Message.ts deleted file mode 100644 index c77186633..000000000 --- a/src/hooks/types/Message.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { TypeDef } from '@polkadot/types/create/types'; -import type { AbiParam } from '@polkadot/api-contract/types'; - -export interface MessageType { - identifier: string; - docs: string[]; - args: AbiParam[]; - returnType?: TypeDef | null; - isConstructor?: boolean; - index: number; -} diff --git a/src/hooks/useAbi.ts b/src/hooks/useAbi.ts deleted file mode 100644 index 8492a1313..000000000 --- a/src/hooks/useAbi.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { ref } from 'vue'; -import type { ChainProperties } from '@polkadot/types/interfaces'; - -import { Abi } from '@polkadot/api-contract'; -import { AnyJson } from '@polkadot/types/types'; -import { u8aToString } from '@polkadot/util'; -import { useStore } from 'src/store'; -import { $api } from 'boot/api'; - -interface CodeBase { - id: string; - codeHash: string; - name: string; - genesisHash: string; - tags: string[]; -} -export interface Code extends CodeBase { - abi?: AnyJson | null; -} - -export interface FileState { - data: Uint8Array; - name: string; - size: number; -} - -// interface UseAbi { -// abi: Abi | null; -// errorText: string | null; -// isAbiError: boolean; -// isAbiValid: boolean; -// isAbiSupplied: boolean; -// onChangeAbi: (_: FileState) => void; -// onRemoveAbi: () => void; -// } - -interface AbiSpecOutdated { - deploy?: any; - messages?: any; - registry?: { - strings?: any; - }; -} - -// Memo. Not used anywhere in the code base. Should we remove the hook? -export default function useAbi(source: Code | null = null, isRequired = false) { - const registry = $api?.registry; - const chainProperties = registry?.getChainProperties() as ChainProperties | undefined; - - const abi = - source && source?.abi ? ref(new Abi(source.abi.toString(), chainProperties)) : ref(null); - const isAbiSupplied = ref(!!source?.abi); - const isAbiValid = ref(!isRequired || !!source?.abi); - - const isAbiError = ref(false); - const errorText = ref(''); - - const store = useStore(); - - const onChangeAbi = ({ data }: FileState): void => { - const json = u8aToString(data); - - try { - const abiOutdated = JSON.parse(json) as AbiSpecOutdated; - - if (abiOutdated.deploy || abiOutdated.messages) { - throw new Error('You are using an ABI with an outdated format. Please generate a new one.'); - } - - const newAbi = JSON.parse(json) as AnyJson; - - //@ts-ignore - abi.value = new Abi(newAbi, chainProperties); - isAbiError.value = false; - isAbiSupplied.value = true; - isAbiValid.value = true; - - source?.codeHash && - store.dispatch('contracts/saveCode', { - api: $api, - _codeHash: source?.codeHash, - partial: { abi: json }, - }); - } catch (error: any) { - console.error(error); - - isAbiSupplied.value = false; - isAbiValid.value = false; - - isAbiError.value = true; - errorText.value = error; - } - }; - - const onRemoveAbi = (): void => { - isAbiSupplied.value = false; - isAbiValid.value = false; - - isAbiError.value = false; - - source?.codeHash && - store.dispatch('contracts/saveCode', { - api: $api, - _codeHash: source?.codeHash, - partial: { abi: null }, - }); - }; - - return { - abi, - errorText, - isAbiError, - isAbiSupplied, - isAbiValid, - onChangeAbi, - onRemoveAbi, - }; -} diff --git a/src/hooks/useBalance.ts b/src/hooks/useBalance.ts index cba155179..8bc1844f1 100644 --- a/src/hooks/useBalance.ts +++ b/src/hooks/useBalance.ts @@ -89,7 +89,7 @@ function useCall(addressRef: Ref) { const vesting = results[1].unwrapOr(undefined)?.toArray() || []; const currentBlock = results[2]; const vestedClaimable = results[3].vestedClaimable; - const locks: (PalletBalancesBalanceLock | BalanceLockTo212)[] = results[3].lockedBreakdown; + const locks = <(PalletBalancesBalanceLock | BalanceLockTo212)[]>results[3].lockedBreakdown; const extendedVesting: ExtendedVestingInfo[] = []; vestedRef.value = new BN(0); diff --git a/src/hooks/useChainInfo.ts b/src/hooks/useChainInfo.ts index 414742694..0c574d755 100644 --- a/src/hooks/useChainInfo.ts +++ b/src/hooks/useChainInfo.ts @@ -4,6 +4,7 @@ import { getSpecTypes } from '@polkadot/types-known'; import { TypeRegistry } from '@polkadot/types/create'; import { formatBalance, isNumber } from '@polkadot/util'; import { defaults as addressDefaults } from '@polkadot/util-crypto/address/defaults'; +import { HexString } from '@polkadot/util/types'; import { ASTAR_NATIVE_TOKEN } from 'src/config/chain'; import { useChainMetadata } from 'src/hooks/useChainMetadata'; import { ref } from 'vue'; @@ -11,6 +12,7 @@ import { ref } from 'vue'; export interface ChainInfo extends MetadataDef { color: string | undefined; tokenSymbol: ASTAR_NATIVE_TOKEN; + rawMetadata: HexString | undefined; } const registry = new TypeRegistry(); @@ -20,6 +22,7 @@ export const DEFAULT_SS58 = registry.createType('u32', addressDefaults.prefix); function createInfo(api: ApiPromise, systemChain: string, specName: string): ChainInfo { // console.log('chainInfo', `${systemChain} | ${systemName} | ${specName}`); + return { chain: systemChain, color: '#2096F3', @@ -31,12 +34,14 @@ function createInfo(api: ApiPromise, systemChain: string, specName: string): Cha tokenDecimals: (api.registry.chainDecimals || [DEFAULT_DECIMALS.toNumber()])[0], tokenSymbol: (api.registry.chainTokens || formatBalance.getDefaults().unit)[0] as ASTAR_NATIVE_TOKEN, + types: getSpecTypes( api.registry, systemChain, api.runtimeVersion.specName, api.runtimeVersion.specVersion ) as unknown as Record, + rawMetadata: undefined, }; } @@ -47,7 +52,11 @@ export function useChainInfo(api: ApiPromise) { api.isReady.then(async () => { const specName: string = api.runtimeVersion.specName.toString(); const systemChain: string = ((await api.rpc.system.chain()) || '').toString(); - chainInfo.value = createInfo(api, systemChain, specName); + let info = createInfo(api, systemChain, specName); + const metadata = await api.call.metadata.metadataAtVersion(15); + info.rawMetadata = metadata.toHex(); + + chainInfo.value = info; }); return { diff --git a/src/hooks/useMessages.ts b/src/hooks/useMessages.ts deleted file mode 100644 index 708ddce64..000000000 --- a/src/hooks/useMessages.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { ref, watch } from 'vue'; -import type { AbiMessage } from '@polkadot/api-contract/types'; -import { MessageType } from 'src/hooks/types/Message'; - -export function useMessages(abi: any) { - const messages = ref(null); - - watch( - abi, - () => { - if (abi?.value?.constructors && abi?.value?.messages) { - const constructors = abi?.value?.constructors.map((e: AbiMessage) => { - return { - index: e.index, - identifier: e.identifier, - docs: e.docs, - args: e.args, - returnType: e.returnType, - isConstructor: e.isConstructor, - }; - }); - const msgs = abi?.value?.messages.map((e: AbiMessage) => { - return { - index: e.index, - identifier: e.identifier, - docs: e.docs, - args: e.args, - returnType: e.returnType, - isConstructor: e.isConstructor, - }; - }); - messages.value = [...constructors, ...msgs]; - } - }, - { immediate: true } - ); - - return { messages }; -} diff --git a/src/hooks/useMetaExtensions.ts b/src/hooks/useMetaExtensions.ts index b1515ae3e..5a0e14cfb 100644 --- a/src/hooks/useMetaExtensions.ts +++ b/src/hooks/useMetaExtensions.ts @@ -6,6 +6,7 @@ import type { InjectedMetadataKnown, MetadataDef, } from '@polkadot/extension-inject/types'; +import { LOCAL_STORAGE } from 'src/config/localStorage'; interface ExtensionKnown { extension: InjectedExtension; @@ -75,6 +76,7 @@ function filterAll(api: ApiPromise, all: ExtensionKnown[]): Extensions { // Memo: Talisman and Mathwallet return null const current = info.known.find(({ genesisHash }) => api.genesisHash.eq(genesisHash)) || null; const isUpgradable = + !Boolean(localStorage.getItem(LOCAL_STORAGE.HAS_RAW_METADATA_V15)) || (current && api.runtimeVersion.specVersion.gtn(current.specVersion)) || !hasCurrentProperties(api, info); @@ -112,6 +114,8 @@ async function getExtensionInfo( if (isOk) { saveProperties(api, extension); } + + localStorage.setItem(LOCAL_STORAGE.HAS_RAW_METADATA_V15, 'true'); } catch (error) { // ignore console.error('e', error); diff --git a/src/hooks/wallet/useLedger.ts b/src/hooks/wallet/useLedger.ts deleted file mode 100644 index 2c3113118..000000000 --- a/src/hooks/wallet/useLedger.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { Ledger } from '@polkadot/hw-ledger'; -import { useAccount } from 'src/hooks/useAccount'; -import { useStore } from 'src/store'; -import { computed, ref, watch } from 'vue'; -import { useI18n } from 'vue-i18n'; - -enum LedgerId { - nanoS = 'nanoS', - nanoSPlus = 'nanoSP', - nanoX = 'nanoX', -} - -export const useLedger = () => { - const isLedgerNanoS = ref(false); - const ledger = ref(); - const ledgerAccount = ref(''); - const { currentAccount } = useAccount(); - const { t } = useI18n(); - - const store = useStore(); - const isH160 = computed(() => store.getters['general/isH160Formatted']); - const isLedger = computed(() => { - const isLedger = store.getters['general/isLedger']; - return !isH160.value && isLedger; - }); - - const handleReset = (): void => { - isLedgerNanoS.value = false; - ledger.value = undefined; - ledgerAccount.value = ''; - }; - - const handleLedgerData = async (): Promise => { - // Memo: make sure `transport` has been closed before creating ledger transport - if (ledger.value && ledgerAccount.value) { - const transport = (ledger.value as any).__internal__app.transport; - transport.close(); - } - - if (!currentAccount.value || isH160.value) { - handleReset(); - return; - } - try { - if (!isLedger.value) return; - const ledgerData = new Ledger('hid', 'astar'); - const { address } = await ledgerData.getAddress(); - if (process.env.DEV) { - console.info('ledgerData', ledgerData); - } - - if (address) { - ledger.value = ledgerData; - const deviceModel = (ledgerData as any).__internal__app.transport.deviceModel; - ledgerAccount.value = address; - isLedgerNanoS.value = deviceModel.id === LedgerId.nanoS; - } else { - handleReset(); - } - } catch (error: any) { - console.error(error); - const idLedgerLocked = '0x5515'; - const idNotRunningApp = '28161'; - let errMsg = ''; - - if (error.message.includes(idLedgerLocked)) { - errMsg = error.message; - } else if (error.message.includes(idNotRunningApp)) { - errMsg = t('warning.ledgerNotOpened'); - } - - if (errMsg) { - store.dispatch('general/showAlertMsg', { - msg: errMsg, - alertType: 'error', - }); - } - handleReset(); - } - }; - - watch([currentAccount], handleLedgerData, { immediate: true }); - - return { isLedgerNanoS, isLedger }; -}; diff --git a/src/hooks/xcm/useXcmBridge.ts b/src/hooks/xcm/useXcmBridge.ts index 50be17547..ff1c388c7 100644 --- a/src/hooks/xcm/useXcmBridge.ts +++ b/src/hooks/xcm/useXcmBridge.ts @@ -492,7 +492,7 @@ export function useXcmBridge(selectedToken: Ref) { const selectedEndpointStored = String(localStorage.getItem(LOCAL_STORAGE.SELECTED_ENDPOINT)); const selectedEndpoint = JSON.parse(selectedEndpointStored); - const astarEndpoint = selectedEndpoint && Object.values(selectedEndpoint)[0]; + const astarEndpoint = (selectedEndpoint && Object.values(selectedEndpoint)[0]) as string; const isAstarChains = srcChain.value.name.toLowerCase().includes('astar') || srcChain.value.name.toLowerCase().includes('shiden'); diff --git a/src/links/index.ts b/src/links/index.ts index c052abaf8..55af56088 100644 --- a/src/links/index.ts +++ b/src/links/index.ts @@ -38,12 +38,10 @@ export const deepLink = { metamask: `https://metamask.app.link/dapp/${window.location.host}/${deepLinkPath.metamask}`, }; -// Memo: use for debugging -export const devOrigin = 'http://localhost:8080'; export const stagingOrigin = 'https://staging.portal.astar.network'; -// export const productionOrigin = 'https://portal.astar.network'; +export const productionOrigin = 'https://portal.astar.network'; // Memo: for debugging -export const productionOrigin = devOrigin; +// export const productionOrigin = 'http://localhost:8080'; export const polkasafeUrl = 'https://app.polkasafe.xyz'; diff --git a/src/modules/xcm/index.ts b/src/modules/xcm/index.ts index 0980d0d63..7fba14724 100644 --- a/src/modules/xcm/index.ts +++ b/src/modules/xcm/index.ts @@ -384,11 +384,6 @@ export const restrictedXcmNetwork = { isRestrictedFromNative: true, isRestrictedFromEvm: true, }, - { - chain: Chain.BIFROST_POLKADOT, - isRestrictedFromNative: true, - isRestrictedFromEvm: true, - }, ], [astarChain.SHIDEN]: [ { diff --git a/src/staking-v3/hooks/useDappStaking.ts b/src/staking-v3/hooks/useDappStaking.ts index db1d80e1c..8744f5deb 100644 --- a/src/staking-v3/hooks/useDappStaking.ts +++ b/src/staking-v3/hooks/useDappStaking.ts @@ -417,7 +417,7 @@ export function useDappStaking() { const stakingRepo = container.get(Symbols.DappStakingRepositoryV3); const constants = await stakingRepo.getConstants(); constants.minStakeAmountToken = Number( - (constants.minStakeAmount ?? 0) / BigInt(10 ** decimal.value) + (constants.minStakeAmount ?? BigInt(0)) / BigInt(10 ** decimal.value) ); store.commit('stakingV3/setConstants', constants); }; diff --git a/src/store/contracts/actions.ts b/src/store/contracts/actions.ts deleted file mode 100644 index 8d9fe0433..000000000 --- a/src/store/contracts/actions.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { ActionTree } from 'vuex'; -import { ApiPromise } from '@polkadot/api'; -import { StateInterface } from '../index'; -import { ContractsStateInterface as State, CodeJson } from './state'; -import type { Hash } from '@polkadot/types/interfaces'; -import { Abi } from '@polkadot/api-contract'; -import { isString } from '@polkadot/util'; -import store from 'store'; - -interface SaveCode { - api: ApiPromise; - _codeHash: string | Hash; - partial: Partial; -} - -const KEY_CODE = 'code:'; - -const getCodeJson = (api: ApiPromise, json: CodeJson): any => { - return { - contractAbi: json.abi ? new Abi(json.abi, api.registry.getChainProperties()) : undefined, - json, - }; -}; - -const actions: ActionTree = { - loadAllContracts({ commit }, param: any) { - try { - const api: ApiPromise = param.api; - const genesisHash = api.genesisHash?.toHex(); - - console.info('genesisHash', genesisHash); - - store.each((json: CodeJson, key: string): void => { - if (json && json.genesisHash === genesisHash && key.startsWith(KEY_CODE)) { - const newJson = getCodeJson(api, json); - commit('addCode', JSON.stringify(newJson)); - } - }); - } catch (e) { - console.error('Unable to load code', e); - } - }, - saveCode({ commit, state }, { api, _codeHash, partial }: SaveCode) { - const hash: Hash = isString(_codeHash) ? api.registry.createType('Hash', _codeHash) : _codeHash; - const codeHash = hash.toHex(); - const existing = state.allCode[codeHash]; - const json = { - ...(existing ? existing.json : {}), - ...partial, - codeHash, - genesisHash: api.genesisHash.toHex(), - whenCreated: existing?.json.whenCreated || Date.now(), - }; - const key = `${KEY_CODE}${json.codeHash}`; - - // console.log('key', key); - // console.log('json', json); - - store.set(key, json); - const newJson = getCodeJson(api, json as CodeJson); - - commit('addCode', JSON.stringify(newJson)); - }, - forgetCode({ commit }, { codeHash }) { - const key = `${KEY_CODE}${codeHash}`; - store.remove(key); - commit('removeCode', codeHash); - }, -}; - -export default actions; diff --git a/src/store/contracts/getters.ts b/src/store/contracts/getters.ts deleted file mode 100644 index 7ef4c7f87..000000000 --- a/src/store/contracts/getters.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { GetterTree } from 'vuex'; -import { StateInterface } from '../index'; -import { ContractsStateInterface as State, CodeStored } from './state'; - -export interface ContractsGetters { - hasCode(state: State): boolean; - getAllCode(state: State): CodeStored[]; - getCode(state: State, codeHash: string): CodeStored | undefined; -} - -const getters: GetterTree & ContractsGetters = { - hasCode: (state) => Object.keys(state.allCode).length !== 0, - getAllCode: (state) => Object.values(state.allCode), - getCode: (state, codeHash) => state.allCode[codeHash], -}; - -export default getters; diff --git a/src/store/contracts/index.ts b/src/store/contracts/index.ts deleted file mode 100644 index dfece0a58..000000000 --- a/src/store/contracts/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Module } from 'vuex'; -import { StateInterface } from '../index'; -import state, { ContractsStateInterface as State } from './state'; -import actions from './actions'; -import getters from './getters'; -import mutations from './mutations'; - -const contractsModule: Module = { - namespaced: true, - actions, - getters, - mutations, - state, -}; - -export default contractsModule; diff --git a/src/store/contracts/mutations.ts b/src/store/contracts/mutations.ts deleted file mode 100644 index 97200e943..000000000 --- a/src/store/contracts/mutations.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { MutationTree } from 'vuex'; -import { ContractsStateInterface as State } from './state'; - -export interface ContractsMutations { - addCode(state: S, json: any): void; - removeCode(state: S, codeHash: string): void; -} - -const mutation: MutationTree & ContractsMutations = { - addCode(state, newJson) { - const jsonResult = JSON.parse(newJson); - state.allCode[jsonResult.json.codeHash] = jsonResult; - }, - removeCode(state, codeHash) { - delete state.allCode[codeHash]; - }, -}; - -export default mutation; diff --git a/src/store/contracts/state.ts b/src/store/contracts/state.ts deleted file mode 100644 index cfc3ec52b..000000000 --- a/src/store/contracts/state.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Abi } from '@polkadot/api-contract'; - -export interface CodeJson { - abi?: string | null; - codeHash: string; - name: string; - genesisHash: string; - tags: string[]; - whenCreated: number; -} - -export interface CodeStored { - json: CodeJson; - contractAbi?: Abi; -} - -export type State = { - allCode: Record; -}; - -export interface ContractsStateInterface { - allCode: any; -} - -function state(): ContractsStateInterface { - return { - allCode: {}, - }; -} - -export default state; diff --git a/src/store/index.ts b/src/store/index.ts index ee8602179..25762f858 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -2,10 +2,8 @@ import { store } from 'quasar/wrappers'; import { InjectionKey } from 'vue'; import { createStore, Store as VuexStore, useStore as vuexUseStore } from 'vuex'; import { GeneralStateInterface } from './general/state'; -import { ContractsStateInterface } from './contracts/state'; import { AssetsStateInterface } from './assets/state'; import general from './general'; -import contracts from './contracts'; import assets from './assets'; import stakingV3 from '../staking-v3/store'; import { DappStakingState } from 'src/staking-v3/store/state'; @@ -24,7 +22,6 @@ export interface StateInterface { // example: ExampleStateInterface; // Declared as unknown to avoid linting issue. Best to strongly type as per the line above. general: GeneralStateInterface; - contracts: ContractsStateInterface; assets: AssetsStateInterface; stakingV3: DappStakingState; } @@ -43,7 +40,6 @@ export default store(function (/* { ssrContext } */) { const Store = createStore({ modules: { general, - contracts, assets, stakingV3, }, diff --git a/src/v2/repositories/implementations/SystemRepository.ts b/src/v2/repositories/implementations/SystemRepository.ts index 4e462dfbe..210013404 100644 --- a/src/v2/repositories/implementations/SystemRepository.ts +++ b/src/v2/repositories/implementations/SystemRepository.ts @@ -1,5 +1,4 @@ import { inject, injectable } from 'inversify'; -import '@polkadot/api-augment'; import { Guard } from 'src/v2/common'; import { IApi } from 'src/v2/integration'; import { AccountDataModel, AccountInfoModel } from 'src/v2/models'; diff --git a/src/v2/repositories/implementations/xcm/EquilibriumXcmRepository.ts b/src/v2/repositories/implementations/xcm/EquilibriumXcmRepository.ts index c4b1f4b85..625fcaee0 100644 --- a/src/v2/repositories/implementations/xcm/EquilibriumXcmRepository.ts +++ b/src/v2/repositories/implementations/xcm/EquilibriumXcmRepository.ts @@ -1,5 +1,5 @@ import type { Enum, Struct, u32, u64, u128, Vec } from '@polkadot/types'; -import type { ITuple } from '@polkadot/types-codec/types'; +import type { ITuple } from '@polkadot/types/types'; import { BN } from '@polkadot/util'; import { decodeAddress } from '@polkadot/util-crypto'; import { XcmTokenInformation } from 'src/modules/xcm'; diff --git a/src/v2/repositories/implementations/xcm/PhalaXcmRepository.ts b/src/v2/repositories/implementations/xcm/PhalaXcmRepository.ts index 0a66b439e..644ae104f 100644 --- a/src/v2/repositories/implementations/xcm/PhalaXcmRepository.ts +++ b/src/v2/repositories/implementations/xcm/PhalaXcmRepository.ts @@ -1,5 +1,5 @@ import { BN } from '@polkadot/util'; -import { Option } from '@polkadot/types-codec'; +import { Option } from '@polkadot/types'; import { XcmTokenInformation } from 'src/modules/xcm'; import { container } from 'src/v2/common'; import { ExtrinsicPayload, IApi, IApiFactory } from 'src/v2/integration'; diff --git a/src/v2/services/implementations/PolkadotWalletService.ts b/src/v2/services/implementations/PolkadotWalletService.ts index 79120d5f5..88d4eeb38 100644 --- a/src/v2/services/implementations/PolkadotWalletService.ts +++ b/src/v2/services/implementations/PolkadotWalletService.ts @@ -114,6 +114,7 @@ export class PolkadotWalletService extends WalletService implements IWalletServi signer: await this.getSigner(senderAddress), nonce: -1, tip, + withSignedTransaction: true, }, (result) => { try { diff --git a/tsconfig.json b/tsconfig.json index 5be03d1c0..775036c3b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": ".", "esModuleInterop": true, "experimentalDecorators": true, - "jsx": "preserve" + "jsx": "preserve", }, "exclude": ["**/node_modules/**", "**/.quasar/**", "**/dist/**", "**/playwright-report/**", "**/rpc-tests/**", "**/src-pwa/**", "**/src-ssr/**", "**/test-results/**", "**/tests/polkadot_wallet/**", "**/tests/metamask_wallet/**"] } diff --git a/yarn.lock b/yarn.lock index bee04d3cd..9c73e0dfc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2705,16 +2705,6 @@ resolved "https://registry.yarnpkg.com/@layerzerolabs/scan-client/-/scan-client-0.0.8.tgz#38316cde50c06556bb81b74f18d10a36b637eefb" integrity sha512-V9vvt9GW0+AHoWXfOSNmZ9WUa28fVBmC93J/f9RLeDMEy5VR8srW2Du5pf1mMAg6ncEL0kQ1xkVCu+X6ARFBtQ== -"@ledgerhq/devices@^8.0.1": - version "8.0.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-8.0.1.tgz#4c475f6ae249daf00ef08f5098924206233f3179" - integrity sha512-8uuyR8DGowYBLatur+MyJtRJ8RYDWSFFqGnNmgBBdlRG6VPf9vjhrFZlmYqukWesPwkZNZstP475W4TS+j6EFw== - dependencies: - "@ledgerhq/errors" "^6.12.4" - "@ledgerhq/logs" "^6.10.1" - rxjs "6" - semver "^7.3.5" - "@ledgerhq/devices@^8.3.0": version "8.3.0" resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-8.3.0.tgz#a1e1a21608e162fb3a512f57863bf9842b29493f" @@ -2725,70 +2715,71 @@ rxjs "^7.8.1" semver "^7.3.5" -"@ledgerhq/errors@^6.12.4": - version "6.12.4" - resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-6.12.4.tgz#1c2f75dc3dee91b069f3446be484fa28676d1b45" - integrity sha512-qi5poMrcIuFuivdzRjjQsNp7rRwUA5v3eo6D4yEy+l+w8wT4d4JtQ5u1TbrlGfFHfgLq7Lv6dsvh2ooLyWTyfg== +"@ledgerhq/devices@^8.4.0", "@ledgerhq/devices@^8.4.2": + version "8.4.2" + resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-8.4.2.tgz#f1c56194cf1343d56cad49c8feba92ad93432e14" + integrity sha512-oWNTp3jCMaEvRHsXNYE/yo+PFMgXAJGFHLOU1UdE4/fYkniHbD9wdxwyZrZvrxr9hNw4/9wHiThyITwPtMzG7g== + dependencies: + "@ledgerhq/errors" "^6.18.0" + "@ledgerhq/logs" "^6.12.0" + rxjs "^7.8.1" + semver "^7.3.5" "@ledgerhq/errors@^6.16.4": version "6.16.4" resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-6.16.4.tgz#a38baffe8b096d9fff3ad839cadb55704c8d8e7b" integrity sha512-M57yFaLYSN+fZCX0E0zUqOmrV6eipK+s5RhijHoUNlHUqrsvUz7iRQgpd5gRgHB5VkIjav7KdaZjKiWGcHovaQ== -"@ledgerhq/hw-transport-node-hid-noevents@^6.29.6": - version "6.29.6" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-noevents/-/hw-transport-node-hid-noevents-6.29.6.tgz#a328bdde245283f3ca3b82ffa19f7f31b745a22d" - integrity sha512-H1cGC4TLwSCxve3rbV7qfPJBZfy7VD7k9Czc9HOMDwQ9zHFtaoeiIotIMGjzHjfPtAGauMpAYvrpmEdBBX5sHg== +"@ledgerhq/errors@^6.17.0", "@ledgerhq/errors@^6.18.0": + version "6.18.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-6.18.0.tgz#d55d6a57430d7a86532a9033ce0b45103264c620" + integrity sha512-L3jQWAGyooxRDk/MRlW2v4Ji9+kloBtdmz9wBkHaj2j0n+05rweJSV3GHw9oye1BYMbVFqFffmT4H3hlXlCasw== + +"@ledgerhq/hw-transport-node-hid-noevents@^6.30.3": + version "6.30.3" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-noevents/-/hw-transport-node-hid-noevents-6.30.3.tgz#edcc28086d1222f8878b135ec3e64ee3bf8cd34f" + integrity sha512-rYnHmWaGFKiQOhdRgr7xm767fLOl2yKv95vG+FNztDjKZBOj8RfH9K0S4eNVilqxGSW7ad3H5XlpfSTzgC5eIQ== dependencies: - "@ledgerhq/devices" "^8.3.0" - "@ledgerhq/errors" "^6.16.4" - "@ledgerhq/hw-transport" "^6.30.6" + "@ledgerhq/devices" "^8.4.2" + "@ledgerhq/errors" "^6.18.0" + "@ledgerhq/hw-transport" "^6.31.2" "@ledgerhq/logs" "^6.12.0" - node-hid "^2.1.2" + node-hid "2.1.2" -"@ledgerhq/hw-transport-node-hid-singleton@^6.30.1": - version "6.30.6" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-singleton/-/hw-transport-node-hid-singleton-6.30.6.tgz#08f2f614d7c67ffcac52b82277cc02b09c40b74c" - integrity sha512-1ptKA/rJ2dWXpY68xaRe/kyvb4J6gfgS+KUeG0lDvfVQfTk98O2CMCmwHp1uBX/ppt9Z47h/Bkd/j1/mMlolXg== +"@ledgerhq/hw-transport-node-hid-singleton@^6.31.1": + version "6.31.3" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-singleton/-/hw-transport-node-hid-singleton-6.31.3.tgz#12e495bae5eb16151ab6f83c05ee5b4218789179" + integrity sha512-zsiYsQ9mnIcyS/FdHjX/ccaLkAfQHddQdqXuKpvAfA9aZA470j7r5wQ2PZL3ozMMnOQa5FXry3cXJuNeoD28vg== dependencies: - "@ledgerhq/devices" "^8.3.0" - "@ledgerhq/errors" "^6.16.4" - "@ledgerhq/hw-transport" "^6.30.6" - "@ledgerhq/hw-transport-node-hid-noevents" "^6.29.6" + "@ledgerhq/devices" "^8.4.2" + "@ledgerhq/errors" "^6.18.0" + "@ledgerhq/hw-transport" "^6.31.2" + "@ledgerhq/hw-transport-node-hid-noevents" "^6.30.3" "@ledgerhq/logs" "^6.12.0" - node-hid "^2.1.2" + node-hid "2.1.2" usb "2.9.0" -"@ledgerhq/hw-transport-webhid@^6.28.1": - version "6.28.6" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-webhid/-/hw-transport-webhid-6.28.6.tgz#94562750136d869774cb56304573a1875ca6375f" - integrity sha512-npU1mgL97KovpTUgcdORoOZ7eVFgwCA7zt0MpgUGUMRNJWDgCFsJslx7KrVXlCGOg87gLfDojreIre502I5pYg== +"@ledgerhq/hw-transport-webhid@^6.29.0": + version "6.29.2" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-webhid/-/hw-transport-webhid-6.29.2.tgz#8ffd83a9b01377f941668aa97456799493754790" + integrity sha512-kmVsctlR3rpHmxpT2SB1mEayrBMXCc3Fb+VT9xZnpcZhMSXVDA+AdpuXamJkGl2ow72JDN+QcSPfoVT1entXwA== dependencies: - "@ledgerhq/devices" "^8.3.0" - "@ledgerhq/errors" "^6.16.4" - "@ledgerhq/hw-transport" "^6.30.6" + "@ledgerhq/devices" "^8.4.2" + "@ledgerhq/errors" "^6.18.0" + "@ledgerhq/hw-transport" "^6.31.2" "@ledgerhq/logs" "^6.12.0" -"@ledgerhq/hw-transport-webusb@^6.28.1": - version "6.28.6" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-webusb/-/hw-transport-webusb-6.28.6.tgz#c17c193578da112ef76769e4ce72129d40d87faa" - integrity sha512-rzICsvhcFcL4wSAvRPe+b9EEWB8cxj6yWy3FZdfs7ufi/0muNpFXWckWv1TC34em55sGXu2cMcwMKXg/O/Lc0Q== +"@ledgerhq/hw-transport-webusb@^6.29.0": + version "6.29.2" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-webusb/-/hw-transport-webusb-6.29.2.tgz#ab1e9339e531e1f198e6cac6faf656f9f3d36bea" + integrity sha512-BBFvntj4L0toMhabluuQ3eEnbUTDbdQ11tliaTqwlrPxhwUmzx+o3M5q8edKkyUdoAeuvXz9a1CVeHGP0fvhBA== dependencies: - "@ledgerhq/devices" "^8.3.0" - "@ledgerhq/errors" "^6.16.4" - "@ledgerhq/hw-transport" "^6.30.6" + "@ledgerhq/devices" "^8.4.2" + "@ledgerhq/errors" "^6.18.0" + "@ledgerhq/hw-transport" "^6.31.2" "@ledgerhq/logs" "^6.12.0" -"@ledgerhq/hw-transport@^6.27.1": - version "6.28.2" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.28.2.tgz#483f9a39403ee63b03d452e30bfe8189dcca5785" - integrity sha512-2LxQdZnhSzu394brKuUZIWfuT2YAyNI3glRMf8+yHx3wUFqi10v8NzII99SHDyT8tN3Ovzmq+hbGHvrR2PqYRA== - dependencies: - "@ledgerhq/devices" "^8.0.1" - "@ledgerhq/errors" "^6.12.4" - events "^3.3.0" - -"@ledgerhq/hw-transport@^6.30.1", "@ledgerhq/hw-transport@^6.30.6": +"@ledgerhq/hw-transport@6.30.6": version "6.30.6" resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.30.6.tgz#c6d84672ac4828f311831998f4101ea205215a6d" integrity sha512-fT0Z4IywiuJuZrZE/+W0blkV5UCotDPFTYKLkKCLzYzuE6javva7D/ajRaIeR+hZ4kTmKF4EqnsmDCXwElez+w== @@ -2798,10 +2789,25 @@ "@ledgerhq/logs" "^6.12.0" events "^3.3.0" -"@ledgerhq/logs@^6.10.1": - version "6.10.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-6.10.1.tgz#5bd16082261d7364eabb511c788f00937dac588d" - integrity sha512-z+ILK8Q3y+nfUl43ctCPuR4Y2bIxk/ooCQFwZxhtci1EhAtMDzMAx2W25qx8G1PPL9UUOdnUax19+F0OjXoj4w== +"@ledgerhq/hw-transport@6.31.0": + version "6.31.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.31.0.tgz#82d8154bbcec8dc0104009a646159190fba5ae76" + integrity sha512-BY1poLk8vlJdIYngp8Zfaa/V9n14dqgt1G7iNetVRhJVFEKp9EYONeC3x6q/N7x81LUpzBk6M+T+s46Z4UiXHw== + dependencies: + "@ledgerhq/devices" "^8.4.0" + "@ledgerhq/errors" "^6.17.0" + "@ledgerhq/logs" "^6.12.0" + events "^3.3.0" + +"@ledgerhq/hw-transport@^6.31.0", "@ledgerhq/hw-transport@^6.31.2": + version "6.31.2" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.31.2.tgz#79c95f7928a64a0e3b5bc4ea7b5be04b9f738322" + integrity sha512-B27UIzMzm2IXPGYnEB95R7eHxpXBkTBHh6MUJJQZVknt8LilEz1tfpTYUdzAKDGQ+Z5MZyYb01Eh3Zqm3kn3uw== + dependencies: + "@ledgerhq/devices" "^8.4.2" + "@ledgerhq/errors" "^6.18.0" + "@ledgerhq/logs" "^6.12.0" + events "^3.3.0" "@ledgerhq/logs@^6.12.0": version "6.12.0" @@ -2964,11 +2970,6 @@ resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== -"@noble/hashes@^1.2.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.0.tgz#085fd70f6d7d9d109671090ccae1d3bec62554a1" - integrity sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg== - "@noble/secp256k1@1.5.5": version "1.5.5" resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.5.5.tgz#315ab5745509d1a8c8e90d0bdf59823ccf9bcfc3" @@ -3561,6 +3562,19 @@ "@polkadot/util" "^12.6.2" tslib "^2.6.2" +"@polkadot/api-augment@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-12.3.1.tgz#07c1b510310868e01f89e4d2f2313595d068b228" + integrity sha512-KfofZVEUeTgLzcexdxKBT2vihazDheUoTLxbsa2ztmmw4UB/IjOL911y04pjg2obZQAI9B+oCyxJXyCfzauWEg== + dependencies: + "@polkadot/api-base" "12.3.1" + "@polkadot/rpc-augment" "12.3.1" + "@polkadot/types" "12.3.1" + "@polkadot/types-augment" "12.3.1" + "@polkadot/types-codec" "12.3.1" + "@polkadot/util" "^13.0.2" + tslib "^2.6.2" + "@polkadot/api-augment@7.15.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-7.15.1.tgz#120b766feeaa96996f1c6717a5261c2e0845c1e0" @@ -3631,6 +3645,17 @@ rxjs "^7.8.1" tslib "^2.6.2" +"@polkadot/api-base@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-12.3.1.tgz#084801da4e54820ec0e91c51a237bcd861665c1d" + integrity sha512-vNbxXNjn4APfXg+ui99gurX2Jzns+eezmWranxoGXT7q0mme1zAtWus5t4e+qe1qRjDNZZYPruF7YJA8dL5k8A== + dependencies: + "@polkadot/rpc-core" "12.3.1" + "@polkadot/types" "12.3.1" + "@polkadot/util" "^13.0.2" + rxjs "^7.8.1" + tslib "^2.6.2" + "@polkadot/api-base@7.15.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-7.15.1.tgz#7567595be68431cc4085c48b18ba66933ff7b4d9" @@ -3653,18 +3678,18 @@ "@polkadot/util" "^10.4.2" rxjs "^7.8.0" -"@polkadot/api-contract@^11.3.1": - version "11.3.1" - resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-11.3.1.tgz#0f98e9a0605f7d859ce436b82a0415d06bd236d5" - integrity sha512-8ZAtt+aQutOFO4tmhqcEsEJdZbwQspqJ6I+cJ6N+TDg3k9WdkG0w9TSV27M6Gi7XwdhN4Vlj3gE6AQLQkJZk9w== - dependencies: - "@polkadot/api" "11.3.1" - "@polkadot/api-augment" "11.3.1" - "@polkadot/types" "11.3.1" - "@polkadot/types-codec" "11.3.1" - "@polkadot/types-create" "11.3.1" - "@polkadot/util" "^12.6.2" - "@polkadot/util-crypto" "^12.6.2" +"@polkadot/api-contract@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-12.3.1.tgz#4cf287ed9de9e3d67b82d793d64c1138316ad6e4" + integrity sha512-/HHkMWdrhBwD3nMZHVMA2BVt+RfsJlOnd0tUnsQq6milGgm+AaptsZ6gaa+M5vidM/gV1k+pwGzROXNkcEjdAQ== + dependencies: + "@polkadot/api" "12.3.1" + "@polkadot/api-augment" "12.3.1" + "@polkadot/types" "12.3.1" + "@polkadot/types-codec" "12.3.1" + "@polkadot/types-create" "12.3.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" rxjs "^7.8.1" tslib "^2.6.2" @@ -3732,6 +3757,22 @@ rxjs "^7.8.1" tslib "^2.6.2" +"@polkadot/api-derive@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-12.3.1.tgz#2da05346fed18ff29ed2a581a3270591de11662c" + integrity sha512-2MbK1h4GcKEdSgDKKYI28iZESw0VOm0kekV6YGQflZNWe84jJOn2rohP8pACseUjQjwWDgbPPBvTlRZTk7zdAw== + dependencies: + "@polkadot/api" "12.3.1" + "@polkadot/api-augment" "12.3.1" + "@polkadot/api-base" "12.3.1" + "@polkadot/rpc-core" "12.3.1" + "@polkadot/types" "12.3.1" + "@polkadot/types-codec" "12.3.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" + rxjs "^7.8.1" + tslib "^2.6.2" + "@polkadot/api-derive@7.15.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-7.15.1.tgz#450542bb7d848013225d6c8480648340e5ee6a61" @@ -3810,7 +3851,7 @@ rxjs "^7.8.1" tslib "^2.5.3" -"@polkadot/api@11.3.1", "@polkadot/api@^11.1.1", "@polkadot/api@^11.2.1", "@polkadot/api@^11.3.1": +"@polkadot/api@11.3.1", "@polkadot/api@^11.2.1", "@polkadot/api@^11.3.1": version "11.3.1" resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-11.3.1.tgz#6092aea8147ea03873b3f383cceae0390a67f71d" integrity sha512-q4kFIIHTLvKxM24b0Eo8hJevsPMme+aITJGrDML9BgdZYTRN14+cu5nXiCsQvaEamdyYj+uCXWe2OV9X7pPxsA== @@ -3856,6 +3897,29 @@ rxjs "^7.8.1" tslib "^2.6.2" +"@polkadot/api@12.3.1", "@polkadot/api@^12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-12.3.1.tgz#bce62c902293295460832d15ee8fa2119a36ae42" + integrity sha512-VCrtadJRJttya5NhZ8slkD/UQyOZv4qABjagQMaG1eTZpn5k1wskmDUGdHrZZpYO5jBPewnCgaN8+LPKO2qiOw== + dependencies: + "@polkadot/api-augment" "12.3.1" + "@polkadot/api-base" "12.3.1" + "@polkadot/api-derive" "12.3.1" + "@polkadot/keyring" "^13.0.2" + "@polkadot/rpc-augment" "12.3.1" + "@polkadot/rpc-core" "12.3.1" + "@polkadot/rpc-provider" "12.3.1" + "@polkadot/types" "12.3.1" + "@polkadot/types-augment" "12.3.1" + "@polkadot/types-codec" "12.3.1" + "@polkadot/types-create" "12.3.1" + "@polkadot/types-known" "12.3.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" + eventemitter3 "^5.0.1" + rxjs "^7.8.1" + tslib "^2.6.2" + "@polkadot/api@7.15.1", "@polkadot/api@^7.2.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-7.15.1.tgz#24eaeaa8ffbc6f30ff3d9846a816a18a688ceb8b" @@ -3954,14 +4018,14 @@ rxjs "^7.8.1" tslib "^2.6.2" -"@polkadot/extension-dapp@0.47.5": - version "0.47.5" - resolved "https://registry.yarnpkg.com/@polkadot/extension-dapp/-/extension-dapp-0.47.5.tgz#080efeb15adbf84f6928af3e359b80c836e1416f" - integrity sha512-1emxTL52yWpDCaK4mic/lfb7cVV+rhZEj0iBTMvdj57mW+6m3psFXj6lspbmAFWLEy6US6uHFe/YdKELOP/etg== +"@polkadot/extension-dapp@0.51.1": + version "0.51.1" + resolved "https://registry.yarnpkg.com/@polkadot/extension-dapp/-/extension-dapp-0.51.1.tgz#be049bc9f87df0e3f3d8d9b7162b12793b86f508" + integrity sha512-A9I7dtHeTtgjjsuVfeBxW+iDIenQ2URY3TG0ZgJgylyxAmZAnXlXAlP3GAjAquHWuAR3+U42SQ0BanemFBpArw== dependencies: - "@polkadot/extension-inject" "0.47.5" - "@polkadot/util" "^12.6.2" - "@polkadot/util-crypto" "^12.6.2" + "@polkadot/extension-inject" "0.51.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" tslib "^2.6.2" "@polkadot/extension-dapp@^0.47.5": @@ -3974,19 +4038,6 @@ "@polkadot/util-crypto" "^12.6.2" tslib "^2.6.2" -"@polkadot/extension-inject@0.47.5": - version "0.47.5" - resolved "https://registry.yarnpkg.com/@polkadot/extension-inject/-/extension-inject-0.47.5.tgz#fd7e870cbc7ba50b5c82a8ddf9daad12222bf600" - integrity sha512-k3sSV1FUerhtbEJnKSofKofP5VSenKV9mlzG102dDmLv6kFfr6ZP7HmReeKfRi8pRXd9jrI6oUNtq86APUeF9Q== - dependencies: - "@polkadot/api" "^11.1.1" - "@polkadot/rpc-provider" "^11.1.1" - "@polkadot/types" "^11.1.1" - "@polkadot/util" "^12.6.2" - "@polkadot/util-crypto" "^12.6.2" - "@polkadot/x-global" "^12.6.2" - tslib "^2.6.2" - "@polkadot/extension-inject@0.47.6", "@polkadot/extension-inject@^0.47.5": version "0.47.6" resolved "https://registry.yarnpkg.com/@polkadot/extension-inject/-/extension-inject-0.47.6.tgz#a729d00215dd90d8ba77f6103018563ca187e060" @@ -4000,6 +4051,19 @@ "@polkadot/x-global" "^12.6.2" tslib "^2.6.2" +"@polkadot/extension-inject@0.51.1": + version "0.51.1" + resolved "https://registry.yarnpkg.com/@polkadot/extension-inject/-/extension-inject-0.51.1.tgz#aacab05d0fe177f0675dd3d0c3bef1549a01d7fc" + integrity sha512-9b6mNw+ELkKOBxDARs3mfbFOzgOiV1brCY6OizXpGb1UAN6I77QcueUBC4zqvGo0NP7/pAlp2Aqxo7u9XuRi7w== + dependencies: + "@polkadot/api" "^12.3.1" + "@polkadot/rpc-provider" "^12.3.1" + "@polkadot/types" "^12.3.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" + "@polkadot/x-global" "^13.0.2" + tslib "^2.6.2" + "@polkadot/extension-inject@^0.46.5": version "0.46.5" resolved "https://registry.yarnpkg.com/@polkadot/extension-inject/-/extension-inject-0.46.5.tgz#6abee0eb28a73fd1a9461f257cac5875c2e9fc63" @@ -4013,27 +4077,36 @@ "@polkadot/x-global" "^12.3.2" tslib "^2.5.3" -"@polkadot/hw-ledger-transports@12.6.2": - version "12.6.2" - resolved "https://registry.yarnpkg.com/@polkadot/hw-ledger-transports/-/hw-ledger-transports-12.6.2.tgz#7b9dfc2c6e903682748881e427bf5602e2abc2cb" - integrity sha512-gf7QU9C9XUKzBgI98CpCsFjbCPVAweKMJSUgm2Naa5Ir424bL1R6tvOJ2ROJZmqEYx4Ku5BHworpMTmghullfA== +"@polkadot/hw-ledger-transports@13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/hw-ledger-transports/-/hw-ledger-transports-13.0.2.tgz#1063d04eb3bfceab61df65740f7e2ab9016ccd0e" + integrity sha512-xDX5mmryfB4xKQEf8uXe5up3yIyt7XjwMd4bB4f7/hFbE6t2WxL+MCw4Lst/LRE3NnagRQ6nA+8qxb3lglfe2Q== dependencies: - "@ledgerhq/hw-transport" "^6.30.1" - "@ledgerhq/hw-transport-webhid" "^6.28.1" - "@ledgerhq/hw-transport-webusb" "^6.28.1" - "@polkadot/util" "12.6.2" + "@ledgerhq/hw-transport" "^6.31.0" + "@ledgerhq/hw-transport-webhid" "^6.29.0" + "@ledgerhq/hw-transport-webusb" "^6.29.0" + "@polkadot/util" "13.0.2" tslib "^2.6.2" optionalDependencies: - "@ledgerhq/hw-transport-node-hid-singleton" "^6.30.1" + "@ledgerhq/hw-transport-node-hid-singleton" "^6.31.1" -"@polkadot/hw-ledger@^12.6.2": - version "12.6.2" - resolved "https://registry.yarnpkg.com/@polkadot/hw-ledger/-/hw-ledger-12.6.2.tgz#61a916b0148cfecc56f34df59301bcf14e4d5eae" - integrity sha512-hD+74wluD75YNdzj4M6/lETRz8d5ic+TKfYg+1/dXBMIFiE+KS4CENma8tBoc+Q+VcYy9LfJ6ChYYIHCTxgbHA== +"@polkadot/hw-ledger@13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/hw-ledger/-/hw-ledger-13.0.2.tgz#d8ab9f65aaefacb6045c6d6e868b3d49e94bb7fe" + integrity sha512-irnh8C7qjReCk306pAwJF5qfWIC6BOwdp9U7dMu3nyQaTHEdCLyJzCWIeaDCd9Oa//80LhtSbY1ZvWSBR5GF4g== dependencies: - "@polkadot/hw-ledger-transports" "12.6.2" - "@polkadot/util" "12.6.2" - "@zondax/ledger-substrate" "^0.41.3" + "@polkadot/hw-ledger-transports" "13.0.2" + "@polkadot/util" "13.0.2" + "@zondax/ledger-substrate" "0.44.7" + tslib "^2.6.2" + +"@polkadot/keyring@13.0.2", "@polkadot/keyring@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-13.0.2.tgz#05a655eb06c965ae5ee5f181d25916797ea50849" + integrity sha512-NeLbhyKDT5W8LI9seWTZGePxNTOVpDhv2018HSrEDwJq9Ie0C4TZhUf3KNERCkSveuThXjfQJMs+1CF33ZXPWw== + dependencies: + "@polkadot/util" "13.0.2" + "@polkadot/util-crypto" "13.0.2" tslib "^2.6.2" "@polkadot/keyring@^10.4.2": @@ -4090,17 +4163,6 @@ "@polkadot/util" "8.7.1" "@polkadot/util-crypto" "8.7.1" -"@polkadot/metadata@4.17.1": - version "4.17.1" - resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-4.17.1.tgz#4da9ee5b2b816493910abfd302a50b58141ceca2" - integrity sha512-219isiCWVfbu5JxZnOPj+cV4T+S0XHS4+Jal3t3xz9y4nbgr+25Pa4KInEsJPx0u8EZAxMeiUCX3vd5U7oe72g== - dependencies: - "@babel/runtime" "^7.14.6" - "@polkadot/types" "4.17.1" - "@polkadot/types-known" "4.17.1" - "@polkadot/util" "^6.11.1" - "@polkadot/util-crypto" "^6.11.1" - "@polkadot/networks@10.4.2", "@polkadot/networks@^10.4.2": version "10.4.2" resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-10.4.2.tgz#d7878c6aad8173c800a21140bfe5459261724456" @@ -4128,7 +4190,16 @@ "@substrate/ss58-registry" "^1.44.0" tslib "^2.6.2" -"@polkadot/networks@6.11.1", "@polkadot/networks@^6.11.1": +"@polkadot/networks@13.0.2", "@polkadot/networks@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-13.0.2.tgz#0f8fc896b8fb2141212b6448739f4a00bc72b29c" + integrity sha512-ABAL+vug/gIwkdFEzeh87JoJd0YKrxSYg/HjUrZ+Zis2ucxQEKpvtCpJ34ku+YrjacBfVqIAkkwd3ZdIPGq9aQ== + dependencies: + "@polkadot/util" "13.0.2" + "@substrate/ss58-registry" "^1.46.0" + tslib "^2.6.2" + +"@polkadot/networks@6.11.1": version "6.11.1" resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-6.11.1.tgz#8fd189593f6ee4f8bf64378d0aaae09e39a37d35" integrity sha512-0C6Ha2kvr42se3Gevx6UhHzv3KnPHML0N73Amjwvdr4y0HLZ1Nfw+vcm5yqpz5gpiehqz97XqFrsPRauYdcksQ== @@ -4142,7 +4213,7 @@ dependencies: "@babel/runtime" "^7.16.3" -"@polkadot/networks@8.7.1", "@polkadot/networks@^8.1.2", "@polkadot/networks@^8.7.1": +"@polkadot/networks@8.7.1", "@polkadot/networks@^8.7.1": version "8.7.1" resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-8.7.1.tgz#26c2ec6158c985bb77c510d98a3ab1c7e049f89c" integrity sha512-8xAmhDW0ry5EKcEjp6VTuwoTm0DdDo/zHsmx88P6sVL87gupuFsL+B6TrsYLl8GcaqxujwrOlKB+CKTUg7qFKg== @@ -4224,6 +4295,17 @@ "@polkadot/util" "^12.6.2" tslib "^2.6.2" +"@polkadot/rpc-augment@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-12.3.1.tgz#9a896c4578753055ab25326243e716344a895a8a" + integrity sha512-/tZLl5IuQ4vdGlUAbd8x3ShZ35XDSeyknKHCC+9kIrM/+KIyoCYBob2RXP9uqX8m516AWkXUrjsSO6DFPBpRGg== + dependencies: + "@polkadot/rpc-core" "12.3.1" + "@polkadot/types" "12.3.1" + "@polkadot/types-codec" "12.3.1" + "@polkadot/util" "^13.0.2" + tslib "^2.6.2" + "@polkadot/rpc-augment@7.15.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-7.15.1.tgz#391a42a9c3e553335a2a544598a717b47654ad6e" @@ -4294,6 +4376,18 @@ rxjs "^7.8.1" tslib "^2.6.2" +"@polkadot/rpc-core@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-12.3.1.tgz#6107c507c30839313e0325c82bffae9f1b08dbab" + integrity sha512-bNo26P20nRpLfANTK4sWEakxvqBJpKwAp/Gt7KlxoGgoTUbWFapyGKScFxp/pblycEziEbC+ZjkLMkaWaqi69g== + dependencies: + "@polkadot/rpc-augment" "12.3.1" + "@polkadot/rpc-provider" "12.3.1" + "@polkadot/types" "12.3.1" + "@polkadot/util" "^13.0.2" + rxjs "^7.8.1" + tslib "^2.6.2" + "@polkadot/rpc-core@7.15.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-7.15.1.tgz#47855cf05bd2f8dbf87d9f1f77343114e61c664a" @@ -4358,7 +4452,7 @@ optionalDependencies: "@substrate/connect" "0.7.26" -"@polkadot/rpc-provider@11.3.1", "@polkadot/rpc-provider@^11.1.1", "@polkadot/rpc-provider@^11.3.1": +"@polkadot/rpc-provider@11.3.1", "@polkadot/rpc-provider@^11.3.1": version "11.3.1" resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-11.3.1.tgz#1d1289bf42d065b5f04f9baa46ef90d96940819e" integrity sha512-pqERChoHo45hd3WAgW8UuzarRF+G/o/eXEbl0PXLubiayw4X4qCmIzmtntUcKYgxGNcYGZaG87ZU8OjN97m6UA== @@ -4398,6 +4492,26 @@ optionalDependencies: "@substrate/connect" "0.8.10" +"@polkadot/rpc-provider@12.3.1", "@polkadot/rpc-provider@^12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-12.3.1.tgz#90bfbb8518bd63d94141bf4d2643c89b89e61413" + integrity sha512-Tg1Oj/1ldivqwnnOWepcNHEHYgpOBffxlrZMEXH1XX6D3AZaUhAWbatizyisydpuMbknTQ9FGYSnb9rOc2QBJw== + dependencies: + "@polkadot/keyring" "^13.0.2" + "@polkadot/types" "12.3.1" + "@polkadot/types-support" "12.3.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" + "@polkadot/x-fetch" "^13.0.2" + "@polkadot/x-global" "^13.0.2" + "@polkadot/x-ws" "^13.0.2" + eventemitter3 "^5.0.1" + mock-socket "^9.3.1" + nock "^13.5.0" + tslib "^2.6.2" + optionalDependencies: + "@substrate/connect" "0.8.10" + "@polkadot/rpc-provider@7.15.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-7.15.1.tgz#a213de907a6f4f480c3c819aa95e4e60d4247f84" @@ -4484,6 +4598,16 @@ "@polkadot/util" "^12.6.2" tslib "^2.6.2" +"@polkadot/types-augment@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-12.3.1.tgz#c7853049829d39d35b94fb01a84c1ea0d61ca9e0" + integrity sha512-I3ggJt7W3UOScP6WA6PNmNsmpCfZtXkRJvSJkX7bi2LsSm/iF0xo0KdpQK02dHu7nGRFD9O5cSoVawzZJifGLA== + dependencies: + "@polkadot/types" "12.3.1" + "@polkadot/types-codec" "12.3.1" + "@polkadot/util" "^13.0.2" + tslib "^2.6.2" + "@polkadot/types-augment@7.15.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-7.15.1.tgz#437047f961b8d29e5ffd4fd59cd35f0e6374750b" @@ -4540,6 +4664,15 @@ "@polkadot/x-bigint" "^12.6.2" tslib "^2.6.2" +"@polkadot/types-codec@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-12.3.1.tgz#4eb113a5a2c9e7784f1393db4d6cfe39b24da014" + integrity sha512-yZ4exsQI+eVkE/fZNuJBOajAgOH/YncKWOOf0N4lc6iq28oYp22DCAXc50Ym372l4HO+uhC9QdMPH9EiWwT2pQ== + dependencies: + "@polkadot/util" "^13.0.2" + "@polkadot/x-bigint" "^13.0.2" + tslib "^2.6.2" + "@polkadot/types-codec@7.15.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-7.15.1.tgz#c0155867efd3ae35e15fea6a8aab49c2c63988fa" @@ -4593,6 +4726,15 @@ "@polkadot/util" "^12.6.2" tslib "^2.6.2" +"@polkadot/types-create@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-12.3.1.tgz#867ff2971f0d1c7b68788eb3b9f7c060fcbc648f" + integrity sha512-Jf9BByWB64FPW3lM5/Mcc/foyPJ3L9t0QwHVHaYWaonZt6l7SPX71rQmD7twJiTj9q1d1WidDKg/TtRDNbm1yA== + dependencies: + "@polkadot/types-codec" "12.3.1" + "@polkadot/util" "^13.0.2" + tslib "^2.6.2" + "@polkadot/types-create@7.15.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-7.15.1.tgz#ec4cafa314a82a25a109f0f52207e9169fc9b003" @@ -4635,7 +4777,7 @@ "@polkadot/util" "^12.3.1" tslib "^2.5.3" -"@polkadot/types-known@11.3.1", "@polkadot/types-known@^11.3.1": +"@polkadot/types-known@11.3.1": version "11.3.1" resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-11.3.1.tgz#fc34ed29ac2474db6b66805a15d12008226346bb" integrity sha512-3BIof7u6tn9bk3ZCIxA07iNoQ3uj4+vn3DTOjCKECozkRlt6V+kWRvqh16Hc0SHMg/QjcMb2fIu/WZhka1McUQ== @@ -4659,25 +4801,17 @@ "@polkadot/util" "^12.6.2" tslib "^2.6.2" -"@polkadot/types-known@4.17.1": - version "4.17.1" - resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-4.17.1.tgz#71c18dda4967a13ec34fbbf0c4ef264e882c2688" - integrity sha512-YkOwGrO+k9aVrBR8FgYHnfJKhOfpdgC5ZRYNL/xJ9oa7lBYqPts9ENAxeBmJS/5IGeDF9f32MNyrCP2umeCXWg== - dependencies: - "@babel/runtime" "^7.14.6" - "@polkadot/networks" "^6.11.1" - "@polkadot/types" "4.17.1" - "@polkadot/util" "^6.11.1" - -"@polkadot/types-known@6.12.1": - version "6.12.1" - resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-6.12.1.tgz#2dd3ca4e4aa20b86ef182eb75672690f8c14a84e" - integrity sha512-Z8bHpPQy+mqUm0uR1tai6ra0bQIoPmgRcGFYUM+rJtW1kx/6kZLh10HAICjLpPeA1cwLRzaxHRDqH5MCU6OgXw== +"@polkadot/types-known@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-12.3.1.tgz#11aade98492e37c2e6d095c78fcd229a212ee933" + integrity sha512-G8t0uiIW1iu3KwylHDPnqdHxg5qwBxzPZQJvsjnGx2qBUk2VqXditKWcNFLEwCTnJPL95t2AzEO711lS99WRbg== dependencies: - "@babel/runtime" "^7.16.3" - "@polkadot/networks" "^8.1.2" - "@polkadot/types" "6.12.1" - "@polkadot/util" "^8.1.2" + "@polkadot/networks" "^13.0.2" + "@polkadot/types" "12.3.1" + "@polkadot/types-codec" "12.3.1" + "@polkadot/types-create" "12.3.1" + "@polkadot/util" "^13.0.2" + tslib "^2.6.2" "@polkadot/types-known@7.15.1": version "7.15.1" @@ -4719,7 +4853,7 @@ "@polkadot/util" "^12.3.1" tslib "^2.5.3" -"@polkadot/types-support@11.3.1", "@polkadot/types-support@^11.3.1": +"@polkadot/types-support@11.3.1": version "11.3.1" resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-11.3.1.tgz#dee02a67784baa13177fe9957f5d8d62e8a7e570" integrity sha512-jTFz1GKyF7nI29yIOq4v0NiWTOf5yX4HahJNeFD8TcxoLhF+6tH/XXqrUXJEfbaTlSrRWiW1LZYlb+snctqKHA== @@ -4735,6 +4869,14 @@ "@polkadot/util" "^12.6.2" tslib "^2.6.2" +"@polkadot/types-support@12.3.1": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-12.3.1.tgz#7111f3a7a55a5f4f50b11450c62b7fe5340e4a21" + integrity sha512-TwL5M5HkZ4jQGKekD+qJFLba7UXWASfwlPy2OpKj0LOnnmq4tudXgN13UFdQ7HoOmisPhr+vYo9vteYeBZ0jTA== + dependencies: + "@polkadot/util" "^13.0.2" + tslib "^2.6.2" + "@polkadot/types-support@7.15.1": version "7.15.1" resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-7.15.1.tgz#9c274759647dd89d46ea9cf74d593bcedcd85527" @@ -4751,121 +4893,29 @@ "@babel/runtime" "^7.20.13" "@polkadot/util" "^10.4.2" -"@polkadot/types@10.13.1": - version "10.13.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-10.13.1.tgz#979d652dc11af9cb8b32e7a55839e9762532755d" - integrity sha512-Hfvg1ZgJlYyzGSAVrDIpp3vullgxrjOlh/CSThd/PI4TTN1qHoPSFm2hs77k3mKkOzg+LrWsLE0P/LP2XddYcw== - dependencies: - "@polkadot/keyring" "^12.6.2" - "@polkadot/types-augment" "10.13.1" - "@polkadot/types-codec" "10.13.1" - "@polkadot/types-create" "10.13.1" - "@polkadot/util" "^12.6.2" - "@polkadot/util-crypto" "^12.6.2" +"@polkadot/types@10.13.1", "@polkadot/types@10.9.1", "@polkadot/types@11.3.1", "@polkadot/types@12.1.1", "@polkadot/types@12.3.1", "@polkadot/types@7.15.1", "@polkadot/types@9.14.2", "@polkadot/types@^10.9.1", "@polkadot/types@^11.3.1", "@polkadot/types@^12.3.1", "@polkadot/types@^4.13.1", "@polkadot/types@^6.0.5", "@polkadot/types@^7.2.1", "@polkadot/types@^9.13.2": + version "12.3.1" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-12.3.1.tgz#46a44aaa672d9c3c8598bbf8b8668e575c55f76a" + integrity sha512-4MkTF1znpgp9mZc/ZZPdFe7/5it9v+EJmzXc/DEOX9kVWs2BuKOWopzOFyO3reVUUB+v7dxfSOArSsxkMUcuoA== + dependencies: + "@polkadot/keyring" "^13.0.2" + "@polkadot/types-augment" "12.3.1" + "@polkadot/types-codec" "12.3.1" + "@polkadot/types-create" "12.3.1" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" rxjs "^7.8.1" tslib "^2.6.2" -"@polkadot/types@10.9.1", "@polkadot/types@^10.9.1": - version "10.9.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-10.9.1.tgz#f111d00f7278ad3be95deba3d701fafefe080cb2" - integrity sha512-AG33i2ZGGfq7u+5rkAdGrXAQHHl844/Yv+junH5ZzX69xiCoWO1bH/yzDUNBdpki2GlACWvF9nLYh3F2tVF93w== - dependencies: - "@polkadot/keyring" "^12.3.1" - "@polkadot/types-augment" "10.9.1" - "@polkadot/types-codec" "10.9.1" - "@polkadot/types-create" "10.9.1" - "@polkadot/util" "^12.3.1" - "@polkadot/util-crypto" "^12.3.1" - rxjs "^7.8.1" - tslib "^2.5.3" - -"@polkadot/types@11.3.1", "@polkadot/types@^11.1.1", "@polkadot/types@^11.3.1": - version "11.3.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-11.3.1.tgz#bab61b701218158099e3f548d20efc27cbf1287f" - integrity sha512-5c7uRFXQTT11Awi6T0yFIdAfD6xGDAOz06Kp7M5S9OGNZY28wSPk5x6BYfNphWPaIBmHHewYJB5qmnrdYQAWKQ== +"@polkadot/ui-keyring@3.8.3": + version "3.8.3" + resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-3.8.3.tgz#4532637090e4872f9c5f461c2c10563540cb1488" + integrity sha512-Dz0nMRjw6XfoY1jyZPK2MRvi6sBzKEz9lNVXBR16tcEeSsfszIGHrGjYdklmtrzvLjpxG7fnOAdlJ/yk+lYzcg== dependencies: - "@polkadot/keyring" "^12.6.2" - "@polkadot/types-augment" "11.3.1" - "@polkadot/types-codec" "11.3.1" - "@polkadot/types-create" "11.3.1" - "@polkadot/util" "^12.6.2" - "@polkadot/util-crypto" "^12.6.2" - rxjs "^7.8.1" - tslib "^2.6.2" - -"@polkadot/types@12.1.1": - version "12.1.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-12.1.1.tgz#5eb94544deeda2952d77274ea33f7f986e38395b" - integrity sha512-+b8v7ORjL20r6VvdWL/fPTHmDXtfAfqkQQxBB6exxOhqrnJfnhAYQjJomKcyj1VMTQiyyR9FBAc7vVvTEFX2ew== - dependencies: - "@polkadot/keyring" "^12.6.2" - "@polkadot/types-augment" "12.1.1" - "@polkadot/types-codec" "12.1.1" - "@polkadot/types-create" "12.1.1" - "@polkadot/util" "^12.6.2" - "@polkadot/util-crypto" "^12.6.2" - rxjs "^7.8.1" - tslib "^2.6.2" - -"@polkadot/types@4.17.1", "@polkadot/types@^4.13.1": - version "4.17.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-4.17.1.tgz#41d43621d53820ee930ba4036bfa8b16cf98ca6f" - integrity sha512-rjW4OFdwvFekzN3ATLibC2JPSd8AWt5YepJhmuCPdwH26r3zB8bEC6dM7YQExLVUmygVPvgXk5ffHI6RAdXBMg== - dependencies: - "@babel/runtime" "^7.14.6" - "@polkadot/metadata" "4.17.1" - "@polkadot/util" "^6.11.1" - "@polkadot/util-crypto" "^6.11.1" - "@polkadot/x-rxjs" "^6.11.1" - -"@polkadot/types@6.12.1", "@polkadot/types@^6.0.5": - version "6.12.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-6.12.1.tgz#e5d6dff997740c3da947fa67abe2e1ec144c4757" - integrity sha512-O37cAGUL0xiXTuO3ySweVh0OuFUD6asrd0TfuzGsEp3jAISWdElEHV5QDiftWq8J9Vf8BMgTcP2QLFbmSusxqA== - dependencies: - "@babel/runtime" "^7.16.3" - "@polkadot/types-known" "6.12.1" - "@polkadot/util" "^8.1.2" - "@polkadot/util-crypto" "^8.1.2" - rxjs "^7.4.0" - -"@polkadot/types@7.15.1", "@polkadot/types@^7.2.1": - version "7.15.1" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-7.15.1.tgz#fb78886f4437fbc472e01019846fb1f229d2a177" - integrity sha512-KawZVS+eLR1D6O7c/P5cSUwr6biM9Qd2KwKtJIO8l1Mrxp7r+y2tQnXSSXVAd6XPdb3wVMhnIID+NW3W99TAnQ== - dependencies: - "@babel/runtime" "^7.17.8" - "@polkadot/keyring" "^8.7.1" - "@polkadot/types-augment" "7.15.1" - "@polkadot/types-codec" "7.15.1" - "@polkadot/types-create" "7.15.1" - "@polkadot/util" "^8.7.1" - "@polkadot/util-crypto" "^8.7.1" - rxjs "^7.5.5" - -"@polkadot/types@9.14.2", "@polkadot/types@^9.13.2": - version "9.14.2" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-9.14.2.tgz#5105f41eb9e8ea29938188d21497cbf1753268b8" - integrity sha512-hGLddTiJbvowhhUZJ3k+olmmBc1KAjWIQxujIUIYASih8FQ3/YJDKxaofGOzh0VygOKW3jxQBN2VZPofyDP9KQ== - dependencies: - "@babel/runtime" "^7.20.13" - "@polkadot/keyring" "^10.4.2" - "@polkadot/types-augment" "9.14.2" - "@polkadot/types-codec" "9.14.2" - "@polkadot/types-create" "9.14.2" - "@polkadot/util" "^10.4.2" - "@polkadot/util-crypto" "^10.4.2" - rxjs "^7.8.0" - -"@polkadot/ui-keyring@^3.6.6": - version "3.6.6" - resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-3.6.6.tgz#73cd99dcb45189ca4c959ac71c0f7d0b3c93a1aa" - integrity sha512-G9QfT9VJCOjVlF0L5RLxlajYZVMcWEapLGN+0CZofcXSx65AQwgfMl/yR8xVsg9j5bL8akr4J8cSqNgdOuX2yw== - dependencies: - "@polkadot/keyring" "^12.6.2" - "@polkadot/ui-settings" "3.6.6" - "@polkadot/util" "^12.6.2" - "@polkadot/util-crypto" "^12.6.2" + "@polkadot/keyring" "^13.0.2" + "@polkadot/ui-settings" "3.8.3" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" mkdirp "^3.0.1" rxjs "^7.8.1" store "^2.0.12" @@ -4882,6 +4932,17 @@ store "^2.0.12" tslib "^2.6.2" +"@polkadot/ui-settings@3.8.3": + version "3.8.3" + resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-3.8.3.tgz#5e2d97f5a4125f2f70ad8c1100fd6e94264b8059" + integrity sha512-GfPTngbgRqJ8CzEvCMkjgYctb+kuaYth4WRUEi/PMc+ph/GTDmuuE4P+c/nlibQAonstiEMu/F5h/w7sSFh7ag== + dependencies: + "@polkadot/networks" "^13.0.2" + "@polkadot/util" "^13.0.2" + eventemitter3 "^5.0.1" + store "^2.0.12" + tslib "^2.6.2" + "@polkadot/ui-shared@3.6.6": version "3.6.6" resolved "https://registry.yarnpkg.com/@polkadot/ui-shared/-/ui-shared-3.6.6.tgz#b52b9ec2775a5b919640eb4871b9d6553e13cf5e" @@ -4890,6 +4951,14 @@ colord "^2.9.3" tslib "^2.6.2" +"@polkadot/ui-shared@3.8.3": + version "3.8.3" + resolved "https://registry.yarnpkg.com/@polkadot/ui-shared/-/ui-shared-3.8.3.tgz#b3d1db05e6faeb537fd2d935e3b5ac0604b945c0" + integrity sha512-Ye3zfGrBV2M99O83BcgCpnsiWc9IZm2tjCxJWClySWUIS89zYSbgFraNUWeAlTojJIA7gplpNZeggOHoQa2EFg== + dependencies: + colord "^2.9.3" + tslib "^2.6.2" + "@polkadot/util-crypto@10.4.2", "@polkadot/util-crypto@^10.4.2": version "10.4.2" resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-10.4.2.tgz#871fb69c65768bd48c57bb5c1f76a85d979fb8b5" @@ -4939,7 +5008,23 @@ "@scure/base" "^1.1.5" tslib "^2.6.2" -"@polkadot/util-crypto@6.11.1", "@polkadot/util-crypto@^6.11.1": +"@polkadot/util-crypto@13.0.2", "@polkadot/util-crypto@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-13.0.2.tgz#fee602bcb39e9424300410f4144f170ee2a29292" + integrity sha512-woUsJJ6zd/caL7U+D30a5oM/+WK9iNI00Y8aNUHSj6Zq/KPzK9uqDBaLGWwlgrejoMQkxxiU2X0f2LzP15AtQg== + dependencies: + "@noble/curves" "^1.3.0" + "@noble/hashes" "^1.3.3" + "@polkadot/networks" "13.0.2" + "@polkadot/util" "13.0.2" + "@polkadot/wasm-crypto" "^7.3.2" + "@polkadot/wasm-util" "^7.3.2" + "@polkadot/x-bigint" "13.0.2" + "@polkadot/x-randomvalues" "13.0.2" + "@scure/base" "^1.1.5" + tslib "^2.6.2" + +"@polkadot/util-crypto@6.11.1": version "6.11.1" resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-6.11.1.tgz#7a36acf5c8bf52541609ec0b0b2a69af295d652e" integrity sha512-fWA1Nz17FxWJslweZS4l0Uo30WXb5mYV1KEACVzM+BSZAvG5eoiOAYX6VYZjyw6/7u53XKrWQlD83iPsg3KvZw== @@ -4983,7 +5068,7 @@ tweetnacl "^1.0.3" xxhashjs "^0.2.2" -"@polkadot/util-crypto@8.7.1", "@polkadot/util-crypto@^8.1.2", "@polkadot/util-crypto@^8.7.1": +"@polkadot/util-crypto@8.7.1", "@polkadot/util-crypto@^8.7.1": version "8.7.1" resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-8.7.1.tgz#f9fcca2895b5f160ce1c2faa0aa3054cc7aa4655" integrity sha512-TaSuJ2aNrB5sYK7YXszkEv24nYJKRFqjF2OrggoMg6uYxUAECvTkldFnhtgeizMweRMxJIBu6bMHlSIutbWgjw== @@ -5039,7 +5124,20 @@ bn.js "^5.2.1" tslib "^2.6.2" -"@polkadot/util@6.11.1", "@polkadot/util@^6.11.1": +"@polkadot/util@13.0.2", "@polkadot/util@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-13.0.2.tgz#f0a2572d74730fda8dfd690b60d53c131a688f3b" + integrity sha512-/6bS9sfhJLhs8QuqWaR1eRapzfDdGC5XAQZEPL9NN5sTTA7HxWos8rVleai0UERm8QUMabjZ9rK9KpzbXl7ojg== + dependencies: + "@polkadot/x-bigint" "13.0.2" + "@polkadot/x-global" "13.0.2" + "@polkadot/x-textdecoder" "13.0.2" + "@polkadot/x-textencoder" "13.0.2" + "@types/bn.js" "^5.1.5" + bn.js "^5.2.1" + tslib "^2.6.2" + +"@polkadot/util@6.11.1": version "6.11.1" resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-6.11.1.tgz#8950b038ba3e6ebfc0a7ff47feeb972e81b2626c" integrity sha512-TEdCetr9rsdUfJZqQgX/vxLuV4XU8KMoKBMJdx+JuQ5EWemIdQkEtMBdL8k8udNGbgSNiYFA6rPppATeIxAScg== @@ -5065,7 +5163,7 @@ camelcase "^6.2.1" ip-regex "^4.3.0" -"@polkadot/util@8.7.1", "@polkadot/util@^8.1.2", "@polkadot/util@^8.7.1": +"@polkadot/util@8.7.1", "@polkadot/util@^8.7.1": version "8.7.1" resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-8.7.1.tgz#27fe93bf7b8345276f10cfe9c0380510cd4584f6" integrity sha512-XjY1bTo7V6OvOCe4yn8H2vifeuBciCy0gq0k5P1tlGUQLI/Yt0hvDmxcA0FEPtqg8CL+rYRG7WXGPVNjkrNvyQ== @@ -5079,14 +5177,14 @@ bn.js "^5.2.0" ip-regex "^4.3.0" -"@polkadot/vue-identicon@^3.6.6": - version "3.6.6" - resolved "https://registry.yarnpkg.com/@polkadot/vue-identicon/-/vue-identicon-3.6.6.tgz#ab05f2dd08d1e03763ea60db8f202baa24a1d6e3" - integrity sha512-GglQxM/1EsmNipx+we9VZf0CX1A7BhRjbH+ISBfAVb/wofWs087JkqHQ7sSQufKpciPNceExoRKNG/E8drTpWw== +"@polkadot/vue-identicon@3.8.3": + version "3.8.3" + resolved "https://registry.yarnpkg.com/@polkadot/vue-identicon/-/vue-identicon-3.8.3.tgz#7366d48878355b0a6ff95bbfbeddba69c1e2312b" + integrity sha512-BjDuLQNpJfloQvSvOWrcbC/+SUuvqzvMr+r/SzceQTxsdQ1bcaVbWl0KkaA1rI6ul0FJTLXDYHE+QyplosD6IA== dependencies: - "@polkadot/ui-shared" "3.6.6" - "@polkadot/util" "^12.6.2" - "@polkadot/util-crypto" "^12.6.2" + "@polkadot/ui-shared" "3.8.3" + "@polkadot/util" "^13.0.2" + "@polkadot/util-crypto" "^13.0.2" jdenticon "3.2.0" tslib "^2.6.2" @@ -5317,6 +5415,14 @@ "@polkadot/x-global" "12.6.2" tslib "^2.6.2" +"@polkadot/x-bigint@13.0.2", "@polkadot/x-bigint@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-13.0.2.tgz#25adca9ce0c5ed691f9bced283f44f7e7d824300" + integrity sha512-h2jKT/UaxiEal8LhQeH6+GCjO7GwEqVAD2SNYteCOXff6yNttqAZYJuHZsndbVjVNwqRNf8D5q/zZkD0HUd6xQ== + dependencies: + "@polkadot/x-global" "13.0.2" + tslib "^2.6.2" + "@polkadot/x-bigint@8.7.1": version "8.7.1" resolved "https://registry.yarnpkg.com/@polkadot/x-bigint/-/x-bigint-8.7.1.tgz#a496225def32e98c430c76b91c1579f48acf501a" @@ -5353,6 +5459,15 @@ node-fetch "^3.3.2" tslib "^2.6.2" +"@polkadot/x-fetch@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-13.0.2.tgz#841d901fae36cbc4157297324ca0d73fbe4d200e" + integrity sha512-B/gf9iriUr6za/Ui7zIFBfHz7UBZ68rJEIteWHx1UHRCZPcLqv+hgpev6xIGrkfFljI0/lI7IwtN2qy6HYzFBg== + dependencies: + "@polkadot/x-global" "13.0.2" + node-fetch "^3.3.2" + tslib "^2.6.2" + "@polkadot/x-fetch@^8.7.1": version "8.7.1" resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-8.7.1.tgz#dc866e7aa87c39b2e64c87f734b8fbaf1b9190e1" @@ -5384,6 +5499,13 @@ dependencies: tslib "^2.6.2" +"@polkadot/x-global@13.0.2", "@polkadot/x-global@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-13.0.2.tgz#77afc4fbd4cfac8ba78cf120836f30ecc7322a74" + integrity sha512-OoNIXLB5y8vIKpk4R+XmpDPhipNXWSUvEwUnpQT7NAxNLmzgMq1FhbrwBWWPRNHPrQonp7mqxV/X+v5lv1HW/g== + dependencies: + tslib "^2.6.2" + "@polkadot/x-global@6.11.1": version "6.11.1" resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-6.11.1.tgz#c292b3825fea60e9b33fff1790323fc57de1ca5d" @@ -5421,7 +5543,7 @@ "@polkadot/x-global" "12.3.2" tslib "^2.5.3" -"@polkadot/x-randomvalues@12.6.2", "@polkadot/x-randomvalues@^12.6.2": +"@polkadot/x-randomvalues@12.6.2": version "12.6.2" resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-12.6.2.tgz#13fe3619368b8bf5cb73781554859b5ff9d900a2" integrity sha512-Vr8uG7rH2IcNJwtyf5ebdODMcr0XjoCpUbI91Zv6AlKVYOGKZlKLYJHIwpTaKKB+7KPWyQrk4Mlym/rS7v9feg== @@ -5429,6 +5551,14 @@ "@polkadot/x-global" "12.6.2" tslib "^2.6.2" +"@polkadot/x-randomvalues@13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-13.0.2.tgz#78ae28b345895cc816ffcad0b336c31cadfcf928" + integrity sha512-SGj+L0H/7TWZtSmtkWlixO4DFzXDdluI0UscN2h285os2Ns8PnmBbue+iJ8PVSzpY1BOxd66gvkkpboPz+jXFQ== + dependencies: + "@polkadot/x-global" "13.0.2" + tslib "^2.6.2" + "@polkadot/x-randomvalues@6.11.1": version "6.11.1" resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-6.11.1.tgz#f006fa250c8e82c92ccb769976a45a8e7f3df28b" @@ -5453,14 +5583,6 @@ "@babel/runtime" "^7.17.8" "@polkadot/x-global" "8.7.1" -"@polkadot/x-rxjs@^6.11.1": - version "6.11.1" - resolved "https://registry.yarnpkg.com/@polkadot/x-rxjs/-/x-rxjs-6.11.1.tgz#5454708b61da70eea05708611d9148fce9372498" - integrity sha512-zIciEmij7SUuXXg9g/683Irx6GogxivrQS2pgBir2DI/YZq+um52+Dqg1mqsEZt74N4KMTMnzAZAP6LJOBOMww== - dependencies: - "@babel/runtime" "^7.14.6" - rxjs "^6.6.7" - "@polkadot/x-textdecoder@10.4.2": version "10.4.2" resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-10.4.2.tgz#93202f3e5ad0e7f75a3fa02d2b8a3343091b341b" @@ -5485,6 +5607,14 @@ "@polkadot/x-global" "12.6.2" tslib "^2.6.2" +"@polkadot/x-textdecoder@13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-13.0.2.tgz#662a6855af8e7a5af17f86890e59ab44f829243a" + integrity sha512-mauglOkTJxLGmLwLc3J5Jlq/W+SHP53eiy3F8/8JxxfnXrZKgWoQXGpvXYPjFnMZj0MzDSy/6GjyGWnDCgdQFA== + dependencies: + "@polkadot/x-global" "13.0.2" + tslib "^2.6.2" + "@polkadot/x-textdecoder@6.11.1": version "6.11.1" resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-6.11.1.tgz#6cc314645681cc4639085c03b65328671c7f182c" @@ -5533,6 +5663,14 @@ "@polkadot/x-global" "12.6.2" tslib "^2.6.2" +"@polkadot/x-textencoder@13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-13.0.2.tgz#5e178e0f759df50592e6870346c8db2a445af957" + integrity sha512-Lq08H2OnVXj97uaOwg7tcmRS7a4VJYkHEeWO4FyEMOk6P6lU6W8OVNjjxG0se9PCEgmyZPUDbJI//1ynzP4cXw== + dependencies: + "@polkadot/x-global" "13.0.2" + tslib "^2.6.2" + "@polkadot/x-textencoder@6.11.1": version "6.11.1" resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-6.11.1.tgz#73e89da5b91954ae380042c19314c90472f59d9e" @@ -5585,6 +5723,15 @@ tslib "^2.6.2" ws "^8.15.1" +"@polkadot/x-ws@^13.0.2": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-13.0.2.tgz#d0392a87adcba851a44fc6f7f56792e529228f3e" + integrity sha512-nC5e2eY5D5ZR5teQOB7ib+dWLbmNws86cTz3BjKCalSMBBIn6i3V9ElgABpierBmnSJe9D94EyrH1BxdVfDxUg== + dependencies: + "@polkadot/x-global" "13.0.2" + tslib "^2.6.2" + ws "^8.16.0" + "@polkadot/x-ws@^8.7.1": version "8.7.1" resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-8.7.1.tgz#501c63c575e04bba68bdc32448e2c9b692f0411e" @@ -6191,7 +6338,7 @@ pako "^2.0.4" ws "^8.8.1" -"@substrate/ss58-registry@^1.17.0", "@substrate/ss58-registry@^1.38.0": +"@substrate/ss58-registry@^1.17.0", "@substrate/ss58-registry@^1.38.0", "@substrate/ss58-registry@^1.46.0": version "1.49.0" resolved "https://registry.yarnpkg.com/@substrate/ss58-registry/-/ss58-registry-1.49.0.tgz#ed9507316d13f49b2bccb65f08ec97180f71fc39" integrity sha512-leW6Ix4LD7XgvxT7+aobPWSw+WvPcN2Rxof1rmd0mNC5t2n99k1N7UNEvz7YEFSOUeHWmKIY7F5q8KeIqYoHfA== @@ -7715,18 +7862,21 @@ resolved "https://registry.yarnpkg.com/@zeroio/type-definitions/-/type-definitions-0.0.14.tgz#9331e7bbbd96fa47cf62a4a0a3fa1caaaafcd7aa" integrity sha512-OkqtOLPkR7oqWLrsgRKhzyLZVFLnNLfEF3DMXH+Rpn1fMNMDq/fOY9pXt55B+flBc62saN73CfOTy3hMSVZFTA== -"@zondax/ledger-substrate@^0.41.3": - version "0.41.4" - resolved "https://registry.yarnpkg.com/@zondax/ledger-substrate/-/ledger-substrate-0.41.4.tgz#6f72ea1389645713cf31b5e61b05d5a072a6647b" - integrity sha512-6frcpz15l2y6uOPDhwQNglHgyigaXrHJdLzySXUdDmfGymlqQ7+kKEoha6xGqPYN++aWHmmEUr8D7hxbEOffAQ== - dependencies: - "@ledgerhq/hw-transport" "^6.27.1" - bip32 "^4.0.0" - bip32-ed25519 "https://github.com/Zondax/bip32-ed25519" - bip39 "^3.0.4" - blakejs "^1.2.1" - bs58 "^5.0.0" - hash.js "^1.1.7" +"@zondax/ledger-js@^0.8.2": + version "0.8.2" + resolved "https://registry.yarnpkg.com/@zondax/ledger-js/-/ledger-js-0.8.2.tgz#d8b13b539ff7f830f7dd84b9e935e4d268a62de5" + integrity sha512-U/lzNzcJwfYGhhpwUviazihXzIv8w3rM31HbgKWOwF/xVS4/hHSLCGpONEGVwtgYUNDF7L0YfSy95/0H+tGtFA== + dependencies: + "@ledgerhq/hw-transport" "6.30.6" + +"@zondax/ledger-substrate@0.44.7": + version "0.44.7" + resolved "https://registry.yarnpkg.com/@zondax/ledger-substrate/-/ledger-substrate-0.44.7.tgz#6404f7e23b796caee0e668e563737c4843e7152f" + integrity sha512-yCcm7HfUt6DvWK88c2oWYwJ1MKVXkijfKtFT/aGtbhk0yinLR/QlmKdSzweMq63Dd6Y31vBjIb7C8nj0zi2QNA== + dependencies: + "@ledgerhq/hw-transport" "6.31.0" + "@zondax/ledger-js" "^0.8.2" + axios "^1.7.2" JSONStream@^1.0.4: version "1.3.5" @@ -8276,6 +8426,15 @@ axios@^1.4.0: form-data "^4.0.0" proxy-from-env "^1.1.0" +axios@^1.7.2: + version "1.7.3" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.3.tgz#a1125f2faf702bc8e8f2104ec3a76fab40257d85" + integrity sha512-Ar7ND9pU99eJ9GpoGQKhKf58GpUOgnzuaB7ueNQ5BMi0p+LZ5oaEnfF999fAArcTIBwXTCHAmGcHOZJaWPq9Nw== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + babel-core@^7.0.0-bridge.0: version "7.0.0-bridge.0" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" @@ -8403,11 +8562,6 @@ base-x@^3.0.2, base-x@^3.0.8: dependencies: safe-buffer "^5.0.1" -base-x@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/base-x/-/base-x-4.0.0.tgz#d0e3b7753450c73f8ad2389b5c018a4af7b2224a" - integrity sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw== - base64-js@^1.3.1, base64-js@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" @@ -8487,31 +8641,6 @@ bindings@^1.5.0: dependencies: file-uri-to-path "1.0.0" -"bip32-ed25519@https://github.com/Zondax/bip32-ed25519": - version "0.0.4" - resolved "https://github.com/Zondax/bip32-ed25519#0949df01b5c93885339bc28116690292088f6134" - dependencies: - bn.js "^5.1.1" - elliptic "^6.4.1" - hash.js "^1.1.7" - -bip32@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/bip32/-/bip32-4.0.0.tgz#7fac3c05072188d2d355a4d6596b37188f06aa2f" - integrity sha512-aOGy88DDlVUhspIXJN+dVEtclhIsfAUppD43V0j40cPTld3pv/0X/MlrZSZ6jowIaQQzFwP8M6rFU2z2mVYjDQ== - dependencies: - "@noble/hashes" "^1.2.0" - "@scure/base" "^1.1.1" - typeforce "^1.11.5" - wif "^2.0.6" - -bip39@^3.0.4: - version "3.1.0" - resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.1.0.tgz#c55a418deaf48826a6ceb34ac55b3ee1577e18a3" - integrity sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A== - dependencies: - "@noble/hashes" "^1.2.0" - bl@^4.0.3, bl@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" @@ -8526,7 +8655,7 @@ blakejs@^1.1.0: resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.1.1.tgz#bf313053978b2cd4c444a48795710be05c785702" integrity sha512-bLG6PHOCZJKNshTjGRBvET0vTciwQE6zFKOKKXPDJfwFBd4Ac0yBfPZqcGvGJap50l7ktvlpFqc2jGVaUgbJgg== -blakejs@^1.1.1, blakejs@^1.2.1: +blakejs@^1.1.1: version "1.2.1" resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.2.1.tgz#5057e4206eadb4a97f7c0b6e197a505042fc3814" integrity sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ== @@ -8754,14 +8883,7 @@ bs58@^4.0.0: dependencies: base-x "^3.0.2" -bs58@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/bs58/-/bs58-5.0.0.tgz#865575b4d13c09ea2a84622df6c8cbeb54ffc279" - integrity sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ== - dependencies: - base-x "^4.0.0" - -bs58check@<3.0.0, bs58check@^2.1.2: +bs58check@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/bs58check/-/bs58check-2.1.2.tgz#53b018291228d82a5aa08e7d796fdafda54aebfc" integrity sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA== @@ -10540,7 +10662,7 @@ elementtree@0.1.7: dependencies: sax "1.1.4" -elliptic@6.5.4, elliptic@^6.4.0, elliptic@^6.4.1, elliptic@^6.5.2, elliptic@^6.5.3: +elliptic@6.5.4, elliptic@^6.4.0, elliptic@^6.5.2, elliptic@^6.5.3: version "6.5.4" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== @@ -11838,6 +11960,11 @@ follow-redirects@^1.14.4: resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.5.tgz#f09a5848981d3c772b5392309778523f8d85c381" integrity sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA== +follow-redirects@^1.15.6: + version "1.15.6" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" + integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== + for-in@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" @@ -15691,7 +15818,7 @@ node-gyp@^7.1.0, node-gyp@^7.1.2: tar "^6.0.2" which "^2.0.2" -node-hid@^2.1.2: +node-hid@2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/node-hid/-/node-hid-2.1.2.tgz#3145fa86ed4336a402a71e9f372c54213b88797c" integrity sha512-qhCyQqrPpP93F/6Wc/xUR7L8mAJW0Z6R7HMQV8jCHHksAxNDe/4z4Un/H9CpLOT+5K39OPyt9tIQlavxWES3lg== @@ -16734,10 +16861,10 @@ pnglib@0.0.1: resolved "https://registry.yarnpkg.com/pnglib/-/pnglib-0.0.1.tgz#f9ab6f9c688f4a9d579ad8be28878a716e30c096" integrity sha512-95ChzOoYLOPIyVmL+Y6X+abKGXUJlvOVLkB1QQkyXl7Uczc6FElUy/x01NS7r2GX6GRezloO/ecCX9h4U9KadA== -polkasafe@^1.4.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/polkasafe/-/polkasafe-1.4.2.tgz#dd95ee9f8b61a98d48381aa30dcee0f2e7532faf" - integrity sha512-p0L8yZC8wF5iPGftZ7It1fbzLxl/j7wZ7oNbMpznrmwxhhvc+O8yF/dv7EdqW2jE8hoLLRDeSreJ7tfsRMSd4Q== +polkasafe@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/polkasafe/-/polkasafe-1.4.3.tgz#f31a2c2302b6658b5826c9d87ddab58ca72f436e" + integrity sha512-4q0AeWxo93hZxjBBsEN//r4ymAmR0YMQ2GoxXwaskWr0zKlKLoQZLf/xi3PtzloirGZqAvuoaZbhup7cIT8F6Q== dependencies: "@polkadot/api" "^11.2.1" "@polkadot/api-augment" "^11.2.1" @@ -18069,14 +18196,14 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -rxjs@6, rxjs@^6.6.0, rxjs@^6.6.7: +rxjs@^6.6.0: version "6.6.7" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== dependencies: tslib "^1.9.0" -rxjs@^7.4.0, rxjs@^7.5.5, rxjs@^7.8.0, rxjs@^7.8.1: +rxjs@^7.5.5, rxjs@^7.8.0, rxjs@^7.8.1: version "7.8.1" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== @@ -19692,11 +19819,6 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typeforce@^1.11.5: - version "1.18.0" - resolved "https://registry.yarnpkg.com/typeforce/-/typeforce-1.18.0.tgz#d7416a2c5845e085034d70fcc5b6cc4a90edbfdc" - integrity sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g== - typescript@4.9.4: version "4.9.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" @@ -21044,13 +21166,6 @@ wide-align@^1.1.0, wide-align@^1.1.2: dependencies: string-width "^1.0.2 || 2 || 3 || 4" -wif@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/wif/-/wif-2.0.6.tgz#08d3f52056c66679299726fade0d432ae74b4704" - integrity sha512-HIanZn1zmduSF+BQhkE+YXIbEiH0xPr1012QbFEGB0xsKqJii0/SqJjyn8dFv6y36kOznMgMB+LGcbZTJ1xACQ== - dependencies: - bs58check "<3.0.0" - wildcard@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.1.tgz#5ab10d02487198954836b6349f74fff961e10f67" @@ -21145,6 +21260,11 @@ ws@^8.15.1: resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b" integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ== +ws@^8.16.0: + version "8.18.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc" + integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw== + ws@^8.8.1: version "8.9.0" resolved "https://registry.yarnpkg.com/ws/-/ws-8.9.0.tgz#2a994bb67144be1b53fe2d23c53c028adeb7f45e"