diff --git a/.circleci/config.yml b/.circleci/config.yml index 34af55e64..d63e1854b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -167,7 +167,7 @@ commands: jobs: build-core: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:16.15.1 working_directory: ~/web3-onboard-monorepo/packages/core steps: - node-build-steps @@ -275,7 +275,7 @@ jobs: - node-build-steps build-react: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:16.15.1 working_directory: ~/web3-onboard-monorepo/packages/react steps: - node-build-steps @@ -293,7 +293,7 @@ jobs: - node-build-steps build-web3auth: docker: - - image: cimg/node:16.18.1 + - image: cimg/node:18.0.0 working_directory: ~/web3-onboard-monorepo/packages/web3auth steps: - node-build-steps @@ -305,7 +305,7 @@ jobs: - node-build-steps build-vue: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:16.15.1 working_directory: ~/web3-onboard-monorepo/packages/vue steps: - node-build-steps @@ -341,7 +341,7 @@ jobs: - node-build-steps build-uauth: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:18.0.0 working_directory: ~/web3-onboard-monorepo/packages/uauth steps: - node-build-steps @@ -395,7 +395,7 @@ jobs: - node-build-steps build-arcana-auth: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:18.0.0 working_directory: ~/web3-onboard-monorepo/packages/arcana-auth steps: - node-build-steps @@ -407,7 +407,7 @@ jobs: - node-build-steps build-venly: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:18.18.2 working_directory: ~/web3-onboard-monorepo/packages/venly steps: - node-build-steps @@ -432,7 +432,7 @@ jobs: resource_class: large build-solid: docker: - - image: cimg/node:16.14.2 + - image: cimg/node:16.15.1 working_directory: ~/web3-onboard-monorepo/packages/solid steps: - node-build-steps @@ -448,6 +448,12 @@ jobs: working_directory: ~/web3-onboard-monorepo/packages/particle-network steps: - node-build-steps + build-wagmi: + docker: + - image: cimg/node:18.0.0 + working_directory: ~/web3-onboard-monorepo/packages/wagmi + steps: + - node-build-steps build-passport: docker: - image: cimg/node:18.0.0 @@ -458,7 +464,7 @@ jobs: # Build staging/Alpha releases build-staging-core: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:16.15.1 working_directory: ~/web3-onboard-monorepo/packages/core steps: - node-staging-build-steps @@ -566,7 +572,7 @@ jobs: - node-staging-build-steps build-staging-react: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:16.15.1 working_directory: ~/web3-onboard-monorepo/packages/react steps: - node-staging-build-steps @@ -584,7 +590,7 @@ jobs: - node-staging-build-steps build-staging-web3auth: docker: - - image: cimg/node:16.18.1 + - image: cimg/node:18.0.0 working_directory: ~/web3-onboard-monorepo/packages/web3auth steps: - node-staging-build-steps @@ -596,7 +602,7 @@ jobs: - node-staging-build-steps build-staging-vue: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:16.15.1 working_directory: ~/web3-onboard-monorepo/packages/vue steps: - node-staging-build-steps @@ -632,7 +638,7 @@ jobs: - node-staging-build-steps build-staging-uauth: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:18.0.0 working_directory: ~/web3-onboard-monorepo/packages/uauth steps: - node-staging-build-steps @@ -686,7 +692,7 @@ jobs: - node-staging-build-steps build-staging-arcana-auth: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:18.0.0 working_directory: ~/web3-onboard-monorepo/packages/arcana-auth steps: - node-staging-build-steps @@ -698,7 +704,7 @@ jobs: - node-staging-build-steps build-staging-venly: docker: - - image: cimg/node:16.13.1 + - image: cimg/node:18.18.2 working_directory: ~/web3-onboard-monorepo/packages/venly steps: - node-staging-build-steps @@ -722,7 +728,7 @@ jobs: - node-staging-build-steps build-staging-solid: docker: - - image: cimg/node:16.14.2 + - image: cimg/node:16.15.1 working_directory: ~/web3-onboard-monorepo/packages/solid steps: - node-staging-build-steps @@ -738,6 +744,12 @@ jobs: working_directory: ~/web3-onboard-monorepo/packages/particle-network steps: - node-staging-build-steps + build-staging-wagmi: + docker: + - image: cimg/node:18.0.0 + working_directory: ~/web3-onboard-monorepo/packages/wagmi + steps: + - node-staging-build-steps build-staging-passport: docker: - image: cimg/node:18.0.0 @@ -753,6 +765,7 @@ workflows: <<: *deploy_production_filters - build-staging-common: <<: *deploy_staging_filters + core: jobs: - build-core: @@ -1030,6 +1043,12 @@ workflows: <<: *deploy_production_filters - build-staging-particle: <<: *deploy_staging_filters + wagmi: + jobs: + - build-wagmi: + <<: *deploy_production_filters + - build-staging-wagmi: + <<: *deploy_staging_filters passport: jobs: - build-passport: diff --git a/docs/package.json b/docs/package.json index 804ddd022..49e5db854 100644 --- a/docs/package.json +++ b/docs/package.json @@ -12,8 +12,8 @@ "format": "prettier --plugin-search-dir . --write .", "prepare": "svelte-kit sync", "test": "playwright test", - "w3o-latest-prod": "yarn add '@web3-onboard/core' '@web3-onboard/coinbase' '@web3-onboard/transaction-preview' '@web3-onboard/dcent' '@web3-onboard/frontier' '@web3-onboard/fortmatic' '@web3-onboard/frame' '@web3-onboard/gas' '@web3-onboard/gnosis' '@web3-onboard/keepkey' '@web3-onboard/keystone' '@web3-onboard/ledger' '@web3-onboard/infinity-wallet' '@web3-onboard/injected-wallets' '@web3-onboard/magic' '@web3-onboard/phantom' '@web3-onboard/portis' '@web3-onboard/sequence' '@web3-onboard/trezor' '@web3-onboard/trust' '@web3-onboard/torus' '@web3-onboard/taho' '@web3-onboard/web3auth' '@web3-onboard/walletconnect' '@web3-onboard/enkrypt' '@web3-onboard/mew-wallet' '@web3-onboard/xdefi' '@web3-onboard/uauth' '@web3-onboard/zeal' '@web3-onboard/cede-store' '@web3-onboard/blocto'", - "w3o-latest-alpha": "yarn add '@web3-onboard/core@next' '@web3-onboard/coinbase@next' '@web3-onboard/transaction-preview@next' '@web3-onboard/dcent@next' '@web3-onboard/frontier@next' '@web3-onboard/fortmatic@next' '@web3-onboard/frame@next' '@web3-onboard/gas@next' '@web3-onboard/gnosis@next' '@web3-onboard/keepkey@next' '@web3-onboard/keystone@next' '@web3-onboard/ledger@next' '@web3-onboard/infinity-wallet@next' '@web3-onboard/injected-wallets@next' '@web3-onboard/magic@next' '@web3-onboard/phantom@next' '@web3-onboard/portis@next' '@web3-onboard/sequence@next' '@web3-onboard/trezor@next' '@web3-onboard/trust@next' '@web3-onboard/torus@next' '@web3-onboard/taho@next' '@web3-onboard/web3auth@next' '@web3-onboard/walletconnect@next' '@web3-onboard/enkrypt@next' '@web3-onboard/mew-wallet@next' '@web3-onboard/xdefi@next' '@web3-onboard/uauth@next' '@web3-onboard/zeal@next' '@web3-onboard/cede-store@next' '@web3-onboard/blocto@next'" + "w3o-latest-prod": "yarn add '@web3-onboard/core' '@web3-onboard/coinbase' '@web3-onboard/transaction-preview' '@web3-onboard/dcent' '@web3-onboard/frontier' '@web3-onboard/fortmatic' '@web3-onboard/frame' '@web3-onboard/gas' '@web3-onboard/gnosis' '@web3-onboard/keepkey' '@web3-onboard/keystone' '@web3-onboard/ledger' '@web3-onboard/infinity-wallet' '@web3-onboard/injected-wallets' '@web3-onboard/magic' '@web3-onboard/phantom' '@web3-onboard/portis' '@web3-onboard/sequence' '@web3-onboard/trezor' '@web3-onboard/trust' '@web3-onboard/torus' '@web3-onboard/taho' '@web3-onboard/web3auth' '@web3-onboard/walletconnect' '@web3-onboard/enkrypt' '@web3-onboard/mew-wallet' '@web3-onboard/xdefi' '@web3-onboard/uauth' '@web3-onboard/zeal' '@web3-onboard/cede-store' '@web3-onboard/blocto' '@web3-onboard/capsule' '@web3-onboard/particle-network' '@web3-onboard/metamask' '@web3-onboard/bitget' '@web3-onboard/arcana-auth' '@web3-onboard/venly'", + "w3o-latest-alpha": "yarn add '@web3-onboard/core@next' '@web3-onboard/coinbase@next' '@web3-onboard/transaction-preview@next' '@web3-onboard/dcent@next' '@web3-onboard/frontier@next' '@web3-onboard/fortmatic@next' '@web3-onboard/frame@next' '@web3-onboard/gas@next' '@web3-onboard/gnosis@next' '@web3-onboard/keepkey@next' '@web3-onboard/keystone@next' '@web3-onboard/ledger@next' '@web3-onboard/infinity-wallet@next' '@web3-onboard/injected-wallets@next' '@web3-onboard/magic@next' '@web3-onboard/phantom@next' '@web3-onboard/portis@next' '@web3-onboard/sequence@next' '@web3-onboard/trezor@next' '@web3-onboard/trust@next' '@web3-onboard/torus@next' '@web3-onboard/taho@next' '@web3-onboard/web3auth@next' '@web3-onboard/walletconnect@next' '@web3-onboard/enkrypt@next' '@web3-onboard/mew-wallet@next' '@web3-onboard/xdefi@next' '@web3-onboard/uauth@next' '@web3-onboard/zeal@next' '@web3-onboard/cede-store@next' '@web3-onboard/blocto@next' '@web3-onboard/capsule@next' '@web3-onboard/metamask@next' '@web3-onboard/bitget@next' '@web3-onboard/arcana-auth@next' '@web3-onboard/venly@next' '@web3-onboard/particle-network@next'" }, "devDependencies": { "@algolia/client-search": "^4.17.0", @@ -36,7 +36,7 @@ "prettier-plugin-svelte": "^2.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "rollup-plugin-polyfill-node": "^0.12.0", + "rollup-plugin-polyfill-node": "^0.13.0", "shiki": "^0.12.0", "stream-browserify": "^3.0.0", "stream-http": "^3.2.0", @@ -44,7 +44,7 @@ "svelte-check": "^3.0.1", "svelte-preprocess": "^5.0.3", "tslib": "^2.4.1", - "typescript": "^5.0.4", + "typescript": "^5.4.5", "unplugin-icons": "^0.14.0", "vite": "^4.5.3" }, @@ -52,43 +52,41 @@ "dependencies": { "@safe-global/safe-apps-provider": "^0.18.0", "@safe-global/safe-apps-sdk": "^8.1.0", - "@web3-onboard/arcana-auth": "^2.0.0", - "@web3-onboard/bitget": "^2.0.0", - "@web3-onboard/blocto": "^2.0.0", - "@web3-onboard/capsule": "^2.0.3", - "@web3-onboard/cede-store": "^2.2.0", - "@web3-onboard/coinbase": "^2.2.7", - "@web3-onboard/core": "^2.21.6", - "@web3-onboard/dcent": "^2.2.7", - "@web3-onboard/enkrypt": "^2.0.4", - "@web3-onboard/fortmatic": "^2.0.19", - "@web3-onboard/frame": "^2.0.2", - "@web3-onboard/frontier": "^2.0.4", - "@web3-onboard/gas": "^2.1.8", - "@web3-onboard/gnosis": "^2.2.2", - "@web3-onboard/infinity-wallet": "^2.0.4", - "@web3-onboard/injected-wallets": "^2.10.17", - "@web3-onboard/keepkey": "^2.3.7", - "@web3-onboard/keystone": "^2.3.7", - "@web3-onboard/ledger": "^2.6.0", - "@web3-onboard/magic": "^2.1.7", - "@web3-onboard/metamask": "^2.0.7", - "@web3-onboard/mew-wallet": "^2.0.4", - "@web3-onboard/phantom": "^2.0.3", - "@web3-onboard/portis": "^2.1.7", - "@web3-onboard/sequence": "^2.0.8", - "@web3-onboard/taho": "^2.0.5", - "@web3-onboard/torus": "^2.2.6", - "@web3-onboard/transaction-preview": "^2.0.8", - "@web3-onboard/trezor": "^2.4.3", - "@web3-onboard/trust": "^2.0.4", - "@web3-onboard/uauth": "^2.1.1", - "@web3-onboard/venly": "^2.0.0", - "@web3-onboard/walletconnect": "^2.5.5", - "@web3-onboard/web3auth": "^2.2.3", - "@web3-onboard/xdefi": "^2.0.4", - "@web3-onboard/zeal": "^2.0.4", - "@web3-onboard/particle-network": "^2.0.1", + "@web3-onboard/bitget": "^2.1.0", + "@web3-onboard/blocto": "^2.1.0", + "@web3-onboard/cede-store": "^2.3.0", + "@web3-onboard/coinbase": "^2.3.0", + "@web3-onboard/core": "^2.22.0", + "@web3-onboard/dcent": "^2.2.8", + "@web3-onboard/enkrypt": "^2.1.0", + "@web3-onboard/fortmatic": "^2.1.0", + "@web3-onboard/frame": "^2.1.0", + "@web3-onboard/frontier": "^2.1.0", + "@web3-onboard/gas": "^2.2.0", + "@web3-onboard/gnosis": "^2.3.0", + "@web3-onboard/infinity-wallet": "^2.1.0", + "@web3-onboard/injected-wallets": "^2.11.0", + "@web3-onboard/keepkey": "^2.3.8", + "@web3-onboard/keystone": "^2.3.8", + "@web3-onboard/ledger": "^2.7.0", + "@web3-onboard/magic": "^2.2.0", + "@web3-onboard/metamask": "^2.1.0", + "@web3-onboard/mew-wallet": "^2.1.0", + "@web3-onboard/particle-network": "^2.1.0", + "@web3-onboard/phantom": "^2.1.0", + "@web3-onboard/portis": "^2.2.0", + "@web3-onboard/sequence": "^2.1.0", + "@web3-onboard/taho": "^2.1.0", + "@web3-onboard/torus": "^2.3.0", + "@web3-onboard/transaction-preview": "^2.1.0", + "@web3-onboard/trezor": "^2.4.4", + "@web3-onboard/trust": "^2.1.0", + "@web3-onboard/uauth": "^2.2.0", + "@web3-onboard/venly": "^2.1.0", + "@web3-onboard/walletconnect": "^2.6.0", + "@web3-onboard/web3auth": "^2.3.0", + "@web3-onboard/xdefi": "^2.1.0", + "@web3-onboard/zeal": "^2.1.0", "animejs": "^3.2.1", "bnc-sdk": "^4.6.6", "ethers": "^5.7.0", diff --git a/docs/src/lib/services/onboard.js b/docs/src/lib/services/onboard.js index e58ef2b97..0aba76b2f 100644 --- a/docs/src/lib/services/onboard.js +++ b/docs/src/lib/services/onboard.js @@ -54,19 +54,19 @@ const intiOnboard = async (theme) => { const { default: xdefiModule } = await import('@web3-onboard/xdefi') const { default: cedeModule } = await import('@web3-onboard/cede-store') const { default: frameModule } = await import('@web3-onboard/frame') - const { default: arcanaModule } = await import('@web3-onboard/arcana-auth') + // const { default: arcanaModule } = await import('@web3-onboard/arcana-auth') const { default: bloctoModule } = await import('@web3-onboard/blocto') const { default: venlyModule } = await import('@web3-onboard/venly') const { default: bitgetModule } = await import('@web3-onboard/bitget') - const { default: capsuleModule, Environment } = await import('@web3-onboard/capsule') + // // const { default: capsuleModule, Environment } = await import('@web3-onboard/capsule') const { default: particleAuthModule } = await import('@web3-onboard/particle-network') const INFURA_ID = '8b60d52405694345a99bcb82e722e0af' const injected = injectedModule() const infinityWallet = infinityWalletModule() - const arcanaWallet = arcanaModule({ - clientID: 'xar_test_c9c3bc702eb13255c58dab0e74cfa859711c13cb' - }) + // const arcanaWallet = arcanaModule({ + // clientID: 'xar_test_c9c3bc702eb13255c58dab0e74cfa859711c13cb' + // }) const coinbase = coinbaseModule() const metamask = metamaskModule({ options: { @@ -131,10 +131,10 @@ const intiOnboard = async (theme) => { environment: 'staging' }) - const capsule = capsuleModule({ - environment: Environment.DEVELOPMENT, - apiKey: '992bbd9146d5de8ad0419f141d9a7ca7' - }) + // // const capsule = capsuleModule({ + // // environment: Environment.DEVELOPMENT, + // // apiKey: '992bbd9146d5de8ad0419f141d9a7ca7' + // // }) const particle = particleAuthModule({ projectId: 'b385ccf0-73c3-485a-9941-159b7855b806', @@ -158,7 +158,7 @@ const intiOnboard = async (theme) => { xdefi, uauth, cede, - arcanaWallet, + // arcanaWallet, torus, sequence, dcent, @@ -172,11 +172,9 @@ const intiOnboard = async (theme) => { frame, infinityWallet, blocto, - capsule, particle, + venly // capsule - - // venly ], chains: [ { diff --git a/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md b/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md index 4488aab3a..3048f872c 100644 --- a/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md +++ b/docs/src/routes/docs/[...1]overview/[...1]introduction/+page.md @@ -102,6 +102,7 @@ const MAINNET_RPC_URL = 'https://mainnet.infura.io/v3/' const injected = injectedModule() const onboard = Onboard({ + // This javascript object is unordered meaning props do not require a certain order wallets: [injected], chains: [ { diff --git a/docs/src/routes/docs/[...2]getting-started/[...1]installation/+page.md b/docs/src/routes/docs/[...2]getting-started/[...1]installation/+page.md index 5a76b1313..851183733 100644 --- a/docs/src/routes/docs/[...2]getting-started/[...1]installation/+page.md +++ b/docs/src/routes/docs/[...2]getting-started/[...1]installation/+page.md @@ -110,6 +110,7 @@ const appMetadata = { ```ts const onboard = Onboard({ + // This javascript object is unordered meaning props do not require a certain order wallets, chains, appMetadata diff --git a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md index 0edaa8c3e..e6ee59706 100644 --- a/docs/src/routes/docs/[...3]modules/[...1]core/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...1]core/+page.md @@ -108,6 +108,10 @@ type InitOptions { wallets: WalletInit[] chains: Chain[] appMetadata?: AppMetadata + /** Web3-Onboard module to add Wagmi support + * see https://www.npmjs.com/package/@web3-onboard/wagmi + */ + wagmi?: typeof wagmi i18n?: i18nOptions accountCenter?: AccountCenterOptions apiKey?: string @@ -388,6 +392,57 @@ It will allow you to customize the look and feel of Web3 Onboard, try different --- +#### wagmi + +To add [WAGMI API](https://wagmi.sh/core/getting-started) support to your project you can simply install `web3-onboard/wagmi` import and pass in the [wagmi package](/docs/modules/wagmi) export directly into your onboard configuration. After doing so you can use all of the native WAGMI API functions directly from `@web3-onboard/wagmi`. This will give access to all WAGMI function available on or before `@wagmi/core` version `2.10.4`. +After initialization an up-to-date WAGMI config will will be available from the onboard state object `onboard.state.get().wagmiConfig` which will need to be passed as the first prop of most [@wagmi/core](https://wagmi.sh/core/getting-started) methods. Wallets will also have a [wagmiConnector](#state) prop within the onboard state object which will allow you to target specific wallets for interactions. This can also be bi-passed if the primary or most recently connected wallet is the wallet meant for the transactions. +The config and connectors can be used with the WAGMI API returned from this module or an external WAGMI instance. + +Full documentation for the `@web3-onboard/wagmi` module can be found [here](/docs/modules/wagmi). + +```typescript +import Onboard from '@web3-onboard/core' +import wagmi from '@web3-onboard/wagmi' +import { + sendTransaction as wagmiSendTransaction, + switchChain, + disconnect, + getConnectors +} from '@web3-onboard/wagmi' + +const injected = injectedModule() + +const onboard = Onboard({ + // This javascript object is unordered meaning props do not require a certain order + wagmi, + wallets: [injected], + chains: [ + { + id: '0x1', + token: 'ETH', + label: 'Ethereum', + rpcUrl: 'https://mainnet.infura.io/v3/17c1e1500e384acfb6a72c5d2e67742e' + } + ] + // ... other Onboard options +}) + +const sendTransaction = async () => { + // current primary wallet - as multiple wallets can connect this value is the currently active + const [activeWallet] = onboard.state.get().wallets + const { wagmiConnector } = activeWallet + const wagmiConfig = onboard.state.get().wagmiConfig + const result = await wagmiSendTransaction(wagmiConfig, { + to: toAddress, + // desired connector to send txn from + connector: wagmiConnector, + value: parseEther('0.001') + }) + console.log(result) +} +``` +--- + #### disableFontDownload If set to `true` the default `Inter` font will not be imported and instead the web based `sans-serif` font will be used if a font is not defined through the `Theme` or exposed css variable. @@ -621,6 +676,7 @@ import injectedModule from '@web3-onboard/injected-wallets' const injected = injectedModule() const onboard = Onboard({ + // This javascript object is unordered meaning props do not require a certain order // head to https://explorer.blocknative.com/account to sign up for free apiKey: 'xxx387fb-bxx1-4xxc-a0x3-9d37e426xxxx' wallets: [injected], @@ -844,6 +900,13 @@ type WalletState = { accounts: Account[] chains: ConnectedChain[] instance?: unknown + /** + * WAGMI Connector object + * Can be used to leverage all WAGMI functions from + * the @web3-onboard/wagmi module + * See https://www.npmjs.com/package/@web3-onboard/wagmi for more details + */ + wagmiConnector?: Connector } type Account = { diff --git a/docs/src/routes/docs/[...3]modules/[...3]react/+page.md b/docs/src/routes/docs/[...3]modules/[...3]react/+page.md index 9bee922bb..7f52e9c91 100644 --- a/docs/src/routes/docs/[...3]modules/[...3]react/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...3]react/+page.md @@ -46,6 +46,7 @@ const rpcUrl = `https://mainnet.infura.io/v3/${infuraKey}` // initialize Onboard init({ + // This javascript object is unordered meaning props do not require a certain order apiKey, wallets: [injected], chains: [ @@ -136,11 +137,11 @@ function MyApp({ Component, pageProps }) { export default MyApp ``` -## `init` +## init The `init` function must be called before any hooks can be used. The `init` function just initializes `web3-onboard` and makes it available for all hooks to use. For reference check out the [initialization docs for `@web3-onboard/core`](../../modules/core.md#initialization) -## `useConnectWallet` +## useConnectWallet This hook allows you to connect the user's wallet and track the state of the connection status and the wallet that is connected. @@ -202,7 +203,7 @@ setPrimaryWallet(wallets[1]) setPrimaryWallet(wallets[1], wallets[1].accounts[2].address) ``` -## `useSetChain` +## useSetChain This hook allows you to set the chain of a user's connected wallet, keep track of the current chain the user is connected to and the status of setting the chain. Passing in a wallet label will operate on that connected wallet, otherwise it will default to the last connected wallet. If a chain was instantiated without an rpcUrl, token, or label, add these options for wallets that require this information for adding a new chain. @@ -242,7 +243,64 @@ const [ ] = useSetChain() ``` -## `useNotifications` +## useWagmiConfig + +This hook allows you to get the WagmiConfig (Config from the Wagmi project) from @web3-onboard/core if W3O has been initialized with the [WAGMI property imported and passing into the web3-onboard/core config](../../modules/wagmi.md#usage). + +```ts +import Onboard from '@web3-onboard/core' +import injectedModule from '@web3-onboard/injected-wallets' +import wagmi from '@web3-onboard/wagmi' +import { + sendTransaction as wagmiSendTransaction, + switchChain, + disconnect, + getConnectors +} from '@web3-onboard/wagmi' +import { parseEther, isHex, fromHex } from 'viem' + +const injected = injectedModule() + +const onboard = Onboard({ + wagmi, + wallets: [injected], + chains: [ + { + id: '0x1', + token: 'ETH', + label: 'Ethereum', + rpcUrl: 'https://mainnet.infura.io/v3/17c1e1500e384acfb6a72c5d2e67742e' + } + ] + // ... other Onboard options +}) + +const sendTransaction = async () => { + // current primary wallet - as multiple wallets can connect this value is the currently active + const [activeWallet] = onboard.state.get().wallets + const { wagmiConnector } = activeWallet + const wagmiConfig = onboard.state.get().wagmiConfig + const result = await wagmiSendTransaction(wagmiConfig, { + to: toAddress, + // desired connector to send txn from + connector: wagmiConnector, + value: parseEther('0.001') + }) + console.log(result) +} + +async function signMessage(chainId) { + // current primary wallet - as multiple wallets can connect this value is the currently active + const [activeWallet] = onboard.state.get().wallets + const wagmiConfig = onboard.state.get().wagmiConfig + await wagmiSignMessage(wagmiConfig, { + message: 'This is my message to you', + connector: activeWallet.wagmiConnector + }) +} +``` + +## useNotifications This hook allows the dev to access all notifications if enabled, send custom notifications, and update notify **note** This requires an API key be added to the initialization, enabled by default if an API key exists @@ -409,7 +467,7 @@ const sendTransactionWithPreFlightNotifications = async () => { ``` -## `useWallets` +## useWallets This hook allows you to track the state of all the currently connected wallets: @@ -421,7 +479,7 @@ type UseWallets = (): WalletState[] const connectedWallets = useWallets() ``` -## `useAccountCenter` +## useAccountCenter This hook allows you to track and update the state of the Account Center: @@ -448,7 +506,7 @@ type AccountCenter = { const updateAccountCenter = useAccountCenter() ``` -## `useSetLocale` +## useSetLocale This hook allows you to set the locale of your application to allow language updates associated with the i18n config: diff --git a/docs/src/routes/docs/[...3]modules/[...5]transaction-preview/+page.md b/docs/src/routes/docs/[...3]modules/[...5]transaction-preview/+page.md index f465e47a3..caf5647f1 100644 --- a/docs/src/routes/docs/[...3]modules/[...5]transaction-preview/+page.md +++ b/docs/src/routes/docs/[...3]modules/[...5]transaction-preview/+page.md @@ -10,6 +10,10 @@ title: Transaction Preview # {$frontmatter.title} +:::admonition type=warning +_Transaction Preview support is sunset on July 1st 2024 and will no longer work after that date_ +::: + A modular UI for previewing a single or set of unsigned Ethereum transactions. Transaction Preview Flow image diff --git a/docs/src/routes/docs/[...3]modules/[...8]wagmi/+page.md b/docs/src/routes/docs/[...3]modules/[...8]wagmi/+page.md new file mode 100644 index 000000000..137b32b6e --- /dev/null +++ b/docs/src/routes/docs/[...3]modules/[...8]wagmi/+page.md @@ -0,0 +1,125 @@ +--- +title: WAGMI +--- + +# {$frontmatter.title} + +A module for connecting wallets using WAGMI which returns a WAGMI config object to be used with [@wagmi/core](https://wagmi.sh/core/getting-started) functions. + +### Install + + + + +```sh copy +yarn add @web3-onboard/wagmi +``` + + + + +```sh copy +npm install @web3-onboard/wagmi +``` + + + + +## WAGMI Usage + +To add [WAGMI API](https://wagmi.sh/core/getting-started) support to your project you can simply install `web3-onboard/wagmi` import and pass in the WAGMI package default export directly into your onboard configuration. After doing so you can use all of the native WAGMI API functions directly from `@web3-onboard/wagmi`. This will give access to all WAGMI function available on or before `@wagmi/core` version `2.10.4`. + +Full documentation for `wagmi/core` API functions can be found [here](https://wagmi.sh/core/getting-started). + +### wagmiConfig + +After initialization an up-to-date WAGMI config will will be available from the onboard state object `onboard.state.get().wagmiConfig` which will need to be passed as the first prop of most [@wagmi/core](https://wagmi.sh/core/getting-started) methods. + +### wagmiConnector and Connectors +Wallets will also have a `wagmiConnector` prop within the onboard state object which will allow you to target specific wallets for interactions. This can also be bi-passed if the primary or most recently connected wallet is the wallet meant for the transactions. +The config and connectors can be used with the WAGMI API returned from this module or an external WAGMI instance. + +## WAGMI Example + +This example assumes you have already setup web3-onboard to connect wallets to your dapp. +For more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install). + +```ts +import Onboard from '@web3-onboard/core' +import injectedModule from '@web3-onboard/injected-wallets' +import wagmi from '@web3-onboard/wagmi' +import { + sendTransaction as wagmiSendTransaction, + switchChain, + disconnect, + getConnectors +} from '@web3-onboard/wagmi' +import { parseEther, isHex, fromHex } from 'viem' + +const injected = injectedModule() + +const onboard = Onboard({ + // This javascript object is unordered meaning props do not require a certain order + wagmi, + wallets: [injected], + chains: [ + { + id: '0x1', + token: 'ETH', + label: 'Ethereum', + rpcUrl: 'https://mainnet.infura.io/v3/17c1e1500e384acfb6a72c5d2e67742e' + } + ] + // ... other Onboard options +}) + +const sendTransaction = async () => { + // current primary wallet - as multiple wallets can connect this value is the currently active + const [activeWallet] = onboard.state.get().wallets + const { wagmiConnector } = activeWallet + const wagmiConfig = onboard.state.get().wagmiConfig + const result = await wagmiSendTransaction(wagmiConfig, { + to: toAddress, + // desired connector to send txn from + connector: wagmiConnector, + value: parseEther('0.001') + }) + console.log(result) +} + +async function signMessage(chainId) { + // current primary wallet - as multiple wallets can connect this value is the currently active + const [activeWallet] = onboard.state.get().wallets + const wagmiConfig = onboard.state.get().wagmiConfig + await wagmiSignMessage(wagmiConfig, { + message: 'This is my message to you', + connector: activeWallet.wagmiConnector + }) +} + +async function switchWagmiChain(chainId) { + // current primary wallet - as multiple wallets can connect this value is the currently active + const [activeWallet] = onboard.state.get().wallets + const { wagmiConnector } = activeWallet + let chainAsNumber + if (isHex(chainId)) { + chainAsNumber = fromHex(chainId, 'number') + } else if (!isHex(chainId) && typeof chainId === 'number') { + chainAsNumber = chainId + } else { + throw new Error('Invalid chainId') + } + const wagmiConfig = onboard.state.get().wagmiConfig + await switchChain(wagmiConfig, { + chainId: chainAsNumber, + connector: wagmiConnector + }) +} + +async function disconnectWallet() { + const wagmiConfig = onboard.state.get().wagmiConfig + const [activeWallet] = onboard.state.get().wallets + const { wagmiConnector } = activeWallet + disconnect(wagmiConfig, { connector: wagmiConnector }) +} +``` diff --git a/docs/yarn.lock b/docs/yarn.lock index 66b8883c3..4e5a36adb 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -335,18 +335,6 @@ resolved "https://registry.yarnpkg.com/@antfu/utils/-/utils-0.7.8.tgz#86cb0974bcab7e64e29b57d6d9021102307257de" integrity sha512-rWQkqXRESdjXtc+7NRfK9lASQjpXJu1ayp7qi1d23zZorY+wBHVLHHoVcMsEnkqEBWTFqbztO7/QdJFzyEcLTg== -"@arcana/auth@^1.0.7": - version "1.0.10" - resolved "https://registry.yarnpkg.com/@arcana/auth/-/auth-1.0.10.tgz#e2b1be6991d8029ff3e2ebab81db8e1b3b43ba79" - integrity sha512-8s7awiHTm5Rj3cd0dOnNoLggpVCImjE08lIFKSrQIvy9tqNY1SstTdnwYJIVoHxVL43l72EOWg7YgEZgy3dBaw== - dependencies: - "@metamask/safe-event-emitter" "^2.0.0" - "@solana/web3.js" "^1.87.3" - bs58 "^5.0.0" - eth-rpc-errors "^4.0.3" - penpal "^6.0.1" - validator "^13.11.0" - "@babel/code-frame@^7.23.5", "@babel/code-frame@^7.24.2": version "7.24.2" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.2.tgz#718b4b19841809a58b29b68cde80bc5e1aa6d9ae" @@ -355,14 +343,20 @@ "@babel/highlight" "^7.24.2" picocolors "^1.0.0" -"@babel/code-frame@~7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a" - integrity sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg== +"@babel/code-frame@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.6.tgz#ab88da19344445c3d8889af2216606d3329f3ef2" + integrity sha512-ZJhac6FkEd1yhG2AHOmfcXG4ceoLltoCVJjN5XsWN9BifBQr+cHJbWi0h68HZuSORq+3WtJ2z0hwF2NG1b5kcA== dependencies: - "@babel/highlight" "^7.10.4" + "@babel/highlight" "^7.24.6" + picocolors "^1.0.0" -"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.23.5": +"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.6.tgz#b3600217688cabb26e25f8e467019e66d71b7ae2" + integrity sha512-aC2DGhBq5eEdyXWqrDInSqQjO0k8xtPRf5YylULqx8MCd6jBtzqfta/3ETMRpuKIc5hyswfO80ObyA1MvkCcUQ== + +"@babel/compat-data@^7.23.5": version "7.24.4" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.4.tgz#6f102372e9094f25d908ca0d34fc74c74606059a" integrity sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ== @@ -398,14 +392,25 @@ "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" -"@babel/helper-annotate-as-pure@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz#e7f06737b197d580a01edf75d97e2c8be99d3882" - integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg== +"@babel/helper-annotate-as-pure@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.6.tgz#517af93abc77924f9b2514c407bbef527fb8938d" + integrity sha512-DitEzDfOMnd13kZnDqns1ccmftwJTS9DMkyn9pYTxulS7bZxUxpMly3Nf23QQ6NwA4UB8lAqjbqWtyvElEMAkg== dependencies: - "@babel/types" "^7.22.5" + "@babel/types" "^7.24.6" + +"@babel/helper-compilation-targets@^7.22.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.6.tgz#4a51d681f7680043d38e212715e2a7b1ad29cb51" + integrity sha512-VZQ57UsDGlX/5fFA7GkVPplZhHsVc+vuErWgdOiysI9Ksnw0Pbbd6pnPiR/mmJyKHgyIW0c7KT32gmhiF+cirg== + dependencies: + "@babel/compat-data" "^7.24.6" + "@babel/helper-validator-option" "^7.24.6" + browserslist "^4.22.2" + lru-cache "^5.1.1" + semver "^6.3.1" -"@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.23.6": +"@babel/helper-compilation-targets@^7.23.6": version "7.23.6" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz#4d79069b16cbcf1461289eccfbbd81501ae39991" integrity sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ== @@ -416,19 +421,19 @@ lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-create-class-features-plugin@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.5.tgz#7d19da92c7e0cd8d11c09af2ce1b8e7512a6e723" - integrity sha512-uRc4Cv8UQWnE4NXlYTIIdM7wfFkOqlFztcC/gVXDKohKoVB3OyonfelUBaJzSwpBntZ2KYGF/9S7asCHsXwW6g== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-function-name" "^7.23.0" - "@babel/helper-member-expression-to-functions" "^7.24.5" - "@babel/helper-optimise-call-expression" "^7.22.5" - "@babel/helper-replace-supers" "^7.24.1" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - "@babel/helper-split-export-declaration" "^7.24.5" +"@babel/helper-create-class-features-plugin@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.6.tgz#c50b86fa1c4ca9b7a890dc21884f097b6c4b5286" + integrity sha512-djsosdPJVZE6Vsw3kk7IPRWethP94WHGOhQTc67SNXE0ZzMhHgALw8iGmYS0TD1bbMM0VDROy43od7/hN6WYcA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.24.6" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-function-name" "^7.24.6" + "@babel/helper-member-expression-to-functions" "^7.24.6" + "@babel/helper-optimise-call-expression" "^7.24.6" + "@babel/helper-replace-supers" "^7.24.6" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.6" + "@babel/helper-split-export-declaration" "^7.24.6" semver "^6.3.1" "@babel/helper-define-polyfill-provider@^0.6.1", "@babel/helper-define-polyfill-provider@^0.6.2": @@ -447,6 +452,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167" integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA== +"@babel/helper-environment-visitor@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.6.tgz#ac7ad5517821641550f6698dd5468f8cef78620d" + integrity sha512-Y50Cg3k0LKLMjxdPjIl40SdJgMB85iXn27Vk/qbHZCFx/o5XO3PSnpi675h1KEmmDb6OFArfd5SCQEQ5Q4H88g== + "@babel/helper-function-name@^7.23.0": version "7.23.0" resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759" @@ -455,6 +465,14 @@ "@babel/template" "^7.22.15" "@babel/types" "^7.23.0" +"@babel/helper-function-name@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.6.tgz#cebdd063386fdb95d511d84b117e51fc68fec0c8" + integrity sha512-xpeLqeeRkbxhnYimfr2PC+iA0Q7ljX/d1eZ9/inYbmfG2jpl8Lu3DyXvpOAnrS5kxkfOWJjioIMQsaMBXFI05w== + dependencies: + "@babel/template" "^7.24.6" + "@babel/types" "^7.24.6" + "@babel/helper-hoist-variables@^7.22.5": version "7.22.5" resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb" @@ -462,12 +480,12 @@ dependencies: "@babel/types" "^7.22.5" -"@babel/helper-member-expression-to-functions@^7.23.0", "@babel/helper-member-expression-to-functions@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.5.tgz#5981e131d5c7003c7d1fa1ad49e86c9b097ec475" - integrity sha512-4owRteeihKWKamtqg4JmWSsEZU445xpFRXPEwp44HbgbxdWlUV1b4Agg4lkA806Lil5XM/e+FJyS0vj5T6vmcA== +"@babel/helper-member-expression-to-functions@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.6.tgz#86084f3e0e4e2169a134754df3870bc7784db71e" + integrity sha512-OTsCufZTxDUsv2/eDXanw/mUZHWOxSbEmC3pP8cgjcy5rgeVPWWMStnv274DV60JtHxTk0adT0QrCzC4M9NWGg== dependencies: - "@babel/types" "^7.24.5" + "@babel/types" "^7.24.6" "@babel/helper-module-imports@^7.24.3": version "7.24.3" @@ -476,7 +494,14 @@ dependencies: "@babel/types" "^7.24.0" -"@babel/helper-module-transforms@^7.23.3", "@babel/helper-module-transforms@^7.24.5": +"@babel/helper-module-imports@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.6.tgz#65e54ffceed6a268dc4ce11f0433b82cfff57852" + integrity sha512-a26dmxFJBF62rRO9mmpgrfTLsAuyHk4e1hKTUkD/fcMfynt8gvEKwQPQDVxWhca8dHoDck+55DFt42zV0QMw5g== + dependencies: + "@babel/types" "^7.24.6" + +"@babel/helper-module-transforms@^7.24.5": version "7.24.5" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz#ea6c5e33f7b262a0ae762fd5986355c45f54a545" integrity sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A== @@ -487,40 +512,63 @@ "@babel/helper-split-export-declaration" "^7.24.5" "@babel/helper-validator-identifier" "^7.24.5" -"@babel/helper-optimise-call-expression@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz#f21531a9ccbff644fdd156b4077c16ff0c3f609e" - integrity sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw== +"@babel/helper-module-transforms@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.6.tgz#22346ed9df44ce84dee850d7433c5b73fab1fe4e" + integrity sha512-Y/YMPm83mV2HJTbX1Qh2sjgjqcacvOlhbzdCCsSlblOKjSYmQqEbO6rUniWQyRo9ncyfjT8hnUjlG06RXDEmcA== dependencies: - "@babel/types" "^7.22.5" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-module-imports" "^7.24.6" + "@babel/helper-simple-access" "^7.24.6" + "@babel/helper-split-export-declaration" "^7.24.6" + "@babel/helper-validator-identifier" "^7.24.6" + +"@babel/helper-optimise-call-expression@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.6.tgz#f7836e3ccca3dfa02f15d2bc8b794efe75a5256e" + integrity sha512-3SFDJRbx7KuPRl8XDUr8O7GAEB8iGyWPjLKJh/ywP/Iy9WOmEfMrsWbaZpvBu2HSYn4KQygIsz0O7m8y10ncMA== + dependencies: + "@babel/types" "^7.24.6" + +"@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.6.tgz#fa02a32410a15a6e8f8185bcbf608f10528d2a24" + integrity sha512-MZG/JcWfxybKwsA9N9PmtF2lOSFSEMVCpIRrbxccZFLJPrJciJdG/UhSh5W96GEteJI2ARqm5UAHxISwRDLSNg== -"@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.24.0", "@babel/helper-plugin-utils@^7.24.5": +"@babel/helper-plugin-utils@^7.24.0", "@babel/helper-plugin-utils@^7.24.5": version "7.24.5" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz#a924607dd254a65695e5bd209b98b902b3b2f11a" integrity sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ== -"@babel/helper-replace-supers@^7.24.1": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.1.tgz#7085bd19d4a0b7ed8f405c1ed73ccb70f323abc1" - integrity sha512-QCR1UqC9BzG5vZl8BMicmZ28RuUBnHhAMddD8yHFHDRH9lLTZ9uUPehX8ctVPT8l0TKblJidqcgUUKGVrePleQ== +"@babel/helper-replace-supers@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.6.tgz#3ea87405a2986a49ab052d10e540fe036d747c71" + integrity sha512-mRhfPwDqDpba8o1F8ESxsEkJMQkUF8ZIWrAc0FtWhxnjfextxMWxr22RtFizxxSYLjVHDeMgVsRq8BBZR2ikJQ== dependencies: - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-member-expression-to-functions" "^7.23.0" - "@babel/helper-optimise-call-expression" "^7.22.5" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-member-expression-to-functions" "^7.24.6" + "@babel/helper-optimise-call-expression" "^7.24.6" -"@babel/helper-simple-access@^7.22.5", "@babel/helper-simple-access@^7.24.5": +"@babel/helper-simple-access@^7.24.5": version "7.24.5" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz#50da5b72f58c16b07fbd992810be6049478e85ba" integrity sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ== dependencies: "@babel/types" "^7.24.5" -"@babel/helper-skip-transparent-expression-wrappers@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz#007f15240b5751c537c40e77abb4e89eeaaa8847" - integrity sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q== +"@babel/helper-simple-access@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.6.tgz#1d6e04d468bba4fc963b4906f6dac6286cfedff1" + integrity sha512-nZzcMMD4ZhmB35MOOzQuiGO5RzL6tJbsT37Zx8M5L/i9KSrukGXWTjLe1knIbb/RmxoJE9GON9soq0c0VEMM5g== dependencies: - "@babel/types" "^7.22.5" + "@babel/types" "^7.24.6" + +"@babel/helper-skip-transparent-expression-wrappers@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.6.tgz#c47e9b33b7ea50d1073e125ebc26661717cb7040" + integrity sha512-jhbbkK3IUKc4T43WadP96a27oYti9gEf1LdyGSP2rHGH77kwLwfhO7TgwnWvxxQVmke0ImmCSS47vcuxEMGD3Q== + dependencies: + "@babel/types" "^7.24.6" "@babel/helper-split-export-declaration@^7.24.5": version "7.24.5" @@ -529,21 +577,43 @@ dependencies: "@babel/types" "^7.24.5" +"@babel/helper-split-export-declaration@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.6.tgz#e830068f7ba8861c53b7421c284da30ae656d7a3" + integrity sha512-CvLSkwXGWnYlF9+J3iZUvwgAxKiYzK3BWuo+mLzD/MDGOZDj7Gq8+hqaOkMxmJwmlv0iu86uH5fdADd9Hxkymw== + dependencies: + "@babel/types" "^7.24.6" + "@babel/helper-string-parser@^7.24.1": version "7.24.1" resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz#f99c36d3593db9540705d0739a1f10b5e20c696e" integrity sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ== +"@babel/helper-string-parser@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.6.tgz#28583c28b15f2a3339cfafafeaad42f9a0e828df" + integrity sha512-WdJjwMEkmBicq5T9fm/cHND3+UlFa2Yj8ALLgmoSQAJZysYbBjw+azChSGPN4DSPLXOcooGRvDwZWMcF/mLO2Q== + "@babel/helper-validator-identifier@^7.24.5": version "7.24.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz#918b1a7fa23056603506370089bd990d8720db62" integrity sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA== +"@babel/helper-validator-identifier@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.6.tgz#08bb6612b11bdec78f3feed3db196da682454a5e" + integrity sha512-4yA7s865JHaqUdRbnaxarZREuPTHrjpDT+pXoAZ1yhyo6uFnIEpS8VMu16siFOHDpZNKYv5BObhsB//ycbICyw== + "@babel/helper-validator-option@^7.23.5": version "7.23.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== +"@babel/helper-validator-option@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.6.tgz#59d8e81c40b7d9109ab7e74457393442177f460a" + integrity sha512-Jktc8KkF3zIkePb48QO+IapbXlSapOW9S+ogZZkcO6bABgYAxtZcjZ/O005111YLf+j4M84uEgwYoidDkXbCkQ== + "@babel/helpers@^7.24.5": version "7.24.5" resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.5.tgz#fedeb87eeafa62b621160402181ad8585a22a40a" @@ -553,7 +623,7 @@ "@babel/traverse" "^7.24.5" "@babel/types" "^7.24.5" -"@babel/highlight@^7.10.4", "@babel/highlight@^7.24.2": +"@babel/highlight@^7.24.2": version "7.24.5" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.5.tgz#bc0613f98e1dd0720e99b2a9ee3760194a704b6e" integrity sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw== @@ -563,33 +633,48 @@ js-tokens "^4.0.0" picocolors "^1.0.0" +"@babel/highlight@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.6.tgz#6d610c1ebd2c6e061cade0153bf69b0590b7b3df" + integrity sha512-2YnuOp4HAk2BsBrJJvYCbItHx0zWscI1C3zgWkz+wDyD9I7GIVrfnLyrR4Y1VR+7p+chAEcrgRQYZAGIKMV7vQ== + dependencies: + "@babel/helper-validator-identifier" "^7.24.6" + chalk "^2.4.2" + js-tokens "^4.0.0" + picocolors "^1.0.0" + "@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.24.0", "@babel/parser@^7.24.5": version "7.24.5" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.5.tgz#4a4d5ab4315579e5398a82dcf636ca80c3392790" integrity sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg== -"@babel/plugin-syntax-jsx@^7.24.1": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.1.tgz#3f6ca04b8c841811dbc3c5c5f837934e0d626c10" - integrity sha512-2eCtxZXf+kbkMIsXS4poTvT4Yu5rXiRa+9xGVT56raghjmBTKMpFNc9R4IDiB4emao9eO22Ox7CxuJG7BgExqA== +"@babel/parser@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.6.tgz#5e030f440c3c6c78d195528c3b688b101a365328" + integrity sha512-eNZXdfU35nJC2h24RznROuOpO94h6x8sg9ju0tT9biNtLZ2vuP8SduLqqV+/8+cebSLV9SJEAN5Z3zQbJG/M+Q== + +"@babel/plugin-syntax-jsx@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.6.tgz#bcca2964150437f88f65e3679e3d68762287b9c8" + integrity sha512-lWfvAIFNWMlCsU0DRUun2GpFwZdGTukLaHJqRh1JRb80NdAP5Sb1HDHB5X9P9OtgZHQl089UzQkpYlBq2VTPRw== dependencies: - "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-syntax-typescript@^7.24.1": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz#b3bcc51f396d15f3591683f90239de143c076844" - integrity sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw== +"@babel/plugin-syntax-typescript@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.6.tgz#769daf2982d60308bc83d8936eaecb7582463c87" + integrity sha512-TzCtxGgVTEJWWwcYwQhCIQ6WaKlo80/B+Onsk4RRCcYqpYGFcG9etPW94VToGte5AAcxRrhjPUFvUS3Y2qKi4A== dependencies: - "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-modules-commonjs@^7.24.1": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.1.tgz#e71ba1d0d69e049a22bf90b3867e263823d3f1b9" - integrity sha512-szog8fFTUxBfw0b98gEWPaEqF42ZUD/T3bkynW/wtgx2p/XCP55WEsb+VosKceRSd6njipdZvNogqdtI4Q0chw== +"@babel/plugin-transform-modules-commonjs@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.6.tgz#1b8269902f25bd91ca6427230d4735ddd1e1283e" + integrity sha512-JEV8l3MHdmmdb7S7Cmx6rbNEjRCgTQMZxllveHO0mx6uiclB0NflCawlQQ6+o5ZrwjUBYPzHm2XoK4wqGVUFuw== dependencies: - "@babel/helper-module-transforms" "^7.23.3" - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-simple-access" "^7.22.5" + "@babel/helper-module-transforms" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-simple-access" "^7.24.6" "@babel/plugin-transform-react-jsx-self@^7.23.3": version "7.24.5" @@ -606,37 +691,37 @@ "@babel/helper-plugin-utils" "^7.24.0" "@babel/plugin-transform-runtime@^7.5.5": - version "7.24.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.24.3.tgz#dc58ad4a31810a890550365cc922e1ff5acb5d7f" - integrity sha512-J0BuRPNlNqlMTRJ72eVptpt9VcInbxO6iP3jaxr+1NPhC0UkKL+6oeX6VXMEYdADnuqmMmsBspt4d5w8Y/TCbQ== + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.24.6.tgz#1e3256246004c3724b8e07c7cb25e35913c4e373" + integrity sha512-W3gQydMb0SY99y/2lV0Okx2xg/8KzmZLQsLaiCmwNRl1kKomz14VurEm+2TossUb+sRvBCnGe+wx8KtIgDtBbQ== dependencies: - "@babel/helper-module-imports" "^7.24.3" - "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-module-imports" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" babel-plugin-polyfill-corejs2 "^0.4.10" babel-plugin-polyfill-corejs3 "^0.10.1" babel-plugin-polyfill-regenerator "^0.6.1" semver "^6.3.1" -"@babel/plugin-transform-typescript@^7.24.1": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.24.5.tgz#bcba979e462120dc06a75bd34c473a04781931b8" - integrity sha512-E0VWu/hk83BIFUWnsKZ4D81KXjN5L3MobvevOHErASk9IPwKHOkTgvqzvNo1yP/ePJWqqK2SpUR5z+KQbl6NVw== +"@babel/plugin-transform-typescript@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.24.6.tgz#339c6127a783c32e28a5b591e6c666f899b57db0" + integrity sha512-H0i+hDLmaYYSt6KU9cZE0gb3Cbssa/oxWis7PX4ofQzbvsfix9Lbh8SRk7LCPDlLWJHUiFeHU0qRRpF/4Zv7mQ== dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-create-class-features-plugin" "^7.24.5" - "@babel/helper-plugin-utils" "^7.24.5" - "@babel/plugin-syntax-typescript" "^7.24.1" + "@babel/helper-annotate-as-pure" "^7.24.6" + "@babel/helper-create-class-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/plugin-syntax-typescript" "^7.24.6" "@babel/preset-typescript@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.24.1.tgz#89bdf13a3149a17b3b2a2c9c62547f06db8845ec" - integrity sha512-1DBaMmRDpuYQBPWD8Pf/WEwCrtgRHxsZnP4mIy9G/X+hFfbI47Q2G4t1Paakld84+qsk2fSsUPMKg71jkoOOaQ== + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.24.6.tgz#27057470fb981c31338bdb897fc3d9aa0cb7dab2" + integrity sha512-U10aHPDnokCFRXgyT/MaIRTivUu2K/mu0vJlwRS9LxJmJet+PFQNKpggPyFCUtC6zWSBPjvxjnpNkAn3Uw2m5w== dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-validator-option" "^7.23.5" - "@babel/plugin-syntax-jsx" "^7.24.1" - "@babel/plugin-transform-modules-commonjs" "^7.24.1" - "@babel/plugin-transform-typescript" "^7.24.1" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-validator-option" "^7.24.6" + "@babel/plugin-syntax-jsx" "^7.24.6" + "@babel/plugin-transform-modules-commonjs" "^7.24.6" + "@babel/plugin-transform-typescript" "^7.24.6" "@babel/runtime@7.20.13": version "7.20.13" @@ -646,9 +731,9 @@ regenerator-runtime "^0.13.11" "@babel/runtime@^7.19.0", "@babel/runtime@^7.19.4", "@babel/runtime@^7.20.6", "@babel/runtime@^7.21.0", "@babel/runtime@^7.24.5", "@babel/runtime@^7.5.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.5.tgz#230946857c053a36ccc66e1dd03b17dd0c4ed02c" - integrity sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g== + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.6.tgz#5b76eb89ad45e2e4a0a8db54c456251469a3358e" + integrity sha512-Ja18XcETdEl5mzzACGd+DKgaGJzPTCow7EglgwTmHdwokzDFYh/MHua6lU6DV/hjF2IaOJ4oX2nqnjG7RElKOw== dependencies: regenerator-runtime "^0.14.0" @@ -661,6 +746,15 @@ "@babel/parser" "^7.24.0" "@babel/types" "^7.24.0" +"@babel/template@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.6.tgz#048c347b2787a6072b24c723664c8d02b67a44f9" + integrity sha512-3vgazJlLwNXi9jhrR1ef8qiB65L1RK90+lEQwv4OxveHnqC3BfmnHdgySwRLzf6akhlOYenT+b7AfWq+a//AHw== + dependencies: + "@babel/code-frame" "^7.24.6" + "@babel/parser" "^7.24.6" + "@babel/types" "^7.24.6" + "@babel/traverse@^7.24.5": version "7.24.5" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.5.tgz#972aa0bc45f16983bf64aa1f877b2dd0eea7e6f8" @@ -686,6 +780,15 @@ "@babel/helper-validator-identifier" "^7.24.5" to-fast-properties "^2.0.0" +"@babel/types@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.6.tgz#ba4e1f59870c10dc2fa95a274ac4feec23b21912" + integrity sha512-WaMsgi6Q8zMgMth93GvWPXkhAIEobfsIkLTacoVZoK1J0CevIPGYY2Vo5YvJGqyHqXM6P4ppOYGsIRU8MM9pFQ== + dependencies: + "@babel/helper-string-parser" "^7.24.6" + "@babel/helper-validator-identifier" "^7.24.6" + to-fast-properties "^2.0.0" + "@bitget-wallet/web3-sdk@^0.0.8": version "0.0.8" resolved "https://registry.yarnpkg.com/@bitget-wallet/web3-sdk/-/web3-sdk-0.0.8.tgz#1510b0b379654ff0de5e10ae19bef93fa86e46c3" @@ -713,44 +816,10 @@ "@metamask/safe-event-emitter" "^3.0.0" json-rpc-engine "^6.1.0" -"@celo/base@3.2.0": - version "3.2.0" - resolved "https://registry.yarnpkg.com/@celo/base/-/base-3.2.0.tgz#19dcff6a822abb1f6b57af8f9db35a4c673aee62" - integrity sha512-9wfZYiYv7dzt17a29fxU6sV7JssyXfpSQ9kPSpfOlsewPICXwfOMQ+25Jn6xZu20Vx9rmKebmLHiQyiuYEDOcQ== - -"@celo/utils@^3.2.0": - version "3.2.0" - resolved "https://registry.yarnpkg.com/@celo/utils/-/utils-3.2.0.tgz#1dc39f619d24c3974d306cad23db7cdf3f9d487e" - integrity sha512-Om1mTzwsdV6FVPvraafcJeRnzz7Xv/lyGmyZaoEZ9fErRadu9ZrOsuDQniYe+lD78DQ0NATxJL04WjhEKVkn+A== - dependencies: - "@celo/base" "3.2.0" - "@types/bn.js" "^5.1.0" - "@types/elliptic" "^6.4.9" - "@types/ethereumjs-util" "^5.2.0" - "@types/node" "^10.12.18" - bignumber.js "^9.0.0" - elliptic "^6.5.4" - ethereumjs-util "^5.2.0" - io-ts "2.0.1" - web3-eth-abi "1.3.6" - web3-utils "1.3.6" - -"@coinbase/wallet-sdk@4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@coinbase/wallet-sdk/-/wallet-sdk-4.0.0.tgz#1c492aab4d11dc7b08eed156f21c804ad47e8801" - integrity sha512-7q8k39a2Iuz30dAEeh86AaSAbLgVPW3gfLa1UYh2IqP7gS+X9witoMEMM8o016K6vxP5N++PrM+Lgu/O1KByBA== - dependencies: - buffer "^6.0.3" - clsx "^1.2.1" - eventemitter3 "^5.0.1" - keccak "^3.0.3" - preact "^10.16.0" - sha.js "^2.4.11" - -"@coinbase/wallet-sdk@^3.9.3", "cbw-sdk@npm:@coinbase/wallet-sdk@3.9.3": - version "3.9.3" - resolved "https://registry.yarnpkg.com/@coinbase/wallet-sdk/-/wallet-sdk-3.9.3.tgz#daf10cb0c85d0363315b7270cb3f02bedc408aab" - integrity sha512-N/A2DRIf0Y3PHc1XAMvbBUu4zisna6qAdqABMZwBMNEfWrXpAwx16pZGkYCLGE+Rvv1edbcB2LYDRnACNcmCiw== +"@coinbase/wallet-sdk@3.9.2": + version "3.9.2" + resolved "https://registry.yarnpkg.com/@coinbase/wallet-sdk/-/wallet-sdk-3.9.2.tgz#757d6652d0972eb8804c50e3923a05242833caf1" + integrity sha512-SyfUlG0DzgRu2WQ8+c7DpFEIe8Bt/nxyP1hcExDUXF7cHaopdAU43djT8SLIWH8Li40ZK9VBGVuNIK/pwHR9LA== dependencies: bn.js "^5.2.1" buffer "^6.0.3" @@ -963,23 +1032,6 @@ "@docsearch/css" "3.6.0" algoliasearch "^4.19.1" -"@emotion/is-prop-valid@1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-1.2.2.tgz#d4175076679c6a26faa92b03bb786f9e52612337" - integrity sha512-uNsoYd37AFmaCdXlg6EYD1KaPOaRWRByMCYzbKUX4+hhMfrxdVSelShywL4JVaAeM/eHUOSprYBQls+/neX3pw== - dependencies: - "@emotion/memoize" "^0.8.1" - -"@emotion/memoize@^0.8.1": - version "0.8.1" - resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.8.1.tgz#c1ddb040429c6d21d38cc945fe75c818cfb68e17" - integrity sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA== - -"@emotion/unitless@0.8.1": - version "0.8.1" - resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.8.1.tgz#182b5a4704ef8ad91bde93f7a860a88fd92c79a3" - integrity sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ== - "@emurgo/cardano-serialization-lib-browser@^11.5.0": version "11.5.0" resolved "https://registry.yarnpkg.com/@emurgo/cardano-serialization-lib-browser/-/cardano-serialization-lib-browser-11.5.0.tgz#f2d15b538add436e0aa8b67a1d00ca654a680006" @@ -1325,21 +1377,6 @@ "@ethereumjs/rlp" "^5.0.2" ethereum-cryptography "^2.1.3" -"@ethersproject/abi@5.0.7": - version "5.0.7" - resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.0.7.tgz#79e52452bd3ca2956d0e1c964207a58ad1a0ee7b" - integrity sha512-Cqktk+hSIckwP/W8O47Eef60VwmoSC/L3lY0+dIBhQPCNn9E4V7rwmm2aFrNRRDJfFlGuZ1khkQUOc3oBX+niw== - dependencies: - "@ethersproject/address" "^5.0.4" - "@ethersproject/bignumber" "^5.0.7" - "@ethersproject/bytes" "^5.0.4" - "@ethersproject/constants" "^5.0.4" - "@ethersproject/hash" "^5.0.4" - "@ethersproject/keccak256" "^5.0.3" - "@ethersproject/logger" "^5.0.5" - "@ethersproject/properties" "^5.0.3" - "@ethersproject/strings" "^5.0.4" - "@ethersproject/abi@5.5.0": version "5.5.0" resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.5.0.tgz#fb52820e22e50b854ff15ce1647cc508d6660613" @@ -1429,7 +1466,7 @@ "@ethersproject/logger" "^5.5.0" "@ethersproject/rlp" "^5.5.0" -"@ethersproject/address@5.7.0", "@ethersproject/address@^5.0.4", "@ethersproject/address@^5.5.0", "@ethersproject/address@^5.7.0": +"@ethersproject/address@5.7.0", "@ethersproject/address@^5.5.0", "@ethersproject/address@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.7.0.tgz#19b56c4d74a3b0a46bfdbb6cfcc0a153fc697f37" integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA== @@ -1479,7 +1516,7 @@ "@ethersproject/logger" "^5.5.0" bn.js "^4.11.9" -"@ethersproject/bignumber@5.7.0", "@ethersproject/bignumber@^5.0.7", "@ethersproject/bignumber@^5.5.0", "@ethersproject/bignumber@^5.7.0": +"@ethersproject/bignumber@5.7.0", "@ethersproject/bignumber@^5.5.0", "@ethersproject/bignumber@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.7.0.tgz#e2f03837f268ba655ffba03a57853e18a18dc9c2" integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw== @@ -1495,7 +1532,7 @@ dependencies: "@ethersproject/logger" "^5.5.0" -"@ethersproject/bytes@5.7.0", "@ethersproject/bytes@^5.0.4", "@ethersproject/bytes@^5.5.0", "@ethersproject/bytes@^5.7.0": +"@ethersproject/bytes@5.7.0", "@ethersproject/bytes@^5.5.0", "@ethersproject/bytes@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.7.0.tgz#a00f6ea8d7e7534d6d87f47188af1148d71f155d" integrity sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A== @@ -1509,7 +1546,7 @@ dependencies: "@ethersproject/bignumber" "^5.5.0" -"@ethersproject/constants@5.7.0", "@ethersproject/constants@^5.0.4", "@ethersproject/constants@^5.5.0", "@ethersproject/constants@^5.7.0": +"@ethersproject/constants@5.7.0", "@ethersproject/constants@^5.5.0", "@ethersproject/constants@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.7.0.tgz#df80a9705a7e08984161f09014ea012d1c75295e" integrity sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA== @@ -1562,7 +1599,7 @@ "@ethersproject/properties" "^5.5.0" "@ethersproject/strings" "^5.5.0" -"@ethersproject/hash@5.7.0", "@ethersproject/hash@^5.0.4", "@ethersproject/hash@^5.5.0", "@ethersproject/hash@^5.7.0": +"@ethersproject/hash@5.7.0", "@ethersproject/hash@^5.5.0", "@ethersproject/hash@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.7.0.tgz#eb7aca84a588508369562e16e514b539ba5240a7" integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g== @@ -1659,7 +1696,7 @@ "@ethersproject/bytes" "^5.5.0" js-sha3 "0.8.0" -"@ethersproject/keccak256@5.7.0", "@ethersproject/keccak256@^5.0.3", "@ethersproject/keccak256@^5.5.0", "@ethersproject/keccak256@^5.7.0": +"@ethersproject/keccak256@5.7.0", "@ethersproject/keccak256@^5.5.0", "@ethersproject/keccak256@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.7.0.tgz#3186350c6e1cd6aba7940384ec7d6d9db01f335a" integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg== @@ -1672,7 +1709,7 @@ resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.5.0.tgz#0c2caebeff98e10aefa5aef27d7441c7fd18cf5d" integrity sha512-rIY/6WPm7T8n3qS2vuHTUBPdXHl+rGxWxW5okDfo9J4Z0+gRRZT0msvUdIJkE4/HS29GUMziwGaaKO2bWONBrg== -"@ethersproject/logger@5.7.0", "@ethersproject/logger@^5.0.5", "@ethersproject/logger@^5.5.0", "@ethersproject/logger@^5.7.0": +"@ethersproject/logger@5.7.0", "@ethersproject/logger@^5.5.0", "@ethersproject/logger@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.7.0.tgz#6ce9ae168e74fecf287be17062b590852c311892" integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig== @@ -1714,63 +1751,13 @@ dependencies: "@ethersproject/logger" "^5.5.0" -"@ethersproject/properties@5.7.0", "@ethersproject/properties@^5.0.3", "@ethersproject/properties@^5.5.0", "@ethersproject/properties@^5.7.0": +"@ethersproject/properties@5.7.0", "@ethersproject/properties@^5.5.0", "@ethersproject/properties@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.7.0.tgz#a6e12cb0439b878aaf470f1902a176033067ed30" integrity sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw== dependencies: "@ethersproject/logger" "^5.7.0" -"@ethersproject/providers@5.5.0": - version "5.5.0" - resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.5.0.tgz#bc2876a8fe5e0053ed9828b1f3767ae46e43758b" - integrity sha512-xqMbDnS/FPy+J/9mBLKddzyLLAQFjrVff5g00efqxPzcAwXiR+SiCGVy6eJ5iAIirBOATjx7QLhDNPGV+AEQsw== - dependencies: - "@ethersproject/abstract-provider" "^5.5.0" - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/address" "^5.5.0" - "@ethersproject/basex" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/constants" "^5.5.0" - "@ethersproject/hash" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/networks" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/random" "^5.5.0" - "@ethersproject/rlp" "^5.5.0" - "@ethersproject/sha2" "^5.5.0" - "@ethersproject/strings" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - "@ethersproject/web" "^5.5.0" - bech32 "1.1.4" - ws "7.4.6" - -"@ethersproject/providers@5.5.2": - version "5.5.2" - resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.5.2.tgz#131ccf52dc17afd0ab69ed444b8c0e3a27297d99" - integrity sha512-hkbx7x/MKcRjyrO4StKXCzCpWer6s97xnm34xkfPiarhtEUVAN4TBBpamM+z66WcTt7H5B53YwbRj1n7i8pZoQ== - dependencies: - "@ethersproject/abstract-provider" "^5.5.0" - "@ethersproject/abstract-signer" "^5.5.0" - "@ethersproject/address" "^5.5.0" - "@ethersproject/basex" "^5.5.0" - "@ethersproject/bignumber" "^5.5.0" - "@ethersproject/bytes" "^5.5.0" - "@ethersproject/constants" "^5.5.0" - "@ethersproject/hash" "^5.5.0" - "@ethersproject/logger" "^5.5.0" - "@ethersproject/networks" "^5.5.0" - "@ethersproject/properties" "^5.5.0" - "@ethersproject/random" "^5.5.0" - "@ethersproject/rlp" "^5.5.0" - "@ethersproject/sha2" "^5.5.0" - "@ethersproject/strings" "^5.5.0" - "@ethersproject/transactions" "^5.5.0" - "@ethersproject/web" "^5.5.0" - bech32 "1.1.4" - ws "7.4.6" - "@ethersproject/providers@5.5.3": version "5.5.3" resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.5.3.tgz#56c2b070542ac44eb5de2ed3cf6784acd60a3130" @@ -1929,7 +1916,7 @@ "@ethersproject/constants" "^5.5.0" "@ethersproject/logger" "^5.5.0" -"@ethersproject/strings@5.7.0", "@ethersproject/strings@^5.0.4", "@ethersproject/strings@^5.5.0", "@ethersproject/strings@^5.7.0": +"@ethersproject/strings@5.7.0", "@ethersproject/strings@^5.5.0", "@ethersproject/strings@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.7.0.tgz#54c9d2a7c57ae8f1205c88a9d3a56471e14d5ed2" integrity sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg== @@ -2072,94 +2059,6 @@ "@ethersproject/properties" "^5.7.0" "@ethersproject/strings" "^5.7.0" -"@expo/config-plugins@~7.9.0": - version "7.9.2" - resolved "https://registry.yarnpkg.com/@expo/config-plugins/-/config-plugins-7.9.2.tgz#fc18e84761067ce670742d735b888613c06fbea8" - integrity sha512-sRU/OAp7kJxrCUiCTUZqvPMKPdiN1oTmNfnbkG4oPdfWQTpid3jyCH7ZxJEN5SI6jrY/ZsK5B/JPgjDUhuWLBQ== - dependencies: - "@expo/config-types" "^50.0.0-alpha.1" - "@expo/fingerprint" "^0.6.0" - "@expo/json-file" "~8.3.0" - "@expo/plist" "^0.1.0" - "@expo/sdk-runtime-versions" "^1.0.0" - "@react-native/normalize-color" "^2.0.0" - chalk "^4.1.2" - debug "^4.3.1" - find-up "~5.0.0" - getenv "^1.0.0" - glob "7.1.6" - resolve-from "^5.0.0" - semver "^7.5.3" - slash "^3.0.0" - slugify "^1.6.6" - xcode "^3.0.1" - xml2js "0.6.0" - -"@expo/config-types@^50.0.0", "@expo/config-types@^50.0.0-alpha.1": - version "50.0.1" - resolved "https://registry.yarnpkg.com/@expo/config-types/-/config-types-50.0.1.tgz#12d889214dedf64fbf2322c9d9e75c9d5ca7f695" - integrity sha512-EZHMgzkWRB9SMHO1e9m8s+OMahf92XYTnsCFjxhSfcDrcEoSdFPyJWDJVloHZPMGhxns7Fi2+A+bEVN/hD4NKA== - -"@expo/config@~8.5.0": - version "8.5.6" - resolved "https://registry.yarnpkg.com/@expo/config/-/config-8.5.6.tgz#e37ba437a1718ed4629e1dd130a7aace25312b89" - integrity sha512-wF5awSg6MNn1cb1lIgjnhOn5ov2TEUTnkAVCsOl0QqDwcP+YIerteSFwjn9V52UZvg58L+LKxpCuGbw5IHavbg== - dependencies: - "@babel/code-frame" "~7.10.4" - "@expo/config-plugins" "~7.9.0" - "@expo/config-types" "^50.0.0" - "@expo/json-file" "^8.2.37" - getenv "^1.0.0" - glob "7.1.6" - require-from-string "^2.0.2" - resolve-from "^5.0.0" - semver "7.5.3" - slugify "^1.3.4" - sucrase "3.34.0" - -"@expo/fingerprint@^0.6.0": - version "0.6.1" - resolved "https://registry.yarnpkg.com/@expo/fingerprint/-/fingerprint-0.6.1.tgz#763ae79b06f60e10853596bfa2bd730bfb13f2b0" - integrity sha512-ggLn6unI6qowlA1FihdQwPpLn16VJulYkvYAEL50gaqVahfNEglRQMSH2giZzjD0d6xq2/EQuUdFyHaJfyJwOQ== - dependencies: - "@expo/spawn-async" "^1.5.0" - chalk "^4.1.2" - debug "^4.3.4" - find-up "^5.0.0" - minimatch "^3.0.4" - p-limit "^3.1.0" - resolve-from "^5.0.0" - -"@expo/json-file@^8.2.37", "@expo/json-file@~8.3.0": - version "8.3.3" - resolved "https://registry.yarnpkg.com/@expo/json-file/-/json-file-8.3.3.tgz#7926e3592f76030ce63d6b1308ac8f5d4d9341f4" - integrity sha512-eZ5dld9AD0PrVRiIWpRkm5aIoWBw3kAyd8VkuWEy92sEthBKDDDHAnK2a0dw0Eil6j7rK7lS/Qaq/Zzngv2h5A== - dependencies: - "@babel/code-frame" "~7.10.4" - json5 "^2.2.2" - write-file-atomic "^2.3.0" - -"@expo/plist@^0.1.0": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@expo/plist/-/plist-0.1.3.tgz#b4fbee2c4f7a88512a4853d85319f4d95713c529" - integrity sha512-GW/7hVlAylYg1tUrEASclw1MMk9FP4ZwyFAY/SUTJIhPDQHtfOlXREyWV3hhrHdX/K+pS73GNgdfT6E/e+kBbg== - dependencies: - "@xmldom/xmldom" "~0.7.7" - base64-js "^1.2.3" - xmlbuilder "^14.0.0" - -"@expo/sdk-runtime-versions@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@expo/sdk-runtime-versions/-/sdk-runtime-versions-1.0.0.tgz#d7ebd21b19f1c6b0395e50d78da4416941c57f7c" - integrity sha512-Doz2bfiPndXYFPMRwPyGa1k5QaKDVpY806UJj570epIiMzWaYyCtobasyfC++qfIXVb5Ocy7r3tP9d62hAQ7IQ== - -"@expo/spawn-async@^1.5.0": - version "1.7.2" - resolved "https://registry.yarnpkg.com/@expo/spawn-async/-/spawn-async-1.7.2.tgz#fcfe66c3e387245e72154b1a7eae8cada6a47f58" - integrity sha512-QdWi16+CHB9JYP7gma19OVVg0BFkvU8zNj9GjWorYI8Iv8FUxjOCcYRuAmX4s/h91e4e7BPsskc8cSrZYho9Ew== - dependencies: - cross-spawn "^7.0.3" - "@fastify/busboy@^2.0.0": version "2.1.1" resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-2.1.1.tgz#b9da6a878a371829a0502c9b6c1c143ef6663f4d" @@ -2219,46 +2118,11 @@ dependencies: tslib "^2.1.0" -"@gsap/react@^2.1.0": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@gsap/react/-/react-2.1.1.tgz#219a81c84f93a2631c8aa324c0f5cce03cdf2ed9" - integrity sha512-apGPRrmpqxvl1T6Io1KgT8tFU+IuACI6z4zmT7t8+PASserJeLVRFJdSNUFA2Xb/eVkZI1noE8LIrY/w/oJECw== - dependencies: - gsap "^3.12.5" - react ">=16" - -"@hapi/address@^5.1.0": - version "5.1.1" - resolved "https://registry.yarnpkg.com/@hapi/address/-/address-5.1.1.tgz#e9925fc1b65f5cc3fbea821f2b980e4652e84cb6" - integrity sha512-A+po2d/dVoY7cYajycYI43ZbYMXukuopIsqCjh5QzsBCipDtdofHntljDlpccMjIfTy6UOkg+5KPriwYch2bXA== - dependencies: - "@hapi/hoek" "^11.0.2" - -"@hapi/formula@^3.0.2": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@hapi/formula/-/formula-3.0.2.tgz#81b538060ee079481c906f599906d163c4badeaf" - integrity sha512-hY5YPNXzw1He7s0iqkRQi+uMGh383CGdyyIGYtB+W5N3KHPXoqychklvHhKCC9M3Xtv0OCs/IHw+r4dcHtBYWw== - -"@hapi/hoek@^11.0.2": - version "11.0.4" - resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-11.0.4.tgz#42a7f244fd3dd777792bfb74b8c6340ae9182f37" - integrity sha512-PnsP5d4q7289pS2T2EgGz147BFJ2Jpb4yrEdkpz2IhgEUzos1S7HTl7ezWh1yfYzYlj89KzLdCRkqsP6SIryeQ== - "@hapi/hoek@^9.0.0": version "9.3.0" resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb" integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ== -"@hapi/pinpoint@^2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@hapi/pinpoint/-/pinpoint-2.0.1.tgz#32077e715655fc00ab8df74b6b416114287d6513" - integrity sha512-EKQmr16tM8s16vTT3cA5L0kZZcTMU5DUOZTuvpnY738m+jyP3JIUj+Mm1xc1rsLkGBQ/gVnfKYPwOmPg1tUR4Q== - -"@hapi/tlds@^1.0.1": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@hapi/tlds/-/tlds-1.0.4.tgz#38104b195e3fdb22f87751de310ee270d89e5dc9" - integrity sha512-csMaI+XnPH39a+W/v1MpmYKIUWTyKE9Nu2yH+BaLpNPJfFMLX1AgOKP2Vz2rGmzBKNhSV4cat64jqJulm6cnVw== - "@hapi/topo@^5.0.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012" @@ -2266,13 +2130,6 @@ dependencies: "@hapi/hoek" "^9.0.0" -"@hapi/topo@^6.0.1": - version "6.0.2" - resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-6.0.2.tgz#f219c1c60da8430228af4c1f2e40c32a0d84bbb4" - integrity sha512-KR3rD5inZbGMrHmgPxsJ9dbi6zEK+C3ZwUwTa+eMwWLz7oijWUTWD2pMSNNYJAU6Qq+65NkxXjqHr/7LM2Xkqg== - dependencies: - "@hapi/hoek" "^11.0.2" - "@iconify-json/ri@^1.0.0": version "1.1.20" resolved "https://registry.yarnpkg.com/@iconify-json/ri/-/ri-1.1.20.tgz#6621dfc91fa119c1b941a0685d213f22480157ca" @@ -2500,17 +2357,28 @@ resolved "https://registry.yarnpkg.com/@metamask/detect-provider/-/detect-provider-2.0.0.tgz#4bc2795e5e6f7d8b84b2e845058d2f222c99917d" integrity sha512-sFpN+TX13E9fdBDh9lvQeZdJn4qYoRb/6QF2oZZK/Pn559IhCFacPMU1rMuqyXoFQF3JSJfii2l98B87QDPeCQ== +"@metamask/eth-block-tracker@^9.0.2": + version "9.0.3" + resolved "https://registry.yarnpkg.com/@metamask/eth-block-tracker/-/eth-block-tracker-9.0.3.tgz#ceebe9bc720a54c3a4749fc09c8f8bb9fe206255" + integrity sha512-I29IwdhnSJtk/A05vFsiOV92ADXXtBymXfC0naSvHP9TYNNOryG9y2l0jmnSzBsP3+wefCkHJWEzEwF4YSKogw== + dependencies: + "@metamask/eth-json-rpc-provider" "^3.0.2" + "@metamask/safe-event-emitter" "^3.0.0" + "@metamask/utils" "^8.1.0" + json-rpc-random-id "^1.0.1" + pify "^5.0.0" + "@metamask/eth-json-rpc-middleware@^12.0.0": - version "12.1.0" - resolved "https://registry.yarnpkg.com/@metamask/eth-json-rpc-middleware/-/eth-json-rpc-middleware-12.1.0.tgz#237f018a1a3c99297fcb5a8263b6c669379b168c" - integrity sha512-fTr9xqBeb6TnblGYr89DikrEVdRQj+lj2mrGK56nbnLfHsA1awpFn5RxR38o8ml6DD9OsEo13au5UpqQyUEbIQ== + version "12.1.1" + resolved "https://registry.yarnpkg.com/@metamask/eth-json-rpc-middleware/-/eth-json-rpc-middleware-12.1.1.tgz#5b6a19386f420211cb554c637f0927b76dc3167a" + integrity sha512-6N5y5CIo3mjJlD3oUaCPsAR5KGkxzt2pL+nQaRKwZ0Z0HtXIu0dIKf4awtfzJDNNQGhlPG5Im+kG1oxkh0FkSQ== dependencies: + "@metamask/eth-block-tracker" "^9.0.2" "@metamask/eth-json-rpc-provider" "^2.1.0" "@metamask/eth-sig-util" "^7.0.0" "@metamask/json-rpc-engine" "^7.1.1" "@metamask/rpc-errors" "^6.0.0" "@metamask/utils" "^8.1.0" - eth-block-tracker "^8.0.0" klona "^2.0.6" pify "^5.0.0" safe-stable-stringify "^2.4.3" @@ -2533,6 +2401,15 @@ "@metamask/safe-event-emitter" "^3.0.0" "@metamask/utils" "^8.3.0" +"@metamask/eth-json-rpc-provider@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@metamask/eth-json-rpc-provider/-/eth-json-rpc-provider-3.0.2.tgz#42e544d227285fe56336e2301961a6283dcfadad" + integrity sha512-ma5bYjKa71bSw5+iibEnIiY25s8wkDnTljrqOnGw5MkTEU4PQDiKnK9YjxfUZSasx2BPEsp1OW2NS+pnrRMO4Q== + dependencies: + "@metamask/json-rpc-engine" "^8.0.2" + "@metamask/safe-event-emitter" "^3.0.0" + "@metamask/utils" "^8.3.0" + "@metamask/eth-sig-util@^5.0.2": version "5.1.0" resolved "https://registry.yarnpkg.com/@metamask/eth-sig-util/-/eth-sig-util-5.1.0.tgz#a47f62800ee1917fef976ba67544a0ccd7d1bd6b" @@ -2566,6 +2443,15 @@ "@metamask/safe-event-emitter" "^3.0.0" "@metamask/utils" "^8.3.0" +"@metamask/json-rpc-engine@^8.0.2": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@metamask/json-rpc-engine/-/json-rpc-engine-8.0.2.tgz#29510a871a8edef892f838ee854db18de0bf0d14" + integrity sha512-IoQPmql8q7ABLruW7i4EYVHWUbF74yrp63bRuXV5Zf9BQwcn5H9Ww1eLtROYvI1bUXwOiHZ6qT5CWTrDc/t/AA== + dependencies: + "@metamask/rpc-errors" "^6.2.1" + "@metamask/safe-event-emitter" "^3.0.0" + "@metamask/utils" "^8.3.0" + "@metamask/json-rpc-middleware-stream@^6.0.2": version "6.0.2" resolved "https://registry.yarnpkg.com/@metamask/json-rpc-middleware-stream/-/json-rpc-middleware-stream-6.0.2.tgz#75852ce481f8f9f091edbfc04ffdf964f8f3cabd" @@ -2688,7 +2574,7 @@ dependencies: qr-code-styling "^1.6.0-rc.1" -"@metamask/sdk@0.20.3", "@metamask/sdk@^0.20.3": +"@metamask/sdk@^0.20.3": version "0.20.3" resolved "https://registry.yarnpkg.com/@metamask/sdk/-/sdk-0.20.3.tgz#73851d68ffe5d45c1872c024182922530b187b7a" integrity sha512-HZ9NwA+LxiXzuy0YWbWsuD4xejQtp85bhcCAf8UgpA/0dOyF3RS4dKDdBBXSyRgk3RWPjeJgHxioaH4CmBmiRA== @@ -3006,9 +2892,9 @@ draggabilly "^3.0.0" "@particle-network/chains@*": - version "1.4.9" - resolved "https://registry.yarnpkg.com/@particle-network/chains/-/chains-1.4.9.tgz#2fe0575f1764b7488a9e9751c9aa6dcc45b09eec" - integrity sha512-IcCJIYvOcpcF2uhW0UlWc6/4gR2W+OCuIsCxmnP++Qo01ddWi67qPoTP6nQ1/tbFOClfaQOq7Ix0TyWG3+bSdg== + version "1.4.11" + resolved "https://registry.yarnpkg.com/@particle-network/chains/-/chains-1.4.11.tgz#b81770bbd60cf160583c02d54ccd5094faa2d248" + integrity sha512-WcOHL23GjbkkZCgpgJWJDQhxh0xjArzikwu0kwKDEoeUTzhrjYsGtGjqdSJLVsgf/CRekiHBg+v26zWDsfmm5g== "@particle-network/crypto@^1.0.1": version "1.0.1" @@ -3105,19 +2991,7 @@ resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== -"@ramp-network/ramp-instant-sdk@^4.0.2": - version "4.0.5" - resolved "https://registry.yarnpkg.com/@ramp-network/ramp-instant-sdk/-/ramp-instant-sdk-4.0.5.tgz#4477acfc04e3b18d40a47aecd2b716ae349cd9ca" - integrity sha512-iQubpyGSy4wy/Pg7nZPclVOB+/edgAhmN1RUh9l+Ry+NbnUNu9e3c8x5o5hOHl//J1m0Roj+hKRt0qRVmWdNHA== - dependencies: - body-scroll-lock "^3.1.5" - -"@react-native/normalize-color@^2.0.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.1.0.tgz#939b87a9849e81687d3640c5efa2a486ac266f91" - integrity sha512-Z1jQI2NpdFJCVgpY+8Dq/Bt3d+YUi1928Q+/CZm/oh66fzM0RUl54vvuXlPJKybH4pdCZey1eDTPaLHkMPNgWA== - -"@rollup/plugin-inject@^5.0.1": +"@rollup/plugin-inject@^5.0.4": version "5.0.5" resolved "https://registry.yarnpkg.com/@rollup/plugin-inject/-/plugin-inject-5.0.5.tgz#616f3a73fe075765f91c5bec90176608bed277a3" integrity sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg== @@ -3143,14 +3017,6 @@ estree-walker "^2.0.2" picomatch "^2.3.1" -"@safe-global/safe-apps-provider@0.18.1": - version "0.18.1" - resolved "https://registry.yarnpkg.com/@safe-global/safe-apps-provider/-/safe-apps-provider-0.18.1.tgz#287b5a1e2ef3be630dacde54279409df3ced8202" - integrity sha512-V4a05A3EgJcriqtDoJklDz1BOinWhC6P0hjUSxshA4KOZM7rGPCTto/usXs09zr1vvL28evl/NldSTv97j2bmg== - dependencies: - "@safe-global/safe-apps-sdk" "^8.1.0" - events "^3.3.0" - "@safe-global/safe-apps-provider@^0.18.0": version "0.18.2" resolved "https://registry.yarnpkg.com/@safe-global/safe-apps-provider/-/safe-apps-provider-0.18.2.tgz#336f3f4bb6ebbad9354e6551687491efc73991bc" @@ -3159,7 +3025,7 @@ "@safe-global/safe-apps-sdk" "^9.0.0" events "^3.3.0" -"@safe-global/safe-apps-sdk@8.1.0", "@safe-global/safe-apps-sdk@^8.1.0": +"@safe-global/safe-apps-sdk@^8.1.0": version "8.1.0" resolved "https://registry.yarnpkg.com/@safe-global/safe-apps-sdk/-/safe-apps-sdk-8.1.0.tgz#d1d0c69cd2bf4eef8a79c5d677d16971926aa64a" integrity sha512-XJbEPuaVc7b9n23MqlF6c+ToYIS3f7P2Sel8f3cSBQ9WORE4xrSuvhMpK9fDSFqJ7by/brc+rmJR/5HViRr0/w== @@ -3333,7 +3199,7 @@ dependencies: buffer "~6.0.3" -"@solana/web3.js@^1.63.1", "@solana/web3.js@^1.73.0", "@solana/web3.js@^1.78.0", "@solana/web3.js@^1.87.3", "@solana/web3.js@^1.90.0": +"@solana/web3.js@^1.63.1", "@solana/web3.js@^1.73.0", "@solana/web3.js@^1.78.0", "@solana/web3.js@^1.90.2", "@solana/web3.js@^1.91.6": version "1.91.8" resolved "https://registry.yarnpkg.com/@solana/web3.js/-/web3.js-1.91.8.tgz#0d5eb69626a92c391b53e15bfbb0bad3f6858e51" integrity sha512-USa6OS1jbh8zOapRJ/CBZImZ8Xb7AJjROZl5adql9TpOoBN9BUzyyouS5oPuZHft7S7eB8uJPuXWYjMi6BHgOw== @@ -3488,11 +3354,6 @@ "@stablelib/random" "^1.0.2" "@stablelib/wipe" "^1.0.1" -"@stencil/core@^4.7.0": - version "4.18.2" - resolved "https://registry.yarnpkg.com/@stencil/core/-/core-4.18.2.tgz#4687f3b97bf55239a4f0ab9b7527383cfc2348bd" - integrity sha512-GLYbzv3Bq/oUbQk3CH09zkjISANccyE5/A1C7+1JZhdnWUx1MRuWQR9/2uzSPR7kF0sdppwzXvArl7VqYCxLOQ== - "@sveltejs/adapter-static@^2.0.2": version "2.0.3" resolved "https://registry.yarnpkg.com/@sveltejs/adapter-static/-/adapter-static-2.0.3.tgz#616836c30bdce4d673a2e26c0f5ffbd5c1bc7c67" @@ -3558,18 +3419,6 @@ lodash.merge "^4.6.2" postcss-selector-parser "6.0.10" -"@tanstack/query-core@5.36.1": - version "5.36.1" - resolved "https://registry.yarnpkg.com/@tanstack/query-core/-/query-core-5.36.1.tgz#ae46f935c4752812a56c6815305061a3da82e7b8" - integrity sha512-BteWYEPUcucEu3NBcDAgKuI4U25R9aPrHSP6YSf2NvaD2pSlIQTdqOfLRsxH9WdRYg7k0Uom35Uacb6nvbIMJg== - -"@tanstack/react-query@^5.29.0": - version "5.37.1" - resolved "https://registry.yarnpkg.com/@tanstack/react-query/-/react-query-5.37.1.tgz#82d79cdf54923b1f0638c080e8f0439a6a8a2ddc" - integrity sha512-EhtBNA8GL3XFeSx6VYUjXQ96n44xe3JGKZCzBINrCYlxbZP6UwBafv7ti4eSRWc2Fy+fybQre0w17gR6lMzULA== - dependencies: - "@tanstack/query-core" "5.36.1" - "@toruslabs/base-controllers@^2.8.0", "@toruslabs/base-controllers@^2.8.1": version "2.9.0" resolved "https://registry.yarnpkg.com/@toruslabs/base-controllers/-/base-controllers-2.9.0.tgz#e23f4228b5a90bf94ba9b0b27451f3024bd1acc4" @@ -3754,141 +3603,139 @@ resolved "https://registry.yarnpkg.com/@toruslabs/tweetnacl-js/-/tweetnacl-js-1.0.4.tgz#0f1965d1b93d4061472b07ed21d71c33ac533cce" integrity sha512-h8fVemW5pstsKbm/fTx+y61dZkh5Pepy/92lsyKp83KErf96jT+w4LGx4nEgeAVrdYQDTLg2tO7vu/boEb23Iw== -"@trezor/analytics@1.0.16": - version "1.0.16" - resolved "https://registry.yarnpkg.com/@trezor/analytics/-/analytics-1.0.16.tgz#77618db567272de88a454bbf1480363e02809201" - integrity sha512-LT6hRf33EqaCyBMdjMXzclcKNuT4+IL97FQyHdnqug4wpYABQn31Djh2oCE97j2vjLcywKRoLXTezrAwrG1wHQ== +"@trezor/analytics@1.0.17": + version "1.0.17" + resolved "https://registry.yarnpkg.com/@trezor/analytics/-/analytics-1.0.17.tgz#5835fe8201498367104d9fa63a2cb6094ad2cbdc" + integrity sha512-FbMzdutD9OVbkhKaIqRJcEvqf7PeBkS3iqmQIKKVC1kL9R2w33D07pPNFMqgUqhV3CrOkjNkQOJpC8AxKxaIQw== dependencies: - "@trezor/env-utils" "1.0.15" - "@trezor/utils" "9.0.23" + "@trezor/env-utils" "1.0.17" + "@trezor/utils" "9.0.24" -"@trezor/blockchain-link-types@1.0.15": - version "1.0.15" - resolved "https://registry.yarnpkg.com/@trezor/blockchain-link-types/-/blockchain-link-types-1.0.15.tgz#4f035f52eb7faf8fde3b7b8900421eb1284effc0" - integrity sha512-zNHNKySOFKbk210dWDT5riNazpu36wOybryUzuOz6owk0irlBcGoB0Q3uxqfCaHjFakRKenQVpG+jVeL8zfCwg== +"@trezor/blockchain-link-types@1.0.17": + version "1.0.17" + resolved "https://registry.yarnpkg.com/@trezor/blockchain-link-types/-/blockchain-link-types-1.0.17.tgz#92727159b6709fccc0710428f25ef422376c41bc" + integrity sha512-N37+dK/FtEaRhhQYpqQxmb041V83pXzHtXfUFvbQ3DAfXG1eBSg/q2UvIpDgQldL3r8uSUEh/Frh5OpR3KURfw== dependencies: - "@solana/web3.js" "^1.90.0" + "@solana/web3.js" "^1.91.6" "@trezor/type-utils" "1.0.5" - "@trezor/utxo-lib" "2.0.8" + "@trezor/utxo-lib" "2.0.10" socks-proxy-agent "6.1.1" -"@trezor/blockchain-link-utils@1.0.16": - version "1.0.16" - resolved "https://registry.yarnpkg.com/@trezor/blockchain-link-utils/-/blockchain-link-utils-1.0.16.tgz#9339a40b256f021e35492f8384cf363a7557b470" - integrity sha512-ZxqcKDEE9RxS9dK5iS2A4nJWuERXLnRMu9+L6ahQZO82bUngVcWH9gZKS+wFWenZP2AA7EXAlO9Rg7nlOkEfKA== +"@trezor/blockchain-link-utils@1.0.18": + version "1.0.18" + resolved "https://registry.yarnpkg.com/@trezor/blockchain-link-utils/-/blockchain-link-utils-1.0.18.tgz#ae1f2f1ab1b47901ce4265485917ae0cdf9d172c" + integrity sha512-kHjZX5GN7AIC+BU111wu6lTomaJiEEwehVgKG0g8rMsE5TWY1m4BazcH1jp5iUV7jR0B67Pd1jRMbgua59GsVQ== dependencies: "@mobily/ts-belt" "^3.13.1" - "@solana/web3.js" "^1.90.0" - "@trezor/utils" "9.0.23" - bignumber.js "^9.1.2" + "@solana/web3.js" "^1.91.6" + "@trezor/env-utils" "1.0.17" + "@trezor/utils" "9.0.24" -"@trezor/blockchain-link@2.1.28": - version "2.1.28" - resolved "https://registry.yarnpkg.com/@trezor/blockchain-link/-/blockchain-link-2.1.28.tgz#4c8bf11dbbf1105d97e7fdf9072107536ab5dff2" - integrity sha512-7iH7kFsAwxMjulPCFf6d6YBTuS1HhPCpNJoLmF0w1agNZf3EvuBlbeizfpzGshSvzEhLSHbBPR5ZtUQdUfJhDQ== +"@trezor/blockchain-link@2.1.30": + version "2.1.30" + resolved "https://registry.yarnpkg.com/@trezor/blockchain-link/-/blockchain-link-2.1.30.tgz#d995a7d8c008db57dc08d8690f964bbba26cbbae" + integrity sha512-OVo/j1pP4o4CzwnSVn2RLi5xO4RyqIxHUywYq/t6aBLM3+sAoHi1vtZM9DBAtrYnoXSsz+w9Uaj2DwSlKJ93bA== dependencies: "@solana/buffer-layout" "^4.0.1" - "@solana/web3.js" "^1.90.0" - "@trezor/blockchain-link-types" "1.0.15" - "@trezor/blockchain-link-utils" "1.0.16" - "@trezor/utils" "9.0.23" - "@trezor/utxo-lib" "2.0.8" + "@solana/web3.js" "^1.90.2" + "@trezor/blockchain-link-types" "1.0.17" + "@trezor/blockchain-link-utils" "1.0.18" + "@trezor/utils" "9.0.24" + "@trezor/utxo-lib" "2.0.10" "@types/web" "^0.0.138" - bignumber.js "^9.1.2" events "^3.3.0" ripple-lib "^1.10.1" socks-proxy-agent "6.1.1" ws "^8.16.0" -"@trezor/connect-analytics@1.0.14": - version "1.0.14" - resolved "https://registry.yarnpkg.com/@trezor/connect-analytics/-/connect-analytics-1.0.14.tgz#a7eac60ef6988e47141ee8d02459f1ebaf6ebcf6" - integrity sha512-IAXeOptCg6klHFKYnTmFHLFcPBf7CguWTglmJTGkxWGGcirc8jQY0pu7bFow0J2qL5ClcUIiQd29ExzjiHBwmQ== +"@trezor/connect-analytics@1.0.15": + version "1.0.15" + resolved "https://registry.yarnpkg.com/@trezor/connect-analytics/-/connect-analytics-1.0.15.tgz#489784e5b617f0ac6bb1d8626f37d794c1b2810d" + integrity sha512-LAf//pBuogLFBNuS47s3MFs1SfeyT+7Mh959wJTOXTC+DSmHUCLIrcahf6odGxR8moqVXUXgWoWPBQpc9WvKDA== dependencies: - "@trezor/analytics" "1.0.16" + "@trezor/analytics" "1.0.17" -"@trezor/connect-common@0.0.31": - version "0.0.31" - resolved "https://registry.yarnpkg.com/@trezor/connect-common/-/connect-common-0.0.31.tgz#41d61a669a6c446cf255ffde49fc002206590be7" - integrity sha512-HLK7Zb2/LMWda+ju6TR9+bihDZ45XCsmdYt5SjvSEt1e/EMUvsk5F5rLk8UD0hHyK3ooUDpVzYU28J1pabj0CQ== +"@trezor/connect-common@0.0.33": + version "0.0.33" + resolved "https://registry.yarnpkg.com/@trezor/connect-common/-/connect-common-0.0.33.tgz#2a36bf322615e9908502367ede93da0ba3b20719" + integrity sha512-OCGTjs1M4kmkiICQxz1QP52d31szWnO4EA3YkcLWPSGRNHjMV5c+DxoYU8FM6g1JSz9YW8SxjkGPAvHqowy0ZQ== dependencies: - "@trezor/env-utils" "1.0.15" - "@trezor/utils" "9.0.23" + "@trezor/env-utils" "1.0.17" + "@trezor/utils" "9.0.24" "@trezor/connect-web@^9.0.11": - version "9.2.2" - resolved "https://registry.yarnpkg.com/@trezor/connect-web/-/connect-web-9.2.2.tgz#583a607045e189fdd3bbf674e1861ea635fa0def" - integrity sha512-THYlFAt5R3o4rg52dMOrSmfuWzFIxFUu6Oeqj0f9vALzUU4Wzm2nMDIG0Y3MyB5mVzFg70lwmx73tuznx/rfUw== + version "9.2.4" + resolved "https://registry.yarnpkg.com/@trezor/connect-web/-/connect-web-9.2.4.tgz#3d79ec291aa5317bdd132da0b0ab91b3f2d50f61" + integrity sha512-BatNwWzkg7hYLYhkJIuAbV74Uw1l0Lee0Xp+2XdR7muuXPBVs5GbqlFfI0DE6SM8oVvzvvAFufXW/zfYd0iTGA== dependencies: - "@trezor/connect" "9.2.2" - "@trezor/connect-common" "0.0.31" - "@trezor/utils" "9.0.23" + "@trezor/connect" "9.2.4" + "@trezor/connect-common" "0.0.33" + "@trezor/utils" "9.0.24" events "^3.3.0" -"@trezor/connect@9.2.2": - version "9.2.2" - resolved "https://registry.yarnpkg.com/@trezor/connect/-/connect-9.2.2.tgz#1ff4b9f89d6a7ed4cc7a38256ec7c8e3554f3934" - integrity sha512-JopCr62XISy5KEqcn3MXxUtSrxVTexqloA99+OZ3Tbomuc89yIV88aQi/r3RJ4j1droq3kDoxaMfH1ssBmz2kA== +"@trezor/connect@9.2.4": + version "9.2.4" + resolved "https://registry.yarnpkg.com/@trezor/connect/-/connect-9.2.4.tgz#9ee90f26ea91bf5bba7d94e0b67b2fb1e0b52d61" + integrity sha512-uAmdIQrJA2I+1MMe1bYNZqZgsgYx5K4TGJx/10cU5U5uNifN83QBaRekmqQufyTkmXzArvWsbG2UK3oXHLd1OA== dependencies: "@babel/preset-typescript" "^7.23.3" "@ethereumjs/common" "^4.2.0" "@ethereumjs/tx" "^5.2.1" "@fivebinaries/coin-selection" "2.2.1" - "@trezor/blockchain-link" "2.1.28" - "@trezor/blockchain-link-types" "1.0.15" - "@trezor/connect-analytics" "1.0.14" - "@trezor/connect-common" "0.0.31" - "@trezor/protobuf" "1.0.11" - "@trezor/protocol" "1.0.7" - "@trezor/schema-utils" "1.0.3" - "@trezor/transport" "1.1.27" - "@trezor/utils" "9.0.23" - "@trezor/utxo-lib" "2.0.8" - bignumber.js "^9.1.2" + "@trezor/blockchain-link" "2.1.30" + "@trezor/blockchain-link-types" "1.0.17" + "@trezor/connect-analytics" "1.0.15" + "@trezor/connect-common" "0.0.33" + "@trezor/protobuf" "1.0.13" + "@trezor/protocol" "1.0.9" + "@trezor/schema-utils" "1.0.4" + "@trezor/transport" "1.1.29" + "@trezor/utils" "9.0.24" + "@trezor/utxo-lib" "2.0.10" blakejs "^1.2.1" bs58 "^5.0.0" bs58check "^3.0.1" cross-fetch "^4.0.0" events "^3.3.0" -"@trezor/env-utils@1.0.15": - version "1.0.15" - resolved "https://registry.yarnpkg.com/@trezor/env-utils/-/env-utils-1.0.15.tgz#08679e49536db7061a1f5d752fa49e2176a65e17" - integrity sha512-icD7KC908kfpNAsHBJ3voRkAzqYTblas26Pfu0YYHfhjBadypcRdRo+aIUXLItmjjNqsLFGVB/cWBk4Lwgh7hQ== +"@trezor/env-utils@1.0.17": + version "1.0.17" + resolved "https://registry.yarnpkg.com/@trezor/env-utils/-/env-utils-1.0.17.tgz#ea1f28e95113af8fbbfa49ebba060b6fc5d2a3f5" + integrity sha512-S6pY5VqmIdhQaXFOvfXJtxLkZs3WYeL1ZES9ZMmvCeP/mu0uBByxUoywFNu2bLaLYNitMYgCVFMCmo7jWfss0Q== dependencies: - expo-constants "15.4.5" ua-parser-js "^1.0.37" -"@trezor/protobuf@1.0.11": - version "1.0.11" - resolved "https://registry.yarnpkg.com/@trezor/protobuf/-/protobuf-1.0.11.tgz#930b4fb7b7429a7ae9bf343d0c00d178c3285227" - integrity sha512-oEgblHJzlb1IrtOk/fl0uLVmnhcMTq+i1Z4aw04OOj9wcrvAyYAFuYgoJJ/30PfzWoq6f1/xwt6pPtoxoN42cg== +"@trezor/protobuf@1.0.13": + version "1.0.13" + resolved "https://registry.yarnpkg.com/@trezor/protobuf/-/protobuf-1.0.13.tgz#90257e665d253661dd8da3206f18e08b8db19678" + integrity sha512-RqQsqEbwfJGYjzu/CG47v17fiABEZvlCvdLMWlfCB+LB5hzamTLEE3pMRrnsC5iJIPaA+ZSnhAIWznqVf8NOhw== dependencies: - "@trezor/schema-utils" "1.0.3" + "@trezor/schema-utils" "1.0.4" long "^4.0.0" protobufjs "7.2.6" -"@trezor/protocol@1.0.7": - version "1.0.7" - resolved "https://registry.yarnpkg.com/@trezor/protocol/-/protocol-1.0.7.tgz#d4bd9b0734c23d8fbc6cea7c14c7122b5e47b438" - integrity sha512-IYpmureV9cqle7HxSuGkYh4GT5SY1CVbad7zYJn3MgFk1jQpdENQQSK5KpdD2xHoKnoRqyz4TSOHQzhjgqIDLA== +"@trezor/protocol@1.0.9": + version "1.0.9" + resolved "https://registry.yarnpkg.com/@trezor/protocol/-/protocol-1.0.9.tgz#bbd679b9e1b8463db2cbaa9bd8d2252da712ba2b" + integrity sha512-BlSVmHL9tYWZ3HvXHD9H4JFkzZM5LXXVwS10SFHDftpj7CcVqXumxKLcHhSV8LKEw0rVYUXgER7+lQ8n2UdrLQ== -"@trezor/schema-utils@1.0.3": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@trezor/schema-utils/-/schema-utils-1.0.3.tgz#a718ee0075f7d5ef7fa829585ba989fc79a3742c" - integrity sha512-P+w0QgsCuzfWYjXmjSMoeYsC0C62aKl9JIsDTIx3WP4nwffzFE2RKEW16rqGx0NGEwcMsckaGi2O9Ngi8dZ1IA== +"@trezor/schema-utils@1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@trezor/schema-utils/-/schema-utils-1.0.4.tgz#0d87fd12821c0c47e70ca9a1c4b114fd239151f9" + integrity sha512-wDcGD1ErjrDNc8afGihHRwGvfdKZzOOt3iJcrKkgKZAmVazYi8GpWwpIHDhY2yI0oqewAVNNhE9B26t9uWNFng== dependencies: "@sinclair/typebox" "^0.31.28" ts-mixer "^6.0.3" -"@trezor/transport@1.1.27": - version "1.1.27" - resolved "https://registry.yarnpkg.com/@trezor/transport/-/transport-1.1.27.tgz#05497cec1c1ee4cae4229611f92a733813cfec05" - integrity sha512-cWMkQ15yG8wJKNnUPY8RVZ5DjA8l+aEZBd7CsI/guBfPNAxZGDkHHiO+WzQzqz9GspbpO9TkFS5+rheY8j9XlQ== +"@trezor/transport@1.1.29": + version "1.1.29" + resolved "https://registry.yarnpkg.com/@trezor/transport/-/transport-1.1.29.tgz#fb6f47a7108bef6abb331718fccb7fb1af7fb6a7" + integrity sha512-odGOuXnF43BRkS0jZmf59SHKMDG8SwyasxYss+lItRVCsia5S3bMBFGVRez0PHAIQ+GsS7j6QOc95tEC5at4Bg== dependencies: - "@trezor/protobuf" "1.0.11" - "@trezor/protocol" "1.0.7" - "@trezor/utils" "9.0.23" + "@trezor/protobuf" "1.0.13" + "@trezor/protocol" "1.0.9" + "@trezor/utils" "9.0.24" + cross-fetch "^4.0.0" json-stable-stringify "^1.1.1" long "^4.0.0" protobufjs "7.2.6" @@ -3899,17 +3746,19 @@ resolved "https://registry.yarnpkg.com/@trezor/type-utils/-/type-utils-1.0.5.tgz#5efdd6ab1ebd5086878d9123cfe4eb70440072e6" integrity sha512-AK8Gg5yoPAMvxqK49LXr8yoop1oxIXRxkOhCuWGV51fDM02/L1dhGNKC04UyCTyG7jZ+H1f5ywuna81BVT/ptQ== -"@trezor/utils@9.0.23": - version "9.0.23" - resolved "https://registry.yarnpkg.com/@trezor/utils/-/utils-9.0.23.tgz#1dd3977362be9e3ab2a4429c078b3fe1259ef91f" - integrity sha512-lxdGo6j2gzSy5PFSyjxEg/1p3cRGLPyhfC+53OGi002PE7q4uUzU8yUFqJxC7zEXmfeY3HkkJEqqois3rWE66w== +"@trezor/utils@9.0.24": + version "9.0.24" + resolved "https://registry.yarnpkg.com/@trezor/utils/-/utils-9.0.24.tgz#a2811bec78b37d70542e5bfe8d43c60ca98cb513" + integrity sha512-U03PQChHODjmlMrN7XVR46PnV3F6XlO6ynGSgXdgQffhE/EmMq5U4mA9lqtnPf56xWaU+lQVLmF6/LN2GNQIAg== + dependencies: + bignumber.js "^9.1.2" -"@trezor/utxo-lib@2.0.8": - version "2.0.8" - resolved "https://registry.yarnpkg.com/@trezor/utxo-lib/-/utxo-lib-2.0.8.tgz#eb5df9e627daa5099e2052bb4f8c0130daaafb40" - integrity sha512-TLBaPdRpFftvVzrhp0A5slnGhoJ8MU98cQCgpY/C/jfcWo8TBnau+jTB21uWFhGO8U0JRQsjUL7uYUdCiE2NZQ== +"@trezor/utxo-lib@2.0.10": + version "2.0.10" + resolved "https://registry.yarnpkg.com/@trezor/utxo-lib/-/utxo-lib-2.0.10.tgz#48b1a39c10fd21a3e43b2d5bfafddf6af7b5bd78" + integrity sha512-UIU8JWXnx0ykSYKWWv5MQV08sMdr0kRXG9rlVXkSi7y73FT3O76GTqiDz8iRo5If0gZUNEnk261W1oEnha1tTw== dependencies: - "@trezor/utils" "9.0.23" + "@trezor/utils" "9.0.24" bchaddrjs "^0.5.2" bech32 "^2.0.0" bip66 "^1.1.5" @@ -3966,13 +3815,6 @@ dependencies: "@babel/types" "^7.20.7" -"@types/bn.js@*", "@types/bn.js@^5.1.0": - version "5.1.5" - resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-5.1.5.tgz#2e0dacdcce2c0f16b905d20ff87aedbc6f7b4bf0" - integrity sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A== - dependencies: - "@types/node" "*" - "@types/bn.js@5.1.1": version "5.1.1" resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-5.1.1.tgz#b51e1b55920a4ca26e9285ff79936bbdec910682" @@ -3987,6 +3829,13 @@ dependencies: "@types/node" "*" +"@types/bn.js@^5.1.0": + version "5.1.5" + resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-5.1.5.tgz#2e0dacdcce2c0f16b905d20ff87aedbc6f7b4bf0" + integrity sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A== + dependencies: + "@types/node" "*" + "@types/chrome@^0.0.136": version "0.0.136" resolved "https://registry.yarnpkg.com/@types/chrome/-/chrome-0.0.136.tgz#7c011b9f997b0156f25a140188a0c5689d3f368f" @@ -4019,26 +3868,11 @@ resolved "https://registry.yarnpkg.com/@types/dom-screen-wake-lock/-/dom-screen-wake-lock-1.0.3.tgz#c3588a5f6f40fae957f9ce5be9bc4927a61bb9a0" integrity sha512-3Iten7X3Zgwvk6kh6/NRdwN7WbZ760YgFCsF5AxDifltUQzW1RaW+WRmcVtgwFzLjaNu64H+0MPJ13yRa8g3Dw== -"@types/elliptic@^6.4.9": - version "6.4.18" - resolved "https://registry.yarnpkg.com/@types/elliptic/-/elliptic-6.4.18.tgz#bc96e26e1ccccbabe8b6f0e409c85898635482e1" - integrity sha512-UseG6H5vjRiNpQvrhy4VF/JXdA3V/Fp5amvveaL+fs28BZ6xIKJBPnUPRlEaZpysD9MbpfaLi8lbl7PGUAkpWw== - dependencies: - "@types/bn.js" "*" - "@types/estree@^1.0.0": version "1.0.5" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== -"@types/ethereumjs-util@^5.2.0": - version "5.2.0" - resolved "https://registry.yarnpkg.com/@types/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz#f49fe8114789ec0871721392c09318c3eb56671b" - integrity sha512-qwQgQqXXTRv2h2AlJef+tMEszLFkCB9dWnrJYIdAwqjubERXEc/geB+S3apRw0yQyTVnsBf8r6BhlrE8vx+3WQ== - dependencies: - "@types/bn.js" "*" - "@types/node" "*" - "@types/filesystem@*": version "0.0.36" resolved "https://registry.yarnpkg.com/@types/filesystem/-/filesystem-0.0.36.tgz#7227c2d76bfed1b21819db310816c7821d303857" @@ -4090,9 +3924,9 @@ integrity sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g== "@types/node@*", "@types/node@>=13.7.0": - version "20.12.12" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.12.tgz#7cbecdf902085cec634fdb362172dfe12b8f2050" - integrity sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw== + version "20.12.13" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.13.tgz#90ed3b8a4e52dd3c5dc5a42dde5b85b74ad8ed88" + integrity sha512-gBGeanV41c1L171rR7wjbMiEpEI/l5XFQdLLfhr/REwpgDy/4U8y89+i8kRiLzDyZdOkXh+cRaTetUnCYutoXA== dependencies: undici-types "~5.26.4" @@ -4101,11 +3935,6 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.18.tgz#1d3ca764718915584fcd9f6344621b7672665c67" integrity sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ== -"@types/node@^10.12.18": - version "10.17.60" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" - integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw== - "@types/node@^12.12.54", "@types/node@^12.12.6", "@types/node@^12.7.1": version "12.20.55" resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240" @@ -4143,11 +3972,6 @@ dependencies: "@types/node" "*" -"@types/stylis@4.2.5": - version "4.2.5" - resolved "https://registry.yarnpkg.com/@types/stylis/-/stylis-4.2.5.tgz#1daa6456f40959d06157698a653a9ab0a70281df" - integrity sha512-1Xve+NMN7FWjY14vLoY5tL3BVEQ/n42YLwaqJIPYhotZ9uBHt87VceMwWQpzmdEt2TNXIorIFG+YeCUUW7RInw== - "@types/trusted-types@^2.0.2": version "2.0.7" resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.7.tgz#baccb07a970b91707df3a3e8ba6896c57ead2d11" @@ -4197,97 +4021,20 @@ dependencies: "@ethersproject/abi" "^5.0.1" bn.js "^4.4.0" - cross-fetch "^3.1.4" - crypto-js "^4.1.1" - elliptic "^6.5.4" - -"@usecapsule/core-components@^1.0.13": - version "1.0.13" - resolved "https://registry.yarnpkg.com/@usecapsule/core-components/-/core-components-1.0.13.tgz#f208c1dddc63949b515d2b642d48438cdb78ef1f" - integrity sha512-gR0N4rtDSVtAYb+SV4lc1dyD6ViTQDe0pgYBWc2V1z8StHJNeUdxLtRRZ0TsVt4RPx5/U4Qn/cieYnGIZ2SKaQ== - dependencies: - "@stencil/core" "^4.7.0" - gsap "^3.12.5" - qr-code-styling "^1.6.0-rc.1" - -"@usecapsule/core-sdk@1.6.1": - version "1.6.1" - resolved "https://registry.yarnpkg.com/@usecapsule/core-sdk/-/core-sdk-1.6.1.tgz#356c6a274f9697fe7c5c395b5840e4f6b5226e1c" - integrity sha512-8T3M7dsxpmz3uRzcv9MGqvnSn2m5esXCC1nb7zj0hl0pgnmvIMvPRg2RgXhIWUG+5xBi1p2bx4n8YcA5a2TJ9A== - dependencies: - "@celo/utils" "^3.2.0" - "@usecapsule/user-management-client" "1.4.1" - base64url "^3.0.1" - buffer "6.0.3" - ethereumjs-util "7.1.5" - node-forge "^1.3.1" - -"@usecapsule/react-components@1.0.13": - version "1.0.13" - resolved "https://registry.yarnpkg.com/@usecapsule/react-components/-/react-components-1.0.13.tgz#46feef685fbf6a2716d3ad4d218b35571bee1a31" - integrity sha512-Gcql8XBIvKTMrbemHVvyicNTOlsur1CLZRD4fEFJK9ESMkHSgy05VKDd2b3dS3MPquqLOqG3vmpTvsQMsDHfOA== - dependencies: - "@usecapsule/core-components" "^1.0.13" - -"@usecapsule/react-sdk@2.3.2", "@usecapsule/react-sdk@^2.3.1": - version "2.3.2" - resolved "https://registry.yarnpkg.com/@usecapsule/react-sdk/-/react-sdk-2.3.2.tgz#b9b8d9eeb542d1e8442d730d107d1b1195ef2a11" - integrity sha512-7oKvcXEWN7ENY4tVFXKjDVy0tQrxnOmqpu9MaWfhazFSmC9O6kzftRW6ZRkxPQE5ajOfrzF6n7kyyQ2vBdWLlw== - dependencies: - "@gsap/react" "^2.1.0" - "@ramp-network/ramp-instant-sdk" "^4.0.2" - "@usecapsule/react-components" "1.0.13" - "@usecapsule/web-sdk" "1.7.1" - gsap "^3.12.5" - styled-components "^6.1.8" - zustand "^4.5.2" - -"@usecapsule/user-management-client@1.4.1": - version "1.4.1" - resolved "https://registry.yarnpkg.com/@usecapsule/user-management-client/-/user-management-client-1.4.1.tgz#bc639576170915f7adaa0ced7e0612bd4373b5f7" - integrity sha512-SX3kEudGx+LBKz4wjkv/uVo4YBo5aRS/b4jhSQc9JxD0rKrGSnIJn+GURPkm9lHrbi0gKbLQyStS+zAbzUy9zQ== - dependencies: - axios "^1.6.3" - qs "^6.12.0" - -"@usecapsule/viem-v2-integration@1.5.1": - version "1.5.1" - resolved "https://registry.yarnpkg.com/@usecapsule/viem-v2-integration/-/viem-v2-integration-1.5.1.tgz#64af57bcfdc6032952dc8d395405bdb922360ddd" - integrity sha512-9UWGD8DqtPKR2e/r42bKUHofYArp8txMt9xlosIkwx78FYAugcMc64TxeC+Mk2KX9lGhW/oK8vw6GYsJmn1nXw== - dependencies: - "@usecapsule/core-sdk" "1.6.1" - -"@usecapsule/wagmi-v2-integration@^1.7.1": - version "1.7.4" - resolved "https://registry.yarnpkg.com/@usecapsule/wagmi-v2-integration/-/wagmi-v2-integration-1.7.4.tgz#ff43f2c7fdfea86d6e14699f8a41c17aed03c2b3" - integrity sha512-BSS/igczDOrhOaA6mYl4BlEpHDYdrO81MACW80L0WSO/ZprLocy2PLPeQ+zYhK+LudC/nDY/nj/53btcWh68Cg== - dependencies: - "@usecapsule/react-sdk" "2.3.2" - "@usecapsule/viem-v2-integration" "1.5.1" - -"@usecapsule/web-sdk@1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-1.7.1.tgz#3efed277ac4555e8648911128bed3551cfd4f259" - integrity sha512-yQA8vZhIhOcH6M8+DHlC6kre7m0Ir7YeiKpNZXsnOcza1mYDSDGmjc0ydDk94AAAy3HnInXA6OzU4htXm2ATIQ== - dependencies: - "@usecapsule/core-sdk" "1.6.1" - "@usecapsule/user-management-client" "1.4.1" - assert "^2.1.0" - base64url "3.0.1" - buffer "6.0.3" - cbor-web "8.1.0" - node-forge "1.3.1" + cross-fetch "^3.1.4" + crypto-js "^4.1.1" + elliptic "^6.5.4" "@venly/connect@^2.4.1": - version "2.5.0" - resolved "https://registry.yarnpkg.com/@venly/connect/-/connect-2.5.0.tgz#445859aba69dcbeddad99e1cad22b12c34908393" - integrity sha512-oUz4ZFbn60HXucjLiud6rBjAodZsBoM+EuXSq2pLDokEIL8P0rW2BSJv/j0RUvnwmXUNMJuNt/96iPqAxgAKug== + version "2.6.0" + resolved "https://registry.yarnpkg.com/@venly/connect/-/connect-2.6.0.tgz#fb80cef0a9575d0c66febbe810223fa8b5fae3b9" + integrity sha512-0aelVehx1pqroOgEIS893VcHkaMbIynKLeoCGWbjIBgK8tfQBz7MTPOCEMA3eYRdwUvgoEeJSsFveBCNOdIytg== dependencies: "@types/node" "^12.7.1" es6-promise "^4.2.8" keycloak-js "11.0.2" -"@venly/web3-provider@^3.1.1": +"@venly/web3-provider@^3.5.3": version "3.5.3" resolved "https://registry.yarnpkg.com/@venly/web3-provider/-/web3-provider-3.5.3.tgz#eca2e207af48a096f58f7333dc610ce34feb9e61" integrity sha512-W8AGs9gQov4qRYsuGZLiRbzie3kT4reOhtFC7kNRFG7tjc9s4RtxWfDc0TqiqNuGRad9yB41NIAXzGQYOt4Vdg== @@ -4313,33 +4060,6 @@ "@types/babel__core" "^7.20.5" react-refresh "^0.14.0" -"@wagmi/chains@^1.8.0": - version "1.8.0" - resolved "https://registry.yarnpkg.com/@wagmi/chains/-/chains-1.8.0.tgz#70e5fd0d50c8f9b8e63585eaf8544481e71707d3" - integrity sha512-UXo0GF0Cl0+neKC2KAmVAahv8L/5rACbFRRqkDvHMefzY6Fh7yzJd8F4GaGNNG3w4hj8eUB/E3+dEpaTYDN62w== - -"@wagmi/connectors@5.0.2": - version "5.0.2" - resolved "https://registry.yarnpkg.com/@wagmi/connectors/-/connectors-5.0.2.tgz#4b70aca8f8a2099a026413500abb02d6d6e8e9e6" - integrity sha512-2YgcgVn6S8kuOe/PVweK0ucxNqO651VqlPWD+MrPxEVwcpEPLNKvtrYdLRDTSnwwUEqEzgnDwEAhcrniK76+Kw== - dependencies: - "@coinbase/wallet-sdk" "4.0.0" - "@metamask/sdk" "0.20.3" - "@safe-global/safe-apps-provider" "0.18.1" - "@safe-global/safe-apps-sdk" "8.1.0" - "@walletconnect/ethereum-provider" "2.13.0" - "@walletconnect/modal" "2.6.2" - cbw-sdk "npm:@coinbase/wallet-sdk@3.9.3" - -"@wagmi/core@2.10.2": - version "2.10.2" - resolved "https://registry.yarnpkg.com/@wagmi/core/-/core-2.10.2.tgz#00e680df650bda8cda010d9077089f98d82a84fd" - integrity sha512-SfQ1F7Azjlx4cKGfmg9+GEUGbukCxraoLYZyCUgTLpKw2OY+4sHsPRwHQENQt/YRWKMyG3/byEYRna2Kv1anpw== - dependencies: - eventemitter3 "5.0.1" - mipd "0.0.5" - zustand "4.4.1" - "@walletconnect/browser-utils@^1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@walletconnect/browser-utils/-/browser-utils-1.8.0.tgz#33c10e777aa6be86c713095b5206d63d32df0951" @@ -4361,10 +4081,10 @@ "@walletconnect/types" "^1.8.0" "@walletconnect/utils" "^1.8.0" -"@walletconnect/core@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.13.0.tgz#6b79b039930643e8ee85a0f512b143a35fdb8b52" - integrity sha512-blDuZxQenjeXcVJvHxPznTNl6c/2DO4VNrFnus+qHmO6OtT5lZRowdMtlCaCNb1q0OxzgrmBDcTOCbFcCpio/g== +"@walletconnect/core@2.13.1": + version "2.13.1" + resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.13.1.tgz#a59646e39a5beaa3f3551d129af43cd404cf4faf" + integrity sha512-h0MSYKJu9i1VEs5koCTT7c5YeQ1Kj0ncTFiMqANbDnB1r3mBulXn+FKtZ2fCmf1j7KDpgluuUzpSs+sQfPcv4Q== dependencies: "@walletconnect/heartbeat" "1.2.2" "@walletconnect/jsonrpc-provider" "1.0.14" @@ -4377,8 +4097,8 @@ "@walletconnect/relay-auth" "1.0.4" "@walletconnect/safe-json" "1.0.2" "@walletconnect/time" "1.0.2" - "@walletconnect/types" "2.13.0" - "@walletconnect/utils" "2.13.0" + "@walletconnect/types" "2.13.1" + "@walletconnect/utils" "2.13.1" events "3.3.0" isomorphic-unfetch "3.1.0" lodash.isequal "4.5.0" @@ -4443,22 +4163,6 @@ dependencies: tslib "1.14.1" -"@walletconnect/ethereum-provider@2.13.0", "@walletconnect/ethereum-provider@^2.12.2": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.13.0.tgz#5148851983e0d55fa1c18737b2db22802c82434c" - integrity sha512-dnpW8mmLpWl1AZUYGYZpaAfGw1HFkL0WSlhk5xekx3IJJKn4pLacX2QeIOo0iNkzNQxZfux1AK4Grl1DvtzZEA== - dependencies: - "@walletconnect/jsonrpc-http-connection" "1.0.8" - "@walletconnect/jsonrpc-provider" "1.0.14" - "@walletconnect/jsonrpc-types" "1.0.4" - "@walletconnect/jsonrpc-utils" "1.0.8" - "@walletconnect/modal" "2.6.2" - "@walletconnect/sign-client" "2.13.0" - "@walletconnect/types" "2.13.0" - "@walletconnect/universal-provider" "2.13.0" - "@walletconnect/utils" "2.13.0" - events "3.3.0" - "@walletconnect/ethereum-provider@2.9.1": version "2.9.1" resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.9.1.tgz#6f41acb38259a59f383d490396aa9c0933839d0b" @@ -4474,6 +4178,22 @@ "@walletconnect/utils" "2.9.1" events "^3.3.0" +"@walletconnect/ethereum-provider@^2.13.0": + version "2.13.1" + resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.13.1.tgz#a9bdb8f9da303088b7b724fa98f4b5ca0d46a36d" + integrity sha512-bHJVqb++GrrMGlapsbSvvIyBlwulMGZEx6N5xwAl6ImPVzbDN0g0XmibNkjzJXVsi/+/d0R/HmKS1WyJQSNx3w== + dependencies: + "@walletconnect/jsonrpc-http-connection" "1.0.8" + "@walletconnect/jsonrpc-provider" "1.0.14" + "@walletconnect/jsonrpc-types" "1.0.4" + "@walletconnect/jsonrpc-utils" "1.0.8" + "@walletconnect/modal" "2.6.2" + "@walletconnect/sign-client" "2.13.1" + "@walletconnect/types" "2.13.1" + "@walletconnect/universal-provider" "2.13.1" + "@walletconnect/utils" "2.13.1" + events "3.3.0" + "@walletconnect/events@1.0.1", "@walletconnect/events@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@walletconnect/events/-/events-1.0.1.tgz#2b5f9c7202019e229d7ccae1369a9e86bda7816c" @@ -4715,19 +4435,19 @@ dependencies: tslib "1.14.1" -"@walletconnect/sign-client@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.13.0.tgz#f59993f082aec1ca5498b9519027e764c1e6d28b" - integrity sha512-En7KSvNUlQFx20IsYGsFgkNJ2lpvDvRsSFOT5PTdGskwCkUfOpB33SQJ6nCrN19gyoKPNvWg80Cy6MJI0TjNYA== +"@walletconnect/sign-client@2.13.1": + version "2.13.1" + resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.13.1.tgz#7bdc9226218fd33caf3aef69dff0b4140abc7fa8" + integrity sha512-e+dcqcLsedB4ZjnePFM5Cy8oxu0dyz5iZfhfKH/MOrQV/hyhZ+hJwh4MmkO2QyEu2PERKs9o2Uc6x8RZdi0UAQ== dependencies: - "@walletconnect/core" "2.13.0" + "@walletconnect/core" "2.13.1" "@walletconnect/events" "1.0.1" "@walletconnect/heartbeat" "1.2.2" "@walletconnect/jsonrpc-utils" "1.0.8" "@walletconnect/logger" "2.1.2" "@walletconnect/time" "1.0.2" - "@walletconnect/types" "2.13.0" - "@walletconnect/utils" "2.13.0" + "@walletconnect/types" "2.13.1" + "@walletconnect/utils" "2.13.1" events "3.3.0" "@walletconnect/sign-client@2.9.1": @@ -4761,10 +4481,10 @@ dependencies: tslib "1.14.1" -"@walletconnect/types@2.13.0", "@walletconnect/types@^2.5.2": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.13.0.tgz#cdac083651f5897084fe9ed62779f11810335ac6" - integrity sha512-MWaVT0FkZwzYbD3tvk8F+2qpPlz1LUSWHuqbINUtMXnSzJtXN49Y99fR7FuBhNFtDalfuWsEK17GrNA+KnAsPQ== +"@walletconnect/types@2.13.1", "@walletconnect/types@^2.5.2": + version "2.13.1" + resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.13.1.tgz#393e3bd4d60a755f3a70cbe769b58cf153450310" + integrity sha512-CIrdt66d38xdunGCy5peOOP17EQkCEGKweXc3+Gn/RWeSiRU35I7wjC/Bp4iWcgAQ6iBTZv4jGGST5XyrOp+Pg== dependencies: "@walletconnect/events" "1.0.1" "@walletconnect/heartbeat" "1.2.2" @@ -4790,19 +4510,19 @@ resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-1.8.0.tgz#3f5e85b2d6b149337f727ab8a71b8471d8d9a195" integrity sha512-Cn+3I0V0vT9ghMuzh1KzZvCkiAxTq+1TR2eSqw5E5AVWfmCtECFkVZBP6uUJZ8YjwLqXheI+rnjqPy7sVM4Fyg== -"@walletconnect/universal-provider@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.13.0.tgz#f2b597001245e4d4a06d96dd1bce8d3a8a4dcbbf" - integrity sha512-B5QvO8pnk5Bqn4aIt0OukGEQn2Auk9VbHfhQb9cGwgmSCd1GlprX/Qblu4gyT5+TjHMb1Gz5UssUaZWTWbDhBg== +"@walletconnect/universal-provider@2.13.1": + version "2.13.1" + resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.13.1.tgz#e007c4963ca73fea7c29dc3ca4ca57e2607daafc" + integrity sha512-A/6WysrvzXWtYD933PKjJlj7PGtOWdkwKeRDiD6JEVk5fQ+DQ1x0p5qcUhaa57r3S0p559YvRNvHFFjx+PpMqA== dependencies: "@walletconnect/jsonrpc-http-connection" "1.0.8" "@walletconnect/jsonrpc-provider" "1.0.14" "@walletconnect/jsonrpc-types" "1.0.4" "@walletconnect/jsonrpc-utils" "1.0.8" "@walletconnect/logger" "2.1.2" - "@walletconnect/sign-client" "2.13.0" - "@walletconnect/types" "2.13.0" - "@walletconnect/utils" "2.13.0" + "@walletconnect/sign-client" "2.13.1" + "@walletconnect/types" "2.13.1" + "@walletconnect/utils" "2.13.1" events "3.3.0" "@walletconnect/universal-provider@2.9.1": @@ -4820,10 +4540,10 @@ "@walletconnect/utils" "2.9.1" events "^3.3.0" -"@walletconnect/utils@2.13.0", "@walletconnect/utils@^2.5.2": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.13.0.tgz#1fc1fbff0d26db0830e65d1ba8cfe1a13a0616ad" - integrity sha512-q1eDCsRHj5iLe7fF8RroGoPZpdo2CYMZzQSrw1iqL+2+GOeqapxxuJ1vaJkmDUkwgklfB22ufqG6KQnz78sD4w== +"@walletconnect/utils@2.13.1", "@walletconnect/utils@^2.5.2": + version "2.13.1" + resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.13.1.tgz#f44e81028754c6e056dba588ad9b9fa5ad047645" + integrity sha512-EcooXXlqy5hk9hy/nK2wBF/qxe7HjH0K8ZHzjKkXRkwAE5pCvy0IGXIXWmUR9sw8LFJEqZyd8rZdWLKNUe8hqA== dependencies: "@stablelib/chacha20poly1305" "1.0.1" "@stablelib/hkdf" "1.0.1" @@ -4833,7 +4553,7 @@ "@walletconnect/relay-api" "1.0.10" "@walletconnect/safe-json" "1.0.2" "@walletconnect/time" "1.0.2" - "@walletconnect/types" "2.13.0" + "@walletconnect/types" "2.13.1" "@walletconnect/window-getters" "1.0.1" "@walletconnect/window-metadata" "1.0.1" detect-browser "5.3.0" @@ -4900,70 +4620,47 @@ "@walletconnect/window-getters" "^1.0.1" tslib "1.14.1" -"@web3-onboard/arcana-auth@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@web3-onboard/arcana-auth/-/arcana-auth-2.0.0.tgz#a3a041d10b91e74f6fe1f870c54a555b39f6adae" - integrity sha512-LvIFCKekgFtt1N4xcgDq1om57UU5SrWxr6H0HZjxQ8TFl8mqT/KNNjjva3cGJ/aaR3NM1gRWKtN0sZFkRGI93w== - dependencies: - "@arcana/auth" "^1.0.7" - "@web3-onboard/common" "2.3.3" - -"@web3-onboard/bitget@^2.0.0": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/bitget/-/bitget-2.0.1.tgz#70f8d8c756b0c4975e3588080f2352bdec0634fa" - integrity sha512-98NynzBzCu/BnOvc3myEkqvNDrz0/VBWLld/L84mCZxF6axoYFXvwGr/8OC7F2+SN+bHyz3OOitJgvbJOPFv8g== +"@web3-onboard/bitget@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/bitget/-/bitget-2.1.0-wagmi.2.tgz#e6243cc519935a4d6f91849e86fb1e9e3f66f897" + integrity sha512-ro256/jBni/632DTUiMEpL+yEkm/sRHRUb57q2u8bwJDZYa1TX8UfR0z9+I72Nna75okYMdqXNeamNZUPRI9xA== dependencies: "@bitget-wallet/web3-sdk" "^0.0.8" - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/blocto@^2.0.0": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/blocto/-/blocto-2.0.1.tgz#5960b11b2febbabade8d2f5fe980d97af4182316" - integrity sha512-+OwiyfyDFruTrKA4+bnIjwgWaKKhWYdnAlceFMg29sfDGklc+HaL3prCPcQLdT6uzp52EQhygJrxsUcZsp/flQ== +"@web3-onboard/blocto@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/blocto/-/blocto-2.1.0-wagmi.2.tgz#c3c0b390f058a33b43181f990f34bb4e20a03971" + integrity sha512-adwDbUs8NacfH7gm/o4e/znxhlFfgSQmAQbSQnQu3zb0db1XzqLm1Rpy+N/tbzUyOh+6z6W1l9h/us3FWhb/4A== dependencies: "@blocto/sdk" "^0.9.1" - "@web3-onboard/common" "^2.3.1" - -"@web3-onboard/capsule@^2.0.3": - version "2.0.3-alpha.2" - resolved "https://registry.yarnpkg.com/@web3-onboard/capsule/-/capsule-2.0.3-alpha.2.tgz#75b171f5ec6db14d74688a273481304fb2682147" - integrity sha512-tRgr3YT/8l1xOtmv+SijcXYkXB3C5tJCFFme2byXFg/y6pSmFoyWPcEXIrwTbmFxrAoGXfTBC6TwxLsApgceBg== - dependencies: - "@tanstack/react-query" "^5.29.0" - "@usecapsule/react-sdk" "^2.3.1" - "@usecapsule/wagmi-v2-integration" "^1.7.1" - "@wagmi/chains" "^1.8.0" - "@web3-onboard/common" "^2.3.3" - react-dom "^18.2.0" - viem "^2.9.15" - wagmi "^2.5.19" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/cede-store@^2.2.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@web3-onboard/cede-store/-/cede-store-2.2.0.tgz#49148feef4f49e71c41a4d8104eea7adad703781" - integrity sha512-zUvQFvEmjtk8ek+Jr/9/0lw1XfpKt6hYgvbS2ve3BOHJdoxEAY7mQ+aGywnkHV5lhMA8DkMBao2wKuRV7L97Mg== +"@web3-onboard/cede-store@^2.3.0-alpha.2": + version "2.3.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/cede-store/-/cede-store-2.3.0-wagmi.2.tgz#884888bdb2854ab636d4bfa048cfff1058d1635e" + integrity sha512-TTXHCcuyj2x0CclJB34YV4kqdjGD1hDzimGing5xRXNUDkllihwCSeceoI/rIU5Z/zIvNg89Vu8M1OdlB+iEgQ== dependencies: "@cedelabs/providers" "^1.5.0" - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/coinbase@^2.2.7": - version "2.2.7" - resolved "https://registry.yarnpkg.com/@web3-onboard/coinbase/-/coinbase-2.2.7.tgz#e649acd9bb1e1599e6c92e3ddb4315cd26fe7b3e" - integrity sha512-gHIiir6byvt5xTFGlf4xwDtysmDFU92BdH9ZzTWfrqKQdprNAlO+ydNnmytxzXf6RsPIRL0NmT8n3xCAWe8s1w== +"@web3-onboard/coinbase@^2.3.0-alpha.2": + version "2.3.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/coinbase/-/coinbase-2.3.0-wagmi.2.tgz#022225ae36a2fdc3b7e4cff856ca0b852771cdbd" + integrity sha512-6++6a5tLaGKDzFfpwTczuN4949U9TM00Cl2R5pLZXXkB6yLu1fkkEsfcoLTdmbD0m0F+kmmD0L1+Py5WGyzy8w== dependencies: - "@coinbase/wallet-sdk" "^3.9.3" - "@web3-onboard/common" "^2.3.3" + "@coinbase/wallet-sdk" "3.9.2" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/common@2.3.3": - version "2.3.3" - resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.3.3.tgz#02096e967dbed272c0637cda955902b96a0fce06" - integrity sha512-Ytppszqe77VY8WglRdr/Lfx+HmcZ2hXQEkBA23JaVYmzKvP/mC6j+sjGUD8CgXDpRRxyKoiRj6nz95GRABie6Q== +"@web3-onboard/common@2.4.0-wagmi.2", "@web3-onboard/common@^2.4.0-wagmi.2": + version "2.4.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.4.0-wagmi.2.tgz#c4111840bc7025d4fed3c5122d8359d53a1512ce" + integrity sha512-ORgs6P9ylX2930csi7ShcqW6lbIZ09uaAeCboJfOAEF9/ASlGDaY9VkOZ1EJk7Bu2zr86BsfuHTStID0pJQfRA== dependencies: - bignumber.js "^9.1.0" - ethers "5.5.4" joi "17.9.1" + viem "2.12.0" -"@web3-onboard/common@^2.3.1", "@web3-onboard/common@^2.3.3", "@web3-onboard/common@^2.3.4": +"@web3-onboard/common@^2.3.4": version "2.3.4" resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.3.4.tgz#1ce41e090c19e8ac802c45737de3dda3dabea751" integrity sha512-LQM7ZA1LoJ4GirsVEWHkv9KNJcrIT+AplR957BP5O8tll+p/A1GCju89C7jAMnb3+9LShUCwHcbE4o8l8gVb9A== @@ -4972,16 +4669,14 @@ ethers "5.5.4" joi "17.9.1" -"@web3-onboard/core@^2.21.6": - version "2.21.6" - resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.21.6.tgz#e2307fb569ef131440c2bce1a8a87d3ff16bcfae" - integrity sha512-eb9bmIK/n6U7ZpC3Bd8tXrBdc5XDh5pzhcXArqMxR2MKxoB6i7aeLO9A3AJcwwEql3eNF+UDnhzK+KXTBOVPEQ== +"@web3-onboard/core@^2.22.0-alpha.7": + version "2.22.0-wagmi.4" + resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.22.0-wagmi.4.tgz#3ea46b4da8ca83bb1d5058f1ad329bd288c69807" + integrity sha512-JR/qkFiPT5mXMrpCIYl89f5EzWQxxMw4OZG6n26AjjhgcbF5EcOzs42/dcXmWhtEk/VGoilA2FD/wYgaQhk6dA== dependencies: - "@web3-onboard/common" "^2.3.4" - bignumber.js "^9.0.0" + "@web3-onboard/common" "2.4.0-wagmi.2" bnc-sdk "^4.6.7" bowser "^2.11.0" - ethers "5.5.3" eventemitter3 "^4.0.7" joi "17.9.1" lodash.merge "^4.6.2" @@ -4990,8 +4685,9 @@ rxjs "^7.5.5" svelte "^3.49.0" svelte-i18n "^3.3.13" + viem "2.12.0" -"@web3-onboard/dcent@^2.2.7": +"@web3-onboard/dcent@^2.2.8-alpha.1": version "2.2.8" resolved "https://registry.yarnpkg.com/@web3-onboard/dcent/-/dcent-2.2.8.tgz#62d472d2540e064509a65aced44f3767eb88bfba" integrity sha512-4eKbksa4JtbkTdhdMXgXuFb9goZDNWiUPDIvQO1VvhBVAyDXQg2178XctL9J0TvPLHPTjNf+3l+EjYxh6gM1rw== @@ -5002,51 +4698,51 @@ "@web3-onboard/hw-common" "^2.3.1" eth-dcent-keyring "^0.2.2" -"@web3-onboard/enkrypt@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@web3-onboard/enkrypt/-/enkrypt-2.0.4.tgz#427106bab8a0dbfffc9b4d00fa464a8f7a36856e" - integrity sha512-gkfNlEbdahJQlmck29PGb54B9KtLQ+JBUwt5HBhmDUqJnMwq0Roerwd31BMXQDuj0uYb5iTOGgo/24dUGczsfA== +"@web3-onboard/enkrypt@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/enkrypt/-/enkrypt-2.1.0-wagmi.2.tgz#1e01a8cc02f3b4a3f1d60fa87134da8725763ad4" + integrity sha512-hLNeXl69abYjT6D7IJxMVTHJ6TadC8+BuDX6HiYt+c7XkOHfV12sIL+MWpa9VW6ODyNfpxzje0gHHMvlRCZjCw== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/fortmatic@^2.0.19": - version "2.0.19" - resolved "https://registry.yarnpkg.com/@web3-onboard/fortmatic/-/fortmatic-2.0.19.tgz#56f3a3e791bc78019fa7e32cf2f3fac7891b6938" - integrity sha512-pZiD8qpbLkvv7VeDPjq99s1ulXuT3uOUnnPPBVxAF4vQgPrJZAa+cIiHJBArKRom9qMhNT/xEBTWy4sN5d+6TA== +"@web3-onboard/fortmatic@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/fortmatic/-/fortmatic-2.1.0-wagmi.2.tgz#9557863671f0999cadf7ec466ff1c596100e679e" + integrity sha512-uxqLzBZBzy8HY4Pfe3CeSpwHI4X2e+Cog1U6THHjPAH5BKwpqcycXULvYuHL95gkUzuaAJTozd3nG4TEI7vbLw== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" fortmatic "^2.2.1" -"@web3-onboard/frame@^2.0.2": - version "2.0.2" - resolved "https://registry.yarnpkg.com/@web3-onboard/frame/-/frame-2.0.2.tgz#d589cebfbcb07c4eb9ddd7f980fd9e682a30a8be" - integrity sha512-2piOAD7Tksk9PvbDc60TQ2MEfOQKfopmmr6YXzDRs7HyTO0XVQea971IT6/LeEaOGd7SqBhponbLWbcyJ+NXbw== +"@web3-onboard/frame@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/frame/-/frame-2.1.0-wagmi.2.tgz#a5aac16e1ff2e7d9d490a8c76bee71e51dee27a8" + integrity sha512-uckuVzrxgBtm4Hv+0TBTNFapUd6mmziwjVDMswbu88u5eon6Vdo+BsqqqCWlWemjqQQUP85JazwMxHDG0AZ8RA== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" eth-provider "^0.13.6" -"@web3-onboard/frontier@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@web3-onboard/frontier/-/frontier-2.0.4.tgz#abe5444c822a54feb44fe53b59ff7f0666b1b9d6" - integrity sha512-6ZIozc/qhZ5dSGydUvJK2+0+ERlm+raNAByUXL57jxPCSLybiKk6L6O9eOmSeWVeBxCiXdUKOF5ueNKo4154lg== +"@web3-onboard/frontier@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/frontier/-/frontier-2.1.0-wagmi.2.tgz#f2645a9bfb32be6d00f09067a7854baec00587a1" + integrity sha512-/tfWkIBCPVNBU382V1X88mtrC78iuaPnrJ86VLzriLD6ESJvQRfOsU3nkkLKur99trorbvjmSv2c7nsrK/Tacg== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/gas@^2.1.8": - version "2.1.8" - resolved "https://registry.yarnpkg.com/@web3-onboard/gas/-/gas-2.1.8.tgz#394572e9f97f150bab2dcef054735f0da51f238d" - integrity sha512-me0vWCP4rB3STeaS773WOzfSI61A3nss0a+SkrKmgKrvrqSSmmXB6orO2wqUrESBJqEK6V8G8p0FU8nG/BYBFQ== +"@web3-onboard/gas@^2.2.0-alpha.2": + version "2.2.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/gas/-/gas-2.2.0-wagmi.2.tgz#763d991c9fcf1358879e3bf132502f386b37a05e" + integrity sha512-rRPT7y6wt7QeYBvpAHYKYiitttupZSaWIjadJvkavmjoQ695sylFasyKk+pfocUPRrnZ/kh+c9VYdQSEizTjSQ== dependencies: - "@web3-onboard/common" "^2.3.3" - joi "17.8.1" + "@web3-onboard/common" "^2.4.0-wagmi.2" + joi "17.9.1" rxjs "^7.5.2" -"@web3-onboard/gnosis@^2.2.2": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@web3-onboard/gnosis/-/gnosis-2.2.2.tgz#2a34a65aeb848bfa59c66a510a982c1975559d52" - integrity sha512-i5RM80+miq2PPvceZzjyygINfnT7BZZRcuKCyXj4NGJW+RAvk3IMSJEuGK9ufDHGYk6Y1bbOPUBie+h1DUn0fw== +"@web3-onboard/gnosis@^2.3.0-alpha.2": + version "2.3.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/gnosis/-/gnosis-2.3.0-wagmi.2.tgz#9b5e37e871361e65b4ebd520b64abf7f5245ae51" + integrity sha512-5CbZ7tlUdbCn4r2ZF/u3GsUKhGTFfgzhqf1ARskjzhFuD7BWuSB3QBqRB9VGjsIyyWkkRXiM8+RhwI7Omt4+Eg== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" "@web3-onboard/hw-common@^2.3.1": version "2.3.1" @@ -5059,23 +4755,23 @@ joi "17.9.1" rxjs "^7.5.2" -"@web3-onboard/infinity-wallet@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@web3-onboard/infinity-wallet/-/infinity-wallet-2.0.4.tgz#e377431ef66f7ab16fc8d3b5feb2000ce615f885" - integrity sha512-vQfp+ccjk+NEXiDUToXLEpCG7rG/lhIbeY31zz6oA9nv66NWV8MXYvLRqoTrD2eph2Y8Asdtwzu7Jwf4HuHlbg== +"@web3-onboard/infinity-wallet@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/infinity-wallet/-/infinity-wallet-2.1.0-wagmi.2.tgz#b61e3fbc87d7e8295f6cdfd277b181d155123b0c" + integrity sha512-Pq5PBOn2RL5N7oXGTZS6/s26FSeclwGUR7aEJ6zPI3ISP7AH50D1wiapLiXX4FcVjeQ13nCD2bQ/puC5A0HDww== dependencies: "@infinitywallet/infinity-connector" "^1.0.6" -"@web3-onboard/injected-wallets@^2.10.17": - version "2.10.17-alpha.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/injected-wallets/-/injected-wallets-2.10.17-alpha.1.tgz#41f3d6983ea579740c47cda1e04adc726b40f2c6" - integrity sha512-dbj/ghgy3FBhcO01QoTYGSjAVtX5qRJhUD7YSJC+y9G0lyjr7v/XeuXI2RNRO18XRP4lr2yw8PlYJo5uAZ6HyQ== +"@web3-onboard/injected-wallets@^2.11.0-alpha.2": + version "2.11.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/injected-wallets/-/injected-wallets-2.11.0-wagmi.2.tgz#377a7e5a5f9cec77eb893c258128eeebb04e4482" + integrity sha512-zuaK/BcayMg9fSe1wae9q8dDLTctyMSj5O03VMnr014EMpWmAXJg5BcdVfo62bHCUexaEfUjUdNKw+81hFoAcQ== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" joi "17.9.1" lodash.uniqby "^4.7.0" -"@web3-onboard/keepkey@^2.3.7": +"@web3-onboard/keepkey@^2.3.8-alpha.1": version "2.3.8" resolved "https://registry.yarnpkg.com/@web3-onboard/keepkey/-/keepkey-2.3.8.tgz#5b82cb6c0899a0ca4648b07d33507095464a9a7a" integrity sha512-5yx/GeO+YK3aD4Wa9McoEfnOjskedRF5ABq2Wr0pUPeEFxhoS5Mi4i//205KTn3Tgv9q0e65liYXNItzCn03lA== @@ -5087,7 +4783,7 @@ "@web3-onboard/hw-common" "^2.3.1" ethereumjs-util "^7.1.3" -"@web3-onboard/keystone@^2.3.7": +"@web3-onboard/keystone@^2.3.8-alpha.1": version "2.3.8" resolved "https://registry.yarnpkg.com/@web3-onboard/keystone/-/keystone-2.3.8.tgz#c1447161d1d91b88170400e7ebfb7284db54d351" integrity sha512-1kwf3luSMlv61R9KGxXNVB6548Axmsppq+JL++wACFBwKBig3JQrvqw1llIc9rkPUGcxq+o/FDY3XpBeO7jrig== @@ -5098,101 +4794,100 @@ "@web3-onboard/common" "^2.3.4" "@web3-onboard/hw-common" "^2.3.1" -"@web3-onboard/ledger@^2.6.0": - version "2.6.0" - resolved "https://registry.yarnpkg.com/@web3-onboard/ledger/-/ledger-2.6.0.tgz#e8a8e2504a835cfb6ac32c0448d37e990e3e3972" - integrity sha512-ZfOVMY1io6cUOLyMkMdopFxPBvuKkk2NnqifNIXq5CUYNRQtxagzg4wwn6paaMHIIoXzutnqD1mTA6B3UKCCiA== +"@web3-onboard/ledger@^2.7.0-alpha.2": + version "2.7.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/ledger/-/ledger-2.7.0-wagmi.2.tgz#ed6ee7e6b31870a1feffd9fffb8d2022680cba33" + integrity sha512-mdO4Uds6fGUFeLQqxRIHboMBoy+4CpE0aCyRxJZ67K4Xax71xmZM8le5W6UCGtPLmy8xp69rdeH8FPSBK0x4mA== dependencies: - "@ethersproject/providers" "5.5.0" "@ledgerhq/connect-kit" "1.1.12" "@walletconnect/client" "^1.8.0" "@walletconnect/ethereum-provider" "2.9.1" "@walletconnect/modal" "2.6.1" - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" rxjs "^7.5.2" -"@web3-onboard/magic@^2.1.7": - version "2.1.7" - resolved "https://registry.yarnpkg.com/@web3-onboard/magic/-/magic-2.1.7.tgz#93e23486d1b7d28e5a9d6043274dea719d8076f1" - integrity sha512-jb8jZaY3W+8dEj5gBiUoGbj6cq6NEBSbHpGYGRFCCAL7X/JZZ+j9R5Mz7tzuO5PvMPWhFLzKK2C1ntfv2Kbhjg== +"@web3-onboard/magic@^2.2.0-alpha.2": + version "2.2.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/magic/-/magic-2.2.0-wagmi.2.tgz#38fd97e0f2a1a9e389787f644885b5894e8c89d6" + integrity sha512-ZmJ42IfiRQjRnkOIBJwXobHkh6tbFC0YvjZ6CBoy/zC8ktSxrQV9/KPlTF+HNv89Axsm657gTtfxl+0CCt7chA== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" joi "17.9.1" magic-sdk "^8.1.0" rxjs "^7.5.2" -"@web3-onboard/metamask@^2.0.7": - version "2.0.7-alpha-1" - resolved "https://registry.yarnpkg.com/@web3-onboard/metamask/-/metamask-2.0.7-alpha-1.tgz#62dd1616eb6441cf01983ff60ad9448d2ad729bc" - integrity sha512-B2n03aiwwawndyhp8PYOb9wzJrgLLPEtKmwwODnUF15i6dbiqnUVZQDEEg6T00UEKyN/hPzVR7uQbYnH6rLIaA== +"@web3-onboard/metamask@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/metamask/-/metamask-2.1.0-wagmi.2.tgz#1be2d548b5048f42f2496e932a683bfe17b6424f" + integrity sha512-5Fmcf5DumM40wu3jN9al2E9PjKm60wxLjGIpg2gHZq2popQAMT2s20vdFb/DS/HR3rvZvQFOAsrHkcYp8KQw9Q== dependencies: "@metamask/sdk" "^0.20.3" - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/mew-wallet@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@web3-onboard/mew-wallet/-/mew-wallet-2.0.4.tgz#badfc34f107f3d68bae9bab0c6540e906e57ed6a" - integrity sha512-8ZgC9cmc3layZPywwC6qtV2V0di0Qnn9gXhYA1i0i4jn1bZloqo5ZP5SwZGI7lOm247Q4vja+oCrzXy5KyFCUA== +"@web3-onboard/mew-wallet@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/mew-wallet/-/mew-wallet-2.1.0-wagmi.2.tgz#04ea16dc214a13f3873313616d6d0f85d8be346e" + integrity sha512-EyFp5SvZYB7Vf8w3PgfOj8aFo2RXH8Ek/RbQZqbba4+TvejP7JYXj+fXiq3nQCsuOfgtbtDtJb8z3olRLGzngg== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" lodash.uniqby "^4.7.0" -"@web3-onboard/particle-network@^2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@web3-onboard/particle-network/-/particle-network-2.0.1.tgz#cd449bbc05c1c865b1d347cfca52a75f0c891f4b" - integrity sha512-ycyaPIIMHQ3tnF7Z/0SKYokTkH2fE4J8o5uK/3SfCFii6psS/516oqwVGqfdxaM9tvY7gYvjrKfh+eDbiyW0zg== +"@web3-onboard/particle-network@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/particle-network/-/particle-network-2.1.0-wagmi.2.tgz#381df39cecbb3a6e36769b47393c946245c863eb" + integrity sha512-Bau2BXU2YmVC3uLSTyl2wBnDAZMnqCBml1UEGlBAo0OCdQaoDHZIIg7Uj+mbZtGeiJBTXrOJ/GOOYsj0X/azrA== dependencies: "@particle-network/auth" "^1.2.1" "@particle-network/provider" "^1.2.0" - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" react-dom "^18.2.0" -"@web3-onboard/phantom@^2.0.3": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@web3-onboard/phantom/-/phantom-2.0.3.tgz#56d308f8923e3a826d9d654a306c19ffc0bc262d" - integrity sha512-qMecCdBeh3w8/PzJ03hFfQ6LsXZaq8YIV11AbxtYmVAKl5ZyJzvdao7n1eVRwje4joGSOt6m3YCw83UHacSATA== +"@web3-onboard/phantom@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/phantom/-/phantom-2.1.0-wagmi.2.tgz#d5c146dc70a149d6ab67b1fd127a716581e9c1f9" + integrity sha512-vaIwfPtia0H+M7JS61bzgNG2F5P41BQilzgnVEEyfLd1hh8KI9Ci04gVBM9sdYg6H50KIUQ3N4EvgkKBZsVa2g== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/portis@^2.1.7": - version "2.1.7" - resolved "https://registry.yarnpkg.com/@web3-onboard/portis/-/portis-2.1.7.tgz#20fbdda697a63b7bcbef3056ea67a3312e7f85ca" - integrity sha512-K3Bqr8BlewdDCruaZwP7IP7jGKvKTWXwEVWzvkhW7MzJsAzVhOR29ZdSO1Htt+v7kORCDybDZzGSjZ7wF6EXLA== +"@web3-onboard/portis@^2.2.0-alpha.2": + version "2.2.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/portis/-/portis-2.2.0-wagmi.2.tgz#3d05328f364682e5a87a9b25bdfc0afd57ed95fe" + integrity sha512-jzH1po1Cse9ZjgB2Bbri81gHSaX4MpUF7iMH236wH3Z4aHH7RxjmzPt4m/8IU3CK9fG1iE7NEcg7yUnQ+W4Sqg== dependencies: "@portis/web3" "^4.0.6" - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/sequence@^2.0.8": - version "2.0.8" - resolved "https://registry.yarnpkg.com/@web3-onboard/sequence/-/sequence-2.0.8.tgz#6779194662b8d0e5052e7aa0aa375686ca0c2973" - integrity sha512-AWQCrTXemDu2WBsau5ReoMNw4esg/DWwqG7q/zdtYNxvXFCwmQgM6LNjkMcrcAb3MSrAt4KPQIErAzNYEIJbKA== +"@web3-onboard/sequence@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/sequence/-/sequence-2.1.0-wagmi.2.tgz#1db7970c735256a564ee823dbae1d3c8613b89ed" + integrity sha512-mlMCTRutRJSKpCjPnGDtgJcoa2OjZYRtB+DiE20W5xTkZS38dvk6HUXGTHfQ4VsMCYQma+0YS1IJYvzlA6H37g== dependencies: "0xsequence" "^0.43.1" - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/taho@^2.0.5": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@web3-onboard/taho/-/taho-2.0.5.tgz#899d147c234d61e1fb81045fc7339182c230c632" - integrity sha512-Z5n2UMumLNppOlDgYM9MhrM+YGyz8Emouaf7htH8l4B2r/meV4F3Wkgol2xYuwwu5SJyPaJH2GxNeh/EAfyBxg== +"@web3-onboard/taho@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/taho/-/taho-2.1.0-wagmi.2.tgz#74ae23e4c881f059e0a9ab641f081a5248d3f7a8" + integrity sha512-xucRP3QexkCeq448BMBQz3bJUAvPbh3Y+Okru0wxCtIgXsC2Tpqn7XMO3hOcb+JkhqZsjLZ6yB9OBH096t6zyA== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" tallyho-detect-provider "^1.0.0" tallyho-onboarding "^1.0.2" -"@web3-onboard/torus@^2.2.6": - version "2.2.6" - resolved "https://registry.yarnpkg.com/@web3-onboard/torus/-/torus-2.2.6.tgz#408307cc43d13ccaaa789c2f8f0b6d32bbad71ab" - integrity sha512-UJNZAhFn6C8YJqpB9huHKWUOMKTf2pWBO02Oxr/OIbClB/ljeVo2Bq2ml9vcONFLbAKO00KjfRmXmbuZetWSaA== +"@web3-onboard/torus@^2.3.0-alpha.2": + version "2.3.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/torus/-/torus-2.3.0-wagmi.2.tgz#c9121550114243b1e7e1f2a7dbee93d6a2547cc2" + integrity sha512-VBMX0iTpWCBT7VhX+O7cbEJdW+EklCgeXApK8rjHVsOm2no5mjgmBZZVwAe7AngUv9GOMEpnwAZI/giQVPnvkA== dependencies: "@toruslabs/torus-embed" "2.2.9" - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/transaction-preview@^2.0.8": - version "2.0.9" - resolved "https://registry.yarnpkg.com/@web3-onboard/transaction-preview/-/transaction-preview-2.0.9.tgz#1eae3d22d3d8fbc305684b64491f6ccce0c0bf3c" - integrity sha512-H2S9xOGQ2iibGo5PWVB5H7ApLcX4nImamOudjhmc+9BQXK9NMIbmEuVBwtABYsFkcCu7ueNYEKVY5fYbUg203g== +"@web3-onboard/transaction-preview@^2.1.0-alpha.3": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/transaction-preview/-/transaction-preview-2.1.0-wagmi.2.tgz#f17d39e1bea1b14a5f00123f39ebb3a89a2b3203" + integrity sha512-HJap/T1T4kTaRnXvm+coDhY9eMdIp0GXbmeA84v7BSX6hTUgi7RSrhe7okdL6wvF66VUYdAlRhYKo9ePw68nIQ== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" bnc-sdk "^4.6.7" bowser "^2.11.0" joi "17.9.1" @@ -5200,7 +4895,7 @@ svelte "^3.49.0" svelte-i18n "^3.3.13" -"@web3-onboard/trezor@^2.4.3": +"@web3-onboard/trezor@^2.4.4-alpha.1": version "2.4.4" resolved "https://registry.yarnpkg.com/@web3-onboard/trezor/-/trezor-2.4.4.tgz#71ae98a86f4a0978bc7b76d4b2253de2bc7effa3" integrity sha512-4NeNAdy8Qg3cfFo35vDHBNU18cMKiHUkl0nZi9VDWSxnEzv0ydesx9n0z79BHqu046vV3m5b4mqf2jJeVAlcEQ== @@ -5215,70 +4910,69 @@ ethereumjs-util "^7.1.3" hdkey "^2.0.1" -"@web3-onboard/trust@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@web3-onboard/trust/-/trust-2.0.4.tgz#484904ad93add4276e8fc5a6e27e73147fd47829" - integrity sha512-poXeH71eNj3GFsnvVAdOZquhV14p0OS8slWw0tua8DCFRMm9y9tvh+91OmLzZYdIZUI4cgDZNkF0J+ruF2VgaQ== +"@web3-onboard/trust@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/trust/-/trust-2.1.0-wagmi.2.tgz#b4f8421aeda7e2bad14bce16290f3e3119979a86" + integrity sha512-l/zWaFGYgTxoxO8oLgMPgPjOzomEkUP5OtJvZDrxXmQYPyX1XCTnBZPl1x9dCCopb7rvuZDZlIf4rNn+veWwmg== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/uauth@^2.1.1": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@web3-onboard/uauth/-/uauth-2.1.2.tgz#8268244e3633cffd2260ae2e6b1be34e318a1e73" - integrity sha512-rmEYKnrnNuJ6FwmpAom1QVSNaAwY/3XhlN5tIMxwOsn+j4V7QnGLfD958gQmnQgeuujqBsYfeiZF8ZunyGc1sw== +"@web3-onboard/uauth@^2.2.0-alpha.2": + version "2.2.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/uauth/-/uauth-2.2.0-wagmi.2.tgz#cd808966582f9ed2d48429d0060512cb53177b64" + integrity sha512-liWOgAfLAAoVi3QzQA+82UdSvxJTSBNqZTsNNzDMEDWA4D3sHdSyvdN31BZMvmo4JNsi9G2ErdlDSGZVHAsauw== dependencies: - "@ethersproject/providers" "^5.5.0" "@uauth/js" "^2.4.0" "@walletconnect/client" "^1.8.0" "@walletconnect/ethereum-provider" "2.9.1" "@walletconnect/modal" "2.6.1" "@walletconnect/qrcode-modal" "^1.8.0" - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" joi "17.9.1" rxjs "^7.5.2" -"@web3-onboard/venly@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@web3-onboard/venly/-/venly-2.0.0.tgz#99a72e6de95a962e684cc3ab681fd3fe95e17d53" - integrity sha512-OA9U4J3HMoSiByoR+NzUllp+tfh3O1wHOJRPB5hSsb8hOAWgrd3Dv6Fys36HpqWe9VkMIAMAbWT8/ufEbQ7ciw== +"@web3-onboard/venly@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/venly/-/venly-2.1.0-wagmi.2.tgz#54c261766b5ada5275e52c59b83848eb6211da91" + integrity sha512-zhS8k3cd2FHd3WIYbKprAyicg3cb+fnTA/DMwbuV2qEZPVF/SxyQhmEWOoo4KsZaMgbSBTqKCtdaA7Ufb49flg== dependencies: - "@venly/web3-provider" "^3.1.1" - "@web3-onboard/common" "^2.3.1" + "@venly/web3-provider" "^3.5.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/walletconnect@^2.5.5": - version "2.5.5" - resolved "https://registry.yarnpkg.com/@web3-onboard/walletconnect/-/walletconnect-2.5.5.tgz#a0a136f2622156b1004a58d77e21c379cb16391c" - integrity sha512-+ShSG20r783R+a1bPsbA6ofPTtVz2BFR8Z2/dQKsM+alQKAzBVprWjYW+PE+Mg/IC8QspiLWz/GXXLzLxYxeKw== +"@web3-onboard/walletconnect@^2.6.0-alpha.2": + version "2.6.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/walletconnect/-/walletconnect-2.6.0-wagmi.2.tgz#15603d44ca838cdf6850774aac1d4c5b710bc614" + integrity sha512-9rC9ZQOdVX0AgKh+feHDdEKKJR7Mzm6fZIP9QcJ6m0Ju6P7E99yKUDHAVpNpWOuxyG03yruFWaN/6KY3VnU0tw== dependencies: - "@walletconnect/ethereum-provider" "^2.12.2" - "@web3-onboard/common" "^2.3.3" + "@walletconnect/ethereum-provider" "^2.13.0" + "@web3-onboard/common" "^2.4.0-wagmi.2" joi "17.9.1" rxjs "^7.5.2" -"@web3-onboard/web3auth@^2.2.3": - version "2.2.3" - resolved "https://registry.yarnpkg.com/@web3-onboard/web3auth/-/web3auth-2.2.3.tgz#444bc078321ba6dcb36b3f3c6d37441c5914f4cb" - integrity sha512-uYlMLFXRwoLVaTcxxybdPIi+bhBo4vLo1W6q65bS33aEwACPFK0ixb+YIGNGXI9Yqxr9gQU4XlSzfNMD/MTOaw== +"@web3-onboard/web3auth@^2.3.0-alpha.2": + version "2.3.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/web3auth/-/web3auth-2.3.0-wagmi.2.tgz#261bb9ac623affd7f8fe4602ce6ebc333805a584" + integrity sha512-66o+UgGFn+ukO7S6PkjXUR/zPwLBgKaGctwHRDfkEVt3IxJ1hjQa9pBj+9Ig3JrWi1GsLGcdrULeLtpegGpWLw== dependencies: "@solana/web3.js" "^1.73.0" - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" "@web3auth/base" "^5.0.1" "@web3auth/modal" "^5.0.1" react-dom "^18.2.0" -"@web3-onboard/xdefi@^2.0.4": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@web3-onboard/xdefi/-/xdefi-2.0.5.tgz#aa735def9de268b5a1df3aacb37b7c7e51f35c90" - integrity sha512-RSTJvxWP1PeWm0wDo+Vt6NvO63gLVjMy6WbBTIpXT6C5YNmk2VnDeoNE73/kBYJQyJKg7I9ovDvaZ1h+cQck7g== +"@web3-onboard/xdefi@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/xdefi/-/xdefi-2.1.0-wagmi.2.tgz#0a2f530081b7db6c3a4a03576e9fa1c69dc41a4f" + integrity sha512-30qQ2H4StsNpy2b2QQ00uRwkNHS0J/Zsz4y+bvOPdPlvAg7M6ypxEwJQTqfHgwyQOO1sKhudDmwIyx7uSiDGoQ== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" -"@web3-onboard/zeal@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@web3-onboard/zeal/-/zeal-2.0.4.tgz#64fa5589b42d1815fb384ac0c327aa5d8cdfd44d" - integrity sha512-zt5+LtEWkWTikl9ZL3IYX/58ntJRkwlCmJ9+vdUKl36KMwD2CxK51nN9dK5Cg0/tpXqPEGI7qsvyetCx2yMS0g== +"@web3-onboard/zeal@^2.1.0-alpha.2": + version "2.1.0-wagmi.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/zeal/-/zeal-2.1.0-wagmi.2.tgz#ebeba02146834d230f0ee4fb3daf7b11e4023056" + integrity sha512-G05klvloSkbuQXAZyP36QDfvSD13aEaRvU5Pi7KEYUJxz8LkeTfVyI0ochjwvEEX/4hFF7Y6H1ajPMfj1RrGEw== dependencies: - "@web3-onboard/common" "^2.3.3" + "@web3-onboard/common" "^2.4.0-wagmi.2" "@web3-react/abstract-connector@^6.0.7": version "6.0.7" @@ -5481,16 +5175,6 @@ "@web3auth/base-evm-adapter" "^5.2.0" "@web3auth/ethereum-provider" "^5.2.0" -"@xmldom/xmldom@^0.8.8": - version "0.8.10" - resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.8.10.tgz#a1337ca426aa61cef9fe15b5b28e340a72f6fa99" - integrity sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw== - -"@xmldom/xmldom@~0.7.7": - version "0.7.13" - resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.13.tgz#ff34942667a4e19a9f4a0996a76814daac364cf3" - integrity sha512-lm2GW5PkosIzccsaZIz7tp8cPADSIlIHWDFTR1N0SzfinhhYgeIQjFMz4rYzanCScr3DqQLeomUDArp6MWKm+g== - JSONStream@^1.3.5: version "1.3.5" resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" @@ -5627,7 +5311,7 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" -ansi-styles@^4.0.0, ansi-styles@^4.1.0: +ansi-styles@^4.0.0: version "4.3.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== @@ -5678,7 +5362,7 @@ assert-plus@1.0.0, assert-plus@^1.0.0: resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== -assert@^2.0.0, assert@^2.1.0: +assert@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/assert/-/assert-2.1.0.tgz#6d92a238d05dc02e7427c881fb8be81c8448b2dd" integrity sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw== @@ -5796,7 +5480,7 @@ axios@^0.21.0, axios@^0.21.2: dependencies: follow-redirects "^1.14.0" -axios@^1.3.6, axios@^1.6.3: +axios@^1.3.6: version "1.7.2" resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.2.tgz#b625db8a7051fbea61c35a3cbb3a1daa7b9c7621" integrity sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw== @@ -5863,12 +5547,12 @@ base64-js@1.3.1: resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.1.tgz#58ece8cb75dd07e71ed08c736abc5fac4dbf8df1" integrity sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g== -base64-js@^1.2.3, base64-js@^1.3.0, base64-js@^1.3.1, base64-js@^1.5.1: +base64-js@^1.3.0, base64-js@^1.3.1: version "1.5.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -base64url@3.0.1, base64url@^3.0.1: +base64url@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/base64url/-/base64url-3.0.1.tgz#6399d572e2bc3f90a9a8b22d5dbb0a32d33f788d" integrity sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A== @@ -5905,7 +5589,7 @@ big-integer@1.6.36: resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.36.tgz#78631076265d4ae3555c04f85e7d9d2f3a071a36" integrity sha512-t70bfa7HYEA1D9idDbmuv7YbsbVkQ+Hp+8KFSul4aE5e/i1bjCNIRYJZlA8Q8p0r9T8cF/RVvwUgRA//FydEyg== -big-integer@1.6.x, big-integer@^1.6.44, big-integer@^1.6.48: +big-integer@^1.6.44, big-integer@^1.6.48: version "1.6.52" resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.52.tgz#60a887f3047614a8e1bffe5d7173490a97dc8c85" integrity sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg== @@ -6049,11 +5733,6 @@ bnc-sdk@^4.6.6, bnc-sdk@^4.6.7: rxjs "^6.6.3" sturdy-websocket "^0.1.12" -body-scroll-lock@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/body-scroll-lock/-/body-scroll-lock-3.1.5.tgz#c1392d9217ed2c3e237fee1e910f6cdd80b7aaec" - integrity sha512-Yi1Xaml0EvNA0OYWxXiYNqY24AfWkbA6w5vxE7GWxtKfzIbZM+Qw+aSmkgsbWzbHiy/RCSkUZBplVxTA+E4jJg== - borsh@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/borsh/-/borsh-0.7.0.tgz#6e9560d719d86d90dc589bca60ffc8a6c51fec2a" @@ -6068,20 +5747,6 @@ bowser@^2.11.0, bowser@^2.9.0: resolved "https://registry.yarnpkg.com/bowser/-/bowser-2.11.0.tgz#5ca3c35757a7aa5771500c70a73a9f91ef420a8f" integrity sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA== -bplist-creator@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/bplist-creator/-/bplist-creator-0.1.0.tgz#018a2d1b587f769e379ef5519103730f8963ba1e" - integrity sha512-sXaHZicyEEmY86WyueLTQesbeoH/mquvarJaQNbjuOQO+7gbFcDEWqKmcWA4cOTLzFlfgvkiVxolk1k5bBIpmg== - dependencies: - stream-buffers "2.2.x" - -bplist-parser@0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/bplist-parser/-/bplist-parser-0.3.1.tgz#e1c90b2ca2a9f9474cc72f6862bbf3fee8341fd1" - integrity sha512-PyJxiNtA5T2PlLIeBot4lbp7rj4OadzjnMZD/G5zuBNt8ei/yCU7+wW0h2bag9vr8c+/WuRWmSxbqAl9hL1rBA== - dependencies: - big-integer "1.6.x" - brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -6316,11 +5981,6 @@ camelcase@^5.0.0, camelcase@^5.3.1: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== -camelize@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.1.tgz#89b7e16884056331a35d6b5ad064332c91daa6c3" - integrity sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ== - caniuse-lite@^1.0.30001587, caniuse-lite@^1.0.30001599: version "1.0.30001620" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001620.tgz#78bb6f35b8fe315b96b8590597094145d0b146b4" @@ -6343,11 +6003,6 @@ cbor-sync@^1.0.4: resolved "https://registry.yarnpkg.com/cbor-sync/-/cbor-sync-1.0.4.tgz#5a11a1ab75c2a14d1af1b237fd84aa8c1593662f" integrity sha512-GWlXN4wiz0vdWWXBU71Dvc1q3aBo0HytqwAZnXF1wOwjqNnDWA1vZ1gDMFLlqohak31VQzmhiYfiCX5QSSfagA== -cbor-web@8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/cbor-web/-/cbor-web-8.1.0.tgz#c1148e91ca6bfc0f5c07c1df164854596e2e33d6" - integrity sha512-2hWHHMVrfffgoEmsAUh8vCxHoLa1vgodtC73+C5cSarkJlwTapnqAzcHINlP6Ej0DXuP4OmmJ9LF+JaNM5Lj/g== - chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" @@ -6357,14 +6012,6 @@ chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - checkpoint-store@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/checkpoint-store/-/checkpoint-store-1.1.0.tgz#04e4cb516b91433893581e6d4601a78e9552ea06" @@ -6695,26 +6342,12 @@ crypto-js@^4.0.0, crypto-js@^4.1.1: resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631" integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q== -css-color-keywords@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05" - integrity sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg== - -css-to-react-native@3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-3.2.0.tgz#cdd8099f71024e149e4f6fe17a7d46ecd55f1e32" - integrity sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ== - dependencies: - camelize "^1.0.0" - css-color-keywords "^1.0.0" - postcss-value-parser "^4.0.2" - cssesc@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== -csstype@3.1.3, csstype@^3.0.2: +csstype@^3.0.2: version "3.1.3" resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81" integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== @@ -7565,7 +7198,7 @@ ethereumjs-util@7.1.5, ethereumjs-util@^7.0.10, ethereumjs-util@^7.0.7, ethereum ethereum-cryptography "^0.1.3" rlp "^2.2.4" -ethereumjs-util@^5.0.0, ethereumjs-util@^5.1.1, ethereumjs-util@^5.1.2, ethereumjs-util@^5.1.5, ethereumjs-util@^5.2.0: +ethereumjs-util@^5.0.0, ethereumjs-util@^5.1.1, ethereumjs-util@^5.1.2, ethereumjs-util@^5.1.5: version "5.2.1" resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz#a833f0e5fca7e5b361384dc76301a721f537bf65" integrity sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ== @@ -7608,42 +7241,6 @@ ethereumjs-vm@^2.3.4: rustbn.js "~0.2.0" safe-buffer "^5.1.1" -ethers@5.5.3: - version "5.5.3" - resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.5.3.tgz#1e361516711c0c3244b6210e7e3ecabf0c75fca0" - integrity sha512-fTT4WT8/hTe/BLwRUtl7I5zlpF3XC3P/Xwqxc5AIP2HGlH15qpmjs0Ou78az93b1rLITzXLFxoNX63B8ZbUd7g== - dependencies: - "@ethersproject/abi" "5.5.0" - "@ethersproject/abstract-provider" "5.5.1" - "@ethersproject/abstract-signer" "5.5.0" - "@ethersproject/address" "5.5.0" - "@ethersproject/base64" "5.5.0" - "@ethersproject/basex" "5.5.0" - "@ethersproject/bignumber" "5.5.0" - "@ethersproject/bytes" "5.5.0" - "@ethersproject/constants" "5.5.0" - "@ethersproject/contracts" "5.5.0" - "@ethersproject/hash" "5.5.0" - "@ethersproject/hdnode" "5.5.0" - "@ethersproject/json-wallets" "5.5.0" - "@ethersproject/keccak256" "5.5.0" - "@ethersproject/logger" "5.5.0" - "@ethersproject/networks" "5.5.2" - "@ethersproject/pbkdf2" "5.5.0" - "@ethersproject/properties" "5.5.0" - "@ethersproject/providers" "5.5.2" - "@ethersproject/random" "5.5.1" - "@ethersproject/rlp" "5.5.0" - "@ethersproject/sha2" "5.5.0" - "@ethersproject/signing-key" "5.5.0" - "@ethersproject/solidity" "5.5.0" - "@ethersproject/strings" "5.5.0" - "@ethersproject/transactions" "5.5.0" - "@ethersproject/units" "5.5.0" - "@ethersproject/wallet" "5.5.0" - "@ethersproject/web" "5.5.1" - "@ethersproject/wordlists" "5.5.0" - ethers@5.5.4: version "5.5.4" resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.5.4.tgz#e1155b73376a2f5da448e4a33351b57a885f4352" @@ -7765,16 +7362,16 @@ eventemitter3@4.0.4: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.4.tgz#b5463ace635a083d018bdc7c917b4c5f10a85384" integrity sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ== -eventemitter3@5.0.1, eventemitter3@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" - integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== - eventemitter3@^4.0.4, eventemitter3@^4.0.7: version "4.0.7" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== +eventemitter3@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" + integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== + events@3.3.0, events@^3.0.0, events@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" @@ -7823,13 +7420,6 @@ exenv@^1.2.0: resolved "https://registry.yarnpkg.com/exenv/-/exenv-1.2.2.tgz#2ae78e85d9894158670b03d47bec1f03bd91bb9d" integrity sha512-Z+ktTxTwv9ILfgKCk32OX3n/doe+OcLTRtqK9pcL+JsP3J1/VW8Uvl4ZjLlKqeW4rzK4oesDOGMEMRIZqtP4Iw== -expo-constants@15.4.5: - version "15.4.5" - resolved "https://registry.yarnpkg.com/expo-constants/-/expo-constants-15.4.5.tgz#81756a4c4e1c020f840a419cd86a124a6d1fb35b" - integrity sha512-1pVVjwk733hbbIjtQcvUFCme540v4gFemdNlaxM2UXKbfRCOh2hzgKN5joHMOysoXQe736TTUrRj7UaZI5Yyhg== - dependencies: - "@expo/config" "~8.5.0" - ext@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f" @@ -7959,7 +7549,7 @@ find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" -find-up@^5.0.0, find-up@~5.0.0: +find-up@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== @@ -8093,11 +7683,6 @@ get-stream@^8.0.1: resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-8.0.1.tgz#def9dfd71742cd7754a7761ed43749a27d02eca2" integrity sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA== -getenv@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/getenv/-/getenv-1.0.0.tgz#874f2e7544fbca53c7a4738f37de8605c3fcfc31" - integrity sha512-7yetJWqbS9sbn0vIfliPsFgoXMKn/YMF+Wuiog97x+urnSRRRZ7xB+uVkwGKzRgq9CDFfMQnE9ruL5DHv9c6Xg== - getpass@^0.1.1: version "0.1.7" resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" @@ -8119,18 +7704,6 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob@7.1.6: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - glob@^10.3.10: version "10.3.16" resolved "https://registry.yarnpkg.com/glob/-/glob-10.3.16.tgz#bf6679d5d51279c8cfae4febe0d051d2a4bf4c6f" @@ -8197,7 +7770,7 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -graceful-fs@^4.1.11, graceful-fs@^4.1.3: +graceful-fs@^4.1.3: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -8207,11 +7780,6 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.3: resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" integrity sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w== -gsap@^3.12.5: - version "3.12.5" - resolved "https://registry.yarnpkg.com/gsap/-/gsap-3.12.5.tgz#136c02dad4c673b441bdb1ca00104bfcb4eae7f4" - integrity sha512-srBfnk4n+Oe/ZnMIOXt3gT605BX9x5+rh/prT2F1SsNJsU1XuMiP0E2aptW481OnonOGACZWBqseH5Z7csHxhQ== - h3@^1.10.2, h3@^1.11.1: version "1.11.1" resolved "https://registry.yarnpkg.com/h3/-/h3-1.11.1.tgz#e9414ae6f2a076a345ea07256b320edb29bab9f7" @@ -8246,11 +7814,6 @@ has-flag@^3.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" @@ -8429,11 +7992,6 @@ import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -8469,11 +8027,6 @@ invariant@2.2.4: dependencies: loose-envify "^1.0.0" -io-ts@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/io-ts/-/io-ts-2.0.1.tgz#1261c12f915c2f48d16393a36966636b48a45aa1" - integrity sha512-RezD+WcCfW4VkMkEcQWL/Nmy/nqsWTvTYg7oUmTGzglvSSV2P9h2z1PVeREPFf0GWNzruYleAt1XCMQZSg1xxQ== - ip-address@^9.0.5: version "9.0.5" resolved "https://registry.yarnpkg.com/ip-address/-/ip-address-9.0.5.tgz#117a960819b08780c3bd1f14ef3c1cc1d3f3ea5a" @@ -8726,18 +8279,6 @@ jiti@^1.21.0: resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d" integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q== -joi@17.8.1: - version "17.8.1" - resolved "https://registry.yarnpkg.com/joi/-/joi-17.8.1.tgz#82f08b9b7b16e770537914155e78f3fe185b9d18" - integrity sha512-Zoafe6E2kQ+hkkJQSBnOxA8beb2LF33keCxZP3vSy7qTHj9/2GAEQ9KLwfe+PR35WvspwNz0jWajDIHLnCKfpg== - dependencies: - "@hapi/address" "^5.1.0" - "@hapi/formula" "^3.0.2" - "@hapi/hoek" "^11.0.2" - "@hapi/pinpoint" "^2.0.1" - "@hapi/tlds" "^1.0.1" - "@hapi/topo" "^6.0.1" - joi@17.9.1: version "17.9.1" resolved "https://registry.yarnpkg.com/joi/-/joi-17.9.1.tgz#74899b9fa3646904afa984a11df648eca66c9018" @@ -8848,7 +8389,7 @@ json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== -json5@^2.2.2, json5@^2.2.3: +json5@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== @@ -9223,13 +8764,6 @@ lru-cache@^5.1.1: dependencies: yallist "^3.0.2" -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - lru-queue@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/lru-queue/-/lru-queue-0.1.0.tgz#2738bd9f0d3cf4f84490c5736c48699ac632cda3" @@ -9398,7 +8932,7 @@ minimalistic-crypto-utils@^1.0.1: resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== -minimatch@^3.0.4, minimatch@^3.1.1: +minimatch@^3.1.1: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -9422,13 +8956,6 @@ minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.1.tgz#f7f85aff59aa22f110b20e27692465cf3bf89481" integrity sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA== -mipd@0.0.5: - version "0.0.5" - resolved "https://registry.yarnpkg.com/mipd/-/mipd-0.0.5.tgz#367ee796531c23f0631f129038700b1406663aec" - integrity sha512-gbKA784D2WKb5H/GtqEv+Ofd1S9Zj+Z/PGDIl1u1QAbswkxD28BQ5bSXQxkeBzPBABg1iDSbiwGG1XqlOxRspA== - dependencies: - viem "^1.1.4" - mkdirp@^0.5.1: version "0.5.6" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" @@ -9562,6 +9089,11 @@ node-addon-api@^7.0.0: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-7.1.0.tgz#71f609369379c08e251c558527a107107b5e0fdb" integrity sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g== +node-addon-api@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-8.0.0.tgz#5453b7ad59dd040d12e0f1a97a6fa1c765c5c9d2" + integrity sha512-ipO7rsHEBqa9STO5C5T10fj732ml+5kLN1cAG8/jdHd56ldQeGj3Q7+scUS+VHK/qy1zLEwC4wMK5+yM0btPvw== + node-fetch-native@^1.6.1, node-fetch-native@^1.6.2, node-fetch-native@^1.6.3: version "1.6.4" resolved "https://registry.yarnpkg.com/node-fetch-native/-/node-fetch-native-1.6.4.tgz#679fc8fd8111266d47d7e72c379f1bed9acff06e" @@ -9574,7 +9106,7 @@ node-fetch@^2.6.0, node-fetch@^2.6.1, node-fetch@^2.6.12, node-fetch@^2.6.7, nod dependencies: whatwg-url "^5.0.0" -node-forge@1.3.1, node-forge@^1.3.1: +node-forge@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== @@ -9765,7 +9297,7 @@ p-limit@^2.0.0, p-limit@^2.2.0: dependencies: p-try "^2.0.0" -p-limit@^3.0.2, p-limit@^3.1.0: +p-limit@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== @@ -9895,11 +9427,6 @@ penpal@3.0.7: resolved "https://registry.yarnpkg.com/penpal/-/penpal-3.0.7.tgz#d252711ed93b30f1d867eb82342785b3a95f5f75" integrity sha512-WSXiq5HnEvzvY05SHhaXcsviUmCvh4Ze8AiIZzvmdzaaYAAx4rx8c6Xq6+MaVDG/Nfve3VmGD8HyRP3CkPvPbQ== -penpal@^6.0.1: - version "6.2.2" - resolved "https://registry.yarnpkg.com/penpal/-/penpal-6.2.2.tgz#20a0a0592881a959e8c87116d854f9528b1aa601" - integrity sha512-RQD7hTx14/LY7QoS3tQYO3/fzVtwvZI+JeS5udgsu7FPaEDjlvfK9HBcme9/ipzSPKnrxSgacI9PI7154W62YQ== - performance-now@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" @@ -9979,15 +9506,6 @@ pkg-types@^1.0.3, pkg-types@^1.1.0: mlly "^1.7.0" pathe "^1.1.2" -plist@^3.0.5: - version "3.1.0" - resolved "https://registry.yarnpkg.com/plist/-/plist-3.1.0.tgz#797a516a93e62f5bde55e0b9cc9c967f860893c9" - integrity sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ== - dependencies: - "@xmldom/xmldom" "^0.8.8" - base64-js "^1.5.1" - xmlbuilder "^15.1.1" - pngjs@^3.3.0: version "3.4.0" resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f" @@ -10062,12 +9580,12 @@ postcss-selector-parser@^6.0.11: cssesc "^3.0.0" util-deprecate "^1.0.2" -postcss-value-parser@^4.0.0, postcss-value-parser@^4.0.2, postcss-value-parser@^4.2.0: +postcss-value-parser@^4.0.0, postcss-value-parser@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== -postcss@8.4.38, postcss@^8.4.23, postcss@^8.4.27: +postcss@^8.4.23, postcss@^8.4.27: version "8.4.38" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.38.tgz#b387d533baf2054288e337066d81c6bee9db9e0e" integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== @@ -10304,7 +9822,7 @@ qrcode@1.5.3: pngjs "^5.0.0" yargs "^15.3.1" -qs@^6.11.2, qs@^6.12.0: +qs@^6.11.2: version "6.12.1" resolved "https://registry.yarnpkg.com/qs/-/qs-6.12.1.tgz#39422111ca7cbdb70425541cba20c7d7b216599a" integrity sha512-zWmv4RSuB9r2mYQw3zxQuHWeU+42aKi1wWig/j4ele4ygELZ7PEO6MM7rim9oAQH2A5MWfsAVf/jPvTPgCbvUQ== @@ -10459,7 +9977,7 @@ react@16.13.1: object-assign "^4.1.1" prop-types "^15.6.2" -react@>=16, react@^18.2.0: +react@^18.2.0: version "18.3.1" resolved "https://registry.yarnpkg.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891" integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ== @@ -10584,11 +10102,6 @@ require-directory@^2.1.1: resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== -require-from-string@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" - integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== - require-main-filename@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" @@ -10599,11 +10112,6 @@ resolve-from@^4.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - resolve@^1.1.7, resolve@^1.14.2, resolve@^1.22.2: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" @@ -10704,12 +10212,12 @@ rollup-plugin-dotenv@0.5.0: "@rollup/plugin-replace" "^5.0.1" dotenv "^16.0.3" -rollup-plugin-polyfill-node@^0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/rollup-plugin-polyfill-node/-/rollup-plugin-polyfill-node-0.12.0.tgz#33d421ddb7fcb69c234461e508ca6d2db6193f1d" - integrity sha512-PWEVfDxLEKt8JX1nZ0NkUAgXpkZMTb85rO/Ru9AQ69wYW8VUCfDgP4CGRXXWYni5wDF0vIeR1UoF3Jmw/Lt3Ug== +rollup-plugin-polyfill-node@^0.13.0: + version "0.13.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-polyfill-node/-/rollup-plugin-polyfill-node-0.13.0.tgz#28e5705b59438da894e55133a0fe7a86b57d9b0a" + integrity sha512-FYEvpCaD5jGtyBuBFcQImEGmTxDTPbiHjJdrYIp+mFIwgXiXabxvKUK7ZT9P31ozu2Tqm9llYQMRWsfvTMTAOw== dependencies: - "@rollup/plugin-inject" "^5.0.1" + "@rollup/plugin-inject" "^5.0.4" rollup-plugin-visualizer@^5.9.2: version "5.12.0" @@ -10822,11 +10330,6 @@ sander@^0.5.0: mkdirp "^0.5.1" rimraf "^2.5.2" -sax@>=0.6.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.3.0.tgz#a5dbe77db3be05c9d1ee7785dbd3ea9de51593d0" - integrity sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA== - scheduler@^0.19.1: version "0.19.1" resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.19.1.tgz#4f3e2ed2c1a7d65681f4c854fa8c5a1ccb40f196" @@ -10908,19 +10411,12 @@ semaphore@>=1.0.1, semaphore@^1.0.3: resolved "https://registry.yarnpkg.com/semaphore/-/semaphore-1.1.0.tgz#aaad8b86b20fe8e9b32b16dc2ee682a8cd26a8aa" integrity sha512-O4OZEaNtkMd/K0i6js9SL+gqy0ZCBMgUvlSqHKi4IBdjhe7wB8pwztUk1BbZ1fmrvpwFrPbHzqd2w5pTcJH6LA== -semver@7.5.3: - version "7.5.3" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e" - integrity sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ== - dependencies: - lru-cache "^6.0.0" - semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.3.8, semver@^7.5.3, semver@^7.5.4: +semver@^7.3.8, semver@^7.5.4: version "7.6.2" resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13" integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== @@ -10970,11 +10466,6 @@ sha.js@^2.4.0, sha.js@^2.4.11, sha.js@^2.4.8: inherits "^2.0.1" safe-buffer "^5.0.1" -shallowequal@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8" - integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ== - shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -11016,7 +10507,7 @@ side-channel@^1.0.6: get-intrinsic "^1.2.4" object-inspect "^1.13.1" -signal-exit@^3.0.2, signal-exit@^3.0.3: +signal-exit@^3.0.3: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== @@ -11047,15 +10538,6 @@ simple-get@^2.7.0: once "^1.3.1" simple-concat "^1.0.0" -simple-plist@^1.1.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/simple-plist/-/simple-plist-1.3.1.tgz#16e1d8f62c6c9b691b8383127663d834112fb017" - integrity sha512-iMSw5i0XseMnrhtIzRb7XpQEXepa9xhWxGUojHBL43SIpQuDQkh3Wpy67ZbDzZVr6EKxvwVChnVpdl8hEVLDiw== - dependencies: - bplist-creator "0.1.0" - bplist-parser "0.3.1" - plist "^3.0.5" - sirv@^2.0.2: version "2.0.4" resolved "https://registry.yarnpkg.com/sirv/-/sirv-2.0.4.tgz#5dd9a725c578e34e449f332703eb2a74e46a29b0" @@ -11065,16 +10547,6 @@ sirv@^2.0.2: mrmime "^2.0.0" totalist "^3.0.0" -slash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - -slugify@^1.3.4, slugify@^1.6.6: - version "1.6.6" - resolved "https://registry.yarnpkg.com/slugify/-/slugify-1.6.6.tgz#2d4ac0eacb47add6af9e04d3be79319cbcc7924b" - integrity sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw== - smart-buffer@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae" @@ -11192,11 +10664,6 @@ stream-browserify@^3.0.0: inherits "~2.0.4" readable-stream "^3.5.0" -stream-buffers@2.2.x: - version "2.2.0" - resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4" - integrity sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg== - stream-http@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-3.2.0.tgz#1872dfcf24cb15752677e40e5c3f9cc1926028b5" @@ -11269,6 +10736,7 @@ string_decoder@~1.1.1: safe-buffer "~5.1.0" "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: + name strip-ansi-cjs version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -11320,39 +10788,6 @@ sturdy-websocket@^0.1.12: dependencies: lodash.defaults "^4.2.0" -styled-components@^6.1.8: - version "6.1.11" - resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-6.1.11.tgz#01948e5195bf1d39e57e0a85b41958c80e40cfb8" - integrity sha512-Ui0jXPzbp1phYij90h12ksljKGqF8ncGx+pjrNPsSPhbUUjWT2tD1FwGo2LF6USCnbrsIhNngDfodhxbegfEOA== - dependencies: - "@emotion/is-prop-valid" "1.2.2" - "@emotion/unitless" "0.8.1" - "@types/stylis" "4.2.5" - css-to-react-native "3.2.0" - csstype "3.1.3" - postcss "8.4.38" - shallowequal "1.1.0" - stylis "4.3.2" - tslib "2.6.2" - -stylis@4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/stylis/-/stylis-4.3.2.tgz#8f76b70777dd53eb669c6f58c997bf0a9972e444" - integrity sha512-bhtUjWd/z6ltJiQwg0dUfxEJ+W+jdqQd8TbWLWyeIJHlnsqmGLRFFd8e5mA0AZi/zx90smXRlN66YMTcaSFifg== - -sucrase@3.34.0: - version "3.34.0" - resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.34.0.tgz#1e0e2d8fcf07f8b9c3569067d92fbd8690fb576f" - integrity sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw== - dependencies: - "@jridgewell/gen-mapping" "^0.3.2" - commander "^4.0.0" - glob "7.1.6" - lines-and-columns "^1.1.6" - mz "^2.7.0" - pirates "^4.0.1" - ts-interface-checker "^0.1.9" - sucrase@^3.32.0: version "3.35.0" resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.35.0.tgz#57f17a3d7e19b36d8995f06679d121be914ae263" @@ -11388,13 +10823,6 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" -supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" @@ -11634,7 +11062,7 @@ tslib@1.14.1, tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@2.6.2, tslib@^2.0.0, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.4.1: +tslib@^2.0.0, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.4.1: version "2.6.2" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== @@ -11688,15 +11116,15 @@ typescript@^4.6.2: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== -typescript@^5.0.3, typescript@^5.0.4: +typescript@^5.0.3, typescript@^5.4.5: version "5.4.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== ua-parser-js@^1.0.37: - version "1.0.37" - resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.37.tgz#b5dc7b163a5c1f0c510b08446aed4da92c46373f" - integrity sha512-bhTyI94tZofjo+Dn8SN6Zv8nBDvyXTymAdM3LDI/0IboIUwTu1rEhW7v2TfiVsoYWgkQ4kOVqnI8APUFbIQIFQ== + version "1.0.38" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.38.tgz#66bb0c4c0e322fe48edfe6d446df6042e62f25e2" + integrity sha512-Aq5ppTOfvrCMgAPneW1HfWj66Xi7XL+/mIy996R1/CLS/rcyJQm6QZdsKrUeivDFQ+Oc9Wyuwor8Ze8peEoUoQ== ufo@^1.4.0, ufo@^1.5.3: version "1.5.3" @@ -11727,11 +11155,6 @@ uncrypto@^0.1.3: resolved "https://registry.yarnpkg.com/uncrypto/-/uncrypto-0.1.3.tgz#e1288d609226f2d02d8d69ee861fa20d8348ef2b" integrity sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q== -underscore@1.12.1: - version "1.12.1" - resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.12.1.tgz#7bb8cc9b3d397e201cf8553336d262544ead829e" - integrity sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw== - undici-types@~5.26.4: version "5.26.5" resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" @@ -11854,12 +11277,12 @@ url@^0.11.0: qs "^6.11.2" usb@^2.11.0: - version "2.12.1" - resolved "https://registry.yarnpkg.com/usb/-/usb-2.12.1.tgz#f7a68ddb1314d56758e3e3b1265bc467922a9503" - integrity sha512-hgtoSQUFuMXVJBApelpUTiX7ZB83MQCbYeHTBsHftA2JG7YZ76ycwIgKQhkhKqVY76C8K6xJscHpF7Ep0eG3pQ== + version "2.13.0" + resolved "https://registry.yarnpkg.com/usb/-/usb-2.13.0.tgz#521d11244cbe991a3f247c770821635abdcc9c7f" + integrity sha512-pTNKyxD1DfC1DYu8kFcIdpE8f33e0c2Sbmmi0HEs28HTVC555uocvYR1g5DDv4CBibacCh4BqRyYZJylN4mBbw== dependencies: "@types/w3c-web-usb" "^1.0.6" - node-addon-api "^7.0.0" + node-addon-api "^8.0.0" node-gyp-build "^4.5.0" use-sync-external-store@1.2.0: @@ -11922,11 +11345,6 @@ uuid@^3.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== -uuid@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.3.tgz#c5c9f2c8cf25dc0a372c4df1441c41f5bd0c680b" - integrity sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg== - uuidv4@^6.2.13: version "6.2.13" resolved "https://registry.yarnpkg.com/uuidv4/-/uuidv4-6.2.13.tgz#8f95ec5ef22d1f92c8e5d4c70b735d1c89572cb7" @@ -11935,11 +11353,6 @@ uuidv4@^6.2.13: "@types/uuid" "8.3.4" uuid "8.3.2" -validator@^13.11.0: - version "13.12.0" - resolved "https://registry.yarnpkg.com/validator/-/validator-13.12.0.tgz#7d78e76ba85504da3fee4fd1922b385914d4b35f" - integrity sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg== - valtio@1.11.0: version "1.11.0" resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.11.0.tgz#c029dcd17a0f99d2fbec933721fe64cfd32a31ed" @@ -11982,32 +11395,32 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -viem@^1.0.0, viem@^1.1.4, viem@^1.6.0: - version "1.21.4" - resolved "https://registry.yarnpkg.com/viem/-/viem-1.21.4.tgz#883760e9222540a5a7e0339809202b45fe6a842d" - integrity sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ== +viem@2.12.0: + version "2.12.0" + resolved "https://registry.yarnpkg.com/viem/-/viem-2.12.0.tgz#699ba326a1ce0df81042dc8b6f22fa751f9cefce" + integrity sha512-XBvORspE4x2/gfy7idH6IVFwkJiXirygFCU3lxUH6fttsj8zufLtgiokfvZF/LAZUEDvdxSgL08whSYgffM2fw== dependencies: "@adraffy/ens-normalize" "1.10.0" "@noble/curves" "1.2.0" "@noble/hashes" "1.3.2" "@scure/bip32" "1.3.2" "@scure/bip39" "1.2.1" - abitype "0.9.8" - isows "1.0.3" + abitype "1.0.0" + isows "1.0.4" ws "8.13.0" -viem@^2.9.15: - version "2.11.1" - resolved "https://registry.yarnpkg.com/viem/-/viem-2.11.1.tgz#03ff205734c21748b7a0df8e5f956db61ebaf1c5" - integrity sha512-4iypXhxWkXoWO45XStxQvhj/vYZ5+3AtSEngHiOnuHOSNoiIsYfDvTMoTiAO53PeyYvExyVzJc9BFwejGHh7pg== +viem@^1.0.0, viem@^1.6.0: + version "1.21.4" + resolved "https://registry.yarnpkg.com/viem/-/viem-1.21.4.tgz#883760e9222540a5a7e0339809202b45fe6a842d" + integrity sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ== dependencies: "@adraffy/ens-normalize" "1.10.0" "@noble/curves" "1.2.0" "@noble/hashes" "1.3.2" "@scure/bip32" "1.3.2" "@scure/bip39" "1.2.1" - abitype "1.0.0" - isows "1.0.4" + abitype "0.9.8" + isows "1.0.3" ws "8.13.0" vite@^4.5.3: @@ -12041,15 +11454,6 @@ vscode-textmate@^8.0.0: resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-8.0.0.tgz#2c7a3b1163ef0441097e0b5d6389cd5504b59e5d" integrity sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg== -wagmi@^2.5.19: - version "2.9.3" - resolved "https://registry.yarnpkg.com/wagmi/-/wagmi-2.9.3.tgz#9ebd892f34a450d13c0c2d97128dab45b5672d91" - integrity sha512-pB2pKQy1h76/ozOnmIVfI1ydNeMuMjRgQ6L6vUAuJi3cx7rg3xKBdj2yur+MWCATWjj4J7fO291dCDhaPIF1NA== - dependencies: - "@wagmi/connectors" "5.0.2" - "@wagmi/core" "2.10.2" - use-sync-external-store "1.2.0" - warning@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/warning/-/warning-4.0.3.tgz#16e9e077eb8a86d6af7d64aa1e05fd85b4678ca3" @@ -12116,15 +11520,6 @@ web3-core@1.5.2: web3-core-requestmanager "1.5.2" web3-utils "1.5.2" -web3-eth-abi@1.3.6: - version "1.3.6" - resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.3.6.tgz#4272ca48d817aa651bbf97b269f5ff10abc2b8a9" - integrity sha512-Or5cRnZu6WzgScpmbkvC6bfNxR26hqiKK4i8sMPFeTUABQcb/FU3pBj7huBLYbp9dH+P5W79D2MqwbWwjj9DoQ== - dependencies: - "@ethersproject/abi" "5.0.7" - underscore "1.12.1" - web3-utils "1.3.6" - web3-eth-iban@1.5.2: version "1.5.2" resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.5.2.tgz#f390ad244ef8a6c94de7c58736b0b80a484abc8e" @@ -12186,20 +11581,6 @@ web3-providers-ws@1.5.2: web3-core-helpers "1.5.2" websocket "^1.0.32" -web3-utils@1.3.6: - version "1.3.6" - resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.3.6.tgz#390bc9fa3a7179746963cfaca55bb80ac4d8dc10" - integrity sha512-hHatFaQpkQgjGVER17gNx8u1qMyaXFZtM0y0XLGH1bzsjMPlkMPLRcYOrZ00rOPfTEuYFOdrpGOqZXVmGrMZRg== - dependencies: - bn.js "^4.11.9" - eth-lib "0.2.8" - ethereum-bloom-filters "^1.0.6" - ethjs-unit "0.1.6" - number-to-bn "1.7.0" - randombytes "^2.1.0" - underscore "1.12.1" - utf8 "3.0.0" - web3-utils@1.5.2: version "1.5.2" resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.5.2.tgz#150982dcb1918ffc54eba87528e28f009ebc03aa" @@ -12373,15 +11754,6 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -write-file-atomic@^2.3.0: - version "2.4.3" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481" - integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== - dependencies: - graceful-fs "^4.1.11" - imurmurhash "^0.1.4" - signal-exit "^3.0.2" - ws@7.4.6: version "7.4.6" resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" @@ -12433,14 +11805,6 @@ ws@~8.11.0: resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143" integrity sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg== -xcode@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/xcode/-/xcode-3.0.1.tgz#3efb62aac641ab2c702458f9a0302696146aa53c" - integrity sha512-kCz5k7J7XbJtjABOvkc5lJmkiDh8VhjVCGNiqdKCscmVpdVUpEAyXv1xmCLkQJ5dsHqx3IPO4XW+NTDhU/fatA== - dependencies: - simple-plist "^1.1.0" - uuid "^7.0.3" - xhr-request-promise@^0.1.2: version "0.1.3" resolved "https://registry.yarnpkg.com/xhr-request-promise/-/xhr-request-promise-0.1.3.tgz#2d5f4b16d8c6c893be97f1a62b0ed4cf3ca5f96c" @@ -12478,29 +11842,6 @@ xhr@^2.0.4, xhr@^2.2.0: parse-headers "^2.0.0" xtend "^4.0.0" -xml2js@0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.6.0.tgz#07afc447a97d2bd6507a1f76eeadddb09f7a8282" - integrity sha512-eLTh0kA8uHceqesPqSE+VvO1CDDJWMwlQfB6LuN6T8w6MaDJ8Txm8P7s5cHD0miF0V+GGTZrDQfxPZQVsur33w== - dependencies: - sax ">=0.6.0" - xmlbuilder "~11.0.0" - -xmlbuilder@^14.0.0: - version "14.0.0" - resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-14.0.0.tgz#876b5aec4f05ffd5feb97b0a871c855d16fbeb8c" - integrity sha512-ts+B2rSe4fIckR6iquDjsKbQFK2NlUk6iG5nf14mDEyldgoc2nEKZ3jZWMPTxGQwVgToSjt6VGIho1H8/fNFTg== - -xmlbuilder@^15.1.1: - version "15.1.1" - resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-15.1.1.tgz#9dcdce49eea66d8d10b42cae94a79c3c8d0c2ec5" - integrity sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg== - -xmlbuilder@~11.0.0: - version "11.0.1" - resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz#be9bae1c8a046e76b31127726347d0ad7002beb3" - integrity sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA== - xmlhttprequest-ssl@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz#91360c86b914e67f44dce769180027c0da618c67" @@ -12546,11 +11887,6 @@ yallist@^3.0.2: resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - yaml@^2.3.4: version "2.4.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.4.2.tgz#7a2b30f2243a5fc299e1f14ca58d475ed4bc5362" @@ -12627,17 +11963,3 @@ yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== - -zustand@4.4.1: - version "4.4.1" - resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.4.1.tgz#0cd3a3e4756f21811bd956418fdc686877e8b3b0" - integrity sha512-QCPfstAS4EBiTQzlaGP1gmorkh/UL1Leaj2tdj+zZCZ/9bm0WS7sI2wnfD5lpOszFqWJ1DcPnGoY8RDL61uokw== - dependencies: - use-sync-external-store "1.2.0" - -zustand@^4.5.2: - version "4.5.2" - resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.5.2.tgz#fddbe7cac1e71d45413b3682cdb47b48034c3848" - integrity sha512-2cN1tPkDVkwCy5ickKrI7vijSjPksFRfqS6237NzT0vqSsztTNnQdHw9mmN7uBdk3gceVXU0a+21jFzFzAc9+g== - dependencies: - use-sync-external-store "1.2.0" diff --git a/package.json b/package.json index 95e3c626c..142854394 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web3-onboard-monorepo", - "version": "2.25.6", + "version": "2.26.0", "private": true, "workspaces": { "packages": [ @@ -63,7 +63,7 @@ "devDependencies": { "prettier": "^2.4.1", "prettier-plugin-svelte": "^2.4.0", - "typescript": "^4.5.5" + "typescript": "^4.9.4" }, "peerDependencies": { "react": "*", diff --git a/packages/arcana-auth/package.json b/packages/arcana-auth/package.json index d47cf60f3..a3bbc6cb1 100644 --- a/packages/arcana-auth/package.json +++ b/packages/arcana-auth/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/arcana-auth", - "version": "2.0.0", + "version": "2.1.0", "license": "MIT", "description": "Arcana wallet is a built-in, secure Web3 wallet that users can access instantly when logging into an app integrated with the Arcana Auth SDK. It offers a customizable interface that can be branded to match the app's style. Users don't need to generate or manage cryptographic keys or remember passphrases. The wallet uses advanced distributed key generation, giving users full control over their wallets while onboarding Web3 apps using familiar Web2 authentication methods. It is user-friendly, secure, and puts users in control of their Web3 experience.", "private": false, @@ -13,10 +13,10 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@arcana/auth": "^1.0.7", - "@web3-onboard/common": "2.3.3" + "@arcana/auth": "^1.0.10", + "@web3-onboard/common": "2.4.0" }, "devDependencies": { - "typescript": "^5.1.6" + "typescript": "^5.4.5" } } diff --git a/packages/arcana-auth/src/index.ts b/packages/arcana-auth/src/index.ts index 57be577fd..26f661e26 100644 --- a/packages/arcana-auth/src/index.ts +++ b/packages/arcana-auth/src/index.ts @@ -1,6 +1,5 @@ import { createEIP1193Provider, WalletInit } from '@web3-onboard/common' -import icon from './icon.js' -import type { ConstructorParams } from '@arcana/auth/types' +import type { ConstructorParams } from '@arcana/auth' export default function (opts: { clientID: string @@ -8,9 +7,7 @@ export default function (opts: { }): WalletInit { return () => ({ label: 'Arcana Auth', - async getIcon() { - return icon - }, + getIcon: async () => (await import('./icon.js')).default, async getInterface() { const { AuthProvider } = await import('@arcana/auth') diff --git a/packages/arcana-auth/tsconfig.json b/packages/arcana-auth/tsconfig.json index 592d71e8f..ea2f762cc 100644 --- a/packages/arcana-auth/tsconfig.json +++ b/packages/arcana-auth/tsconfig.json @@ -5,7 +5,9 @@ "outDir": "dist", "rootDir": "src", "declarationDir": "dist", + "moduleResolution": "node", "paths": { + "@arcana/auth/types/*": ["./node_modules/@arcana/auth/types/*"], "*": ["./src/*", "./node_modules/*"] }, "typeRoots": ["node_modules/@types"], diff --git a/packages/bitget/package.json b/packages/bitget/package.json index c311db41f..6f007675f 100644 --- a/packages/bitget/package.json +++ b/packages/bitget/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/bitget", - "version": "2.0.1", + "version": "2.1.0", "description": "bitget-wallet SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -58,10 +58,10 @@ "license": "MIT", "devDependencies": { "@types/node": "^17.0.21", - "typescript": "^4.5.5" + "typescript": "^5.4.5" }, "dependencies": { "@bitget-wallet/web3-sdk": "^0.0.8", - "@web3-onboard/common": "^2.3.3" + "@web3-onboard/common": "^2.4.0" } } diff --git a/packages/bitget/src/index.ts b/packages/bitget/src/index.ts index 209a065c4..f37eecb71 100644 --- a/packages/bitget/src/index.ts +++ b/packages/bitget/src/index.ts @@ -31,7 +31,6 @@ function bitgetWallet(): WalletInit { const { currentProvider, getIsInstall, - getDownload, installWalletMessage } = await loadBitgetWalletDependencies() @@ -39,7 +38,6 @@ function bitgetWallet(): WalletInit { if (getIsInstall()) { provider = currentProvider() } else { - window.open(getDownload(), '_blank') throw new Error(installWalletMessage) } return { provider } diff --git a/packages/bitkeep/package.json b/packages/bitkeep/package.json index 0341e99aa..0936cebeb 100644 --- a/packages/bitkeep/package.json +++ b/packages/bitkeep/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/bitkeep", - "version": "2.0.1", + "version": "2.1.0", "description": "Bitkeep Wallet SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -58,10 +58,10 @@ "license": "MIT", "devDependencies": { "@types/node": "^17.0.21", - "typescript": "^4.5.5" + "typescript": "^5.4.5" }, "dependencies": { "@bitget-wallet/web3-sdk": "^0.0.8", - "@web3-onboard/common": "^2.3.3" + "@web3-onboard/common": "^2.4.0" } } diff --git a/packages/bitkeep/src/index.ts b/packages/bitkeep/src/index.ts index 321a188ae..327438695 100644 --- a/packages/bitkeep/src/index.ts +++ b/packages/bitkeep/src/index.ts @@ -34,7 +34,6 @@ function bitKeep(): WalletInit { const { currentProvider, getIsInstall, - getDownload, installWalletMessage } = await loadBitKeepDependencies() @@ -42,7 +41,6 @@ function bitKeep(): WalletInit { if (getIsInstall()) { provider = currentProvider() } else { - window.open(getDownload(), '_blank') throw new Error(installWalletMessage) } return { provider } diff --git a/packages/blocto/package.json b/packages/blocto/package.json index 17d2fdeb0..9856b8ab8 100644 --- a/packages/blocto/package.json +++ b/packages/blocto/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/blocto", - "version": "2.0.1", + "version": "2.1.0", "description": "Blocto SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -57,15 +57,14 @@ }, "license": "MIT", "devDependencies": { - "@ethersproject/providers": "^5.5.0", "@types/lodash.uniqby": "^4.7.6", "@types/node": "^17.0.21", "ts-node": "^10.2.1", - "typescript": "^4.5.5", + "typescript": "^5.4.5", "window": "^4.2.7" }, "dependencies": { - "@web3-onboard/common": "^2.3.1", + "@web3-onboard/common": "^2.4.0", "@blocto/sdk": "^0.9.1" } } diff --git a/packages/capsule/package.json b/packages/capsule/package.json index 585292b21..88af777b4 100644 --- a/packages/capsule/package.json +++ b/packages/capsule/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/capsule", - "version": "2.0.3", + "version": "2.1.0", "description": "Capsule SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "module": "dist/index.js", "browser": "dist/index.js", @@ -60,10 +60,10 @@ "@usecapsule/react-sdk": "^2.3.1", "@usecapsule/wagmi-v2-integration": "^1.7.1", "@wagmi/chains": "^1.8.0", - "@web3-onboard/common": "^2.3.3", + "@web3-onboard/common": "^2.4.0", "react-dom": "^18.2.0", - "viem": "^2.9.15", - "wagmi": "^2.5.19" + "viem": "2.9.15", + "wagmi": "2.5.19" }, "peerDependencies": { "react": ">=18.2" @@ -71,6 +71,6 @@ "devDependencies": { "@types/react": "^18.0.2", "react": "^18.2.0", - "typescript": "^5.2.2" + "typescript": "^5.4.5" } } diff --git a/packages/capsule/src/index.ts b/packages/capsule/src/index.ts index 9c1c3d58c..0954c46d3 100644 --- a/packages/capsule/src/index.ts +++ b/packages/capsule/src/index.ts @@ -12,7 +12,7 @@ async function buildChainsMap(): Promise { const chainEntries = Object.entries(chains) const chainsMap: ChainsMap = new Map() - for (const [chainName, chainObject] of chainEntries) { + for (const [, chainObject] of chainEntries) { if (chainObject && 'id' in chainObject) { chainsMap.set(chainObject.id, chainObject as Chain) } diff --git a/packages/cede-store/package.json b/packages/cede-store/package.json index 9c74d5f70..c08757d88 100644 --- a/packages/cede-store/package.json +++ b/packages/cede-store/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/cede-store", - "version": "2.2.0", + "version": "2.3.0", "description": "cede.store SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -65,11 +65,11 @@ "@types/lodash.uniqby": "^4.7.6", "@types/node": "^17.0.21", "ts-node": "^10.2.1", - "typescript": "^4.5.5", + "typescript": "^5.4.5", "window": "^4.2.7" }, "dependencies": { "@cedelabs/providers": "^1.5.0", - "@web3-onboard/common": "^2.3.3" + "@web3-onboard/common": "^2.4.0" } } diff --git a/packages/cede-store/src/index.ts b/packages/cede-store/src/index.ts index 9ff9e908c..edd9d2549 100644 --- a/packages/cede-store/src/index.ts +++ b/packages/cede-store/src/index.ts @@ -1,6 +1,9 @@ import { CedeProvider, detectCedeProvider } from '@cedelabs/providers' -import type { WalletInit } from '@web3-onboard/common' -import { createEIP1193Provider } from '@web3-onboard/common' +import type { ProviderAccounts, WalletInit } from '@web3-onboard/common' +import { + createDownloadMessage, + createEIP1193Provider +} from '@web3-onboard/common' type CustomWindow = typeof window & { cede: CedeProvider @@ -16,8 +19,9 @@ function cedeStoreWallet(): WalletInit { getInterface: async () => { const provider = await detectCedeProvider() if (!provider) { - window.open('https://cede.store', '_blank') - throw new Error('Please, install cede.store to use this wallet') + throw new Error( + createDownloadMessage('cede.store', 'https://cede.store') + ) } // handle disconnect @@ -38,7 +42,7 @@ function cedeStoreWallet(): WalletInit { const activeVault = accounts.find(account => account.isActive) - return [activeVault?.name || accounts[0].name] + return [activeVault?.name || accounts[0].name] as ProviderAccounts }, eth_chainId: () => Promise.resolve('0x1'), // cede.store doesn't support chains, but we have to provide a value to complete the connection wallet_switchEthereumChain: null, diff --git a/packages/coinbase/package.json b/packages/coinbase/package.json index 6e9854042..6571a3059 100644 --- a/packages/coinbase/package.json +++ b/packages/coinbase/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/coinbase", - "version": "2.2.7", + "version": "2.3.0", "description": "Coinbase SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -55,10 +55,10 @@ }, "license": "MIT", "devDependencies": { - "typescript": "^4.5.5" + "typescript": "^5.4.5" }, "dependencies": { - "@coinbase/wallet-sdk": "^3.9.3", - "@web3-onboard/common": "^2.3.3" + "@coinbase/wallet-sdk": "3.9.2", + "@web3-onboard/common": "^2.4.0" } } diff --git a/packages/common/package.json b/packages/common/package.json index 66212267f..86f4a8671 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/common", - "version": "2.3.4", + "version": "2.4.0", "description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -71,11 +71,11 @@ "svelte-check": "^2.2.6", "svelte-preprocess": "^4.9.4", "tslib": "^2.0.0", - "typescript": "^4.5.5" + "typescript": "^5.4.5", + "ethers": "5.5.4" }, "dependencies": { - "bignumber.js": "^9.1.0", - "ethers": "5.5.4", - "joi": "17.9.1" + "joi": "17.9.1", + "viem": "2.12.0" } } diff --git a/packages/common/src/index.ts b/packages/common/src/index.ts index 5e46b5eb8..45735c0f1 100644 --- a/packages/common/src/index.ts +++ b/packages/common/src/index.ts @@ -1,7 +1,15 @@ export { ProviderRpcError } from './errors.js' export { createEIP1193Provider } from './eip-1193.js' export { InterVar } from './fonts.js' -export { weiToEth } from './utils.js' +export { + weiHexToEth, + weiToEth, + isAddress, + bigIntToHex, + ethToWeiBigInt, + createDownloadMessage, + chainIdToViemImport +} from './utils.js' export * from './types.js' export * from './validation.js' diff --git a/packages/common/src/types.ts b/packages/common/src/types.ts index 2579ab5ad..273e16972 100644 --- a/packages/common/src/types.ts +++ b/packages/common/src/types.ts @@ -1,7 +1,6 @@ import type { ConnectionInfo } from 'ethers/lib/utils' -import type EventEmitter from 'eventemitter3' +import EventEmitter from 'eventemitter3' import type { TypedData as EIP712TypedData } from 'eip-712' -import type { ethers } from 'ethers' export type { TypedData as EIP712TypedData } from 'eip-712' /** @@ -120,14 +119,20 @@ export type RecommendedInjectedWallets = { /** * A method that takes `WalletHelpers` and - * returns an initialised `WalletModule` or array of `WalletModule`s. + * returns an initialized `WalletModule` or array of `WalletModule`s. */ export type WalletInit = ( helpers: WalletHelpers ) => WalletModule | WalletModule[] | null +export type DeviceNotBrowser = { + type: null + os: null + browser: null +} + export type WalletHelpers = { - device: Device + device: Device | DeviceNotBrowser } export interface APIKey { @@ -189,7 +194,6 @@ export interface WalletModule { export type GetInterfaceHelpers = { chains: Chain[] appMetadata: AppMetadata | null - BigNumber: typeof ethers.BigNumber EventEmitter: typeof EventEmitter } @@ -219,7 +223,7 @@ export interface ProviderInfo { chainId: ChainId } -export type AccountAddress = string +export type AccountAddress = Address /** * An array of addresses @@ -296,7 +300,7 @@ export interface EthSignTransactionRequest { params: [TransactionObject] } -type Address = string +export type Address = `0x${string}` type Message = string export interface EthSignMessageRequest { method: 'eth_sign' @@ -421,8 +425,8 @@ export interface Chain { providerConnectionInfo?: ConnectionInfo /* An optional public RPC used when adding a new chain config to the wallet */ publicRpcUrl?: string - /** An optional protected RPC URL - Defaults to Blocknative's private and - * protected RPC to allow users to update the chain RPC within their wallet, + /** An optional protected RPC URL - Defaults to Blocknative's private and + * protected RPC to allow users to update the chain RPC within their wallet, * specifically for private RPCs that protect user transactions */ protectedRpcUrl?: string diff --git a/packages/common/src/utils.ts b/packages/common/src/utils.ts index 3d11abf68..778f5d630 100644 --- a/packages/common/src/utils.ts +++ b/packages/common/src/utils.ts @@ -1,5 +1,146 @@ -import Bignumber from 'bignumber.js' +import { + formatEther, + fromHex, + hexToBigInt, + numberToHex, + parseEther +} from 'viem' +import type { Address, Chain } from './types.js' +import type { Chain as ViemChain } from 'viem' -export function weiToEth(wei: string): string { - return new Bignumber(wei).div(1e18).toString(10) +export const isAddress = (address: string): address is Address => { + return isAddress(address) } + +export const weiHexToEth = (wei: `0x${string}`): string => { + const weiBigInt = hexToBigInt(wei) + return formatEther(weiBigInt) +} + +export const weiToEth = (wei: string): string => { + if (!wei) return wei + const weiBigInt = fromHex(wei as `0x${string}`, 'bigint') + return formatEther(weiBigInt) +} + +export const ethToWeiBigInt = (eth: string | number): bigint => { + if (typeof eth !== 'string' && typeof eth !== 'number') { + throw new Error('eth must be a string or number value') + } + + const ethString = typeof eth === 'number' ? eth.toString() : eth + + return parseEther(ethString) +} + +export const bigIntToHex = (value: bigint): string => { + return numberToHex(value) +} + +export const createDownloadMessage = ( + walletLabel: string, + download?: string | (() => void) +): string => { + if (!download) return `Please switch to ${walletLabel} to continue` + if (typeof download === 'function') { + return `Please install or enable to ${walletLabel} to continue` + } else { + return `Please install or enable to ${walletLabel} to continue` + } +} + +export const chainIdToViemImport = async ( + w3oChain: Chain +): Promise => { + const viemChains = await import('viem/chains') + const { id, label, token, publicRpcUrl, blockExplorerUrl, rpcUrl } = w3oChain + switch (id) { + case '0x89': { + const { polygon } = viemChains + return polygon + } + case '0xa': { + const { optimism } = viemChains + return optimism + } + case '0xa4b1': { + const { arbitrum } = viemChains + return arbitrum + } + case '0x144': { + const { zkSync } = viemChains + return zkSync + } + case '0x38': { + const { bsc } = viemChains + return bsc + } + case '0x1': { + const { mainnet } = viemChains + return mainnet + } + case '0xaa36a7': { + const { sepolia } = viemChains + return sepolia + } + case '0xfa': { + const { fantom } = viemChains + return fantom + } + case '0xa86a': { + const { avalanche } = viemChains + return avalanche + } + case '0xa4ec': { + const { celo } = viemChains + return celo + } + case '0x2105': { + const { base } = viemChains + return base + } + case '0x14a33': { + const { baseGoerli } = viemChains + return baseGoerli + } + case '0x64': { + const { gnosis } = viemChains + return gnosis + } + case '0x63564C40': { + const { harmonyOne } = viemChains + return harmonyOne + } + case '0x27bc86aa': { + const { degen } = viemChains + return degen + } + default: { + const { extractChain, defineChain } = await import('viem') + const nonNativeChain = extractChain({ + chains: Object.values(viemChains) as ViemChain[], + id: fromHex(id as `0x${string}`, 'number') + }) + if (nonNativeChain) return nonNativeChain + + return defineChain({ + id: fromHex(id as `0x${string}`, 'number'), + name: label ?? '', + nativeCurrency: { + decimals: 18, + name: token ?? '', + symbol: token ?? '' + }, + rpcUrls: { + default: { + http: [rpcUrl ?? '', publicRpcUrl ?? ''] + } + }, + blockExplorers: { + default: { name: 'Explorer', url: blockExplorerUrl ?? '' } + } + }) + } + } +} \ No newline at end of file diff --git a/packages/common/src/validation.ts b/packages/common/src/validation.ts index 809956a3e..6118e981c 100644 --- a/packages/common/src/validation.ts +++ b/packages/common/src/validation.ts @@ -17,20 +17,6 @@ export const chainIdValidation = Joi.alternatives().try( export const chainNamespaceValidation = Joi.string().valid('evm') -/** Related to ConnectionInfo from 'ethers/lib/utils' */ -export const providerConnectionInfoValidation = Joi.object({ - url: Joi.string().required(), - headers: Joi.object(), - user: Joi.string(), - password: Joi.string(), - allowInsecureAuthentication: Joi.boolean(), - allowGzip: Joi.boolean(), - throttleLimit: Joi.number(), - throttleSlotInterval: Joi.number(), - throttleCallback: Joi.function(), - timeout: Joi.number() -}) - const secondaryTokenValidation = Joi.object({ address: Joi.string().required(), icon: Joi.string().optional() @@ -50,6 +36,5 @@ export const chainValidation = Joi.object({ color: Joi.string(), publicRpcUrl: Joi.string(), protectedRpcUrl: Joi.string(), - blockExplorerUrl: Joi.string(), - providerConnectionInfoValidation + blockExplorerUrl: Joi.string() }) diff --git a/packages/common/tsconfig.json b/packages/common/tsconfig.json index 9db8ebeb0..2fe4bf26d 100644 --- a/packages/common/tsconfig.json +++ b/packages/common/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.json", "include": ["src/**/*"], - + "exclude": ["node_modules/*", "dist"], "compilerOptions": { "outDir": "dist", "rootDir": "src", @@ -11,6 +11,10 @@ "paths": { "*": ["./src/*", "./node_modules/*"] }, - "typeRoots": ["node_modules/@types"] + "typeRoots": ["node_modules/@types"], + "lib": ["es2020"], + "moduleResolution": "node", + "esModuleInterop": true, + "types": ["svelte"] } } diff --git a/packages/core/.npmrc b/packages/core/.npmrc new file mode 100644 index 000000000..b6f27f135 --- /dev/null +++ b/packages/core/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/core/README.md b/packages/core/README.md index 2a33e37ec..ebaaa4b5d 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -577,6 +577,7 @@ const injected = injectedModule() const ETH_MAINNET_RPC = `https://mainnet.infura.io/v3/${INFURA_KEY}` || `https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_KEY}` const onboard = Onboard({ + // This javascript object is unordered meaning props do not require a certain order // head to https://explorer.blocknative.com/account to sign up for free apiKey: 'xxx387fb-bxx1-4xxc-a0x3-9d37e426xxxx' wallets: [injected], @@ -792,7 +793,13 @@ type WalletState = { accounts: Account[] chains: ConnectedChain[] instance?: unknown -} + /** + * WAGMI Connector object + * Can be used to leverage all WAGMI functions from + * the @web3-onboard/wagmi module + * See https://www.npmjs.com/package/@web3-onboard/wagmi for more details + */ + wagmiConnector?: Connector} type Account = { address: string diff --git a/packages/core/package.json b/packages/core/package.json index 5d949e8fb..b12b2d48a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/core", - "version": "2.21.6", + "version": "2.22.0", "description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -64,13 +64,14 @@ "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^13.0.6", "@rollup/plugin-replace": "^3.0.0", - "@rollup/plugin-typescript": "^8.0.0", - "@tsconfig/svelte": "^2.0.0", + "@rollup/plugin-typescript": "^11.1.6", + "@tsconfig/svelte": "^5.0.0", "@types/lodash.merge": "^4.6.6", "@types/lodash.partition": "^4.6.6", "@typescript-eslint/eslint-plugin": "^4.31.1", "@typescript-eslint/parser": "^4.31.1", "@web3-onboard/gas": "^2.1.5", + "@web3-onboard/wagmi": "2.0.0", "@web3-onboard/transaction-preview": "^2.0.5", "@web3-onboard/unstoppable-resolution": "^2.0.0", "eslint": "^7.32.0", @@ -78,19 +79,17 @@ "eslint-plugin-svelte3": "^3.2.1", "prettier": "^2.4.0", "prettier-plugin-svelte": "^2.4.0", - "rollup": "^2.3.4", - "rollup-plugin-svelte": "^7.0.0", - "svelte-check": "^2.2.6", - "svelte-preprocess": "^4.9.4", + "rollup": "^2.14.0", + "rollup-plugin-svelte": "^7.2.0", + "svelte-check": "^3.7.1", + "svelte-preprocess": "^5.1.4", "tslib": "^2.0.0", - "typescript": "^4.5.5" + "typescript": "^5.4.5" }, "dependencies": { - "@web3-onboard/common": "^2.3.4", - "bignumber.js": "^9.0.0", + "@web3-onboard/common": "2.4.0", "bnc-sdk": "^4.6.7", "bowser": "^2.11.0", - "ethers": "5.5.3", "eventemitter3": "^4.0.7", "joi": "17.9.1", "lodash.merge": "^4.6.2", @@ -98,6 +97,10 @@ "nanoid": "^4.0.0", "rxjs": "^7.5.5", "svelte": "^3.49.0", - "svelte-i18n": "^3.3.13" + "svelte-i18n": "^3.3.13", + "viem": "2.12.0" + }, + "engines": { + "node": ">=16.15.1" } } diff --git a/packages/core/rollup.config.js b/packages/core/rollup.config.js index 3f99e49b5..1a5a6b237 100644 --- a/packages/core/rollup.config.js +++ b/packages/core/rollup.config.js @@ -12,7 +12,8 @@ export default { input: 'src/index.ts', output: { format: 'es', - dir: 'dist/' + dir: 'dist/', + sourcemap: true }, plugins: [ json(), @@ -21,7 +22,13 @@ export default { preventAssignment: true }), svelte({ - preprocess: sveltePreprocess({ sourceMap: !production }), + preprocess: sveltePreprocess({ + sourceMap: !production, + typescript: { + tsconfigFile: './tsconfig.json' + }, + postcss: true + }), compilerOptions: { dev: !production }, @@ -29,20 +36,21 @@ export default { }), resolve({ browser: true, - dedupe: ['svelte'] + dedupe: ['svelte'], + extensions: ['.js', '.ts', '.svelte'] }), typescript({ sourceMap: !production, - inlineSources: !production + inlineSources: !production, + exclude: ['node_modules/**'] }), copy({ src: 'src/i18n/en.json', dest: 'i18n' - }) + }), ], external: [ '@web3-onboard/common', - 'ethers', 'bowser', 'joi', 'rxjs', @@ -52,9 +60,9 @@ export default { 'lodash.merge', 'lodash.partition', 'eventemitter3', - 'bignumber.js', 'bnc-sdk', 'nanoid', - '@unstoppabledomains/resolution' + '@unstoppabledomains/resolution', + 'viem' ] } diff --git a/packages/core/src/chain.ts b/packages/core/src/chain.ts index 700079791..6d5bebb05 100644 --- a/packages/core/src/chain.ts +++ b/packages/core/src/chain.ts @@ -1,6 +1,6 @@ import { firstValueFrom, Observable } from 'rxjs' import { filter, map } from 'rxjs/operators' -import { Chain, ProviderRpcErrorCode } from '@web3-onboard/common' +import { type Chain, ProviderRpcErrorCode } from '@web3-onboard/common' import { addNewChain, switchChain } from './provider.js' import { state } from './store/index.js' import { switchChainModal$ } from './streams.js' diff --git a/packages/core/src/configuration.ts b/packages/core/src/configuration.ts index b1687f78d..94c86db52 100644 --- a/packages/core/src/configuration.ts +++ b/packages/core/src/configuration.ts @@ -3,13 +3,14 @@ import { getDevice } from './utils.js' export let configuration: Configuration = { svelteInstance: null, - apiKey: null, + apiKey: undefined, device: getDevice(), initialWalletInit: [], - gas: null, - containerElements: { accountCenter: null, connectModal: null }, - transactionPreview: null, - unstoppableResolution: null + gas: undefined, + containerElements: { accountCenter: undefined, connectModal: undefined }, + transactionPreview: undefined, + unstoppableResolution: undefined, + wagmi: undefined } export function updateConfiguration(update: Partial): void { diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index 09c3f5631..20442835d 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -28,6 +28,7 @@ export const APP_INITIAL_STATE: AppState = { disableClose: false }, appMetadata: null, + wagmiConfig: null } export const STORAGE_KEYS = { diff --git a/packages/core/src/disconnect.ts b/packages/core/src/disconnect.ts index 8c3680c4e..1321ad34a 100644 --- a/packages/core/src/disconnect.ts +++ b/packages/core/src/disconnect.ts @@ -1,11 +1,12 @@ import { getBNMulitChainSdk } from './services.js' import { state } from './store/index.js' -import { removeWallet } from './store/actions.js' +import { removeWallet, updateWagmiConfig } from './store/actions.js' import { disconnectWallet$ } from './streams.js' import type { DisconnectOptions, WalletState } from './types.js' import { validateDisconnectOptions } from './validation.js' import { delLocalStore, getLocalStore, setLocalStore } from './utils' import { STORAGE_KEYS } from './constants' +import { configuration } from './configuration' async function disconnect(options: DisconnectOptions): Promise { const error = validateDisconnectOptions(options) @@ -22,20 +23,30 @@ async function disconnect(options: DisconnectOptions): Promise { if (sdk) { const wallet = state.get().wallets.find(wallet => wallet.label === label) - wallet.accounts.forEach(({ address }) => { - sdk.unsubscribe({ - id: address, - chainId: wallet.chains[0].id, - timeout: 60000 + if (wallet) { + wallet.accounts.forEach(({ address }) => { + sdk.unsubscribe({ + id: address, + chainId: wallet.chains[0].id, + timeout: 60000 + }) }) - }) + } + } + } + const { wagmi } = configuration + if (wagmi) { + const wagmiConfig = await wagmi.wagmiDisconnectWallet(label) + if (wagmiConfig) { + updateWagmiConfig(wagmiConfig) } } - disconnectWallet$.next(label) removeWallet(label) - const labels = JSON.parse(getLocalStore(STORAGE_KEYS.LAST_CONNECTED_WALLET)) + const labels = JSON.parse( + getLocalStore(STORAGE_KEYS.LAST_CONNECTED_WALLET) || '' + ) if (Array.isArray(labels) && labels.indexOf(label) >= 0) { setLocalStore( diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index f125cd856..81d5e07d0 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -33,10 +33,14 @@ import { setWalletModules, updateConnectModal, updateTheme, - updateAppMetadata + updateAppMetadata, + updateChain, + updateWallet } from './store/actions.js' import type { PatchedEIP1193Provider } from '@web3-onboard/transaction-preview' import { getBlocknativeSdk } from './services.js' +import type { WagmiModuleAPI } from '@web3-onboard/wagmi' +import { wagmiProviderMethods } from './provider' const API = { connectWallet, @@ -75,7 +79,8 @@ export type { Notify, UpdateNotification, PreflightNotificationsOptions, - Theme + Theme, + WagmiConfig } from './types.js' export type { EIP1193Provider } from '@web3-onboard/common' @@ -105,7 +110,8 @@ function init(options: InitOptions): OnboardAPI { transactionPreview, theme, disableFontDownload, - unstoppableResolution + unstoppableResolution, + wagmi } = options if (containerElements) updateConfiguration({ containerElements }) @@ -121,8 +127,10 @@ function init(options: InitOptions): OnboardAPI { initI18N(i18n) addChains(chainIdToHex(chains)) - if (typeof connect !== undefined) { - updateConnectModal(connect) + if (typeof connect !== 'undefined') { + updateConnectModal( + connect as ConnectModalOptions | Partial + ) } // update accountCenter if (typeof accountCenter !== 'undefined') { @@ -145,7 +153,18 @@ function init(options: InitOptions): OnboardAPI { ...accountCenter.desktop } } - updateAccountCenter(accountCenterUpdate) + if (typeof accountCenterUpdate !== 'undefined') { + updateAccountCenter(accountCenterUpdate) + } + } + + let wagmiApi: WagmiModuleAPI | undefined + if (typeof wagmi !== 'undefined') { + wagmiApi = wagmi({ + disconnect: disconnectWallet, + updateChain, + ...wagmiProviderMethods() + }) } // update notify @@ -158,7 +177,9 @@ function init(options: InitOptions): OnboardAPI { } if ( - (!notify.desktop || (notify.desktop && !notify.desktop.position)) && + notify && + notify.desktop && + notify.desktop.position && accountCenter && accountCenter.desktop && accountCenter.desktop.position @@ -167,7 +188,9 @@ function init(options: InitOptions): OnboardAPI { } if ( - (!notify.mobile || (notify.mobile && !notify.mobile.position)) && + notify && + notify.mobile && + notify.mobile.position && accountCenter && accountCenter.mobile && accountCenter.mobile.position @@ -175,7 +198,7 @@ function init(options: InitOptions): OnboardAPI { notify.mobile.position = accountCenter.mobile.position } - let notifyUpdate: Partial + let notifyUpdate: Partial = {} if (device.type === 'mobile' && notify.mobile) { notifyUpdate = { @@ -210,7 +233,8 @@ function init(options: InitOptions): OnboardAPI { updateNotify(notifyUpdate) } - const app = svelteInstance || mountApp(theme, disableFontDownload) + const app = + svelteInstance || mountApp(theme || {}, disableFontDownload || false) updateConfiguration({ svelteInstance: app, @@ -218,16 +242,22 @@ function init(options: InitOptions): OnboardAPI { initialWalletInit: wallets, gas, transactionPreview, - unstoppableResolution + unstoppableResolution, + wagmi: wagmiApi }) appMetadata && updateAppMetadata(appMetadata) if (apiKey && transactionPreview) { + console.warn( + 'Transaction Preview support is going to be sunset on July 1st 2024 and will no longer work after that date' + ) const getBnSDK = async () => { + const sdk = await getBlocknativeSdk() + if (!sdk) return transactionPreview.init({ containerElement: '#w3o-transaction-preview-container', - sdk: await getBlocknativeSdk(), + sdk, apiKey }) wallets$.subscribe(wallets => { @@ -250,7 +280,9 @@ function init(options: InitOptions): OnboardAPI { STORAGE_KEYS.LAST_CONNECTED_WALLET ) try { - const lastConnectedWalletsParsed = JSON.parse(lastConnectedWallets) + const lastConnectedWalletsParsed = JSON.parse( + lastConnectedWallets as string + ) if ( lastConnectedWalletsParsed && Array.isArray(lastConnectedWalletsParsed) && @@ -451,7 +483,14 @@ function mountApp(theme: Theme, disableFontDownload: boolean) { } ` - const connectModalContEl = configuration.containerElements.connectModal + let connectModalContEl + if ( + configuration && + configuration.containerElements && + configuration.containerElements.connectModal + ) { + connectModalContEl = configuration.containerElements.connectModal + } const containerElementQuery = connectModalContEl || state.get().accountCenter.containerElement || 'body' diff --git a/packages/core/src/notify.ts b/packages/core/src/notify.ts index 46401494d..eda65c618 100644 --- a/packages/core/src/notify.ts +++ b/packages/core/src/notify.ts @@ -1,7 +1,7 @@ -import BigNumber from 'bignumber.js' import { get } from 'svelte/store' import { _ } from 'svelte-i18n' import defaultCopy from './i18n/en.json' +import { weiToEth } from '@web3-onboard/common' import type { EthereumTransactionData } from 'bnc-sdk' import type { @@ -27,7 +27,11 @@ export function handleTransactionUpdates( } if (transaction.eventCode === 'txConfirmed') { - updateBalances([transaction.watchedAddress, transaction.counterparty]) + const addresses = [ + transaction.watchedAddress, + transaction.counterparty + ].filter(Boolean) as string[] + updateBalances(addresses) } const notification = transactionEventToNotification(transaction, customized) @@ -63,11 +67,7 @@ export function transactionEventToNotification( counterparty.substring(0, 4) + '...' + counterparty.substring(counterparty.length - 4) - - const formattedValue = new BigNumber(value || 0) - .div(new BigNumber('1000000000000000000')) - .toString(10) - + const formattedValue = weiToEth(value) const formatterOptions = counterparty && value ? { diff --git a/packages/core/src/preflight-notifications.ts b/packages/core/src/preflight-notifications.ts index b78f85d7d..d9247e7c3 100644 --- a/packages/core/src/preflight-notifications.ts +++ b/packages/core/src/preflight-notifications.ts @@ -1,7 +1,7 @@ -import BigNumber from 'bignumber.js' import { nanoid } from 'nanoid' import defaultCopy from './i18n/en.json' import type { Network } from 'bnc-sdk' +import { bigIntToHex, ethToWeiBigInt } from '@web3-onboard/common' import type { Notification, PreflightNotificationsOptions } from './types.js' import { addNotification, removeNotification } from './store/actions.js' @@ -49,16 +49,19 @@ export async function preflightNotifications( // to disable hints for `txAwaitingApproval`, `txConfirmReminder` // or any other notification, then return false from listener functions - const [gas, price] = await gasEstimates(estimateGas, gasPrice) + const [gas, price] = await gasEstimates( + estimateGas || (() => Promise.resolve('')), + gasPrice || (() => Promise.resolve('')) + ) const id = createId(nanoid()) - const value = new BigNumber((txDetails && txDetails.value) || 0) + const value = BigInt((txDetails && txDetails.value) || 0) // check sufficient balance if required parameters are available if (balance && gas && price) { - const transactionCost = gas.times(price).plus(value) + const transactionCost = BigInt(gas) * BigInt(price) + value // if transaction cost is greater than the current balance - if (transactionCost.gt(new BigNumber(balance))) { + if (bigIntToHex(transactionCost) > bigIntToHex(ethToWeiBigInt(balance))) { const eventCode = 'nsfFail' addNotification(buildNotification(eventCode, id)) @@ -220,7 +223,7 @@ const gasEstimates = async ( ) } - return [new BigNumber(gasResult), new BigNumber(gasPriceResult)] + return [BigInt(gasResult), BigInt(gasPriceResult)] }) .catch(error => { throw new Error(`There was an error getting gas estimates: ${error}`) diff --git a/packages/core/src/provider.ts b/packages/core/src/provider.ts index 3d45f9985..83a07e758 100644 --- a/packages/core/src/provider.ts +++ b/packages/core/src/provider.ts @@ -1,17 +1,25 @@ import { fromEventPattern, Observable } from 'rxjs' import { filter, takeUntil, take, share, switchMap } from 'rxjs/operators' import partition from 'lodash.partition' -import { providers, utils } from 'ethers' -import { weiToEth } from '@web3-onboard/common' +import { isAddress, weiHexToEth } from '@web3-onboard/common' import { disconnectWallet$ } from './streams.js' import { updateAccount, updateWallet } from './store/actions.js' -import { validEnsChain } from './utils.js' +import { chainIdToViemENSImport, validEnsChain } from './utils.js' import disconnect from './disconnect.js' import { state } from './store/index.js' import { getBNMulitChainSdk } from './services.js' import { configuration } from './configuration.js' +import { updateSecondaryTokens } from './update-balances' +import type { Uns } from '@web3-onboard/unstoppable-resolution' +import { + type PublicClient, + type GetEnsTextReturnType, + isHex, + toHex +} from 'viem' import type { + Address, ChainId, EIP1102Request, EIP1193Provider, @@ -24,32 +32,32 @@ import type { import type { Account, - Address, Balances, Ens, WalletPermission, WalletState } from './types.js' -import type { Uns } from '@web3-onboard/unstoppable-resolution' -import { updateSecondaryTokens } from './update-balances' - -export const ethersProviders: { - [key: string]: providers.StaticJsonRpcProvider +export const viemProviders: { + [key: string]: PublicClient } = {} -export function getProvider(chain: Chain): providers.StaticJsonRpcProvider { +async function getProvider(chain: Chain): Promise { if (!chain) return null - if (!ethersProviders[chain.rpcUrl]) { - ethersProviders[chain.rpcUrl] = new providers.StaticJsonRpcProvider( - chain.providerConnectionInfo && chain.providerConnectionInfo.url - ? chain.providerConnectionInfo - : chain.rpcUrl - ) + if (!viemProviders[chain.rpcUrl as string]) { + const viemChain = await chainIdToViemENSImport(chain.id) + if (!viemChain) return null + + const { createPublicClient, http } = await import('viem') + const publicProvider = createPublicClient({ + chain: viemChain, + transport: http() + }) + viemProviders[chain.rpcUrl as string] = publicProvider as PublicClient } - return ethersProviders[chain.rpcUrl] + return viemProviders[chain.rpcUrl as string] } export function requestAccounts( @@ -143,7 +151,8 @@ export function trackWallet( } const { wallets } = state.get() - const { accounts } = wallets.find(wallet => wallet.label === label) + const wallet = wallets.find(wallet => wallet.label === label) + const accounts = wallet ? wallet.accounts : [] const [[existingAccount], restAccounts] = partition( accounts, @@ -154,7 +163,7 @@ export function trackWallet( updateWallet(label, { accounts: [ existingAccount || { - address: address, + address: address as Address, ens: null, uns: null, balance: null @@ -173,11 +182,13 @@ export function trackWallet( .get() .wallets.find(wallet => wallet.label === label) try { - sdk.subscribe({ - id: address, - chainId: wallet.chains[0].id, - type: 'account' - }) + if (wallet) { + sdk.subscribe({ + id: address, + chainId: wallet.chains[0]?.id, + type: 'account' + }) + } } catch (error) { // unsupported network for transaction events } @@ -194,6 +205,8 @@ export function trackWallet( const { wallets, chains } = state.get() const primaryWallet = wallets.find(wallet => wallet.label === label) + if (!primaryWallet) return // Add null check for primaryWallet + const { chains: walletChains, accounts } = primaryWallet const [connectedWalletChain] = walletChains @@ -202,13 +215,10 @@ export function trackWallet( ({ namespace, id }) => namespace === 'evm' && id === connectedWalletChain.id ) + if (!chain) return const balanceProm = getBalance(address, chain) - const secondaryTokenBal = updateSecondaryTokens( - primaryWallet, - address, - chain - ) + const secondaryTokenBal = updateSecondaryTokens(address, chain) const account = accounts.find(account => account.address === address) const ensChain = chains.find( @@ -225,7 +235,9 @@ export function trackWallet( const unsProm = account && account.uns ? Promise.resolve(account.uns) - : getUns(address, chain) + : ensChain + ? getUns(address, ensChain) + : Promise.resolve(null) return Promise.all([ Promise.resolve(address), @@ -249,9 +261,13 @@ export function trackWallet( // Update chain on wallet when chainId changed chainChanged$.subscribe(async chainId => { const { wallets } = state.get() - const { chains, accounts } = wallets.find(wallet => wallet.label === label) + const wallet = wallets.find(wallet => wallet.label === label) + if (!wallet) return // Add null check for wallet + const { chains, accounts } = wallet const [connectedWalletChain] = chains - + if (!isHex(chainId)) { + chainId = toHex(chainId) + } if (chainId === connectedWalletChain.id) return if (state.get().notify.enabled) { @@ -262,6 +278,8 @@ export function trackWallet( .get() .wallets.find(wallet => wallet.label === label) + if (!wallet) return // Add null check for wallet + // Unsubscribe with timeout of 60 seconds // to allow for any currently inflight transactions wallet.accounts.forEach(({ address }) => { @@ -309,21 +327,20 @@ export function trackWallet( switchMap(async chainId => { const { wallets, chains } = state.get() const primaryWallet = wallets.find(wallet => wallet.label === label) - const { accounts } = primaryWallet - + const accounts = primaryWallet?.accounts || [] + if (!isHex(chainId)) { + chainId = toHex(chainId) + } const chain = chains.find( ({ namespace, id }) => namespace === 'evm' && id === chainId ) + if (!chain) return Promise.resolve(null) return Promise.all( accounts.map(async ({ address }) => { const balanceProm = getBalance(address, chain) - const secondaryTokenBal = updateSecondaryTokens( - primaryWallet, - address, - chain - ) + const secondaryTokenBal = updateSecondaryTokens(address, chain) const ensChain = chains.find( ({ id }) => id === validEnsChain(chainId) ) @@ -332,7 +349,7 @@ export function trackWallet( ? getEns(address, ensChain) : Promise.resolve(null) - const unsProm = validEnsChain(chainId) + const unsProm = ensChain ? getUns(address, ensChain) : Promise.resolve(null) @@ -370,29 +387,39 @@ export async function getEns( // chain we don't recognize and don't have a rpcUrl for requests if (!chain) return null - const provider = getProvider(chain) + const provider = await getProvider(chain) + if (!provider) return null try { - const name = await provider.lookupAddress(address) + const name = await provider.getEnsName({ + address + }) let ens = null if (name) { - const resolver = await provider.getResolver(name) + const { labelhash, normalize } = await import('viem/ens') + const normalizedName = normalize(name) - if (resolver) { - const [contentHash, avatar] = await Promise.all([ - resolver.getContentHash(), - resolver.getAvatar() - ]) - - const getText = resolver.getText.bind(resolver) - - ens = { + const ensResolver = await provider.getEnsResolver({ + name: normalizedName + }) + const avatar = await provider.getEnsAvatar({ + name: normalizedName + }) + const contentHash = labelhash(normalizedName) + const getText = async (key: string): Promise => { + return await provider.getEnsText({ name, - avatar, - contentHash, - getText - } + key + }) + } + + ens = { + name, + avatar, + contentHash, + ensResolver, + getText } } @@ -411,7 +438,7 @@ export async function getUns( // check if address is valid ETH address before attempting to resolve // chain we don't recognize and don't have a rpcUrl for requests - if (!unstoppableResolution || !utils.isAddress(address) || !chain) return null + if (!unstoppableResolution || !isAddress(address) || !chain) return null try { return await unstoppableResolution(address) @@ -422,7 +449,7 @@ export async function getUns( } export async function getBalance( - address: string, + address: Address, chain: Chain ): Promise { // chain we don't recognize and don't have a rpcUrl for requests @@ -432,12 +459,15 @@ export async function getBalance( try { const wallet = wallets.find(wallet => !!wallet.provider) + if (!wallet) return null const provider = wallet.provider - const balanceHex = await provider.request({ + const balanceHex = (await provider.request({ method: 'eth_getBalance', params: [address, 'latest'] - }) - return balanceHex ? { [chain.token || 'eth']: weiToEth(balanceHex) } : null + })) as `0x${string}` + return balanceHex + ? { [chain.token || 'eth']: weiHexToEth(balanceHex) } + : null } catch (error) { console.error(error) return null @@ -521,6 +551,7 @@ export async function syncWalletConnectedAccounts( label: WalletState['label'] ): Promise { const wallet = state.get().wallets.find(wallet => wallet.label === label) + if (!wallet) return const permissions = await getPermissions(wallet.provider) const accountsPermissions = permissions.find( ({ parentCapability }) => parentCapability === 'eth_accounts' @@ -540,3 +571,32 @@ export async function syncWalletConnectedAccounts( } } } + +export const addOrSwitchChain = async ( + provider: EIP1193Provider, + chain: Chain +): Promise => { + try { + const { id } = chain + await addNewChain(provider, chain) + await switchChain(provider, id) + return id + } catch (error) { + return undefined + } +} + +export const wagmiProviderMethods = (): { + addOrSwitchChain: ( + provider: EIP1193Provider, + chain: Chain + ) => Promise + getChainId: (provider: EIP1193Provider) => Promise + requestAccounts: (provider: EIP1193Provider) => Promise + switchChain: (provider: EIP1193Provider, chainId: ChainId) => Promise +} => ({ + addOrSwitchChain, + getChainId, + requestAccounts, + switchChain +}) diff --git a/packages/core/src/replacement.ts b/packages/core/src/replacement.ts index 378e452f5..542b70605 100644 --- a/packages/core/src/replacement.ts +++ b/packages/core/src/replacement.ts @@ -1,9 +1,10 @@ import type { EthereumTransactionData, Network } from 'bnc-sdk' -import { BigNumber } from 'ethers' +import { bigIntToHex } from '@web3-onboard/common' import { configuration } from './configuration.js' import { state } from './store/index.js' import type { WalletState } from './types.js' import { gweiToWeiHex, networkToChainId, toHexString } from './utils.js' +import type { GasPrice } from '@web3-onboard/gas' const ACTIONABLE_EVENT_CODES: string[] = ['txPool'] const VALID_GAS_NETWORKS: Network[] = ['main', 'matic-main'] @@ -38,9 +39,14 @@ export async function replaceTransaction({ const chainId = networkToChainId[network] - const { gasPriceProbability } = state.get().notify.replacement - const { gas, apiKey } = configuration + const { gasPriceProbability } = state.get().notify.replacement as { + gasPriceProbability?: + | { speedup?: number | undefined; cancel?: number | undefined } + | undefined + } + const { gas, apiKey } = configuration + if (!gas) return // get gas price const [gasResult] = await gas.get({ chains: [networkToChainId[network]], @@ -49,13 +55,15 @@ export async function replaceTransaction({ }) const { maxFeePerGas, maxPriorityFeePerGas } = - gasResult.blockPrices[0].estimatedPrices.find( + (gasResult.blockPrices[0].estimatedPrices.find( ({ confidence }) => confidence === (type === 'speedup' - ? gasPriceProbability.speedup - : gasPriceProbability.cancel) - ) + ? gasPriceProbability?.speedup + : gasPriceProbability?.cancel) + ) as GasPrice) || {} + + if (!maxFeePerGas || !maxPriorityFeePerGas) return const maxFeePerGasWeiHex = gweiToWeiHex(maxFeePerGas) const maxPriorityFeePerGasWeiHex = gweiToWeiHex(maxPriorityFeePerGas) @@ -71,7 +79,7 @@ export async function replaceTransaction({ from, to: type === 'cancel' ? from : to, chainId: parseInt(chainId), - value: `${BigNumber.from(value).toHexString()}`, + value: bigIntToHex(BigInt(value)), nonce: toHexString(nonce), gasLimit: toHexString(gasLimit), maxFeePerGas: maxFeePerGasWeiHex, diff --git a/packages/core/src/services.ts b/packages/core/src/services.ts index ffc8a19e8..a6fb54a53 100644 --- a/packages/core/src/services.ts +++ b/packages/core/src/services.ts @@ -19,7 +19,7 @@ export async function getBNMulitChainSdk(): Promise { if (!blocknativeMultiChainSdk) { const { default: Blocknative } = await import('bnc-sdk') blocknativeMultiChainSdk = Blocknative.multichain({ - apiKey: configuration.apiKey + apiKey: configuration.apiKey ?? '' }) blocknativeMultiChainSdk.transactions$.subscribe(handleTransactionUpdates) @@ -32,7 +32,7 @@ export async function getBNMulitChainSdk(): Promise { * * @returns SDK if apiKey */ -export async function getBlocknativeSdk(): Promise { +export async function getBlocknativeSdk(): Promise { const { apiKey } = configuration if (!apiKey) return null @@ -40,7 +40,7 @@ export async function getBlocknativeSdk(): Promise { if (!blocknativeSdk) { const { default: Blocknative } = await import('bnc-sdk') blocknativeSdk = new Blocknative({ - dappId: configuration.apiKey, + dappId: configuration.apiKey ?? '', networkId: 1 }) return blocknativeSdk diff --git a/packages/core/src/store/actions.ts b/packages/core/src/store/actions.ts index b813ec2e0..a2cf322e0 100644 --- a/packages/core/src/store/actions.ts +++ b/packages/core/src/store/actions.ts @@ -1,8 +1,15 @@ -import type { AppMetadata, Chain, WalletInit, WalletModule } from '@web3-onboard/common' +import type { + AppMetadata, + Chain, + WalletHelpers, + WalletInit, + WalletModule +} from '@web3-onboard/common' import { nanoid } from 'nanoid' import { dispatch } from './index.js' import { configuration } from '../configuration.js' import { handleThemeChange, returnTheme } from '../themes.js' +import { state } from '../store/index.js' import type { Account, @@ -30,7 +37,8 @@ import type { UpdateConnectModalAction, Theme, UpdateChainsAction, - UpdateAppMetadataAction + UpdateAppMetadataAction, + UpdateWagmiConfigAction } from '../types.js' import { @@ -66,8 +74,11 @@ import { UPDATE_ALL_WALLETS, UPDATE_CONNECT_MODAL, UPDATE_CHAINS, - UPDATE_APP_METADATA + UPDATE_APP_METADATA, + UPDATE_WAGMI_CONFIG } from './constants.js' +import type { Address } from 'bnc-sdk' +import type { Config } from '@web3-onboard/wagmi' export function addChains(chains: Chain[]): void { // chains are validated on init @@ -86,15 +97,19 @@ export function addChains(chains: Chain[]): void { export function updateChain(updatedChain: Chain): void { const { - label, - token, - rpcUrl, - id: chainId, + label, + token, + rpcUrl, + id: chainId, namespace: chainNamespace } = updatedChain - const error = validateSetChainOptions( - { label, token, rpcUrl, chainId, chainNamespace } - ) + const error = validateSetChainOptions({ + label, + token, + rpcUrl, + chainId, + chainNamespace + }) if (error) { throw error @@ -178,13 +193,16 @@ export function setPrimaryWallet(wallet: WalletState, address?: string): void { } } + // Update wagmi config if wagmi is being used + handleWagmiConnectorUpdate(wallet) + // add wallet will set it to first wallet since it already exists addWallet(wallet) } export function updateAccount( id: string, - address: string, + address: Address, update: Partial ): void { const action = { @@ -299,7 +317,11 @@ export function customNotification(updatedNotification: CustomNotification): { } addCustomNotification(notification) - const dismiss = () => removeNotification(notification.id) + const dismiss = () => { + if (notification.id) { + removeNotification(notification.id) + } + } const update = ( notificationUpdate: CustomNotification @@ -406,7 +428,8 @@ export function updateAllWallets(wallets: WalletState[]): void { // ==== HELPERS ==== // export function initializeWalletModules(modules: WalletInit[]): WalletModule[] { - const { device } = configuration + const { device }: WalletHelpers = configuration + if (!device) return [] return modules.reduce((acc, walletInit) => { const initialized = walletInit({ device }) @@ -443,7 +466,7 @@ export function updateTheme(theme: Theme): void { } export function updateAppMetadata( - update: AppMetadata| Partial + update: AppMetadata | Partial ): void { const error = validateAppMetadataUpdate(update) @@ -458,3 +481,31 @@ export function updateAppMetadata( dispatch(action as UpdateAppMetadataAction) } + +export function updateWagmiConfig(update: Config): void { + const action = { + type: UPDATE_WAGMI_CONFIG, + payload: update + } + + dispatch(action as UpdateWagmiConfigAction) +} + +function handleWagmiConnectorUpdate(wallet: WalletState) { + const { wagmi } = configuration + if (!wagmi) return + + try { + const { label } = wallet + const { wagmiConnect, getWagmiConnector } = wagmi + const wagmiConfig = state.get().wagmiConfig + const wagmiConnector = getWagmiConnector(label) + wagmiConnect(wagmiConfig, { connector: wagmiConnector }).then(() => { + updateWallet(label, { wagmiConnector }) + }) + } catch (e) { + console.error( + `Error updating Wagmi connector on primary wallet switch ${e}` + ) + } +} diff --git a/packages/core/src/store/constants.ts b/packages/core/src/store/constants.ts index 16ac82d9f..af0608d1d 100644 --- a/packages/core/src/store/constants.ts +++ b/packages/core/src/store/constants.ts @@ -14,3 +14,4 @@ export const ADD_NOTIFICATION = 'add_notification' export const REMOVE_NOTIFICATION = 'remove_notification' export const UPDATE_ALL_WALLETS = 'update_balance' export const UPDATE_APP_METADATA = 'update_app_metadata' +export const UPDATE_WAGMI_CONFIG = 'update_wagmi_config' diff --git a/packages/core/src/store/index.ts b/packages/core/src/store/index.ts index 1d39323d6..7a97032cf 100644 --- a/packages/core/src/store/index.ts +++ b/packages/core/src/store/index.ts @@ -20,7 +20,8 @@ import type { UpdateAllWalletsAction, UpdateConnectModalAction, UpdateChainsAction, - UpdateAppMetadataAction + UpdateAppMetadataAction, + UpdateWagmiConfigAction } from '../types.js' import { @@ -39,7 +40,8 @@ import { REMOVE_NOTIFICATION, UPDATE_ALL_WALLETS, UPDATE_CHAINS, - UPDATE_APP_METADATA + UPDATE_APP_METADATA, + UPDATE_WAGMI_CONFIG } from './constants.js' function reducer(state: AppState, action: Action): AppState { @@ -227,11 +229,21 @@ function reducer(state: AppState, action: Action): AppState { ...state, appMetadata: { ...state.appMetadata, - ...update + ...update, + name: update.name || '' } } } + case UPDATE_WAGMI_CONFIG: { + const update = payload as UpdateWagmiConfigAction['payload'] + + return { + ...state, + wagmiConfig: update + } + } + case RESET_STORE: return APP_INITIAL_STATE diff --git a/packages/core/src/themes.ts b/packages/core/src/themes.ts index 6922d7700..480bf3249 100644 --- a/packages/core/src/themes.ts +++ b/packages/core/src/themes.ts @@ -52,7 +52,7 @@ export const handleThemeChange = (update: ThemingMap): void => { Object.keys(update).forEach(targetStyle => { document.documentElement.style.setProperty( targetStyle, - update[targetStyle as keyof ThemingMap] + update[targetStyle as keyof ThemingMap] || null ) }) } diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index bdeb047ae..2fbc11b8f 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -2,13 +2,15 @@ import type { SvelteComponent } from 'svelte' import type { AppMetadata, + Address, Device, WalletInit, EIP1193Provider, WalletModule, Chain, TokenSymbol, - ChainWithDecimalId + ChainWithDecimalId, + DeviceNotBrowser } from '@web3-onboard/common' import type gas from '@web3-onboard/gas' @@ -17,6 +19,10 @@ import type { TransactionPreviewAPI } from '@web3-onboard/transaction-preview' import type en from './i18n/en.json' import type { EthereumTransactionData, Network } from 'bnc-sdk' +import type { GetEnsTextReturnType } from 'viem' +import type { Config, Connector, WagmiModuleAPI } from '@web3-onboard/wagmi' +import type wagmi from '@web3-onboard/wagmi' +export type { Config as WagmiConfig } from '@web3-onboard/wagmi' export interface InitOptions { /** @@ -54,6 +60,10 @@ export interface InitOptions { notify?: Partial | Partial /** Gas module */ gas?: typeof gas + /** Web3-Onboard module to add Wagmi support + * see https://www.npmjs.com/package/@web3-onboard/wagmi + */ + wagmi?: typeof wagmi /** * Object mapping for W3O components with the key being the DOM * element to mount the component to, this defines the DOM container @@ -135,6 +145,13 @@ export interface WalletState { // is connected to multiple chains at once chains: ConnectedChain[] instance?: unknown + /** + * WAGMI Connector object + * Can be used to leverage all WAGMI functions from + * the @web3-onboard/wagmi module + * See https://www.npmjs.com/package/@web3-onboard/wagmi for more details + */ + wagmiConnector?: Connector } export type Account = { @@ -155,22 +172,16 @@ export interface SecondaryTokenBalances { export interface Ens { name: string - avatar: Avatar | null - contentHash: string | null - getText: (key: string) => Promise + avatar: string | null + contentHash: Address | null + ensResolver: Address | null + getText: (key: string) => Promise } export interface Uns { name: string } -export type Avatar = { - url: string - linkage: Array<{ type: string; content: string }> -} - -export type Address = string - export interface AppState { chains: Chain[] walletModules: WalletModule[] @@ -180,7 +191,8 @@ export interface AppState { notify: Notify notifications: Notification[] connect: ConnectModalOptions - appMetadata: AppMetadata + appMetadata: AppMetadata | null + wagmiConfig: Config | null } export type Configuration = { @@ -190,6 +202,7 @@ export type Configuration = { appMetadata?: AppMetadata | null apiKey?: string gas?: typeof gas + wagmi?: WagmiModuleAPI containerElements?: ContainerElements transactionPreview?: TransactionPreviewAPI unstoppableResolution?: typeof unstoppableResolution @@ -282,13 +295,13 @@ export type AccountCenter = { */ hideTransactionProtectionBtn?: boolean /** - * Controls the visibility of the 'Enable Transaction Protection' button + * Controls the visibility of the 'Enable Transaction Protection' button * within the expanded Account Center. * - When set to false (default), the button is visible. * - When set to true, the button is hidden. - * This setting can be configured globally for the Account Center, or + * This setting can be configured globally for the Account Center, or * separately for different interfaces like desktop/mobile. - * defaults to + * defaults to * `docs.blocknative.com/blocknative-mev-protection/transaction-boost-alpha` * Use this property to override the default link to give users * more information about transaction protection and the RPC be set @@ -308,13 +321,13 @@ export type AccountCenterOptions = { desktop: Omit mobile: Omit /** - * Controls the visibility of the 'Enable Transaction Protection' button + * Controls the visibility of the 'Enable Transaction Protection' button * within the expanded Account Center. * - When set to false (default), the button is visible. * - When set to true, the button is hidden. - * This setting can be configured globally for the Account Center, or + * This setting can be configured globally for the Account Center, or * separately for different interfaces like desktop/mobile. - * defaults to + * defaults to * `docs.blocknative.com/blocknative-mev-protection/transaction-boost-alpha` * Use this property to override the default link to give users * more information about transaction protection and the RPC be set @@ -467,6 +480,7 @@ export type Action = | UpdateAllWalletsAction | UpdateConnectModalAction | UpdateAppMetadataAction + | UpdateWagmiConfigAction export type AddChainsAction = { type: 'add_chains'; payload: Chain[] } export type UpdateChainsAction = { type: 'update_chains'; payload: Chain } @@ -489,7 +503,7 @@ export type ResetStoreAction = { export type UpdateAccountAction = { type: 'update_account' - payload: { id: string; address: string } & Partial + payload: { id: string; address: Address } & Partial } export type UpdateAccountCenterAction = { @@ -537,6 +551,11 @@ export type UpdateAppMetadataAction = { payload: AppMetadata | Partial } +export type UpdateWagmiConfigAction = { + type: 'update_wagmi_config' + payload: Config +} + // ==== MISC ==== // export type ChainStyle = { icon: string @@ -550,12 +569,6 @@ export type NotifyEventStyles = { iconColor?: string } -export type DeviceNotBrowser = { - type: null - os: null - browser: null -} - export type WalletPermission = { id: string parentCapability: string diff --git a/packages/core/src/update-balances.ts b/packages/core/src/update-balances.ts index 0766829da..17f371225 100644 --- a/packages/core/src/update-balances.ts +++ b/packages/core/src/update-balances.ts @@ -1,20 +1,28 @@ import { state } from './store/index.js' import { getBalance } from './provider.js' import { updateAllWallets } from './store/actions.js' -import { ethers } from 'ethers' -import { AccountAddress, Chain, weiToEth } from '@web3-onboard/common' +import { + type AccountAddress, + type Address, + type Chain, + weiToEth, + chainIdToViemImport +} from '@web3-onboard/common' import type { SecondaryTokenBalances, WalletState } from './types' +import type { ReadContractParameters } from 'viem' +import type { Chain as ViemChain } from 'viem' + async function updateBalances(addresses?: string[]): Promise { const { wallets, chains } = state.get() const updatedWallets = await Promise.all( wallets.map(async wallet => { const chain = chains.find(({ id }) => id === wallet.chains[0].id) + if (!chain) return const updatedAccounts = await Promise.all( wallet.accounts.map(async account => { const secondaryTokens = await updateSecondaryTokens( - wallet, account.address, chain ) @@ -35,55 +43,74 @@ async function updateBalances(addresses?: string[]): Promise { return { ...wallet, accounts: updatedAccounts } }) ) - updateAllWallets(updatedWallets) + updateAllWallets(updatedWallets as WalletState[]) } export const updateSecondaryTokens = async ( - wallet: WalletState, - account: AccountAddress, + accountAddress: AccountAddress, chain: Chain ): Promise => { - if (!chain) return + if (!chain) return [] const chainRPC = chain.rpcUrl if (!chain.secondaryTokens || !chain.secondaryTokens.length || !chainRPC) - return - - const ethersProvider = new ethers.providers.Web3Provider( - wallet.provider, - 'any' - ) - const signer = ethersProvider.getSigner() - - const erc20ABISubset = [ - { - inputs: [{ name: 'owner', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function' - }, - { - inputs: [], - name: 'symbol', - outputs: [{ name: '', type: 'string' }], - stateMutability: 'view', - type: 'function' - } - ] + return [] const tokenBalances = await Promise.all( chain.secondaryTokens.map(async token => { try { - const swapContract = new ethers.Contract( - token.address, - erc20ABISubset, - signer - ) - const bigNumBalance = await swapContract.balanceOf(account) - const tokenName = await swapContract.symbol() + const { createPublicClient, http } = await import('viem') + + const viemChain = await chainIdToViemImport(chain) + const client = createPublicClient({ + chain: viemChain as ViemChain, + transport: http( + chain.providerConnectionInfo && chain.providerConnectionInfo.url + ? chain.providerConnectionInfo.url + : (chainRPC as string) + ) + }) + const viemTokenInterface = { + abi: [ + { + inputs: [{ name: 'owner', type: 'address' }], + name: 'balanceOf', + outputs: [{ name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'symbol', + outputs: [{ name: '', type: 'string' }], + stateMutability: 'view', + type: 'function' + } + ], + address: token.address as Address + } + + const supplyProm = + (client as any).readContract({ + ...viemTokenInterface, + functionName: 'balanceOf', + args: [accountAddress] as unknown[] + } as ReadContractParameters) || '' + + const tokenProm = + (client as any).readContract({ + ...viemTokenInterface, + functionName: 'symbol', + args: [] + }) || '' + + const [tokenSupply, tokenName] = await Promise.all([ + supplyProm, + tokenProm + ]) + return { - name: tokenName, - balance: weiToEth(bigNumBalance.toHexString()), + name: tokenName as string, + balance: weiToEth((tokenSupply as number).toString()), icon: token.icon } } catch (error) { @@ -94,7 +121,7 @@ export const updateSecondaryTokens = async ( } }) ) - return tokenBalances + return tokenBalances as SecondaryTokenBalances[] } export default updateBalances diff --git a/packages/core/src/utils.ts b/packages/core/src/utils.ts index 39b68b8ed..3f86bc028 100644 --- a/packages/core/src/utils.ts +++ b/packages/core/src/utils.ts @@ -9,7 +9,8 @@ import type { Chain, WalletInit, WalletModule, - ChainWithDecimalId + ChainWithDecimalId, + DeviceNotBrowser } from '@web3-onboard/common' import { @@ -32,12 +33,8 @@ import { degenIcon } from './icons/index.js' -import type { - ChainStyle, - ConnectedChain, - DeviceNotBrowser, - NotifyEventStyles -} from './types.js' +import type { ChainStyle, ConnectedChain, NotifyEventStyles } from './types.js' +import type { Chain as ViemChain } from 'viem' export function getDevice(): Device | DeviceNotBrowser { if (typeof window !== 'undefined') { @@ -63,23 +60,6 @@ export function getDevice(): Device | DeviceNotBrowser { export const notNullish = (value: T | null | undefined): value is T => value != null -export function validEnsChain(chainId: ChainId): ChainId | null { - // return L2s as Eth for ens resolution - switch (chainId) { - case '0x1': - case '0x89': // Polygon - case '0xa': //Optimism - case '0xa4b1': // Arb One - case '0xa4ba': // Arb Nova - case '0x144': // zksync - return '0x1' - case '0xaa36a7': // Sepolia - return chainId - default: - return null - } -} - export function isSVG(str: string): boolean { return str.includes(' = { '0x27bc86aa': 'Degen' } +export function validEnsChain(chainId: ChainId): string | null { + // return L2s as Eth for ens resolution + switch (chainId) { + case '0x1': + case '0x89': // Polygon + case '0xa': //Optimism + case '0xa4b1': // Arb + case '0x144': // zksync + return '0x1' + case '0x5': // Goerli + return chainId + case '0xaa36a7': // Sepolia + return chainId + default: + return null + } +} + +export const chainIdToViemENSImport = async ( + chainId: string +): Promise => { + switch (chainId) { + case '0x89': + case '0xa': + case '0xa4b1': + case '0x144': + case '0x1': { + const { mainnet } = await import('viem/chains') + return mainnet + } + case '0xaa36a7': { + const { sepolia } = await import('viem/chains') + return sepolia + } + default: + return null + } +} + export const networkToChainId: Record = { main: '0x1', sepolia: '0xaa36a7', diff --git a/packages/core/src/validation.ts b/packages/core/src/validation.ts index d1b39cd2c..da3882516 100644 --- a/packages/core/src/validation.ts +++ b/packages/core/src/validation.ts @@ -6,11 +6,11 @@ import { type WalletInit, type WalletModule, type ValidateReturn, + type AppMetadata, chainNamespaceValidation, chainIdValidation, chainValidation, - validate, - AppMetadata + validate } from '@web3-onboard/common' import type { @@ -98,7 +98,8 @@ const wallet = Joi.object({ provider: unknownObject, instance: unknownObject, accounts, - chains: Joi.array().items(connectedChain) + chains: Joi.array().items(connectedChain), + wagmiConnector: unknownObject }) .required() .error(new Error('wallet must be defined')) @@ -245,6 +246,7 @@ const initOptions = Joi.object({ get: Joi.function().required(), stream: Joi.function().required() }), + wagmi: Joi.function(), connect: connectModalOptions, containerElements: containerElements, transactionPreview: Joi.object({ diff --git a/packages/core/src/views/Index.svelte b/packages/core/src/views/Index.svelte index 2cbe05448..ae1c81818 100644 --- a/packages/core/src/views/Index.svelte +++ b/packages/core/src/views/Index.svelte @@ -238,6 +238,7 @@ :global(input[type='checkbox']) { -webkit-appearance: none; + appearance: none; width: auto; background: var(--onboard-white, var(--white)); outline: 1px solid var(--onboard-gray-300, var(--gray-300)); diff --git a/packages/core/src/views/account-center/AccountCenterPanel.svelte b/packages/core/src/views/account-center/AccountCenterPanel.svelte index 1342cb45d..7ca9cdf00 100644 --- a/packages/core/src/views/account-center/AccountCenterPanel.svelte +++ b/packages/core/src/views/account-center/AccountCenterPanel.svelte @@ -76,7 +76,7 @@ await updateChainRPC( primaryWallet.provider, validAppChain, - validAppChain?.protectedRpcUrl || BN_BOOST_RPC_URL + validAppChain.protectedRpcUrl || BN_BOOST_RPC_URL ) enableTransactionProtection = false } catch (error) { @@ -461,7 +461,7 @@ - {#if !$accountCenter$.hideTransactionProtectionBtn && (primaryWalletOnMainnet || validAppChain?.protectedRpcUrl)} + {#if !$accountCenter$.hideTransactionProtectionBtn && (primaryWalletOnMainnet || validAppChain.protectedRpcUrl)}
(enableTransactionProtection = true)} class="protect action-container flex items-center pointer" diff --git a/packages/core/src/views/connect/Index.svelte b/packages/core/src/views/connect/Index.svelte index 553c0cc38..55146b441 100644 --- a/packages/core/src/views/connect/Index.svelte +++ b/packages/core/src/views/connect/Index.svelte @@ -1,13 +1,19 @@