@use-glyph/sdk-react 2.0.1-rc.6 → 2.0.1
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/PrivyStrategy.js.map +1 -1
- package/dist/glyph-widget.umd.js +41 -41
- package/dist/glyph-widget.umd.js.map +1 -1
- package/dist/index.js +4985 -4982
- package/dist/index.js.map +1 -1
- package/dist/types/components/widget/internal/WalletSwapTopUpGas.d.ts +1 -3
- package/dist/types/hooks/useGlyph.d.ts +0 -6
- package/package.json +1 -1
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { paths } from '@relayprotocol/relay-sdk';
|
|
2
|
-
import { Hex } from 'viem';
|
|
3
2
|
export type TopUpDetails = NonNullable<paths["/quote"]["post"]["responses"]["200"]["content"]["application/json"]["details"]>["currencyGasTopup"] | undefined;
|
|
4
3
|
type WalletSwapTopUpGasProps = {
|
|
5
4
|
destinationChainId?: number;
|
|
6
|
-
walletAddress?: Hex;
|
|
7
5
|
topUpGas: boolean;
|
|
8
6
|
setTopUpGas: (value: boolean) => void;
|
|
9
7
|
topUpDetails: TopUpDetails;
|
|
10
8
|
quoteReady?: boolean;
|
|
11
9
|
};
|
|
12
|
-
export declare const WalletSwapTopUpGas: ({ destinationChainId,
|
|
10
|
+
export declare const WalletSwapTopUpGas: ({ destinationChainId, topUpGas, setTopUpGas, topUpDetails, quoteReady }: WalletSwapTopUpGasProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
11
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SignTypedDataParams, UnsignedTransactionRequest } from '@privy-io/react-auth';
|
|
2
|
-
import { WalletClient } from 'viem';
|
|
3
2
|
import { GlyphWidgetBalances, GlyphWidgetUser } from '../types';
|
|
4
3
|
export interface GlyphInterface {
|
|
5
4
|
/**
|
|
@@ -56,10 +55,5 @@ export interface GlyphHook extends GlyphInterface {
|
|
|
56
55
|
refreshBalances: (force?: boolean, cbs?: Record<string, (diffAmount: number) => void>) => Promise<void>;
|
|
57
56
|
setFetchForAllNetworks: (value: boolean) => void;
|
|
58
57
|
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;
|
|
64
58
|
}
|
|
65
59
|
export declare const useGlyph: () => GlyphHook;
|