@forge-connect/react 1.0.2 → 1.0.4
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 +1609 -1609
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1579 -1579
- 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 */
|
|
@@ -515,6 +524,9 @@ interface WalletAdapterContext {
|
|
|
515
524
|
name: string;
|
|
516
525
|
icon: string;
|
|
517
526
|
connected: boolean;
|
|
527
|
+
publicKey?: {
|
|
528
|
+
toBase58(): string;
|
|
529
|
+
} | null;
|
|
518
530
|
};
|
|
519
531
|
readyState: string;
|
|
520
532
|
}>;
|
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 */
|
|
@@ -515,6 +524,9 @@ interface WalletAdapterContext {
|
|
|
515
524
|
name: string;
|
|
516
525
|
icon: string;
|
|
517
526
|
connected: boolean;
|
|
527
|
+
publicKey?: {
|
|
528
|
+
toBase58(): string;
|
|
529
|
+
} | null;
|
|
518
530
|
};
|
|
519
531
|
readyState: string;
|
|
520
532
|
}>;
|