@funkit/connect 12.20.0 → 12.22.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 (160) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/clients/{chunk-N46CL4ZT.js → chunk-4NWQR25X.js} +1 -1
  3. package/dist/clients/{chunk-2BBOZQLZ.js → chunk-5JVG4MS2.js} +1 -1
  4. package/dist/clients/chunk-B67ESBGC.js +108 -0
  5. package/dist/clients/{chunk-R5VAX6YA.js → chunk-HGLDKRSQ.js} +81 -33
  6. package/dist/clients/{chunk-VFKEUHZT.js → chunk-R7I5OO6C.js} +1 -1
  7. package/dist/clients/{chunk-5NYKSTGH.js → chunk-S4SMCBQ4.js} +1 -1
  8. package/dist/clients/{chunk-Y7ONHWCW.js → chunk-T4Q43DNC.js} +2 -2
  9. package/dist/clients/{chunk-TLFE74BL.js → chunk-UBZOARBX.js} +3 -3
  10. package/dist/clients/{chunk-TFIJZTGQ.js → chunk-Y2O77SJO.js} +1 -1
  11. package/dist/clients/fanatics.d.ts +5 -7
  12. package/dist/clients/fanatics.js +4 -4
  13. package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
  14. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  15. package/dist/clients/internal/nado/withdrawalForm.js +4 -4
  16. package/dist/clients/internal/nado/withdrawalStatus.js +4 -4
  17. package/dist/clients/lighter.css +32 -11
  18. package/dist/clients/lighter.js +5 -5
  19. package/dist/clients/lighterRh.js +1 -1
  20. package/dist/clients/mallard.d.ts +34 -1
  21. package/dist/clients/mallard.js +148 -3
  22. package/dist/clients/nado.js +4 -4
  23. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  24. package/dist/clients/polymarket/index.js +3 -3
  25. package/dist/clients/polymarket/polymarket.d.ts +22 -22
  26. package/dist/clients/polymarket/polymarket.js +2 -2
  27. package/dist/components/Avatar/emojiAvatarForAddress.d.ts +35 -35
  28. package/dist/components/Box/Box.d.ts +63 -63
  29. package/dist/components/ConnectButton/ConnectButton.d.ts +16 -15
  30. package/dist/components/CustomSlot/CustomSlot.d.ts +8 -0
  31. package/dist/components/CustomSlot/CustomSlotBoundary.d.ts +12 -0
  32. package/dist/components/DestinationSelector/DestinationAssetBalanceLabel.d.ts +6 -0
  33. package/dist/components/DestinationSelector/DestinationSelector.css.d.ts +3 -0
  34. package/dist/components/DestinationSelector/DestinationSelector.d.ts +17 -0
  35. package/dist/components/DestinationSelector/DestinationSelectorSkeleton.d.ts +2 -0
  36. package/dist/components/Dialog/Dialog.d.ts +12 -4
  37. package/dist/components/Dialog/hooks.d.ts +3 -3
  38. package/dist/components/Dropdown/AccountSelectDropdown.d.ts +8 -1
  39. package/dist/components/Dropdown/BaseDropdown.d.ts +3 -1
  40. package/dist/components/Dropdown/BaseDropdownItem.d.ts +3 -1
  41. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -0
  42. package/dist/components/FreeUsdcBanner/FreeUsdcBanner.d.ts +2 -2
  43. package/dist/components/FunBottomBar/FunBottomBar.d.ts +3 -1
  44. package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
  45. package/dist/components/FunInput/FunInput.d.ts +1 -1
  46. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  47. package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
  48. package/dist/components/FunTransactionSummary/DestinationLineItems.d.ts +1 -1
  49. package/dist/components/HighPriceImpactAlert/HighPriceImpactAlert.d.ts +7 -0
  50. package/dist/components/Icons/GreenRoundCheckmark.d.ts +2 -1
  51. package/dist/components/Icons/StatusIcons.css.d.ts +2 -2
  52. package/dist/components/Icons/StatusIcons.d.ts +2 -2
  53. package/dist/components/LargeAmountInput/LargeAmountInput.d.ts +3 -1
  54. package/dist/components/ModalSelection/ModalSelection.d.ts +4 -4
  55. package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +5 -2
  56. package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +2 -0
  57. package/dist/consts/checkout.d.ts +8 -8
  58. package/dist/consts/polymarket.d.ts +2 -2
  59. package/dist/consts/quote.d.ts +25 -15
  60. package/dist/css/cssObjectFromTheme.d.ts +1 -1
  61. package/dist/css/sprinkles.css.d.ts +78 -78
  62. package/dist/domains/asset.d.ts +6 -0
  63. package/dist/domains/bridge.d.ts +1 -1
  64. package/dist/domains/clientMetadata.d.ts +5 -6
  65. package/dist/domains/convert/assets.d.ts +6 -0
  66. package/dist/domains/convert/balances.d.ts +4 -2
  67. package/dist/domains/convert/screen.d.ts +4 -0
  68. package/dist/domains/destinationAccount.d.ts +14 -0
  69. package/dist/domains/destinationAssetBalance.d.ts +39 -0
  70. package/dist/domains/fees.d.ts +13 -0
  71. package/dist/domains/inputAmountComponentContext.d.ts +11 -0
  72. package/dist/hooks/queries/useMeldLimits.d.ts +45 -45
  73. package/dist/hooks/queries/useWithdrawalQuote.d.ts +62 -62
  74. package/dist/hooks/track/useTrack.d.ts +1 -1
  75. package/dist/hooks/useCheckoutQuoteNotification.d.ts +3 -3
  76. package/dist/hooks/useConvertBalances.d.ts +4 -2
  77. package/dist/hooks/useConvertQuote.d.ts +1 -1
  78. package/dist/hooks/useDestinationAccountSelector.d.ts +18 -0
  79. package/dist/hooks/useDestinationAssetBalances.d.ts +5 -0
  80. package/dist/hooks/useDynamicRoutes.d.ts +1 -1
  81. package/dist/hooks/useFrogAccount.d.ts +77 -77
  82. package/dist/hooks/useHighPriceImpactPercent.d.ts +11 -0
  83. package/dist/hooks/useIsomorphicEffect.d.ts +2 -2
  84. package/dist/hooks/usePaymentMethodIcon.d.ts +1 -1
  85. package/dist/hooks/usePaymentSources.d.ts +1 -1
  86. package/dist/hooks/usePolymarketAccountBalances.d.ts +1 -1
  87. package/dist/index.css +32 -11
  88. package/dist/index.d.ts +4 -1
  89. package/dist/index.js +3652 -2674
  90. package/dist/modals/CheckoutModal/Convert/ConvertChainRail.d.ts +13 -0
  91. package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +6 -4
  92. package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +2 -1
  93. package/dist/modals/CheckoutModal/SourceChange/FlatList.d.ts +2 -8
  94. package/dist/modals/CheckoutModal/SourceChange/SourceList.d.ts +1 -2
  95. package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +5 -1
  96. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +13 -2
  97. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +6 -1
  98. package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +6 -1
  99. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -1
  100. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +1 -1
  101. package/dist/modals/WithdrawalModal/useMultiSourceWithdrawal.d.ts +1 -1
  102. package/dist/providers/FunkitCheckoutContext/types.d.ts +55 -11
  103. package/dist/providers/FunkitConfigContext.d.ts +24 -1
  104. package/dist/providers/FunkitStatsigProvider.d.ts +1 -1
  105. package/dist/providers/GeneralWalletProvider.d.ts +21 -21
  106. package/dist/providers/ModalSizeContext.d.ts +4 -4
  107. package/dist/shadow-css.js +1 -1
  108. package/dist/themes/baseTheme.d.ts +1 -1
  109. package/dist/themes/darkTheme.d.ts +6 -4
  110. package/dist/themes/lightTheme.d.ts +6 -4
  111. package/dist/utils/checkout.d.ts +2 -1
  112. package/dist/utils/consts.d.ts +1 -0
  113. package/dist/utils/customer.d.ts +96 -96
  114. package/dist/utils/datadogBrowserLogsTransport.d.ts +11 -5
  115. package/dist/utils/datadogPageExit.d.ts +5 -0
  116. package/dist/utils/funError.d.ts +26 -0
  117. package/dist/utils/funLogger.d.ts +2 -1
  118. package/dist/utils/shakeElement.d.ts +7 -0
  119. package/dist/wallets/computeWalletConnectMetaData.d.ts +1 -1
  120. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  121. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  122. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  123. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  124. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  125. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  126. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  127. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  128. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  129. package/dist/wallets/walletConnectors/index.js +57 -57
  130. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  131. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  132. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  133. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  134. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  135. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  136. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  137. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  138. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  139. package/package.json +10 -10
  140. package/dist/clients/chunk-GTPMJGCF.js +0 -52
  141. package/dist/modals/CheckoutModal/Convert/ConvertChainPills.d.ts +0 -14
  142. package/dist/modals/CheckoutModal/SourceChange/PayPal.d.ts +0 -2
  143. package/dist/wallets/walletConnectors/{chunk-CU5J53XR.js → chunk-53MYTA42.js} +3 -3
  144. package/dist/wallets/walletConnectors/{chunk-ZSSSLFQF.js → chunk-65ULY6OC.js} +3 -3
  145. package/dist/wallets/walletConnectors/{chunk-XODA5ESL.js → chunk-A5POD5SV.js} +3 -3
  146. package/dist/wallets/walletConnectors/{chunk-RXRYHMRI.js → chunk-ANODOMIN.js} +3 -3
  147. package/dist/wallets/walletConnectors/{chunk-IWOMSW64.js → chunk-ASTCNVJC.js} +3 -3
  148. package/dist/wallets/walletConnectors/{chunk-U52QO5HF.js → chunk-F45CUFRR.js} +3 -3
  149. package/dist/wallets/walletConnectors/{chunk-YRMBR6NA.js → chunk-FYPQ3HP4.js} +3 -3
  150. package/dist/wallets/walletConnectors/{chunk-BBDNB5TQ.js → chunk-IWPW26AL.js} +3 -3
  151. package/dist/wallets/walletConnectors/{chunk-4FHNLTR3.js → chunk-JJBLW4IU.js} +3 -3
  152. package/dist/wallets/walletConnectors/{chunk-NXWG6FG2.js → chunk-KE4CWI3A.js} +3 -3
  153. package/dist/wallets/walletConnectors/{chunk-BBB2J3US.js → chunk-MWB6LFSG.js} +3 -3
  154. package/dist/wallets/walletConnectors/{chunk-34B7OJNT.js → chunk-OVDCDVFX.js} +3 -3
  155. package/dist/wallets/walletConnectors/{chunk-SR5CZR3L.js → chunk-PPQ6L4K2.js} +3 -3
  156. package/dist/wallets/walletConnectors/{chunk-IA5432IR.js → chunk-RJF2YEZ5.js} +3 -3
  157. package/dist/wallets/walletConnectors/{chunk-RFCZYLNR.js → chunk-RQYEGJKL.js} +3 -3
  158. package/dist/wallets/walletConnectors/{chunk-TRZDAXCQ.js → chunk-TIHTQ3OB.js} +3 -3
  159. package/dist/wallets/walletConnectors/{chunk-ALGPGI6V.js → chunk-TM7UBV3Q.js} +3 -3
  160. package/dist/wallets/walletConnectors/{chunk-HOCKAU5H.js → chunk-USLZMUJ3.js} +3 -3
@@ -10,10 +10,10 @@ import {
10
10
  VAULT_DEPOSITOR_ABI,
11
11
  VAULT_DEPOSITOR_POLYGON,
12
12
  createPerpsGenerateActionParams
13
- } from "./chunk-5NYKSTGH.js";
13
+ } from "./chunk-S4SMCBQ4.js";
14
14
  import {
15
15
  logger
16
- } from "./chunk-GTPMJGCF.js";
16
+ } from "./chunk-B67ESBGC.js";
17
17
 
18
18
  // src/clients/polymarket/createPolymarketDepositConfig.ts
19
19
  import { encodeFunctionData, erc20Abi, getAddress as getAddress2, maxUint256 } from "viem";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  isExpectedNadoWithdrawalFailure,
7
7
  toNadoWithdrawalErrorMessage
8
- } from "./chunk-VFKEUHZT.js";
8
+ } from "./chunk-R7I5OO6C.js";
9
9
  import {
10
10
  toWithdrawalAmountBaseUnit
11
11
  } from "./chunk-LICTGZXW.js";
@@ -16,10 +16,10 @@ import {
16
16
  } from "./chunk-OODIKHYE.js";
17
17
  import {
18
18
  i18n_default
19
- } from "./chunk-R5VAX6YA.js";
19
+ } from "./chunk-HGLDKRSQ.js";
20
20
  import {
21
21
  logger
22
- } from "./chunk-GTPMJGCF.js";
22
+ } from "./chunk-B67ESBGC.js";
23
23
 
24
24
  // src/clients/internal/nado/withdrawalCallback.ts
25
25
  import {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  i18n_default
4
- } from "./chunk-R5VAX6YA.js";
4
+ } from "./chunk-HGLDKRSQ.js";
5
5
 
6
6
  // src/hooks/useFunkitTranslation.ts
7
7
  import { useTranslation } from "react-i18next";
@@ -3,13 +3,15 @@
3
3
  * Utilize uiCustomizations[screenName].customTopComponent to customize the top component of the screen.
4
4
  */
5
5
  import React from 'react';
6
+ import { BitcoinIcon } from '../components/Icons/BitcoinIcon';
7
+ import { CashIcon } from '../components/Icons/New/CashIcon';
6
8
  /**
7
9
  * Custom banner component for Fanatics source change screen
8
10
  * This component will be displayed at the top of the source change screen
9
11
  */
10
12
  export declare function FanaticsSourceScreenBanner({ isNewUser, apy }: {
11
- isNewUser?: boolean | undefined;
12
13
  apy?: string | undefined;
14
+ isNewUser?: boolean | undefined;
13
15
  }): React.JSX.Element;
14
16
  /**
15
17
  * Custom banner component for Fanatics select token screen
@@ -44,10 +46,6 @@ export declare const FanaticsIcons: {
44
46
  timeEstimate: typeof FanaticsTimeEstimateIcon;
45
47
  youSend: typeof FanaticsCircleArrowUpIcon;
46
48
  youReceive: typeof FanaticsCircleArrowDownIcon;
47
- fiatTabIcon: ({ size }: {
48
- size?: number;
49
- }) => React.JSX.Element;
50
- cryptoTabIcon: ({ size }: {
51
- size?: number;
52
- }) => React.JSX.Element;
49
+ fiatTabIcon: typeof CashIcon;
50
+ cryptoTabIcon: typeof BitcoinIcon;
53
51
  };
@@ -7,12 +7,12 @@ import {
7
7
  Box,
8
8
  Text,
9
9
  preloadRemoteImages
10
- } from "./chunk-N46CL4ZT.js";
10
+ } from "./chunk-4NWQR25X.js";
11
11
  import {
12
12
  useFunkitTranslation
13
- } from "./chunk-TFIJZTGQ.js";
14
- import "./chunk-R5VAX6YA.js";
15
- import "./chunk-GTPMJGCF.js";
13
+ } from "./chunk-Y2O77SJO.js";
14
+ import "./chunk-HGLDKRSQ.js";
15
+ import "./chunk-B67ESBGC.js";
16
16
 
17
17
  // src/clients/fanatics.tsx
18
18
  import React4, { useEffect, useMemo } from "react";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "../../chunk-TLFE74BL.js";
4
+ } from "../../chunk-UBZOARBX.js";
5
5
  import "../../chunk-TKEBGMVW.js";
6
- import "../../chunk-VFKEUHZT.js";
6
+ import "../../chunk-R7I5OO6C.js";
7
7
  import "../../chunk-LICTGZXW.js";
8
8
  import "../../chunk-OODIKHYE.js";
9
- import "../../chunk-R5VAX6YA.js";
10
- import "../../chunk-GTPMJGCF.js";
9
+ import "../../chunk-HGLDKRSQ.js";
10
+ import "../../chunk-B67ESBGC.js";
11
11
  export {
12
12
  createNadoWithdrawalCallback
13
13
  };
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  isExpectedNadoWithdrawalFailure,
4
4
  toNadoWithdrawalErrorMessage
5
- } from "../../chunk-VFKEUHZT.js";
6
- import "../../chunk-R5VAX6YA.js";
5
+ } from "../../chunk-R7I5OO6C.js";
6
+ import "../../chunk-HGLDKRSQ.js";
7
7
  export {
8
8
  isExpectedNadoWithdrawalFailure,
9
9
  toNadoWithdrawalErrorMessage
@@ -8,16 +8,16 @@ import {
8
8
  import "../../chunk-PZSKO3BJ.js";
9
9
  import {
10
10
  useFunkitConfig
11
- } from "../../chunk-2BBOZQLZ.js";
11
+ } from "../../chunk-5JVG4MS2.js";
12
12
  import {
13
13
  useFunkitTranslation
14
- } from "../../chunk-TFIJZTGQ.js";
14
+ } from "../../chunk-Y2O77SJO.js";
15
15
  import "../../chunk-LICTGZXW.js";
16
16
  import "../../chunk-2W2P3OS6.js";
17
- import "../../chunk-R5VAX6YA.js";
17
+ import "../../chunk-HGLDKRSQ.js";
18
18
  import {
19
19
  logger
20
- } from "../../chunk-GTPMJGCF.js";
20
+ } from "../../chunk-B67ESBGC.js";
21
21
 
22
22
  // src/clients/internal/nado/withdrawalForm.ts
23
23
  import {
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import {
3
3
  useFunkitConfig
4
- } from "../../chunk-2BBOZQLZ.js";
5
- import "../../chunk-TFIJZTGQ.js";
4
+ } from "../../chunk-5JVG4MS2.js";
5
+ import "../../chunk-Y2O77SJO.js";
6
6
  import {
7
7
  useAccount
8
8
  } from "../../chunk-2W2P3OS6.js";
9
- import "../../chunk-R5VAX6YA.js";
9
+ import "../../chunk-HGLDKRSQ.js";
10
10
  import {
11
11
  logger
12
- } from "../../chunk-GTPMJGCF.js";
12
+ } from "../../chunk-B67ESBGC.js";
13
13
 
14
14
  // src/clients/internal/nado/withdrawalStatus.ts
15
15
  import {
@@ -16830,9 +16830,10 @@
16830
16830
  animation: _1gjdf1i1 250ms cubic-bezier(0.29, -0.01, 0, 1) forwards;
16831
16831
  }
16832
16832
 
16833
- /* vanilla-extract-css-ns:src/components/Dropdown/BaseActiveDropdownItem.css.ts.vanilla.css?source=Ll8xZGV3aXF3MCB7CiAgdHJhbnNpdGlvbjogYWxsIDE1MG1zIGN1YmljLWJlemllcigwLjMsIDAsIDAuMDYsIDEpOwp9 */
16833
+ /* vanilla-extract-css-ns:src/components/Dropdown/BaseActiveDropdownItem.css.ts.vanilla.css?source=Ll8xZGV3aXF3MCB7CiAgdHJhbnNpdGlvbjogYWxsIDE1MG1zIGN1YmljLWJlemllcigwLjMsIDAsIDAuMDYsIDEpOwogIG1pbi13aWR0aDogMDsKfQ */
16834
16834
  [data-rk] ._1dewiqw0 {
16835
16835
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
16836
+ min-width: 0;
16836
16837
  }
16837
16838
 
16838
16839
  /* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdown.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9VVYWvbMBD9nl8hAoMEomC3XbcpFMq2f1HKOFvnRETWmdM5aTr634dlp03ahnZjH7ZPlji9d-_eneTrNe4qhhqj-pGHEC93MVM_R0plH9JHKWqgdLIzKlukvTCEWBHXRsUSPE6y-ZdP0y72MFIqz14C8xPAfEA9jK5fqshPqHiL7HUJ79D-MJrvc5_dWBDQvL7tF1FA8Gpceopox7eJvCEXBFnjBoNEowIFXBySnKdjtEGuPG31zihohbpcsWTyvgDWW2dl9RrWGL3FYu1EPx5OdNbFxsPuFcjFoCo6cRSMYvQgboOLAxFGrZy1GI6BxhRYEWMiKCkIBjFqPF4c8UERybeS-ISawVKPlQxLdsvVfr3CfnPxubnr9gWU6yVTG6xR3gUE1ksG6zDIREgVJEL1TG2AJ1rzWpfkiaOmBsN3psbSNnx9pPjWBaezvpkNMAaZLk525PkQJNS-Ju9V_jGroyrbwpW6wHuHPMnm5zOVzVQ2zy5nqh-se-2Cxbs0f8fmQSXI7_eur_Wv2ifU_Jfe9ZerAotaqLkaC7c4vj0ax8NrfwLaG_qEfurHCfBlCv5RLYcsZgVxcgPsQFsXofBo9yKmZtVduZTnsHcuOHHgO0_KliNxZ7Ro8J62aDv66xqtAzVpGCvkqBltW6LVNfVKA-k-hKHEaUrw1qvVDcLwZikFwdXQUWnbMvScqfLFs7C42oWlrtpQ9qeeOXMxOHO2b_IhuHLe65osGlURb4HtC_4ANZqnX87-7f6tJ_ifLScf_ii_AJ3ZdB5dBwAA */
@@ -16970,6 +16971,16 @@
16970
16971
  overflow: hidden;
16971
16972
  }
16972
16973
 
16974
+ /* vanilla-extract-css-ns:src/components/BottomLinks/BottomLinks.css.ts.vanilla.css?source=Ll8xN2VqY3FqMSB7CiAgdGV4dC1kZWNvcmF0aW9uOiBub25lOwogIHRyYW5zaXRpb246IGFsbCAxNTBtcyBjdWJpYy1iZXppZXIoMC4zLCAwLCAwLjA2LCAxKTsKfQouXzE3ZWpjcWoxOmhvdmVyIHsKICBjb2xvcjogdmFyKC0tcmstY29sb3JzLXByaW1hcnlUZXh0KTsKICBvcGFjaXR5OiAwLjg7Cn0 */
16975
+ [data-rk] ._17ejcqj1 {
16976
+ text-decoration: none;
16977
+ transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
16978
+ }
16979
+ [data-rk] ._17ejcqj1:hover {
16980
+ color: var(--rk-colors-primaryText);
16981
+ opacity: 0.8;
16982
+ }
16983
+
16973
16984
  /* vanilla-extract-css-ns:src/components/PaddedScrollableArea/paddedScrollableArea.css.ts.vanilla.css?source=Ll8xczAzMWEwMCB7CiAgZmxleDogMTsKICBtaW4taGVpZ2h0OiAwOwogIG92ZXJmbG93LXg6IGhpZGRlbjsKICBvdmVyZmxvdy15OiBhdXRvOwogIHBvc2l0aW9uOiByZWxhdGl2ZTsKICBzY3JvbGxiYXItZ3V0dGVyOiBzdGFibGU7CiAgc2Nyb2xsYmFyLXdpZHRoOiB1bnNldDsKfQouXzFzMDMxYTAwOjotd2Via2l0LXNjcm9sbGJhciB7CiAgZGlzcGxheTogdW5zZXQ7CiAgd2lkdGg6IDZweDsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKTsKfQouXzFzMDMxYTAwOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgYm9yZGVyLXJhZGl1czogdmFyKC0tcmstcmFkaWktbW9kYWwpOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJrLWNvbG9ycy10ZXJ0aWFyeVRleHQpOwp9Ci5fMXMwMzFhMDA6Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNrIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKTsKfQouXzFzMDMxYTAxOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7Cn0KLl8xczAzMWEwMTo6LXdlYmtpdC1zY3JvbGxiYXItdGh1bWI6aG92ZXIgewogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJrLWNvbG9ycy1zZWNvbmRhcnlUZXh0KTsKfQ */
16974
16985
  [data-rk] ._1s031a00 {
16975
16986
  flex: 1;
@@ -17537,6 +17548,26 @@
17537
17548
  opacity: var(--animation-opacity, 0);
17538
17549
  }
17539
17550
 
17551
+ /* vanilla-extract-css-ns:src/components/DestinationSelector/DestinationSelector.css.ts.vanilla.css?source=Ll8xcmVoeTQzMCB7CiAgZGlzcGxheTogZ3JpZDsKICBncmlkLXRlbXBsYXRlLWNvbHVtbnM6IHJlcGVhdChhdXRvLWZpdCwgbWlubWF4KG1pbigxMDAlLCAxNjBweCksIDFmcikpOwogIGdhcDogMTJweDsKICB3aWR0aDogMTAwJTsKfQouXzFyZWh5NDMxIHsKICBtaW4taGVpZ2h0OiA0NHB4OwogIHRvdWNoLWFjdGlvbjogbWFuaXB1bGF0aW9uOwp9Ci5fMXJlaHk0MzIgewogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICBhbGlnbi1pdGVtczogZmxleC1lbmQ7CiAgZ2FwOiA0cHg7CiAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICBmb250LXZhcmlhbnQtbnVtZXJpYzogdGFidWxhci1udW1zOwp9 */
17552
+ [data-rk] ._1rehy430 {
17553
+ display: grid;
17554
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
17555
+ gap: 12px;
17556
+ width: 100%;
17557
+ }
17558
+ [data-rk] ._1rehy431 {
17559
+ min-height: 44px;
17560
+ touch-action: manipulation;
17561
+ }
17562
+ [data-rk] ._1rehy432 {
17563
+ display: flex;
17564
+ flex-direction: column;
17565
+ align-items: flex-end;
17566
+ gap: 4px;
17567
+ white-space: nowrap;
17568
+ font-variant-numeric: tabular-nums;
17569
+ }
17570
+
17540
17571
  /* vanilla-extract-css-ns:src/components/Tabs/tabs.css.ts.vanilla.css?source=#H4sIAAAAAAAAA82SwU7EIBCG732KuZjsJtJA166RXvYxvNIW1okFGqDR1fTdTWmM3UZrD5r0AkOY_-fjz5ye5UU5oaUHeX7CLFB4TwDoTdwAghPGK-s0H8tGBPm4Y8f2dV_EBtuKCsOFAx3OfQLA6C9qOpeyUdonpzkNW0Pzk98KFLLwk29wsjU4S55_m87hn9NZDCcdGe6igzCoRUBrSN25WHBgOdW-uLoMqNGciepMNfZUXYkVKeUbSrejaZbfAk3ZsAwl21_LFTYN0baWHJR1L8LVM38jtOSfg1x8QeZbhWQTyONWIbMJ5P1WIQ8TyIcI2VqP47Oi9LbpghzUaLwMcYz7D6L02Hb8BAAA */
17541
17572
  @keyframes eghi2t0 {
17542
17573
  0% {
@@ -17607,16 +17638,6 @@
17607
17638
  inset: 0;
17608
17639
  }
17609
17640
 
17610
- /* vanilla-extract-css-ns:src/components/BottomLinks/BottomLinks.css.ts.vanilla.css?source=Ll8xN2VqY3FqMSB7CiAgdGV4dC1kZWNvcmF0aW9uOiBub25lOwogIHRyYW5zaXRpb246IGFsbCAxNTBtcyBjdWJpYy1iZXppZXIoMC4zLCAwLCAwLjA2LCAxKTsKfQouXzE3ZWpjcWoxOmhvdmVyIHsKICBjb2xvcjogdmFyKC0tcmstY29sb3JzLXByaW1hcnlUZXh0KTsKICBvcGFjaXR5OiAwLjg7Cn0 */
17611
- [data-rk] ._17ejcqj1 {
17612
- text-decoration: none;
17613
- transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
17614
- }
17615
- [data-rk] ._17ejcqj1:hover {
17616
- color: var(--rk-colors-primaryText);
17617
- opacity: 0.8;
17618
- }
17619
-
17620
17641
  /* vanilla-extract-css-ns:src/components/FunFeatureList/FunFeatureList.css.ts.vanilla.css?source=Ll8xMDQ1cXI3MSB7CiAgb3V0bGluZS1jb2xvcjogdmFyKC0tcmstY29sb3JzLWFjdGlvbkNvbG9yRGlzYWJsZWQpOwogIHRyYW5zaXRpb246IGFsbCAxNTBtcyBjdWJpYy1iZXppZXIoMC4zLCAwLCAwLjA2LCAxKTsKfQ */
17621
17642
  [data-rk] ._1045qr71 {
17622
17643
  outline-color: var(--rk-colors-actionColorDisabled);
@@ -6,21 +6,21 @@ import {
6
6
  } from "./chunk-PZSKO3BJ.js";
7
7
  import {
8
8
  useFunkitConfig
9
- } from "./chunk-2BBOZQLZ.js";
9
+ } from "./chunk-5JVG4MS2.js";
10
10
  import {
11
11
  AsyncImage,
12
12
  Box,
13
13
  sanitizeUrl
14
- } from "./chunk-N46CL4ZT.js";
14
+ } from "./chunk-4NWQR25X.js";
15
15
  import {
16
16
  useFunkitTranslation
17
- } from "./chunk-TFIJZTGQ.js";
17
+ } from "./chunk-Y2O77SJO.js";
18
18
  import "./chunk-OODIKHYE.js";
19
19
  import "./chunk-2W2P3OS6.js";
20
- import "./chunk-R5VAX6YA.js";
20
+ import "./chunk-HGLDKRSQ.js";
21
21
  import {
22
22
  logger
23
- } from "./chunk-GTPMJGCF.js";
23
+ } from "./chunk-B67ESBGC.js";
24
24
 
25
25
  // src/clients/lighter.tsx
26
26
  import {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  logger
4
- } from "./chunk-GTPMJGCF.js";
4
+ } from "./chunk-B67ESBGC.js";
5
5
 
6
6
  // src/clients/lighterRh.ts
7
7
  import {
@@ -14,8 +14,10 @@
14
14
  * create2-deployed via the Arachnid factory (not at the usual 0xC8A6… create3 address);
15
15
  * verified on-chain (owner = the Fun deployer).
16
16
  */
17
+ import { type ReactNode } from 'react';
17
18
  import { type Address } from 'viem';
18
- import type { FunkitCheckoutActionParams, TokenInfo, WalletWithdrawalConfig } from '../providers/FunkitCheckoutContext/types';
19
+ import type { GetDestinationAssetBalances } from '../domains/destinationAssetBalance';
20
+ import type { DynamicTargetAssetCandidate, FunkitCheckoutActionParams, FunkitCheckoutConfig, TokenInfo, WalletWithdrawalConfig } from '../providers/FunkitCheckoutContext/types';
19
21
  /** Mallard deposit contract to credit a Mallard (perps) account. */
20
22
  export declare const MALLARD_DEPOSIT_ADDRESS: `0x${string}`;
21
23
  /** VaultDepositooor on Zorro chain. */
@@ -89,3 +91,34 @@ export interface MallardWithdrawalConfig {
89
91
  * ```
90
92
  */
91
93
  export declare function useMallardWithdrawalConfig(config: MallardWithdrawalConfig | null): WalletWithdrawalConfig | null;
94
+ export interface CreateMallardDepositConfigParams {
95
+ /** Connected wallet credited by Perps deposits; may be absent before connection. */
96
+ address: Address | undefined;
97
+ /** First account's first asset is selected initially; icons default to the generic glyph. */
98
+ accounts: readonly {
99
+ id: 'perps' | 'spot';
100
+ label: string;
101
+ icon?: ReactNode;
102
+ /** Menu order within each group. Symbols must match configured Mallard routes. */
103
+ assets: readonly {
104
+ symbol: string;
105
+ address: Address;
106
+ iconSrc: string;
107
+ groupLabel?: string;
108
+ }[];
109
+ }[];
110
+ /**
111
+ * @experimental
112
+ * Reads the user's wallet balance for each asset in the menu. Omit to show
113
+ * the menu without balances.
114
+ */
115
+ getAssetBalances?: GetDestinationAssetBalances;
116
+ }
117
+ /**
118
+ * Builds routing and deposit actions for the integrator's complete catalogue.
119
+ * For translated modal titles, spread the result and override `modalTitle`
120
+ * with a string or a resolver keyed by `dynamicRoutingId`.
121
+ */
122
+ export declare function createMallardDepositConfig({ address, accounts, getAssetBalances, }: CreateMallardDepositConfigParams): FunkitCheckoutConfig & {
123
+ dynamicTargetAssetCandidates: DynamicTargetAssetCandidate[];
124
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useFunkitTranslation
4
- } from "./chunk-TFIJZTGQ.js";
4
+ } from "./chunk-Y2O77SJO.js";
5
5
  import {
6
6
  getAccount,
7
7
  sendTransaction,
@@ -14,14 +14,15 @@ import {
14
14
  useAccount,
15
15
  useConfig
16
16
  } from "./chunk-2W2P3OS6.js";
17
- import "./chunk-R5VAX6YA.js";
17
+ import "./chunk-HGLDKRSQ.js";
18
18
  import {
19
19
  logger
20
- } from "./chunk-GTPMJGCF.js";
20
+ } from "./chunk-B67ESBGC.js";
21
21
 
22
22
  // src/clients/mallard.tsx
23
23
  import { ROBINHOOD_MAINNET_CHAIN_ID } from "@funkit/chains";
24
24
  import { VAULT_DEPOSITOR_ABI } from "@funkit/fun-relay";
25
+ import { isAddressEquivalent } from "@funkit/utils";
25
26
  import { useMemo } from "react";
26
27
  import {
27
28
  encodeFunctionData,
@@ -30,6 +31,48 @@ import {
30
31
  maxUint256
31
32
  } from "viem";
32
33
 
34
+ // src/domains/destinationAccount.ts
35
+ import { groupBy } from "@funkit/utils";
36
+ function getDestinationAccountConfigIssue(config) {
37
+ const accounts = config.destinationAccountConfig?.accounts;
38
+ if (!accounts) {
39
+ return void 0;
40
+ }
41
+ if (!accounts.length) {
42
+ return "destinationAccountConfig.accounts must contain at least one account.";
43
+ }
44
+ const destinationAccountIds = /* @__PURE__ */ new Set();
45
+ for (const account of accounts) {
46
+ if (!account.id || destinationAccountIds.has(account.id)) {
47
+ return "destinationAccountConfig.accounts must have nonempty, unique account IDs.";
48
+ }
49
+ destinationAccountIds.add(account.id);
50
+ }
51
+ const candidates = config.dynamicTargetAssetCandidates ?? [];
52
+ const routingIds = /* @__PURE__ */ new Set();
53
+ const populatedAccounts = /* @__PURE__ */ new Set();
54
+ for (const candidate of candidates) {
55
+ if (!candidate.destinationAccountId || !destinationAccountIds.has(candidate.destinationAccountId)) {
56
+ return "Each destination candidate must supply a destinationAccountId matching destinationAccountConfig.accounts.";
57
+ }
58
+ if (!candidate.dynamicRoutingId || routingIds.has(candidate.dynamicRoutingId)) {
59
+ return "Destination candidates must supply nonempty, unique dynamicRoutingIds.";
60
+ }
61
+ routingIds.add(candidate.dynamicRoutingId);
62
+ populatedAccounts.add(candidate.destinationAccountId);
63
+ }
64
+ if (accounts.some((account) => !populatedAccounts.has(account.id))) {
65
+ return "Each destination account must have at least one eligible candidate.";
66
+ }
67
+ const withRecipient = candidates.filter(
68
+ (candidate) => candidate.customRecipient
69
+ ).length;
70
+ if (withRecipient > 0 && withRecipient < candidates.length) {
71
+ return "Destination candidates must either all supply a customRecipient or all omit it.";
72
+ }
73
+ return void 0;
74
+ }
75
+
33
76
  // src/wallets/createConnectedWithdrawalClient.ts
34
77
  function createConnectedWithdrawalClient(config, ownerAddress, sourceChainId) {
35
78
  const ensureOnChain = async (chainId) => {
@@ -195,6 +238,107 @@ function useMallardWithdrawalConfig(config) {
195
238
  };
196
239
  }, [config, address, wagmiConfig, sourceChainId, sourceTokenAddress, t]);
197
240
  }
241
+ var VAULT_DEPOSITOR_V2_ROBINHOOD = "0xa15cFd1a071aC0285f22CabFa735e7Ed1a92E096";
242
+ var MALLARD_STOCK_DEPOSIT_ADDRESS = "0x14b107cf534239c59571b066cb6497a321da897c";
243
+ function getMallardPerpsDepositActions(recipientAddress, tokenAddress) {
244
+ if (isAddressEquivalent({
245
+ firstAddress: tokenAddress,
246
+ secondAddress: MALLARD_USDG_ADDRESS
247
+ })) {
248
+ return createMallardDepositActions({ recipientAddress, tokenAddress });
249
+ }
250
+ return createMallardDepositActions({
251
+ recipientAddress,
252
+ tokenAddress,
253
+ vaultDepositorAddress: VAULT_DEPOSITOR_V2_ROBINHOOD,
254
+ depositAddress: MALLARD_STOCK_DEPOSIT_ADDRESS
255
+ });
256
+ }
257
+ function getMallardAssets({
258
+ address,
259
+ accounts
260
+ }) {
261
+ return accounts.flatMap((account) => {
262
+ if (account.id !== "perps" && account.id !== "spot") {
263
+ throw new Error("Mallard account IDs must be perps or spot.");
264
+ }
265
+ const candidates = account.assets.map((asset) => {
266
+ const isUsdg = isAddressEquivalent({
267
+ firstAddress: asset.address,
268
+ secondAddress: MALLARD_USDG_ADDRESS
269
+ });
270
+ if (account.id === "spot" && !isUsdg) {
271
+ throw new Error("Mallard Spot only supports USDG.");
272
+ }
273
+ const accountName = account.id === "perps" ? "Perps" : "Spot";
274
+ return {
275
+ tokenSymbol: `${asset.symbol} (${accountName})`,
276
+ destinationAccountId: account.id,
277
+ displayTokenSymbol: asset.symbol,
278
+ groupLabel: asset.groupLabel,
279
+ tokenChainId: ROBINHOOD_MAINNET_CHAIN_ID.toString(),
280
+ tokenAddress: asset.address,
281
+ iconSrc: asset.iconSrc,
282
+ dynamicRoutingId: `MALLARD_${asset.symbol.toUpperCase()}_${account.id.toUpperCase()}`,
283
+ // Explicit undefined clears any incumbent Perps action when switching to Spot.
284
+ generateActionsParams: account.id === "spot" ? void 0 : getMallardPerpsDepositActions(address, asset.address)
285
+ };
286
+ });
287
+ if (account.id === "perps" && account.assets.length && !account.assets.some(
288
+ (asset) => isAddressEquivalent({
289
+ firstAddress: asset.address,
290
+ secondAddress: MALLARD_USDG_ADDRESS
291
+ })
292
+ )) {
293
+ throw new Error("Mallard Perps must include USDG.");
294
+ }
295
+ return candidates;
296
+ });
297
+ }
298
+ function createMallardDepositConfig({
299
+ address,
300
+ accounts,
301
+ getAssetBalances
302
+ }) {
303
+ const candidates = getMallardAssets({ address, accounts });
304
+ const destinationAccountConfig = {
305
+ accounts: accounts.map(({ id, label, icon }) => ({ id, label, icon })),
306
+ getAssetBalances
307
+ };
308
+ const issue = getDestinationAccountConfigIssue({
309
+ destinationAccountConfig,
310
+ dynamicTargetAssetCandidates: candidates
311
+ });
312
+ if (issue) {
313
+ throw new Error(issue);
314
+ }
315
+ const initialCandidate = candidates[0];
316
+ if (!initialCandidate) {
317
+ throw new Error("Mallard requires at least one eligible asset.");
318
+ }
319
+ const modalTitles = Object.fromEntries(
320
+ candidates.map((candidate) => [
321
+ candidate.dynamicRoutingId,
322
+ `Deposit ${candidate.tokenSymbol.replace(/[()]/g, "")}`
323
+ ])
324
+ );
325
+ const ticker = initialCandidate.displayTokenSymbol ?? initialCandidate.tokenSymbol;
326
+ return {
327
+ modalTitle: ({ dynamicRoutingId }) => (dynamicRoutingId && modalTitles[dynamicRoutingId]) ?? "Deposit (Mallard)",
328
+ targetChain: initialCandidate.tokenChainId,
329
+ targetAsset: initialCandidate.tokenAddress,
330
+ targetAssetAmount: 0,
331
+ targetAssetTicker: ticker,
332
+ checkoutItemTitle: ticker,
333
+ iconSrc: initialCandidate.iconSrc,
334
+ dynamicRoutingId: initialCandidate.dynamicRoutingId,
335
+ destinationAccountConfig,
336
+ dynamicTargetAssetCandidates: candidates,
337
+ // Route-specific UDA settings take precedence, including Spot's absent action.
338
+ qrcodeActionType: "MALLARD_PERPS",
339
+ generateActionsParams: initialCandidate.generateActionsParams
340
+ };
341
+ }
198
342
  export {
199
343
  AMOUNT_PLACEHOLDER,
200
344
  MALLARD_DEPOSIT_ADDRESS,
@@ -202,5 +346,6 @@ export {
202
346
  MALLARD_USDG_ICON_SRC,
203
347
  VAULT_DEPOSITOR_ZORRO,
204
348
  createMallardDepositActions,
349
+ createMallardDepositConfig,
205
350
  useMallardWithdrawalConfig
206
351
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "./chunk-TLFE74BL.js";
4
+ } from "./chunk-UBZOARBX.js";
5
5
  import "./chunk-TKEBGMVW.js";
6
- import "./chunk-VFKEUHZT.js";
6
+ import "./chunk-R7I5OO6C.js";
7
7
  import "./chunk-LICTGZXW.js";
8
8
  import "./chunk-OODIKHYE.js";
9
9
  import {
@@ -12,10 +12,10 @@ import {
12
12
  } from "./chunk-2W2P3OS6.js";
13
13
  import {
14
14
  i18n_default
15
- } from "./chunk-R5VAX6YA.js";
15
+ } from "./chunk-HGLDKRSQ.js";
16
16
  import {
17
17
  logger
18
- } from "./chunk-GTPMJGCF.js";
18
+ } from "./chunk-B67ESBGC.js";
19
19
 
20
20
  // src/clients/nado.tsx
21
21
  import { useMemo } from "react";
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  createPolymarketDepositConfig,
4
4
  createPredictionsGenerateActionParams
5
- } from "../chunk-Y7ONHWCW.js";
5
+ } from "../chunk-T4Q43DNC.js";
6
6
  import {
7
7
  POLYMARKET_PERPS_ROUTING_ID,
8
8
  POLYMARKET_PREDICTIONS_ROUTING_ID
9
- } from "../chunk-5NYKSTGH.js";
9
+ } from "../chunk-S4SMCBQ4.js";
10
10
  import "../chunk-TKEBGMVW.js";
11
- import "../chunk-GTPMJGCF.js";
11
+ import "../chunk-B67ESBGC.js";
12
12
  export {
13
13
  POLYMARKET_PERPS_ROUTING_ID,
14
14
  POLYMARKET_PREDICTIONS_ROUTING_ID,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  createPolymarketDepositConfig,
4
4
  createPredictionsGenerateActionParams
5
- } from "../chunk-Y7ONHWCW.js";
5
+ } from "../chunk-T4Q43DNC.js";
6
6
  import {
7
7
  AMOUNT_PLACEHOLDER,
8
8
  COLLATERAL_ONRAMP_ABI,
@@ -15,9 +15,9 @@ import {
15
15
  VAULT_DEPOSITOR_POLYGON,
16
16
  createPerpsGenerateActionParams,
17
17
  createPolymarketWithdrawalConfig
18
- } from "../chunk-5NYKSTGH.js";
18
+ } from "../chunk-S4SMCBQ4.js";
19
19
  import "../chunk-TKEBGMVW.js";
20
- import "../chunk-GTPMJGCF.js";
20
+ import "../chunk-B67ESBGC.js";
21
21
  export {
22
22
  AMOUNT_PLACEHOLDER,
23
23
  COLLATERAL_ONRAMP_ABI,
@@ -126,20 +126,20 @@ export declare function createPolymarketWithdrawalConfig(config: PolymarketWalle
126
126
  /** Polymarket CollateralOnramp on Polygon — permissionless wrap USDC.e → pUSD. */
127
127
  export declare const COLLATERAL_ONRAMP_ADDRESS: Address;
128
128
  export declare const COLLATERAL_ONRAMP_ABI: readonly [{
129
- readonly name: "wrap";
130
- readonly type: "function";
129
+ readonly name: 'wrap';
130
+ readonly type: 'function';
131
131
  readonly inputs: readonly [{
132
- readonly name: "_asset";
133
- readonly type: "address";
132
+ readonly name: '_asset';
133
+ readonly type: 'address';
134
134
  }, {
135
- readonly name: "_to";
136
- readonly type: "address";
135
+ readonly name: '_to';
136
+ readonly type: 'address';
137
137
  }, {
138
- readonly name: "_amount";
139
- readonly type: "uint256";
138
+ readonly name: '_amount';
139
+ readonly type: 'uint256';
140
140
  }];
141
141
  readonly outputs: readonly [];
142
- readonly stateMutability: "nonpayable";
142
+ readonly stateMutability: 'nonpayable';
143
143
  }];
144
144
  /** VaultDepositor on Polygon — same address used by other VaultDepositor flows. */
145
145
  export declare const VAULT_DEPOSITOR_POLYGON: `0x${string}`;
@@ -149,25 +149,25 @@ export declare const VAULT_DEPOSITOR_POLYGON: `0x${string}`;
149
149
  * callData with the actual amount, and forwards to the target vault.
150
150
  */
151
151
  export declare const VAULT_DEPOSITOR_ABI: readonly [{
152
- readonly name: "deposit";
153
- readonly type: "function";
154
- readonly stateMutability: "nonpayable";
152
+ readonly name: 'deposit';
153
+ readonly type: 'function';
154
+ readonly stateMutability: 'nonpayable';
155
155
  readonly inputs: readonly [{
156
- readonly name: "token";
157
- readonly type: "address";
156
+ readonly name: 'token';
157
+ readonly type: 'address';
158
158
  }, {
159
- readonly name: "vault";
160
- readonly type: "address";
159
+ readonly name: 'vault';
160
+ readonly type: 'address';
161
161
  }, {
162
- readonly name: "callData";
163
- readonly type: "bytes";
162
+ readonly name: 'callData';
163
+ readonly type: 'bytes';
164
164
  }, {
165
- readonly name: "minAmountOut";
166
- readonly type: "uint256";
165
+ readonly name: 'minAmountOut';
166
+ readonly type: 'uint256';
167
167
  }];
168
168
  readonly outputs: readonly [{
169
- readonly name: "returnData";
170
- readonly type: "bytes";
169
+ readonly name: 'returnData';
170
+ readonly type: 'bytes';
171
171
  }];
172
172
  }];
173
173
  /** Sentinel the VaultDepositor replaces with the actual deposit amount at exec time. */
@@ -9,9 +9,9 @@ import {
9
9
  VAULT_DEPOSITOR_POLYGON,
10
10
  createPerpsGenerateActionParams,
11
11
  createPolymarketWithdrawalConfig
12
- } from "../chunk-5NYKSTGH.js";
12
+ } from "../chunk-S4SMCBQ4.js";
13
13
  import "../chunk-TKEBGMVW.js";
14
- import "../chunk-GTPMJGCF.js";
14
+ import "../chunk-B67ESBGC.js";
15
15
  export {
16
16
  AMOUNT_PLACEHOLDER,
17
17
  COLLATERAL_ONRAMP_ABI,