@funkit/connect-rn 3.8.0 → 3.9.0

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/chunk-FTD4HETU.js +94 -0
  3. package/dist/chunk-FTD4HETU.js.map +7 -0
  4. package/dist/{chunk-UN5NP4RP.js → chunk-PHUM52HD.js} +99 -1
  5. package/dist/chunk-PHUM52HD.js.map +7 -0
  6. package/dist/clients/lighter.js +1 -1
  7. package/dist/clients/nado/index.d.ts +4 -0
  8. package/dist/clients/nado/index.d.ts.map +1 -0
  9. package/dist/clients/nado/nadoWithdrawalConfig.d.ts +38 -0
  10. package/dist/clients/nado/nadoWithdrawalConfig.d.ts.map +1 -0
  11. package/dist/clients/nado/useNadoWithdrawal.d.ts +14 -0
  12. package/dist/clients/nado/useNadoWithdrawal.d.ts.map +1 -0
  13. package/dist/clients/nado/withdrawalErrors.d.ts +9 -0
  14. package/dist/clients/nado/withdrawalErrors.d.ts.map +1 -0
  15. package/dist/clients/nado/withdrawalSubmit.d.ts +37 -0
  16. package/dist/clients/nado/withdrawalSubmit.d.ts.map +1 -0
  17. package/dist/clients/nado.d.ts +1 -0
  18. package/dist/clients/nado.js +417 -0
  19. package/dist/clients/nado.js.map +7 -0
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +415 -360
  23. package/dist/index.js.map +4 -4
  24. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  25. package/dist/src/flow/withdrawalFlowConfig.d.ts +25 -3
  26. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  27. package/dist/src/screens/WithdrawCompleteScreen.d.ts +16 -7
  28. package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
  29. package/dist/src/screens/WithdrawCryptoComplete.d.ts +9 -4
  30. package/dist/src/screens/WithdrawCryptoComplete.d.ts.map +1 -1
  31. package/dist/src/screens/WithdrawCryptoSteps.d.ts +2 -1
  32. package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
  33. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  34. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts +16 -2
  35. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
  36. package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts +2 -1
  37. package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -1
  38. package/dist/src/withdrawal/useDepositAddressWithdrawalStatus.d.ts +21 -0
  39. package/dist/src/withdrawal/useDepositAddressWithdrawalStatus.d.ts.map +1 -0
  40. package/dist/src/withdrawal/useWithdrawalStatus.d.ts.map +1 -1
  41. package/package.json +3 -3
  42. package/dist/chunk-UN5NP4RP.js.map +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAiB7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,EACH,kBAAkB,GACnB,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,uEAAuE;IACvE,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,GAAG,SAAS,CA8OZ"}
1
+ {"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAkB7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,EACH,kBAAkB,GACnB,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,uEAAuE;IACvE,kBAAkB,EAAE,mBAAmB,CAAA;CACxC,GAAG,SAAS,CA8OZ"}
@@ -1,4 +1,4 @@
1
- import type { SwappedSellOrderData, WithdrawalClient } from '@funkit/connect-core';
1
+ import type { CheckoutQuoteResponse, SwappedSellOrderData, WithdrawalClient } from '@funkit/connect-core';
2
2
  import type { ReactNode } from 'react';
3
3
  import type { Address } from 'viem';
4
4
  /**
@@ -42,6 +42,17 @@ export interface WithdrawalSourceTokenOption {
42
42
  export interface WithdrawalSourceTokenParams {
43
43
  sourceToken: WithdrawalToken;
44
44
  }
45
+ /** The withdrawal the user committed to, handed to a venue that submits it itself. */
46
+ export interface CustomWithdrawalSubmission {
47
+ /** The quote the user approved, or `null` on a rail that never quoted. */
48
+ quote: CheckoutQuoteResponse | null;
49
+ recipientAddress: Address;
50
+ /** Which balance to debit — the user's pick when `sourceTokens` offers several. */
51
+ sourceToken: WithdrawalToken;
52
+ destinationToken: WithdrawalToken;
53
+ /** Source-token units, already net of `quoteInputFeeTokens`. */
54
+ amountTokenUnits: string;
55
+ }
45
56
  /**
46
57
  * Data the managed withdrawal flow renders and executes against. Mirrors the
47
58
  * web `FunkitWithdrawalConfig` family where the concepts overlap.
@@ -99,6 +110,14 @@ export interface WithdrawalFlowConfig {
99
110
  * interface over your wallet stack (viem, wagmi, WalletConnect, …).
100
111
  */
101
112
  withdrawalWallet: WithdrawalClient;
113
+ /**
114
+ * Replaces relay execution: the venue moves the funds itself and resolves with
115
+ * the address it sent them to. The quote is priced for display and never
116
+ * executed. A throw rejects the withdrawal, and its message reaches the user.
117
+ */
118
+ submitWithdrawal?: (params: CustomWithdrawalSubmission) => Promise<{
119
+ depositAddress: Address;
120
+ }>;
102
121
  /** Sheet title; defaults to 'Withdraw'. */
103
122
  title?: string;
104
123
  /**
@@ -148,11 +167,14 @@ export interface WithdrawalFlowCallbacks {
148
167
  */
149
168
  onWithdrawalOrder?: (order: SwappedSellOrderData) => void;
150
169
  /**
151
- * The on-chain leg landed. The first argument identifies the withdrawal: the
170
+ * The withdrawal was submitted. The first argument identifies it: the
152
171
  * provider order id on the offramp, and an SDK-minted submission id on the
153
172
  * crypto rail (which has no provider).
173
+ *
174
+ * The second is what to follow it by — the transaction hash, or the venue's
175
+ * deposit address when {@link WithdrawalFlowConfig.submitWithdrawal} ran.
154
176
  */
155
- onWithdrawalSubmitted?: (orderId: string, txHash: string) => void;
177
+ onWithdrawalSubmitted?: (orderId: string, depositAddressOrHash: string) => void;
156
178
  /**
157
179
  * The withdrawal completed: Swapped confirmed the fiat payout, or the crypto
158
180
  * transfer reached a terminal on-chain state.
@@ -1 +1 @@
1
- {"version":3,"file":"withdrawalFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/withdrawalFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,C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AAC,EAAE,MAAM,CAAA;IAC1B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;CAC7D;AAED,yDAAyD;AACzD,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACzD;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,CACtB,OAAO,EAAE,MAAM,EACf,oBAAoB,EAAE,MAAM,KACzB,IAAI,CAAA;IACT;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACzD"}
@@ -1,10 +1,19 @@
1
+ /**
2
+ * Where the withdrawal has got to. One value rather than a set of booleans:
3
+ * `settling` and `requested` differ only in whether anything of ours is still
4
+ * being watched, and as flags they could both be set at once.
5
+ */
6
+ export type WithdrawalStatus =
7
+ /** Ours is on-chain and still settling. */
8
+ 'settling'
9
+ /** A venue accepted it; there is nothing of ours left to watch. */
10
+ | 'requested' | 'complete'
11
+ /** The relay reported a terminal failure — not merely a slow settle. */
12
+ | 'failed'
13
+ /** Failed, and the funds are on their way back to the sender. */
14
+ | 'refunded';
1
15
  export interface WithdrawCompleteScreenProps {
2
- /** Still settling on-chain; the transfer itself is already submitted. */
3
- isPending: boolean;
4
- /** The relay reported a terminal failure — not merely a slow settle. */
5
- isFailed?: boolean;
6
- /** Failed, and the funds are on their way back to the sender. */
7
- isRefunded?: boolean;
16
+ status: WithdrawalStatus;
8
17
  /** What left the account, for the copy a failure needs. */
9
18
  amountLabel: string;
10
19
  /**
@@ -24,5 +33,5 @@ export interface WithdrawCompleteScreenProps {
24
33
  * is written best-effort and the funds have already moved — but an explicit
25
34
  * terminal failure is shown as one.
26
35
  */
27
- export declare function WithdrawCompleteScreen({ isPending, isFailed, isRefunded, amountLabel, usdLabel, tokenLabel, onDone, }: WithdrawCompleteScreenProps): import("react").JSX.Element;
36
+ export declare function WithdrawCompleteScreen({ status, amountLabel, usdLabel, tokenLabel, onDone, }: WithdrawCompleteScreenProps): import("react").JSX.Element;
28
37
  //# sourceMappingURL=WithdrawCompleteScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawCompleteScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCompleteScreen.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,2BAA2B;IAC1C,yEAAyE;IACzE,SAAS,EAAE,OAAO,CAAA;IAClB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,QAAgB,EAChB,UAAkB,EAClB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,MAAM,GACP,EAAE,2BAA2B,+BAiE7B"}
1
+ {"version":3,"file":"WithdrawCompleteScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCompleteScreen.tsx"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,MAAM,MAAM,gBAAgB;AAC1B,2CAA2C;AACzC,UAAU;AACZ,mEAAmE;GACjE,WAAW,GACX,UAAU;AACZ,wEAAwE;GACtE,QAAQ;AACV,iEAAiE;GAC/D,UAAU,CAAA;AAEd,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,gBAAgB,CAAA;IACxB,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,WAAW,EACX,QAAQ,EACR,UAAU,EACV,MAAM,GACP,EAAE,2BAA2B,+BAkE7B"}
@@ -1,18 +1,23 @@
1
1
  import type { WithdrawalFlowCallbacks } from '../flow/withdrawalFlowConfig';
2
+ import type { DepositAddressOrHash } from '../withdrawal/useCryptoWithdrawalExecution';
2
3
  /**
3
4
  * Follows a submitted crypto withdrawal to a terminal state. Split from the
4
5
  * screen so the polling query unmounts with it, and so the host is told exactly
5
6
  * once, when the chain settles rather than when we submitted.
6
7
  *
8
+ * Both trackers are called on every render and the unused one idles on
9
+ * `undefined` — a hook cannot be called conditionally, and the rail is fixed for
10
+ * the life of this screen anyway.
11
+ *
7
12
  * The callbacks are fired from an effect, where a throw would unmount the tree —
8
13
  * they arrive guarded (`guardHostCallbacks`), which is what makes that safe.
9
14
  *
10
15
  * Closing the flow ends the follow with it — the SDK runs no work behind a shut
11
- * sheet. The host still holds the hash `onWithdrawalSubmitted` gave it at submit
12
- * and can settle the transfer itself; the log below is how often that happens.
16
+ * sheet. The host still holds what `onWithdrawalSubmitted` gave it at submit and
17
+ * can settle the transfer itself; the log below is how often that happens.
13
18
  */
14
- export declare function WithdrawCryptoComplete({ txHash, amountLabel, usdLabel, tokenLabel, callbacks, onDone, }: {
15
- txHash: string;
19
+ export declare function WithdrawCryptoComplete({ depositAddressOrHash, amountLabel, usdLabel, tokenLabel, callbacks, onDone, }: {
20
+ depositAddressOrHash: DepositAddressOrHash;
16
21
  amountLabel: string;
17
22
  /** What arrived, frozen at submission. */
18
23
  usdLabel: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawCryptoComplete.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoComplete.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAK3E;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,uBAAuB,CAAA;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BA8CA"}
1
+ {"version":3,"file":"WithdrawCryptoComplete.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoComplete.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAE3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AAQtF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,oBAAoB,EACpB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,MAAM,GACP,EAAE;IACD,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,uBAAuB,CAAA;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BA6EA"}
@@ -1,6 +1,7 @@
1
1
  import type { FlowNav, FlowScreen } from '../flow/FunkitFlowProvider';
2
2
  import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from '../flow/withdrawalFlowConfig';
3
3
  import type { SafeClipboardReader } from '../transfer/clipboard';
4
+ import type { DepositAddressOrHash } from '../withdrawal/useCryptoWithdrawalExecution';
4
5
  /**
5
6
  * The crypto rail's screens, and the one withdrawal they are all building.
6
7
  *
@@ -30,7 +31,7 @@ export declare function WithdrawCryptoSteps({ config, callbacks, current, nav, q
30
31
  /** Fills the recipient field from the clipboard. Guarded upstream. */
31
32
  pasteFromClipboard: SafeClipboardReader;
32
33
  onSubmitted: (result: {
33
- txHash: string;
34
+ depositAddressOrHash: DepositAddressOrHash;
34
35
  amountLabel: string;
35
36
  /** What arrived, frozen here: the quote refreshes, the outcome doesn't. */
36
37
  usdLabel: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawCryptoSteps.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoSteps.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAKrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAiBhE;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,EACH,mBAAmB,EACnB,oBAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,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A;IACzB,sEAAsE;IACtE,kBAAkB,EAAE,mBAAmB,CAAA;IACvC,WAAW,EAAE,CAAC,MAAM,EAAE;QACpB,oBAAoB,EAAE,oBAAoB,CAAA;QAC1C,WAAW,EAAE,MAAM,CAAA;QACnB,2EAA2E;QAC3E,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAC/B,KAAK,IAAI,CAAA;CACX,+BAoNA"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwappedWebView.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWebView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAGjE,OAAO,EAA2B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAgBtE,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,mBAAmB,+BAmJ5E"}
1
+ {"version":3,"file":"SwappedWebView.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedWebView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAGjE,OAAO,EAA2B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAiBtE,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,mBAAmB,+BAoK5E"}
@@ -1,5 +1,18 @@
1
1
  import { type CheckoutQuoteResponse, type WalletExecutionErrorCode } from '@funkit/connect-core';
2
+ import type { Address } from 'viem';
2
3
  import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig, WithdrawalToken } from '../flow/withdrawalFlowConfig';
4
+ /**
5
+ * What a submitted withdrawal can be followed by: a venue that submits
6
+ * off-chain leaves an address, not a transaction of ours. A union rather than
7
+ * two optionals, so the completion screen cannot read the wrong one.
8
+ */
9
+ export type DepositAddressOrHash = {
10
+ kind: 'transaction';
11
+ txHash: string;
12
+ } | {
13
+ kind: 'depositAddress';
14
+ depositAddress: Address;
15
+ };
3
16
  export type CryptoWithdrawalSubmission = {
4
17
  status: 'idle';
5
18
  } | {
@@ -7,7 +20,7 @@ export type CryptoWithdrawalSubmission = {
7
20
  stepMessage?: string;
8
21
  } | {
9
22
  status: 'submitted';
10
- txHash: string;
23
+ depositAddressOrHash: DepositAddressOrHash;
11
24
  submissionId: string;
12
25
  /** The amount that executed, not whatever the field says by now. */
13
26
  amount: string;
@@ -28,7 +41,8 @@ export interface UseCryptoWithdrawalExecutionParams {
28
41
  callbacks: WithdrawalFlowCallbacks;
29
42
  }
30
43
  /**
31
- * Executes the quote the user approved.
44
+ * Runs the withdrawal the user approved, down whichever rail the config names:
45
+ * the relay quote, or `config.submitWithdrawal` when the venue moves the funds.
32
46
  *
33
47
  * Both guards are read synchronously inside the async submit — before the first
34
48
  * await — so neither may wait for a re-render: a ref for a double-tap on this
@@ -1 +1 @@
1
- {"version":3,"file":"useCryptoWithdrawalExecution.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalExecution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,wBAAwB,EAM9B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EAChB,MAAM,8BAA8B,CAAA;AA4CrC,MAAM,MAAM,0BAA0B,GAClC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C;IACE,MAAM,EAAE,WAAW,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,MAAM,EAAE,MAAM,CAAA;CACf,GACD;IACE,MAAM,EAAE,QAAQ,CAAA;IAChB,IAAI,EAAE,wBAAwB,CAAA;IAC9B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAEL,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,eAAe,CAAA;IACjC,SAAS,EAAE,uBAAuB,CAAA;CACnC;AAED;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,SAAS,GACV,EAAE,kCAAkC;;mDAY9B;QACD,yEAAyE;QACzE,KAAK,EAAE,qBAAqB,CAAA;QAC5B,gBAAgB,EAAE,MAAM,CAAA;QACxB,MAAM,EAAE,MAAM,CAAA;KACf;;EAwFJ"}
1
+ {"version":3,"file":"useCryptoWithdrawalExecution.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalExecution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,wBAAwB,EAM9B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EAChB,MAAM,8BAA8B,CAAA;AA4CrC;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,cAAc,EAAE,OAAO,CAAA;CAAE,CAAA;AAUvD,MAAM,MAAM,0BAA0B,GAClC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9C;IACE,MAAM,EAAE,WAAW,CAAA;IACnB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,YAAY,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,MAAM,EAAE,MAAM,CAAA;CACf,GACD;IACE,MAAM,EAAE,QAAQ,CAAA;IAChB,IAAI,EAAE,wBAAwB,CAAA;IAC9B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAEL,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,eAAe,CAAA;IACjC,SAAS,EAAE,uBAAuB,CAAA;CACnC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,SAAS,GACV,EAAE,kCAAkC;;mDAY9B;QACD,yEAAyE;QACzE,KAAK,EAAE,qBAAqB,CAAA;QAC5B,gBAAgB,EAAE,MAAM,CAAA;QACxB,MAAM,EAAE,MAAM,CAAA;KACf;;EAuHJ"}
@@ -1,4 +1,5 @@
1
1
  import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from '../flow/withdrawalFlowConfig';
2
+ import { type DepositAddressOrHash } from './useCryptoWithdrawalExecution';
2
3
  import type { CryptoWithdrawalForm } from './useCryptoWithdrawalForm';
3
4
  /**
4
5
  * Signing the withdrawal {@link CryptoWithdrawalForm} describes: the press, the
@@ -21,7 +22,7 @@ export declare function useCryptoWithdrawalSubmit({ config, callbacks, form, rec
21
22
  form: CryptoWithdrawalForm;
22
23
  receiveLabels: ReceiveLabels;
23
24
  onSubmitted: (result: {
24
- txHash: string;
25
+ depositAddressOrHash: DepositAddressOrHash;
25
26
  amountLabel: string;
26
27
  } & ReceiveLabels) => void;
27
28
  }): {
@@ -1 +1 @@
1
- {"version":3,"file":"useCryptoWithdrawalSubmit.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalSubmit.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAKrC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE;;;;;;;;GAQG;AACH,sEAAsE;AACtE,UAAU,aAAa;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B;AAED,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,SAAS,EACT,IAAI,EACJ,aAAa,EACb,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,6DAA6D;IAC7D,IAAI,EAAE,oBAAoB,CAAA;IAC1B,aAAa,EAAE,aAAa,CAAA;IAC5B,WAAW,EAAE,CACX,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,aAAa,KAC5D,IAAI,CAAA;CACV;;IA4CG,oFAAoF;;IAEpF,2EAA2E;;IAK3E,8EAA8E;;EAqBjF"}
1
+ {"version":3,"file":"useCryptoWithdrawalSubmit.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useCryptoWithdrawalSubmit.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAIrC,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE;;;;;;;;GAQG;AACH,sEAAsE;AACtE,UAAU,aAAa;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B;AAED,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,SAAS,EACT,IAAI,EACJ,aAAa,EACb,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,6DAA6D;IAC7D,IAAI,EAAE,oBAAoB,CAAA;IAC1B,aAAa,EAAE,aAAa,CAAA;IAC5B,WAAW,EAAE,CACX,MAAM,EAAE;QACN,oBAAoB,EAAE,oBAAoB,CAAA;QAC1C,WAAW,EAAE,MAAM,CAAA;KACpB,GAAG,aAAa,KACd,IAAI,CAAA;CACV;;IA4CG,oFAAoF;;IAEpF,2EAA2E;;IAK3E,8EAA8E;;EAqBjF"}
@@ -0,0 +1,21 @@
1
+ import type { Address } from 'viem';
2
+ import { type WithdrawalStatusResult } from './useWithdrawalStatus';
3
+ export interface DepositAddressWithdrawalStatus extends WithdrawalStatusResult {
4
+ /**
5
+ * Tx hash of the transaction that delivered the funds on the destination chain.
6
+ * Undefined cross-chain until the bridge fills and reports that transaction.
7
+ */
8
+ txHash: string | undefined;
9
+ }
10
+ /**
11
+ * Follows a withdrawal a venue submitted for us, which left a deposit address
12
+ * rather than a transaction of ours.
13
+ *
14
+ * Two stages: find the direct execution that records the arrival at that
15
+ * address, then follow it with {@link useWithdrawalStatus} exactly as the relay
16
+ * rail does — so both rails agree on what a status means. Stage one is shared
17
+ * with web, including the guard against an earlier withdrawal that reused the
18
+ * same address reading as an instant success.
19
+ */
20
+ export declare function useDepositAddressWithdrawalStatus(depositAddress: Address | undefined, pollIntervalMs?: number): DepositAddressWithdrawalStatus;
21
+ //# sourceMappingURL=useDepositAddressWithdrawalStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDepositAddressWithdrawalStatus.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useDepositAddressWithdrawalStatus.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAOnC,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,uBAAuB,CAAA;AAS9B,MAAM,WAAW,8BAA+B,SAAQ,sBAAsB;IAC5E;;;OAGG;IACH,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC/C,cAAc,EAAE,OAAO,GAAG,SAAS,EACnC,cAAc,GAAE,MAAiC,GAChD,8BAA8B,CAsChC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useWithdrawalStatus.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useWithdrawalStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EAErB,MAAM,kBAAkB,CAAA;AAYzB,eAAO,MAAM,2BAA2B,qBAAqB,CAAA;AAU7D;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,SAAS,EACT,eAAe,GAChB,EAAE;IACD,MAAM,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACxC,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;CACxB,GAAG,OAAO,CAKV;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACxC,wEAAwE;IACxE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,QAAQ,EAAE,OAAO,CAAA;IACjB,mEAAmE;IACnE,UAAU,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,sBAAsB,CAwDxB"}
1
+ {"version":3,"file":"useWithdrawalStatus.d.ts","sourceRoot":"","sources":["../../../src/withdrawal/useWithdrawalStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EAErB,MAAM,kBAAkB,CAAA;AAYzB,eAAO,MAAM,2BAA2B,qBAAqB,CAAA;AAU7D;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,SAAS,EACT,eAAe,GAChB,EAAE;IACD,MAAM,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACxC,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;CACxB,GAAG,OAAO,CAKV;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACxC,wEAAwE;IACxE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,QAAQ,EAAE,OAAO,CAAA;IACjB,mEAAmE;IACnE,UAAU,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,sBAAsB,CAiExB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect-rn",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "description": "React Native bindings for @funkit/connect. Re-exports the headless @funkit/connect-core logic; the RN platform halves (Restyle theme, WebView Swapped transport, Transfer/Swapped screens, logging) land in later releases.",
5
5
  "files": [
6
6
  "dist",
@@ -36,9 +36,9 @@
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
38
  "@shopify/restyle": "^2.4.5",
39
- "@funkit/api-base": "7.1.1",
39
+ "@funkit/api-base": "7.1.2",
40
40
  "@funkit/chains": "2.2.0",
41
- "@funkit/connect-core": "4.0.0"
41
+ "@funkit/connect-core": "4.1.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@gorhom/bottom-sheet": ">=5",