@use-glyph/sdk-react 2.1.9 → 2.1.10
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 +35 -35
- package/dist/glyph-widget.umd.js.map +1 -1
- package/dist/index.js +1738 -1739
- package/dist/index.js.map +1 -1
- package/dist/types/hooks/useRelayQuote.d.ts +16 -15
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { Execute } from '@relayprotocol/relay-sdk';
|
|
1
2
|
import { RelayAPIToken } from '../context/GlyphSwapContext';
|
|
2
3
|
export declare const GAS_BUFFER = 115n;
|
|
3
4
|
export declare const checkIfGasIsEnough: (gasCurrencyAddress: string, sourceToken: RelayAPIToken | undefined, quoteGasAmountInWei: number | string | undefined | null, sourceGasBalanceInWei: number | string | undefined | null, sellAmount: string | undefined | null) => boolean | undefined;
|
|
4
5
|
export declare const useRelayQuote: (enabled?: boolean) => {
|
|
5
6
|
appFeesWaived: boolean;
|
|
6
7
|
operation: string;
|
|
7
|
-
data:
|
|
8
|
+
data: Execute;
|
|
8
9
|
error: Error;
|
|
9
10
|
isError: true;
|
|
10
11
|
isPending: false;
|
|
@@ -27,13 +28,13 @@ export declare const useRelayQuote: (enabled?: boolean) => {
|
|
|
27
28
|
isRefetching: boolean;
|
|
28
29
|
isStale: boolean;
|
|
29
30
|
isEnabled: boolean;
|
|
30
|
-
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<
|
|
31
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<Execute, Error>>;
|
|
31
32
|
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
32
|
-
promise: Promise<
|
|
33
|
+
promise: Promise<Execute>;
|
|
33
34
|
} | {
|
|
34
35
|
appFeesWaived: boolean;
|
|
35
36
|
operation: string;
|
|
36
|
-
data:
|
|
37
|
+
data: Execute;
|
|
37
38
|
error: null;
|
|
38
39
|
isError: false;
|
|
39
40
|
isPending: false;
|
|
@@ -56,9 +57,9 @@ export declare const useRelayQuote: (enabled?: boolean) => {
|
|
|
56
57
|
isRefetching: boolean;
|
|
57
58
|
isStale: boolean;
|
|
58
59
|
isEnabled: boolean;
|
|
59
|
-
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<
|
|
60
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<Execute, Error>>;
|
|
60
61
|
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
61
|
-
promise: Promise<
|
|
62
|
+
promise: Promise<Execute>;
|
|
62
63
|
} | {
|
|
63
64
|
appFeesWaived: boolean;
|
|
64
65
|
operation: string;
|
|
@@ -85,9 +86,9 @@ export declare const useRelayQuote: (enabled?: boolean) => {
|
|
|
85
86
|
isRefetching: boolean;
|
|
86
87
|
isStale: boolean;
|
|
87
88
|
isEnabled: boolean;
|
|
88
|
-
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<
|
|
89
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<Execute, Error>>;
|
|
89
90
|
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
90
|
-
promise: Promise<
|
|
91
|
+
promise: Promise<Execute>;
|
|
91
92
|
} | {
|
|
92
93
|
appFeesWaived: boolean;
|
|
93
94
|
operation: string;
|
|
@@ -114,9 +115,9 @@ export declare const useRelayQuote: (enabled?: boolean) => {
|
|
|
114
115
|
isRefetching: boolean;
|
|
115
116
|
isStale: boolean;
|
|
116
117
|
isEnabled: boolean;
|
|
117
|
-
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<
|
|
118
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<Execute, Error>>;
|
|
118
119
|
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
119
|
-
promise: Promise<
|
|
120
|
+
promise: Promise<Execute>;
|
|
120
121
|
} | {
|
|
121
122
|
appFeesWaived: boolean;
|
|
122
123
|
operation: string;
|
|
@@ -143,13 +144,13 @@ export declare const useRelayQuote: (enabled?: boolean) => {
|
|
|
143
144
|
isRefetching: boolean;
|
|
144
145
|
isStale: boolean;
|
|
145
146
|
isEnabled: boolean;
|
|
146
|
-
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<
|
|
147
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<Execute, Error>>;
|
|
147
148
|
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
148
|
-
promise: Promise<
|
|
149
|
+
promise: Promise<Execute>;
|
|
149
150
|
} | {
|
|
150
151
|
appFeesWaived: boolean;
|
|
151
152
|
operation: string;
|
|
152
|
-
data:
|
|
153
|
+
data: Execute;
|
|
153
154
|
isError: false;
|
|
154
155
|
error: null;
|
|
155
156
|
isPending: false;
|
|
@@ -172,7 +173,7 @@ export declare const useRelayQuote: (enabled?: boolean) => {
|
|
|
172
173
|
isRefetching: boolean;
|
|
173
174
|
isStale: boolean;
|
|
174
175
|
isEnabled: boolean;
|
|
175
|
-
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<
|
|
176
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<Execute, Error>>;
|
|
176
177
|
fetchStatus: import('@tanstack/react-query').FetchStatus;
|
|
177
|
-
promise: Promise<
|
|
178
|
+
promise: Promise<Execute>;
|
|
178
179
|
};
|