@use-glyph/sdk-react 2.1.0-beta.1 → 2.1.8
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/glyph-widget.umd.js +37 -37
- package/dist/glyph-widget.umd.js.map +1 -1
- package/dist/index.js +3878 -3833
- package/dist/index.js.map +1 -1
- package/dist/types/hooks/useGlyphConfigureDynamicChains.d.ts +2 -1
- package/dist/types/lib/privy/GlyphPrivyProvider.d.ts +1 -1
- package/dist/types/types/GlyphWidgetTypes.d.ts +6 -0
- package/package.json +1 -1
- package/dist/types/lib/rpcPublic.d.ts +0 -4658
|
@@ -7,6 +7,7 @@ interface UseGlyphRequiredChainsResult {
|
|
|
7
7
|
* Hook to fetch the list of required Glyph chain IDs (viem chain ids) from an API endpoint. SHOULD ONLY BE USED ONCE AT THE TOP LEVEL.
|
|
8
8
|
*
|
|
9
9
|
* @param glyphUrl - (optional) The URL of the Glyph API endpoint if need to override
|
|
10
|
+
* @param rpcUrls - (optional) Per-chain RPC override (chainId -> URL or URL[]). Treated as static at mount.
|
|
10
11
|
*/
|
|
11
|
-
export declare const useGlyphConfigureDynamicChains: (glyphUrl?: string) => UseGlyphRequiredChainsResult;
|
|
12
|
+
export declare const useGlyphConfigureDynamicChains: (glyphUrl?: string, rpcUrls?: Record<number, string | string[]>) => UseGlyphRequiredChainsResult;
|
|
12
13
|
export {};
|
|
@@ -23,5 +23,5 @@ interface GlyphPrivyProviderProps extends Omit<PrivyProviderProps, "children" |
|
|
|
23
23
|
useStagingTenant?: boolean;
|
|
24
24
|
ssr?: boolean;
|
|
25
25
|
}
|
|
26
|
-
export declare const GlyphPrivyProvider: ({ queryClient, glyphUrl, useStagingTenant, ssr, onLogin, onLogout, ...props }: GlyphPrivyProviderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
+
export declare const GlyphPrivyProvider: ({ queryClient, glyphUrl, useStagingTenant, ssr, onLogin, onLogout, rpcUrls, ...props }: GlyphPrivyProviderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
27
27
|
export {};
|
|
@@ -34,6 +34,12 @@ export interface BaseGlyphProviderOptions extends PropsWithChildren {
|
|
|
34
34
|
useStagingTenant?: boolean;
|
|
35
35
|
onLogin?: () => void;
|
|
36
36
|
onLogout?: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* Optional per-chain RPC override. Maps a chainId to a single RPC URL or an array of URLs
|
|
39
|
+
* (used as a viem `fallback` transport). Chains without an entry keep the default RPC
|
|
40
|
+
* returned by the Glyph API. Treat this as static at mount — changing it after mount has no effect.
|
|
41
|
+
*/
|
|
42
|
+
rpcUrls?: Record<number, string | string[]>;
|
|
37
43
|
}
|
|
38
44
|
export interface EIP1193GlyphProviderOptionsWithSignature extends BaseGlyphProviderOptions {
|
|
39
45
|
strategy: StrategyType.EIP1193;
|