@funkit/connect 6.0.3 → 6.0.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/CHANGELOG.md +21 -0
- package/dist/domains/relay.d.ts +7 -13
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +6 -0
- package/dist/index.js +213 -174
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +6 -1
- package/dist/utils/flags/config.d.ts +3 -26
- package/dist/wallets/walletConnectors/index.js +41 -41
- package/package.json +5 -5
- package/dist/wallets/walletConnectors/chunk-2GJQ4XZQ.js +0 -87
- package/dist/wallets/walletConnectors/chunk-3CICVJUN.js +0 -70
- package/dist/wallets/walletConnectors/chunk-5W7VDOCL.js +0 -99
- package/dist/wallets/walletConnectors/chunk-AFXHGWBH.js +0 -94
- package/dist/wallets/walletConnectors/chunk-CJGUM55H.js +0 -92
- package/dist/wallets/walletConnectors/chunk-CNPKISHN.js +0 -66
- package/dist/wallets/walletConnectors/chunk-EC6CHBSZ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-J3LI3FYZ.js +0 -93
- package/dist/wallets/walletConnectors/chunk-JCHN6A47.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KIDC67XJ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LNEC5RNX.js +0 -98
- package/dist/wallets/walletConnectors/chunk-Q3H3TRBS.js +0 -100
- package/dist/wallets/walletConnectors/chunk-QLVVUKYB.js +0 -92
- package/dist/wallets/walletConnectors/chunk-RKPCWHXL.js +0 -106
- package/dist/wallets/walletConnectors/chunk-UIASLGLV.js +0 -69
- package/dist/wallets/walletConnectors/chunk-UYGJO62F.js +0 -218
- package/dist/wallets/walletConnectors/chunk-VWCLFMWJ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-ZSI5N4VV.js +0 -103
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 6.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cfce8c9: feat(connect): add new withdrawal error message when an user wallet failure
|
|
8
|
+
- 9ab829d: feat(connect): add new default input amount logic
|
|
9
|
+
|
|
10
|
+
## 6.0.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 7a232ce: feat(connect): use POST /checkout/quoteV2 endpoint instead of fun-relay
|
|
15
|
+
- d9ae1f0: feat(connect): instant USDC and USDT quotes for L2s
|
|
16
|
+
- Updated dependencies [d904cfe]
|
|
17
|
+
- Updated dependencies [ce7f49f]
|
|
18
|
+
- Updated dependencies [609e99a]
|
|
19
|
+
- @funkit/api-base@1.9.13
|
|
20
|
+
- @funkit/fun-relay@1.0.1
|
|
21
|
+
- @funkit/core@2.3.37
|
|
22
|
+
- @funkit/wagmi-tools@3.0.59
|
|
23
|
+
|
|
3
24
|
## 6.0.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/domains/relay.d.ts
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
+
import type { FeeBreakdownV2 } from '@funkit/api-base';
|
|
1
2
|
import type { RelayQuote } from '@funkit/fun-relay';
|
|
2
3
|
export declare const KATANA_BRIDGE_ALERT_THRESHOLD_PERCENT = 0.5;
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
fillCostPercent: number;
|
|
7
|
-
chainName: string | undefined;
|
|
8
|
-
totalImpactUsd: number;
|
|
9
|
-
totalImpact: number;
|
|
10
|
-
swapImpact: number;
|
|
11
|
-
swapImpactUsd: number;
|
|
12
|
-
appFeePercent: number;
|
|
13
|
-
appFeeUsd: number;
|
|
14
|
-
maxSlippage: number;
|
|
15
|
-
minReceived: number;
|
|
4
|
+
export type RelayQuoteMetadata = {
|
|
5
|
+
relayQuote: RelayQuote['metadata']['relayQuote'];
|
|
6
|
+
feeBreakdown?: FeeBreakdownV2;
|
|
16
7
|
};
|
|
8
|
+
export declare function extractRelayFeeInfo({ relayQuote, feeBreakdown, }?: {
|
|
9
|
+
[x: string]: unknown;
|
|
10
|
+
}): FeeBreakdownV2;
|
|
@@ -13,6 +13,7 @@ interface CheckoutQuoteParams {
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function useWithdrawalQuote({ recipientAddress, sourceAmount, chainId, symbol, targetAsset, withdrawalClient, }: CheckoutQuoteParams): {
|
|
15
15
|
quoteEnabled: boolean;
|
|
16
|
+
isInstantQuoting: boolean;
|
|
16
17
|
data: {
|
|
17
18
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
18
19
|
checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
|
|
@@ -52,6 +53,7 @@ export declare function useWithdrawalQuote({ recipientAddress, sourceAmount, cha
|
|
|
52
53
|
} | null>;
|
|
53
54
|
} | {
|
|
54
55
|
quoteEnabled: boolean;
|
|
56
|
+
isInstantQuoting: boolean;
|
|
55
57
|
data: {
|
|
56
58
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
57
59
|
checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
|
|
@@ -91,6 +93,7 @@ export declare function useWithdrawalQuote({ recipientAddress, sourceAmount, cha
|
|
|
91
93
|
} | null>;
|
|
92
94
|
} | {
|
|
93
95
|
quoteEnabled: boolean;
|
|
96
|
+
isInstantQuoting: boolean;
|
|
94
97
|
data: undefined;
|
|
95
98
|
error: Error;
|
|
96
99
|
isError: true;
|
|
@@ -126,6 +129,7 @@ export declare function useWithdrawalQuote({ recipientAddress, sourceAmount, cha
|
|
|
126
129
|
} | null>;
|
|
127
130
|
} | {
|
|
128
131
|
quoteEnabled: boolean;
|
|
132
|
+
isInstantQuoting: boolean;
|
|
129
133
|
data: undefined;
|
|
130
134
|
error: null;
|
|
131
135
|
isError: false;
|
|
@@ -161,6 +165,7 @@ export declare function useWithdrawalQuote({ recipientAddress, sourceAmount, cha
|
|
|
161
165
|
} | null>;
|
|
162
166
|
} | {
|
|
163
167
|
quoteEnabled: boolean;
|
|
168
|
+
isInstantQuoting: boolean;
|
|
164
169
|
data: undefined;
|
|
165
170
|
error: null;
|
|
166
171
|
isError: false;
|
|
@@ -196,6 +201,7 @@ export declare function useWithdrawalQuote({ recipientAddress, sourceAmount, cha
|
|
|
196
201
|
} | null>;
|
|
197
202
|
} | {
|
|
198
203
|
quoteEnabled: boolean;
|
|
204
|
+
isInstantQuoting: boolean;
|
|
199
205
|
data: {
|
|
200
206
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
201
207
|
checkedAssetAmount: import("~/domains/quote").CheckedAssetAmount;
|