@use-glyph/sdk-react 2.0.0 → 2.0.1-rc.5
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/EIP1193Strategy.js.map +1 -1
- package/dist/PrivyStrategy.js +46 -49
- package/dist/PrivyStrategy.js.map +1 -1
- package/dist/assets/sdk-react.css +1 -1
- package/dist/glyph-widget.umd.js +30 -30
- package/dist/glyph-widget.umd.js.map +1 -1
- package/dist/index.js +3316 -3324
- package/dist/index.js.map +1 -1
- package/dist/types/hooks/useGlyph.d.ts +6 -0
- package/dist/types/hooks/useTokenBalance.d.ts +2 -3
- package/dist/types/lib/constants.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SignTypedDataParams, UnsignedTransactionRequest } from '@privy-io/react-auth';
|
|
2
|
+
import { WalletClient } from 'viem';
|
|
2
3
|
import { GlyphWidgetBalances, GlyphWidgetUser } from '../types';
|
|
3
4
|
export interface GlyphInterface {
|
|
4
5
|
/**
|
|
@@ -55,5 +56,10 @@ export interface GlyphHook extends GlyphInterface {
|
|
|
55
56
|
refreshBalances: (force?: boolean, cbs?: Record<string, (diffAmount: number) => void>) => Promise<void>;
|
|
56
57
|
setFetchForAllNetworks: (value: boolean) => void;
|
|
57
58
|
fetchForAllNetworks: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* A viem WalletClient instance for interacting with the wallet.
|
|
61
|
+
* Returns null if the context is not ready or the user is not authenticated.
|
|
62
|
+
*/
|
|
63
|
+
walletClient: WalletClient | null;
|
|
58
64
|
}
|
|
59
65
|
export declare const useGlyph: () => GlyphHook;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
balance: bigint | undefined;
|
|
1
|
+
export declare const useTokenBalance: (tokenAddress: string | undefined, chainId: number | undefined) => {
|
|
2
|
+
balance: string | undefined;
|
|
4
3
|
isLoading: boolean;
|
|
5
4
|
error: string | undefined;
|
|
6
5
|
};
|
|
@@ -5,7 +5,7 @@ export declare const WIDGET_API_BASE_URL: string;
|
|
|
5
5
|
export declare const GLYPH_ICON_URL = "https://i.ibb.co/TxcwPQyr/Group-12489-1.png";
|
|
6
6
|
export declare const USER_REFRESH_INTERVAL_MS: number;
|
|
7
7
|
export declare const TOKEN_REFRESH_INTERVAL_MS: number;
|
|
8
|
-
export declare const RELAY_APP_FEE_RECIPIENT = "
|
|
8
|
+
export declare const RELAY_APP_FEE_RECIPIENT = "0x3c7fb61850cCD1490B820D317f565358D6f1Fb87";
|
|
9
9
|
export declare const RELAY_APP_FEE_BPS = 80;
|
|
10
10
|
export declare const MAX_DECIMALS_FOR_CRYPTO = 6;
|
|
11
11
|
export declare enum INTERNAL_GRADIENT_TYPE {
|