@b3dotfun/sdk 0.0.5-alpha.6 → 0.0.5

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 (93) hide show
  1. package/dist/cjs/anyspend/constants/index.js +2 -2
  2. package/dist/cjs/anyspend/react/components/AnySpend.js +2 -2
  3. package/dist/cjs/anyspend/react/components/index.d.ts +5 -7
  4. package/dist/cjs/anyspend/react/components/index.js +11 -15
  5. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
  6. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +3 -4
  7. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +0 -10
  8. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -10
  9. package/dist/cjs/anyspend/services/anyspend.d.ts +1 -7
  10. package/dist/cjs/anyspend/services/anyspend.js +2 -3
  11. package/dist/cjs/anyspend/types/order.d.ts +0 -18
  12. package/dist/cjs/anyspend/types/order.js +0 -1
  13. package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +0 -50
  14. package/dist/cjs/anyspend/types/req-res/createOrder.js +0 -1
  15. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -35
  16. package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +0 -25
  17. package/dist/cjs/global-account/react/hooks/index.d.ts +1 -2
  18. package/dist/cjs/global-account/react/hooks/index.js +1 -3
  19. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.d.ts +1 -5
  20. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +13 -74
  21. package/dist/cjs/shared/constants/chains/supported.d.ts +3 -13
  22. package/dist/cjs/shared/constants/chains/supported.js +9 -15
  23. package/dist/esm/anyspend/constants/index.js +2 -2
  24. package/dist/esm/anyspend/react/components/AnySpend.js +2 -2
  25. package/dist/esm/anyspend/react/components/index.d.ts +5 -7
  26. package/dist/esm/anyspend/react/components/index.js +5 -7
  27. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
  28. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +4 -5
  29. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +0 -10
  30. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -10
  31. package/dist/esm/anyspend/services/anyspend.d.ts +1 -7
  32. package/dist/esm/anyspend/services/anyspend.js +2 -3
  33. package/dist/esm/anyspend/types/order.d.ts +0 -18
  34. package/dist/esm/anyspend/types/order.js +0 -1
  35. package/dist/esm/anyspend/types/req-res/createOrder.d.ts +0 -50
  36. package/dist/esm/anyspend/types/req-res/createOrder.js +0 -1
  37. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -35
  38. package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +0 -25
  39. package/dist/esm/global-account/react/hooks/index.d.ts +1 -2
  40. package/dist/esm/global-account/react/hooks/index.js +0 -1
  41. package/dist/esm/global-account/react/hooks/useTokenFromUrl.d.ts +1 -5
  42. package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +13 -73
  43. package/dist/esm/shared/constants/chains/supported.d.ts +3 -13
  44. package/dist/esm/shared/constants/chains/supported.js +8 -13
  45. package/dist/styles/index.css +1 -1
  46. package/dist/types/anyspend/react/components/index.d.ts +5 -7
  47. package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
  48. package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +0 -10
  49. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -10
  50. package/dist/types/anyspend/services/anyspend.d.ts +1 -7
  51. package/dist/types/anyspend/types/order.d.ts +0 -18
  52. package/dist/types/anyspend/types/req-res/createOrder.d.ts +0 -50
  53. package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -35
  54. package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +0 -25
  55. package/dist/types/global-account/react/hooks/index.d.ts +1 -2
  56. package/dist/types/global-account/react/hooks/useTokenFromUrl.d.ts +1 -5
  57. package/dist/types/shared/constants/chains/supported.d.ts +3 -13
  58. package/package.json +3 -3
  59. package/src/anyspend/constants/index.ts +4 -2
  60. package/src/anyspend/react/components/AnySpend.tsx +2 -2
  61. package/src/anyspend/react/components/index.ts +5 -7
  62. package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +4 -7
  63. package/src/anyspend/services/anyspend.ts +2 -5
  64. package/src/anyspend/types/order.ts +0 -1
  65. package/src/anyspend/types/req-res/createOrder.ts +0 -1
  66. package/src/global-account/react/hooks/index.ts +1 -2
  67. package/src/global-account/react/hooks/useTokenFromUrl.tsx +13 -95
  68. package/src/shared/constants/chains/supported.ts +8 -23
  69. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +0 -6
  70. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +0 -37
  71. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +0 -12
  72. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +0 -173
  73. package/dist/cjs/global-account/react/hooks/useB3EnsName.d.ts +0 -9
  74. package/dist/cjs/global-account/react/hooks/useB3EnsName.js +0 -39
  75. package/dist/cjs/shared/generated/coingecko-chains.json +0 -1072
  76. package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +0 -6
  77. package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +0 -31
  78. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +0 -12
  79. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +0 -167
  80. package/dist/esm/global-account/react/hooks/useB3EnsName.d.ts +0 -9
  81. package/dist/esm/global-account/react/hooks/useB3EnsName.js +0 -32
  82. package/dist/esm/shared/generated/coingecko-chains.json +0 -1072
  83. package/dist/types/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +0 -6
  84. package/dist/types/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +0 -12
  85. package/dist/types/global-account/react/hooks/useB3EnsName.d.ts +0 -9
  86. package/src/anyspend/README.md +0 -626
  87. package/src/anyspend/react/components/webview/WebviewOnrampOrderStatus.tsx +0 -120
  88. package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +0 -369
  89. package/src/global-account/react/hooks/useB3EnsName.ts +0 -49
  90. package/src/shared/generated/coingecko-chains.json +0 -1072
  91. /package/dist/cjs/{shared/generated → generated}/chain-networks.json +0 -0
  92. /package/dist/esm/{shared/generated → generated}/chain-networks.json +0 -0
  93. /package/src/{shared/generated → generated}/chain-networks.json +0 -0
@@ -53,7 +53,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
53
53
  ipAddress?: string | undefined;
54
54
  }>>;
55
55
  creatorAddress: z.ZodNullable<z.ZodString>;
56
- partnerId: z.ZodNullable<z.ZodString>;
57
56
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
58
57
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
59
58
  permit: z.ZodNullable<z.ZodObject<{
@@ -239,7 +238,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
239
238
  ipAddress?: string | undefined;
240
239
  } | null;
241
240
  creatorAddress: string | null;
242
- partnerId: string | null;
243
241
  oneClickBuyUrl: string | null;
244
242
  stripePaymentIntentId: string | null;
245
243
  permit: {
@@ -297,7 +295,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
297
295
  ipAddress?: string | undefined;
298
296
  } | null;
299
297
  creatorAddress: string | null;
300
- partnerId: string | null;
301
298
  oneClickBuyUrl: string | null;
302
299
  stripePaymentIntentId: string | null;
303
300
  permit: {
@@ -344,7 +341,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
344
341
  ipAddress?: string | undefined;
345
342
  }>>;
346
343
  creatorAddress: z.ZodNullable<z.ZodString>;
347
- partnerId: z.ZodNullable<z.ZodString>;
348
344
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
349
345
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
350
346
  permit: z.ZodNullable<z.ZodObject<{
@@ -614,7 +610,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
614
610
  ipAddress?: string | undefined;
615
611
  } | null;
616
612
  creatorAddress: string | null;
617
- partnerId: string | null;
618
613
  oneClickBuyUrl: string | null;
619
614
  stripePaymentIntentId: string | null;
620
615
  permit: {
@@ -686,7 +681,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
686
681
  ipAddress?: string | undefined;
687
682
  } | null;
688
683
  creatorAddress: string | null;
689
- partnerId: string | null;
690
684
  oneClickBuyUrl: string | null;
691
685
  stripePaymentIntentId: string | null;
692
686
  permit: {
@@ -733,7 +727,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
733
727
  ipAddress?: string | undefined;
734
728
  }>>;
735
729
  creatorAddress: z.ZodNullable<z.ZodString>;
736
- partnerId: z.ZodNullable<z.ZodString>;
737
730
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
738
731
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
739
732
  permit: z.ZodNullable<z.ZodObject<{
@@ -953,7 +946,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
953
946
  ipAddress?: string | undefined;
954
947
  } | null;
955
948
  creatorAddress: string | null;
956
- partnerId: string | null;
957
949
  oneClickBuyUrl: string | null;
958
950
  stripePaymentIntentId: string | null;
959
951
  permit: {
@@ -1017,7 +1009,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1017
1009
  ipAddress?: string | undefined;
1018
1010
  } | null;
1019
1011
  creatorAddress: string | null;
1020
- partnerId: string | null;
1021
1012
  oneClickBuyUrl: string | null;
1022
1013
  stripePaymentIntentId: string | null;
1023
1014
  permit: {
@@ -1064,7 +1055,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1064
1055
  ipAddress?: string | undefined;
1065
1056
  }>>;
1066
1057
  creatorAddress: z.ZodNullable<z.ZodString>;
1067
- partnerId: z.ZodNullable<z.ZodString>;
1068
1058
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
1069
1059
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
1070
1060
  permit: z.ZodNullable<z.ZodObject<{
@@ -1284,7 +1274,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1284
1274
  ipAddress?: string | undefined;
1285
1275
  } | null;
1286
1276
  creatorAddress: string | null;
1287
- partnerId: string | null;
1288
1277
  oneClickBuyUrl: string | null;
1289
1278
  stripePaymentIntentId: string | null;
1290
1279
  permit: {
@@ -1348,7 +1337,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1348
1337
  ipAddress?: string | undefined;
1349
1338
  } | null;
1350
1339
  creatorAddress: string | null;
1351
- partnerId: string | null;
1352
1340
  oneClickBuyUrl: string | null;
1353
1341
  stripePaymentIntentId: string | null;
1354
1342
  permit: {
@@ -1395,7 +1383,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1395
1383
  ipAddress?: string | undefined;
1396
1384
  }>>;
1397
1385
  creatorAddress: z.ZodNullable<z.ZodString>;
1398
- partnerId: z.ZodNullable<z.ZodString>;
1399
1386
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
1400
1387
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
1401
1388
  permit: z.ZodNullable<z.ZodObject<{
@@ -1591,7 +1578,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1591
1578
  ipAddress?: string | undefined;
1592
1579
  } | null;
1593
1580
  creatorAddress: string | null;
1594
- partnerId: string | null;
1595
1581
  oneClickBuyUrl: string | null;
1596
1582
  stripePaymentIntentId: string | null;
1597
1583
  permit: {
@@ -1652,7 +1638,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1652
1638
  ipAddress?: string | undefined;
1653
1639
  } | null;
1654
1640
  creatorAddress: string | null;
1655
- partnerId: string | null;
1656
1641
  oneClickBuyUrl: string | null;
1657
1642
  stripePaymentIntentId: string | null;
1658
1643
  permit: {
@@ -1793,7 +1778,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1793
1778
  ipAddress?: string | undefined;
1794
1779
  } | null;
1795
1780
  creatorAddress: string | null;
1796
- partnerId: string | null;
1797
1781
  oneClickBuyUrl: string | null;
1798
1782
  stripePaymentIntentId: string | null;
1799
1783
  permit: {
@@ -1865,7 +1849,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1865
1849
  ipAddress?: string | undefined;
1866
1850
  } | null;
1867
1851
  creatorAddress: string | null;
1868
- partnerId: string | null;
1869
1852
  oneClickBuyUrl: string | null;
1870
1853
  stripePaymentIntentId: string | null;
1871
1854
  permit: {
@@ -1929,7 +1912,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1929
1912
  ipAddress?: string | undefined;
1930
1913
  } | null;
1931
1914
  creatorAddress: string | null;
1932
- partnerId: string | null;
1933
1915
  oneClickBuyUrl: string | null;
1934
1916
  stripePaymentIntentId: string | null;
1935
1917
  permit: {
@@ -1993,7 +1975,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
1993
1975
  ipAddress?: string | undefined;
1994
1976
  } | null;
1995
1977
  creatorAddress: string | null;
1996
- partnerId: string | null;
1997
1978
  oneClickBuyUrl: string | null;
1998
1979
  stripePaymentIntentId: string | null;
1999
1980
  permit: {
@@ -2052,7 +2033,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2052
2033
  ipAddress?: string | undefined;
2053
2034
  } | null;
2054
2035
  creatorAddress: string | null;
2055
- partnerId: string | null;
2056
2036
  oneClickBuyUrl: string | null;
2057
2037
  stripePaymentIntentId: string | null;
2058
2038
  permit: {
@@ -2143,7 +2123,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2143
2123
  ipAddress?: string | undefined;
2144
2124
  } | null;
2145
2125
  creatorAddress: string | null;
2146
- partnerId: string | null;
2147
2126
  oneClickBuyUrl: string | null;
2148
2127
  stripePaymentIntentId: string | null;
2149
2128
  permit: {
@@ -2215,7 +2194,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2215
2194
  ipAddress?: string | undefined;
2216
2195
  } | null;
2217
2196
  creatorAddress: string | null;
2218
- partnerId: string | null;
2219
2197
  oneClickBuyUrl: string | null;
2220
2198
  stripePaymentIntentId: string | null;
2221
2199
  permit: {
@@ -2279,7 +2257,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2279
2257
  ipAddress?: string | undefined;
2280
2258
  } | null;
2281
2259
  creatorAddress: string | null;
2282
- partnerId: string | null;
2283
2260
  oneClickBuyUrl: string | null;
2284
2261
  stripePaymentIntentId: string | null;
2285
2262
  permit: {
@@ -2343,7 +2320,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2343
2320
  ipAddress?: string | undefined;
2344
2321
  } | null;
2345
2322
  creatorAddress: string | null;
2346
- partnerId: string | null;
2347
2323
  oneClickBuyUrl: string | null;
2348
2324
  stripePaymentIntentId: string | null;
2349
2325
  permit: {
@@ -2402,7 +2378,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2402
2378
  ipAddress?: string | undefined;
2403
2379
  } | null;
2404
2380
  creatorAddress: string | null;
2405
- partnerId: string | null;
2406
2381
  oneClickBuyUrl: string | null;
2407
2382
  stripePaymentIntentId: string | null;
2408
2383
  permit: {
@@ -2497,7 +2472,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2497
2472
  ipAddress?: string | undefined;
2498
2473
  } | null;
2499
2474
  creatorAddress: string | null;
2500
- partnerId: string | null;
2501
2475
  oneClickBuyUrl: string | null;
2502
2476
  stripePaymentIntentId: string | null;
2503
2477
  permit: {
@@ -2569,7 +2543,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2569
2543
  ipAddress?: string | undefined;
2570
2544
  } | null;
2571
2545
  creatorAddress: string | null;
2572
- partnerId: string | null;
2573
2546
  oneClickBuyUrl: string | null;
2574
2547
  stripePaymentIntentId: string | null;
2575
2548
  permit: {
@@ -2633,7 +2606,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2633
2606
  ipAddress?: string | undefined;
2634
2607
  } | null;
2635
2608
  creatorAddress: string | null;
2636
- partnerId: string | null;
2637
2609
  oneClickBuyUrl: string | null;
2638
2610
  stripePaymentIntentId: string | null;
2639
2611
  permit: {
@@ -2697,7 +2669,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2697
2669
  ipAddress?: string | undefined;
2698
2670
  } | null;
2699
2671
  creatorAddress: string | null;
2700
- partnerId: string | null;
2701
2672
  oneClickBuyUrl: string | null;
2702
2673
  stripePaymentIntentId: string | null;
2703
2674
  permit: {
@@ -2756,7 +2727,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2756
2727
  ipAddress?: string | undefined;
2757
2728
  } | null;
2758
2729
  creatorAddress: string | null;
2759
- partnerId: string | null;
2760
2730
  oneClickBuyUrl: string | null;
2761
2731
  stripePaymentIntentId: string | null;
2762
2732
  permit: {
@@ -2852,7 +2822,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2852
2822
  ipAddress?: string | undefined;
2853
2823
  } | null;
2854
2824
  creatorAddress: string | null;
2855
- partnerId: string | null;
2856
2825
  oneClickBuyUrl: string | null;
2857
2826
  stripePaymentIntentId: string | null;
2858
2827
  permit: {
@@ -2924,7 +2893,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2924
2893
  ipAddress?: string | undefined;
2925
2894
  } | null;
2926
2895
  creatorAddress: string | null;
2927
- partnerId: string | null;
2928
2896
  oneClickBuyUrl: string | null;
2929
2897
  stripePaymentIntentId: string | null;
2930
2898
  permit: {
@@ -2988,7 +2956,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
2988
2956
  ipAddress?: string | undefined;
2989
2957
  } | null;
2990
2958
  creatorAddress: string | null;
2991
- partnerId: string | null;
2992
2959
  oneClickBuyUrl: string | null;
2993
2960
  stripePaymentIntentId: string | null;
2994
2961
  permit: {
@@ -3052,7 +3019,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
3052
3019
  ipAddress?: string | undefined;
3053
3020
  } | null;
3054
3021
  creatorAddress: string | null;
3055
- partnerId: string | null;
3056
3022
  oneClickBuyUrl: string | null;
3057
3023
  stripePaymentIntentId: string | null;
3058
3024
  permit: {
@@ -3111,7 +3077,6 @@ export declare const zGetOrderAndTxsResponse: z.ZodObject<{
3111
3077
  ipAddress?: string | undefined;
3112
3078
  } | null;
3113
3079
  creatorAddress: string | null;
3114
- partnerId: string | null;
3115
3080
  oneClickBuyUrl: string | null;
3116
3081
  stripePaymentIntentId: string | null;
3117
3082
  permit: {
@@ -35,7 +35,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
35
35
  ipAddress?: string | undefined;
36
36
  }>>;
37
37
  creatorAddress: z.ZodNullable<z.ZodString>;
38
- partnerId: z.ZodNullable<z.ZodString>;
39
38
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
40
39
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
41
40
  permit: z.ZodNullable<z.ZodObject<{
@@ -221,7 +220,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
221
220
  ipAddress?: string | undefined;
222
221
  } | null;
223
222
  creatorAddress: string | null;
224
- partnerId: string | null;
225
223
  oneClickBuyUrl: string | null;
226
224
  stripePaymentIntentId: string | null;
227
225
  permit: {
@@ -279,7 +277,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
279
277
  ipAddress?: string | undefined;
280
278
  } | null;
281
279
  creatorAddress: string | null;
282
- partnerId: string | null;
283
280
  oneClickBuyUrl: string | null;
284
281
  stripePaymentIntentId: string | null;
285
282
  permit: {
@@ -326,7 +323,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
326
323
  ipAddress?: string | undefined;
327
324
  }>>;
328
325
  creatorAddress: z.ZodNullable<z.ZodString>;
329
- partnerId: z.ZodNullable<z.ZodString>;
330
326
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
331
327
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
332
328
  permit: z.ZodNullable<z.ZodObject<{
@@ -596,7 +592,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
596
592
  ipAddress?: string | undefined;
597
593
  } | null;
598
594
  creatorAddress: string | null;
599
- partnerId: string | null;
600
595
  oneClickBuyUrl: string | null;
601
596
  stripePaymentIntentId: string | null;
602
597
  permit: {
@@ -668,7 +663,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
668
663
  ipAddress?: string | undefined;
669
664
  } | null;
670
665
  creatorAddress: string | null;
671
- partnerId: string | null;
672
666
  oneClickBuyUrl: string | null;
673
667
  stripePaymentIntentId: string | null;
674
668
  permit: {
@@ -715,7 +709,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
715
709
  ipAddress?: string | undefined;
716
710
  }>>;
717
711
  creatorAddress: z.ZodNullable<z.ZodString>;
718
- partnerId: z.ZodNullable<z.ZodString>;
719
712
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
720
713
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
721
714
  permit: z.ZodNullable<z.ZodObject<{
@@ -935,7 +928,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
935
928
  ipAddress?: string | undefined;
936
929
  } | null;
937
930
  creatorAddress: string | null;
938
- partnerId: string | null;
939
931
  oneClickBuyUrl: string | null;
940
932
  stripePaymentIntentId: string | null;
941
933
  permit: {
@@ -999,7 +991,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
999
991
  ipAddress?: string | undefined;
1000
992
  } | null;
1001
993
  creatorAddress: string | null;
1002
- partnerId: string | null;
1003
994
  oneClickBuyUrl: string | null;
1004
995
  stripePaymentIntentId: string | null;
1005
996
  permit: {
@@ -1046,7 +1037,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1046
1037
  ipAddress?: string | undefined;
1047
1038
  }>>;
1048
1039
  creatorAddress: z.ZodNullable<z.ZodString>;
1049
- partnerId: z.ZodNullable<z.ZodString>;
1050
1040
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
1051
1041
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
1052
1042
  permit: z.ZodNullable<z.ZodObject<{
@@ -1266,7 +1256,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1266
1256
  ipAddress?: string | undefined;
1267
1257
  } | null;
1268
1258
  creatorAddress: string | null;
1269
- partnerId: string | null;
1270
1259
  oneClickBuyUrl: string | null;
1271
1260
  stripePaymentIntentId: string | null;
1272
1261
  permit: {
@@ -1330,7 +1319,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1330
1319
  ipAddress?: string | undefined;
1331
1320
  } | null;
1332
1321
  creatorAddress: string | null;
1333
- partnerId: string | null;
1334
1322
  oneClickBuyUrl: string | null;
1335
1323
  stripePaymentIntentId: string | null;
1336
1324
  permit: {
@@ -1377,7 +1365,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1377
1365
  ipAddress?: string | undefined;
1378
1366
  }>>;
1379
1367
  creatorAddress: z.ZodNullable<z.ZodString>;
1380
- partnerId: z.ZodNullable<z.ZodString>;
1381
1368
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
1382
1369
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
1383
1370
  permit: z.ZodNullable<z.ZodObject<{
@@ -1573,7 +1560,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1573
1560
  ipAddress?: string | undefined;
1574
1561
  } | null;
1575
1562
  creatorAddress: string | null;
1576
- partnerId: string | null;
1577
1563
  oneClickBuyUrl: string | null;
1578
1564
  stripePaymentIntentId: string | null;
1579
1565
  permit: {
@@ -1634,7 +1620,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1634
1620
  ipAddress?: string | undefined;
1635
1621
  } | null;
1636
1622
  creatorAddress: string | null;
1637
- partnerId: string | null;
1638
1623
  oneClickBuyUrl: string | null;
1639
1624
  stripePaymentIntentId: string | null;
1640
1625
  permit: {
@@ -1698,7 +1683,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1698
1683
  ipAddress?: string | undefined;
1699
1684
  } | null;
1700
1685
  creatorAddress: string | null;
1701
- partnerId: string | null;
1702
1686
  oneClickBuyUrl: string | null;
1703
1687
  stripePaymentIntentId: string | null;
1704
1688
  permit: {
@@ -1770,7 +1754,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1770
1754
  ipAddress?: string | undefined;
1771
1755
  } | null;
1772
1756
  creatorAddress: string | null;
1773
- partnerId: string | null;
1774
1757
  oneClickBuyUrl: string | null;
1775
1758
  stripePaymentIntentId: string | null;
1776
1759
  permit: {
@@ -1834,7 +1817,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1834
1817
  ipAddress?: string | undefined;
1835
1818
  } | null;
1836
1819
  creatorAddress: string | null;
1837
- partnerId: string | null;
1838
1820
  oneClickBuyUrl: string | null;
1839
1821
  stripePaymentIntentId: string | null;
1840
1822
  permit: {
@@ -1898,7 +1880,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1898
1880
  ipAddress?: string | undefined;
1899
1881
  } | null;
1900
1882
  creatorAddress: string | null;
1901
- partnerId: string | null;
1902
1883
  oneClickBuyUrl: string | null;
1903
1884
  stripePaymentIntentId: string | null;
1904
1885
  permit: {
@@ -1957,7 +1938,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
1957
1938
  ipAddress?: string | undefined;
1958
1939
  } | null;
1959
1940
  creatorAddress: string | null;
1960
- partnerId: string | null;
1961
1941
  oneClickBuyUrl: string | null;
1962
1942
  stripePaymentIntentId: string | null;
1963
1943
  permit: {
@@ -2022,7 +2002,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
2022
2002
  ipAddress?: string | undefined;
2023
2003
  } | null;
2024
2004
  creatorAddress: string | null;
2025
- partnerId: string | null;
2026
2005
  oneClickBuyUrl: string | null;
2027
2006
  stripePaymentIntentId: string | null;
2028
2007
  permit: {
@@ -2094,7 +2073,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
2094
2073
  ipAddress?: string | undefined;
2095
2074
  } | null;
2096
2075
  creatorAddress: string | null;
2097
- partnerId: string | null;
2098
2076
  oneClickBuyUrl: string | null;
2099
2077
  stripePaymentIntentId: string | null;
2100
2078
  permit: {
@@ -2158,7 +2136,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
2158
2136
  ipAddress?: string | undefined;
2159
2137
  } | null;
2160
2138
  creatorAddress: string | null;
2161
- partnerId: string | null;
2162
2139
  oneClickBuyUrl: string | null;
2163
2140
  stripePaymentIntentId: string | null;
2164
2141
  permit: {
@@ -2222,7 +2199,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
2222
2199
  ipAddress?: string | undefined;
2223
2200
  } | null;
2224
2201
  creatorAddress: string | null;
2225
- partnerId: string | null;
2226
2202
  oneClickBuyUrl: string | null;
2227
2203
  stripePaymentIntentId: string | null;
2228
2204
  permit: {
@@ -2281,7 +2257,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
2281
2257
  ipAddress?: string | undefined;
2282
2258
  } | null;
2283
2259
  creatorAddress: string | null;
2284
- partnerId: string | null;
2285
2260
  oneClickBuyUrl: string | null;
2286
2261
  stripePaymentIntentId: string | null;
2287
2262
  permit: {
@@ -3,14 +3,13 @@ export { useAccountWallet } from "./useAccountWallet";
3
3
  export { useAddTWSessionKey } from "./useAddTWSessionKey";
4
4
  export { useAuthentication } from "./useAuthentication";
5
5
  export { useB3BalanceFromAddresses } from "./useB3BalanceFromAddresses";
6
- export { useB3EnsName } from "./useB3EnsName";
7
6
  export { useBestTransactionPath } from "./useBestTransactionPath";
8
7
  export { useBsmntProfile } from "./useBsmntProfile";
9
8
  export { useChainSwitchWithAction } from "./useChainSwitchWithAction";
10
9
  export { useClaim } from "./useClaim";
11
10
  export { useConnect } from "./useConnect";
12
11
  export { useExchangeRate } from "./useExchangeRate";
13
- export { useGetAllTWSigners, type TWSignerWithMetadata } from "./useGetAllTWSigners";
12
+ export { type TWSignerWithMetadata, useGetAllTWSigners } from "./useGetAllTWSigners";
14
13
  export { useGetGeo } from "./useGetGeo";
15
14
  export { useHandleConnectWithPrivy } from "./useHandleConnectWithPrivy";
16
15
  export { useHasMounted } from "./useHasMounted";
@@ -10,12 +10,8 @@ interface UseTokenFromUrlOptions {
10
10
  prefix: string;
11
11
  }
12
12
  /**
13
- * Hook to parse token data from URL parameters and fetch additional token info.
13
+ * Hook to parse token data from URL parameters.
14
14
  * Looks for parameters: [prefix]Currency
15
15
  */
16
16
  export declare function useTokenFromUrl({ defaultToken, prefix }: UseTokenFromUrlOptions): Token;
17
- export declare function useTokenFromAddress({ address, chainId }: {
18
- address: string;
19
- chainId: number;
20
- }): Token | undefined;
21
17
  export {};
@@ -43,18 +43,8 @@ export declare const supportedChainNetworks: {
43
43
  };
44
44
  _id: string | {};
45
45
  }[];
46
- export declare const coingeckoChains: Record<number, {
47
- coingecko_id: string;
48
- name: string;
49
- native_coin_id: string;
50
- }>;
51
- export declare function getCoingeckoChainInfo(chainId: number): {
52
- coingecko_id: string;
53
- name: string;
54
- native_coin_id: string;
55
- };
46
+ export declare const b3Mainnet: import("viem").Chain;
47
+ export declare const b3Testnet: import("viem").Chain;
48
+ export declare const baseMainnet: import("viem").Chain | undefined;
56
49
  export declare const b3MainnetThirdWeb: ThirdwebChain;
57
50
  export declare const b3TestnetThirdWeb: ThirdwebChain;
58
- export declare const b3Mainnet: import("viem").Chain | undefined;
59
- export declare const b3Testnet: import("viem").Chain | undefined;
60
- export declare const baseMainnet: import("viem").Chain | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.5-alpha.6",
3
+ "version": "0.0.5",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -286,8 +286,8 @@
286
286
  "fix-dist": "[ -d ./dist/react/src ] && cp -r ./dist/react/src/* ./dist/ && rm -rf ./dist/react || echo \"No react directory found\"",
287
287
  "build": "pnpm clean && pnpm lint && pnpm build:types && pnpm build:cjs && pnpm build:esm && pnpm build:css",
288
288
  "build:types": "tsc -p tsconfig.cjs.json --emitDeclarationOnly --declarationDir dist/types",
289
- "build:cjs": "tsc -p tsconfig.cjs.json --outDir dist/cjs --module commonjs && tsc-alias -p tsconfig.cjs.json --outDir dist/cjs && mkdir -p dist/cjs/shared/generated && cp src/shared/generated/chain-networks.json src/shared/generated/coingecko-chains.json dist/cjs/shared/generated/",
290
- "build:esm": "tsc -p tsconfig.esm.json --outDir dist/esm --module esnext && tsc-alias -p tsconfig.esm.json --outDir dist/esm && mkdir -p dist/esm/shared/generated && cp src/shared/generated/chain-networks.json src/shared/generated/coingecko-chains.json dist/esm/shared/generated/ && node scripts/fix-esm-imports.js",
289
+ "build:cjs": "tsc -p tsconfig.cjs.json --outDir dist/cjs --module commonjs && tsc-alias -p tsconfig.cjs.json --outDir dist/cjs && mkdir -p dist/cjs/generated && cp src/generated/chain-networks.json dist/cjs/generated/",
290
+ "build:esm": "tsc -p tsconfig.esm.json --outDir dist/esm --module esnext && tsc-alias -p tsconfig.esm.json --outDir dist/esm && mkdir -p dist/esm/generated && cp src/generated/chain-networks.json dist/esm/generated/ && node scripts/fix-esm-imports.js",
291
291
  "build:css": "postcss src/styles/index.css -o dist/styles/index.css",
292
292
  "dev:cjs": "tsc-watch -p tsconfig.cjs.json --onSuccess \"tsc-alias -p tsconfig.cjs.json --outDir dist/cjs\"",
293
293
  "dev:esm": "tsc-watch -p tsconfig.esm.json --onSuccess \"tsc-alias -p tsconfig.esm.json --outDir dist/esm\"",
@@ -1,8 +1,10 @@
1
1
  import { NftContract, Token } from "@b3dotfun/sdk/anyspend/types";
2
2
  import { base } from "viem/chains";
3
3
 
4
- export const ANYSPEND_MAINNET_BASE_URL = process.env.NEXT_PUBLIC_ANYSPEND_BASE_URL || "https://mainnet.anyspend.com";
5
- export const ANYSPEND_TESTNET_BASE_URL = process.env.NEXT_PUBLIC_ANYSPEND_BASE_URL || "https://testnet.anyspend.com";
4
+ export const ANYSPEND_MAINNET_BASE_URL =
5
+ process.env.NEXT_PUBLIC_ANYSPEND_BASE_URL || "https://anyspend-mainnet.up.railway.app";
6
+ export const ANYSPEND_TESTNET_BASE_URL =
7
+ process.env.NEXT_PUBLIC_ANYSPEND_BASE_URL || "https://anyspend-testnet.up.railway.app";
6
8
 
7
9
  export const RELAY_ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
8
10
  export const RELAY_SOL_ADDRESS = "11111111111111111111111111111111";
@@ -173,7 +173,7 @@ export function AnySpend({
173
173
  name: srcTokenMetadata.name || selectedSrcToken.name,
174
174
  metadata: {
175
175
  ...selectedSrcToken.metadata,
176
- logoURI: srcTokenMetadata?.logoURI || selectedSrcToken.metadata.logoURI
176
+ logoURI: srcTokenMetadata.logoURI || selectedSrcToken.metadata?.logoURI
177
177
  }
178
178
  };
179
179
 
@@ -199,7 +199,7 @@ export function AnySpend({
199
199
  name: dstTokenMetadata.name || selectedDstToken.name,
200
200
  metadata: {
201
201
  ...selectedDstToken.metadata,
202
- logoURI: dstTokenMetadata?.logoURI || selectedDstToken.metadata.logoURI
202
+ logoURI: dstTokenMetadata.logoURI || selectedDstToken.metadata?.logoURI
203
203
  }
204
204
  };
205
205
 
@@ -1,19 +1,17 @@
1
1
  // Components
2
2
  export { AnySpend } from "./AnySpend";
3
- export { AnySpendBuySpin } from "./AnySpendBuySpin";
4
3
  export { AnySpendCustom } from "./AnySpendCustom";
5
4
  export { AnySpendNFT } from "./AnySpendNFT";
6
5
  export { AnySpendNFTButton } from "./AnySpendNFTButton";
7
- export { AnySpendStakeB3 } from "./AnySpendStakeB3";
8
6
  export { AnySpendTournament } from "./AnySpendTournament";
7
+ export { AnySpendStakeB3 } from "./AnySpendStakeB3";
8
+ export { AnySpendBuySpin } from "./AnySpendBuySpin";
9
9
 
10
10
  // Common Components
11
- export { OrderDetails } from "./common/OrderDetails";
12
- export { OrderHistory } from "./common/OrderHistory";
13
11
  export { OrderHistoryItem } from "./common/OrderHistoryItem";
14
- export { OrderStatus } from "./common/OrderStatus";
12
+ export { OrderHistory } from "./common/OrderHistory";
13
+ export { OrderDetails } from "./common/OrderDetails";
15
14
  export { OrderToken } from "./common/OrderToken";
16
15
  export { OrderTokenAmount } from "./common/OrderTokenAmount";
16
+ export { OrderStatus } from "./common/OrderStatus";
17
17
  export { TokenBalance } from "./common/TokenBalance";
18
- export { WebviewOnrampOrderStatus } from "./webview/WebviewOnrampOrderStatus";
19
- export { WebviewOnrampPayment } from "./webview/WebviewOnrampPayment";
@@ -1,11 +1,11 @@
1
- import { USDC_BASE } from "@b3dotfun/sdk/anyspend/constants";
2
1
  import { anyspendService } from "@b3dotfun/sdk/anyspend/services/anyspend";
3
2
  import { Nft, OnrampVendor, OrderType, Token, Tournament } from "@b3dotfun/sdk/anyspend/types";
4
- import { buildMetadata, buildPayload, normalizeAddress } from "@b3dotfun/sdk/anyspend/utils";
3
+ import { normalizeAddress, buildMetadata, buildPayload } from "@b3dotfun/sdk/anyspend/utils";
5
4
  import { useMutation } from "@tanstack/react-query";
6
5
  import { useMemo } from "react";
7
6
  import { parseUnits } from "viem";
8
7
  import { base } from "viem/chains";
8
+ import { USDC_BASE } from "@b3dotfun/sdk/anyspend/constants";
9
9
 
10
10
  export type OnrampOptions = {
11
11
  vendor: OnrampVendor;
@@ -23,7 +23,6 @@ export type CreateOnrampOrderParams = {
23
23
  dstToken: Token;
24
24
  srcFiatAmount: string;
25
25
  onramp: OnrampOptions;
26
- partnerId?: string;
27
26
  expectedDstAmount: string;
28
27
  creatorAddress?: string;
29
28
  nft?: Nft & { price: string };
@@ -55,8 +54,7 @@ export function useAnyspendCreateOnrampOrder({ onSuccess, onError }: UseAnyspend
55
54
  expectedDstAmount,
56
55
  nft,
57
56
  tournament,
58
- payload,
59
- partnerId
57
+ payload
60
58
  } = params;
61
59
 
62
60
  try {
@@ -104,8 +102,7 @@ export function useAnyspendCreateOnrampOrder({ onSuccess, onError }: UseAnyspend
104
102
  tournament,
105
103
  payload
106
104
  }),
107
- creatorAddress: creatorAddress ? normalizeAddress(creatorAddress) : undefined,
108
- partnerId
105
+ creatorAddress: creatorAddress ? normalizeAddress(creatorAddress) : undefined
109
106
  });
110
107
  } catch (error: any) {
111
108
  // If the error has a response with message and statusCode, throw that
@@ -65,8 +65,7 @@ export const anyspendService = {
65
65
  payload,
66
66
  onramp,
67
67
  metadata,
68
- creatorAddress,
69
- partnerId
68
+ creatorAddress
70
69
  }: {
71
70
  isMainnet: boolean;
72
71
  recipientAddress: string;
@@ -80,7 +79,6 @@ export const anyspendService = {
80
79
  onramp?: OnrampOptions;
81
80
  metadata: Record<string, any>;
82
81
  creatorAddress?: string;
83
- partnerId?: string;
84
82
  }) => {
85
83
  const response = await fetch(`${isMainnet ? ANYSPEND_MAINNET_BASE_URL : ANYSPEND_TESTNET_BASE_URL}/orders`, {
86
84
  method: "POST",
@@ -98,8 +96,7 @@ export const anyspendService = {
98
96
  payload,
99
97
  onramp,
100
98
  metadata,
101
- creatorAddress,
102
- partnerId
99
+ creatorAddress
103
100
  })
104
101
  });
105
102
  const data = await response.json();
@@ -57,7 +57,6 @@ export const zBaseOrder = z.object({
57
57
  expiredAt: z.number(),
58
58
  onrampMetadata: zOnrampMetadata.nullable(),
59
59
  creatorAddress: z.string().nullable(),
60
- partnerId: z.string().nullable(),
61
60
 
62
61
  oneClickBuyUrl: z.string().nullable(),
63
62
  stripePaymentIntentId: z.string().nullable(),