@bounded-sh/core 0.0.38 → 0.0.39
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/client/config.d.ts +26 -0
- package/package.json +1 -1
package/dist/client/config.d.ts
CHANGED
|
@@ -74,6 +74,32 @@ export interface ClientConfig {
|
|
|
74
74
|
cluster?: string;
|
|
75
75
|
theme?: 'light' | 'dark';
|
|
76
76
|
};
|
|
77
|
+
/** OPT-IN gate for Solana WALLET LOGIN (authMethod:'phantom' / 'wallet').
|
|
78
|
+
* OFF BY DEFAULT — the vast majority of apps never support wallets, so the
|
|
79
|
+
* "connect wallet" choice is only usable when the developer explicitly turns
|
|
80
|
+
* it on here. Set `walletLogin: true` to enable it with default provider
|
|
81
|
+
* discovery (Phantom-first, then any Wallet-Standard window.solana), or pass
|
|
82
|
+
* an object to also set getProvider / network / rpcUrl. Without this (or an
|
|
83
|
+
* injectedWalletConfig object), attempting wallet login throws a clear error
|
|
84
|
+
* and existing apps see ZERO behavior change. */
|
|
85
|
+
walletLogin?: boolean | {
|
|
86
|
+
getProvider?: () => any;
|
|
87
|
+
network?: string | null;
|
|
88
|
+
rpcUrl?: string | null;
|
|
89
|
+
};
|
|
90
|
+
/** Solana WALLET LOGIN provider configuration (advanced). Passing this object
|
|
91
|
+
* ALSO opts the app into wallet login (equivalent to walletLogin). The slim,
|
|
92
|
+
* dependency-free "connect wallet" path rides the injected Solana provider a
|
|
93
|
+
* browser wallet exposes (Phantom's window.phantom.solana, or any
|
|
94
|
+
* Wallet-Standard window.solana). The user's REAL wallet becomes
|
|
95
|
+
* @user.address; login = SIWS; the full signing surface (signMessage /
|
|
96
|
+
* signTransaction / signAndSubmitTransaction) is the wallet's own keypair.
|
|
97
|
+
* Pass getProvider to point at a specific wallet or bridge a custom provider. */
|
|
98
|
+
injectedWalletConfig?: {
|
|
99
|
+
getProvider?: () => any;
|
|
100
|
+
network?: string | null;
|
|
101
|
+
rpcUrl?: string | null;
|
|
102
|
+
};
|
|
77
103
|
}
|
|
78
104
|
export declare let clientConfig: ClientConfig;
|
|
79
105
|
type BoundedEndpoints = Pick<ClientConfig, 'wsApiUrl' | 'apiUrl' | 'authApiUrl' | 'humanAuthApiUrl' | 'functionsUrl'>;
|