@switch-win/sdk 1.2.9 → 1.3.1

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 (73) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/GASLESS.md +434 -0
  3. package/LIMIT-ORDERS.md +213 -205
  4. package/README.md +134 -105
  5. package/ROBINHOOD.md +201 -198
  6. package/abi/GaslessSwitchV2ABI.json +1095 -0
  7. package/dist/constants.d.ts +276 -0
  8. package/dist/constants.d.ts.map +1 -0
  9. package/dist/constants.js +403 -0
  10. package/dist/constants.js.map +1 -0
  11. package/dist/gasless-client.d.ts +82 -0
  12. package/dist/gasless-client.d.ts.map +1 -0
  13. package/dist/gasless-client.js +467 -0
  14. package/dist/gasless-client.js.map +1 -0
  15. package/dist/gasless-index.d.ts +5 -0
  16. package/dist/gasless-index.d.ts.map +1 -0
  17. package/dist/gasless-index.js +5 -0
  18. package/dist/gasless-index.js.map +1 -0
  19. package/dist/gasless-operators.d.ts +32 -0
  20. package/dist/gasless-operators.d.ts.map +1 -0
  21. package/dist/gasless-operators.js +132 -0
  22. package/dist/gasless-operators.js.map +1 -0
  23. package/dist/gasless-store.d.ts +18 -0
  24. package/dist/gasless-store.d.ts.map +1 -0
  25. package/dist/gasless-store.js +83 -0
  26. package/dist/gasless-store.js.map +1 -0
  27. package/dist/gasless-types.d.ts +222 -0
  28. package/dist/gasless-types.d.ts.map +1 -0
  29. package/dist/gasless-types.js +2 -0
  30. package/dist/gasless-types.js.map +1 -0
  31. package/dist/gasless.d.ts +135 -0
  32. package/dist/gasless.d.ts.map +1 -0
  33. package/dist/gasless.js +513 -0
  34. package/dist/gasless.js.map +1 -0
  35. package/dist/index.d.ts +29 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +30 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/limit-orders.d.ts +440 -0
  40. package/dist/limit-orders.d.ts.map +1 -0
  41. package/dist/limit-orders.js +387 -0
  42. package/dist/limit-orders.js.map +1 -0
  43. package/dist/networks/index.d.ts +3 -0
  44. package/dist/networks/index.d.ts.map +1 -0
  45. package/dist/networks/index.js +2 -0
  46. package/dist/networks/index.js.map +1 -0
  47. package/dist/networks/robinhood.d.ts +536 -0
  48. package/dist/networks/robinhood.d.ts.map +1 -0
  49. package/dist/networks/robinhood.js +489 -0
  50. package/dist/networks/robinhood.js.map +1 -0
  51. package/dist/types.d.ts +436 -0
  52. package/dist/types.d.ts.map +1 -0
  53. package/dist/types.js +19 -0
  54. package/dist/types.js.map +1 -0
  55. package/examples/gasless-nextjs-proxy.ts +87 -0
  56. package/examples/gasless-operator.ts +76 -0
  57. package/examples/gasless-swap.ts +173 -0
  58. package/examples/limit-order-ethers.ts +195 -0
  59. package/examples/nextjs-proxy.ts +82 -0
  60. package/examples/react-hooks.tsx +396 -0
  61. package/examples/swap-ethers.ts +209 -0
  62. package/examples/swap-web3py.py +267 -0
  63. package/package.json +53 -12
  64. package/src/constants.ts +184 -182
  65. package/src/gasless-client.ts +824 -0
  66. package/src/gasless-index.ts +4 -0
  67. package/src/gasless-operators.ts +227 -0
  68. package/src/gasless-store.ts +137 -0
  69. package/src/gasless-types.ts +262 -0
  70. package/src/gasless.ts +756 -0
  71. package/src/index.ts +69 -63
  72. package/src/limit-orders.ts +206 -195
  73. package/src/types.ts +80 -55
@@ -0,0 +1,536 @@
1
+ /** API network value used by Switch endpoints. */
2
+ export declare const ROBINHOOD_NETWORK: "robinhood";
3
+ /** Robinhood Chain mainnet metadata. */
4
+ export declare const ROBINHOOD_CHAIN: {
5
+ readonly id: 4663;
6
+ readonly name: "Robinhood Chain";
7
+ readonly nativeCurrency: {
8
+ readonly name: "Ether";
9
+ readonly symbol: "ETH";
10
+ readonly decimals: 18;
11
+ };
12
+ readonly rpcUrls: readonly ["https://rpc.mainnet.chain.robinhood.com"];
13
+ readonly blockExplorerUrl: "https://robinhoodchain.blockscout.com";
14
+ };
15
+ /** Native-ETH sentinel accepted by the Switch quote API. */
16
+ export declare const ROBINHOOD_NATIVE_ETH = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
17
+ /** Switch contracts deployed on Robinhood Chain. */
18
+ export declare const ROBINHOOD_SWITCH_CONTRACTS: {
19
+ /** ERC-20 approval target. Use quote.tx.to when submitting a swap. */
20
+ readonly router: "0x8b2bBdF41C1486b3482bD0e9603d72f012EE8599";
21
+ readonly legacyRouter: "0x8730C3e2cF2c8CDa8E6166837A1Ed26f46aa9E59";
22
+ /** Legacy view remains bound to the legacy Router; prefer hosted API quotes. */
23
+ readonly routerView: "0xFF6b56d3F444eB5b7FA1db047F57140C84810376";
24
+ readonly limitOrder: "0x1E05115387f314398bbb1A808B25308E71150396";
25
+ readonly legacyLimitOrder: "0x752c50DDd3B426cAE3D7A995F313Ac74ac6B0230";
26
+ readonly nativeEthFlow: "0x8170a3B0e2FD2e4333E0Ca9c9414B2D3dd6aF689";
27
+ readonly legacyNativeEthFlow: "0x029FfC6aF9112eA078f1D6f4a98826DDB2136cf6";
28
+ readonly directFillQuoter: "0x77b246C127c3c501Ec2836A2B53B555208b30B44";
29
+ readonly uniswapV2Adapter: "0x7a14d7A8509a66209D4332843b983b29bF5604A4";
30
+ readonly uniswapV3Adapter: "0xbcA08f296d9Ba0dc19Aa0E05D355365cE29A3205";
31
+ readonly uniswapV4Adapter: "0xB9885d3C55e79499bf887F2fBe445e01A8cFFf1c";
32
+ readonly limitOrderAdapter: "0xb13CC4C37e1C609617C51B5dCDf8e4Ae5721Faa4";
33
+ readonly legacyLimitOrderAdapter: "0x412F625072c10e58C619D1e0b3C95cd3d5689871";
34
+ readonly swapHoodV2Adapter: "0x6D8746f02e52944c13824fA691c6f4186E463354";
35
+ readonly swapHoodV3Adapter: "0x9645dE0AcB48F0AAefdBEb423F0558457907DE98";
36
+ readonly up33Adapter: "0x388179D2FB0ABcE9b03068916aF8a3c4dfD023c8";
37
+ readonly sheriffV2Adapter: "0xBDB3EB0355981500f58C9bc77c3E61762844A146";
38
+ readonly sheriffAlgebraAdapter: "0xaC4da986100724983042Ec28c28db243E2f828CB";
39
+ readonly aeonAlgebraAdapter: "0x20615954FB87360139e7DdDB519359498EbD1904";
40
+ readonly catnipV2Adapter: "0x5b2Ca358d56490Dc86224D502522314De7707237";
41
+ readonly pancakeSwapV2Adapter: "0x3B6e71A59553143937Fef74a7B50AFD24528786E";
42
+ readonly pancakeSwapV3Adapter: "0xD2Adac87bab4f0f99CF2a21c552c88d1C9825cCC";
43
+ readonly robinSwapV2Adapter: "0xF694145F104c3C24f723301e160D2Ccf0Db31FE6";
44
+ readonly robinSwapV3Adapter: "0x798f77D63b46b0E019de206E111e5ea5CC16BEc8";
45
+ readonly sushiSwapV3Adapter: "0xca3EA0Fd6E31f94c81B6586836790adE638313ED";
46
+ readonly gigaV2Adapter: "0xa379c7D17F7fEe735773879D4069886B117AB54a";
47
+ readonly gigaV3Adapter: "0xcAa612CDe3d3FbE97Be97eB5f79BC91597432d55";
48
+ readonly flapAdapter: "0x6af2A4475C44d5833575150Bf7C3D3FE6Bf4F344";
49
+ readonly ramsesV3Adapter: "0xdBf182774C60932c6fe1Bf3FFaB8Ca28CCb0dC17";
50
+ readonly ramsesV2Adapter: "0x5fe3b873c222e76f7630b40052f07ee06196E6d3";
51
+ readonly limitOrderAdapterIndex: 3;
52
+ };
53
+ export interface RobinhoodAdapter {
54
+ readonly index: number;
55
+ readonly name: string;
56
+ readonly address: string;
57
+ /** Whether the backend may use this adapter for transfer-tax routes. */
58
+ readonly taxSafe: boolean;
59
+ }
60
+ /**
61
+ * Snapshot of the ordered production adapter registry verified on 2026-08-25.
62
+ *
63
+ * Adapter registration can change. Fetch
64
+ * `GET /swap/adapters?network=robinhood` when runtime freshness matters.
65
+ */
66
+ export declare const ROBINHOOD_ADAPTERS: readonly [{
67
+ readonly index: 0;
68
+ readonly name: "UniswapV2";
69
+ readonly address: "0x7a14d7A8509a66209D4332843b983b29bF5604A4";
70
+ readonly taxSafe: true;
71
+ }, {
72
+ readonly index: 1;
73
+ readonly name: "UniswapV3";
74
+ readonly address: "0xbcA08f296d9Ba0dc19Aa0E05D355365cE29A3205";
75
+ readonly taxSafe: false;
76
+ }, {
77
+ readonly index: 2;
78
+ readonly name: "UniswapV4";
79
+ readonly address: "0xB9885d3C55e79499bf887F2fBe445e01A8cFFf1c";
80
+ readonly taxSafe: false;
81
+ }, {
82
+ readonly index: 3;
83
+ readonly name: "SwitchLimitOrders";
84
+ readonly address: "0xb13CC4C37e1C609617C51B5dCDf8e4Ae5721Faa4";
85
+ readonly taxSafe: false;
86
+ }, {
87
+ readonly index: 4;
88
+ readonly name: "SwapHoodV2";
89
+ readonly address: "0x6D8746f02e52944c13824fA691c6f4186E463354";
90
+ readonly taxSafe: true;
91
+ }, {
92
+ readonly index: 5;
93
+ readonly name: "SwapHoodV3";
94
+ readonly address: "0x9645dE0AcB48F0AAefdBEb423F0558457907DE98";
95
+ readonly taxSafe: false;
96
+ }, {
97
+ readonly index: 6;
98
+ readonly name: "Up33";
99
+ readonly address: "0x388179D2FB0ABcE9b03068916aF8a3c4dfD023c8";
100
+ readonly taxSafe: false;
101
+ }, {
102
+ readonly index: 7;
103
+ readonly name: "SheriffV2";
104
+ readonly address: "0xBDB3EB0355981500f58C9bc77c3E61762844A146";
105
+ readonly taxSafe: true;
106
+ }, {
107
+ readonly index: 8;
108
+ readonly name: "SheriffAlgebra";
109
+ readonly address: "0xaC4da986100724983042Ec28c28db243E2f828CB";
110
+ readonly taxSafe: false;
111
+ }, {
112
+ readonly index: 9;
113
+ readonly name: "AeonAlgebra";
114
+ readonly address: "0x20615954FB87360139e7DdDB519359498EbD1904";
115
+ readonly taxSafe: false;
116
+ }, {
117
+ readonly index: 10;
118
+ readonly name: "CatnipV2";
119
+ readonly address: "0x5b2Ca358d56490Dc86224D502522314De7707237";
120
+ readonly taxSafe: true;
121
+ }, {
122
+ readonly index: 11;
123
+ readonly name: "PancakeSwapV2";
124
+ readonly address: "0x3B6e71A59553143937Fef74a7B50AFD24528786E";
125
+ readonly taxSafe: true;
126
+ }, {
127
+ readonly index: 12;
128
+ readonly name: "PancakeSwapV3";
129
+ readonly address: "0xD2Adac87bab4f0f99CF2a21c552c88d1C9825cCC";
130
+ readonly taxSafe: false;
131
+ }, {
132
+ readonly index: 13;
133
+ readonly name: "RobinSwapV2";
134
+ readonly address: "0xF694145F104c3C24f723301e160D2Ccf0Db31FE6";
135
+ readonly taxSafe: true;
136
+ }, {
137
+ readonly index: 14;
138
+ readonly name: "RobinSwapV3";
139
+ readonly address: "0x798f77D63b46b0E019de206E111e5ea5CC16BEc8";
140
+ readonly taxSafe: false;
141
+ }, {
142
+ readonly index: 15;
143
+ readonly name: "SushiSwapV3";
144
+ readonly address: "0xca3EA0Fd6E31f94c81B6586836790adE638313ED";
145
+ readonly taxSafe: false;
146
+ }, {
147
+ readonly index: 16;
148
+ readonly name: "GigaV2";
149
+ readonly address: "0xa379c7D17F7fEe735773879D4069886B117AB54a";
150
+ readonly taxSafe: true;
151
+ }, {
152
+ readonly index: 17;
153
+ readonly name: "GigaV3";
154
+ readonly address: "0xcAa612CDe3d3FbE97Be97eB5f79BC91597432d55";
155
+ readonly taxSafe: false;
156
+ }, {
157
+ readonly index: 18;
158
+ readonly name: "Flap";
159
+ readonly address: "0x6af2A4475C44d5833575150Bf7C3D3FE6Bf4F344";
160
+ readonly taxSafe: true;
161
+ }, {
162
+ readonly index: 19;
163
+ readonly name: "RamsesV3";
164
+ readonly address: "0xdBf182774C60932c6fe1Bf3FFaB8Ca28CCb0dC17";
165
+ readonly taxSafe: false;
166
+ }, {
167
+ readonly index: 20;
168
+ readonly name: "RamsesV2";
169
+ readonly address: "0x5fe3b873c222e76f7630b40052f07ee06196E6d3";
170
+ readonly taxSafe: true;
171
+ }];
172
+ /** Adapter indices currently eligible for Robinhood transfer-tax routes. */
173
+ export declare const ROBINHOOD_TAX_SAFE_ADAPTER_INDICES: readonly [0, 4, 7, 10, 11, 13, 16, 18, 20];
174
+ /** Current Robinhood transfer-tax-safe adapter metadata. */
175
+ export declare const ROBINHOOD_TAX_SAFE_ADAPTERS: readonly RobinhoodAdapter[];
176
+ /** EIP-712 domain used for Robinhood ERC-20 limit-order signatures. */
177
+ export declare const ROBINHOOD_LIMIT_ORDER_EIP712_DOMAIN: {
178
+ readonly name: "SwitchLimitOrder";
179
+ readonly version: "2";
180
+ readonly chainId: 4663;
181
+ readonly verifyingContract: "0x1E05115387f314398bbb1A808B25308E71150396";
182
+ };
183
+ /** Uniswap contracts used by the Robinhood Switch deployment. */
184
+ export declare const ROBINHOOD_UNISWAP_CONTRACTS: {
185
+ readonly v2Factory: "0x8bcEaA40B9AcdfAedF85AdF4FF01F5Ad6517937f";
186
+ readonly v3Factory: "0x1f7d7550B1b028f7571E69A784071F0205FD2EfA";
187
+ readonly v3QuoterV2: "0x33e885eD0Ec9bF04EcfB19341582aADCb4c8A9E7";
188
+ readonly v3SwapRouter02: "0xCaf681a66D020601342297493863E78C959E5cb2";
189
+ /** Canonical Uniswap V4 singleton and periphery deployments. */
190
+ readonly v4PoolManager: "0x8366a39cc670b4001a1121b8f6a443a643e40951";
191
+ readonly v4PositionDescriptor: "0x9639443158e8c5efa35bd45287bf2effd3d8dc06";
192
+ readonly v4PositionManager: "0x58daec3116aae6d93017baaea7749052e8a04fa7";
193
+ readonly v4Quoter: "0x8dc178efb8111bb0973dd9d722ebeff267c98f94";
194
+ readonly v4StateView: "0xf3334192d15450cdd385c8b70e03f9a6bd9e673b";
195
+ readonly v4UniversalRouter: "0x8876789976decbfcbbbe364623c63652db8c0904";
196
+ readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
197
+ };
198
+ export interface RobinhoodToken {
199
+ readonly address: string;
200
+ readonly symbol: string;
201
+ readonly name: string;
202
+ readonly decimals: number;
203
+ }
204
+ /**
205
+ * Tokens in the Switch Robinhood frontend's curated list.
206
+ *
207
+ * Community-token addresses must never be selected by symbol alone; clones
208
+ * can share the same symbol. The addresses, symbols, and decimals below were
209
+ * checked against Robinhood Chain on 2026-07-11.
210
+ */
211
+ export declare const ROBINHOOD_TOKENS: {
212
+ readonly WETH: {
213
+ readonly address: "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73";
214
+ readonly symbol: "WETH";
215
+ readonly name: "Wrapped Ether";
216
+ readonly decimals: 18;
217
+ };
218
+ readonly USDG: {
219
+ readonly address: "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168";
220
+ readonly symbol: "USDG";
221
+ readonly name: "Global Dollar";
222
+ readonly decimals: 6;
223
+ };
224
+ readonly VIRTUAL: {
225
+ readonly address: "0xc6911796042b15d7Fa4F6CDe69e245DdCd3d9c31";
226
+ readonly symbol: "VIRTUAL";
227
+ readonly name: "Virtuals Protocol";
228
+ readonly decimals: 18;
229
+ };
230
+ readonly CASHCAT: {
231
+ readonly address: "0x020bfC650A365f8BB26819deAAbF3E21291018b4";
232
+ readonly symbol: "CASHCAT";
233
+ readonly name: "Cash Cat";
234
+ readonly decimals: 18;
235
+ };
236
+ readonly WALLET: {
237
+ readonly address: "0x0339f5459FC690aC85F1782e15782A151b4A9E1b";
238
+ readonly symbol: "WALLET";
239
+ readonly name: "Robinhood Wallet";
240
+ readonly decimals: 18;
241
+ };
242
+ readonly SEEDCOIN: {
243
+ readonly address: "0x58f693A30F124E59b125F7c7b837b0F6bbAF5a45";
244
+ readonly symbol: "SEEDCOIN";
245
+ readonly name: "Seedcoin";
246
+ readonly decimals: 18;
247
+ };
248
+ readonly JUGGERNAUT: {
249
+ readonly address: "0xD7321801CAae694090694Ff55A9323139F043B88";
250
+ readonly symbol: "JUGGERNAUT";
251
+ readonly name: "The Juggernaut";
252
+ readonly decimals: 18;
253
+ };
254
+ readonly HOODRAT: {
255
+ readonly address: "0x8e62F281f282686fCa6dCB39288069a93fC23F1c";
256
+ readonly symbol: "HOODRAT";
257
+ readonly name: "Hoodrat";
258
+ readonly decimals: 18;
259
+ };
260
+ readonly DIH: {
261
+ readonly address: "0x17bb0C898254406b1Ea2e8E99B0C263e26c9E4a4";
262
+ readonly symbol: "DIH";
263
+ readonly name: "Dog In Hood";
264
+ readonly decimals: 18;
265
+ };
266
+ readonly KITSU: {
267
+ readonly address: "0x8d4dFaaA4198b6486E0293Fec914C2B6a821D4DC";
268
+ readonly symbol: "KITSU";
269
+ readonly name: "KITSU";
270
+ readonly decimals: 18;
271
+ };
272
+ readonly WEN: {
273
+ readonly address: "0xA80eb66b3E0CF66ccB46f8b8C9e7ff5803eEb820";
274
+ readonly symbol: "WEN";
275
+ readonly name: "Wen Lambo";
276
+ readonly decimals: 18;
277
+ };
278
+ readonly REPE: {
279
+ readonly address: "0x5266eeafF092D6136AB63D18B975A60a0Cc0C8f7";
280
+ readonly symbol: "REPE";
281
+ readonly name: "Robinhood Pepe";
282
+ readonly decimals: 18;
283
+ };
284
+ readonly TENDIES: {
285
+ readonly address: "0x45242320DBB855EeA8Fd36804C6487E10E97FCF9";
286
+ readonly symbol: "TENDIES";
287
+ readonly name: "TENDIES";
288
+ readonly decimals: 18;
289
+ };
290
+ readonly GME: {
291
+ readonly address: "0x7e86381A763F0Ecca2bDF27C54eAC403ddD48123";
292
+ readonly symbol: "GME";
293
+ readonly name: "GameStop";
294
+ readonly decimals: 18;
295
+ };
296
+ readonly TOKEN_4663: {
297
+ readonly address: "0xd4052415613B34Af236024B895574c467f65b6dD";
298
+ readonly symbol: "4663";
299
+ readonly name: "4663";
300
+ readonly decimals: 18;
301
+ };
302
+ readonly MARIAN: {
303
+ readonly address: "0x01637b14B7378B99dE75A64d50656d98488D9a4d";
304
+ readonly symbol: "MARIAN";
305
+ readonly name: "Lady Marian";
306
+ readonly decimals: 18;
307
+ };
308
+ readonly INDEX: {
309
+ readonly address: "0x56910D4409F3a0C78C64DD8D0545FF0705389870";
310
+ readonly symbol: "Index";
311
+ readonly name: "The Index";
312
+ readonly decimals: 18;
313
+ };
314
+ readonly VEX: {
315
+ readonly address: "0x8Ff92566f2e81BDd68EDfAa8cde73942A723796b";
316
+ readonly symbol: "VEX";
317
+ readonly name: "ProjectVex";
318
+ readonly decimals: 18;
319
+ };
320
+ readonly HOODIE: {
321
+ readonly address: "0xC72c01AAB5f5678dc1d6f5C6d2B417d91D402Ba3";
322
+ readonly symbol: "HOODIE";
323
+ readonly name: "HOODIE";
324
+ readonly decimals: 18;
325
+ };
326
+ readonly WISHBONE: {
327
+ readonly address: "0x77581054581B9c525E7dd7a0155DE43867532d03";
328
+ readonly symbol: "WISHBONE";
329
+ readonly name: "WISHBONE";
330
+ readonly decimals: 18;
331
+ };
332
+ readonly VLAD: {
333
+ readonly address: "0x31BE8f7485e36928C9De86566c62da82d4B6BF81";
334
+ readonly symbol: "VLAD";
335
+ readonly name: "The Green Bull";
336
+ readonly decimals: 18;
337
+ };
338
+ readonly AEON: {
339
+ readonly address: "0xd4c93eD1843606f92CccA078941f3d52A585982f";
340
+ readonly symbol: "AEON";
341
+ readonly name: "Aeon";
342
+ readonly decimals: 18;
343
+ };
344
+ };
345
+ /** Exact ERC-20 ordering used by the Switch Robinhood token dropdown. */
346
+ export declare const ROBINHOOD_FRONTEND_TOKEN_LIST: readonly [{
347
+ readonly address: "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73";
348
+ readonly symbol: "WETH";
349
+ readonly name: "Wrapped Ether";
350
+ readonly decimals: 18;
351
+ }, {
352
+ readonly address: "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168";
353
+ readonly symbol: "USDG";
354
+ readonly name: "Global Dollar";
355
+ readonly decimals: 6;
356
+ }, {
357
+ readonly address: "0xc6911796042b15d7Fa4F6CDe69e245DdCd3d9c31";
358
+ readonly symbol: "VIRTUAL";
359
+ readonly name: "Virtuals Protocol";
360
+ readonly decimals: 18;
361
+ }, {
362
+ readonly address: "0x020bfC650A365f8BB26819deAAbF3E21291018b4";
363
+ readonly symbol: "CASHCAT";
364
+ readonly name: "Cash Cat";
365
+ readonly decimals: 18;
366
+ }, {
367
+ readonly address: "0x0339f5459FC690aC85F1782e15782A151b4A9E1b";
368
+ readonly symbol: "WALLET";
369
+ readonly name: "Robinhood Wallet";
370
+ readonly decimals: 18;
371
+ }, {
372
+ readonly address: "0x58f693A30F124E59b125F7c7b837b0F6bbAF5a45";
373
+ readonly symbol: "SEEDCOIN";
374
+ readonly name: "Seedcoin";
375
+ readonly decimals: 18;
376
+ }, {
377
+ readonly address: "0xD7321801CAae694090694Ff55A9323139F043B88";
378
+ readonly symbol: "JUGGERNAUT";
379
+ readonly name: "The Juggernaut";
380
+ readonly decimals: 18;
381
+ }, {
382
+ readonly address: "0x8e62F281f282686fCa6dCB39288069a93fC23F1c";
383
+ readonly symbol: "HOODRAT";
384
+ readonly name: "Hoodrat";
385
+ readonly decimals: 18;
386
+ }, {
387
+ readonly address: "0x17bb0C898254406b1Ea2e8E99B0C263e26c9E4a4";
388
+ readonly symbol: "DIH";
389
+ readonly name: "Dog In Hood";
390
+ readonly decimals: 18;
391
+ }, {
392
+ readonly address: "0x8d4dFaaA4198b6486E0293Fec914C2B6a821D4DC";
393
+ readonly symbol: "KITSU";
394
+ readonly name: "KITSU";
395
+ readonly decimals: 18;
396
+ }, {
397
+ readonly address: "0xA80eb66b3E0CF66ccB46f8b8C9e7ff5803eEb820";
398
+ readonly symbol: "WEN";
399
+ readonly name: "Wen Lambo";
400
+ readonly decimals: 18;
401
+ }, {
402
+ readonly address: "0x5266eeafF092D6136AB63D18B975A60a0Cc0C8f7";
403
+ readonly symbol: "REPE";
404
+ readonly name: "Robinhood Pepe";
405
+ readonly decimals: 18;
406
+ }, {
407
+ readonly address: "0x45242320DBB855EeA8Fd36804C6487E10E97FCF9";
408
+ readonly symbol: "TENDIES";
409
+ readonly name: "TENDIES";
410
+ readonly decimals: 18;
411
+ }, {
412
+ readonly address: "0x7e86381A763F0Ecca2bDF27C54eAC403ddD48123";
413
+ readonly symbol: "GME";
414
+ readonly name: "GameStop";
415
+ readonly decimals: 18;
416
+ }, {
417
+ readonly address: "0xd4052415613B34Af236024B895574c467f65b6dD";
418
+ readonly symbol: "4663";
419
+ readonly name: "4663";
420
+ readonly decimals: 18;
421
+ }, {
422
+ readonly address: "0x01637b14B7378B99dE75A64d50656d98488D9a4d";
423
+ readonly symbol: "MARIAN";
424
+ readonly name: "Lady Marian";
425
+ readonly decimals: 18;
426
+ }, {
427
+ readonly address: "0x56910D4409F3a0C78C64DD8D0545FF0705389870";
428
+ readonly symbol: "Index";
429
+ readonly name: "The Index";
430
+ readonly decimals: 18;
431
+ }, {
432
+ readonly address: "0x8Ff92566f2e81BDd68EDfAa8cde73942A723796b";
433
+ readonly symbol: "VEX";
434
+ readonly name: "ProjectVex";
435
+ readonly decimals: 18;
436
+ }, {
437
+ readonly address: "0xC72c01AAB5f5678dc1d6f5C6d2B417d91D402Ba3";
438
+ readonly symbol: "HOODIE";
439
+ readonly name: "HOODIE";
440
+ readonly decimals: 18;
441
+ }, {
442
+ readonly address: "0x77581054581B9c525E7dd7a0155DE43867532d03";
443
+ readonly symbol: "WISHBONE";
444
+ readonly name: "WISHBONE";
445
+ readonly decimals: 18;
446
+ }, {
447
+ readonly address: "0x31BE8f7485e36928C9De86566c62da82d4B6BF81";
448
+ readonly symbol: "VLAD";
449
+ readonly name: "The Green Bull";
450
+ readonly decimals: 18;
451
+ }, {
452
+ readonly address: "0xd4c93eD1843606f92CccA078941f3d52A585982f";
453
+ readonly symbol: "AEON";
454
+ readonly name: "Aeon";
455
+ readonly decimals: 18;
456
+ }];
457
+ /**
458
+ * Tokens used to initialize the Robinhood swap UI.
459
+ *
460
+ * The current default pair is native ETH -> USDG. WETH remains in this set so
461
+ * native/wrapped lookup and token selection use the canonical deployment.
462
+ */
463
+ export declare const ROBINHOOD_FRONTEND_DEFAULT_TOKENS: readonly [{
464
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
465
+ readonly symbol: "ETH";
466
+ readonly name: "Ether";
467
+ readonly decimals: 18;
468
+ }, {
469
+ readonly address: "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73";
470
+ readonly symbol: "WETH";
471
+ readonly name: "Wrapped Ether";
472
+ readonly decimals: 18;
473
+ }, {
474
+ readonly address: "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168";
475
+ readonly symbol: "USDG";
476
+ readonly name: "Global Dollar";
477
+ readonly decimals: 6;
478
+ }, {
479
+ readonly address: "0xc6911796042b15d7Fa4F6CDe69e245DdCd3d9c31";
480
+ readonly symbol: "VIRTUAL";
481
+ readonly name: "Virtuals Protocol";
482
+ readonly decimals: 18;
483
+ }, {
484
+ readonly address: "0x020bfC650A365f8BB26819deAAbF3E21291018b4";
485
+ readonly symbol: "CASHCAT";
486
+ readonly name: "Cash Cat";
487
+ readonly decimals: 18;
488
+ }, {
489
+ readonly address: "0x56910D4409F3a0C78C64DD8D0545FF0705389870";
490
+ readonly symbol: "Index";
491
+ readonly name: "The Index";
492
+ readonly decimals: 18;
493
+ }];
494
+ /**
495
+ * Production trusted-hop addresses, ordered by routing usefulness.
496
+ *
497
+ * The 2026-07-16 audit combined Dexscreener pool connectivity with Switch tax
498
+ * simulation, then required multiple meaningful liquidity corridors. VEX is
499
+ * selectable but excluded because it is taxed; INDEX is excluded because its
500
+ * dominant liquidity currently depends on unsupported V4 hooks. Keep this
501
+ * list synchronized with the Robinhood backend and operator bot.
502
+ */
503
+ export declare const ROBINHOOD_TRUSTED_INTERMEDIATES: readonly ["0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73", "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168", "0xc6911796042b15d7Fa4F6CDe69e245DdCd3d9c31", "0x020bfC650A365f8BB26819deAAbF3E21291018b4", "0x8e62F281f282686fCa6dCB39288069a93fC23F1c", "0x45242320DBB855EeA8Fd36804C6487E10E97FCF9", "0xD7321801CAae694090694Ff55A9323139F043B88", "0x01637b14B7378B99dE75A64d50656d98488D9a4d", "0x0339f5459FC690aC85F1782e15782A151b4A9E1b"];
504
+ /** Preferred Robinhood fee tokens, from highest to lowest priority. */
505
+ export declare const ROBINHOOD_FEE_TOKEN_PRIORITY: readonly ["0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73", "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168", "0x0339f5459FC690aC85F1782e15782A151b4A9E1b", "0x58f693A30F124E59b125F7c7b837b0F6bbAF5a45", "0x020bfC650A365f8BB26819deAAbF3E21291018b4"];
506
+ /** Minimum directional tax data required for fee-mode selection. */
507
+ export interface RobinhoodTaxInfo {
508
+ isTaxToken: boolean;
509
+ buyTaxBps: number;
510
+ sellTaxBps: number;
511
+ }
512
+ /**
513
+ * Select the safer/preferred fee side for a Robinhood swap.
514
+ *
515
+ * Tax safety takes precedence over fee-token preference. Native ETH is treated
516
+ * as equivalent to WETH. `false` means fee on input; `true` means fee on output.
517
+ */
518
+ export declare function selectRobinhoodFeeOnOutput(from: string, to: string, fromTax: RobinhoodTaxInfo, toTax: RobinhoodTaxInfo): boolean;
519
+ export interface RobinhoodQuoteParams {
520
+ from: string;
521
+ to: string;
522
+ /** Raw integer input amount in the input token's smallest unit. */
523
+ amount: string | bigint;
524
+ sender?: string;
525
+ receiver?: string;
526
+ /** Slippage in basis points. */
527
+ slippage?: number;
528
+ /** Partner fee in basis points. */
529
+ fee?: number;
530
+ partnerAddress?: string;
531
+ feeOnOutput?: boolean;
532
+ adapters?: string | readonly number[];
533
+ }
534
+ /** Build a Robinhood quote URL with the required network value included. */
535
+ export declare function buildRobinhoodQuoteUrl(params: RobinhoodQuoteParams, apiBase?: string): string;
536
+ //# sourceMappingURL=robinhood.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"robinhood.d.ts","sourceRoot":"","sources":["../../src/networks/robinhood.ts"],"names":[],"mappings":"AAEA,kDAAkD;AAClD,eAAO,MAAM,iBAAiB,EAAG,WAAoB,CAAC;AAEtD,wCAAwC;AACxC,eAAO,MAAM,eAAe;;;;;;;;;;CAUlB,CAAC;AAEX,4DAA4D;AAC5D,eAAO,M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