@funkit/connect 10.5.0 → 11.0.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 (97) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/clients/chunk-2FSEE3AW.js +277 -0
  3. package/dist/clients/chunk-5MY7WMEJ.js +20 -0
  4. package/dist/clients/chunk-6CYZKITE.js +33 -0
  5. package/dist/clients/{chunk-QHS5N7GP.js → chunk-C4SHJFOV.js} +2 -2
  6. package/dist/clients/{chunk-WRS7AFM2.js → chunk-FNB7OPJI.js} +12 -199
  7. package/dist/clients/{chunk-2NBYHUIW.js → chunk-HZP4DXIZ.js} +1 -0
  8. package/dist/clients/{chunk-F6P4CN27.js → chunk-JD2J5K6S.js} +16 -8
  9. package/dist/clients/chunk-LT4EWLDA.js +30 -0
  10. package/dist/clients/chunk-MGQLVTSH.js +100 -0
  11. package/dist/clients/{chunk-FJ6GCMJ4.js → chunk-OODIKHYE.js} +3 -1
  12. package/dist/clients/chunk-SFDEST63.js +18 -0
  13. package/dist/clients/{chunk-OZ3KD24N.js → chunk-ZCCLJW6F.js} +0 -8
  14. package/dist/clients/fanatics.js +5 -6
  15. package/dist/clients/internal/nado/encoding.js +4 -25
  16. package/dist/clients/internal/nado/gateway.d.ts +0 -21
  17. package/dist/clients/internal/nado/gateway.js +1 -5
  18. package/dist/clients/internal/nado/hooks.d.ts +0 -158
  19. package/dist/clients/internal/nado/hooks.js +10 -121
  20. package/dist/clients/internal/nado/withdrawalConfig.js +3 -12
  21. package/dist/clients/internal/nado/withdrawalForm.css +17529 -0
  22. package/dist/clients/internal/nado/withdrawalForm.d.ts +41 -0
  23. package/dist/clients/internal/nado/withdrawalForm.js +283 -0
  24. package/dist/clients/internal/nado/withdrawalTypes.d.ts +7 -2
  25. package/dist/clients/lighter.css +5 -1
  26. package/dist/clients/lighter.d.ts +29 -1
  27. package/dist/clients/lighter.js +105 -100
  28. package/dist/clients/mallard.js +24 -3
  29. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +5 -1
  30. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +6 -3
  31. package/dist/clients/polymarket/index.css +5 -1
  32. package/dist/clients/polymarket/index.js +6 -3
  33. package/dist/components/BottomLinks/BottomLinks.d.ts +3 -1
  34. package/dist/consts/meld.d.ts +1 -1
  35. package/dist/domains/swapped.d.ts +1 -10
  36. package/dist/hooks/queries/useSwappedDefaultCurrency.d.ts +3 -3
  37. package/dist/hooks/queries/useWithdrawFops.d.ts +0 -1
  38. package/dist/hooks/track/useTrack.d.ts +1 -0
  39. package/dist/hooks/useTokenAndChainDropdown.d.ts +8 -1
  40. package/dist/index.css +5 -1
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.js +2325 -1552
  43. package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +1 -2
  44. package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +6 -9
  45. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +54 -48
  46. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +5 -9
  47. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +1 -61
  48. package/dist/modals/WithdrawalModal/withdrawalFormHelpers.d.ts +53 -0
  49. package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +38 -0
  50. package/dist/providers/FunkitCheckoutContext/types.d.ts +61 -4
  51. package/dist/providers/FunkitConfigContext.d.ts +2 -2
  52. package/dist/utils/consts.d.ts +1 -1
  53. package/dist/utils/customer.d.ts +367 -3
  54. package/dist/utils/withdrawal.d.ts +19 -6
  55. package/dist/wagmi/actions.d.ts +1 -1
  56. package/dist/wallets/Wallet.d.ts +21 -1
  57. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  58. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  59. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  60. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  61. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  62. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  63. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  65. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/index.js +34 -34
  67. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  68. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  69. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  70. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  71. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  72. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  73. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  74. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  75. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  76. package/package.json +3 -3
  77. package/dist/clients/chunk-A4WQS6QG.js +0 -207
  78. package/dist/clients/internal/nado/products.d.ts +0 -36
  79. package/dist/clients/internal/nado/products.js +0 -19
  80. package/dist/wallets/walletConnectors/{chunk-RB3HR4R2.js → chunk-4NV5BYRP.js} +3 -3
  81. package/dist/wallets/walletConnectors/{chunk-YEZM4CK4.js → chunk-AVDUNQUW.js} +3 -3
  82. package/dist/wallets/walletConnectors/{chunk-MIQTHJ6X.js → chunk-GUQM4QSL.js} +3 -3
  83. package/dist/wallets/walletConnectors/{chunk-4T6ZSRJF.js → chunk-IULPZP2Q.js} +3 -3
  84. package/dist/wallets/walletConnectors/{chunk-HNRB7KJU.js → chunk-JPN6TWIT.js} +3 -3
  85. package/dist/wallets/walletConnectors/{chunk-ZNX4EMPB.js → chunk-KCRO2AGO.js} +3 -3
  86. package/dist/wallets/walletConnectors/{chunk-STVVP43G.js → chunk-KI5Y2BBF.js} +3 -3
  87. package/dist/wallets/walletConnectors/{chunk-X6CGV36L.js → chunk-NR2OGDHQ.js} +3 -3
  88. package/dist/wallets/walletConnectors/{chunk-UK7C2JXW.js → chunk-OEEGYENV.js} +3 -3
  89. package/dist/wallets/walletConnectors/{chunk-F5XEEVG6.js → chunk-OX37G4YT.js} +3 -3
  90. package/dist/wallets/walletConnectors/{chunk-RVOY537T.js → chunk-SWFF3TWJ.js} +3 -3
  91. package/dist/wallets/walletConnectors/{chunk-CPI4TD43.js → chunk-TKB2OY6G.js} +3 -3
  92. package/dist/wallets/walletConnectors/{chunk-2VP2F6EK.js → chunk-W2LCLDPX.js} +3 -3
  93. package/dist/wallets/walletConnectors/{chunk-6BW3HLBG.js → chunk-WAHGI5L7.js} +3 -3
  94. package/dist/wallets/walletConnectors/{chunk-HTHAK6XB.js → chunk-WKNQMP4A.js} +3 -3
  95. package/dist/wallets/walletConnectors/{chunk-VTM6EECM.js → chunk-XCNHV3HS.js} +3 -3
  96. package/dist/wallets/walletConnectors/{chunk-CCQV2ZET.js → chunk-YO2K4MBH.js} +3 -3
  97. package/dist/wallets/walletConnectors/{chunk-VAPGUPHO.js → chunk-YQFGVZGR.js} +3 -3
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-52QXXLDS.js";
5
5
  import {
6
6
  zerionWallet
7
- } from "./chunk-RVOY537T.js";
7
+ } from "./chunk-SWFF3TWJ.js";
8
8
  import {
9
9
  tahoWallet
10
10
  } from "./chunk-7ZYCBDQ4.js";
@@ -13,13 +13,13 @@ import {
13
13
  } from "./chunk-4DCO3TGL.js";
14
14
  import {
15
15
  tokenPocketWallet
16
- } from "./chunk-HTHAK6XB.js";
16
+ } from "./chunk-WKNQMP4A.js";
17
17
  import {
18
18
  tokenaryWallet
19
19
  } from "./chunk-VH3THHJY.js";
20
20
  import {
21
21
  trustWallet
22
- } from "./chunk-ZNX4EMPB.js";
22
+ } from "./chunk-KCRO2AGO.js";
23
23
  import {
24
24
  uniswapWallet
25
25
  } from "./chunk-Z3PPW6NC.js";
@@ -34,13 +34,13 @@ import {
34
34
  } from "./chunk-RB66PKPA.js";
35
35
  import {
36
36
  rainbowWallet
37
- } from "./chunk-2VP2F6EK.js";
37
+ } from "./chunk-W2LCLDPX.js";
38
38
  import {
39
39
  ramperWallet
40
40
  } from "./chunk-OQB55QXP.js";
41
41
  import {
42
42
  roninWallet
43
- } from "./chunk-VAPGUPHO.js";
43
+ } from "./chunk-YQFGVZGR.js";
44
44
  import {
45
45
  safeWallet
46
46
  } from "./chunk-RCY66YHF.js";
@@ -49,13 +49,13 @@ import {
49
49
  } from "./chunk-76S7R2ND.js";
50
50
  import {
51
51
  safepalWallet
52
- } from "./chunk-VTM6EECM.js";
52
+ } from "./chunk-XCNHV3HS.js";
53
53
  import {
54
54
  subWallet
55
- } from "./chunk-X6CGV36L.js";
55
+ } from "./chunk-NR2OGDHQ.js";
56
56
  import {
57
57
  metaMaskWallet
58
- } from "./chunk-CCQV2ZET.js";
58
+ } from "./chunk-YO2K4MBH.js";
59
59
  import {
60
60
  mewWallet
61
61
  } from "./chunk-MQM45ADF.js";
@@ -64,31 +64,31 @@ import {
64
64
  } from "./chunk-YWOVAU6O.js";
65
65
  import {
66
66
  okxWallet
67
- } from "./chunk-STVVP43G.js";
67
+ } from "./chunk-KI5Y2BBF.js";
68
68
  import {
69
69
  omniWallet
70
70
  } from "./chunk-2CX7LX4J.js";
71
- import {
72
- oneKeyWallet
73
- } from "./chunk-WVT6BBJH.js";
74
71
  import {
75
72
  oneInchWallet
76
73
  } from "./chunk-QG6ZHI7B.js";
74
+ import {
75
+ oneKeyWallet
76
+ } from "./chunk-WVT6BBJH.js";
77
77
  import {
78
78
  phantomWallet
79
79
  } from "./chunk-QY53O7WG.js";
80
+ import {
81
+ frontierWallet
82
+ } from "./chunk-AVDUNQUW.js";
80
83
  import {
81
84
  foxWallet
82
- } from "./chunk-MIQTHJ6X.js";
85
+ } from "./chunk-GUQM4QSL.js";
83
86
  import {
84
87
  frameWallet
85
88
  } from "./chunk-BU3ZAT5X.js";
86
- import {
87
- frontierWallet
88
- } from "./chunk-YEZM4CK4.js";
89
89
  import {
90
90
  gateWallet
91
- } from "./chunk-HNRB7KJU.js";
91
+ } from "./chunk-JPN6TWIT.js";
92
92
  import {
93
93
  imTokenWallet
94
94
  } from "./chunk-WNAGGFMG.js";
@@ -101,53 +101,53 @@ import {
101
101
  import {
102
102
  ledgerWallet
103
103
  } from "./chunk-RPV27V2Y.js";
104
- import {
105
- braveWallet
106
- } from "./chunk-DS73TZ6O.js";
107
104
  import {
108
105
  clvWallet
109
- } from "./chunk-UK7C2JXW.js";
106
+ } from "./chunk-OEEGYENV.js";
110
107
  import {
111
108
  coin98Wallet
112
- } from "./chunk-6BW3HLBG.js";
109
+ } from "./chunk-WAHGI5L7.js";
110
+ import {
111
+ bybitWallet
112
+ } from "./chunk-OX37G4YT.js";
113
113
  import {
114
114
  coinbaseWallet
115
115
  } from "./chunk-2DLDAZRH.js";
116
116
  import {
117
117
  coreWallet
118
- } from "./chunk-RB3HR4R2.js";
119
- import {
120
- dawnWallet
121
- } from "./chunk-G2PHTVL6.js";
118
+ } from "./chunk-4NV5BYRP.js";
122
119
  import {
123
120
  desigWallet
124
121
  } from "./chunk-FW3WZETT.js";
122
+ import {
123
+ dawnWallet
124
+ } from "./chunk-G2PHTVL6.js";
125
125
  import {
126
126
  enkryptWallet
127
127
  } from "./chunk-HBQK5RD5.js";
128
+ import {
129
+ argentWallet
130
+ } from "./chunk-NTMBEOR2.js";
128
131
  import {
129
132
  bifrostWallet
130
- } from "./chunk-4T6ZSRJF.js";
133
+ } from "./chunk-IULPZP2Q.js";
131
134
  import {
132
135
  bitgetWallet
133
- } from "./chunk-CPI4TD43.js";
136
+ } from "./chunk-TKB2OY6G.js";
134
137
  import {
135
138
  bitskiWallet
136
139
  } from "./chunk-7HRFUZFX.js";
137
- import {
138
- argentWallet
139
- } from "./chunk-NTMBEOR2.js";
140
140
  import {
141
141
  bitverseWallet
142
142
  } from "./chunk-NSK6A7TI.js";
143
143
  import {
144
144
  bloomWallet
145
145
  } from "./chunk-PJ7Y57EH.js";
146
+ import "./chunk-N4IJLYFY.js";
146
147
  import {
147
- bybitWallet
148
- } from "./chunk-F5XEEVG6.js";
148
+ braveWallet
149
+ } from "./chunk-DS73TZ6O.js";
149
150
  import "./chunk-OLZ7626J.js";
150
- import "./chunk-N4IJLYFY.js";
151
151
  import "./chunk-IGKXZBTA.js";
152
152
  export {
153
153
  argentWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-CCQV2ZET.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-YO2K4MBH.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  metaMaskWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-STVVP43G.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-KI5Y2BBF.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  okxWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-2VP2F6EK.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-W2LCLDPX.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  rainbowWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-VAPGUPHO.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-YQFGVZGR.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  roninWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-VTM6EECM.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-XCNHV3HS.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  safepalWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-X6CGV36L.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-NR2OGDHQ.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  subWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-HTHAK6XB.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-WKNQMP4A.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  tokenPocketWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-ZNX4EMPB.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-KCRO2AGO.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  trustWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-RVOY537T.js";
5
- import "../chunk-OLZ7626J.js";
4
+ } from "../chunk-SWFF3TWJ.js";
6
5
  import "../chunk-N4IJLYFY.js";
6
+ import "../chunk-OLZ7626J.js";
7
7
  import "../chunk-IGKXZBTA.js";
8
8
  export {
9
9
  zerionWallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "10.5.0",
3
+ "version": "11.0.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -108,8 +108,8 @@
108
108
  "use-debounce": "^10.0.5",
109
109
  "uuid": "^11.1.1",
110
110
  "@funkit/api-base": "6.0.0",
111
- "@funkit/chains": "2.1.3",
112
- "@funkit/connect-core": "2.2.0",
111
+ "@funkit/chains": "2.2.0",
112
+ "@funkit/connect-core": "2.4.0",
113
113
  "@funkit/fun-relay": "2.9.0",
114
114
  "@funkit/utils": "4.0.0"
115
115
  },
@@ -1,207 +0,0 @@
1
- "use client";
2
- import {
3
- getNadoAllProducts,
4
- getNadoSymbols
5
- } from "./chunk-OZ3KD24N.js";
6
- import {
7
- INK_CHAIN_ID
8
- } from "./chunk-II5CZTBC.js";
9
- import {
10
- multicall
11
- } from "./chunk-FJ6GCMJ4.js";
12
- import {
13
- logger
14
- } from "./chunk-AHYOV7AV.js";
15
-
16
- // src/clients/internal/nado/products.ts
17
- import { erc20Abi, getAddress, isAddress } from "viem";
18
- var NADO_XSTOCK_WITHDRAWALS_ENABLED = false;
19
- var XSTOCK_SYMBOL_PATTERN = /^w\w+x$/;
20
- var NADO_SUPPORTED_PRODUCTS = [
21
- {
22
- productId: 0,
23
- symbol: "USDT0",
24
- tokenAddress: getAddress("0x0200C29006150606B650577BBE7B6248F58470c1"),
25
- decimals: 6,
26
- isXstock: false,
27
- isTradable: true,
28
- withdrawFeeX18: "1000000000000000000"
29
- },
30
- {
31
- productId: 1,
32
- symbol: "KBTC",
33
- tokenAddress: getAddress("0x73E0C0d45E048D25Fc26Fa3159b0aA04BfA4Db98"),
34
- decimals: 8,
35
- isXstock: false,
36
- isTradable: true,
37
- withdrawFeeX18: "10000000000000"
38
- },
39
- {
40
- productId: 3,
41
- symbol: "WETH",
42
- tokenAddress: getAddress("0x4200000000000000000000000000000000000006"),
43
- decimals: 18,
44
- isXstock: false,
45
- isTradable: true,
46
- withdrawFeeX18: "300000000000000"
47
- },
48
- {
49
- productId: 5,
50
- symbol: "USDC",
51
- tokenAddress: getAddress("0x2D270e6886d130D724215A266106e6832161EAEd"),
52
- decimals: 6,
53
- isXstock: false,
54
- isTradable: true,
55
- withdrawFeeX18: "1000000000000000000"
56
- },
57
- {
58
- productId: 115,
59
- symbol: "wQQQx",
60
- tokenAddress: getAddress("0x4C1AE29c159838fC1b224636E28E086EB69101f7"),
61
- decimals: 18,
62
- isXstock: true,
63
- isTradable: true,
64
- withdrawFeeX18: "2000000000000000"
65
- },
66
- {
67
- productId: 117,
68
- symbol: "wSPYx",
69
- tokenAddress: getAddress("0xe7e553cd128f0011777323a0b44a7b96ea1cb540"),
70
- decimals: 18,
71
- isXstock: true,
72
- isTradable: true,
73
- withdrawFeeX18: "2000000000000000"
74
- },
75
- {
76
- productId: 143,
77
- symbol: "wAAPLx",
78
- tokenAddress: getAddress("0x943bf64d566c32a2bcd41ac92fb63c111cc9de8f"),
79
- decimals: 18,
80
- isXstock: true,
81
- isTradable: true,
82
- withdrawFeeX18: "2000000000000000"
83
- },
84
- {
85
- productId: 145,
86
- symbol: "wAMZNx",
87
- tokenAddress: getAddress("0x910cabde3eba7fc1ce64fd14bd680b9f60fa0f90"),
88
- decimals: 18,
89
- isXstock: true,
90
- isTradable: false,
91
- withdrawFeeX18: "2000000000000000"
92
- },
93
- {
94
- productId: 147,
95
- symbol: "wGOOGLx",
96
- tokenAddress: getAddress("0xf8c5308f80e459bb53d9ebe689854d9cbb2caa6f"),
97
- decimals: 18,
98
- isXstock: true,
99
- isTradable: true,
100
- withdrawFeeX18: "2000000000000000"
101
- },
102
- {
103
- productId: 149,
104
- symbol: "wMETAx",
105
- tokenAddress: getAddress("0xe840946ffebcd66b7c4e95095effafadfa0d0e56"),
106
- decimals: 18,
107
- isXstock: true,
108
- isTradable: true,
109
- withdrawFeeX18: "2000000000000000"
110
- },
111
- {
112
- productId: 151,
113
- symbol: "wMSFTx",
114
- tokenAddress: getAddress("0x166fbe68274b6a47e025f4ba17388c539f1fa1d0"),
115
- decimals: 18,
116
- isXstock: true,
117
- isTradable: false,
118
- withdrawFeeX18: "2000000000000000"
119
- },
120
- {
121
- productId: 153,
122
- symbol: "wNVDAx",
123
- tokenAddress: getAddress("0xa8ddb5cd96b5222afe198316e9a57caa642850d5"),
124
- decimals: 18,
125
- isXstock: true,
126
- isTradable: true,
127
- withdrawFeeX18: "2000000000000000"
128
- },
129
- {
130
- productId: 155,
131
- symbol: "wTSLAx",
132
- tokenAddress: getAddress("0xc3FdBe3A68EE5dE461D30415a8165cf9Aefe1171"),
133
- decimals: 18,
134
- isXstock: true,
135
- isTradable: true,
136
- withdrawFeeX18: "2000000000000000"
137
- }
138
- ];
139
- var SUPPORTED_BY_PRODUCT_ID = new Map(
140
- NADO_SUPPORTED_PRODUCTS.map((p) => [p.productId, p])
141
- );
142
- function isWithdrawableNadoProduct(product) {
143
- return !product.isXstock || NADO_XSTOCK_WITHDRAWALS_ENABLED;
144
- }
145
- async function fetchNadoProducts(wagmiConfig, signal) {
146
- const [{ spot_products }, { symbols }] = await Promise.all([
147
- getNadoAllProducts(signal),
148
- getNadoSymbols(signal)
149
- ]);
150
- const symbolByProductId = new Map(
151
- Object.values(symbols).filter((s) => s.type === "spot").map((s) => [s.product_id, s])
152
- );
153
- const supported = spot_products.flatMap((product) => {
154
- const fallback = SUPPORTED_BY_PRODUCT_ID.get(product.product_id);
155
- if (!fallback) {
156
- return [];
157
- }
158
- if (!isAddress(product.config.token)) {
159
- logger.warn("nado:products_invalid_token", {
160
- productId: product.product_id,
161
- token: product.config.token
162
- });
163
- return [];
164
- }
165
- return [{ product, fallback }];
166
- });
167
- if (supported.length === 0) {
168
- logger.warn("nado:products_fallback", { message: "empty_join" });
169
- return NADO_SUPPORTED_PRODUCTS;
170
- }
171
- const decimalResults = await multicall(wagmiConfig, {
172
- chainId: INK_CHAIN_ID,
173
- allowFailure: true,
174
- contracts: supported.map(({ product }) => ({
175
- address: getAddress(product.config.token),
176
- abi: erc20Abi,
177
- functionName: "decimals"
178
- }))
179
- }).catch((error) => {
180
- logger.warn("nado:products_decimals_multicall_failed", {
181
- errorMessage: error instanceof Error ? error.message : String(error)
182
- });
183
- return void 0;
184
- });
185
- return supported.map(({ product, fallback }, i) => {
186
- const symbolInfo = symbolByProductId.get(product.product_id);
187
- const decimals = decimalResults?.[i];
188
- return {
189
- productId: product.product_id,
190
- symbol: symbolInfo?.symbol ?? fallback.symbol,
191
- tokenAddress: getAddress(product.config.token),
192
- decimals: decimals?.status === "success" ? decimals.result : fallback.decimals,
193
- isXstock: symbolInfo ? XSTOCK_SYMBOL_PATTERN.test(symbolInfo.symbol) : fallback.isXstock,
194
- // Withdrawals don't depend on market status (post_only/soft_reduce_only
195
- // are routine weekend states) — only fully disabled products are out
196
- isTradable: symbolInfo ? symbolInfo.trading_status !== "not_tradable" : fallback.isTradable,
197
- withdrawFeeX18: product.config.withdraw_fee_x18 ?? fallback.withdrawFeeX18
198
- };
199
- });
200
- }
201
-
202
- export {
203
- NADO_XSTOCK_WITHDRAWALS_ENABLED,
204
- NADO_SUPPORTED_PRODUCTS,
205
- isWithdrawableNadoProduct,
206
- fetchNadoProducts
207
- };
@@ -1,36 +0,0 @@
1
- /**
2
- * Withdrawable Nado spot products: live `all_products` ⋈ `symbols` join with
3
- * a verified static list as fallback.
4
- *
5
- * @see {@link https://docs.nado.xyz/developer-resources/api/gateway/queries/all-products | Nado all-products query}
6
- * @see {@link https://docs.nado.xyz/developer-resources/api/gateway/queries/symbols | Nado symbols query}
7
- */
8
- import { type Address } from 'viem';
9
- import type { Config } from '../../../wagmi/hooks';
10
- export interface NadoProduct {
11
- productId: number;
12
- symbol: string;
13
- tokenAddress: Address;
14
- decimals: number;
15
- isXstock: boolean;
16
- isTradable: boolean;
17
- /** Withdraw sequencer fee from the product config, x18 token units. */
18
- withdrawFeeX18: string;
19
- }
20
- /**
21
- * Xstocks stay out of the source picker until the backend confirms
22
- * same-token pass-through routing at the UDA. Flip to enable.
23
- */
24
- export declare const NADO_XSTOCK_WITHDRAWALS_ENABLED = false;
25
- /**
26
- * The withdrawable-product allowlist (membership gates the picker) and the
27
- * fallback when the gateway is down. Also the symbol source for USDT0,
28
- * which is absent from the symbols query. Verified against prod 2026-07-16.
29
- */
30
- export declare const NADO_SUPPORTED_PRODUCTS: NadoProduct[];
31
- export declare function isWithdrawableNadoProduct(product: NadoProduct): boolean;
32
- /**
33
- * Live product list: `all_products` ⋈ `symbols`, decimals from one multicall.
34
- * Per-field static fallbacks keep a partial gateway response usable.
35
- */
36
- export declare function fetchNadoProducts(wagmiConfig: Config, signal?: AbortSignal): Promise<NadoProduct[]>;
@@ -1,19 +0,0 @@
1
- "use client";
2
- import {
3
- NADO_SUPPORTED_PRODUCTS,
4
- NADO_XSTOCK_WITHDRAWALS_ENABLED,
5
- fetchNadoProducts,
6
- isWithdrawableNadoProduct
7
- } from "../../chunk-A4WQS6QG.js";
8
- import "../../chunk-OZ3KD24N.js";
9
- import "../../chunk-II5CZTBC.js";
10
- import "../../chunk-L2KSNS7H.js";
11
- import "../../chunk-2YWQL3AO.js";
12
- import "../../chunk-FJ6GCMJ4.js";
13
- import "../../chunk-AHYOV7AV.js";
14
- export {
15
- NADO_SUPPORTED_PRODUCTS,
16
- NADO_XSTOCK_WITHDRAWALS_ENABLED,
17
- fetchNadoProducts,
18
- isWithdrawableNadoProduct
19
- };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-N4IJLYFY.js";
2
5
  import {
3
6
  getInjectedConnector,
4
7
  hasInjectedProvider
5
8
  } from "./chunk-OLZ7626J.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-N4IJLYFY.js";
9
9
 
10
10
  // src/wallets/walletConnectors/coreWallet/coreWallet.ts
11
11
  var coreWallet = ({
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-N4IJLYFY.js";
2
5
  import {
3
6
  getInjectedConnector,
4
7
  hasInjectedProvider
5
8
  } from "./chunk-OLZ7626J.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-N4IJLYFY.js";
9
9
 
10
10
  // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
11
11
  import { isAndroid } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-N4IJLYFY.js";
2
5
  import {
3
6
  getInjectedConnector,
4
7
  hasInjectedProvider
5
8
  } from "./chunk-OLZ7626J.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-N4IJLYFY.js";
9
9
 
10
10
  // src/wallets/walletConnectors/foxWallet/foxWallet.ts
11
11
  var foxWallet = ({
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-N4IJLYFY.js";
2
5
  import {
3
6
  getInjectedConnector,
4
7
  hasInjectedProvider
5
8
  } from "./chunk-OLZ7626J.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-N4IJLYFY.js";
9
9
 
10
10
  // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
11
11
  import { isAndroid } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-N4IJLYFY.js";
2
5
  import {
3
6
  getInjectedConnector,
4
7
  hasInjectedProvider
5
8
  } from "./chunk-OLZ7626J.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-N4IJLYFY.js";
9
9
 
10
10
  // src/wallets/walletConnectors/gateWallet/gateWallet.ts
11
11
  import { isAndroid } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-N4IJLYFY.js";
2
5
  import {
3
6
  getInjectedConnector,
4
7
  hasInjectedProvider
5
8
  } from "./chunk-OLZ7626J.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-N4IJLYFY.js";
9
9
 
10
10
  // src/wallets/walletConnectors/trustWallet/trustWallet.ts
11
11
  import { isMobile } from "@funkit/utils";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-N4IJLYFY.js";
2
5
  import {
3
6
  getInjectedConnector,
4
7
  hasInjectedProvider
5
8
  } from "./chunk-OLZ7626J.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-N4IJLYFY.js";
9
9
 
10
10
  // src/wallets/walletConnectors/okxWallet/okxWallet.ts
11
11
  import { isAndroid } from "@funkit/utils";