@use-glyph/sdk-react 2.1.10 → 2.1.12
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/README.md +7 -0
- package/dist/EIP1193Strategy.js +43 -47
- package/dist/EIP1193Strategy.js.map +1 -1
- package/dist/PrivyStrategy.js +67 -71
- package/dist/PrivyStrategy.js.map +1 -1
- package/dist/glyph-widget.es.js +18 -17
- package/dist/glyph-widget.umd.js +38 -38
- package/dist/glyph-widget.umd.js.map +1 -1
- package/dist/index.js +3026 -3067
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/logger.d.ts +8 -0
- package/dist/types/lib/rpcPublic.d.ts +5 -0
- package/dist/types/lib/utils.d.ts +1 -6
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { SignUpButton } from './components/SignUpButton';
|
|
|
5
5
|
import { GlyphProvider } from './context/GlyphProvider';
|
|
6
6
|
import { Wallet } from './components/widget/Wallet';
|
|
7
7
|
import { default as ChainSelector } from './components/shared/ChainSelector';
|
|
8
|
+
export { setGlyphDebugLogging } from './lib/logger';
|
|
8
9
|
export { useGlyphConfigureDynamicChains } from './hooks/useGlyphConfigureDynamicChains';
|
|
9
10
|
export { configureRelayChains } from './lib/relay';
|
|
10
11
|
export { useBalances } from './hooks/useBalances';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Enable SDK debug diagnostics explicitly. Warnings and errors remain enabled. */
|
|
2
|
+
export declare function setGlyphDebugLogging(enabled: boolean): void;
|
|
3
|
+
export declare const createLogger: (namespace: string) => {
|
|
4
|
+
debug: (...args: unknown[]) => void;
|
|
5
|
+
log: (...args: unknown[]) => void;
|
|
6
|
+
warn: (...args: unknown[]) => void;
|
|
7
|
+
error: (...args: unknown[]) => void;
|
|
8
|
+
};
|
|
@@ -7,12 +7,7 @@ export declare function copyToClipboard(text: string): boolean;
|
|
|
7
7
|
export declare const generateNonce: () => number;
|
|
8
8
|
export declare const ethereumAvatar: (address: string | undefined) => string;
|
|
9
9
|
export declare function isEthereumAddress(address?: string): boolean;
|
|
10
|
-
export
|
|
11
|
-
debug: (...args: any[]) => void;
|
|
12
|
-
log: (...args: any[]) => void;
|
|
13
|
-
warn: (...args: any[]) => void;
|
|
14
|
-
error: (...args: any[]) => void;
|
|
15
|
-
};
|
|
10
|
+
export { createLogger } from './logger';
|
|
16
11
|
export declare function tokenToBigIntWei(balance: number | string, decimals: number): bigint;
|
|
17
12
|
export declare const displayNumberPrecision: (value: number | null | undefined, precision?: number) => number;
|
|
18
13
|
export declare const formatTokenCount: (valueInWei: bigint | number | string, decimals: number, displayDecimals?: number) => string | number;
|