@bit-buccaneers/wallet-abstraction 0.0.4 → 0.0.7
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/dist/dev.js +306 -70
- package/dist/dev.jsx +314 -73
- package/dist/index.js +306 -70
- package/dist/index.jsx +314 -73
- package/dist/lib/connectors/binance.d.ts +1 -0
- package/dist/lib/connectors/bitget.d.ts +2 -0
- package/dist/lib/connectors/coinbase.d.ts +2 -0
- package/dist/lib/connectors/exodus.d.ts +1 -0
- package/dist/lib/connectors/index.d.ts +10 -6
- package/dist/lib/connectors/metamask.d.ts +1 -0
- package/dist/lib/connectors/okx.d.ts +2 -0
- package/dist/lib/connectors/phantom.d.ts +1 -0
- package/dist/lib/connectors/shared/dapp-browser.d.ts +10 -0
- package/dist/lib/connectors/shared/index.d.ts +1 -0
- package/dist/lib/connectors/solflare.d.ts +1 -0
- package/dist/lib/connectors/trust.d.ts +1 -0
- package/dist/lib/connectors/walletconnect.d.ts +4 -0
- package/dist/lib/core/types.d.ts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/wallets/config.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EvmWalletConnector } from '../evm';
|
|
2
|
+
import type { SolanaWalletConnector } from '../solana';
|
|
3
|
+
export declare const createWalletConnectEvmConnector: () => EvmWalletConnector | null;
|
|
4
|
+
export declare const createWalletConnectSolanaConnector: () => SolanaWalletConnector | null;
|
package/dist/lib/core/types.d.ts
CHANGED
package/dist/lib/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { createEvmConfig, getEvmConfig, getEvmConnectors, watchEvmConnections, t
|
|
|
3
3
|
export { getSolanaWallets, onSolanaWalletsChange, reconnectSolana, watchSolanaConnection, checkPhantomSignCallback, checkSolflareSignCallback, type SolanaConnection, type SolanaWallet, type SolanaWalletConnector, } from './solana';
|
|
4
4
|
export { useWallet, WalletProvider, type WalletContextValue } from './context';
|
|
5
5
|
export { WALLETS, type WalletConfig } from './wallets';
|
|
6
|
-
export { initWalletConnect, type WalletConnectConfig } from './walletconnect';
|
|
6
|
+
export { getCurrentSession, initWalletConnect, onWalletConnectSessionChange, type WalletConnectConfig, type WalletConnectSession, } from './walletconnect';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const WALLET_IDS: readonly ["metamask", "phantom", "okx", "coinbase", "binance", "bitget", "solflare", "trust", "rabby", "rainbow", "exodus"];
|
|
1
|
+
export declare const WALLET_IDS: readonly ["walletconnect", "metamask", "phantom", "okx", "coinbase", "binance", "bitget", "solflare", "trust", "rabby", "rainbow", "exodus"];
|
|
2
2
|
export type WalletId = (typeof WALLET_IDS)[number];
|
|
3
3
|
export interface WalletConfig {
|
|
4
4
|
id: WalletId;
|
|
5
5
|
name: string;
|
|
6
6
|
icon: string;
|
|
7
|
-
chromeExtensionUrl
|
|
7
|
+
chromeExtensionUrl?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const WALLETS: WalletConfig[];
|