diff --git a/packages/app/.env b/packages/app/.env index ff9f481697..fd0a794d51 100644 --- a/packages/app/.env +++ b/packages/app/.env @@ -1,6 +1,3 @@ -# Disable all mentioning of fiat values and token prices. -# VITE_DISABLE_FIAT=1 - # Display an organisation label in the network bar. # VITE_ORGANISATION="© Parity Technologies" diff --git a/packages/app/package.json b/packages/app/package.json index 107d949366..996f9f99ae 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -51,6 +51,7 @@ "i18next-browser-languagedetector": "^8.0.0", "lodash.debounce": "^4.0.8", "lodash.throttle": "^4.1.1", + "plugin-staking-api": "workspace:*", "qrcode-generator": "1.4.4", "rc-slider": "^11.1.6", "react": "^18.3.1", diff --git a/packages/app/src/config/networks.ts b/packages/app/src/config/networks.ts index f256dec60b..116bafd56d 100644 --- a/packages/app/src/config/networks.ts +++ b/packages/app/src/config/networks.ts @@ -65,7 +65,6 @@ export const NetworkList: Networks = { }, api: { unit: 'DOT', - priceTicker: 'DOTUSDT', }, defaultFeeReserve: 0.1, maxExposurePageSize: new BigNumber(512), @@ -121,7 +120,6 @@ export const NetworkList: Networks = { }, api: { unit: 'KSM', - priceTicker: 'KSMUSDT', }, defaultFeeReserve: 0.05, maxExposurePageSize: new BigNumber(512), @@ -176,7 +174,6 @@ export const NetworkList: Networks = { }, api: { unit: 'DOT', - priceTicker: 'DOTUSDT', }, defaultFeeReserve: 0.1, maxExposurePageSize: new BigNumber(64), diff --git a/packages/app/src/config/plugins.ts b/packages/app/src/config/plugins.ts index 21a153ac12..4a51e4991f 100644 --- a/packages/app/src/config/plugins.ts +++ b/packages/app/src/config/plugins.ts @@ -2,11 +2,11 @@ // SPDX-License-Identifier: GPL-3.0-only // List of available plugins. -export type Plugin = 'subscan' | 'binance_spot' | 'tips' | 'polkawatch'; +export type Plugin = 'staking_api' | 'subscan' | 'tips' | 'polkawatch'; export const PluginsList: Plugin[] = [ + 'staking_api', 'subscan', - 'binance_spot', 'tips', 'polkawatch', ]; diff --git a/packages/app/src/contexts/Plugins/Utils.ts b/packages/app/src/contexts/Plugins/Utils.ts index 380a7da1b8..2b59cd489b 100644 --- a/packages/app/src/contexts/Plugins/Utils.ts +++ b/packages/app/src/contexts/Plugins/Utils.ts @@ -6,21 +6,5 @@ import type { Plugin } from 'config/plugins'; import { PluginsList } from 'config/plugins'; // Get initial plugins from local storage. -export const getAvailablePlugins = () => { - const localPlugins = localStorageOrDefault( - 'plugins', - PluginsList, - true - ) as Plugin[]; - - // If fiat is disabled, remove `binance_spot` service. - const DISABLE_FIAT = Number(import.meta.env.VITE_DISABLE_FIAT ?? 0); - if (DISABLE_FIAT && localPlugins.includes('binance_spot')) { - const index = localPlugins.indexOf('binance_spot'); - if (index !== -1) { - localPlugins.splice(index, 1); - } - } - - return localPlugins; -}; +export const getAvailablePlugins = () => + localStorageOrDefault('plugins', PluginsList, true) as Plugin[]; diff --git a/packages/app/src/hooks/usePrices/index.tsx b/packages/app/src/hooks/usePrices/index.tsx deleted file mode 100644 index 0e6e56c498..0000000000 --- a/packages/app/src/hooks/usePrices/index.tsx +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors -// SPDX-License-Identifier: GPL-3.0-only - -import { useEffect, useRef, useState } from 'react'; -import { usePlugins } from 'contexts/Plugins'; -import { useUnitPrice } from 'hooks/useUnitPrice'; -import { useNetwork } from 'contexts/Network'; -import type { AnyJson } from '@w3ux/types'; - -export const usePrices = () => { - const { network } = useNetwork(); - const { plugins } = usePlugins(); - const fetchUnitPrice = useUnitPrice(); - - const pricesLocalStorage = () => { - const pricesLocal = localStorage.getItem(`${network}_prices`); - return pricesLocal === null - ? { - lastPrice: 0, - change: 0, - } - : JSON.parse(pricesLocal); - }; - - const [prices, _setPrices] = useState(pricesLocalStorage()); - const pricesRef = useRef(prices); - - const setPrices = (p: AnyJson) => { - localStorage.setItem(`${network}_prices`, JSON.stringify(p)); - pricesRef.current = { - ...pricesRef.current, - ...p, - }; - _setPrices({ - ...pricesRef.current, - ...p, - }); - }; - - const initiatePriceInterval = async () => { - setPrices(await fetchUnitPrice()); - if (priceHandle === null) { - setPriceInterval(); - } - }; - - let priceHandle: ReturnType; - const setPriceInterval = async () => { - priceHandle = setInterval(async () => { - setPrices(await fetchUnitPrice()); - }, 1000 * 30); - }; - - // initial price subscribe - useEffect(() => { - initiatePriceInterval(); - return () => { - if (priceHandle) { - clearInterval(priceHandle); - } - }; - }, []); - - // resubscribe on network toggle - useEffect(() => { - if (priceHandle) { - clearInterval(priceHandle); - } - initiatePriceInterval(); - }, [network]); - - // servie toggle - useEffect(() => { - if (plugins.includes('binance_spot')) { - if (priceHandle) { - initiatePriceInterval(); - } - } else if (priceHandle) { - clearInterval(priceHandle); - } - }, [plugins]); - - return pricesRef.current; -}; diff --git a/packages/app/src/hooks/useUnitPrice/index.tsx b/packages/app/src/hooks/useUnitPrice/index.tsx deleted file mode 100644 index eac593bc94..0000000000 --- a/packages/app/src/hooks/useUnitPrice/index.tsx +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors -// SPDX-License-Identifier: GPL-3.0-only - -import { NetworkList } from 'config/networks'; -import { useNetwork } from 'contexts/Network'; - -export const useUnitPrice = () => { - const { network } = useNetwork(); - - const fetchUnitPrice = async () => { - const endpoint = `https://api.binance.com/api/v3/ticker/24hr?symbol=`; - - const urls = [`${endpoint}${NetworkList[network].api.priceTicker}`]; - - const responses = await Promise.all( - urls.map((u) => fetch(u, { method: 'GET' })) - ); - const texts = await Promise.all(responses.map((res) => res.json())); - const newPrice = texts[0]; - - if ( - newPrice.lastPrice !== undefined && - newPrice.priceChangePercent !== undefined - ) { - const price: string = (Math.ceil(newPrice.lastPrice * 100) / 100).toFixed( - 2 - ); - - return { - lastPrice: price, - change: (Math.round(newPrice.priceChangePercent * 100) / 100).toFixed( - 2 - ), - }; - } - return null; - }; - - return fetchUnitPrice; -}; diff --git a/packages/app/src/library/NetworkBar/TokenPrice.tsx b/packages/app/src/library/NetworkBar/TokenPrice.tsx new file mode 100644 index 0000000000..5955b33519 --- /dev/null +++ b/packages/app/src/library/NetworkBar/TokenPrice.tsx @@ -0,0 +1,58 @@ +// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors +// SPDX-License-Identifier: GPL-3.0-only + +import { useEffectIgnoreInitial } from '@w3ux/hooks'; +import { useNetwork } from 'contexts/Network'; +import { + ApolloProvider, + client, + useTokenPrice, + formatResult, +} from 'plugin-staking-api'; + +export const TokenPriceInner = () => { + const { + networkData: { + api: { unit }, + }, + } = useNetwork(); + const { loading, error, data, refetch } = useTokenPrice({ + ticker: `${unit}USDT`, + }); + const { price, change } = formatResult(loading, error, data); + + const usdFormatter = new Intl.NumberFormat('en-US', { + style: 'currency', + currency: 'USD', + }); + + // Initiate interval to refetch token price every 30 seconds. + useEffectIgnoreInitial(() => { + const interval = setInterval(() => { + refetch(); + }, 30 * 1000); + return () => clearInterval(interval); + }, [refetch]); + + return ( + <> +
+ 0 ? ' pos' : ''}`} + > + {change < 0 ? '' : change > 0 ? '+' : ''} + {change}% + +
+
+ 1 {unit} / {usdFormatter.format(price)} +
+ + ); +}; + +export const TokenPrice = () => ( + + + +); diff --git a/packages/app/src/library/NetworkBar/index.tsx b/packages/app/src/library/NetworkBar/index.tsx index 84577f4c6d..d4eb5c57a9 100644 --- a/packages/app/src/library/NetworkBar/index.tsx +++ b/packages/app/src/library/NetworkBar/index.tsx @@ -6,7 +6,6 @@ import { useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useApi } from 'contexts/Api'; import { usePlugins } from 'contexts/Plugins'; -import { usePrices } from 'hooks/usePrices'; import { useNetwork } from 'contexts/Network'; import { Status } from './Status'; import { Summary, Wrapper } from './Wrappers'; @@ -17,13 +16,13 @@ import BigNumber from 'bignumber.js'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faHive } from '@fortawesome/free-brands-svg-icons'; import { Odometer } from '@w3ux/react-odometer'; +import { TokenPrice } from './TokenPrice'; export const NetworkBar = () => { const { t } = useTranslation('library'); const { plugins } = usePlugins(); const { connectionType } = useApi(); const { networkData, network } = useNetwork(); - const prices = usePrices(); const PRIVACY_URL = import.meta.env.VITE_PRIVACY_URL; const DISCLAIMER_URL = import.meta.env.VITE_DISCLAIMER_URL; @@ -85,26 +84,8 @@ export const NetworkBar = () => {
- {plugins.includes('binance_spot') && ( - <> -
- 0 - ? ' pos' - : '' - }`} - > - {prices.change < 0 ? '' : prices.change > 0 ? '+' : ''} - {prices.change}% - -
-
- 1 {networkData.api.unit} / {prices.lastPrice} USD -
- + {plugins.includes('staking_api') && network !== 'westend' && ( + )}
diff --git a/packages/app/src/locale/cn/modals.json b/packages/app/src/locale/cn/modals.json index 57bea32616..fadd7eea15 100644 --- a/packages/app/src/locale/cn/modals.json +++ b/packages/app/src/locale/cn/modals.json @@ -27,7 +27,6 @@ "beingDestroyed": "正在销毁此池。", "belowExisting": "低于现有", "beyondMaxIncrease": "超出最大增量", - "binanceApi": "币安API", "bond": "质押", "bondAll": "质押所有", "bondAllAvailable": "质押所有可用金额", diff --git a/packages/app/src/locale/en/modals.json b/packages/app/src/locale/en/modals.json index 357bc34c11..ce6cb26e6c 100644 --- a/packages/app/src/locale/en/modals.json +++ b/packages/app/src/locale/en/modals.json @@ -30,7 +30,6 @@ "beingDestroyed": "This pool is being destroyed.", "belowExisting": "Below Existing", "beyondMaxIncrease": "Beyond Max Increase", - "binanceApi": "Binance Spot API", "bond": "Bond", "bondAll": "Bond All", "bondAllAvailable": "Bond all available", diff --git a/packages/app/src/modals/Settings/index.tsx b/packages/app/src/modals/Settings/index.tsx index 32986918d5..2305c39562 100644 --- a/packages/app/src/modals/Settings/index.tsx +++ b/packages/app/src/modals/Settings/index.tsx @@ -12,15 +12,17 @@ export const Settings = () => { const { plugins, togglePlugin } = usePlugins(); const { t } = useTranslation('modals'); - // fetch flag to disable fiat - const DISABLE_FIAT = Number(import.meta.env.VITE_DISABLE_FIAT ?? 0); - return ( <> <ModalPadding> <ContentWrapper> <h4>{t('togglePlugins')}</h4> + <StatusButton + checked={plugins.includes('staking_api')} + label="Staking API" + onClick={() => togglePlugin('staking_api')} + /> <StatusButton checked={plugins.includes('subscan')} label="Subscan API" @@ -31,13 +33,6 @@ export const Settings = () => { label="Polkawatch API" onClick={() => togglePlugin('polkawatch')} /> - {!DISABLE_FIAT && ( - <StatusButton - checked={plugins.includes('binance_spot')} - label={t('binanceApi')} - onClick={() => togglePlugin('binance_spot')} - /> - )} <h4>{t('toggleFeatures')}</h4> diff --git a/packages/app/src/pages/Overview/BalanceChart.tsx b/packages/app/src/pages/Overview/AccountBalance/BalanceChart.tsx similarity index 95% rename from packages/app/src/pages/Overview/BalanceChart.tsx rename to packages/app/src/pages/Overview/AccountBalance/BalanceChart.tsx index 64e90387a5..cd02c6fcca 100644 --- a/packages/app/src/pages/Overview/BalanceChart.tsx +++ b/packages/app/src/pages/Overview/AccountBalance/BalanceChart.tsx @@ -13,7 +13,6 @@ import { BarSegment } from 'library/BarChart/BarSegment'; import { LegendItem } from 'library/BarChart/LegendItem'; import { Bar, BarChartWrapper, Legend } from 'library/BarChart/Wrappers'; import { CardHeaderWrapper } from 'library/Card/Wrappers'; -import { usePrices } from 'hooks/usePrices'; import { useOverlay } from 'kits/Overlay/Provider'; import { useNetwork } from 'contexts/Network'; import { useActiveAccounts } from 'contexts/ActiveAccounts'; @@ -21,6 +20,7 @@ import { useImportedAccounts } from 'contexts/Connect/ImportedAccounts'; import { useSyncing } from 'hooks/useSyncing'; import { ButtonTertiary } from 'ui-buttons'; import { planckToUnitBn } from 'library/Utils'; +import { FiatValue } from './FiatValue'; export const BalanceChart = () => { const { t } = useTranslation('pages'); @@ -31,7 +31,6 @@ export const BalanceChart = () => { brand: { token: Token }, }, } = useNetwork(); - const prices = usePrices(); const { plugins } = usePlugins(); const { openModal } = useOverlay().modal; const { activeAccount } = useActiveAccounts(); @@ -54,10 +53,6 @@ export const BalanceChart = () => { free.plus(poolBondOpions.active).plus(unlockingPools), units ); - // Convert balance to fiat value. - const freeFiat = totalBalance.multipliedBy( - new BigNumber(prices.lastPrice).decimalPlaces(2) - ); // Total funds nominating. const nominating = planckToUnitBn( @@ -130,12 +125,6 @@ export const BalanceChart = () => { fundsReserved = graphAvailable; } - // Formatter for price feed. - const usdFormatter = new Intl.NumberFormat('en-US', { - style: 'currency', - currency: 'USD', - }); - const isNominating = nominating.isGreaterThan(0); const isInPool = poolBondOpions.active .plus(poolBondOpions.totalUnlocked) @@ -153,8 +142,8 @@ export const BalanceChart = () => { zeroDecimals={2} /> <span className="note"> - {plugins.includes('binance_spot') ? ( - <> {usdFormatter.format(freeFiat.toNumber())}</> + {plugins.includes('staking_api') ? ( + <FiatValue totalBalance={totalBalance} /> ) : null} </span> </h2> diff --git a/packages/app/src/pages/Overview/BalanceLinks.tsx b/packages/app/src/pages/Overview/AccountBalance/BalanceLinks.tsx similarity index 97% rename from packages/app/src/pages/Overview/BalanceLinks.tsx rename to packages/app/src/pages/Overview/AccountBalance/BalanceLinks.tsx index 051e27ac8f..28689315c3 100644 --- a/packages/app/src/pages/Overview/BalanceLinks.tsx +++ b/packages/app/src/pages/Overview/AccountBalance/BalanceLinks.tsx @@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next'; import { useNetwork } from 'contexts/Network'; import { useActiveAccounts } from 'contexts/ActiveAccounts'; import { useStaking } from 'contexts/Staking'; -import { MoreWrapper } from './Wrappers'; +import { MoreWrapper } from '../Wrappers'; import { ButtonPrimaryInvert } from 'ui-buttons'; import { Separator } from 'ui-structure'; diff --git a/packages/app/src/pages/Overview/AccountBalance/FiatValue.tsx b/packages/app/src/pages/Overview/AccountBalance/FiatValue.tsx new file mode 100644 index 0000000000..949d1d92c1 --- /dev/null +++ b/packages/app/src/pages/Overview/AccountBalance/FiatValue.tsx @@ -0,0 +1,55 @@ +// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors +// SPDX-License-Identifier: GPL-3.0-only + +import { useEffectIgnoreInitial } from '@w3ux/hooks'; +import BigNumber from 'bignumber.js'; +import { useNetwork } from 'contexts/Network'; +import { + ApolloProvider, + client, + formatResult, + useTokenPrice, +} from 'plugin-staking-api'; + +interface FiatValueProps { + totalBalance: BigNumber; +} + +export const FiatValueInner = ({ totalBalance }: FiatValueProps) => { + const { + networkData: { + api: { unit }, + }, + } = useNetwork(); + const { loading, error, data, refetch } = useTokenPrice({ + ticker: `${unit}USDT`, + }); + const { price } = formatResult(loading, error, data); + + // Convert balance to fiat value. + const freeFiat = totalBalance.multipliedBy( + new BigNumber(price).decimalPlaces(2) + ); + + // Formatter for price feed. + const usdFormatter = new Intl.NumberFormat('en-US', { + style: 'currency', + currency: 'USD', + }); + + // Initiate interval to refetch token price every 30 seconds. + useEffectIgnoreInitial(() => { + const interval = setInterval(() => { + refetch(); + }, 30 * 1000); + return () => clearInterval(interval); + }, [refetch]); + + return <>{usdFormatter.format(freeFiat.toNumber())}</>; +}; + +export const FiatValue = (props: FiatValueProps) => ( + <ApolloProvider client={client}> + <FiatValueInner {...props} /> + </ApolloProvider> +); diff --git a/packages/app/src/pages/Overview/index.tsx b/packages/app/src/pages/Overview/index.tsx index 1133fda479..21af6932a1 100644 --- a/packages/app/src/pages/Overview/index.tsx +++ b/packages/app/src/pages/Overview/index.tsx @@ -6,8 +6,8 @@ import { CardWrapper } from 'library/Card/Wrappers'; import { StatBoxList } from 'library/StatBoxList'; import { PluginLabel } from 'library/PluginLabel'; import { AccountControls } from './AccountControls'; -import { BalanceChart } from './BalanceChart'; -import { BalanceLinks } from './BalanceLinks'; +import { BalanceChart } from './AccountBalance/BalanceChart'; +import { BalanceLinks } from './AccountBalance/BalanceLinks'; import { NetworkStats } from './NetworkSats'; import { Payouts } from './Payouts'; import { StakeStatus } from './StakeStatus'; diff --git a/packages/app/src/types.ts b/packages/app/src/types.ts index a501da891b..0a3b87cd47 100644 --- a/packages/app/src/types.ts +++ b/packages/app/src/types.ts @@ -91,7 +91,6 @@ export interface Network { }; api: { unit: string; - priceTicker: string; }; defaultFeeReserve: number; maxExposurePageSize: BigNumber; diff --git a/packages/plugin-staking-api/package.json b/packages/plugin-staking-api/package.json new file mode 100644 index 0000000000..913cb5ee61 --- /dev/null +++ b/packages/plugin-staking-api/package.json @@ -0,0 +1,15 @@ +{ + "name": "plugin-staking-api", + "version": "1.0.0", + "license": "GPL-3.0-only", + "type": "module", + "main": "src/index.tsx", + "scripts": { + "clear": "rm -rf build tsconfig.tsbuildinfo dist", + "reset": "yarn run clear && rm -rf node_modules yarn.lock && yarn" + }, + "dependencies": { + "@apollo/client": "^3.11.10", + "graphql": "^16.9.0" + } +} diff --git a/packages/plugin-staking-api/src/Client.tsx b/packages/plugin-staking-api/src/Client.tsx new file mode 100644 index 0000000000..ec06a0fca1 --- /dev/null +++ b/packages/plugin-staking-api/src/Client.tsx @@ -0,0 +1,13 @@ +// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors +// SPDX-License-Identifier: GPL-3.0-only + +import { ApolloClient, InMemoryCache } from '@apollo/client'; + +const STAKING_API_ENDPOINT = 'https://api.staking.polkadot.cloud'; + +const client = new ApolloClient({ + uri: STAKING_API_ENDPOINT, + cache: new InMemoryCache(), +}); + +export { client }; diff --git a/packages/plugin-staking-api/src/index.tsx b/packages/plugin-staking-api/src/index.tsx new file mode 100644 index 0000000000..79d4ebece8 --- /dev/null +++ b/packages/plugin-staking-api/src/index.tsx @@ -0,0 +1,10 @@ +// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors +// SPDX-License-Identifier: GPL-3.0-only + +import { ApolloProvider } from '@apollo/client'; + +export * from './Client'; +export * from './useTokenPrice'; +export * from './util'; + +export { ApolloProvider }; diff --git a/packages/plugin-staking-api/src/types.ts b/packages/plugin-staking-api/src/types.ts new file mode 100644 index 0000000000..20fff485a8 --- /dev/null +++ b/packages/plugin-staking-api/src/types.ts @@ -0,0 +1,24 @@ +// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors +// SPDX-License-Identifier: GPL-3.0-only + +import type { + ApolloError, + ApolloQueryResult, + OperationVariables, +} from '@apollo/client'; + +export type TokenPriceResult = { + tokenPrice: { + price: number; + change: number; + }; +} | null; + +export interface UseTokenPriceResult { + loading: boolean; + error: ApolloError | undefined; + data: TokenPriceResult; + refetch: ( + variables?: Partial<OperationVariables> | undefined + ) => Promise<ApolloQueryResult<unknown>>; +} diff --git a/packages/plugin-staking-api/src/useTokenPrice.tsx b/packages/plugin-staking-api/src/useTokenPrice.tsx new file mode 100644 index 0000000000..6671f99367 --- /dev/null +++ b/packages/plugin-staking-api/src/useTokenPrice.tsx @@ -0,0 +1,25 @@ +// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors +// SPDX-License-Identifier: GPL-3.0-only + +import { gql, useQuery } from '@apollo/client'; +import type { UseTokenPriceResult } from './types'; + +const TOKEN_PRICE_QUERY = gql` + query TokenPrice($ticker: String!) { + tokenPrice(ticker: $ticker) { + price + change + } + } +`; + +export const useTokenPrice = ({ + ticker, +}: { + ticker: string; +}): UseTokenPriceResult => { + const { loading, error, data, refetch } = useQuery(TOKEN_PRICE_QUERY, { + variables: { ticker }, + }); + return { loading, error, data, refetch }; +}; diff --git a/packages/plugin-staking-api/src/util.ts b/packages/plugin-staking-api/src/util.ts new file mode 100644 index 0000000000..0f3c8edf73 --- /dev/null +++ b/packages/plugin-staking-api/src/util.ts @@ -0,0 +1,18 @@ +// Copyright 2024 @polkadot-cloud/polkadot-staking-dashboard authors & contributors +// SPDX-License-Identifier: GPL-3.0-only + +import type { ApolloError } from '@apollo/client'; +import type { TokenPriceResult } from './types'; + +export const formatResult = ( + loading: boolean, + error: ApolloError | undefined, + data: TokenPriceResult +) => { + const price = + loading || error ? 0 : Number(data?.tokenPrice?.price.toFixed(2)) || 0; + const change = + loading || error ? 0 : Number(data?.tokenPrice?.change.toFixed(2)) || 0; + + return { price, change }; +}; diff --git a/packages/plugin-staking-api/tsconfig.json b/packages/plugin-staking-api/tsconfig.json new file mode 100644 index 0000000000..4581d57b32 --- /dev/null +++ b/packages/plugin-staking-api/tsconfig.json @@ -0,0 +1,22 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "target": "ESNext", + "useDefineForClassFields": true, + "lib": ["DOM", "DOM.Iterable", "ESNext"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "Bundler", + "allowSyntheticDefaultImports": true, + "allowImportingTsExtensions": true, + "allowJs": false, + "esModuleInterop": false, + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "react-jsx", + "noEmit": true, + }, + "include": [ + "src" + ] +} diff --git a/release-please-config.json b/release-please-config.json index e35e30c0b8..2387376c42 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -5,6 +5,7 @@ "packages/app": {}, "packages/consts": {}, "packages/styles": {}, + "packages/plugin-staking-api": {}, "packages/ui-buttons": {}, "packages/ui-structure": {} } diff --git a/yarn.lock b/yarn.lock index 235c5595ea..5401d1fb8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -22,6 +22,43 @@ __metadata: languageName: node linkType: hard +"@apollo/client@npm:^3.11.10": + version: 3.11.10 + resolution: "@apollo/client@npm:3.11.10" + dependencies: + "@graphql-typed-document-node/core": "npm:^3.1.1" + "@wry/caches": "npm:^1.0.0" + "@wry/equality": "npm:^0.5.6" + "@wry/trie": "npm:^0.5.0" + graphql-tag: "npm:^2.12.6" + hoist-non-react-statics: "npm:^3.3.2" + optimism: "npm:^0.18.0" + prop-types: "npm:^15.7.2" + rehackt: "npm:^0.1.0" + response-iterator: "npm:^0.2.6" + symbol-observable: "npm:^4.0.0" + ts-invariant: "npm:^0.10.3" + tslib: "npm:^2.3.0" + zen-observable-ts: "npm:^1.2.5" + peerDependencies: + graphql: ^15.0.0 || ^16.0.0 + graphql-ws: ^5.5.5 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 + subscriptions-transport-ws: ^0.9.0 || ^0.11.0 + peerDependenciesMeta: + graphql-ws: + optional: true + react: + optional: true + react-dom: + optional: true + subscriptions-transport-ws: + optional: true + checksum: 10c0/27bb910d347e7bb88ae48a39c6e328d8389bfe679cd4529889878bffcc73d00b1122b9fc3501f079d35835622bd33d9848a4e7bad579aa2a2d1f5dee824c5586 + languageName: node + linkType: hard + "@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.25.9, @babel/code-frame@npm:^7.26.0": version: 7.26.2 resolution: "@babel/code-frame@npm:7.26.2" @@ -210,16 +247,15 @@ __metadata: languageName: node linkType: hard -"@coinbase/wallet-sdk@npm:4.2.1": - version: 4.2.1 - resolution: "@coinbase/wallet-sdk@npm:4.2.1" +"@coinbase/wallet-sdk@npm:4.2.3": + version: 4.2.3 + resolution: "@coinbase/wallet-sdk@npm:4.2.3" dependencies: "@noble/hashes": "npm:^1.4.0" clsx: "npm:^1.2.1" eventemitter3: "npm:^5.0.1" preact: "npm:^10.24.2" - vitest: "npm:^2.1.2" - checksum: 10c0/f054f2f90701fd4a409e5ffc942dd0df9ab6872c8c2af1cc31d73e02e97c88893dd76c235b93f6434c49308af1a34ce51a0c2000ea7feaa499a4b4095bd3a390 + checksum: 10c0/ce27b5bfdcbc79e896cd262baf0483073ac854986b518e29a23af9c70b3bb6a75d6c15e5e34355095249d46fa8a8eda4682b63ec82812e92cbadba56b8706190 languageName: node linkType: hard @@ -600,6 +636,15 @@ __metadata: languageName: node linkType: hard +"@graphql-typed-document-node/core@npm:^3.1.1": + version: 3.2.0 + resolution: "@graphql-typed-document-node/core@npm:3.2.0" + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 10c0/94e9d75c1f178bbae8d874f5a9361708a3350c8def7eaeb6920f2c820e82403b7d4f55b3735856d68e145e86c85cbfe2adc444fdc25519cd51f108697e99346c + languageName: node + linkType: hard + "@humanwhocodes/config-array@npm:^0.11.14": version: 0.11.14 resolution: "@humanwhocodes/config-array@npm:0.11.14" @@ -1919,17 +1964,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/networks@npm:13.2.2": - version: 13.2.2 - resolution: "@polkadot/networks@npm:13.2.2" - dependencies: - "@polkadot/util": "npm:13.2.2" - "@substrate/ss58-registry": "npm:^1.51.0" - tslib: "npm:^2.8.0" - checksum: 10c0/aeac8733a3f1f0ed2872603b7925441e1016097b5da850f49f860a8e300d10555e73450e2952023de560718b49026937919490749f4075c9b3c4ea78464e027f - languageName: node - linkType: hard - "@polkadot/networks@npm:13.2.3, @polkadot/networks@npm:^13.2.3": version: 13.2.3 resolution: "@polkadot/networks@npm:13.2.3" @@ -2211,7 +2245,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/util-crypto@npm:13.2.3, @polkadot/util-crypto@npm:^13.2.3": +"@polkadot/util-crypto@npm:13.2.3, @polkadot/util-crypto@npm:^13.1.1, @polkadot/util-crypto@npm:^13.2.3": version: 13.2.3 resolution: "@polkadot/util-crypto@npm:13.2.3" dependencies: @@ -2231,26 +2265,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/util-crypto@npm:^13.1.1": - version: 13.2.2 - resolution: "@polkadot/util-crypto@npm:13.2.2" - dependencies: - "@noble/curves": "npm:^1.3.0" - "@noble/hashes": "npm:^1.3.3" - "@polkadot/networks": "npm:13.2.2" - "@polkadot/util": "npm:13.2.2" - "@polkadot/wasm-crypto": "npm:^7.4.1" - "@polkadot/wasm-util": "npm:^7.4.1" - "@polkadot/x-bigint": "npm:13.2.2" - "@polkadot/x-randomvalues": "npm:13.2.2" - "@scure/base": "npm:^1.1.7" - tslib: "npm:^2.8.0" - peerDependencies: - "@polkadot/util": 13.2.2 - checksum: 10c0/5843cfc599a7d8d6c76921cba679909f3e730d363c62d82cc5755ed67dadcc36ff0cc0fce6017d31041f5f7a62b05311b02aa922ac38608ee5dd04705e19d056 - languageName: node - linkType: hard - "@polkadot/util@npm:12.6.2, @polkadot/util@npm:^12.6.2": version: 12.6.2 resolution: "@polkadot/util@npm:12.6.2" @@ -2266,22 +2280,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/util@npm:13.2.2, @polkadot/util@npm:^13.1.1": - version: 13.2.2 - resolution: "@polkadot/util@npm:13.2.2" - dependencies: - "@polkadot/x-bigint": "npm:13.2.2" - "@polkadot/x-global": "npm:13.2.2" - "@polkadot/x-textdecoder": "npm:13.2.2" - "@polkadot/x-textencoder": "npm:13.2.2" - "@types/bn.js": "npm:^5.1.6" - bn.js: "npm:^5.2.1" - tslib: "npm:^2.8.0" - checksum: 10c0/a63fb46907a77fb99ace488fa61d9005c700ff6504322a3b98a2fca434bbef3a5aa6dd6c52d4b806b71e2f4a3def6f6ecb2548644be0546b8667efc3da4118cd - languageName: node - linkType: hard - -"@polkadot/util@npm:13.2.3, @polkadot/util@npm:^13.2.3": +"@polkadot/util@npm:13.2.3, @polkadot/util@npm:^13.1.1, @polkadot/util@npm:^13.2.3": version: 13.2.3 resolution: "@polkadot/util@npm:13.2.3" dependencies: @@ -2386,16 +2385,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-bigint@npm:13.2.2": - version: 13.2.2 - resolution: "@polkadot/x-bigint@npm:13.2.2" - dependencies: - "@polkadot/x-global": "npm:13.2.2" - tslib: "npm:^2.8.0" - checksum: 10c0/5e793b1870c18e631965500693751bf49e7e4fdd0028f93a380fbdeb78d9faaadfb1742af6a52e1faf7943c2fa35bbb2fe1988a43c42a11a87260195311932e9 - languageName: node - linkType: hard - "@polkadot/x-bigint@npm:13.2.3, @polkadot/x-bigint@npm:^13.2.3": version: 13.2.3 resolution: "@polkadot/x-bigint@npm:13.2.3" @@ -2437,15 +2426,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-global@npm:13.2.2": - version: 13.2.2 - resolution: "@polkadot/x-global@npm:13.2.2" - dependencies: - tslib: "npm:^2.8.0" - checksum: 10c0/8129a33319be3f48e7cd540324e97f6108799ef2aeb026157bfd313fbf22146f3a2ebefd1d8dfa1fbc57987d2157a3169a33b5cbb4f26f9abf49765bbb1874fe - languageName: node - linkType: hard - "@polkadot/x-global@npm:13.2.3, @polkadot/x-global@npm:^13.2.3": version: 13.2.3 resolution: "@polkadot/x-global@npm:13.2.3" @@ -2468,19 +2448,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-randomvalues@npm:13.2.2": - version: 13.2.2 - resolution: "@polkadot/x-randomvalues@npm:13.2.2" - dependencies: - "@polkadot/x-global": "npm:13.2.2" - tslib: "npm:^2.8.0" - peerDependencies: - "@polkadot/util": 13.2.2 - "@polkadot/wasm-util": "*" - checksum: 10c0/383636261de6c2986302a8bd65e610826dba1e72cb15623af10c513c003f4eabd235396abc5e7e3dc3799d026204f7dc2a752945f0eef020029a005c6716715d - languageName: node - linkType: hard - "@polkadot/x-randomvalues@npm:13.2.3": version: 13.2.3 resolution: "@polkadot/x-randomvalues@npm:13.2.3" @@ -2504,16 +2471,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:13.2.2": - version: 13.2.2 - resolution: "@polkadot/x-textdecoder@npm:13.2.2" - dependencies: - "@polkadot/x-global": "npm:13.2.2" - tslib: "npm:^2.8.0" - checksum: 10c0/4f0fbfb6a575b0c77831fd4602d36f84367fc20247882a1bd7ff1f327c38a9c8c17f6ad151930ee0a4687698e4411960546b7b54772bd4de7d215edc9dbdf192 - languageName: node - linkType: hard - "@polkadot/x-textdecoder@npm:13.2.3": version: 13.2.3 resolution: "@polkadot/x-textdecoder@npm:13.2.3" @@ -2534,16 +2491,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-textencoder@npm:13.2.2": - version: 13.2.2 - resolution: "@polkadot/x-textencoder@npm:13.2.2" - dependencies: - "@polkadot/x-global": "npm:13.2.2" - tslib: "npm:^2.8.0" - checksum: 10c0/ce3e6b2b2fb4a5225629f4cbbeba3d71cd38f35f4b4c26e5a0725b23b91c8a085f94da73d22b4b338a6a4f6d3336c49122cdf69b761a32d528ac1d93862fa396 - languageName: node - linkType: hard - "@polkadot/x-textencoder@npm:13.2.3": version: 13.2.3 resolution: "@polkadot/x-textencoder@npm:13.2.3" @@ -2678,128 +2625,128 @@ __metadata: languageName: node linkType: hard -"@rollup/rollup-android-arm-eabi@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-android-arm-eabi@npm:4.25.0" +"@rollup/rollup-android-arm-eabi@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.26.0" conditions: os=android & cpu=arm languageName: node linkType: hard -"@rollup/rollup-android-arm64@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-android-arm64@npm:4.25.0" +"@rollup/rollup-android-arm64@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-android-arm64@npm:4.26.0" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-arm64@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-darwin-arm64@npm:4.25.0" +"@rollup/rollup-darwin-arm64@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-darwin-arm64@npm:4.26.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-x64@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-darwin-x64@npm:4.25.0" +"@rollup/rollup-darwin-x64@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-darwin-x64@npm:4.26.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-freebsd-arm64@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-freebsd-arm64@npm:4.25.0" +"@rollup/rollup-freebsd-arm64@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-freebsd-arm64@npm:4.26.0" conditions: os=freebsd & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-freebsd-x64@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-freebsd-x64@npm:4.25.0" +"@rollup/rollup-freebsd-x64@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-freebsd-x64@npm:4.26.0" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-linux-arm-gnueabihf@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.25.0" +"@rollup/rollup-linux-arm-gnueabihf@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.26.0" conditions: os=linux & cpu=arm & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm-musleabihf@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.25.0" +"@rollup/rollup-linux-arm-musleabihf@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.26.0" conditions: os=linux & cpu=arm & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-arm64-gnu@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.25.0" +"@rollup/rollup-linux-arm64-gnu@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.26.0" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm64-musl@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-linux-arm64-musl@npm:4.25.0" +"@rollup/rollup-linux-arm64-musl@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.26.0" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-powerpc64le-gnu@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.25.0" +"@rollup/rollup-linux-powerpc64le-gnu@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.26.0" conditions: os=linux & cpu=ppc64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-riscv64-gnu@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.25.0" +"@rollup/rollup-linux-riscv64-gnu@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.26.0" conditions: os=linux & cpu=riscv64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-s390x-gnu@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.25.0" +"@rollup/rollup-linux-s390x-gnu@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.26.0" conditions: os=linux & cpu=s390x & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-gnu@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-linux-x64-gnu@npm:4.25.0" +"@rollup/rollup-linux-x64-gnu@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.26.0" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-musl@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-linux-x64-musl@npm:4.25.0" +"@rollup/rollup-linux-x64-musl@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.26.0" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-win32-arm64-msvc@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.25.0" +"@rollup/rollup-win32-arm64-msvc@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.26.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-win32-ia32-msvc@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.25.0" +"@rollup/rollup-win32-ia32-msvc@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.26.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@rollup/rollup-win32-x64-msvc@npm:4.25.0": - version: 4.25.0 - resolution: "@rollup/rollup-win32-x64-msvc@npm:4.25.0" +"@rollup/rollup-win32-x64-msvc@npm:4.26.0": + version: 4.26.0 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.26.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -2811,13 +2758,13 @@ __metadata: languageName: node linkType: hard -"@safe-global/safe-apps-provider@npm:0.18.3": - version: 0.18.3 - resolution: "@safe-global/safe-apps-provider@npm:0.18.3" +"@safe-global/safe-apps-provider@npm:0.18.4": + version: 0.18.4 + resolution: "@safe-global/safe-apps-provider@npm:0.18.4" dependencies: "@safe-global/safe-apps-sdk": "npm:^9.1.0" events: "npm:^3.3.0" - checksum: 10c0/7209d761919969c0859e8b9df90fd46d06c3f99424ecd5fd2e0b8080355a880504ee5c46cebcbaa94739f8be272f3f7102a9f40cf18e6c1a9e1d7dd29d77ee5e + checksum: 10c0/612c9816b75b86b73b95b5df35529f4d48da1a3a59b2b999f6ef836b28b10cda2142e159dbc97f0298fa8f5b76df82a1e08e34034fdf12f148e9fd4af2f72134 languageName: node linkType: hard @@ -3739,46 +3686,6 @@ __metadata: languageName: node linkType: hard -"@vitest/expect@npm:2.1.4": - version: 2.1.4 - resolution: "@vitest/expect@npm:2.1.4" - dependencies: - "@vitest/spy": "npm:2.1.4" - "@vitest/utils": "npm:2.1.4" - chai: "npm:^5.1.2" - tinyrainbow: "npm:^1.2.0" - checksum: 10c0/cd20ec6f92479fe5d155221d7623cf506a84e10f537639c93b8a2ffba7314b65f0fcab3754ba31308a0381470fea2e3c53d283e5f5be2c592a69d7e817a85571 - languageName: node - linkType: hard - -"@vitest/mocker@npm:2.1.4": - version: 2.1.4 - resolution: "@vitest/mocker@npm:2.1.4" - dependencies: - "@vitest/spy": "npm:2.1.4" - estree-walker: "npm:^3.0.3" - magic-string: "npm:^0.30.12" - peerDependencies: - msw: ^2.4.9 - vite: ^5.0.0 - peerDependenciesMeta: - msw: - optional: true - vite: - optional: true - checksum: 10c0/3327ec34d05f25e17c0a083877e204a31ffc4150fb259e8f82191aa5328f456e81374b977e56db17c835bd29a7eaba249e011c21b27a52bf31fd4127104d4662 - languageName: node - linkType: hard - -"@vitest/pretty-format@npm:2.1.4, @vitest/pretty-format@npm:^2.1.4": - version: 2.1.4 - resolution: "@vitest/pretty-format@npm:2.1.4" - dependencies: - tinyrainbow: "npm:^1.2.0" - checksum: 10c0/dc20f04f64c95731bf9640fc53ae918d928ab93e70a56d9e03f201700098cdb041b50a8f6a5f30604d4a048c15f315537453f33054e29590a05d5b368ae6849d - languageName: node - linkType: hard - "@vitest/runner@npm:1.6.0": version: 1.6.0 resolution: "@vitest/runner@npm:1.6.0" @@ -3790,16 +3697,6 @@ __metadata: languageName: node linkType: hard -"@vitest/runner@npm:2.1.4": - version: 2.1.4 - resolution: "@vitest/runner@npm:2.1.4" - dependencies: - "@vitest/utils": "npm:2.1.4" - pathe: "npm:^1.1.2" - checksum: 10c0/be51bb7f63b6d524bed2b44bafa8022ac5019bc01a411497c8b607d13601dae40a592bad6b8e21096f02827bd256296354947525d038a2c04032fdaa9ca991f0 - languageName: node - linkType: hard - "@vitest/snapshot@npm:1.6.0": version: 1.6.0 resolution: "@vitest/snapshot@npm:1.6.0" @@ -3811,17 +3708,6 @@ __metadata: languageName: node linkType: hard -"@vitest/snapshot@npm:2.1.4": - version: 2.1.4 - resolution: "@vitest/snapshot@npm:2.1.4" - dependencies: - "@vitest/pretty-format": "npm:2.1.4" - magic-string: "npm:^0.30.12" - pathe: "npm:^1.1.2" - checksum: 10c0/50e15398420870755e03d7d0cb7825642021e4974cb26760b8159f0c8273796732694b6a9a703a7cff88790ca4bb09f38bfc174396bcc7cbb93b96e5ac21d1d7 - languageName: node - linkType: hard - "@vitest/spy@npm:1.6.0": version: 1.6.0 resolution: "@vitest/spy@npm:1.6.0" @@ -3831,15 +3717,6 @@ __metadata: languageName: node linkType: hard -"@vitest/spy@npm:2.1.4": - version: 2.1.4 - resolution: "@vitest/spy@npm:2.1.4" - dependencies: - tinyspy: "npm:^3.0.2" - checksum: 10c0/a983efa140fa5211dc96a0c7c5110883c8095d00c45e711ecde1cc4a862560055b0e24907ae55970ab4a034e52265b7e8e70168f0da4b500b448d3d214eb045e - languageName: node - linkType: hard - "@vitest/utils@npm:1.6.0": version: 1.6.0 resolution: "@vitest/utils@npm:1.6.0" @@ -3852,17 +3729,6 @@ __metadata: languageName: node linkType: hard -"@vitest/utils@npm:2.1.4": - version: 2.1.4 - resolution: "@vitest/utils@npm:2.1.4" - dependencies: - "@vitest/pretty-format": "npm:2.1.4" - loupe: "npm:^3.1.2" - tinyrainbow: "npm:^1.2.0" - checksum: 10c0/fd632dbc2496d14bcc609230f1dad73039c9f52f4ca533d6b68fa1a04dd448e03510f2a8e4a368fd274cbb8902a6cd800140ab366dd055256beb2c0dcafcd9f2 - languageName: node - linkType: hard - "@w3ux/crypto@npm:1.0.0": version: 1.0.0 resolution: "@w3ux/crypto@npm:1.0.0" @@ -3986,30 +3852,30 @@ __metadata: languageName: node linkType: hard -"@wagmi/connectors@npm:5.3.7": - version: 5.3.7 - resolution: "@wagmi/connectors@npm:5.3.7" +"@wagmi/connectors@npm:5.3.10": + version: 5.3.10 + resolution: "@wagmi/connectors@npm:5.3.10" dependencies: - "@coinbase/wallet-sdk": "npm:4.2.1" + "@coinbase/wallet-sdk": "npm:4.2.3" "@metamask/sdk": "npm:0.30.1" - "@safe-global/safe-apps-provider": "npm:0.18.3" + "@safe-global/safe-apps-provider": "npm:0.18.4" "@safe-global/safe-apps-sdk": "npm:9.1.0" "@walletconnect/ethereum-provider": "npm:2.17.0" cbw-sdk: "npm:@coinbase/wallet-sdk@3.9.3" peerDependencies: - "@wagmi/core": 2.14.4 + "@wagmi/core": 2.14.6 typescript: ">=5.0.4" viem: 2.x peerDependenciesMeta: typescript: optional: true - checksum: 10c0/076aa064ef4d845aee2b28daecaaaa0693c9e86c505236aa87f75274b134990b7f39c1494795040c91bbbf363c47aa273ba70869e2dcc5d97e9f159c971f5000 + checksum: 10c0/683affe0fe0a319fa7e84d9eca6069a12fed288c9caea589ef6547af530111a18538546babc15719b023cbbf1f324ccc59c668163aed7cc21ab84bb906f84cca languageName: node linkType: hard -"@wagmi/core@npm:2.14.4": - version: 2.14.4 - resolution: "@wagmi/core@npm:2.14.4" +"@wagmi/core@npm:2.14.6": + version: 2.14.6 + resolution: "@wagmi/core@npm:2.14.6" dependencies: eventemitter3: "npm:5.0.1" mipd: "npm:0.0.7" @@ -4023,7 +3889,7 @@ __metadata: optional: true typescript: optional: true - checksum: 10c0/eb7eba5e07a7d6a2b4578d389a31857c8dcf65a51225e00235b4271a058cdf57b170bc1a79818712efc5cd487158619ca8ddbe8b93df93ba0dddb2c38547647f + checksum: 10c0/bc79ba678f00da5e769526875698e9dc1464fc650f3db27ecf9865b78f0690b7006bb36b0ea0acf6deb9ea5d5a84d343fc8ec6efaa9e9a73868ddca9a8eb046e languageName: node linkType: hard @@ -4344,6 +4210,51 @@ __metadata: languageName: node linkType: hard +"@wry/caches@npm:^1.0.0": + version: 1.0.1 + resolution: "@wry/caches@npm:1.0.1" + dependencies: + tslib: "npm:^2.3.0" + checksum: 10c0/a7bca3377f1131d3f1080f2e39d0692c9d1ca86bfd55734786f167f46aad28a4c8e772107324e8319843fb8068fdf98abcdea376d8a589316b1f0cdadf81f8b1 + languageName: node + linkType: hard + +"@wry/context@npm:^0.7.0": + version: 0.7.4 + resolution: "@wry/context@npm:0.7.4" + dependencies: + tslib: "npm:^2.3.0" + checksum: 10c0/6cc8249b8ba195cda7643bffb30969e33d54a99f118a29dd12f1c34064ee0adf04253cfa0ba5b9893afde0a9588745828962877b9585106f7488e8299757638b + languageName: node + linkType: hard + +"@wry/equality@npm:^0.5.6": + version: 0.5.7 + resolution: "@wry/equality@npm:0.5.7" + dependencies: + tslib: "npm:^2.3.0" + checksum: 10c0/8503ff6d4eb80f303d1387e71e51da59ccfc2160fa6d464618be80946fe43a654ea73f0c5b90d659fc4dfc3e38cbbdd6650d595fe5865be476636e444470853e + languageName: node + linkType: hard + +"@wry/trie@npm:^0.4.3": + version: 0.4.3 + resolution: "@wry/trie@npm:0.4.3" + dependencies: + tslib: "npm:^2.3.0" + checksum: 10c0/1a14edba595b1967d0cf38208c2660b2952a8e8a649bb669b67907df48f602c7f2acbe16c1e1b115afa7d7effb9f1a4dbde38eef16ee92e7521a511262a53281 + languageName: node + linkType: hard + +"@wry/trie@npm:^0.5.0": + version: 0.5.0 + resolution: "@wry/trie@npm:0.5.0" + dependencies: + tslib: "npm:^2.3.0" + checksum: 10c0/8c8cfcac96ba4bc69dabf02740e19e613f501b398e80bacc32cd95e87228f75ecb41cd1a76a65abae9756c0f61ab3536e0da52de28857456f9381ffdf5995d3e + languageName: node + linkType: hard + "@zondax/ledger-js@npm:^0.11.0": version: 0.11.0 resolution: "@zondax/ledger-js@npm:0.11.0" @@ -4413,7 +4324,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.11.0, acorn@npm:^8.12.1, acorn@npm:^8.9.0": +"acorn@npm:^8.11.0, acorn@npm:^8.14.0, acorn@npm:^8.9.0": version: 8.14.0 resolution: "acorn@npm:8.14.0" bin: @@ -4548,6 +4459,7 @@ __metadata: i18next-browser-languagedetector: "npm:^8.0.0" lodash.debounce: "npm:^4.0.8" lodash.throttle: "npm:^4.1.1" + plugin-staking-api: "workspace:*" qrcode-generator: "npm:1.4.4" rc-slider: "npm:^11.1.6" react: "npm:^18.3.1" @@ -4702,13 +4614,6 @@ __metadata: languageName: node linkType: hard -"assertion-error@npm:^2.0.1": - version: 2.0.1 - resolution: "assertion-error@npm:2.0.1" - checksum: 10c0/bbbcb117ac6480138f8c93cf7f535614282dea9dc828f540cdece85e3c665e8f78958b96afac52f29ff883c72638e6a87d469ecc9fe5bc902df03ed24a55dba8 - languageName: node - linkType: hard - "async-mutex@npm:^0.2.6": version: 0.2.6 resolution: "async-mutex@npm:0.2.6" @@ -4797,9 +4702,9 @@ __metadata: linkType: hard "bn.js@npm:^4.11.9": - version: 4.12.0 - resolution: "bn.js@npm:4.12.0" - checksum: 10c0/9736aaa317421b6b3ed038ff3d4491935a01419ac2d83ddcfebc5717385295fcfcf0c57311d90fe49926d0abbd7a9dbefdd8861e6129939177f7e67ebc645b21 + version: 4.12.1 + resolution: "bn.js@npm:4.12.1" + checksum: 10c0/b7f37a0cd5e4b79142b6f4292d518b416be34ae55d6dd6b0f66f96550c8083a50ffbbf8bda8d0ab471158cb81aa74ea4ee58fe33c7802e4a30b13810e98df116 languageName: node linkType: hard @@ -5004,19 +4909,6 @@ __metadata: languageName: node linkType: hard -"chai@npm:^5.1.2": - version: 5.1.2 - resolution: "chai@npm:5.1.2" - dependencies: - assertion-error: "npm:^2.0.1" - check-error: "npm:^2.1.1" - deep-eql: "npm:^5.0.1" - loupe: "npm:^3.1.0" - pathval: "npm:^2.0.0" - checksum: 10c0/6c04ff8495b6e535df9c1b062b6b094828454e9a3c9493393e55b2f4dbff7aa2a29a4645133cad160fb00a16196c4dc03dc9bb37e1f4ba9df3b5f50d7533a736 - languageName: node - linkType: hard - "chalk@npm:^4.0.0, chalk@npm:^4.1.1": version: 4.1.2 resolution: "chalk@npm:4.1.2" @@ -5045,13 +4937,6 @@ __metadata: languageName: node linkType: hard -"check-error@npm:^2.1.1": - version: 2.1.1 - resolution: "check-error@npm:2.1.1" - checksum: 10c0/979f13eccab306cf1785fa10941a590b4e7ea9916ea2a4f8c87f0316fc3eab07eabefb6e587424ef0f88cbcd3805791f172ea739863ca3d7ce2afc54641c7f0e - languageName: node - linkType: hard - "chokidar@npm:>=3.0.0 <4.0.0, chokidar@npm:^3.5.1, chokidar@npm:^3.6.0": version: 3.6.0 resolution: "chokidar@npm:3.6.0" @@ -5402,7 +5287,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.3.5, debug@npm:^4.3.7, debug@npm:~4.3.1, debug@npm:~4.3.2": +"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.3.5, debug@npm:~4.3.1, debug@npm:~4.3.2": version: 4.3.7 resolution: "debug@npm:4.3.7" dependencies: @@ -5453,13 +5338,6 @@ __metadata: languageName: node linkType: hard -"deep-eql@npm:^5.0.1": - version: 5.0.2 - resolution: "deep-eql@npm:5.0.2" - checksum: 10c0/7102cf3b7bb719c6b9c0db2e19bf0aa9318d141581befe8c7ce8ccd39af9eaa4346e5e05adef7f9bd7015da0f13a3a25dcfe306ef79dc8668aedbecb658dd247 - languageName: node - linkType: hard - "deep-is@npm:^0.1.3": version: 0.1.4 resolution: "deep-is@npm:0.1.4" @@ -5623,15 +5501,15 @@ __metadata: linkType: hard "electron-to-chromium@npm:^1.5.41": - version: 1.5.55 - resolution: "electron-to-chromium@npm:1.5.55" - checksum: 10c0/1b9e0970a591d342cf4d4c95b63bcdb8bffed01edb7c8baed8dd54ea769c8b33c07484c94a031a20363a8129ca2ad1d612ce4ca55ec831244240ae1e6bcdf07c + version: 1.5.57 + resolution: "electron-to-chromium@npm:1.5.57" + checksum: 10c0/42b969681985016be6069ae68cf29e84ba3f2191fcb7f9d3355e83e81da8dbd100e4b5c9d69b88637003e06dc1860125a50332ec0caee49fd9c2c4ab62feb288 languageName: node linkType: hard "elliptic@npm:^6.5.7": - version: 6.6.0 - resolution: "elliptic@npm:6.6.0" + version: 6.6.1 + resolution: "elliptic@npm:6.6.1" dependencies: bn.js: "npm:^4.11.9" brorand: "npm:^1.1.0" @@ -5640,7 +5518,7 @@ __metadata: inherits: "npm:^2.0.4" minimalistic-assert: "npm:^1.0.1" minimalistic-crypto-utils: "npm:^1.0.1" - checksum: 10c0/42eb3492e218017bf8923a5d14a86f414952f2f771361805b3ae9f380923b5da53e203d0d92be95cb0a248858a78db7db5934a346e268abb757e6fe561d401c9 + checksum: 10c0/8b24ef782eec8b472053793ea1e91ae6bee41afffdfcb78a81c0a53b191e715cbe1292aa07165958a9bbe675bd0955142560b1a007ffce7d6c765bcaf951a867 languageName: node linkType: hard @@ -5753,8 +5631,8 @@ __metadata: linkType: hard "es-abstract@npm:^1.17.5, es-abstract@npm:^1.22.1, es-abstract@npm:^1.22.3, es-abstract@npm:^1.23.0, es-abstract@npm:^1.23.1, es-abstract@npm:^1.23.2, es-abstract@npm:^1.23.3": - version: 1.23.3 - resolution: "es-abstract@npm:1.23.3" + version: 1.23.4 + resolution: "es-abstract@npm:1.23.4" dependencies: array-buffer-byte-length: "npm:^1.0.1" arraybuffer.prototype.slice: "npm:^1.0.3" @@ -5771,7 +5649,7 @@ __metadata: function.prototype.name: "npm:^1.1.6" get-intrinsic: "npm:^1.2.4" get-symbol-description: "npm:^1.0.2" - globalthis: "npm:^1.0.3" + globalthis: "npm:^1.0.4" gopd: "npm:^1.0.1" has-property-descriptors: "npm:^1.0.2" has-proto: "npm:^1.0.3" @@ -5787,10 +5665,10 @@ __metadata: is-string: "npm:^1.0.7" is-typed-array: "npm:^1.1.13" is-weakref: "npm:^1.0.2" - object-inspect: "npm:^1.13.1" + object-inspect: "npm:^1.13.3" object-keys: "npm:^1.1.1" object.assign: "npm:^4.1.5" - regexp.prototype.flags: "npm:^1.5.2" + regexp.prototype.flags: "npm:^1.5.3" safe-array-concat: "npm:^1.1.2" safe-regex-test: "npm:^1.0.3" string.prototype.trim: "npm:^1.2.9" @@ -5802,7 +5680,7 @@ __metadata: typed-array-length: "npm:^1.0.6" unbox-primitive: "npm:^1.0.2" which-typed-array: "npm:^1.1.15" - checksum: 10c0/d27e9afafb225c6924bee9971a7f25f20c314f2d6cb93a63cada4ac11dcf42040896a6c22e5fb8f2a10767055ed4ddf400be3b1eb12297d281726de470b75666 + checksum: 10c0/70c56ec479d57e63387f561bb50c80587f4a52010868787e3d4b4f95301edf5ba98d70ffd0ba56eb4722c48c578870ff2a8825236a948cfa483f76015d134acb languageName: node linkType: hard @@ -6397,13 +6275,6 @@ __metadata: languageName: node linkType: hard -"expect-type@npm:^1.1.0": - version: 1.1.0 - resolution: "expect-type@npm:1.1.0" - checksum: 10c0/5af0febbe8fe18da05a6d51e3677adafd75213512285408156b368ca471252565d5ca6e59e4bddab25121f3cfcbbebc6a5489f8cc9db131cc29e69dcdcc7ae15 - languageName: node - linkType: hard - "exponential-backoff@npm:^3.1.1": version: 3.1.1 resolution: "exponential-backoff@npm:3.1.1" @@ -6615,8 +6486,8 @@ __metadata: linkType: hard "framer-motion@npm:^11.11.1": - version: 11.11.11 - resolution: "framer-motion@npm:11.11.11" + version: 11.11.15 + resolution: "framer-motion@npm:11.11.15" dependencies: tslib: "npm:^2.4.0" peerDependencies: @@ -6630,7 +6501,7 @@ __metadata: optional: true react-dom: optional: true - checksum: 10c0/9a9e86d0e211809a184c0ee9fb3b1d692244103c12b6a666581b782dba13e00363c383e590c503cf06cde49626439a5e92a06f40b075ed3139dd8c54375b7796 + checksum: 10c0/515d1f758ebf8c7257f80586fe459acbb77f323e7a2f3e8b20bf53023960f5e54b1cf364b39fa2ded2ec0558c66e78c681b3903cfac11fefdb51efcfaff21443 languageName: node linkType: hard @@ -6901,6 +6772,24 @@ __metadata: languageName: node linkType: hard +"graphql-tag@npm:^2.12.6": + version: 2.12.6 + resolution: "graphql-tag@npm:2.12.6" + dependencies: + tslib: "npm:^2.1.0" + peerDependencies: + graphql: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + checksum: 10c0/7763a72011bda454ed8ff1a0d82325f43ca6478e4ce4ab8b7910c4c651dd00db553132171c04d80af5d5aebf1ef6a8a9fd53ccfa33b90ddc00aa3d4be6114419 + languageName: node + linkType: hard + +"graphql@npm:^16.9.0": + version: 16.9.0 + resolution: "graphql@npm:16.9.0" + checksum: 10c0/a8850f077ff767377237d1f8b1da2ec70aeb7623cdf1dfc9e1c7ae93accc0c8149c85abe68923be9871a2934b1bce5a2496f846d4d56e1cfb03eaaa7ddba9b6a + languageName: node + linkType: hard + "h3@npm:^1.12.0, h3@npm:^1.13.0": version: 1.13.0 resolution: "h3@npm:1.13.0" @@ -7002,6 +6891,15 @@ __metadata: languageName: node linkType: hard +"hoist-non-react-statics@npm:^3.3.2": + version: 3.3.2 + resolution: "hoist-non-react-statics@npm:3.3.2" + dependencies: + react-is: "npm:^16.7.0" + checksum: 10c0/fe0889169e845d738b59b64badf5e55fa3cf20454f9203d1eb088df322d49d4318df774828e789898dcb280e8a5521bb59b3203385662ca5e9218a6ca5820e74 + languageName: node + linkType: hard + "howler@npm:^2.2.3": version: 2.2.4 resolution: "howler@npm:2.2.4" @@ -7980,13 +7878,6 @@ __metadata: languageName: node linkType: hard -"loupe@npm:^3.1.0, loupe@npm:^3.1.2": - version: 3.1.2 - resolution: "loupe@npm:3.1.2" - checksum: 10c0/b13c02e3ddd6a9d5f8bf84133b3242de556512d824dddeea71cce2dbd6579c8f4d672381c4e742d45cf4423d0701765b4a6e5fbc24701def16bc2b40f8daa96a - languageName: node - linkType: hard - "lower-case@npm:^2.0.2": version: 2.0.2 resolution: "lower-case@npm:2.0.2" @@ -8012,7 +7903,7 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.30.12, magic-string@npm:^0.30.5": +"magic-string@npm:^0.30.5": version: 0.30.12 resolution: "magic-string@npm:0.30.12" dependencies: @@ -8249,14 +8140,14 @@ __metadata: linkType: hard "mlly@npm:^1.4.2, mlly@npm:^1.7.1, mlly@npm:^1.7.2": - version: 1.7.2 - resolution: "mlly@npm:1.7.2" + version: 1.7.3 + resolution: "mlly@npm:1.7.3" dependencies: - acorn: "npm:^8.12.1" + acorn: "npm:^8.14.0" pathe: "npm:^1.1.2" - pkg-types: "npm:^1.2.0" + pkg-types: "npm:^1.2.1" ufo: "npm:^1.5.4" - checksum: 10c0/e5a990b9d895477f3d3dfceec9797e41d6f029ce3b1b2dcf787d4b7500b4caff4b3cdc0ae5cb82c14b469b85209fe3d7368286415c0ca5415b163219fc6b5f21 + checksum: 10c0/b530887fe95a6e3458c1b24e9775dc61c167d402126f2f5f13a13845a3fb77c3db8d79cb32077c98679a392d8ecfdc4e5df3d6925bf650d807dc2dfe8cc35b53 languageName: node linkType: hard @@ -8411,13 +8302,13 @@ __metadata: linkType: hard "node-gyp-build@npm:^4.2.0, node-gyp-build@npm:^4.3.0": - version: 4.8.2 - resolution: "node-gyp-build@npm:4.8.2" + version: 4.8.3 + resolution: "node-gyp-build@npm:4.8.3" bin: node-gyp-build: bin.js node-gyp-build-optional: optional.js node-gyp-build-test: build-test.js - checksum: 10c0/d816b43974d31d6257b6e87d843f2626c72389a285208394bc57a7766b210454d2642860a5e5b5c333d8ecabaeabad3b31b94f58cf8ca1aabdef0c320d02baaa + checksum: 10c0/a7f43c4128d817db80bb0884f631121449ac586b4a3e708eab0db6fcb7fa0d2e66f6d7d4ee1f49469409de4a9b2e413926befe2dce70b850c6c583a3bbe228d2 languageName: node linkType: hard @@ -8502,7 +8393,7 @@ __metadata: languageName: node linkType: hard -"object-inspect@npm:^1.13.1": +"object-inspect@npm:^1.13.1, object-inspect@npm:^1.13.3": version: 1.13.3 resolution: "object-inspect@npm:1.13.3" checksum: 10c0/cc3f15213406be89ffdc54b525e115156086796a515410a8d390215915db9f23c8eab485a06f1297402f440a33715fe8f71a528c1dcbad6e1a3bcaf5a46921d4 @@ -8627,6 +8518,18 @@ __metadata: languageName: node linkType: hard +"optimism@npm:^0.18.0": + version: 0.18.0 + resolution: "optimism@npm:0.18.0" + dependencies: + "@wry/caches": "npm:^1.0.0" + "@wry/context": "npm:^0.7.0" + "@wry/trie": "npm:^0.4.3" + tslib: "npm:^2.3.0" + checksum: 10c0/8e97c6d660cb80cf5f444209b9dd29ee6951fa7b344d4c4fc6d4aaf0ad0710dddaf834d0f5d7211b3658b15ef6c6a22cbcb98c7a8121e3fee9666fe0fd62d876 + languageName: node + linkType: hard + "optionator@npm:^0.9.3": version: 0.9.4 resolution: "optionator@npm:0.9.4" @@ -8823,13 +8726,6 @@ __metadata: languageName: node linkType: hard -"pathval@npm:^2.0.0": - version: 2.0.0 - resolution: "pathval@npm:2.0.0" - checksum: 10c0/602e4ee347fba8a599115af2ccd8179836a63c925c23e04bd056d0674a64b39e3a081b643cc7bc0b84390517df2d800a46fcc5598d42c155fe4977095c2f77c5 - languageName: node - linkType: hard - "picocolors@npm:^1.0.0, picocolors@npm:^1.1.0, picocolors@npm:^1.1.1": version: 1.1.1 resolution: "picocolors@npm:1.1.1" @@ -8903,7 +8799,7 @@ __metadata: languageName: node linkType: hard -"pkg-types@npm:^1.0.3, pkg-types@npm:^1.2.0": +"pkg-types@npm:^1.0.3, pkg-types@npm:^1.2.1": version: 1.2.1 resolution: "pkg-types@npm:1.2.1" dependencies: @@ -8914,6 +8810,15 @@ __metadata: languageName: node linkType: hard +"plugin-staking-api@workspace:*, plugin-staking-api@workspace:packages/plugin-staking-api": + version: 0.0.0-use.local + resolution: "plugin-staking-api@workspace:packages/plugin-staking-api" + dependencies: + "@apollo/client": "npm:^3.11.10" + graphql: "npm:^16.9.0" + languageName: unknown + linkType: soft + "pngjs@npm:^5.0.0": version: 5.0.0 resolution: "pngjs@npm:5.0.0" @@ -8988,13 +8893,13 @@ __metadata: linkType: hard "postcss@npm:^8.4.43": - version: 8.4.48 - resolution: "postcss@npm:8.4.48" + version: 8.4.49 + resolution: "postcss@npm:8.4.49" dependencies: nanoid: "npm:^3.3.7" picocolors: "npm:^1.1.1" source-map-js: "npm:^1.2.1" - checksum: 10c0/d586361fda12fc7ab5650ce9b5763fc61d6ea2cecac9da98fceea6a3f27e42ed34db830582411bc06743492d9bb414c52b0c81da65440682d244d692da2f928a + checksum: 10c0/f1b3f17aaf36d136f59ec373459f18129908235e65dbdc3aee5eef8eba0756106f52de5ec4682e29a2eab53eb25170e7e871b3e4b52a8f1de3d344a514306be3 languageName: node linkType: hard @@ -9313,7 +9218,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^16.13.1": +"react-is@npm:^16.13.1, react-is@npm:^16.7.0": version: 16.13.1 resolution: "react-is@npm:16.13.1" checksum: 10c0/33977da7a5f1a287936a0c85639fec6ca74f4f15ef1e59a6bc20338fc73dc69555381e211f7a3529b8150a1f71e4225525b41b60b52965bda53ce7d47377ada1 @@ -9472,7 +9377,7 @@ __metadata: languageName: node linkType: hard -"regexp.prototype.flags@npm:^1.5.2": +"regexp.prototype.flags@npm:^1.5.2, regexp.prototype.flags@npm:^1.5.3": version: 1.5.3 resolution: "regexp.prototype.flags@npm:1.5.3" dependencies: @@ -9484,6 +9389,21 @@ __metadata: languageName: node linkType: hard +"rehackt@npm:^0.1.0": + version: 0.1.0 + resolution: "rehackt@npm:0.1.0" + peerDependencies: + "@types/react": "*" + react: "*" + peerDependenciesMeta: + "@types/react": + optional: true + react: + optional: true + checksum: 10c0/3d838bfee84ec06c976f21027936f3b0fdb7660ab8a2d4d3f19c65e0daa78a268aa81352311352b8576b89a074714b36ae6cd5bdadb6e975eca079f2b342de73 + languageName: node + linkType: hard + "require-directory@npm:^2.1.1": version: 2.1.1 resolution: "require-directory@npm:2.1.1" @@ -9564,6 +9484,13 @@ __metadata: languageName: node linkType: hard +"response-iterator@npm:^0.2.6": + version: 0.2.6 + resolution: "response-iterator@npm:0.2.6" + checksum: 10c0/60e6b552cd610643269d5d916d270cc8a4bea978cbe4779d6ef8083ac6b89006795508034e4c4ebe204eded75ac32bf243589ba82c1184591dde0674f6db785e + languageName: node + linkType: hard + "retry@npm:^0.12.0": version: 0.12.0 resolution: "retry@npm:0.12.0" @@ -9623,27 +9550,27 @@ __metadata: linkType: hard "rollup@npm:^4.20.0": - version: 4.25.0 - resolution: "rollup@npm:4.25.0" - dependencies: - "@rollup/rollup-android-arm-eabi": "npm:4.25.0" - "@rollup/rollup-android-arm64": "npm:4.25.0" - "@rollup/rollup-darwin-arm64": "npm:4.25.0" - "@rollup/rollup-darwin-x64": "npm:4.25.0" - "@rollup/rollup-freebsd-arm64": "npm:4.25.0" - "@rollup/rollup-freebsd-x64": "npm:4.25.0" - "@rollup/rollup-linux-arm-gnueabihf": "npm:4.25.0" - "@rollup/rollup-linux-arm-musleabihf": "npm:4.25.0" - "@rollup/rollup-linux-arm64-gnu": "npm:4.25.0" - "@rollup/rollup-linux-arm64-musl": "npm:4.25.0" - "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.25.0" - "@rollup/rollup-linux-riscv64-gnu": "npm:4.25.0" - "@rollup/rollup-linux-s390x-gnu": "npm:4.25.0" - "@rollup/rollup-linux-x64-gnu": "npm:4.25.0" - "@rollup/rollup-linux-x64-musl": "npm:4.25.0" - "@rollup/rollup-win32-arm64-msvc": "npm:4.25.0" - "@rollup/rollup-win32-ia32-msvc": "npm:4.25.0" - "@rollup/rollup-win32-x64-msvc": "npm:4.25.0" + version: 4.26.0 + resolution: "rollup@npm:4.26.0" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.26.0" + "@rollup/rollup-android-arm64": "npm:4.26.0" + "@rollup/rollup-darwin-arm64": "npm:4.26.0" + "@rollup/rollup-darwin-x64": "npm:4.26.0" + "@rollup/rollup-freebsd-arm64": "npm:4.26.0" + "@rollup/rollup-freebsd-x64": "npm:4.26.0" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.26.0" + "@rollup/rollup-linux-arm-musleabihf": "npm:4.26.0" + "@rollup/rollup-linux-arm64-gnu": "npm:4.26.0" + "@rollup/rollup-linux-arm64-musl": "npm:4.26.0" + "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.26.0" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.26.0" + "@rollup/rollup-linux-s390x-gnu": "npm:4.26.0" + "@rollup/rollup-linux-x64-gnu": "npm:4.26.0" + "@rollup/rollup-linux-x64-musl": "npm:4.26.0" + "@rollup/rollup-win32-arm64-msvc": "npm:4.26.0" + "@rollup/rollup-win32-ia32-msvc": "npm:4.26.0" + "@rollup/rollup-win32-x64-msvc": "npm:4.26.0" "@types/estree": "npm:1.0.6" fsevents: "npm:~2.3.2" dependenciesMeta: @@ -9687,7 +9614,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 10c0/fdb4d530bc942024f6e9ee3b5051fd2a8ef545a3869a689f6d1fea0f391e0b257835b639c01dc3024dbafe3790c8210aea547bcddbdb38c002087e5bf4630ad8 + checksum: 10c0/a4375787b95bc3b55d38bbb8dec5f6a63862b08369b9562a2d38efadd400ca42a79406b8f09670a0deb0cc9cd72cca1c0be317302190d1f7feff597003d951bc languageName: node linkType: hard @@ -10424,6 +10351,13 @@ __metadata: languageName: node linkType: hard +"symbol-observable@npm:^4.0.0": + version: 4.0.0 + resolution: "symbol-observable@npm:4.0.0" + checksum: 10c0/5e9a3ab08263a6be8cbee76587ad5880dcc62a47002787ed5ebea56b1eb30dc87da6f0183d67e88286806799fbe21c69077fbd677be4be2188e92318d6c6f31d + languageName: node + linkType: hard + "synckit@npm:^0.9.1": version: 0.9.2 resolution: "synckit@npm:0.9.2" @@ -10485,20 +10419,13 @@ __metadata: languageName: node linkType: hard -"tinybench@npm:^2.5.1, tinybench@npm:^2.9.0": +"tinybench@npm:^2.5.1": version: 2.9.0 resolution: "tinybench@npm:2.9.0" checksum: 10c0/c3500b0f60d2eb8db65250afe750b66d51623057ee88720b7f064894a6cb7eb93360ca824a60a31ab16dab30c7b1f06efe0795b352e37914a9d4bad86386a20c languageName: node linkType: hard -"tinyexec@npm:^0.3.1": - version: 0.3.1 - resolution: "tinyexec@npm:0.3.1" - checksum: 10c0/11e7a7c5d8b3bddf8b5cbe82a9290d70a6fad84d528421d5d18297f165723cb53d2e737d8f58dcce5ca56f2e4aa2d060f02510b1f8971784f97eb3e9aec28f09 - languageName: node - linkType: hard - "tinypool@npm:^0.8.3": version: 0.8.4 resolution: "tinypool@npm:0.8.4" @@ -10506,20 +10433,6 @@ __metadata: languageName: node linkType: hard -"tinypool@npm:^1.0.1": - version: 1.0.1 - resolution: "tinypool@npm:1.0.1" - checksum: 10c0/90939d6a03f1519c61007bf416632dc1f0b9c1a9dd673c179ccd9e36a408437384f984fc86555a5d040d45b595abc299c3bb39d354439e98a090766b5952e73d - languageName: node - linkType: hard - -"tinyrainbow@npm:^1.2.0": - version: 1.2.0 - resolution: "tinyrainbow@npm:1.2.0" - checksum: 10c0/7f78a4b997e5ba0f5ecb75e7ed786f30bab9063716e7dff24dd84013fb338802e43d176cb21ed12480561f5649a82184cf31efb296601a29d38145b1cdb4c192 - languageName: node - linkType: hard - "tinyspy@npm:^2.2.0": version: 2.2.1 resolution: "tinyspy@npm:2.2.1" @@ -10527,13 +10440,6 @@ __metadata: languageName: node linkType: hard -"tinyspy@npm:^3.0.2": - version: 3.0.2 - resolution: "tinyspy@npm:3.0.2" - checksum: 10c0/55ffad24e346622b59292e097c2ee30a63919d5acb7ceca87fc0d1c223090089890587b426e20054733f97a58f20af2c349fb7cc193697203868ab7ba00bcea0 - languageName: node - linkType: hard - "tmp@npm:^0.2.1": version: 0.2.3 resolution: "tmp@npm:0.2.3" @@ -10566,6 +10472,15 @@ __metadata: languageName: node linkType: hard +"ts-invariant@npm:^0.10.3": + version: 0.10.3 + resolution: "ts-invariant@npm:0.10.3" + dependencies: + tslib: "npm:^2.1.0" + checksum: 10c0/2fbc178d5903d325ee0b87fad38827eac11888b6e86979b06754fd4bcdcf44c2a99b8bcd5d59d149c0464ede55ae810b02a2aee6835ad10efe4dd0e22efd68c0 + languageName: node + linkType: hard + "tsconfck@npm:^3.0.3": version: 3.1.4 resolution: "tsconfck@npm:3.1.4" @@ -10606,7 +10521,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.0.0, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.1, tslib@npm:^2.4.0, tslib@npm:^2.6.2, tslib@npm:^2.7.0, tslib@npm:^2.8.0": +"tslib@npm:^2.0.0, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.3.1, tslib@npm:^2.4.0, tslib@npm:^2.6.2, tslib@npm:^2.7.0, tslib@npm:^2.8.0": version: 2.8.1 resolution: "tslib@npm:2.8.1" checksum: 10c0/9c4759110a19c53f992d9aae23aac5ced636e99887b51b9e61def52611732872ff7668757d4e4c61f19691e36f4da981cd9485e869b4a7408d689f6bf1f14e62 @@ -11020,8 +10935,8 @@ __metadata: linkType: hard "viem@npm:^2.1.1, viem@npm:^2.21.35": - version: 2.21.44 - resolution: "viem@npm:2.21.44" + version: 2.21.45 + resolution: "viem@npm:2.21.45" dependencies: "@noble/curves": "npm:1.6.0" "@noble/hashes": "npm:1.5.0" @@ -11037,7 +10952,7 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 10c0/5d0f69c4f5e640f033d9fa12de8cc06b8f8d06df0fb00d7006de0c6baf97dd5c995ddc116c1514c66dc1b02e75a48f6add1d0c94df490c6ee24641bbfb69b343 + checksum: 10c0/3ed93c58dc125c97f35970b17d3dca6dfe6a8811d45fed84dc5bdd4a57860c880ae5a41a45cb8caa500925450b52d3a225d8def8422e7dd7ecead3bcc3921ec8 languageName: node linkType: hard @@ -11070,20 +10985,6 @@ __metadata: languageName: node linkType: hard -"vite-node@npm:2.1.4": - version: 2.1.4 - resolution: "vite-node@npm:2.1.4" - dependencies: - cac: "npm:^6.7.14" - debug: "npm:^4.3.7" - pathe: "npm:^1.1.2" - vite: "npm:^5.0.0" - bin: - vite-node: vite-node.mjs - checksum: 10c0/4c09128f27ded3f681d2c034f0bb74856cef9cad9c437951bc7f95dab92fc95a5d1ee7f54e32067458ad1105e1f24975e8bc64aa7ed8f5b33449b4f5fea65919 - languageName: node - linkType: hard - "vite-plugin-checker@npm:^0.7.0": version: 0.7.2 resolution: "vite-plugin-checker@npm:0.7.2" @@ -11272,56 +11173,6 @@ __metadata: languageName: node linkType: hard -"vitest@npm:^2.1.2": - version: 2.1.4 - resolution: "vitest@npm:2.1.4" - dependencies: - "@vitest/expect": "npm:2.1.4" - "@vitest/mocker": "npm:2.1.4" - "@vitest/pretty-format": "npm:^2.1.4" - "@vitest/runner": "npm:2.1.4" - "@vitest/snapshot": "npm:2.1.4" - "@vitest/spy": "npm:2.1.4" - "@vitest/utils": "npm:2.1.4" - chai: "npm:^5.1.2" - debug: "npm:^4.3.7" - expect-type: "npm:^1.1.0" - magic-string: "npm:^0.30.12" - pathe: "npm:^1.1.2" - std-env: "npm:^3.7.0" - tinybench: "npm:^2.9.0" - tinyexec: "npm:^0.3.1" - tinypool: "npm:^1.0.1" - tinyrainbow: "npm:^1.2.0" - vite: "npm:^5.0.0" - vite-node: "npm:2.1.4" - why-is-node-running: "npm:^2.3.0" - peerDependencies: - "@edge-runtime/vm": "*" - "@types/node": ^18.0.0 || >=20.0.0 - "@vitest/browser": 2.1.4 - "@vitest/ui": 2.1.4 - happy-dom: "*" - jsdom: "*" - peerDependenciesMeta: - "@edge-runtime/vm": - optional: true - "@types/node": - optional: true - "@vitest/browser": - optional: true - "@vitest/ui": - optional: true - happy-dom: - optional: true - jsdom: - optional: true - bin: - vitest: vitest.mjs - checksum: 10c0/96068ea6d40186c8ca946ee688ba3717dbd0947c56a2bcd625c14a5df25776342ff2f1eb326b06cb6f538d9568633b3e821991aa7c95a98e458be9fc2b3ca59e - languageName: node - linkType: hard - "void-elements@npm:3.1.0": version: 3.1.0 resolution: "void-elements@npm:3.1.0" @@ -11390,11 +11241,11 @@ __metadata: linkType: hard "wagmi@npm:^2.12.25": - version: 2.12.29 - resolution: "wagmi@npm:2.12.29" + version: 2.12.32 + resolution: "wagmi@npm:2.12.32" dependencies: - "@wagmi/connectors": "npm:5.3.7" - "@wagmi/core": "npm:2.14.4" + "@wagmi/connectors": "npm:5.3.10" + "@wagmi/core": "npm:2.14.6" use-sync-external-store: "npm:1.2.0" peerDependencies: "@tanstack/react-query": ">=5.0.0" @@ -11404,7 +11255,7 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 10c0/a6386dd7e64a6630affd6dafcb898175061a4a98c7167f69797a3ee1da14a7e555364809238ed114ed77998667a0f20efe398d6e007a5284da7ee98b63dda4d5 + checksum: 10c0/eea7ac5ffedd83d65529591a0a80873b2bf04f93906a8f29fea7704970a8c7dd732871a13f2dfcaa5e34462c2d25038596eb782142d9493bc396e18d3adf6b01 languageName: node linkType: hard @@ -11553,7 +11404,7 @@ __metadata: languageName: node linkType: hard -"why-is-node-running@npm:^2.2.2, why-is-node-running@npm:^2.3.0": +"why-is-node-running@npm:^2.2.2": version: 2.3.0 resolution: "why-is-node-running@npm:2.3.0" dependencies: @@ -11778,6 +11629,22 @@ __metadata: languageName: node linkType: hard +"zen-observable-ts@npm:^1.2.5": + version: 1.2.5 + resolution: "zen-observable-ts@npm:1.2.5" + dependencies: + zen-observable: "npm:0.8.15" + checksum: 10c0/21d586f3d0543e1d6f05d9333a137b407dbf337907c1ee1c2fa7a7da044f7e1262e4baf4ef8902f230c6f5acb561047659eb7df73df33307233cc451efe46db1 + languageName: node + linkType: hard + +"zen-observable@npm:0.8.15": + version: 0.8.15 + resolution: "zen-observable@npm:0.8.15" + checksum: 10c0/71cc2f2bbb537300c3f569e25693d37b3bc91f225cefce251a71c30bc6bb3e7f8e9420ca0eb57f2ac9e492b085b8dfa075fd1e8195c40b83c951dd59c6e4fbf8 + languageName: node + linkType: hard + "zustand@npm:5.0.0": version: 5.0.0 resolution: "zustand@npm:5.0.0"