@forge-connect/react 1.0.1 → 1.0.3
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/index.cjs +1639 -1593
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +1655 -1609
- package/dist/index.js.map +1 -1
- package/package.json +1 -5
package/dist/index.d.cts
CHANGED
|
@@ -12,6 +12,15 @@ interface WalletConfig {
|
|
|
12
12
|
preferredWallets?: string[];
|
|
13
13
|
/** If true, only show wallets listed in preferredWallets. Default: false. */
|
|
14
14
|
onlyPreferred?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Pass `Transaction` from `@solana/web3.js` to enable hardware wallet (cold wallet) support.
|
|
17
|
+
* Only needed if you want cold wallet signing (Ledger, Trezor, etc.).
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* import { Transaction } from '@solana/web3.js';
|
|
21
|
+
* walletConfig: { Transaction }
|
|
22
|
+
*/
|
|
23
|
+
Transaction?: any;
|
|
15
24
|
}
|
|
16
25
|
interface ForgeConnectConfig {
|
|
17
26
|
/** Base URL of the ForgeConnect API */
|
|
@@ -320,6 +329,7 @@ declare function createApiClient(apiUrl: string): {
|
|
|
320
329
|
password?: string;
|
|
321
330
|
challengeId?: string;
|
|
322
331
|
signature?: string;
|
|
332
|
+
signedTransaction?: string;
|
|
323
333
|
walletAddress?: string;
|
|
324
334
|
}): Promise<{
|
|
325
335
|
success: true;
|
|
@@ -648,7 +658,7 @@ declare function useWallets(): {
|
|
|
648
658
|
label?: string;
|
|
649
659
|
isPrimary?: boolean;
|
|
650
660
|
}) => Promise<void>;
|
|
651
|
-
linkWallet: (walletAddress: string, signMessage: (message: Uint8Array) => Promise<Uint8Array
|
|
661
|
+
linkWallet: (walletAddress: string, signMessage: ((message: Uint8Array) => Promise<Uint8Array>) | undefined, chain?: string, signTransaction?: (txBase64: string) => Promise<string>) => Promise<void>;
|
|
652
662
|
};
|
|
653
663
|
|
|
654
664
|
declare function useSessions(): {
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,15 @@ interface WalletConfig {
|
|
|
12
12
|
preferredWallets?: string[];
|
|
13
13
|
/** If true, only show wallets listed in preferredWallets. Default: false. */
|
|
14
14
|
onlyPreferred?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Pass `Transaction` from `@solana/web3.js` to enable hardware wallet (cold wallet) support.
|
|
17
|
+
* Only needed if you want cold wallet signing (Ledger, Trezor, etc.).
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* import { Transaction } from '@solana/web3.js';
|
|
21
|
+
* walletConfig: { Transaction }
|
|
22
|
+
*/
|
|
23
|
+
Transaction?: any;
|
|
15
24
|
}
|
|
16
25
|
interface ForgeConnectConfig {
|
|
17
26
|
/** Base URL of the ForgeConnect API */
|
|
@@ -320,6 +329,7 @@ declare function createApiClient(apiUrl: string): {
|
|
|
320
329
|
password?: string;
|
|
321
330
|
challengeId?: string;
|
|
322
331
|
signature?: string;
|
|
332
|
+
signedTransaction?: string;
|
|
323
333
|
walletAddress?: string;
|
|
324
334
|
}): Promise<{
|
|
325
335
|
success: true;
|
|
@@ -648,7 +658,7 @@ declare function useWallets(): {
|
|
|
648
658
|
label?: string;
|
|
649
659
|
isPrimary?: boolean;
|
|
650
660
|
}) => Promise<void>;
|
|
651
|
-
linkWallet: (walletAddress: string, signMessage: (message: Uint8Array) => Promise<Uint8Array
|
|
661
|
+
linkWallet: (walletAddress: string, signMessage: ((message: Uint8Array) => Promise<Uint8Array>) | undefined, chain?: string, signTransaction?: (txBase64: string) => Promise<string>) => Promise<void>;
|
|
652
662
|
};
|
|
653
663
|
|
|
654
664
|
declare function useSessions(): {
|