@b3dotfun/sdk 0.0.63-test.0 → 0.0.63

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 (66) hide show
  1. package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.d.ts +34 -0
  2. package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.js +275 -0
  3. package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +9 -0
  4. package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.js +288 -0
  5. package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +11 -0
  6. package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.js +33 -0
  7. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +10 -2
  8. package/dist/cjs/anyspend/react/components/common/OrderDetailsCollapsible.js +2 -3
  9. package/dist/cjs/anyspend/react/components/index.d.ts +5 -1
  10. package/dist/cjs/anyspend/react/components/index.js +11 -3
  11. package/dist/cjs/anyspend/react/hooks/useAnyspendFlow.d.ts +25 -3
  12. package/dist/cjs/anyspend/react/hooks/useAnyspendFlow.js +30 -8
  13. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +116 -0
  14. package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +1 -1
  15. package/dist/cjs/anyspend/types/api.d.ts +665 -3
  16. package/dist/cjs/anyspend/utils/orderPayload.js +4 -0
  17. package/dist/cjs/global-account/react/components/B3DynamicModal.js +10 -1
  18. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +2 -2
  19. package/dist/cjs/global-account/react/hooks/useAuthentication.d.ts +2 -2
  20. package/dist/cjs/global-account/react/hooks/useAuthentication.js +7 -2
  21. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +31 -1
  22. package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.d.ts +34 -0
  23. package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.js +269 -0
  24. package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +9 -0
  25. package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.js +285 -0
  26. package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +11 -0
  27. package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.js +30 -0
  28. package/dist/esm/anyspend/react/components/common/OrderDetails.js +10 -2
  29. package/dist/esm/anyspend/react/components/common/OrderDetailsCollapsible.js +2 -3
  30. package/dist/esm/anyspend/react/components/index.d.ts +5 -1
  31. package/dist/esm/anyspend/react/components/index.js +5 -1
  32. package/dist/esm/anyspend/react/hooks/useAnyspendFlow.d.ts +25 -3
  33. package/dist/esm/anyspend/react/hooks/useAnyspendFlow.js +30 -8
  34. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +116 -0
  35. package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +1 -1
  36. package/dist/esm/anyspend/types/api.d.ts +665 -3
  37. package/dist/esm/anyspend/utils/orderPayload.js +4 -0
  38. package/dist/esm/global-account/react/components/B3DynamicModal.js +11 -2
  39. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +2 -2
  40. package/dist/esm/global-account/react/hooks/useAuthentication.d.ts +2 -2
  41. package/dist/esm/global-account/react/hooks/useAuthentication.js +7 -2
  42. package/dist/esm/global-account/react/stores/useModalStore.d.ts +31 -1
  43. package/dist/types/anyspend/react/components/AnySpendCustomExactIn.d.ts +34 -0
  44. package/dist/types/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +9 -0
  45. package/dist/types/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +11 -0
  46. package/dist/types/anyspend/react/components/index.d.ts +5 -1
  47. package/dist/types/anyspend/react/hooks/useAnyspendFlow.d.ts +25 -3
  48. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +116 -0
  49. package/dist/types/anyspend/types/api.d.ts +665 -3
  50. package/dist/types/global-account/react/hooks/useAuthentication.d.ts +2 -2
  51. package/dist/types/global-account/react/stores/useModalStore.d.ts +31 -1
  52. package/package.json +3 -3
  53. package/src/anyspend/react/components/AnySpendCustomExactIn.tsx +595 -0
  54. package/src/anyspend/react/components/AnySpendStakeB3ExactIn.tsx +522 -0
  55. package/src/anyspend/react/components/AnySpendStakeUpsideExactIn.tsx +73 -0
  56. package/src/anyspend/react/components/common/OrderDetails.tsx +10 -2
  57. package/src/anyspend/react/components/common/OrderDetailsCollapsible.tsx +2 -3
  58. package/src/anyspend/react/components/index.ts +5 -1
  59. package/src/anyspend/react/hooks/useAnyspendFlow.ts +38 -8
  60. package/src/anyspend/react/hooks/useAnyspendQuote.ts +1 -1
  61. package/src/anyspend/types/api.ts +669 -1
  62. package/src/anyspend/utils/orderPayload.ts +5 -1
  63. package/src/global-account/react/components/B3DynamicModal.tsx +11 -1
  64. package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +2 -2
  65. package/src/global-account/react/hooks/useAuthentication.ts +10 -2
  66. package/src/global-account/react/stores/useModalStore.ts +34 -0
@@ -98,6 +98,11 @@ export interface paths {
98
98
  * @example USD
99
99
  */
100
100
  payment_method?: string;
101
+ /**
102
+ * @description Optional purchase method filter
103
+ * @example USDC
104
+ */
105
+ purchase_method?: string;
101
106
  /**
102
107
  * @description Optional array of chain IDs to filter by
103
108
  * @example [
@@ -227,6 +232,108 @@ export interface paths {
227
232
  };
228
233
  };
229
234
  };
235
+ "/onramp/coinbase/session-token": {
236
+ /**
237
+ * Create Coinbase session token
238
+ * @description Generates a Coinbase Onramp session token that can be reused when constructing buy URLs.
239
+ */
240
+ post: {
241
+ requestBody: {
242
+ content: {
243
+ "application/json": components["schemas"]["CoinbaseSessionTokenRequest"];
244
+ };
245
+ };
246
+ responses: {
247
+ /** @description Session token created successfully */
248
+ 200: {
249
+ content: {
250
+ "application/json": components["schemas"]["CoinbaseSessionTokenResponse"];
251
+ };
252
+ };
253
+ /** @description Bad request */
254
+ 400: {
255
+ content: {
256
+ "application/json": {
257
+ /** @example false */
258
+ success: boolean;
259
+ /** @example Bad request */
260
+ message: string;
261
+ /** @example 400 */
262
+ statusCode: number;
263
+ };
264
+ };
265
+ };
266
+ };
267
+ };
268
+ };
269
+ "/onramp/coinbase/onramp-url": {
270
+ /**
271
+ * Create Coinbase onramp URL
272
+ * @description Creates a Coinbase Onramp buy URL and optionally returns a session token for reuse.
273
+ */
274
+ post: {
275
+ requestBody: {
276
+ content: {
277
+ "application/json": components["schemas"]["CoinbaseOnrampUrlRequest"];
278
+ };
279
+ };
280
+ responses: {
281
+ /** @description Onramp URL created successfully */
282
+ 200: {
283
+ content: {
284
+ "application/json": components["schemas"]["CoinbaseOnrampUrlResponse"];
285
+ };
286
+ };
287
+ /** @description Bad request */
288
+ 400: {
289
+ content: {
290
+ "application/json": {
291
+ /** @example false */
292
+ success: boolean;
293
+ /** @example Bad request */
294
+ message: string;
295
+ /** @example 400 */
296
+ statusCode: number;
297
+ };
298
+ };
299
+ };
300
+ };
301
+ };
302
+ };
303
+ "/onramp/coinbase/direct-url": {
304
+ /**
305
+ * Generate direct Coinbase onramp URL
306
+ * @description Generates a direct Coinbase Onramp URL along with the session token backing it.
307
+ */
308
+ post: {
309
+ requestBody: {
310
+ content: {
311
+ "application/json": components["schemas"]["CoinbaseDirectOnrampRequest"];
312
+ };
313
+ };
314
+ responses: {
315
+ /** @description Direct onramp URL generated successfully */
316
+ 200: {
317
+ content: {
318
+ "application/json": components["schemas"]["CoinbaseDirectOnrampResponse"];
319
+ };
320
+ };
321
+ /** @description Bad request */
322
+ 400: {
323
+ content: {
324
+ "application/json": {
325
+ /** @example false */
326
+ success: boolean;
327
+ /** @example Bad request */
328
+ message: string;
329
+ /** @example 400 */
330
+ statusCode: number;
331
+ };
332
+ };
333
+ };
334
+ };
335
+ };
336
+ };
230
337
  "/onramp/stripe/supported": {
231
338
  /**
232
339
  * Check Stripe support
@@ -474,6 +581,57 @@ export interface paths {
474
581
  };
475
582
  };
476
583
  };
584
+ "/orders/{orderId}/comprehensive": {
585
+ /**
586
+ * Get comprehensive order detail
587
+ * @description Retrieves an order with associated transactions, settlement data, and awarded points without sanitization.
588
+ */
589
+ get: {
590
+ parameters: {
591
+ path: {
592
+ /**
593
+ * @description Unique order identifier
594
+ * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
595
+ */
596
+ orderId: string;
597
+ };
598
+ };
599
+ responses: {
600
+ /** @description Comprehensive order retrieved successfully */
601
+ 200: {
602
+ content: {
603
+ "application/json": components["schemas"]["ComprehensiveOrderResponse"];
604
+ };
605
+ };
606
+ /** @description Bad request */
607
+ 400: {
608
+ content: {
609
+ "application/json": {
610
+ /** @example false */
611
+ success: boolean;
612
+ /** @example Bad request */
613
+ message: string;
614
+ /** @example 400 */
615
+ statusCode: number;
616
+ };
617
+ };
618
+ };
619
+ /** @description Order not found */
620
+ 404: {
621
+ content: {
622
+ "application/json": {
623
+ /** @example false */
624
+ success: boolean;
625
+ /** @example Order not found */
626
+ message: string;
627
+ /** @example 404 */
628
+ statusCode: number;
629
+ };
630
+ };
631
+ };
632
+ };
633
+ };
634
+ };
477
635
  "/orders/quote": {
478
636
  /**
479
637
  * Get anyspend quote
@@ -530,6 +688,48 @@ export interface paths {
530
688
  */
531
689
  onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
532
690
  }
691
+ | {
692
+ /**
693
+ * @description Order type for X402 swap
694
+ * @enum {string}
695
+ */
696
+ type: "x402_swap";
697
+ /**
698
+ * @description Source chain ID
699
+ * @example 8453
700
+ */
701
+ srcChain: number;
702
+ /**
703
+ * @description Destination chain ID
704
+ * @example 8453
705
+ */
706
+ dstChain: number;
707
+ /**
708
+ * @description Source token contract address
709
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
710
+ */
711
+ srcTokenAddress: string;
712
+ /**
713
+ * @description Destination token contract address
714
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
715
+ */
716
+ dstTokenAddress: string;
717
+ /**
718
+ * @description Recipient address
719
+ * @example 0x55c71fca5e01cf246718748ae540473e608d0282
720
+ */
721
+ recipientAddress?: string;
722
+ /**
723
+ * @description Amount to quote
724
+ * @example 1000000
725
+ */
726
+ amount: string;
727
+ /**
728
+ * @description Optional onramp vendor
729
+ * @enum {string}
730
+ */
731
+ onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
732
+ }
533
733
  | {
534
734
  /**
535
735
  * @description Order type for custom execution
@@ -673,6 +873,48 @@ export interface paths {
673
873
  * @enum {string}
674
874
  */
675
875
  onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
876
+ }
877
+ | {
878
+ /**
879
+ * @description Order type for custom exact in execution
880
+ * @enum {string}
881
+ */
882
+ type: "custom_exact_in";
883
+ /**
884
+ * @description Source chain ID
885
+ * @example 1
886
+ */
887
+ srcChain: number;
888
+ /**
889
+ * @description Destination chain ID
890
+ * @example 8453
891
+ */
892
+ dstChain: number;
893
+ /**
894
+ * @description Source token contract address
895
+ * @example 0x0000000000000000000000000000000000000000
896
+ */
897
+ srcTokenAddress: string;
898
+ /**
899
+ * @description Destination token contract address
900
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
901
+ */
902
+ dstTokenAddress: string;
903
+ /**
904
+ * @description Recipient address
905
+ * @example 0x55c71fca5e01cf246718748ae540473e608d0282
906
+ */
907
+ recipientAddress?: string;
908
+ /**
909
+ * @description Destination amount for exact in execution
910
+ * @example 1000000000000000000
911
+ */
912
+ amount: string;
913
+ /**
914
+ * @description Optional onramp vendor
915
+ * @enum {string}
916
+ */
917
+ onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
676
918
  };
677
919
  };
678
920
  };
@@ -992,7 +1234,7 @@ export interface components {
992
1234
  stripeAmountInCents?: number;
993
1235
  /**
994
1236
  * Format: ipv4
995
- * @description Optional IP address for location detection
1237
+ * @description Optional IP address for location detection. Required for Stripe onramp requests in production and omitted from standard order responses.
996
1238
  * @example 192.168.1.1
997
1239
  */
998
1240
  ipAddress?: string;
@@ -1033,6 +1275,196 @@ export interface components {
1033
1275
  */
1034
1276
  redirectUrl?: string;
1035
1277
  };
1278
+ /** @description Request body to create a Coinbase session token */
1279
+ CoinbaseSessionTokenRequest: {
1280
+ /**
1281
+ * @description Wallet address that will receive purchased assets
1282
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1283
+ */
1284
+ destinationAddress: string;
1285
+ /**
1286
+ * @description List of supported blockchain identifiers
1287
+ * @example [
1288
+ * "base"
1289
+ * ]
1290
+ */
1291
+ blockchains: string[];
1292
+ /**
1293
+ * @description Optional list of asset symbols to whitelist
1294
+ * @example [
1295
+ * "USDC"
1296
+ * ]
1297
+ */
1298
+ assets?: string[];
1299
+ };
1300
+ /** @description Coinbase session token result */
1301
+ CoinbaseSessionTokenResponseData: {
1302
+ /**
1303
+ * @description Session token identifier
1304
+ * @example token_123
1305
+ */
1306
+ token: string;
1307
+ /**
1308
+ * @description Optional session channel identifier
1309
+ * @example channel_abc
1310
+ */
1311
+ channelId?: string;
1312
+ };
1313
+ CoinbaseSessionTokenResponse: {
1314
+ /** @example true */
1315
+ success: boolean;
1316
+ /** @example Session token created successfully */
1317
+ message: string;
1318
+ data: components["schemas"]["CoinbaseSessionTokenResponseData"];
1319
+ /** @example 200 */
1320
+ statusCode: number;
1321
+ };
1322
+ /** @description Request body to create a Coinbase onramp URL */
1323
+ CoinbaseOnrampUrlRequest: {
1324
+ /**
1325
+ * @description Preset fiat amount for purchase
1326
+ * @example 100
1327
+ */
1328
+ presetFiatAmount: string;
1329
+ /**
1330
+ * @description Fiat currency code
1331
+ * @example USD
1332
+ */
1333
+ fiatCurrency: string;
1334
+ /**
1335
+ * @description Default asset to purchase
1336
+ * @example USDC
1337
+ */
1338
+ defaultAsset: string;
1339
+ /**
1340
+ * @description Default payment method identifier
1341
+ * @example CARD
1342
+ */
1343
+ defaultPaymentMethod: string;
1344
+ /**
1345
+ * @description Destination wallet address
1346
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1347
+ */
1348
+ destinationAddress: string;
1349
+ /**
1350
+ * @description Supported blockchains for the session
1351
+ * @example [
1352
+ * "base"
1353
+ * ]
1354
+ */
1355
+ blockchains: string[];
1356
+ /**
1357
+ * @description ISO country code of the end user
1358
+ * @example US
1359
+ */
1360
+ country: string;
1361
+ /**
1362
+ * @description Associated AnySpend order ID
1363
+ * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
1364
+ */
1365
+ orderId: string;
1366
+ /**
1367
+ * @description Redirect URL after completing the purchase
1368
+ * @example https://www.anyspend.com/orders
1369
+ */
1370
+ redirectUrl: string;
1371
+ /**
1372
+ * @description Whether to create and embed a session token automatically
1373
+ * @default false
1374
+ */
1375
+ useSessionToken: boolean;
1376
+ };
1377
+ /** @description Coinbase onramp URL result */
1378
+ CoinbaseOnrampUrlResponseData: {
1379
+ /**
1380
+ * @description Coinbase-hosted onramp URL
1381
+ * @example https://pay.coinbase.com/buy/select-asset?...
1382
+ */
1383
+ url: string;
1384
+ /**
1385
+ * @description Optional session token created alongside the URL
1386
+ * @example token_123
1387
+ */
1388
+ sessionToken?: string;
1389
+ };
1390
+ CoinbaseOnrampUrlResponse: {
1391
+ /** @example true */
1392
+ success: boolean;
1393
+ /** @example Onramp URL created successfully */
1394
+ message: string;
1395
+ data: components["schemas"]["CoinbaseOnrampUrlResponseData"];
1396
+ /** @example 200 */
1397
+ statusCode: number;
1398
+ };
1399
+ /** @description Request body to generate a direct Coinbase onramp URL */
1400
+ CoinbaseDirectOnrampRequest: {
1401
+ /**
1402
+ * @description Destination wallet address
1403
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1404
+ */
1405
+ destinationAddress: string;
1406
+ /**
1407
+ * @description Supported blockchain identifiers
1408
+ * @example [
1409
+ * "base"
1410
+ * ]
1411
+ */
1412
+ blockchains: string[];
1413
+ /**
1414
+ * @description Optional list of asset symbols to whitelist
1415
+ * @example [
1416
+ * "USDC"
1417
+ * ]
1418
+ */
1419
+ assets?: string[];
1420
+ /**
1421
+ * @description Preset fiat amount
1422
+ * @example 100
1423
+ */
1424
+ presetFiatAmount?: string;
1425
+ /**
1426
+ * @description Fiat currency code
1427
+ * @example USD
1428
+ */
1429
+ fiatCurrency?: string;
1430
+ /**
1431
+ * @description Default asset to purchase
1432
+ * @example USDC
1433
+ */
1434
+ defaultAsset?: string;
1435
+ /**
1436
+ * @description Default payment method identifier
1437
+ * @example CARD
1438
+ */
1439
+ defaultPaymentMethod?: string;
1440
+ /**
1441
+ * @description Redirect URL after payment completion
1442
+ * @example https://www.anyspend.com/orders
1443
+ */
1444
+ redirectUrl?: string;
1445
+ };
1446
+ /** @description Direct Coinbase onramp URL result */
1447
+ CoinbaseDirectOnrampResponseData: {
1448
+ /**
1449
+ * @description Coinbase onramp URL that can be used directly
1450
+ * @example https://pay.coinbase.com/buy/select-asset?...
1451
+ */
1452
+ url: string;
1453
+ /**
1454
+ * @description Session token bound to the generated URL
1455
+ * @example token_123
1456
+ */
1457
+ sessionToken: string;
1458
+ };
1459
+ CoinbaseDirectOnrampResponse: {
1460
+ /** @example true */
1461
+ success: boolean;
1462
+ /** @example Direct onramp URL generated successfully */
1463
+ message: string;
1464
+ data: components["schemas"]["CoinbaseDirectOnrampResponseData"];
1465
+ /** @example 200 */
1466
+ statusCode: number;
1467
+ };
1036
1468
  /** @description Tournament details */
1037
1469
  Tournament: {
1038
1470
  /**
@@ -1126,6 +1558,14 @@ export interface components {
1126
1558
  */
1127
1559
  expectedDstAmount: string;
1128
1560
  };
1561
+ /** @description X402 swap-specific payload */
1562
+ X402SwapPayload: {
1563
+ /**
1564
+ * @description Expected amount of destination tokens
1565
+ * @example 990000
1566
+ */
1567
+ expectedDstAmount: string;
1568
+ };
1129
1569
  /** @description HypeDuel-specific payload */
1130
1570
  HypeDuelPayload: {
1131
1571
  /**
@@ -1157,6 +1597,43 @@ export interface components {
1157
1597
  */
1158
1598
  amount: string;
1159
1599
  };
1600
+ /** @description Custom exact in execution payload */
1601
+ CustomExactInPayload: {
1602
+ /**
1603
+ * @description Amount used when executing the destination function
1604
+ * @example 1000000000000000000
1605
+ */
1606
+ amount: string;
1607
+ /**
1608
+ * @description Expected amount of destination tokens
1609
+ * @example 1000000000000000000
1610
+ */
1611
+ expectedDstAmount: string;
1612
+ /** @description JSON stringified ABI that includes the destination function */
1613
+ functionAbi: string;
1614
+ /**
1615
+ * @description Destination function name
1616
+ * @example stake
1617
+ */
1618
+ functionName: string;
1619
+ /** @description Destination function arguments (template variables allowed) */
1620
+ functionArgs: string[];
1621
+ /**
1622
+ * @description Destination contract address
1623
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1624
+ */
1625
+ to: string;
1626
+ /**
1627
+ * @description Optional spender address for token approval
1628
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1629
+ */
1630
+ spenderAddress?: string;
1631
+ /**
1632
+ * @description Optional action identifier used for display purposes
1633
+ * @example stake B3
1634
+ */
1635
+ action?: string;
1636
+ };
1160
1637
  /** @description NFT minting payload */
1161
1638
  MintNftPayload: {
1162
1639
  /**
@@ -1212,6 +1689,11 @@ export interface components {
1212
1689
  srcToken: components["schemas"]["Token"];
1213
1690
  dstToken: components["schemas"]["Token"];
1214
1691
  };
1692
+ /** @description X402 swap metadata for display purposes */
1693
+ X402SwapMetadata: {
1694
+ srcToken: components["schemas"]["Token"];
1695
+ dstToken: components["schemas"]["Token"];
1696
+ };
1215
1697
  /** @description HypeDuel metadata for display purposes */
1216
1698
  HypeDuelMetadata: {
1217
1699
  srcToken: components["schemas"]["Token"];
@@ -1362,6 +1844,15 @@ export interface components {
1362
1844
  payload: components["schemas"]["SwapPayload"];
1363
1845
  metadata: components["schemas"]["SwapMetadata"];
1364
1846
  };
1847
+ X402SwapOrder: components["schemas"]["BaseOrder"] & {
1848
+ /**
1849
+ * @description Order type
1850
+ * @enum {string}
1851
+ */
1852
+ type: "x402_swap";
1853
+ payload: components["schemas"]["X402SwapPayload"];
1854
+ metadata: components["schemas"]["X402SwapMetadata"];
1855
+ };
1365
1856
  HypeDuelOrder: components["schemas"]["BaseOrder"] & {
1366
1857
  /**
1367
1858
  * @description Order type
@@ -1380,6 +1871,15 @@ export interface components {
1380
1871
  payload: components["schemas"]["CustomPayload"];
1381
1872
  metadata: components["schemas"]["CustomMetadata"];
1382
1873
  };
1874
+ CustomExactInOrder: components["schemas"]["BaseOrder"] & {
1875
+ /**
1876
+ * @description Order type
1877
+ * @enum {string}
1878
+ */
1879
+ type: "custom_exact_in";
1880
+ payload: components["schemas"]["CustomExactInPayload"];
1881
+ metadata: components["schemas"]["CustomMetadata"];
1882
+ };
1383
1883
  MintNftOrder: components["schemas"]["BaseOrder"] & {
1384
1884
  /**
1385
1885
  * @description Order type
@@ -1409,8 +1909,10 @@ export interface components {
1409
1909
  };
1410
1910
  Order:
1411
1911
  | components["schemas"]["SwapOrder"]
1912
+ | components["schemas"]["X402SwapOrder"]
1412
1913
  | components["schemas"]["HypeDuelOrder"]
1413
1914
  | components["schemas"]["CustomOrder"]
1915
+ | components["schemas"]["CustomExactInOrder"]
1414
1916
  | components["schemas"]["MintNftOrder"]
1415
1917
  | components["schemas"]["JoinTournamentOrder"]
1416
1918
  | components["schemas"]["FundTournamentOrder"];
@@ -1462,6 +1964,54 @@ export interface components {
1462
1964
  */
1463
1965
  creatorAddress?: string;
1464
1966
  };
1967
+ /** @description X402 swap order request */
1968
+ X402SwapOrderRequest: {
1969
+ /**
1970
+ * @description Order type
1971
+ * @enum {string}
1972
+ */
1973
+ type: "x402_swap";
1974
+ /**
1975
+ * @description Address to receive the destination tokens
1976
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1977
+ */
1978
+ recipientAddress: string;
1979
+ /**
1980
+ * @description Source chain ID
1981
+ * @example 8453
1982
+ */
1983
+ srcChain: number;
1984
+ /**
1985
+ * @description Destination chain ID
1986
+ * @example 8453
1987
+ */
1988
+ dstChain: number;
1989
+ /**
1990
+ * @description Source token contract address
1991
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1992
+ */
1993
+ srcTokenAddress: string;
1994
+ /**
1995
+ * @description Destination token contract address
1996
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1997
+ */
1998
+ dstTokenAddress: string;
1999
+ /**
2000
+ * @description Amount of source tokens to swap
2001
+ * @example 1000000
2002
+ */
2003
+ srcAmount: string;
2004
+ payload: components["schemas"]["SwapPayload"];
2005
+ metadata: components["schemas"]["SwapMetadata"];
2006
+ /** @description Optional partner identifier */
2007
+ partnerId?: string;
2008
+ onramp?: components["schemas"]["Onramp"];
2009
+ /**
2010
+ * @description Optional address of the order creator
2011
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
2012
+ */
2013
+ creatorAddress?: string;
2014
+ };
1465
2015
  /** @description HypeDuel order request */
1466
2016
  HypeDuelOrderRequest: {
1467
2017
  /**
@@ -1558,6 +2108,54 @@ export interface components {
1558
2108
  */
1559
2109
  creatorAddress?: string;
1560
2110
  };
2111
+ /** @description Custom exact in order request */
2112
+ CustomExactInOrderRequest: {
2113
+ /**
2114
+ * @description Order type
2115
+ * @enum {string}
2116
+ */
2117
+ type: "custom_exact_in";
2118
+ /**
2119
+ * @description Address to receive the destination tokens
2120
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
2121
+ */
2122
+ recipientAddress: string;
2123
+ /**
2124
+ * @description Source chain ID for payment
2125
+ * @example 1
2126
+ */
2127
+ srcChain: number;
2128
+ /**
2129
+ * @description Destination chain ID where execution will occur
2130
+ * @example 8453
2131
+ */
2132
+ dstChain: number;
2133
+ /**
2134
+ * @description Payment token contract address
2135
+ * @example 0xA0b86a33E6441E8A91DEF8f5663ACb4C9B4a1234
2136
+ */
2137
+ srcTokenAddress: string;
2138
+ /**
2139
+ * @description Destination token contract address
2140
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
2141
+ */
2142
+ dstTokenAddress: string;
2143
+ /**
2144
+ * @description Payment amount
2145
+ * @example 1000000
2146
+ */
2147
+ srcAmount: string;
2148
+ payload: components["schemas"]["CustomExactInPayload"];
2149
+ metadata: components["schemas"]["CustomMetadata"];
2150
+ /** @description Optional partner identifier */
2151
+ partnerId?: string;
2152
+ onramp?: components["schemas"]["Onramp"];
2153
+ /**
2154
+ * @description Optional address of the order creator
2155
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
2156
+ */
2157
+ creatorAddress?: string;
2158
+ };
1561
2159
  /** @description Mint NFT order request */
1562
2160
  MintNftOrderRequest: {
1563
2161
  /**
@@ -1704,8 +2302,10 @@ export interface components {
1704
2302
  };
1705
2303
  OrderRequest:
1706
2304
  | components["schemas"]["SwapOrderRequest"]
2305
+ | components["schemas"]["X402SwapOrderRequest"]
1707
2306
  | components["schemas"]["HypeDuelOrderRequest"]
1708
2307
  | components["schemas"]["CustomOrderRequest"]
2308
+ | components["schemas"]["CustomExactInOrderRequest"]
1709
2309
  | components["schemas"]["MintNftOrderRequest"]
1710
2310
  | components["schemas"]["JoinTournamentOrderRequest"]
1711
2311
  | components["schemas"]["FundTournamentOrderRequest"];
@@ -1833,6 +2433,74 @@ export interface components {
1833
2433
  */
1834
2434
  createdAt: number;
1835
2435
  };
2436
+ /** @description Points awarded for an order */
2437
+ OrderPointsTransaction: {
2438
+ /**
2439
+ * @description Unique identifier for the points transaction
2440
+ * @example points_123
2441
+ */
2442
+ id: string;
2443
+ /**
2444
+ * @description Timestamp associated with the points event
2445
+ * @example 2025-07-12T19:23:45.000Z
2446
+ */
2447
+ time: string;
2448
+ /**
2449
+ * @description Address that received the points
2450
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
2451
+ */
2452
+ userAddress: string;
2453
+ /**
2454
+ * @description Associated order ID
2455
+ * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
2456
+ */
2457
+ orderId: string;
2458
+ /**
2459
+ * @description USD notional used for points calculation
2460
+ * @example 125.75
2461
+ */
2462
+ usdValue: number;
2463
+ /**
2464
+ * @description Order type associated with the points
2465
+ * @example swap
2466
+ */
2467
+ orderType: string;
2468
+ /**
2469
+ * @description Points multiplier that was applied
2470
+ * @example 1.5
2471
+ */
2472
+ multiplier: number;
2473
+ /**
2474
+ * @description Total points awarded
2475
+ * @example 100
2476
+ */
2477
+ points: number;
2478
+ };
2479
+ ComprehensiveExecuteTx: components["schemas"]["ExecuteTx"] & {
2480
+ /**
2481
+ * @description Execution status reported by the system
2482
+ * @example success
2483
+ */
2484
+ status: string;
2485
+ };
2486
+ /** @description Full order detail including all associated transactions and points */
2487
+ ComprehensiveOrderDetail: {
2488
+ order: components["schemas"]["Order"];
2489
+ depositTxs: components["schemas"]["DepositTx"][];
2490
+ relayTxs: components["schemas"]["RelayTx"][];
2491
+ executeTx: components["schemas"]["ComprehensiveExecuteTx"] | null;
2492
+ refundTxs: components["schemas"]["RefundTx"][];
2493
+ points: components["schemas"]["OrderPointsTransaction"] | null;
2494
+ };
2495
+ ComprehensiveOrderResponse: {
2496
+ /** @example true */
2497
+ success: boolean;
2498
+ /** @example Get comprehensive order detail successfully */
2499
+ message: string;
2500
+ data: components["schemas"]["ComprehensiveOrderDetail"];
2501
+ /** @example 200 */
2502
+ statusCode: number;
2503
+ };
1836
2504
  /** @description NFT contract details */
1837
2505
  NftContract: {
1838
2506
  /**