@multiplatform.one/web3 7.19.0 → 7.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -4
- package/dist/cjs/bridge/BridgeClient.native.js.map +1 -1
- package/dist/cjs/bridge/BridgeHost.native.js.map +1 -1
- package/dist/cjs/bridge/SolanaBridge.native.js.map +1 -1
- package/dist/cjs/bridge/base64.native.js.map +1 -1
- package/dist/cjs/bridge/bridgeConnector.native.js.map +1 -1
- package/dist/cjs/bridge/eip1193.native.js.map +1 -1
- package/dist/cjs/bridge/index.native.js.map +1 -1
- package/dist/cjs/bridge/postMessageTransport.native.js.map +1 -1
- package/dist/cjs/bridge/protocol.native.js.map +1 -1
- package/dist/cjs/bridge/transport.native.js.map +1 -1
- package/dist/cjs/bundler/metaMaskConnectTimeouts.cjs +92 -0
- package/dist/cjs/bundler/metaMaskConnectTimeouts.native.js +123 -0
- package/dist/cjs/bundler/metaMaskConnectTimeouts.native.js.map +1 -0
- package/dist/cjs/clients/adapter.native.js.map +1 -1
- package/dist/cjs/clients/bitcoin.native.js.map +1 -1
- package/dist/cjs/clients/connector.native.js.map +1 -1
- package/dist/cjs/clients/evm.native.js.map +1 -1
- package/dist/cjs/clients/gpg.native.js.map +1 -1
- package/dist/cjs/clients/hooks.native.js.map +1 -1
- package/dist/cjs/clients/index.native.js.map +1 -1
- package/dist/cjs/clients/solana.native.js.map +1 -1
- package/dist/cjs/clients/solanaMessage.native.js.map +1 -1
- package/dist/cjs/clients/sui.native.js.map +1 -1
- package/dist/cjs/clients/types.native.js.map +1 -1
- package/dist/cjs/clients/useSolanaClient.native.js.map +1 -1
- package/dist/cjs/clients/walletStandard.native.js.map +1 -1
- package/dist/cjs/components/NetworkSwitcher.native.js.map +1 -1
- package/dist/cjs/components/TransactionStatus.native.js.map +1 -1
- package/dist/cjs/components/index.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/BitcoinAdapter.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/EthereumAdapter.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/SolanaAdapter.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/SuiAdapter.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/discover.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/index.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/messages.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/types.native.js.map +1 -1
- package/dist/cjs/connectkit/assets/chains.native.js.map +1 -1
- package/dist/cjs/connectkit/components/BalanceButton/index.native.js +1 -1
- package/dist/cjs/connectkit/components/BalanceButton/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/Avatar/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/Avatar/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/Chain/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/Chain/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/ChainSelect/index.native.js +2 -2
- package/dist/cjs/connectkit/components/Common/ChainSelect/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/ChainSelectDropdown/index.native.js +1 -1
- package/dist/cjs/connectkit/components/Common/ChainSelectDropdown/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/ChainSelectDropdown/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/ChainSelectList/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/ChainSelectList/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/ConnectorList/index.cjs +10 -29
- package/dist/cjs/connectkit/components/Common/ConnectorList/index.native.js +11 -32
- package/dist/cjs/connectkit/components/Common/ConnectorList/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Common/ConnectorList/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectButton/index.native.js +4 -4
- package/dist/cjs/connectkit/components/ConnectButton/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectButton/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/ConnectUsing.cjs +4 -38
- package/dist/cjs/connectkit/components/ConnectModal/ConnectUsing.native.js +5 -43
- package/dist/cjs/connectkit/components/ConnectModal/ConnectUsing.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/CircleSpinner/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/SquircleSpinner/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/index.cjs +0 -14
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js +10 -65
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithInjector/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/ConnectModal/demo.cjs +0 -15
- package/dist/cjs/connectkit/components/ConnectModal/demo.native.js +9 -24
- package/dist/cjs/connectkit/components/ConnectModal/demo.native.js.map +1 -1
- package/dist/cjs/connectkit/components/NetworkButton/index.native.js +2 -2
- package/dist/cjs/connectkit/components/NetworkButton/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/About/graphics.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/About/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/About/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/Connectors/index.native.js +1 -1
- package/dist/cjs/connectkit/components/Pages/Connectors/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/Connectors/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/DownloadApp/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/Onboarding/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/Onboarding/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/Profile/index.native.js +2 -2
- package/dist/cjs/connectkit/components/Pages/Profile/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/Profile/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/SignInWithEthereum/index.native.js +3 -3
- package/dist/cjs/connectkit/components/Pages/SignInWithEthereum/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/SignInWithEthereum/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Pages/SwitchNetworks/index.native.js +1 -1
- package/dist/cjs/connectkit/components/Pages/SwitchNetworks/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Standard/SIWE/index.native.js +1 -1
- package/dist/cjs/connectkit/components/Standard/SIWE/index.native.js.map +1 -1
- package/dist/cjs/connectkit/components/Standard/SIWE/styles.native.js.map +1 -1
- package/dist/cjs/connectkit/components/contexts/web3/index.cjs +0 -15
- package/dist/cjs/connectkit/components/contexts/web3/index.native.js +0 -17
- package/dist/cjs/connectkit/components/contexts/web3/index.native.js.map +1 -1
- package/dist/cjs/connectkit/connectors/aaveAccountConnector.cjs +57 -0
- package/dist/cjs/connectkit/connectors/aaveAccountConnector.native.js +67 -0
- package/dist/cjs/connectkit/connectors/aaveAccountConnector.native.js.map +1 -0
- package/dist/cjs/connectkit/connectors/createWalletMessage.native.js.map +1 -1
- package/dist/cjs/connectkit/connectors/embeddedDesktop.cjs +1 -1
- package/dist/cjs/connectkit/connectors/embeddedDesktop.native.js +1 -1
- package/dist/cjs/connectkit/connectors/embeddedDesktop.native.js.map +1 -1
- package/dist/cjs/connectkit/connectors/ensureWalletConnectors.native.js.map +1 -1
- package/dist/cjs/connectkit/connectors/getWalletConnectors.native.js.map +1 -1
- package/dist/cjs/connectkit/connectors/metaMaskConnectConnector.cjs +255 -0
- package/dist/cjs/connectkit/connectors/metaMaskConnectConnector.native.js +315 -0
- package/dist/cjs/connectkit/connectors/metaMaskConnectConnector.native.js.map +1 -0
- package/dist/cjs/connectkit/connectors/syntheticChains.native.js.map +1 -1
- package/dist/cjs/connectkit/connectors/walletAdapterConnector.native.js.map +1 -1
- package/dist/cjs/connectkit/constants/chainConfigs.native.js.map +1 -1
- package/dist/cjs/connectkit/defaultConfig.cjs +8 -2
- package/dist/cjs/connectkit/defaultConfig.native.js +8 -2
- package/dist/cjs/connectkit/defaultConfig.native.js.map +1 -1
- package/dist/cjs/connectkit/defaultConnectors.cjs +19 -37
- package/dist/cjs/connectkit/defaultConnectors.native.js +19 -37
- package/dist/cjs/connectkit/defaultConnectors.native.js.map +1 -1
- package/dist/cjs/connectkit/defaultTransports.native.js.map +1 -1
- package/dist/cjs/connectkit/hooks/useChainIsSupported.native.js.map +1 -1
- package/dist/cjs/connectkit/hooks/useChains.native.js.map +1 -1
- package/dist/cjs/connectkit/hooks/useConnect.native.js.map +1 -1
- package/dist/cjs/connectkit/hooks/useConnectCallback.native.js.map +1 -1
- package/dist/cjs/connectkit/hooks/useConnectors.cjs +1 -5
- package/dist/cjs/connectkit/hooks/useConnectors.native.js +1 -5
- package/dist/cjs/connectkit/hooks/useConnectors.native.js.map +1 -1
- package/dist/cjs/connectkit/hooks/useEnsFallbackConfig.native.js.map +1 -1
- package/dist/cjs/connectkit/hooks/useLastConnector.native.js.map +1 -1
- package/dist/cjs/connectkit/index.cjs +2 -0
- package/dist/cjs/connectkit/index.native.js +10 -8
- package/dist/cjs/connectkit/index.native.js.map +1 -1
- package/dist/cjs/connectkit/openConnector/context.native.js.map +1 -1
- package/dist/cjs/connectkit/openConnector/device.native.js.map +1 -1
- package/dist/cjs/connectkit/openConnector/index.native.js.map +1 -1
- package/dist/cjs/connectkit/openConnector/launcher.native.js.map +1 -1
- package/dist/cjs/connectkit/profileHeaderAction.native.js +1 -1
- package/dist/cjs/connectkit/profileHeaderAction.native.js.map +1 -1
- package/dist/cjs/connectkit/screens.cjs +1 -14
- package/dist/cjs/connectkit/screens.native.js +23 -40
- package/dist/cjs/connectkit/screens.native.js.map +1 -1
- package/dist/cjs/connectkit/siwe/SIWEContext.native.js.map +1 -1
- package/dist/cjs/connectkit/siwe/SIWEProvider.cjs +3 -2
- package/dist/cjs/connectkit/siwe/SIWEProvider.native.js +6 -4
- package/dist/cjs/connectkit/siwe/SIWEProvider.native.js.map +1 -1
- package/dist/cjs/connectkit/siwe/connectIntent.native.js.map +1 -1
- package/dist/cjs/connectkit/siwe/index.native.js.map +1 -1
- package/dist/cjs/connectkit/siwe/useSIWE.native.js.map +1 -1
- package/dist/cjs/connectkit/useWeb3Modal.native.js +2 -2
- package/dist/cjs/connectkit/useWeb3Modal.native.js.map +1 -1
- package/dist/cjs/connectkit/wallets/index.cjs +4 -3
- package/dist/cjs/connectkit/wallets/index.native.js +4 -3
- package/dist/cjs/connectkit/wallets/index.native.js.map +1 -1
- package/dist/cjs/connectkit/wallets/useWallets.cjs +7 -22
- package/dist/cjs/connectkit/wallets/useWallets.native.js +6 -22
- package/dist/cjs/connectkit/wallets/useWallets.native.js.map +1 -1
- package/dist/cjs/connectkit/wallets/walletConfigs.cjs +3 -62
- package/dist/cjs/connectkit/wallets/walletConfigs.native.js +2 -65
- package/dist/cjs/connectkit/wallets/walletConfigs.native.js.map +1 -1
- package/dist/cjs/connectkit/web3Bridge.cjs +2 -6
- package/dist/cjs/connectkit/web3Bridge.native.js +4 -9
- package/dist/cjs/connectkit/web3Bridge.native.js.map +1 -1
- package/dist/cjs/connectkit/web3Provider.native.js.map +1 -1
- package/dist/cjs/esbuild.cjs +54 -0
- package/dist/cjs/esbuild.native.js +57 -0
- package/dist/cjs/esbuild.native.js.map +1 -0
- package/dist/cjs/examples/LockContract.native.js.map +1 -1
- package/dist/cjs/examples/index.native.js.map +1 -1
- package/dist/cjs/hooks/index.native.js.map +1 -1
- package/dist/cjs/hooks/useContractRead.native.js.map +1 -1
- package/dist/cjs/hooks/useContractWrite.native.js.map +1 -1
- package/dist/cjs/hooks/useWallet.cjs +1 -2
- package/dist/cjs/hooks/useWallet.native.js +1 -4
- package/dist/cjs/hooks/useWallet.native.js.map +1 -1
- package/dist/cjs/index.native.js +6 -6
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/providers/WalletProvider.cjs +1 -2
- package/dist/cjs/providers/index.native.js.map +1 -1
- package/dist/cjs/providers/mockConnector.native.js.map +1 -1
- package/dist/cjs/providers/native/deepLink.cjs +1 -1
- package/dist/cjs/providers/native/deepLink.native.js +1 -1
- package/dist/cjs/providers/native/deepLink.native.js.map +1 -1
- package/dist/cjs/providers/native/inject.native.js.map +1 -1
- package/dist/cjs/providers/native/visibility.native.js.map +1 -1
- package/dist/cjs/providers/walletConfig.native.js.map +1 -1
- package/dist/cjs/siws/index.native.js.map +1 -1
- package/dist/cjs/siws/message.native.js.map +1 -1
- package/dist/cjs/siws/signWithBridge.native.js.map +1 -1
- package/dist/cjs/siws/verify.native.js.map +1 -1
- package/dist/cjs/solana.native.js.map +1 -1
- package/dist/cjs/vite.cjs +76 -0
- package/dist/cjs/vite.native.js +79 -0
- package/dist/cjs/vite.native.js.map +1 -0
- package/dist/esm/bundler/metaMaskConnectTimeouts.mjs +64 -0
- package/dist/esm/bundler/metaMaskConnectTimeouts.mjs.map +1 -0
- package/dist/esm/bundler/metaMaskConnectTimeouts.native.js +92 -0
- package/dist/esm/bundler/metaMaskConnectTimeouts.native.js.map +1 -0
- package/dist/esm/connectkit/components/Common/ConnectorList/index.mjs +11 -30
- package/dist/esm/connectkit/components/Common/ConnectorList/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/Common/ConnectorList/index.native.js +12 -33
- package/dist/esm/connectkit/components/Common/ConnectorList/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectUsing.mjs +4 -38
- package/dist/esm/connectkit/components/ConnectModal/ConnectUsing.mjs.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectUsing.native.js +4 -42
- package/dist/esm/connectkit/components/ConnectModal/ConnectUsing.native.js.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/index.mjs +1 -15
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js +8 -63
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/demo.mjs +0 -15
- package/dist/esm/connectkit/components/ConnectModal/demo.mjs.map +1 -1
- package/dist/esm/connectkit/components/ConnectModal/demo.native.js +0 -15
- package/dist/esm/connectkit/components/ConnectModal/demo.native.js.map +1 -1
- package/dist/esm/connectkit/components/contexts/web3/index.mjs +0 -15
- package/dist/esm/connectkit/components/contexts/web3/index.mjs.map +1 -1
- package/dist/esm/connectkit/components/contexts/web3/index.native.js +0 -17
- package/dist/esm/connectkit/components/contexts/web3/index.native.js.map +1 -1
- package/dist/esm/connectkit/connectors/aaveAccountConnector.mjs +31 -0
- package/dist/esm/connectkit/connectors/aaveAccountConnector.mjs.map +1 -0
- package/dist/esm/connectkit/connectors/aaveAccountConnector.native.js +38 -0
- package/dist/esm/connectkit/connectors/aaveAccountConnector.native.js.map +1 -0
- package/dist/esm/connectkit/connectors/embeddedDesktop.mjs +1 -1
- package/dist/esm/connectkit/connectors/embeddedDesktop.mjs.map +1 -1
- package/dist/esm/connectkit/connectors/embeddedDesktop.native.js +1 -1
- package/dist/esm/connectkit/connectors/embeddedDesktop.native.js.map +1 -1
- package/dist/esm/connectkit/connectors/metaMaskConnectConnector.mjs +216 -0
- package/dist/esm/connectkit/connectors/metaMaskConnectConnector.mjs.map +1 -0
- package/dist/esm/connectkit/connectors/metaMaskConnectConnector.native.js +273 -0
- package/dist/esm/connectkit/connectors/metaMaskConnectConnector.native.js.map +1 -0
- package/dist/esm/connectkit/defaultConfig.mjs +8 -2
- package/dist/esm/connectkit/defaultConfig.mjs.map +1 -1
- package/dist/esm/connectkit/defaultConfig.native.js +8 -2
- package/dist/esm/connectkit/defaultConfig.native.js.map +1 -1
- package/dist/esm/connectkit/defaultConnectors.mjs +16 -34
- package/dist/esm/connectkit/defaultConnectors.mjs.map +1 -1
- package/dist/esm/connectkit/defaultConnectors.native.js +16 -34
- package/dist/esm/connectkit/defaultConnectors.native.js.map +1 -1
- package/dist/esm/connectkit/hooks/useConnectors.mjs +1 -4
- package/dist/esm/connectkit/hooks/useConnectors.mjs.map +1 -1
- package/dist/esm/connectkit/hooks/useConnectors.native.js +1 -4
- package/dist/esm/connectkit/hooks/useConnectors.native.js.map +1 -1
- package/dist/esm/connectkit/index.mjs +2 -1
- package/dist/esm/connectkit/index.mjs.map +1 -1
- package/dist/esm/connectkit/index.native.js +2 -1
- package/dist/esm/connectkit/index.native.js.map +1 -1
- package/dist/esm/connectkit/screens.mjs +1 -14
- package/dist/esm/connectkit/screens.mjs.map +1 -1
- package/dist/esm/connectkit/screens.native.js +16 -33
- package/dist/esm/connectkit/screens.native.js.map +1 -1
- package/dist/esm/connectkit/siwe/SIWEProvider.mjs +3 -2
- package/dist/esm/connectkit/siwe/SIWEProvider.mjs.map +1 -1
- package/dist/esm/connectkit/siwe/SIWEProvider.native.js +6 -4
- package/dist/esm/connectkit/siwe/SIWEProvider.native.js.map +1 -1
- package/dist/esm/connectkit/wallets/index.mjs +3 -2
- package/dist/esm/connectkit/wallets/index.mjs.map +1 -1
- package/dist/esm/connectkit/wallets/index.native.js +3 -2
- package/dist/esm/connectkit/wallets/index.native.js.map +1 -1
- package/dist/esm/connectkit/wallets/useWallets.mjs +2 -17
- package/dist/esm/connectkit/wallets/useWallets.mjs.map +1 -1
- package/dist/esm/connectkit/wallets/useWallets.native.js +1 -17
- package/dist/esm/connectkit/wallets/useWallets.native.js.map +1 -1
- package/dist/esm/connectkit/wallets/walletConfigs.mjs +4 -63
- package/dist/esm/connectkit/wallets/walletConfigs.mjs.map +1 -1
- package/dist/esm/connectkit/wallets/walletConfigs.native.js +3 -66
- package/dist/esm/connectkit/wallets/walletConfigs.native.js.map +1 -1
- package/dist/esm/connectkit/web3Bridge.mjs +3 -7
- package/dist/esm/connectkit/web3Bridge.mjs.map +1 -1
- package/dist/esm/connectkit/web3Bridge.native.js +3 -8
- package/dist/esm/connectkit/web3Bridge.native.js.map +1 -1
- package/dist/esm/esbuild.mjs +29 -0
- package/dist/esm/esbuild.mjs.map +1 -0
- package/dist/esm/esbuild.native.js +29 -0
- package/dist/esm/esbuild.native.js.map +1 -0
- package/dist/esm/hooks/useWallet.mjs +1 -2
- package/dist/esm/hooks/useWallet.mjs.map +1 -1
- package/dist/esm/hooks/useWallet.native.js +1 -4
- package/dist/esm/hooks/useWallet.native.js.map +1 -1
- package/dist/esm/providers/WalletProvider.mjs +1 -2
- package/dist/esm/providers/WalletProvider.mjs.map +1 -1
- package/dist/esm/providers/native/deepLink.mjs +1 -1
- package/dist/esm/providers/native/deepLink.mjs.map +1 -1
- package/dist/esm/providers/native/deepLink.native.js +1 -1
- package/dist/esm/providers/native/deepLink.native.js.map +1 -1
- package/dist/esm/providers/walletConfig.mjs.map +1 -1
- package/dist/esm/providers/walletConfig.native.js.map +1 -1
- package/dist/esm/vite.mjs +51 -0
- package/dist/esm/vite.mjs.map +1 -0
- package/dist/esm/vite.native.js +51 -0
- package/dist/esm/vite.native.js.map +1 -0
- package/dist/jsx/bundler/metaMaskConnectTimeouts.mjs +64 -0
- package/dist/jsx/bundler/metaMaskConnectTimeouts.mjs.map +1 -0
- package/dist/jsx/bundler/metaMaskConnectTimeouts.native.js +123 -0
- package/dist/jsx/bundler/metaMaskConnectTimeouts.native.js.map +1 -0
- package/dist/jsx/connectkit/components/Common/ConnectorList/index.mjs +11 -30
- package/dist/jsx/connectkit/components/Common/ConnectorList/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/Common/ConnectorList/index.native.js +11 -32
- package/dist/jsx/connectkit/components/Common/ConnectorList/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectUsing.mjs +4 -38
- package/dist/jsx/connectkit/components/ConnectModal/ConnectUsing.mjs.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectUsing.native.js +4 -42
- package/dist/jsx/connectkit/components/ConnectModal/ConnectUsing.native.js.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/index.mjs +1 -15
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js +7 -62
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithInjector/index.native.js.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/demo.mjs +0 -15
- package/dist/jsx/connectkit/components/ConnectModal/demo.mjs.map +1 -1
- package/dist/jsx/connectkit/components/ConnectModal/demo.native.js +0 -15
- package/dist/jsx/connectkit/components/ConnectModal/demo.native.js.map +1 -1
- package/dist/jsx/connectkit/components/contexts/web3/index.mjs +0 -15
- package/dist/jsx/connectkit/components/contexts/web3/index.mjs.map +1 -1
- package/dist/jsx/connectkit/components/contexts/web3/index.native.js +0 -17
- package/dist/jsx/connectkit/components/contexts/web3/index.native.js.map +1 -1
- package/dist/jsx/connectkit/connectors/aaveAccountConnector.mjs +31 -0
- package/dist/jsx/connectkit/connectors/aaveAccountConnector.mjs.map +1 -0
- package/dist/jsx/connectkit/connectors/aaveAccountConnector.native.js +67 -0
- package/dist/jsx/connectkit/connectors/aaveAccountConnector.native.js.map +1 -0
- package/dist/jsx/connectkit/connectors/embeddedDesktop.mjs +1 -1
- package/dist/jsx/connectkit/connectors/embeddedDesktop.mjs.map +1 -1
- package/dist/jsx/connectkit/connectors/embeddedDesktop.native.js +1 -1
- package/dist/jsx/connectkit/connectors/metaMaskConnectConnector.mjs +216 -0
- package/dist/jsx/connectkit/connectors/metaMaskConnectConnector.mjs.map +1 -0
- package/dist/jsx/connectkit/connectors/metaMaskConnectConnector.native.js +315 -0
- package/dist/jsx/connectkit/connectors/metaMaskConnectConnector.native.js.map +1 -0
- package/dist/jsx/connectkit/defaultConfig.mjs +8 -2
- package/dist/jsx/connectkit/defaultConfig.mjs.map +1 -1
- package/dist/jsx/connectkit/defaultConfig.native.js +8 -2
- package/dist/jsx/connectkit/defaultConfig.native.js.map +1 -1
- package/dist/jsx/connectkit/defaultConnectors.mjs +16 -34
- package/dist/jsx/connectkit/defaultConnectors.mjs.map +1 -1
- package/dist/jsx/connectkit/defaultConnectors.native.js +19 -37
- package/dist/jsx/connectkit/defaultConnectors.native.js.map +1 -1
- package/dist/jsx/connectkit/hooks/useConnectors.mjs +1 -4
- package/dist/jsx/connectkit/hooks/useConnectors.mjs.map +1 -1
- package/dist/jsx/connectkit/hooks/useConnectors.native.js +1 -5
- package/dist/jsx/connectkit/hooks/useConnectors.native.js.map +1 -1
- package/dist/jsx/connectkit/index.mjs +2 -1
- package/dist/jsx/connectkit/index.mjs.map +1 -1
- package/dist/jsx/connectkit/index.native.js +2 -0
- package/dist/jsx/connectkit/index.native.js.map +1 -1
- package/dist/jsx/connectkit/screens.mjs +1 -14
- package/dist/jsx/connectkit/screens.mjs.map +1 -1
- package/dist/jsx/connectkit/screens.native.js +16 -33
- package/dist/jsx/connectkit/screens.native.js.map +1 -1
- package/dist/jsx/connectkit/siwe/SIWEProvider.mjs +3 -2
- package/dist/jsx/connectkit/siwe/SIWEProvider.mjs.map +1 -1
- package/dist/jsx/connectkit/siwe/SIWEProvider.native.js +6 -4
- package/dist/jsx/connectkit/siwe/SIWEProvider.native.js.map +1 -1
- package/dist/jsx/connectkit/wallets/index.mjs +3 -2
- package/dist/jsx/connectkit/wallets/index.mjs.map +1 -1
- package/dist/jsx/connectkit/wallets/index.native.js +4 -3
- package/dist/jsx/connectkit/wallets/index.native.js.map +1 -1
- package/dist/jsx/connectkit/wallets/useWallets.mjs +2 -17
- package/dist/jsx/connectkit/wallets/useWallets.mjs.map +1 -1
- package/dist/jsx/connectkit/wallets/useWallets.native.js +6 -22
- package/dist/jsx/connectkit/wallets/useWallets.native.js.map +1 -1
- package/dist/jsx/connectkit/wallets/walletConfigs.mjs +4 -63
- package/dist/jsx/connectkit/wallets/walletConfigs.mjs.map +1 -1
- package/dist/jsx/connectkit/wallets/walletConfigs.native.js +2 -65
- package/dist/jsx/connectkit/wallets/walletConfigs.native.js.map +1 -1
- package/dist/jsx/connectkit/web3Bridge.mjs +3 -7
- package/dist/jsx/connectkit/web3Bridge.mjs.map +1 -1
- package/dist/jsx/connectkit/web3Bridge.native.js +2 -7
- package/dist/jsx/connectkit/web3Bridge.native.js.map +1 -1
- package/dist/jsx/esbuild.mjs +29 -0
- package/dist/jsx/esbuild.mjs.map +1 -0
- package/dist/jsx/esbuild.native.js +57 -0
- package/dist/jsx/esbuild.native.js.map +1 -0
- package/dist/jsx/hooks/useWallet.mjs +1 -2
- package/dist/jsx/hooks/useWallet.mjs.map +1 -1
- package/dist/jsx/hooks/useWallet.native.js +1 -4
- package/dist/jsx/hooks/useWallet.native.js.map +1 -1
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/providers/WalletProvider.mjs +1 -2
- package/dist/jsx/providers/WalletProvider.mjs.map +1 -1
- package/dist/jsx/providers/native/deepLink.mjs +1 -1
- package/dist/jsx/providers/native/deepLink.mjs.map +1 -1
- package/dist/jsx/providers/native/deepLink.native.js +1 -1
- package/dist/jsx/providers/native/deepLink.native.js.map +1 -1
- package/dist/jsx/providers/walletConfig.mjs.map +1 -1
- package/dist/jsx/providers/walletConfig.native.js.map +1 -1
- package/dist/jsx/vite.mjs +51 -0
- package/dist/jsx/vite.mjs.map +1 -0
- package/dist/jsx/vite.native.js +79 -0
- package/dist/jsx/vite.native.js.map +1 -0
- package/package.json +22 -10
- package/src/bundler/metaMaskConnectTimeouts.spec.ts +390 -0
- package/src/bundler/metaMaskConnectTimeouts.ts +126 -0
- package/src/connectkit/adapters/SolanaAdapter.ts +1 -1
- package/src/connectkit/adapters/discover.ts +1 -1
- package/src/connectkit/components/Common/ConnectorList/index.tsx +20 -50
- package/src/connectkit/components/ConnectModal/ConnectUsing.tsx +11 -62
- package/src/connectkit/components/ConnectModal/ConnectWithInjector/index.tsx +10 -70
- package/src/connectkit/components/ConnectModal/demo.tsx +1 -19
- package/src/connectkit/components/contexts/web3/index.tsx +1 -23
- package/src/connectkit/connectors/aaveAccountConnector.spec.ts +87 -0
- package/src/connectkit/connectors/aaveAccountConnector.ts +43 -0
- package/src/connectkit/connectors/embeddedDesktop.spec.ts +5 -5
- package/src/connectkit/connectors/embeddedDesktop.ts +5 -5
- package/src/connectkit/connectors/metaMaskConnectConnector.spec.ts +230 -0
- package/src/connectkit/connectors/metaMaskConnectConnector.ts +272 -0
- package/src/connectkit/defaultConfig.ts +16 -7
- package/src/connectkit/defaultConnectors.ts +19 -40
- package/src/connectkit/hooks/useConnectors.ts +0 -10
- package/src/connectkit/index.ts +4 -0
- package/src/connectkit/screens.tsx +1 -21
- package/src/connectkit/siwe/SIWEProvider.spec.tsx +70 -2
- package/src/connectkit/siwe/SIWEProvider.tsx +5 -3
- package/src/connectkit/wallets/index.ts +5 -2
- package/src/connectkit/wallets/useWallets.tsx +1 -20
- package/src/connectkit/wallets/walletConfigs.tsx +2 -64
- package/src/connectkit/web3Bridge.tsx +4 -21
- package/src/esbuild.ts +42 -0
- package/src/hooks/useWallet.spec.ts +6 -15
- package/src/hooks/useWallet.ts +1 -2
- package/src/providers/WalletProvider.native.tsx +1 -1
- package/src/providers/WalletProvider.tsx +5 -7
- package/src/providers/mockConnector.ts +2 -2
- package/src/providers/native/deepLink.spec.ts +3 -4
- package/src/providers/native/deepLink.ts +1 -2
- package/src/providers/native/inject.spec.ts +1 -1
- package/src/providers/walletConfig.spec.ts +1 -1
- package/src/providers/walletConfig.ts +2 -1
- package/src/vite.ts +60 -0
- package/types/bundler/metaMaskConnectTimeouts.d.ts +36 -0
- package/types/bundler/metaMaskConnectTimeouts.d.ts.map +1 -0
- package/types/connectkit/adapters/discover.d.ts +1 -1
- package/types/connectkit/components/Common/ConnectorList/index.d.ts.map +1 -1
- package/types/connectkit/components/ConnectModal/ConnectUsing.d.ts.map +1 -1
- package/types/connectkit/components/ConnectModal/ConnectWithInjector/index.d.ts +0 -1
- package/types/connectkit/components/ConnectModal/ConnectWithInjector/index.d.ts.map +1 -1
- package/types/connectkit/components/ConnectModal/demo.d.ts.map +1 -1
- package/types/connectkit/components/contexts/web3/index.d.ts +1 -5
- package/types/connectkit/components/contexts/web3/index.d.ts.map +1 -1
- package/types/connectkit/connectors/aaveAccountConnector.d.ts +5 -0
- package/types/connectkit/connectors/aaveAccountConnector.d.ts.map +1 -0
- package/types/connectkit/connectors/embeddedDesktop.d.ts +4 -4
- package/types/connectkit/connectors/embeddedDesktop.d.ts.map +1 -1
- package/types/connectkit/connectors/metaMaskConnectConnector.d.ts +35 -0
- package/types/connectkit/connectors/metaMaskConnectConnector.d.ts.map +1 -0
- package/types/connectkit/defaultConfig.d.ts +3 -2
- package/types/connectkit/defaultConfig.d.ts.map +1 -1
- package/types/connectkit/defaultConnectors.d.ts +3 -4
- package/types/connectkit/defaultConnectors.d.ts.map +1 -1
- package/types/connectkit/hooks/useConnectors.d.ts +0 -1
- package/types/connectkit/hooks/useConnectors.d.ts.map +1 -1
- package/types/connectkit/index.d.ts +1 -0
- package/types/connectkit/index.d.ts.map +1 -1
- package/types/connectkit/screens.d.ts +0 -4
- package/types/connectkit/screens.d.ts.map +1 -1
- package/types/connectkit/siwe/SIWEProvider.d.ts.map +1 -1
- package/types/connectkit/wallets/index.d.ts.map +1 -1
- package/types/connectkit/wallets/useWallets.d.ts.map +1 -1
- package/types/connectkit/wallets/walletConfigs.d.ts +0 -2
- package/types/connectkit/wallets/walletConfigs.d.ts.map +1 -1
- package/types/connectkit/web3Bridge.d.ts.map +1 -1
- package/types/esbuild.d.ts +31 -0
- package/types/esbuild.d.ts.map +1 -0
- package/types/hooks/useWallet.d.ts.map +1 -1
- package/types/providers/WalletProvider.d.ts.map +1 -1
- package/types/providers/mockConnector.d.ts +2 -2
- package/types/providers/native/deepLink.d.ts +1 -1
- package/types/providers/native/deepLink.d.ts.map +1 -1
- package/types/providers/walletConfig.d.ts +2 -1
- package/types/providers/walletConfig.d.ts.map +1 -1
- package/types/vite.d.ts +12 -0
- package/types/vite.d.ts.map +1 -0
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithQRCode.cjs +0 -133
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithQRCode.native.js +0 -179
- package/dist/cjs/connectkit/components/ConnectModal/ConnectWithQRCode.native.js.map +0 -1
- package/dist/cjs/connectkit/components/Pages/MobileConnectors/index.cjs +0 -158
- package/dist/cjs/connectkit/components/Pages/MobileConnectors/index.native.js +0 -183
- package/dist/cjs/connectkit/components/Pages/MobileConnectors/index.native.js.map +0 -1
- package/dist/cjs/connectkit/components/Pages/MobileConnectors/styles.cjs +0 -90
- package/dist/cjs/connectkit/components/Pages/MobileConnectors/styles.native.js +0 -99
- package/dist/cjs/connectkit/components/Pages/MobileConnectors/styles.native.js.map +0 -1
- package/dist/cjs/connectkit/connectors/metaMaskSdkConnector.cjs +0 -398
- package/dist/cjs/connectkit/connectors/metaMaskSdkConnector.native.js +0 -453
- package/dist/cjs/connectkit/connectors/metaMaskSdkConnector.native.js.map +0 -1
- package/dist/cjs/connectkit/hooks/connectors/useCoinbaseWalletUri.cjs +0 -0
- package/dist/cjs/connectkit/hooks/connectors/useCoinbaseWalletUri.native.js +0 -2
- package/dist/cjs/connectkit/hooks/connectors/useCoinbaseWalletUri.native.js.map +0 -1
- package/dist/cjs/connectkit/hooks/connectors/useWalletConnectUri.cjs +0 -113
- package/dist/cjs/connectkit/hooks/connectors/useWalletConnectUri.native.js +0 -117
- package/dist/cjs/connectkit/hooks/connectors/useWalletConnectUri.native.js.map +0 -1
- package/dist/cjs/connectkit/hooks/useWalletConnectModal.cjs +0 -74
- package/dist/cjs/connectkit/hooks/useWalletConnectModal.native.js +0 -79
- package/dist/cjs/connectkit/hooks/useWalletConnectModal.native.js.map +0 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithQRCode.mjs +0 -108
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithQRCode.mjs.map +0 -1
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithQRCode.native.js +0 -140
- package/dist/esm/connectkit/components/ConnectModal/ConnectWithQRCode.native.js.map +0 -1
- package/dist/esm/connectkit/components/Pages/MobileConnectors/index.mjs +0 -133
- package/dist/esm/connectkit/components/Pages/MobileConnectors/index.mjs.map +0 -1
- package/dist/esm/connectkit/components/Pages/MobileConnectors/index.native.js +0 -144
- package/dist/esm/connectkit/components/Pages/MobileConnectors/index.native.js.map +0 -1
- package/dist/esm/connectkit/components/Pages/MobileConnectors/styles.mjs +0 -61
- package/dist/esm/connectkit/components/Pages/MobileConnectors/styles.mjs.map +0 -1
- package/dist/esm/connectkit/components/Pages/MobileConnectors/styles.native.js +0 -67
- package/dist/esm/connectkit/components/Pages/MobileConnectors/styles.native.js.map +0 -1
- package/dist/esm/connectkit/connectors/metaMaskSdkConnector.mjs +0 -362
- package/dist/esm/connectkit/connectors/metaMaskSdkConnector.mjs.map +0 -1
- package/dist/esm/connectkit/connectors/metaMaskSdkConnector.native.js +0 -414
- package/dist/esm/connectkit/connectors/metaMaskSdkConnector.native.js.map +0 -1
- package/dist/esm/connectkit/hooks/connectors/useCoinbaseWalletUri.mjs +0 -2
- package/dist/esm/connectkit/hooks/connectors/useCoinbaseWalletUri.mjs.map +0 -1
- package/dist/esm/connectkit/hooks/connectors/useCoinbaseWalletUri.native.js +0 -2
- package/dist/esm/connectkit/hooks/connectors/useCoinbaseWalletUri.native.js.map +0 -1
- package/dist/esm/connectkit/hooks/connectors/useWalletConnectUri.mjs +0 -88
- package/dist/esm/connectkit/hooks/connectors/useWalletConnectUri.mjs.map +0 -1
- package/dist/esm/connectkit/hooks/connectors/useWalletConnectUri.native.js +0 -89
- package/dist/esm/connectkit/hooks/connectors/useWalletConnectUri.native.js.map +0 -1
- package/dist/esm/connectkit/hooks/useWalletConnectModal.mjs +0 -49
- package/dist/esm/connectkit/hooks/useWalletConnectModal.mjs.map +0 -1
- package/dist/esm/connectkit/hooks/useWalletConnectModal.native.js +0 -51
- package/dist/esm/connectkit/hooks/useWalletConnectModal.native.js.map +0 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithQRCode.mjs +0 -108
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithQRCode.mjs.map +0 -1
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithQRCode.native.js +0 -179
- package/dist/jsx/connectkit/components/ConnectModal/ConnectWithQRCode.native.js.map +0 -1
- package/dist/jsx/connectkit/components/Pages/MobileConnectors/index.mjs +0 -133
- package/dist/jsx/connectkit/components/Pages/MobileConnectors/index.mjs.map +0 -1
- package/dist/jsx/connectkit/components/Pages/MobileConnectors/index.native.js +0 -183
- package/dist/jsx/connectkit/components/Pages/MobileConnectors/index.native.js.map +0 -1
- package/dist/jsx/connectkit/components/Pages/MobileConnectors/styles.mjs +0 -61
- package/dist/jsx/connectkit/components/Pages/MobileConnectors/styles.mjs.map +0 -1
- package/dist/jsx/connectkit/components/Pages/MobileConnectors/styles.native.js +0 -99
- package/dist/jsx/connectkit/components/Pages/MobileConnectors/styles.native.js.map +0 -1
- package/dist/jsx/connectkit/connectors/metaMaskSdkConnector.mjs +0 -362
- package/dist/jsx/connectkit/connectors/metaMaskSdkConnector.mjs.map +0 -1
- package/dist/jsx/connectkit/connectors/metaMaskSdkConnector.native.js +0 -453
- package/dist/jsx/connectkit/connectors/metaMaskSdkConnector.native.js.map +0 -1
- package/dist/jsx/connectkit/hooks/connectors/useCoinbaseWalletUri.mjs +0 -2
- package/dist/jsx/connectkit/hooks/connectors/useCoinbaseWalletUri.mjs.map +0 -1
- package/dist/jsx/connectkit/hooks/connectors/useCoinbaseWalletUri.native.js +0 -2
- package/dist/jsx/connectkit/hooks/connectors/useCoinbaseWalletUri.native.js.map +0 -1
- package/dist/jsx/connectkit/hooks/connectors/useWalletConnectUri.mjs +0 -88
- package/dist/jsx/connectkit/hooks/connectors/useWalletConnectUri.mjs.map +0 -1
- package/dist/jsx/connectkit/hooks/connectors/useWalletConnectUri.native.js +0 -117
- package/dist/jsx/connectkit/hooks/connectors/useWalletConnectUri.native.js.map +0 -1
- package/dist/jsx/connectkit/hooks/useWalletConnectModal.mjs +0 -49
- package/dist/jsx/connectkit/hooks/useWalletConnectModal.mjs.map +0 -1
- package/dist/jsx/connectkit/hooks/useWalletConnectModal.native.js +0 -79
- package/dist/jsx/connectkit/hooks/useWalletConnectModal.native.js.map +0 -1
- package/src/connectkit/components/ConnectModal/ConnectWithQRCode.tsx +0 -188
- package/src/connectkit/components/Pages/MobileConnectors/index.tsx +0 -142
- package/src/connectkit/components/Pages/MobileConnectors/styles.ts +0 -66
- package/src/connectkit/connectors/metaMaskSdkConnector.ts +0 -505
- package/src/connectkit/hooks/connectors/useCoinbaseWalletUri.tsx +0 -101
- package/src/connectkit/hooks/connectors/useWalletConnectUri.ts +0 -99
- package/src/connectkit/hooks/useWalletConnectModal.tsx +0 -52
- package/types/connectkit/components/ConnectModal/ConnectWithQRCode.d.ts +0 -6
- package/types/connectkit/components/ConnectModal/ConnectWithQRCode.d.ts.map +0 -1
- package/types/connectkit/components/Pages/MobileConnectors/index.d.ts +0 -4
- package/types/connectkit/components/Pages/MobileConnectors/index.d.ts.map +0 -1
- package/types/connectkit/components/Pages/MobileConnectors/styles.d.ts +0 -6
- package/types/connectkit/components/Pages/MobileConnectors/styles.d.ts.map +0 -1
- package/types/connectkit/connectors/metaMaskSdkConnector.d.ts +0 -30
- package/types/connectkit/connectors/metaMaskSdkConnector.d.ts.map +0 -1
- package/types/connectkit/hooks/connectors/useCoinbaseWalletUri.d.ts +0 -1
- package/types/connectkit/hooks/connectors/useCoinbaseWalletUri.d.ts.map +0 -1
- package/types/connectkit/hooks/connectors/useWalletConnectUri.d.ts +0 -8
- package/types/connectkit/hooks/connectors/useWalletConnectUri.d.ts.map +0 -1
- package/types/connectkit/hooks/useWalletConnectModal.d.ts +0 -5
- package/types/connectkit/hooks/useWalletConnectModal.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","inject_exports","buildConfigInjection","buildInjectScript","module","exports","raw","JSON","stringify","config"],"sources":["inject.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar inject_exports = {};\n__export(inject_exports, {\n buildConfigInjection: () => buildConfigInjection,\n buildInjectScript: () => buildInjectScript\n});\nmodule.exports = __toCommonJS(inject_exports);\nfunction buildInjectScript(raw) {\n return `window.__bridgeReceive && window.__bridgeReceive(${JSON.stringify(raw)});true;`;\n}\nfunction buildConfigInjection(config) {\n return `window.__web3Config = ${JSON.stringify(config)};true;`;\n}\n//# sourceMappingURL=inject.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC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oBAAoB;EAChDC,iBAAiB,EAAEA,CAAA,KAAMA;AAC3B,CAAC,CAAC;AACFC,MAAM,CAACC,OAAO,GAAGP,YAAY,CAACG,cAAc,CAAC;AAC7C,SAASE,iBAAiBA,CAACG,GAAG,EAAE;EAC9B,OAAO,oDAAoDC,IAAI,CAACC,SAAS,CAACF,GAAG,CAAC,SAAS;AACzF;AACA,SAASJ,oBAAoBA,CAACO,MAAM,EAAE;EACpC,OAAO,yBAAyBF,IAAI,CAACC,SAAS,CAACC,MAAM,CAAC,QAAQ;AAChE","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","visibility_exports","initialVisibility","nextVisibility","module","exports","sheetOpen","state","sysMethod"],"sources":["visibility.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar visibility_exports = {};\n__export(visibility_exports, {\n initialVisibility: () => initialVisibility,\n nextVisibility: () => nextVisibility\n});\nmodule.exports = __toCommonJS(visibility_exports);\nvar initialVisibility = {\n sheetOpen: false\n};\nfunction nextVisibility(state, sysMethod) {\n switch (sysMethod) {\n case \"modalOpen\":\n return state.sheetOpen ? state : {\n sheetOpen: true\n };\n case \"modalClose\":\n return state.sheetOpen ? {\n sheetOpen: false\n } : state;\n default:\n return state;\n }\n}\n//# sourceMappingURL=visibility.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEyB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,kBAAkB,GAAG,CAAC,CAAC;AAC3BhB,QAAQ,CAACgB,kBAAkB,EAAE;EAC3BC,iBAAiB,EAAEA,CAAA,KAAMA,iBAAiB;EAC1CC,cAAc,EAAEA,CAAA,KAAMA;AACxB,CAAC,CAAC;AACFC,MAAM,CAACC,OAAO,GAAGP,YAAY,CAACG,kBAAkB,CAAC;AACjD,IAAIC,iBAAiB,GAAG;EACtBI,SAAS,EAAE;AACb,CAAC;AACD,SAASH,cAAcA,CAACI,KAAK,EAAEC,SAAS,EAAE;EACxC,QAAQA,SAAS;IACf,KAAK,WAAW;MACd,OAAOD,KAAK,CAACD,SAAS,GAAGC,KAAK,GAAG;QAC/BD,SAAS,EAAE;MACb,CAAC;IACH,KAAK,YAAY;MACf,OAAOC,KAAK,CAACD,SAAS,GAAG;QACvBA,SAAS,EAAE;MACb,CAAC,GAAGC,KAAK;IACX;MACE,OAAOA,KAAK;EAChB;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","walletConfig_exports","Web3ConfigContext","defaultChains","resolveChains","useWeb3Config","module","exports","import_react","require","import_chains","mainnet","polygon","optimism","arbitrum","base","sepolia","config","chains","enableTestnets","localnet","localnetRpcUrl","active","filter","chain","testnet","length","local","hardhat","rpcUrls","default","http","id","createContext","useContext","Error"],"sources":["walletConfig.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar walletConfig_exports = {};\n__export(walletConfig_exports, {\n Web3ConfigContext: () => Web3ConfigContext,\n defaultChains: () => defaultChains,\n resolveChains: () => resolveChains,\n useWeb3Config: () => useWeb3Config\n});\nmodule.exports = __toCommonJS(walletConfig_exports);\nvar import_react = require(\"react\");\nvar import_chains = require(\"wagmi/chains\");\nvar defaultChains = [\n import_chains.mainnet,\n import_chains.polygon,\n import_chains.optimism,\n import_chains.arbitrum,\n import_chains.base,\n import_chains.sepolia\n];\nfunction resolveChains(config) {\n var { chains = defaultChains, enableTestnets = false, localnet = false, localnetRpcUrl } = config;\n var active = enableTestnets ? [\n ...chains\n ] : chains.filter(function(chain) {\n return !chain.testnet;\n });\n if (active.length === 0) active = [\n ...chains\n ];\n if (localnet) {\n var local = localnetRpcUrl ? {\n ...import_chains.hardhat,\n rpcUrls: {\n default: {\n http: [\n localnetRpcUrl\n ]\n }\n }\n } : import_chains.hardhat;\n active = [\n local,\n ...active.filter(function(chain) {\n return chain.id !== import_chains.hardhat.id;\n })\n ];\n }\n return active;\n}\nvar Web3ConfigContext = (0, import_react.createContext)(null);\nfunction useWeb3Config() {\n var config = (0, import_react.useContext)(Web3ConfigContext);\n if (!config) {\n throw new Error(\"useWeb3Config must be used within a WalletProvider\");\n }\n return config;\n}\n//# sourceMappingURL=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GAAG,CACPK,KAAK,EACL,GAAGL,MAAM,CAACC,MAAM,CAAC,UAASC,KAAK,EAAE;MAC/B,OAAOA,KAAK,CAACQ,EAAE,KAAKtB,aAAa,CAACkB,OAAO,CAACI,EAAE;IAC9C,CAAC,CAAC,CACH;EACH;EACA,OAAOV,MAAM;AACf;AACA,IAAIpB,iBAAiB,GAAG,CAAC,CAAC,EAAEM,YAAY,CAACyB,aAAa,EAAE,IAAI,CAAC;AAC7D,SAAS5B,aAAaA,CAAA,EAAG;EACvB,IAAIY,MAAM,GAAG,CAAC,CAAC,EAAET,YAAY,CAAC0B,UAAU,EAAEhC,iBAAiB,CAAC;EAC5D,IAAI,CAACe,MAAM,EAAE;IACX,MAAM,IAAIkB,KAAK,CAAC,oDAAoD,CAAC;EACvE;EACA,OAAOlB,MAAM;AACf","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","siws_exports","createSiwsMessage","import_message","signSiwsWithBridge","import_signWithBridge","verifySiwsSignature","import_verify","module","exports","require"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar siws_exports = {};\n__export(siws_exports, {\n createSiwsMessage: () => import_message.createSiwsMessage,\n signSiwsWithBridge: () => import_signWithBridge.signSiwsWithBridge,\n verifySiwsSignature: () => import_verify.verifySiwsSignature\n});\nmodule.exports = __toCommonJS(siws_exports);\nvar import_message = require(\"./message\");\nvar import_verify = require(\"./verify\");\nvar import_signWithBridge = require(\"./signWithBridge\");\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEyB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,YAAY,GAAG,CAAC,CAAC;AACrBhB,QAAQ,CAACgB,YAAY,EAAE;EACrBC,iBAAiB,EAAEA,CAAA,KAAMC,cAAc,CAACD,iBAAiB;EACzDE,kBAAkB,EAAEA,CAAA,KAAMC,qBAAqB,CAACD,kBAAkB;EAClEE,mBAAmB,EAAEA,CAAA,KAAMC,aAAa,CAACD;AAC3C,CAAC,CAAC;AACFE,MAAM,CAACC,OAAO,GAAGX,YAAY,CAACG,YAAY,CAAC;AAC3C,IAAIE,cAAc,GAAGO,OAAO,CAAC,qBAAW,CAAC;AACzC,IAAIH,aAAa,GAAGG,OAAO,CAAC,oBAAU,CAAC;AACvC,IAAIL,qBAAqB,GAAGK,OAAO,CAAC,4BAAkB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","message_exports","createSiwsMessage","module","exports","params","domain","address","statement","uri","version","chainId","nonce","issuedAt","lines","push","join"],"sources":["message.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar message_exports = {};\n__export(message_exports, {\n createSiwsMessage: () => createSiwsMessage\n});\nmodule.exports = __toCommonJS(message_exports);\nfunction createSiwsMessage(params) {\n var { domain, address, statement, uri, version = \"1\", chainId = \"solana:mainnet\", nonce, issuedAt } = params;\n var lines = [\n `${domain} wants you to sign in with your Solana account:`,\n address,\n \"\"\n ];\n if (statement) {\n lines.push(statement, \"\");\n }\n lines.push(`URI: ${uri}`, `Version: ${version}`, `Chain ID: ${chainId}`, `Nonce: ${nonce}`, `Issued At: ${issuedAt}`);\n return lines.join(\"\\n\");\n}\n//# sourceMappingURL=message.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,I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KAAK,CAACC,IAAI,CAAC,QAAQN,GAAG,EAAE,EAAE,YAAYC,OAAO,EAAE,EAAE,aAAaC,OAAO,EAAE,EAAE,UAAUC,KAAK,EAAE,EAAE,cAAcC,QAAQ,EAAE,CAAC;EACrH,OAAOC,KAAK,CAACE,IAAI,CAAC,IAAI,CAAC;AACzB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","signWithBridge_exports","signSiwsWithBridge","module","exports","import_bs58","require","solana","message","signature","signMessage","TextEncoder","encode","default"],"sources":["signWithBridge.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar signWithBridge_exports = {};\n__export(signWithBridge_exports, {\n signSiwsWithBridge: () => signSiwsWithBridge\n});\nmodule.exports = __toCommonJS(signWithBridge_exports);\nvar import_bs58 = __toESM(require(\"bs58\"));\nasync function signSiwsWithBridge(solana, message) {\n var signature = await solana.signMessage(new TextEncoder().encode(message));\n return import_bs58.default.encode(signature);\n}\n//# sourceMappingURL=signWithBridge.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAgB,GAAGJ,MAAM,CAACK,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGN,MAAM,CAACO,mBAAmB;AAClD,IAAIC,YAAY,GAAGR,MAAM,CAACS,cAAc;AACxC,IAAIC,YAAY,GAAGV,MAAM,CAACW,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBb,SAAS,CAACY,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIlB,iBAAiB,CAACe,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,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C,WAAW,CAAC,CAAC,CAACC,MAAM,CAACJ,OAAO,CAAC,CAAC;EAC3E,OAAOH,WAAW,CAACQ,OAAO,CAACD,MAAM,CAACH,SAAS,CAAC;AAC9C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","verify_exports","verifySiwsSignature","module","exports","import_ed25519","require","import_bs58","message","signature","publicKey","messageBytes","TextEncoder","encode","signatureBytes","default","decode","publicKeyBytes","ed25519","verify","unused"],"sources":["verify.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar verify_exports = {};\n__export(verify_exports, {\n verifySiwsSignature: () => verifySiwsSignature\n});\nmodule.exports = __toCommonJS(verify_exports);\nvar import_ed25519 = require(\"@noble/curves/ed25519\");\nvar import_bs58 = __toESM(require(\"bs58\"));\nfunction verifySiwsSignature(message, signature, publicKey) {\n try {\n var messageBytes = new TextEncoder().encode(message);\n var signatureBytes = typeof signature === \"string\" ? import_bs58.default.decode(signature) : signature;\n var publicKeyBytes = import_bs58.default.decode(publicKey);\n return import_ed25519.ed25519.verify(signatureBytes, messageBytes, publicKeyBytes);\n } catch (unused) {\n return false;\n }\n}\n//# sourceMappingURL=verify.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAgB,GAAGJ,MAAM,CAACK,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGN,MAAM,CAACO,mBAAmB;AAClD,IAAIC,YAAY,GAAGR,MAAM,CAACS,cAAc;AACxC,IAAIC,YAAY,GAAGV,MAAM,CAACW,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBb,SAAS,CAACY,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IA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AACW,OAAO,CAAC,MAAM,CAAC,CAAC;AAC1C,SAASJ,mBAAmBA,CAACM,OAAO,EAAEC,SAAS,EAAEC,SAAS,EAAE;EAC1D,IAAI;IACF,IAAIC,YAAY,GAAG,IAAIC,WAAW,CAAC,CAAC,CAACC,MAAM,CAACL,OAAO,CAAC;IACpD,IAAIM,cAAc,GAAG,OAAOL,SAAS,KAAK,QAAQ,GAAGF,WAAW,CAACQ,OAAO,CAACC,MAAM,CAACP,SAAS,CAAC,GAAGA,SAAS;IACtG,IAAIQ,cAAc,GAAGV,WAAW,CAACQ,OAAO,CAACC,MAAM,CAACN,SAAS,CAAC;IAC1D,OAAOL,cAAc,CAACa,OAAO,CAACC,MAAM,CAACL,cAAc,EAAEH,YAAY,EAAEM,cAAc,CAAC;EACpF,CAAC,CAAC,OAAOG,MAAM,EAAE;IACf,OAAO,KAAK;EACd;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","solana_exports","SolanaConfirmationError","import_solana","connectSolanaWallet","findSolanaSigner","getSolanaWallets","import_walletStandard","getStandardWallets","injectedSolanaSigner","solanaChainFromRpcUrl","solanaClient","solanaRpcUrls","standardSolanaSigner","transferSolInstruction","useSolanaClient","import_useSolanaClient","module","exports","require"],"sources":["solana.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar solana_exports = {};\n__export(solana_exports, {\n SolanaConfirmationError: () => import_solana.SolanaConfirmationError,\n connectSolanaWallet: () => import_solana.connectSolanaWallet,\n findSolanaSigner: () => import_solana.findSolanaSigner,\n getSolanaWallets: () => import_walletStandard.getSolanaWallets,\n getStandardWallets: () => import_walletStandard.getStandardWallets,\n injectedSolanaSigner: () => import_solana.injectedSolanaSigner,\n solanaChainFromRpcUrl: () => import_solana.solanaChainFromRpcUrl,\n solanaClient: () => import_solana.solanaClient,\n solanaRpcUrls: () => import_solana.solanaRpcUrls,\n standardSolanaSigner: () => import_solana.standardSolanaSigner,\n transferSolInstruction: () => import_solana.transferSolInstruction,\n useSolanaClient: () => import_useSolanaClient.useSolanaClient\n});\nmodule.exports = __toCommonJS(solana_exports);\nvar import_solana = require(\"./clients/solana\");\nvar import_useSolanaClient = require(\"./clients/useSolanaClient\");\nvar import_walletStandard = require(\"./clients/walletStandard\");\n//# sourceMappingURL=solana.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,U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KAAMP,aAAa,CAACO,qBAAqB;EAChEC,YAAY,EAAEA,CAAA,KAAMR,aAAa,CAACQ,YAAY;EAC9CC,aAAa,EAAEA,CAAA,KAAMT,aAAa,CAACS,aAAa;EAChDC,oBAAoB,EAAEA,CAAA,KAAMV,aAAa,CAACU,oBAAoB;EAC9DC,sBAAsB,EAAEA,CAAA,KAAMX,aAAa,CAACW,sBAAsB;EAClEC,eAAe,EAAEA,CAAA,KAAMC,sBAAsB,CAACD;AAChD,CAAC,CAAC;AACFE,MAAM,CAACC,OAAO,GAAGpB,YAAY,CAACG,cAAc,CAAC;AAC7C,IAAIE,aAAa,GAAGgB,OAAO,CAAC,4BAAkB,CAAC;AAC/C,IAAIH,sBAAsB,GAAGG,OAAO,CAAC,qCAA2B,CAAC;AACjE,IAAIZ,qBAAqB,GAAGY,OAAO,CAAC,oCAA0B,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name2 in all) __defProp(target, name2, {
|
|
7
|
+
get: all[name2],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var vite_exports = {};
|
|
24
|
+
__export(vite_exports, {
|
|
25
|
+
metaMaskConnectTimeouts: () => metaMaskConnectTimeouts
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(vite_exports);
|
|
28
|
+
var import_metaMaskConnectTimeouts = require("./bundler/metaMaskConnectTimeouts.cjs");
|
|
29
|
+
const name = "mpo-web3:metamask-connect-timeouts";
|
|
30
|
+
function metaMaskConnectTimeouts() {
|
|
31
|
+
const tracker = (0, import_metaMaskConnectTimeouts.createMetaMaskConnectTimeoutTracker)();
|
|
32
|
+
return {
|
|
33
|
+
name,
|
|
34
|
+
enforce: "pre",
|
|
35
|
+
config() {
|
|
36
|
+
const deps = (0, import_metaMaskConnectTimeouts.createMetaMaskConnectTimeoutTracker)();
|
|
37
|
+
return {
|
|
38
|
+
optimizeDeps: {
|
|
39
|
+
rolldownOptions: {
|
|
40
|
+
plugins: [{
|
|
41
|
+
name: `${name}:deps`,
|
|
42
|
+
transform(code, id) {
|
|
43
|
+
const result = deps.patch(id, code);
|
|
44
|
+
return result ? {
|
|
45
|
+
code: result.code,
|
|
46
|
+
map: null
|
|
47
|
+
} : null;
|
|
48
|
+
},
|
|
49
|
+
buildEnd(error) {
|
|
50
|
+
if (error) return;
|
|
51
|
+
const problem = deps.problem();
|
|
52
|
+
if (problem) this.error(`${name}: ${problem}`);
|
|
53
|
+
}
|
|
54
|
+
}]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
transform(code, id) {
|
|
60
|
+
try {
|
|
61
|
+
const result = tracker.patch(id, code);
|
|
62
|
+
return result ? {
|
|
63
|
+
code: result.code,
|
|
64
|
+
map: null
|
|
65
|
+
} : null;
|
|
66
|
+
} catch (error) {
|
|
67
|
+
this.error(error.message);
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
buildEnd(error) {
|
|
71
|
+
if (error || this.meta.watchMode) return;
|
|
72
|
+
const problem = tracker.problem();
|
|
73
|
+
if (problem) this.error(`${name}: ${problem}`);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name2 in all) __defProp(target, name2, {
|
|
9
|
+
get: all[name2],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var vite_exports = {};
|
|
26
|
+
__export(vite_exports, {
|
|
27
|
+
metaMaskConnectTimeouts: () => metaMaskConnectTimeouts
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(vite_exports);
|
|
30
|
+
var import_metaMaskConnectTimeouts = require("./bundler/metaMaskConnectTimeouts.native.js");
|
|
31
|
+
var name = "mpo-web3:metamask-connect-timeouts";
|
|
32
|
+
function metaMaskConnectTimeouts() {
|
|
33
|
+
var tracker = (0, import_metaMaskConnectTimeouts.createMetaMaskConnectTimeoutTracker)();
|
|
34
|
+
return {
|
|
35
|
+
name,
|
|
36
|
+
enforce: "pre",
|
|
37
|
+
config() {
|
|
38
|
+
var deps = (0, import_metaMaskConnectTimeouts.createMetaMaskConnectTimeoutTracker)();
|
|
39
|
+
return {
|
|
40
|
+
optimizeDeps: {
|
|
41
|
+
rolldownOptions: {
|
|
42
|
+
plugins: [{
|
|
43
|
+
name: `${name}:deps`,
|
|
44
|
+
transform(code, id) {
|
|
45
|
+
var result = deps.patch(id, code);
|
|
46
|
+
return result ? {
|
|
47
|
+
code: result.code,
|
|
48
|
+
map: null
|
|
49
|
+
} : null;
|
|
50
|
+
},
|
|
51
|
+
buildEnd(error) {
|
|
52
|
+
if (error) return;
|
|
53
|
+
var problem = deps.problem();
|
|
54
|
+
if (problem) this.error(`${name}: ${problem}`);
|
|
55
|
+
}
|
|
56
|
+
}]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
transform(code, id) {
|
|
62
|
+
try {
|
|
63
|
+
var result = tracker.patch(id, code);
|
|
64
|
+
return result ? {
|
|
65
|
+
code: result.code,
|
|
66
|
+
map: null
|
|
67
|
+
} : null;
|
|
68
|
+
} catch (error) {
|
|
69
|
+
this.error(error.message);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
buildEnd(error) {
|
|
73
|
+
if (error || this.meta.watchMode) return;
|
|
74
|
+
var problem = tracker.problem();
|
|
75
|
+
if (problem) this.error(`${name}: ${problem}`);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=vite.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name2","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","vite_exports","metaMaskConnectTimeouts","module","exports","import_metaMaskConnectTimeouts","require","name","tracker","createMetaMaskConnectTimeoutTracker","enforce","config","deps","optimizeDeps","rolldownOptions","plugins","transform","code","id","result","patch","map","buildEnd","error","problem","message","meta","watchMode"],"sources":["vite.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name2 in all)\n __defProp(target, name2, { get: all[name2], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar vite_exports = {};\n__export(vite_exports, {\n metaMaskConnectTimeouts: () => metaMaskConnectTimeouts\n});\nmodule.exports = __toCommonJS(vite_exports);\nvar import_metaMaskConnectTimeouts = require(\"./bundler/metaMaskConnectTimeouts\");\nvar name = \"mpo-web3:metamask-connect-timeouts\";\nfunction metaMaskConnectTimeouts() {\n var tracker = (0, import_metaMaskConnectTimeouts.createMetaMaskConnectTimeoutTracker)();\n return {\n name,\n enforce: \"pre\",\n config() {\n var deps = (0, import_metaMaskConnectTimeouts.createMetaMaskConnectTimeoutTracker)();\n return {\n optimizeDeps: {\n rolldownOptions: {\n plugins: [\n {\n name: `${name}:deps`,\n transform(code, id) {\n var result = deps.patch(id, code);\n return result ? {\n code: result.code,\n map: null\n } : null;\n },\n buildEnd(error) {\n if (error) return;\n var problem = deps.problem();\n if (problem) this.error(`${name}: ${problem}`);\n }\n }\n ]\n }\n }\n };\n },\n transform(code, id) {\n try {\n var result = tracker.patch(id, code);\n return result ? {\n code: result.code,\n map: null\n } : null;\n } catch (error) {\n this.error(error.message);\n }\n },\n buildEnd(error) {\n if (error || this.meta.watchMode) return;\n var problem = tracker.problem();\n if (problem) this.error(`${name}: ${problem}`);\n }\n };\n}\n//# sourceMappingURL=vite.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,KAAK,IAAID,GAAG,EACnBZ,SAAS,CAACW,MAAM,EAAEE,KAAK,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,KAAK,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACnE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,C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C;IACDR,SAASA,CAACC,IAAI,EAAEC,EAAE,EAAE;MAClB,IAAI;QACF,IAAIC,MAAM,GAAGX,OAAO,CAACY,KAAK,CAACF,EAAE,EAAED,IAAI,CAAC;QACpC,OAAOE,MAAM,GAAG;UACdF,IAAI,EAAEE,MAAM,CAACF,IAAI;UACjBI,GAAG,EAAE;QACP,CAAC,GAAG,IAAI;MACV,CAAC,CAAC,OAAOE,KAAK,EAAE;QACd,IAAI,CAACA,KAAK,CAACA,KAAK,CAACE,OAAO,CAAC;MAC3B;IACF,CAAC;IACDH,QAAQA,CAACC,KAAK,EAAE;MACd,IAAIA,KAAK,IAAI,IAAI,CAACG,IAAI,CAACC,SAAS,EAAE;MAClC,IAAIH,OAAO,GAAGhB,OAAO,CAACgB,OAAO,CAAC,CAAC;MAC/B,IAAIA,OAAO,EAAE,IAAI,CAACD,KAAK,CAAC,GAAGhB,IAAI,KAAKiB,OAAO,EAAE,CAAC;IAChD;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const metaMaskConnectTimeoutPatches = [{
|
|
2
|
+
pkg: "@metamask/connect-multichain",
|
|
3
|
+
marker: "CONNECTION_GRACE_PERIOD",
|
|
4
|
+
rewrites: [{
|
|
5
|
+
timer: "DEFAULT_REQUEST_TIMEOUT",
|
|
6
|
+
pattern: /(DEFAULT_REQUEST_TIMEOUT\d*) = 60 \* 1e3;(\s+CONNECTION_GRACE_PERIOD =)/,
|
|
7
|
+
replacement: "$1 = 600 * 1e3;$2"
|
|
8
|
+
}, {
|
|
9
|
+
timer: "the page-load session resume",
|
|
10
|
+
pattern: /(resumeSession_fn = function\((\w+), (\w+)\)(?:(?!startSession_fn)[\s\S])*?isContinuingPriorAttempt \? this\.options\.resumeTimeout : )this\.options\.connectionTimeout/,
|
|
11
|
+
replacement: "$1$3 ? this.options.connectionTimeout : 120 * 1e3"
|
|
12
|
+
}]
|
|
13
|
+
}, {
|
|
14
|
+
pkg: "@metamask/mobile-wallet-protocol-dapp-client",
|
|
15
|
+
marker: "HANDSHAKE_TIMEOUT",
|
|
16
|
+
rewrites: [{
|
|
17
|
+
timer: "HANDSHAKE_TIMEOUT",
|
|
18
|
+
pattern: /(HANDSHAKE_TIMEOUT) = 60 \* 1e3;/,
|
|
19
|
+
replacement: "$1 = 540 * 1e3;"
|
|
20
|
+
}]
|
|
21
|
+
}];
|
|
22
|
+
const metaMaskConnectPkg = "@metamask/connect-evm";
|
|
23
|
+
const normalize = id => id.replace(/\\/g, "/");
|
|
24
|
+
function metaMaskConnectTimeoutPatchFor(id, code) {
|
|
25
|
+
const path = normalize(id);
|
|
26
|
+
return metaMaskConnectTimeoutPatches.find(patch => path.includes(`/${patch.pkg}/`) && code.includes(patch.marker));
|
|
27
|
+
}
|
|
28
|
+
function patchMetaMaskConnectTimeouts(id, code) {
|
|
29
|
+
const patch = metaMaskConnectTimeoutPatchFor(id, code);
|
|
30
|
+
if (!patch) return void 0;
|
|
31
|
+
let patched = code;
|
|
32
|
+
for (const rewrite of patch.rewrites) {
|
|
33
|
+
if (!rewrite.pattern.test(patched)) throw new Error(`MetaMask Connect timer ${rewrite.timer} not found in ${id}: ${patch.pkg} changed its source, so the long Android timers cannot be applied`);
|
|
34
|
+
patched = patched.replace(rewrite.pattern, rewrite.replacement);
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
pkg: patch.pkg,
|
|
38
|
+
code: patched
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function createMetaMaskConnectTimeoutTracker() {
|
|
42
|
+
const patched = /* @__PURE__ */new Map();
|
|
43
|
+
let bundlesMetaMaskConnect = false;
|
|
44
|
+
return {
|
|
45
|
+
see(id) {
|
|
46
|
+
if (normalize(id).includes(`/${metaMaskConnectPkg}/`)) bundlesMetaMaskConnect = true;
|
|
47
|
+
},
|
|
48
|
+
patch(id, code) {
|
|
49
|
+
this.see(id);
|
|
50
|
+
const result = patchMetaMaskConnectTimeouts(id, code);
|
|
51
|
+
if (result) patched.set(result.pkg, (patched.get(result.pkg) ?? 0) + 1);
|
|
52
|
+
return result;
|
|
53
|
+
},
|
|
54
|
+
/** Error text when the build bundles MetaMask Connect with a timer left unpatched. */
|
|
55
|
+
problem() {
|
|
56
|
+
if (!bundlesMetaMaskConnect) return void 0;
|
|
57
|
+
const missing = metaMaskConnectTimeoutPatches.map(patch => patch.pkg).filter(pkg => !patched.get(pkg));
|
|
58
|
+
if (!missing.length) return void 0;
|
|
59
|
+
return `the build bundles ${metaMaskConnectPkg} but left the timers in ${missing.join(", ")} unpatched`;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export { createMetaMaskConnectTimeoutTracker, metaMaskConnectTimeoutPatchFor, metaMaskConnectTimeoutPatches, patchMetaMaskConnectTimeouts };
|
|
64
|
+
//# sourceMappingURL=metaMaskConnectTimeouts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["metaMaskConnectTimeoutPatches","pkg","marker","rewrites","timer","pattern","replacement","metaMaskConnectPkg","normalize","id","replace","metaMaskConnectTimeoutPatchFor","code","path","find","patch","includes","patchMetaMaskConnectTimeouts","patched","rewrite","test","Error","createMetaMaskConnectTimeoutTracker","Map","bundlesMetaMaskConnect","see","result","set","get","problem","missing","map","filter","length","join"],"sources":["../../../src/bundler/metaMaskConnectTimeouts.ts"],"sourcesContent":[null],"mappings":"AA+BO,MAAMA,6BAAA,GAAwE,CACnF;EACEC,GAAA,EAAK;EACLC,MAAA,EAAQ;EACRC,QAAA,EAAU,CACR;IACEC,KAAA,EAAO;IACPC,OAAA,EAAS;IACTC,WAAA,EAAa;EACf,GACA;IACEF,KAAA,EAAO;IACPC,OAAA,EACE;IACFC,WAAA,EAAa;EACf;AAEJ,GACA;EACEL,GAAA,EAAK;EACLC,MAAA,EAAQ;EACRC,QAAA,EAAU,CACR;IACEC,KAAA,EAAO;IACPC,OAAA,EAAS;IACTC,WAAA,EAAa;EACf;AAEJ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YG,IAAA,EAAc;MAC9B,KAAKa,GAAA,CAAIhB,EAAE;MACX,MAAMiB,MAAA,GAAST,4BAAA,CAA6BR,EAAA,EAAIG,IAAI;MACpD,IAAIc,MAAA,EAAQR,OAAA,CAAQS,GAAA,CAAID,MAAA,CAAOzB,GAAA,GAAMiB,OAAA,CAAQU,GAAA,CAAIF,MAAA,CAAOzB,GAAG,KAAK,KAAK,CAAC;MACtE,OAAOyB,MAAA;IACT;IAAA;IAEAG,QAAA,EAA8B;MAC5B,IAAI,CAACL,sBAAA,EAAwB,OAAO;MACpC,MAAMM,OAAA,GAAU9B,6BAAA,CACb+B,GAAA,CAAKhB,KAAA,IAAUA,KAAA,CAAMd,GAAG,EACxB+B,MAAA,CAAQ/B,GAAA,IAAQ,CAACiB,OAAA,CAAQU,GAAA,CAAI3B,GAAG,CAAC;MACpC,IAAI,CAAC6B,OAAA,CAAQG,MAAA,EAAQ,OAAO;MAC5B,OAAO,qBAAqB1B,kBAAkB,2BAA2BuB,OAAA,CAAQI,IAAA,CAAK,IAAI,CAAC;IAC7F;EACF;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
var metaMaskConnectTimeoutPatches = [{
|
|
2
|
+
pkg: "@metamask/connect-multichain",
|
|
3
|
+
marker: "CONNECTION_GRACE_PERIOD",
|
|
4
|
+
rewrites: [{
|
|
5
|
+
timer: "DEFAULT_REQUEST_TIMEOUT",
|
|
6
|
+
pattern: /(DEFAULT_REQUEST_TIMEOUT\d*) = 60 \* 1e3;(\s+CONNECTION_GRACE_PERIOD =)/,
|
|
7
|
+
replacement: "$1 = 600 * 1e3;$2"
|
|
8
|
+
}, {
|
|
9
|
+
timer: "the page-load session resume",
|
|
10
|
+
pattern: /(resumeSession_fn = function\((\w+), (\w+)\)(?:(?!startSession_fn)[\s\S])*?isContinuingPriorAttempt \? this\.options\.resumeTimeout : )this\.options\.connectionTimeout/,
|
|
11
|
+
replacement: "$1$3 ? this.options.connectionTimeout : 120 * 1e3"
|
|
12
|
+
}]
|
|
13
|
+
}, {
|
|
14
|
+
pkg: "@metamask/mobile-wallet-protocol-dapp-client",
|
|
15
|
+
marker: "HANDSHAKE_TIMEOUT",
|
|
16
|
+
rewrites: [{
|
|
17
|
+
timer: "HANDSHAKE_TIMEOUT",
|
|
18
|
+
pattern: /(HANDSHAKE_TIMEOUT) = 60 \* 1e3;/,
|
|
19
|
+
replacement: "$1 = 540 * 1e3;"
|
|
20
|
+
}]
|
|
21
|
+
}];
|
|
22
|
+
var metaMaskConnectPkg = "@metamask/connect-evm";
|
|
23
|
+
var normalize = function normalize2(id) {
|
|
24
|
+
return id.replace(/\\/g, "/");
|
|
25
|
+
};
|
|
26
|
+
function metaMaskConnectTimeoutPatchFor(id, code) {
|
|
27
|
+
var path = normalize(id);
|
|
28
|
+
return metaMaskConnectTimeoutPatches.find(function (patch) {
|
|
29
|
+
return path.includes(`/${patch.pkg}/`) && code.includes(patch.marker);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function patchMetaMaskConnectTimeouts(id, code) {
|
|
33
|
+
var patch = metaMaskConnectTimeoutPatchFor(id, code);
|
|
34
|
+
if (!patch) return void 0;
|
|
35
|
+
var patched = code;
|
|
36
|
+
var _iteratorNormalCompletion = true,
|
|
37
|
+
_didIteratorError = false,
|
|
38
|
+
_iteratorError = void 0;
|
|
39
|
+
try {
|
|
40
|
+
for (var _iterator = patch.rewrites[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
41
|
+
var rewrite = _step.value;
|
|
42
|
+
if (!rewrite.pattern.test(patched)) throw new Error(`MetaMask Connect timer ${rewrite.timer} not found in ${id}: ${patch.pkg} changed its source, so the long Android timers cannot be applied`);
|
|
43
|
+
patched = patched.replace(rewrite.pattern, rewrite.replacement);
|
|
44
|
+
}
|
|
45
|
+
} catch (err) {
|
|
46
|
+
_didIteratorError = true;
|
|
47
|
+
_iteratorError = err;
|
|
48
|
+
} finally {
|
|
49
|
+
try {
|
|
50
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
51
|
+
_iterator.return();
|
|
52
|
+
}
|
|
53
|
+
} finally {
|
|
54
|
+
if (_didIteratorError) {
|
|
55
|
+
throw _iteratorError;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
pkg: patch.pkg,
|
|
61
|
+
code: patched
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function createMetaMaskConnectTimeoutTracker() {
|
|
65
|
+
var patched = /* @__PURE__ */new Map();
|
|
66
|
+
var bundlesMetaMaskConnect = false;
|
|
67
|
+
return {
|
|
68
|
+
see(id) {
|
|
69
|
+
if (normalize(id).includes(`/${metaMaskConnectPkg}/`)) bundlesMetaMaskConnect = true;
|
|
70
|
+
},
|
|
71
|
+
patch(id, code) {
|
|
72
|
+
var _patched_get;
|
|
73
|
+
this.see(id);
|
|
74
|
+
var result = patchMetaMaskConnectTimeouts(id, code);
|
|
75
|
+
if (result) patched.set(result.pkg, ((_patched_get = patched.get(result.pkg)) !== null && _patched_get !== void 0 ? _patched_get : 0) + 1);
|
|
76
|
+
return result;
|
|
77
|
+
},
|
|
78
|
+
/** Error text when the build bundles MetaMask Connect with a timer left unpatched. */
|
|
79
|
+
problem() {
|
|
80
|
+
if (!bundlesMetaMaskConnect) return void 0;
|
|
81
|
+
var missing = metaMaskConnectTimeoutPatches.map(function (patch) {
|
|
82
|
+
return patch.pkg;
|
|
83
|
+
}).filter(function (pkg) {
|
|
84
|
+
return !patched.get(pkg);
|
|
85
|
+
});
|
|
86
|
+
if (!missing.length) return void 0;
|
|
87
|
+
return `the build bundles ${metaMaskConnectPkg} but left the timers in ${missing.join(", ")} unpatched`;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
export { createMetaMaskConnectTimeoutTracker, metaMaskConnectTimeoutPatchFor, metaMaskConnectTimeoutPatches, patchMetaMaskConnectTimeouts };
|
|
92
|
+
//# sourceMappingURL=metaMaskConnectTimeouts.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["metaMaskConnectTimeoutPatches","pkg","marker","rewrites","timer","pattern","replacement","metaMaskConnectPkg","normalize","normalize2","id","replace","metaMaskConnectTimeoutPatchFor","code","path","find","patch","includes","patchMetaMaskConnectTimeouts","patched","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","rewrite","value","test","Error","err","return","createMetaMaskConnectTimeoutTracker","Map","bundlesMetaMaskConnect"],"sources":["../../../src/bundler/metaMaskConnectTimeouts.ts"],"sourcesContent":[null],"mappings":"AA+BO,IAAAA,6BAAM,IACX;EACEC,GAAA,EAAK;EACLC,MAAA,EAAQ;EACRC,QAAA,EAAU,CACR;IACEC,KAAA,EAAO;IACPC,OAAA,EAAS;IACTC,WAAA,EAAa;EACf,GACA;IACEF,KAAA,EAAO;IACPC,OAAA,EACE;IACFC,WAAA,EAAa;EACf;AAEJ,GACA;EACEL,GAAA,EAAK;EACLC,MAAA,EAAQ;EACRC,QAAA,EAAU,CACR;IACEC,KAAA,EAAO;IACPC,OAAA,EAAS;IACTC,WAAA,EAAa;EACf;AAEJ,EACF;AAEA,IAAAC,kBAAM,0BAAqB;AAE3B,IAAAC,SAAM,YAAaC,UAAkBA,CAAAC,EAAQ;EAGtC,OAASA,EAAA,CAAAC,OAAA;AAId;AACA,SAAOC,8BAA8BA,CAAAF,EAAA,EAAAG,IAAA;EAAA,IAClCC,IAAA,GAAAN,SAAe,CAAAE,EAAA;EAClB,OAAAV,6BAAA,CAAAe,IAAA,WAAAC,KAAA;IACF,OAAAF,IAAA,CAAAG,QAAA,KAAAD,KAAA,CAAAf,GAAA,QAAAY,IAAA,CAAAI,QAAA,CAAAD,KAAA,CAAAd,MAAA;EAMO;AAIL;AACA,SAAKgB,4BAAcA,CAAAR,EAAA,EAAAG,IAAA;EACnB,IAAIG,KAAA,GAAAJ,8BAAU,CAAAF,EAAA,EAAAG,IAAA;EACd,KAAAG,KAAA,EAAW,YAAW;EACpB,IAAAG,OAAK,GAAAN,IAAQ;EACX,IAAAO,yBAAU;IAAAC,iBAAA;IAAAC,cAAA;EAAA;IACgE,KAC1E,IAAAC,SAAA,GAAAP,KAAA,CAAAb,QAAA,CAAAqB,MAAA,CAAAC,QAAA,KAAAC,KAAA,IAAAN,yBAAA,IAAAM,KAAA,GAAAH,SAAA,CAAAI,IAAA,IAAAC,IAAA,GAAAR,yBAAA;MACF,IAAAS,OAAU,GAAAH,KAAQ,CAAAI,KAAQ;MAC5B,KAAAD,OAAA,CAAAxB,OAAA,CAAA0B,IAAA,CAAAZ,OAAA,aAAAa,KAAA,2BAAAH,OAAA,CAAAzB,KAAA,iBAAAM,EAAA,KAAAM,KAAA,CAAAf,GAAA;MACAkB,OAAS,GAAKA,OAAM,CAAAR,OAAK,CAAAkB,OAAM,CAAAxB,OAAQ,EAAAwB,OAAA,CAAAvB,WAAA;IACzC;EAMO,SAAS2B,GAAA;IACdZ,iBAAgB;IAChBC,cAAI,GAAAW,GAAA;EACJ,UAAO;IACL,IAAI;MACF,IAAI,CAAAb,yBAAuB,IAAIG,SAAA,CAAAW,MAAkB,IAAM;QACzDX,SAAA,CAAAW,MAAA;MACA;IACE,UAAK;MACL,IAAAb,iBAAe;QACf,MAAIC,cAAgB;MACpB;IACF;EAAA;EAAA,OAEA;IACErB,GAAA,EAAAe,KAAK,CAAAf,GAAA;IACLY,IAAA,EAAAM;EAGA;AACA;AAA2F,SAC7FgB,oCAAA;EACF,IAAAhB,OAAA,sBAAAiB,GAAA;EACF,IAAAC,sBAAA","ignoreList":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
|
-
import { useContext, routes, useIsMobile, ScrollArea, Alert, detectBrowser, isCoinbaseWalletConnector, isMetaMaskConnector, isPortoConnector,
|
|
2
|
+
import { useContext, routes, useIsMobile, ScrollArea, Alert, detectBrowser, isCoinbaseWalletConnector, isMetaMaskConnector, isPortoConnector, resolveListEntries, useModalState, useScreenRegistry } from "@multiplatform.one/connectkit";
|
|
3
3
|
import { ConnectorsContainer, ConnectorButton, ConnectorLabel, ConnectorIcon, RecentlyUsedTag } from "./styles.mjs";
|
|
4
|
-
import { useWeb3 } from "../../contexts/web3/index.mjs";
|
|
5
4
|
import { useWallets } from "../../../wallets/useWallets.mjs";
|
|
6
5
|
import { useLastConnector } from "../../../hooks/useLastConnector.mjs";
|
|
7
6
|
import { setConnectIntent } from "../../../siwe/connectIntent.mjs";
|
|
@@ -29,7 +28,7 @@ const ConnectorList = () => {
|
|
|
29
28
|
const modalState = useModalState();
|
|
30
29
|
const screenEntries = resolveListEntries(screens, modalState);
|
|
31
30
|
const filteredWallets = wallets.filter(wallet => wallet.id !== aaveAccountConnector?.id);
|
|
32
|
-
const walletsToDisplay = context.options?.hideRecentBadge
|
|
31
|
+
const walletsToDisplay = context.options?.hideRecentBadge ? filteredWallets : [...filteredWallets.filter(wallet => lastConnectorId === wallet.connector.id), ...filteredWallets.filter(wallet => lastConnectorId !== wallet.connector.id)];
|
|
33
32
|
const groups = [];
|
|
34
33
|
const byName = /* @__PURE__ */new Map();
|
|
35
34
|
for (const wallet of walletsToDisplay) {
|
|
@@ -149,48 +148,30 @@ const ConnectorItem = ({
|
|
|
149
148
|
isRecent,
|
|
150
149
|
labelOverride
|
|
151
150
|
}) => {
|
|
152
|
-
const {
|
|
153
|
-
connect: {
|
|
154
|
-
getUri
|
|
155
|
-
}
|
|
156
|
-
} = useWeb3();
|
|
157
|
-
const uri = getUri();
|
|
158
151
|
const isMobile = useIsMobile();
|
|
159
152
|
const context = useContext();
|
|
160
153
|
const {
|
|
161
154
|
connect
|
|
162
155
|
} = useConnect();
|
|
163
|
-
let deeplink = !isMetaMaskConnector(wallet.connector.id) && (
|
|
164
|
-
// metaMaskSDK deep-links via the SDK's connect(), never via WalletConnect
|
|
165
|
-
!wallet.isInstalled && isMobile || wallet.shouldDeeplinkDesktop && !isMobile) ? wallet.getWalletConnectDeeplink?.(uri ?? "") : void 0;
|
|
166
|
-
const redirectToMoreWallets = isMobile && isWalletConnectConnector(wallet.id);
|
|
167
156
|
const shouldConnectImmediately = (detectBrowser() === "safari" || detectBrowser() === "ios") && (isCoinbaseWalletConnector(wallet.connector.id) || isPortoConnector(wallet.connector.id)) || isMobile && isMetaMaskConnector(wallet.connector.id);
|
|
168
|
-
if (redirectToMoreWallets || shouldConnectImmediately) deeplink = void 0;
|
|
169
157
|
return /* @__PURE__ */jsxs(ConnectorButton, {
|
|
170
158
|
type: "button",
|
|
171
|
-
as: deeplink ? "a" : void 0,
|
|
172
|
-
href: deeplink ? deeplink : void 0,
|
|
173
159
|
disabled: context.route !== routes.CONNECTORS,
|
|
174
|
-
onClick:
|
|
175
|
-
if (
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
setConnectIntent();
|
|
180
|
-
connect({
|
|
181
|
-
connector: wallet?.connector
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
context.setRoute(routes.CONNECT);
|
|
185
|
-
context.setConnector({
|
|
186
|
-
id: wallet.id
|
|
160
|
+
onClick: () => {
|
|
161
|
+
if (shouldConnectImmediately) {
|
|
162
|
+
setConnectIntent();
|
|
163
|
+
connect({
|
|
164
|
+
connector: wallet?.connector
|
|
187
165
|
});
|
|
188
166
|
}
|
|
167
|
+
context.setRoute(routes.CONNECT);
|
|
168
|
+
context.setConnector({
|
|
169
|
+
id: wallet.id
|
|
170
|
+
});
|
|
189
171
|
},
|
|
190
172
|
children: [/* @__PURE__ */jsx(ConnectorIcon, {
|
|
191
173
|
"data-small": wallet.iconShouldShrink,
|
|
192
174
|
"data-shape": wallet.iconShape,
|
|
193
|
-
"data-background": redirectToMoreWallets,
|
|
194
175
|
children: wallet.iconConnector ?? wallet.icon
|
|
195
176
|
}), /* @__PURE__ */jsxs(ConnectorLabel, {
|
|
196
177
|
children: [labelOverride ?? (isMobile ? wallet.shortName ?? wallet.name : wallet.name), !context.options?.hideRecentBadge && isRecent && /* @__PURE__ */jsx(RecentlyUsedTag, {
|