@multiplatform.one/web3 7.90.6 → 8.0.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 +3 -3
- package/dist/cjs/bridge/AuthBridge.native.js.map +1 -1
- package/dist/cjs/bridge/BridgeClient.native.js.map +1 -1
- package/dist/cjs/bridge/BridgeHost.native.js.map +1 -1
- package/dist/cjs/bridge/GpgBridge.native.js.map +1 -1
- package/dist/cjs/bridge/SolanaBridge.native.js.map +1 -1
- package/dist/cjs/bridge/SuiBridge.native.js.map +1 -1
- package/dist/cjs/bridge/authTypes.native.js.map +1 -1
- package/dist/cjs/bridge/base58.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/core.native.js.map +1 -1
- package/dist/cjs/bridge/drivers.native.js.map +1 -1
- package/dist/cjs/bridge/eip1193.native.js.map +1 -1
- package/dist/cjs/bridge/hosting.native.js.map +1 -1
- package/dist/cjs/bridge/index.native.js.map +1 -1
- package/dist/cjs/bridge/nativeHost.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.native.js.map +1 -1
- 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/evmRead.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/preparedSend.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/GpgProvider.native.js +1 -1
- package/dist/cjs/connectkit/GpgProvider.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/BitcoinAdapter.native.js +1 -1
- package/dist/cjs/connectkit/adapters/BitcoinAdapter.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/EthereumAdapter.native.js +1 -1
- package/dist/cjs/connectkit/adapters/EthereumAdapter.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/SolanaAdapter.native.js +1 -1
- package/dist/cjs/connectkit/adapters/SolanaAdapter.native.js.map +1 -1
- package/dist/cjs/connectkit/adapters/SuiAdapter.native.js +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/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.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.native.js +1 -1
- 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.native.js +3 -3
- 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.native.js +9 -9
- package/dist/cjs/connectkit/components/ConnectModal/demo.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/contexts/web3/index.native.js.map +1 -1
- package/dist/cjs/connectkit/connectors/aaveAccountConnector.native.js.map +1 -1
- package/dist/cjs/connectkit/connectors/coinbaseWalletConnector.native.js.map +1 -1
- package/dist/cjs/connectkit/connectors/createWalletMessage.native.js +1 -1
- package/dist/cjs/connectkit/connectors/createWalletMessage.native.js.map +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.native.js.map +1 -1
- package/dist/cjs/connectkit/connectors/restoredSession.native.js.map +1 -1
- 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 +0 -8
- package/dist/cjs/connectkit/defaultConfig.native.js +0 -8
- package/dist/cjs/connectkit/defaultConfig.native.js.map +1 -1
- package/dist/cjs/connectkit/defaultConnectors.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.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.native.js +9 -9
- 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.native.js +7 -7
- 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.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.native.js.map +1 -1
- package/dist/cjs/connectkit/wallets/useWallets.native.js.map +1 -1
- package/dist/cjs/connectkit/wallets/walletConfigs.native.js.map +1 -1
- package/dist/cjs/connectkit/web3Bridge.native.js +2 -2
- package/dist/cjs/connectkit/web3Bridge.native.js.map +1 -1
- package/dist/cjs/connectkit/web3Provider.native.js.map +1 -1
- package/dist/cjs/core/family.native.js.map +1 -1
- package/dist/cjs/core/index.native.js.map +1 -1
- package/dist/cjs/core/lightDriver.native.js.map +1 -1
- package/dist/cjs/core/message.native.js.map +1 -1
- package/dist/cjs/core/names.native.js.map +1 -1
- package/dist/cjs/core/react.native.js.map +1 -1
- package/dist/cjs/core/signIn.native.js.map +1 -1
- package/dist/cjs/core/store.native.js.map +1 -1
- package/dist/cjs/core/types.native.js.map +1 -1
- package/dist/cjs/esbuild.native.js.map +1 -1
- package/dist/cjs/examples/LockContract.native.js.map +1 -1
- package/dist/cjs/examples/index.native.js.map +1 -1
- package/dist/cjs/families/btc.native.js.map +1 -1
- package/dist/cjs/families/eth.native.js.map +1 -1
- package/dist/cjs/families/gpg.native.js.map +1 -1
- package/dist/cjs/families/host.native.js.map +1 -1
- package/dist/cjs/families/index.native.js.map +1 -1
- package/dist/cjs/families/messages.native.js.map +1 -1
- package/dist/cjs/families/sol.native.js.map +1 -1
- package/dist/cjs/families/sui.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.native.js.map +1 -1
- package/dist/cjs/index.native.js +11 -11
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/keycloak/browserFlow.native.js.map +1 -1
- package/dist/cjs/keycloak/device.native.js.map +1 -1
- package/dist/cjs/keycloak/directGrant.native.js.map +1 -1
- package/dist/cjs/keycloak/iife.native.js.map +1 -1
- package/dist/cjs/keycloak/index.native.js.map +1 -1
- package/dist/cjs/keycloak/keycloakWallet.native.js +1 -1
- package/dist/cjs/keycloak/keycloakWallet.native.js.map +1 -1
- package/dist/cjs/keycloak/registerWallet.native.js.map +1 -1
- package/dist/cjs/keycloak/types.native.js.map +1 -1
- package/dist/cjs/keycloak/useDirectLogin.native.js.map +1 -1
- package/dist/cjs/light/drivers.native.js.map +1 -1
- package/dist/cjs/light/index.native.js.map +1 -1
- package/dist/cjs/message/buildWalletMessage.native.js.map +1 -1
- package/dist/cjs/message/index.native.js.map +1 -1
- package/dist/cjs/phantom/crypto.native.js.map +1 -1
- package/dist/cjs/phantom/evm.native.js.map +1 -1
- package/dist/cjs/phantom/index.native.js.map +1 -1
- package/dist/cjs/phantom/solana.native.js.map +1 -1
- package/dist/cjs/phantom/urls.native.js.map +1 -1
- package/dist/cjs/providers/WalletProvider.cjs +0 -2
- package/dist/cjs/providers/WalletProvider.native.js +1 -1
- package/dist/cjs/providers/families.native.js.map +1 -1
- 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.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/native/webViewLoader.native.js.map +1 -1
- package/dist/cjs/providers/walletBridge.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 +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.native.js.map +1 -1
- package/dist/cjs/wagmi/driver.native.js.map +1 -1
- package/dist/cjs/wagmi/host.native.js +1 -1
- package/dist/cjs/wagmi/host.native.js.map +1 -1
- package/dist/cjs/wagmi/index.native.js.map +1 -1
- package/dist/esm/connectkit/defaultConfig.mjs +0 -8
- package/dist/esm/connectkit/defaultConfig.mjs.map +1 -1
- package/dist/esm/connectkit/defaultConfig.native.js +0 -8
- package/dist/esm/connectkit/defaultConfig.native.js.map +1 -1
- package/dist/esm/providers/WalletProvider.mjs +0 -2
- package/dist/esm/providers/WalletProvider.mjs.map +1 -1
- package/dist/esm/providers/walletConfig.mjs.map +1 -1
- package/dist/jsx/connectkit/defaultConfig.mjs +0 -8
- package/dist/jsx/connectkit/defaultConfig.mjs.map +1 -1
- package/dist/jsx/connectkit/defaultConfig.native.js +0 -8
- package/dist/jsx/connectkit/defaultConfig.native.js.map +1 -1
- package/dist/jsx/providers/WalletProvider.mjs +0 -2
- package/dist/jsx/providers/WalletProvider.mjs.map +1 -1
- package/dist/jsx/providers/walletConfig.mjs.map +1 -1
- package/dist/jsx/providers/walletConfig.native.js.map +1 -1
- package/dist/keycloak/login.iife.js +294 -299
- package/package.json +7 -7
- package/src/clients/adapter.ts +1 -1
- package/src/clients/connector.ts +1 -1
- package/src/connectkit/connectors/getWalletConnectors.ts +1 -1
- package/src/connectkit/connectors/syntheticChains.ts +8 -8
- package/src/connectkit/connectors/walletAdapterConnector.ts +1 -1
- package/src/connectkit/defaultConfig.ts +0 -13
- package/src/connectkit/siwe/SIWEProvider.tsx +1 -1
- package/src/connectkit/siwe/useSIWE.ts +1 -1
- package/src/keycloak/keycloakWallet.ts +2 -2
- package/src/providers/WalletProvider.tsx +1 -3
- package/src/providers/walletConfig.ts +0 -2
- package/types/clients/adapter.d.ts +1 -1
- package/types/clients/connector.d.ts +1 -1
- package/types/connectkit/connectors/getWalletConnectors.d.ts +1 -1
- package/types/connectkit/connectors/syntheticChains.d.ts +8 -8
- package/types/connectkit/connectors/syntheticChains.d.ts.map +1 -1
- package/types/connectkit/connectors/walletAdapterConnector.d.ts +1 -1
- package/types/connectkit/defaultConfig.d.ts +1 -3
- package/types/connectkit/defaultConfig.d.ts.map +1 -1
- package/types/connectkit/siwe/SIWEProvider.d.ts +1 -1
- package/types/connectkit/siwe/useSIWE.d.ts +1 -1
- package/types/keycloak/keycloakWallet.d.ts +2 -2
- package/types/providers/WalletProvider.d.ts +1 -1
- package/types/providers/WalletProvider.d.ts.map +1 -1
- package/types/providers/walletConfig.d.ts +0 -2
- package/types/providers/walletConfig.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/web3",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Web3 wallet integration for multiplatform.one ecosystem with ConnectKit and wagmi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"connectkit",
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
"@aave/account": "^0.2.1",
|
|
121
121
|
"@coinbase/wallet-sdk": "^4.4.0",
|
|
122
122
|
"@metamask/connect-evm": "^2.1.1",
|
|
123
|
-
"@multiplatform.one/connectkit": "^
|
|
124
|
-
"@multiplatform.one/gpg": "^
|
|
125
|
-
"@multiplatform.one/platform": "^
|
|
126
|
-
"@multiplatform.one/theme": "^
|
|
123
|
+
"@multiplatform.one/connectkit": "^8.0.0",
|
|
124
|
+
"@multiplatform.one/gpg": "^8.0.0",
|
|
125
|
+
"@multiplatform.one/platform": "^8.0.0",
|
|
126
|
+
"@multiplatform.one/theme": "^8.0.0",
|
|
127
127
|
"@noble/ciphers": "^1.3.0",
|
|
128
128
|
"@noble/curves": "^1.9.7",
|
|
129
129
|
"@phosphor-icons/react": "^2.1.10",
|
|
@@ -147,8 +147,8 @@
|
|
|
147
147
|
"wagmi": "^3.7.1"
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
|
-
"@multiplatform.one/config": "
|
|
151
|
-
"@multiplatform.one/test-utils": "
|
|
150
|
+
"@multiplatform.one/config": "8.0.0",
|
|
151
|
+
"@multiplatform.one/test-utils": "8.0.0",
|
|
152
152
|
"@tamagui/build": "2.7.6",
|
|
153
153
|
"@tanstack/react-query": "^5.104.3",
|
|
154
154
|
"@testing-library/jest-dom": "^7.0.1",
|
package/src/clients/adapter.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { WalletAdapter } from "../connectkit/adapters/types";
|
|
|
4
4
|
/**
|
|
5
5
|
* The wallet adapter a non-EVM shim connector carries (see walletAdapterConnector), or null.
|
|
6
6
|
*
|
|
7
|
-
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
7
|
+
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`.
|
|
8
8
|
*/
|
|
9
9
|
export function connectorAdapter(
|
|
10
10
|
connector: unknown,
|
package/src/clients/connector.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type NonEvmClient = SolanaMessageClient | SuiClient | BitcoinClient;
|
|
|
17
17
|
* its shim connector carries. Sign-in uses it, so it stays free of
|
|
18
18
|
* @solana/kit. Null for an EVM connector or one that is not connected.
|
|
19
19
|
*
|
|
20
|
-
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
20
|
+
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`.
|
|
21
21
|
*/
|
|
22
22
|
export function clientForConnector(
|
|
23
23
|
connector: unknown,
|
|
@@ -7,7 +7,7 @@ import { walletAdapterConnector } from "./walletAdapterConnector";
|
|
|
7
7
|
* into `createConfig({ connectors: [...evmConnectors, ...getWalletConnectors()] })`.
|
|
8
8
|
* Defaults to probing the page; pass a curated list to override.
|
|
9
9
|
*
|
|
10
|
-
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
10
|
+
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`.
|
|
11
11
|
*/
|
|
12
12
|
export function getWalletConnectors(
|
|
13
13
|
entries: WalletEntry[] = discoverWallets(),
|
|
@@ -10,11 +10,11 @@ import type { Ecosystem } from "@multiplatform.one/connectkit";
|
|
|
10
10
|
|
|
11
11
|
// 0x534f4c="SOL", 0x535549="SUI", 0x425443="BTC" — reserved, collision-free vs
|
|
12
12
|
// real EVM chainIds.
|
|
13
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
13
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
14
14
|
export const SOLANA_CHAIN_ID = 0x534f4c; // 5_459_788
|
|
15
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
15
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
16
16
|
export const SUI_CHAIN_ID = 0x535549; // 5_461_321
|
|
17
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
17
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
18
18
|
export const BITCOIN_CHAIN_ID = 0x425443; // 4_347_459
|
|
19
19
|
|
|
20
20
|
export const syntheticChainIdByEcosystem: Record<Exclude<Ecosystem, "evm">, number> = {
|
|
@@ -29,7 +29,7 @@ export const ecosystemBySyntheticChainId: Record<number, Ecosystem> = {
|
|
|
29
29
|
[BITCOIN_CHAIN_ID]: "bitcoin",
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
32
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
33
33
|
export const isSyntheticChainId = (chainId?: number): boolean =>
|
|
34
34
|
chainId != null && chainId in ecosystemBySyntheticChainId;
|
|
35
35
|
|
|
@@ -50,12 +50,12 @@ const makeChain = (id: number, name: string, symbol: string, decimals: number):
|
|
|
50
50
|
rpcUrls: { default: { http: [placeholderRpcUrl] } },
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
53
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
54
54
|
export const solanaChain = makeChain(SOLANA_CHAIN_ID, "Solana", "SOL", 9);
|
|
55
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
55
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
56
56
|
export const suiChain = makeChain(SUI_CHAIN_ID, "Sui", "SUI", 9);
|
|
57
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
57
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
58
58
|
export const bitcoinChain = makeChain(BITCOIN_CHAIN_ID, "Bitcoin", "BTC", 8);
|
|
59
59
|
|
|
60
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
60
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
61
61
|
export const syntheticChains: Chain[] = [solanaChain, suiChain, bitcoinChain];
|
|
@@ -28,7 +28,7 @@ type ProviderListener = (payload?: unknown) => void;
|
|
|
28
28
|
* and handed to Keycloak as the signed message's account). Modeled on
|
|
29
29
|
* createBridgeConnector (see ../../bridge/bridgeConnector.ts).
|
|
30
30
|
*
|
|
31
|
-
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
31
|
+
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`.
|
|
32
32
|
*/
|
|
33
33
|
export function walletAdapterConnector(entry: WalletConnectorEntry): CreateConnectorFn {
|
|
34
34
|
const chainId = syntheticChainIdByEcosystem[entry.ecosystem];
|
|
@@ -20,8 +20,6 @@ type DefaultConfigProps = {
|
|
|
20
20
|
appDescription?: string;
|
|
21
21
|
appUrl?: string;
|
|
22
22
|
|
|
23
|
-
/** @deprecated Ignored: no connector needs a project id. Removed in the next major. */
|
|
24
|
-
walletConnectProjectId?: string;
|
|
25
23
|
// Coinbase Wallet preference
|
|
26
24
|
coinbaseWalletPreference?: CoinbaseWalletParameters<"4">["preference"];
|
|
27
25
|
// Aave Account options
|
|
@@ -38,21 +36,11 @@ type DefaultConfigProps = {
|
|
|
38
36
|
enableWallet?: boolean | readonly WalletEcosystem[];
|
|
39
37
|
} & Partial<CreateConfigParameters>;
|
|
40
38
|
|
|
41
|
-
let warnedProjectId = false;
|
|
42
|
-
function warnIgnoredProjectId() {
|
|
43
|
-
if (warnedProjectId) return;
|
|
44
|
-
warnedProjectId = true;
|
|
45
|
-
console.warn(
|
|
46
|
-
"@multiplatform.one/web3: walletConnectProjectId is ignored and will be removed in the next major.",
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
39
|
const defaultConfig = ({
|
|
51
40
|
appName = "ConnectKit",
|
|
52
41
|
appIcon,
|
|
53
42
|
appDescription,
|
|
54
43
|
appUrl,
|
|
55
|
-
walletConnectProjectId,
|
|
56
44
|
coinbaseWalletPreference,
|
|
57
45
|
chains = [mainnet, polygon, optimism, arbitrum],
|
|
58
46
|
client,
|
|
@@ -63,7 +51,6 @@ const defaultConfig = ({
|
|
|
63
51
|
...props
|
|
64
52
|
}: DefaultConfigProps): CreateConfigParameters => {
|
|
65
53
|
setAppMeta(appName, appIcon);
|
|
66
|
-
if (walletConnectProjectId) warnIgnoredProjectId();
|
|
67
54
|
|
|
68
55
|
const ecosystems: readonly WalletEcosystem[] =
|
|
69
56
|
enableWallet === true ? ["solana", "sui", "bitcoin"] : enableWallet || [];
|
|
@@ -22,7 +22,7 @@ const b64 = (s: string) => window.btoa(unescape(encodeURIComponent(s)));
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Sign-in over wagmi's account, mounted outside ConnectKitProvider.
|
|
25
|
-
* @deprecated Goes in
|
|
25
|
+
* @deprecated Goes in a later major. `SignInProvider` signs with whichever family the
|
|
26
26
|
* connection store holds: `<SignInProvider {...kc.signInConfig(onSign)}>`,
|
|
27
27
|
* or Web3Provider's `signIn` prop.
|
|
28
28
|
*/
|
|
@@ -24,7 +24,7 @@ type UseSIWEConfig = {
|
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* The SIWEProvider's sign-in state.
|
|
27
|
-
* @deprecated Goes in
|
|
27
|
+
* @deprecated Goes in a later major with SIWEProvider; `useSignIn()` reads a SignInProvider.
|
|
28
28
|
*/
|
|
29
29
|
export const useSIWE = ({ onSignIn, onSignOut }: UseSIWEConfig = {}): HookProps | any => {
|
|
30
30
|
const siweContextValue = useContext(SIWEContext);
|
|
@@ -74,7 +74,7 @@ export interface KeycloakWallet {
|
|
|
74
74
|
subscribeNonceReset(listener: () => void): () => void;
|
|
75
75
|
/**
|
|
76
76
|
* `SIWEConfig.createMessage`, with this wallet's domain and uri.
|
|
77
|
-
* @deprecated Goes in
|
|
77
|
+
* @deprecated Goes in a later major with SIWEProvider; `signInConfig` builds the connected family's message.
|
|
78
78
|
*/
|
|
79
79
|
createMessage(args: { nonce: string; address: string; chainId: number }): string;
|
|
80
80
|
/** `GpgConfig.buildMessage`, with this wallet's domain and uri. */
|
|
@@ -87,7 +87,7 @@ export interface KeycloakWallet {
|
|
|
87
87
|
signInConfig(onSign: OnSign): SignInConfig;
|
|
88
88
|
/**
|
|
89
89
|
* Props for `<SIWEProvider>` that sign through `onSign`.
|
|
90
|
-
* @deprecated SIWEProvider goes in
|
|
90
|
+
* @deprecated SIWEProvider goes in a later major; mount `<SignInProvider {...kc.signInConfig(onSign)}>`.
|
|
91
91
|
*/
|
|
92
92
|
siweConfig(onSign: OnSign): SIWEConfig;
|
|
93
93
|
/** Props for `<GpgProvider>` that sign through `onSign`. */
|
|
@@ -32,7 +32,7 @@ export interface Web3ProviderProps extends PropsWithChildren {
|
|
|
32
32
|
* Mounts a SIWEProvider around the ConnectKit modal, e.g.
|
|
33
33
|
* `kc.siweConfig(grant.onSign)` for `useDirectLogin`. It has to sit outside
|
|
34
34
|
* ConnectKitProvider, so a child cannot add its own.
|
|
35
|
-
* @deprecated SIWEProvider goes in
|
|
35
|
+
* @deprecated SIWEProvider goes in a later major; pass `signIn={kc.signInConfig(onSign)}`.
|
|
36
36
|
*/
|
|
37
37
|
siwe?: SIWEConfig & Pick<ComponentProps<typeof SIWEProvider>, "onSignIn" | "onSignOut">;
|
|
38
38
|
/** Props for the ConnectKitProvider it mounts, e.g. `{ options: { disableSiweRedirect: true } }`. */
|
|
@@ -76,7 +76,6 @@ export function Web3Provider({
|
|
|
76
76
|
connectKit,
|
|
77
77
|
}: Web3ProviderProps) {
|
|
78
78
|
const {
|
|
79
|
-
walletConnectProjectId,
|
|
80
79
|
appName,
|
|
81
80
|
appDescription = "Connect your wallet",
|
|
82
81
|
// Not @multiplatform.one/platform's isWeb: that package reads process.env
|
|
@@ -137,7 +136,6 @@ export function Web3Provider({
|
|
|
137
136
|
appDescription,
|
|
138
137
|
appUrl,
|
|
139
138
|
appIcon,
|
|
140
|
-
walletConnectProjectId,
|
|
141
139
|
chains: activeChains,
|
|
142
140
|
transports,
|
|
143
141
|
enableWallet: ecosystems,
|
|
@@ -24,8 +24,6 @@ export const defaultChains: readonly [Chain, ...Chain[]] = [
|
|
|
24
24
|
export type ConnectorFamily = Exclude<SignerFamily, "gpg">;
|
|
25
25
|
|
|
26
26
|
export interface Web3Config {
|
|
27
|
-
/** @deprecated Ignored: no connector needs a project id. Removed in the next major. */
|
|
28
|
-
walletConnectProjectId?: string;
|
|
29
27
|
appName: string;
|
|
30
28
|
appDescription?: string;
|
|
31
29
|
appUrl?: string;
|
|
@@ -3,7 +3,7 @@ import type { WalletAdapter } from "../connectkit/adapters/types";
|
|
|
3
3
|
/**
|
|
4
4
|
* The wallet adapter a non-EVM shim connector carries (see walletAdapterConnector), or null.
|
|
5
5
|
*
|
|
6
|
-
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
6
|
+
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`.
|
|
7
7
|
*/
|
|
8
8
|
export declare function connectorAdapter(connector: unknown, ecosystem?: Exclude<Ecosystem, "evm">): WalletAdapter | null;
|
|
9
9
|
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -10,7 +10,7 @@ export type NonEvmClient = SolanaMessageClient | SuiClient | BitcoinClient;
|
|
|
10
10
|
* its shim connector carries. Sign-in uses it, so it stays free of
|
|
11
11
|
* @solana/kit. Null for an EVM connector or one that is not connected.
|
|
12
12
|
*
|
|
13
|
-
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
13
|
+
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`.
|
|
14
14
|
*/
|
|
15
15
|
export declare function clientForConnector(connector: unknown, options?: ConnectorClientOptions): NonEvmClient | null;
|
|
16
16
|
//# sourceMappingURL=connector.d.ts.map
|
|
@@ -5,7 +5,7 @@ import { type WalletEntry } from "../adapters/discover";
|
|
|
5
5
|
* into `createConfig({ connectors: [...evmConnectors, ...getWalletConnectors()] })`.
|
|
6
6
|
* Defaults to probing the page; pass a curated list to override.
|
|
7
7
|
*
|
|
8
|
-
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
8
|
+
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`.
|
|
9
9
|
*/
|
|
10
10
|
export declare function getWalletConnectors(entries?: WalletEntry[]): CreateConnectorFn[];
|
|
11
11
|
//# sourceMappingURL=getWalletConnectors.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { Chain } from "viem";
|
|
2
2
|
import type { Ecosystem } from "@multiplatform.one/connectkit";
|
|
3
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
3
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
4
4
|
export declare const SOLANA_CHAIN_ID = 5459788;
|
|
5
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
5
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
6
6
|
export declare const SUI_CHAIN_ID = 5461321;
|
|
7
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
7
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
8
8
|
export declare const BITCOIN_CHAIN_ID = 4346947;
|
|
9
9
|
export declare const syntheticChainIdByEcosystem: Record<Exclude<Ecosystem, "evm">, number>;
|
|
10
10
|
export declare const ecosystemBySyntheticChainId: Record<number, Ecosystem>;
|
|
11
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
11
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
12
12
|
export declare const isSyntheticChainId: (chainId?: number) => boolean;
|
|
13
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
13
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
14
14
|
export declare const solanaChain: Chain;
|
|
15
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
15
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
16
16
|
export declare const suiChain: Chain;
|
|
17
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
17
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
18
18
|
export declare const bitcoinChain: Chain;
|
|
19
|
-
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
19
|
+
/** @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`. */
|
|
20
20
|
export declare const syntheticChains: Chain[];
|
|
21
21
|
//# sourceMappingURL=syntheticChains.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syntheticChains.d.ts","sourceRoot":"","sources":["../../../src/connectkit/connectors/syntheticChains.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAI/D,
|
|
1
|
+
{"version":3,"file":"syntheticChains.d.ts","sourceRoot":"","sources":["../../../src/connectkit/connectors/syntheticChains.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAI/D,oOAAoO;AACpO,eAAO,MAAM,eAAe,UAAW,CAAC;AACxC,oOAAoO;AACpO,eAAO,MAAM,YAAY,UAAW,CAAC;AACrC,oOAAoO;AACpO,eAAO,MAAM,gBAAgB,UAAW,CAAC;AAEzC,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,CAIjF,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAIjE,CAAC;AAEF,oOAAoO;AACpO,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,KAAG,OACK,CAAC;AAmB5D,oOAAoO;AACpO,eAAO,MAAM,WAAW,OAAiD,CAAC;AAC1E,oOAAoO;AACpO,eAAO,MAAM,QAAQ,OAA2C,CAAC;AACjE,oOAAoO;AACpO,eAAO,MAAM,YAAY,OAAmD,CAAC;AAE7E,oOAAoO;AACpO,eAAO,MAAM,eAAe,EAAE,KAAK,EAA0C,CAAC"}
|
|
@@ -22,7 +22,7 @@ export interface WalletConnectorEntry {
|
|
|
22
22
|
* and handed to Keycloak as the signed message's account). Modeled on
|
|
23
23
|
* createBridgeConnector (see ../../bridge/bridgeConnector.ts).
|
|
24
24
|
*
|
|
25
|
-
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in
|
|
25
|
+
* @deprecated The wagmi shim for Solana, Sui and Bitcoin wallets, which goes in a later major when the connect modal reads the connection store (MPO-385). Use the `sol()`, `sui()` and `btc()` families and `useConnection()`.
|
|
26
26
|
*/
|
|
27
27
|
export declare function walletAdapterConnector(entry: WalletConnectorEntry): CreateConnectorFn;
|
|
28
28
|
//# sourceMappingURL=walletAdapterConnector.d.ts.map
|
|
@@ -9,8 +9,6 @@ type DefaultConfigProps = {
|
|
|
9
9
|
appIcon?: string;
|
|
10
10
|
appDescription?: string;
|
|
11
11
|
appUrl?: string;
|
|
12
|
-
/** @deprecated Ignored: no connector needs a project id. Removed in the next major. */
|
|
13
|
-
walletConnectProjectId?: string;
|
|
14
12
|
coinbaseWalletPreference?: CoinbaseWalletParameters<"4">["preference"];
|
|
15
13
|
enableAaveAccount?: boolean;
|
|
16
14
|
aaveAccountOptions?: AaveAccountOptions;
|
|
@@ -21,6 +19,6 @@ type DefaultConfigProps = {
|
|
|
21
19
|
metaMaskRestoredSessionTimeout?: RestoredSessionTimeout;
|
|
22
20
|
enableWallet?: boolean | readonly WalletEcosystem[];
|
|
23
21
|
} & Partial<CreateConfigParameters>;
|
|
24
|
-
declare const defaultConfig: ({ appName, appIcon, appDescription, appUrl,
|
|
22
|
+
declare const defaultConfig: ({ appName, appIcon, appDescription, appUrl, coinbaseWalletPreference, chains, client, enableAaveAccount, aaveAccountOptions, metaMaskRestoredSessionTimeout, enableWallet, ...props }: DefaultConfigProps) => CreateConfigParameters;
|
|
25
23
|
export default defaultConfig;
|
|
26
24
|
//# sourceMappingURL=defaultConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../../src/connectkit/defaultConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAQ,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,uBAAuB,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAI9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAM5E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEvE,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../../src/connectkit/defaultConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAQ,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,uBAAuB,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAI9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAM5E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEvE,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC;IAEvE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC;;;OAGG;IACH,8BAA8B,CAAC,EAAE,sBAAsB,CAAC;IAIxD,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,eAAe,EAAE,CAAC;CACrD,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAEpC,QAAA,MAAM,aAAa,GAAI,uLAapB,kBAAkB,KAAG,sBAsDvB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -9,7 +9,7 @@ export declare const SIWE_NONCE_QUERY_KEY = "ckSiweNonce";
|
|
|
9
9
|
export declare const SIWE_SESSION_QUERY_KEY = "ckSiweSession";
|
|
10
10
|
/**
|
|
11
11
|
* Sign-in over wagmi's account, mounted outside ConnectKitProvider.
|
|
12
|
-
* @deprecated Goes in
|
|
12
|
+
* @deprecated Goes in a later major. `SignInProvider` signs with whichever family the
|
|
13
13
|
* connection store holds: `<SignInProvider {...kc.signInConfig(onSign)}>`,
|
|
14
14
|
* or Web3Provider's `signIn` prop.
|
|
15
15
|
*/
|
|
@@ -19,7 +19,7 @@ type UseSIWEConfig = {
|
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* The SIWEProvider's sign-in state.
|
|
22
|
-
* @deprecated Goes in
|
|
22
|
+
* @deprecated Goes in a later major with SIWEProvider; `useSignIn()` reads a SignInProvider.
|
|
23
23
|
*/
|
|
24
24
|
export declare const useSIWE: ({ onSignIn, onSignOut }?: UseSIWEConfig) => HookProps | any;
|
|
25
25
|
export {};
|
|
@@ -62,7 +62,7 @@ export interface KeycloakWallet {
|
|
|
62
62
|
subscribeNonceReset(listener: () => void): () => void;
|
|
63
63
|
/**
|
|
64
64
|
* `SIWEConfig.createMessage`, with this wallet's domain and uri.
|
|
65
|
-
* @deprecated Goes in
|
|
65
|
+
* @deprecated Goes in a later major with SIWEProvider; `signInConfig` builds the connected family's message.
|
|
66
66
|
*/
|
|
67
67
|
createMessage(args: {
|
|
68
68
|
nonce: string;
|
|
@@ -81,7 +81,7 @@ export interface KeycloakWallet {
|
|
|
81
81
|
signInConfig(onSign: OnSign): SignInConfig;
|
|
82
82
|
/**
|
|
83
83
|
* Props for `<SIWEProvider>` that sign through `onSign`.
|
|
84
|
-
* @deprecated SIWEProvider goes in
|
|
84
|
+
* @deprecated SIWEProvider goes in a later major; mount `<SignInProvider {...kc.signInConfig(onSign)}>`.
|
|
85
85
|
*/
|
|
86
86
|
siweConfig(onSign: OnSign): SIWEConfig;
|
|
87
87
|
/** Props for `<GpgProvider>` that sign through `onSign`. */
|
|
@@ -24,7 +24,7 @@ export interface Web3ProviderProps extends PropsWithChildren {
|
|
|
24
24
|
* Mounts a SIWEProvider around the ConnectKit modal, e.g.
|
|
25
25
|
* `kc.siweConfig(grant.onSign)` for `useDirectLogin`. It has to sit outside
|
|
26
26
|
* ConnectKitProvider, so a child cannot add its own.
|
|
27
|
-
* @deprecated SIWEProvider goes in
|
|
27
|
+
* @deprecated SIWEProvider goes in a later major; pass `signIn={kc.signInConfig(onSign)}`.
|
|
28
28
|
*/
|
|
29
29
|
siwe?: SIWEConfig & Pick<ComponentProps<typeof SIWEProvider>, "onSignIn" | "onSignOut">;
|
|
30
30
|
/** Props for the ConnectKitProvider it mounts, e.g. `{ options: { disableSiweRedirect: true } }`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletProvider.d.ts","sourceRoot":"","sources":["../../src/providers/WalletProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,KAAK,UAAU,EAAoB,MAAM,eAAe,CAAC;AACpG,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAMnE,OAAO,EAAE,KAAK,UAAU,EAAqD,MAAM,gBAAgB,CAAC;AAEpG,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,MAAM,EAAE,UAAU,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC;IACxF,qGAAqG;IACrG,UAAU,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,EAAE,UAAU,CAAC,CAAC;CAC1E;AAED,4DAA4D;AAC5D,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAiBpD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,MAAM,EAAE,UAAU,EAClB,QAAQ,EACR,WAAgC,EAChC,MAAM,EACN,IAAI,EACJ,UAAU,GACX,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"WalletProvider.d.ts","sourceRoot":"","sources":["../../src/providers/WalletProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,KAAK,UAAU,EAAoB,MAAM,eAAe,CAAC;AACpG,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAMnE,OAAO,EAAE,KAAK,UAAU,EAAqD,MAAM,gBAAgB,CAAC;AAEpG,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,MAAM,EAAE,UAAU,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC;IACxF,qGAAqG;IACrG,UAAU,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,EAAE,UAAU,CAAC,CAAC;CAC1E;AAED,4DAA4D;AAC5D,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAiBpD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,MAAM,EAAE,UAAU,EAClB,QAAQ,EACR,WAAgC,EAChC,MAAM,EACN,IAAI,EACJ,UAAU,GACX,EAAE,iBAAiB,2CAiGnB;AAED,yCAAyC;AACzC,eAAO,MAAM,cAAc,qBAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -12,8 +12,6 @@ export declare const defaultChains: readonly [Chain, ...Chain[]];
|
|
|
12
12
|
/** A family the connect modal can list: `eth` (or `evm`), `sol` (`solana`), `sui`, `btc` (`bitcoin`). */
|
|
13
13
|
export type ConnectorFamily = Exclude<SignerFamily, "gpg">;
|
|
14
14
|
export interface Web3Config {
|
|
15
|
-
/** @deprecated Ignored: no connector needs a project id. Removed in the next major. */
|
|
16
|
-
walletConnectProjectId?: string;
|
|
17
15
|
appName: string;
|
|
18
16
|
appDescription?: string;
|
|
19
17
|
appUrl?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletConfig.d.ts","sourceRoot":"","sources":["../../src/providers/walletConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAQ,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEzF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAOtD,CAAC;AAEF,yGAAyG;AACzG,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAE3D,MAAM,WAAW,UAAU;IACzB,
|
|
1
|
+
{"version":3,"file":"walletConfig.d.ts","sourceRoot":"","sources":["../../src/providers/walletConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAQ,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEzF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAOtD,CAAC;AAEF,yGAAyG;AACzG,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAE3D,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACtC,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iGAAiG;IACjG,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,kBAAkB,CAAC;QAAC,UAAU,CAAC,EAAE,oBAAoB,CAAA;KAAE,CAAC;CAC7E;AAED,kFAAkF;AAClF,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,UAAU,EACV,QAAQ,GAAG,gBAAgB,GAAG,UAAU,GAAG,gBAAgB,CAC5D,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAgBnF;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAEnF;AAED,KAAK,eAAe,GAAG,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAmBjD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG;IACrE,GAAG,EAAE,OAAO,CAAC;IACb,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B,CAsBA;AAED,eAAO,MAAM,iBAAiB,4CAAyC,CAAC;AAExE,wBAAgB,aAAa,IAAI,UAAU,CAM1C"}
|