@b3dotfun/sdk 0.0.5 → 0.0.6-alpha.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 (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 +7 -5
  4. package/dist/cjs/anyspend/react/components/index.js +15 -11
  5. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +6 -0
  6. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +37 -0
  7. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +12 -0
  8. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +173 -0
  9. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +1 -0
  10. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +4 -3
  11. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -0
  12. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
  13. package/dist/cjs/anyspend/services/anyspend.d.ts +7 -1
  14. package/dist/cjs/anyspend/services/anyspend.js +3 -2
  15. package/dist/cjs/anyspend/types/order.d.ts +18 -0
  16. package/dist/cjs/anyspend/types/order.js +1 -0
  17. package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +50 -0
  18. package/dist/cjs/anyspend/types/req-res/createOrder.js +1 -0
  19. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +35 -0
  20. package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +25 -0
  21. package/dist/cjs/global-account/react/hooks/index.d.ts +2 -1
  22. package/dist/cjs/global-account/react/hooks/index.js +3 -1
  23. package/dist/cjs/global-account/react/hooks/useB3EnsName.d.ts +9 -0
  24. package/dist/cjs/global-account/react/hooks/useB3EnsName.js +39 -0
  25. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.d.ts +5 -1
  26. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +74 -13
  27. package/dist/cjs/shared/constants/chains/supported.d.ts +13 -3
  28. package/dist/cjs/shared/constants/chains/supported.js +15 -9
  29. package/dist/cjs/shared/generated/coingecko-chains.json +1072 -0
  30. package/dist/esm/anyspend/constants/index.js +2 -2
  31. package/dist/esm/anyspend/react/components/AnySpend.js +2 -2
  32. package/dist/esm/anyspend/react/components/index.d.ts +7 -5
  33. package/dist/esm/anyspend/react/components/index.js +7 -5
  34. package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +6 -0
  35. package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +31 -0
  36. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +12 -0
  37. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +167 -0
  38. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +1 -0
  39. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +5 -4
  40. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -0
  41. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
  42. package/dist/esm/anyspend/services/anyspend.d.ts +7 -1
  43. package/dist/esm/anyspend/services/anyspend.js +3 -2
  44. package/dist/esm/anyspend/types/order.d.ts +18 -0
  45. package/dist/esm/anyspend/types/order.js +1 -0
  46. package/dist/esm/anyspend/types/req-res/createOrder.d.ts +50 -0
  47. package/dist/esm/anyspend/types/req-res/createOrder.js +1 -0
  48. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +35 -0
  49. package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +25 -0
  50. package/dist/esm/global-account/react/hooks/index.d.ts +2 -1
  51. package/dist/esm/global-account/react/hooks/index.js +1 -0
  52. package/dist/esm/global-account/react/hooks/useB3EnsName.d.ts +9 -0
  53. package/dist/esm/global-account/react/hooks/useB3EnsName.js +32 -0
  54. package/dist/esm/global-account/react/hooks/useTokenFromUrl.d.ts +5 -1
  55. package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +73 -13
  56. package/dist/esm/shared/constants/chains/supported.d.ts +13 -3
  57. package/dist/esm/shared/constants/chains/supported.js +13 -8
  58. package/dist/esm/shared/generated/coingecko-chains.json +1072 -0
  59. package/dist/styles/index.css +1 -1
  60. package/dist/types/anyspend/react/components/index.d.ts +7 -5
  61. package/dist/types/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +6 -0
  62. package/dist/types/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +12 -0
  63. package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +1 -0
  64. package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -0
  65. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
  66. package/dist/types/anyspend/services/anyspend.d.ts +7 -1
  67. package/dist/types/anyspend/types/order.d.ts +18 -0
  68. package/dist/types/anyspend/types/req-res/createOrder.d.ts +50 -0
  69. package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +35 -0
  70. package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +25 -0
  71. package/dist/types/global-account/react/hooks/index.d.ts +2 -1
  72. package/dist/types/global-account/react/hooks/useB3EnsName.d.ts +9 -0
  73. package/dist/types/global-account/react/hooks/useTokenFromUrl.d.ts +5 -1
  74. package/dist/types/shared/constants/chains/supported.d.ts +13 -3
  75. package/package.json +3 -3
  76. package/src/anyspend/README.md +626 -0
  77. package/src/anyspend/constants/index.ts +2 -4
  78. package/src/anyspend/react/components/AnySpend.tsx +2 -2
  79. package/src/anyspend/react/components/index.ts +7 -5
  80. package/src/anyspend/react/components/webview/WebviewOnrampOrderStatus.tsx +120 -0
  81. package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +369 -0
  82. package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +7 -4
  83. package/src/anyspend/services/anyspend.ts +5 -2
  84. package/src/anyspend/types/order.ts +1 -0
  85. package/src/anyspend/types/req-res/createOrder.ts +1 -0
  86. package/src/global-account/react/hooks/index.ts +2 -1
  87. package/src/global-account/react/hooks/useB3EnsName.ts +49 -0
  88. package/src/global-account/react/hooks/useTokenFromUrl.tsx +95 -13
  89. package/src/shared/constants/chains/supported.ts +23 -8
  90. package/src/shared/generated/coingecko-chains.json +1072 -0
  91. /package/dist/cjs/{generated → shared/generated}/chain-networks.json +0 -0
  92. /package/dist/esm/{generated → shared/generated}/chain-networks.json +0 -0
  93. /package/src/{generated → shared/generated}/chain-networks.json +0 -0
@@ -52,6 +52,7 @@ export declare const zBaseOrder: z.ZodObject<{
52
52
  ipAddress?: string | undefined;
53
53
  }>>;
54
54
  creatorAddress: z.ZodNullable<z.ZodString>;
55
+ partnerId: z.ZodNullable<z.ZodString>;
55
56
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
56
57
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
57
58
  permit: z.ZodNullable<z.ZodObject<{
@@ -94,6 +95,7 @@ export declare const zBaseOrder: z.ZodObject<{
94
95
  ipAddress?: string | undefined;
95
96
  } | null;
96
97
  creatorAddress: string | null;
98
+ partnerId: string | null;
97
99
  oneClickBuyUrl: string | null;
98
100
  stripePaymentIntentId: string | null;
99
101
  permit: {
@@ -124,6 +126,7 @@ export declare const zBaseOrder: z.ZodObject<{
124
126
  ipAddress?: string | undefined;
125
127
  } | null;
126
128
  creatorAddress: string | null;
129
+ partnerId: string | null;
127
130
  oneClickBuyUrl: string | null;
128
131
  stripePaymentIntentId: string | null;
129
132
  permit: {
@@ -167,6 +170,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
167
170
  ipAddress?: string | undefined;
168
171
  }>>;
169
172
  creatorAddress: z.ZodNullable<z.ZodString>;
173
+ partnerId: z.ZodNullable<z.ZodString>;
170
174
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
171
175
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
172
176
  permit: z.ZodNullable<z.ZodObject<{
@@ -352,6 +356,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
352
356
  ipAddress?: string | undefined;
353
357
  } | null;
354
358
  creatorAddress: string | null;
359
+ partnerId: string | null;
355
360
  oneClickBuyUrl: string | null;
356
361
  stripePaymentIntentId: string | null;
357
362
  permit: {
@@ -409,6 +414,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
409
414
  ipAddress?: string | undefined;
410
415
  } | null;
411
416
  creatorAddress: string | null;
417
+ partnerId: string | null;
412
418
  oneClickBuyUrl: string | null;
413
419
  stripePaymentIntentId: string | null;
414
420
  permit: {
@@ -455,6 +461,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
455
461
  ipAddress?: string | undefined;
456
462
  }>>;
457
463
  creatorAddress: z.ZodNullable<z.ZodString>;
464
+ partnerId: z.ZodNullable<z.ZodString>;
458
465
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
459
466
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
460
467
  permit: z.ZodNullable<z.ZodObject<{
@@ -724,6 +731,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
724
731
  ipAddress?: string | undefined;
725
732
  } | null;
726
733
  creatorAddress: string | null;
734
+ partnerId: string | null;
727
735
  oneClickBuyUrl: string | null;
728
736
  stripePaymentIntentId: string | null;
729
737
  permit: {
@@ -795,6 +803,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
795
803
  ipAddress?: string | undefined;
796
804
  } | null;
797
805
  creatorAddress: string | null;
806
+ partnerId: string | null;
798
807
  oneClickBuyUrl: string | null;
799
808
  stripePaymentIntentId: string | null;
800
809
  permit: {
@@ -841,6 +850,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
841
850
  ipAddress?: string | undefined;
842
851
  }>>;
843
852
  creatorAddress: z.ZodNullable<z.ZodString>;
853
+ partnerId: z.ZodNullable<z.ZodString>;
844
854
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
845
855
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
846
856
  permit: z.ZodNullable<z.ZodObject<{
@@ -1060,6 +1070,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1060
1070
  ipAddress?: string | undefined;
1061
1071
  } | null;
1062
1072
  creatorAddress: string | null;
1073
+ partnerId: string | null;
1063
1074
  oneClickBuyUrl: string | null;
1064
1075
  stripePaymentIntentId: string | null;
1065
1076
  permit: {
@@ -1123,6 +1134,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1123
1134
  ipAddress?: string | undefined;
1124
1135
  } | null;
1125
1136
  creatorAddress: string | null;
1137
+ partnerId: string | null;
1126
1138
  oneClickBuyUrl: string | null;
1127
1139
  stripePaymentIntentId: string | null;
1128
1140
  permit: {
@@ -1169,6 +1181,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1169
1181
  ipAddress?: string | undefined;
1170
1182
  }>>;
1171
1183
  creatorAddress: z.ZodNullable<z.ZodString>;
1184
+ partnerId: z.ZodNullable<z.ZodString>;
1172
1185
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
1173
1186
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
1174
1187
  permit: z.ZodNullable<z.ZodObject<{
@@ -1388,6 +1401,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1388
1401
  ipAddress?: string | undefined;
1389
1402
  } | null;
1390
1403
  creatorAddress: string | null;
1404
+ partnerId: string | null;
1391
1405
  oneClickBuyUrl: string | null;
1392
1406
  stripePaymentIntentId: string | null;
1393
1407
  permit: {
@@ -1451,6 +1465,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1451
1465
  ipAddress?: string | undefined;
1452
1466
  } | null;
1453
1467
  creatorAddress: string | null;
1468
+ partnerId: string | null;
1454
1469
  oneClickBuyUrl: string | null;
1455
1470
  stripePaymentIntentId: string | null;
1456
1471
  permit: {
@@ -1497,6 +1512,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1497
1512
  ipAddress?: string | undefined;
1498
1513
  }>>;
1499
1514
  creatorAddress: z.ZodNullable<z.ZodString>;
1515
+ partnerId: z.ZodNullable<z.ZodString>;
1500
1516
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
1501
1517
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
1502
1518
  permit: z.ZodNullable<z.ZodObject<{
@@ -1692,6 +1708,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1692
1708
  ipAddress?: string | undefined;
1693
1709
  } | null;
1694
1710
  creatorAddress: string | null;
1711
+ partnerId: string | null;
1695
1712
  oneClickBuyUrl: string | null;
1696
1713
  stripePaymentIntentId: string | null;
1697
1714
  permit: {
@@ -1752,6 +1769,7 @@ export declare const zOrder: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1752
1769
  ipAddress?: string | undefined;
1753
1770
  } | null;
1754
1771
  creatorAddress: string | null;
1772
+ partnerId: string | null;
1755
1773
  oneClickBuyUrl: string | null;
1756
1774
  stripePaymentIntentId: string | null;
1757
1775
  permit: {
@@ -52,6 +52,7 @@ exports.zBaseOrder = zod_1.z.object({
52
52
  expiredAt: zod_1.z.number(),
53
53
  onrampMetadata: onramp_1.zOnrampMetadata.nullable(),
54
54
  creatorAddress: zod_1.z.string().nullable(),
55
+ partnerId: zod_1.z.string().nullable(),
55
56
  oneClickBuyUrl: zod_1.z.string().nullable(),
56
57
  stripePaymentIntentId: zod_1.z.string().nullable(),
57
58
  permit: permit_1.zPermit.nullable()
@@ -8,6 +8,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
8
8
  srcTokenAddress: z.ZodString;
9
9
  dstTokenAddress: z.ZodString;
10
10
  srcAmount: z.ZodString;
11
+ partnerId: z.ZodOptional<z.ZodString>;
11
12
  onramp: z.ZodOptional<z.ZodObject<{
12
13
  country: z.ZodString;
13
14
  vendor: z.ZodNativeEnum<typeof import("../onramp").OnrampVendor>;
@@ -183,6 +184,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
183
184
  actualDstAmount: string | null;
184
185
  };
185
186
  creatorAddress?: string | undefined;
187
+ partnerId?: string | undefined;
186
188
  onramp?: {
187
189
  country: string;
188
190
  vendor: import("../onramp").OnrampVendor;
@@ -225,6 +227,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
225
227
  actualDstAmount: string | null;
226
228
  };
227
229
  creatorAddress?: string | undefined;
230
+ partnerId?: string | undefined;
228
231
  onramp?: {
229
232
  country: string;
230
233
  vendor: import("../onramp").OnrampVendor;
@@ -239,6 +242,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
239
242
  srcTokenAddress: z.ZodString;
240
243
  dstTokenAddress: z.ZodString;
241
244
  srcAmount: z.ZodString;
245
+ partnerId: z.ZodOptional<z.ZodString>;
242
246
  onramp: z.ZodOptional<z.ZodObject<{
243
247
  country: z.ZodString;
244
248
  vendor: z.ZodNativeEnum<typeof import("../onramp").OnrampVendor>;
@@ -498,6 +502,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
498
502
  nftPrice: string;
499
503
  };
500
504
  creatorAddress?: string | undefined;
505
+ partnerId?: string | undefined;
501
506
  onramp?: {
502
507
  country: string;
503
508
  vendor: import("../onramp").OnrampVendor;
@@ -554,6 +559,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
554
559
  nftPrice: string;
555
560
  };
556
561
  creatorAddress?: string | undefined;
562
+ partnerId?: string | undefined;
557
563
  onramp?: {
558
564
  country: string;
559
565
  vendor: import("../onramp").OnrampVendor;
@@ -568,6 +574,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
568
574
  srcTokenAddress: z.ZodString;
569
575
  dstTokenAddress: z.ZodString;
570
576
  srcAmount: z.ZodString;
577
+ partnerId: z.ZodOptional<z.ZodString>;
571
578
  onramp: z.ZodOptional<z.ZodObject<{
572
579
  country: z.ZodString;
573
580
  vendor: z.ZodNativeEnum<typeof import("../onramp").OnrampVendor>;
@@ -777,6 +784,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
777
784
  entryPrice: string;
778
785
  };
779
786
  creatorAddress?: string | undefined;
787
+ partnerId?: string | undefined;
780
788
  onramp?: {
781
789
  country: string;
782
790
  vendor: import("../onramp").OnrampVendor;
@@ -825,6 +833,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
825
833
  entryPrice: string;
826
834
  };
827
835
  creatorAddress?: string | undefined;
836
+ partnerId?: string | undefined;
828
837
  onramp?: {
829
838
  country: string;
830
839
  vendor: import("../onramp").OnrampVendor;
@@ -839,6 +848,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
839
848
  srcTokenAddress: z.ZodString;
840
849
  dstTokenAddress: z.ZodString;
841
850
  srcAmount: z.ZodString;
851
+ partnerId: z.ZodOptional<z.ZodString>;
842
852
  onramp: z.ZodOptional<z.ZodObject<{
843
853
  country: z.ZodString;
844
854
  vendor: z.ZodNativeEnum<typeof import("../onramp").OnrampVendor>;
@@ -1048,6 +1058,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1048
1058
  fundAmount: string;
1049
1059
  };
1050
1060
  creatorAddress?: string | undefined;
1061
+ partnerId?: string | undefined;
1051
1062
  onramp?: {
1052
1063
  country: string;
1053
1064
  vendor: import("../onramp").OnrampVendor;
@@ -1096,6 +1107,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1096
1107
  fundAmount: string;
1097
1108
  };
1098
1109
  creatorAddress?: string | undefined;
1110
+ partnerId?: string | undefined;
1099
1111
  onramp?: {
1100
1112
  country: string;
1101
1113
  vendor: import("../onramp").OnrampVendor;
@@ -1110,6 +1122,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1110
1122
  srcTokenAddress: z.ZodString;
1111
1123
  dstTokenAddress: z.ZodString;
1112
1124
  srcAmount: z.ZodString;
1125
+ partnerId: z.ZodOptional<z.ZodString>;
1113
1126
  onramp: z.ZodOptional<z.ZodObject<{
1114
1127
  country: z.ZodString;
1115
1128
  vendor: z.ZodNativeEnum<typeof import("../onramp").OnrampVendor>;
@@ -1297,6 +1310,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1297
1310
  spenderAddress?: string | undefined;
1298
1311
  };
1299
1312
  creatorAddress?: string | undefined;
1313
+ partnerId?: string | undefined;
1300
1314
  onramp?: {
1301
1315
  country: string;
1302
1316
  vendor: import("../onramp").OnrampVendor;
@@ -1342,6 +1356,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1342
1356
  spenderAddress?: string | undefined;
1343
1357
  };
1344
1358
  creatorAddress?: string | undefined;
1359
+ partnerId?: string | undefined;
1345
1360
  onramp?: {
1346
1361
  country: string;
1347
1362
  vendor: import("../onramp").OnrampVendor;
@@ -1386,6 +1401,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1386
1401
  actualDstAmount: string | null;
1387
1402
  };
1388
1403
  creatorAddress?: string | undefined;
1404
+ partnerId?: string | undefined;
1389
1405
  onramp?: {
1390
1406
  country: string;
1391
1407
  vendor: import("../onramp").OnrampVendor;
@@ -1442,6 +1458,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1442
1458
  nftPrice: string;
1443
1459
  };
1444
1460
  creatorAddress?: string | undefined;
1461
+ partnerId?: string | undefined;
1445
1462
  onramp?: {
1446
1463
  country: string;
1447
1464
  vendor: import("../onramp").OnrampVendor;
@@ -1490,6 +1507,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1490
1507
  entryPrice: string;
1491
1508
  };
1492
1509
  creatorAddress?: string | undefined;
1510
+ partnerId?: string | undefined;
1493
1511
  onramp?: {
1494
1512
  country: string;
1495
1513
  vendor: import("../onramp").OnrampVendor;
@@ -1538,6 +1556,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1538
1556
  fundAmount: string;
1539
1557
  };
1540
1558
  creatorAddress?: string | undefined;
1559
+ partnerId?: string | undefined;
1541
1560
  onramp?: {
1542
1561
  country: string;
1543
1562
  vendor: import("../onramp").OnrampVendor;
@@ -1583,6 +1602,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1583
1602
  spenderAddress?: string | undefined;
1584
1603
  };
1585
1604
  creatorAddress?: string | undefined;
1605
+ partnerId?: string | undefined;
1586
1606
  onramp?: {
1587
1607
  country: string;
1588
1608
  vendor: import("../onramp").OnrampVendor;
@@ -1627,6 +1647,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1627
1647
  actualDstAmount: string | null;
1628
1648
  };
1629
1649
  creatorAddress?: string | undefined;
1650
+ partnerId?: string | undefined;
1630
1651
  onramp?: {
1631
1652
  country: string;
1632
1653
  vendor: import("../onramp").OnrampVendor;
@@ -1683,6 +1704,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1683
1704
  nftPrice: string;
1684
1705
  };
1685
1706
  creatorAddress?: string | undefined;
1707
+ partnerId?: string | undefined;
1686
1708
  onramp?: {
1687
1709
  country: string;
1688
1710
  vendor: import("../onramp").OnrampVendor;
@@ -1731,6 +1753,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1731
1753
  entryPrice: string;
1732
1754
  };
1733
1755
  creatorAddress?: string | undefined;
1756
+ partnerId?: string | undefined;
1734
1757
  onramp?: {
1735
1758
  country: string;
1736
1759
  vendor: import("../onramp").OnrampVendor;
@@ -1779,6 +1802,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1779
1802
  fundAmount: string;
1780
1803
  };
1781
1804
  creatorAddress?: string | undefined;
1805
+ partnerId?: string | undefined;
1782
1806
  onramp?: {
1783
1807
  country: string;
1784
1808
  vendor: import("../onramp").OnrampVendor;
@@ -1824,6 +1848,7 @@ export declare const zCreateOrderRequest: z.ZodObject<{
1824
1848
  spenderAddress?: string | undefined;
1825
1849
  };
1826
1850
  creatorAddress?: string | undefined;
1851
+ partnerId?: string | undefined;
1827
1852
  onramp?: {
1828
1853
  country: string;
1829
1854
  vendor: import("../onramp").OnrampVendor;
@@ -1870,6 +1895,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
1870
1895
  ipAddress?: string | undefined;
1871
1896
  }>>;
1872
1897
  creatorAddress: z.ZodNullable<z.ZodString>;
1898
+ partnerId: z.ZodNullable<z.ZodString>;
1873
1899
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
1874
1900
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
1875
1901
  permit: z.ZodNullable<z.ZodObject<{
@@ -2055,6 +2081,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
2055
2081
  ipAddress?: string | undefined;
2056
2082
  } | null;
2057
2083
  creatorAddress: string | null;
2084
+ partnerId: string | null;
2058
2085
  oneClickBuyUrl: string | null;
2059
2086
  stripePaymentIntentId: string | null;
2060
2087
  permit: {
@@ -2112,6 +2139,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
2112
2139
  ipAddress?: string | undefined;
2113
2140
  } | null;
2114
2141
  creatorAddress: string | null;
2142
+ partnerId: string | null;
2115
2143
  oneClickBuyUrl: string | null;
2116
2144
  stripePaymentIntentId: string | null;
2117
2145
  permit: {
@@ -2158,6 +2186,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
2158
2186
  ipAddress?: string | undefined;
2159
2187
  }>>;
2160
2188
  creatorAddress: z.ZodNullable<z.ZodString>;
2189
+ partnerId: z.ZodNullable<z.ZodString>;
2161
2190
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
2162
2191
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
2163
2192
  permit: z.ZodNullable<z.ZodObject<{
@@ -2427,6 +2456,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
2427
2456
  ipAddress?: string | undefined;
2428
2457
  } | null;
2429
2458
  creatorAddress: string | null;
2459
+ partnerId: string | null;
2430
2460
  oneClickBuyUrl: string | null;
2431
2461
  stripePaymentIntentId: string | null;
2432
2462
  permit: {
@@ -2498,6 +2528,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
2498
2528
  ipAddress?: string | undefined;
2499
2529
  } | null;
2500
2530
  creatorAddress: string | null;
2531
+ partnerId: string | null;
2501
2532
  oneClickBuyUrl: string | null;
2502
2533
  stripePaymentIntentId: string | null;
2503
2534
  permit: {
@@ -2544,6 +2575,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
2544
2575
  ipAddress?: string | undefined;
2545
2576
  }>>;
2546
2577
  creatorAddress: z.ZodNullable<z.ZodString>;
2578
+ partnerId: z.ZodNullable<z.ZodString>;
2547
2579
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
2548
2580
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
2549
2581
  permit: z.ZodNullable<z.ZodObject<{
@@ -2763,6 +2795,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
2763
2795
  ipAddress?: string | undefined;
2764
2796
  } | null;
2765
2797
  creatorAddress: string | null;
2798
+ partnerId: string | null;
2766
2799
  oneClickBuyUrl: string | null;
2767
2800
  stripePaymentIntentId: string | null;
2768
2801
  permit: {
@@ -2826,6 +2859,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
2826
2859
  ipAddress?: string | undefined;
2827
2860
  } | null;
2828
2861
  creatorAddress: string | null;
2862
+ partnerId: string | null;
2829
2863
  oneClickBuyUrl: string | null;
2830
2864
  stripePaymentIntentId: string | null;
2831
2865
  permit: {
@@ -2872,6 +2906,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
2872
2906
  ipAddress?: string | undefined;
2873
2907
  }>>;
2874
2908
  creatorAddress: z.ZodNullable<z.ZodString>;
2909
+ partnerId: z.ZodNullable<z.ZodString>;
2875
2910
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
2876
2911
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
2877
2912
  permit: z.ZodNullable<z.ZodObject<{
@@ -3091,6 +3126,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3091
3126
  ipAddress?: string | undefined;
3092
3127
  } | null;
3093
3128
  creatorAddress: string | null;
3129
+ partnerId: string | null;
3094
3130
  oneClickBuyUrl: string | null;
3095
3131
  stripePaymentIntentId: string | null;
3096
3132
  permit: {
@@ -3154,6 +3190,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3154
3190
  ipAddress?: string | undefined;
3155
3191
  } | null;
3156
3192
  creatorAddress: string | null;
3193
+ partnerId: string | null;
3157
3194
  oneClickBuyUrl: string | null;
3158
3195
  stripePaymentIntentId: string | null;
3159
3196
  permit: {
@@ -3200,6 +3237,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3200
3237
  ipAddress?: string | undefined;
3201
3238
  }>>;
3202
3239
  creatorAddress: z.ZodNullable<z.ZodString>;
3240
+ partnerId: z.ZodNullable<z.ZodString>;
3203
3241
  oneClickBuyUrl: z.ZodNullable<z.ZodString>;
3204
3242
  stripePaymentIntentId: z.ZodNullable<z.ZodString>;
3205
3243
  permit: z.ZodNullable<z.ZodObject<{
@@ -3395,6 +3433,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3395
3433
  ipAddress?: string | undefined;
3396
3434
  } | null;
3397
3435
  creatorAddress: string | null;
3436
+ partnerId: string | null;
3398
3437
  oneClickBuyUrl: string | null;
3399
3438
  stripePaymentIntentId: string | null;
3400
3439
  permit: {
@@ -3455,6 +3494,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3455
3494
  ipAddress?: string | undefined;
3456
3495
  } | null;
3457
3496
  creatorAddress: string | null;
3497
+ partnerId: string | null;
3458
3498
  oneClickBuyUrl: string | null;
3459
3499
  stripePaymentIntentId: string | null;
3460
3500
  permit: {
@@ -3518,6 +3558,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3518
3558
  ipAddress?: string | undefined;
3519
3559
  } | null;
3520
3560
  creatorAddress: string | null;
3561
+ partnerId: string | null;
3521
3562
  oneClickBuyUrl: string | null;
3522
3563
  stripePaymentIntentId: string | null;
3523
3564
  permit: {
@@ -3589,6 +3630,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3589
3630
  ipAddress?: string | undefined;
3590
3631
  } | null;
3591
3632
  creatorAddress: string | null;
3633
+ partnerId: string | null;
3592
3634
  oneClickBuyUrl: string | null;
3593
3635
  stripePaymentIntentId: string | null;
3594
3636
  permit: {
@@ -3652,6 +3694,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3652
3694
  ipAddress?: string | undefined;
3653
3695
  } | null;
3654
3696
  creatorAddress: string | null;
3697
+ partnerId: string | null;
3655
3698
  oneClickBuyUrl: string | null;
3656
3699
  stripePaymentIntentId: string | null;
3657
3700
  permit: {
@@ -3715,6 +3758,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3715
3758
  ipAddress?: string | undefined;
3716
3759
  } | null;
3717
3760
  creatorAddress: string | null;
3761
+ partnerId: string | null;
3718
3762
  oneClickBuyUrl: string | null;
3719
3763
  stripePaymentIntentId: string | null;
3720
3764
  permit: {
@@ -3773,6 +3817,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3773
3817
  ipAddress?: string | undefined;
3774
3818
  } | null;
3775
3819
  creatorAddress: string | null;
3820
+ partnerId: string | null;
3776
3821
  oneClickBuyUrl: string | null;
3777
3822
  stripePaymentIntentId: string | null;
3778
3823
  permit: {
@@ -3837,6 +3882,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3837
3882
  ipAddress?: string | undefined;
3838
3883
  } | null;
3839
3884
  creatorAddress: string | null;
3885
+ partnerId: string | null;
3840
3886
  oneClickBuyUrl: string | null;
3841
3887
  stripePaymentIntentId: string | null;
3842
3888
  permit: {
@@ -3908,6 +3954,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3908
3954
  ipAddress?: string | undefined;
3909
3955
  } | null;
3910
3956
  creatorAddress: string | null;
3957
+ partnerId: string | null;
3911
3958
  oneClickBuyUrl: string | null;
3912
3959
  stripePaymentIntentId: string | null;
3913
3960
  permit: {
@@ -3971,6 +4018,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
3971
4018
  ipAddress?: string | undefined;
3972
4019
  } | null;
3973
4020
  creatorAddress: string | null;
4021
+ partnerId: string | null;
3974
4022
  oneClickBuyUrl: string | null;
3975
4023
  stripePaymentIntentId: string | null;
3976
4024
  permit: {
@@ -4034,6 +4082,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
4034
4082
  ipAddress?: string | undefined;
4035
4083
  } | null;
4036
4084
  creatorAddress: string | null;
4085
+ partnerId: string | null;
4037
4086
  oneClickBuyUrl: string | null;
4038
4087
  stripePaymentIntentId: string | null;
4039
4088
  permit: {
@@ -4092,6 +4141,7 @@ export declare const zCreateOrderResponse: z.ZodObject<{
4092
4141
  ipAddress?: string | undefined;
4093
4142
  } | null;
4094
4143
  creatorAddress: string | null;
4144
+ partnerId: string | null;
4095
4145
  oneClickBuyUrl: string | null;
4096
4146
  stripePaymentIntentId: string | null;
4097
4147
  permit: {
@@ -15,6 +15,7 @@ const zBaseCreateOrderBody = zod_1.z.object({
15
15
  srcTokenAddress: zod_1.z.string(),
16
16
  dstTokenAddress: zod_1.z.string(),
17
17
  srcAmount: zod_1.z.string(),
18
+ partnerId: zod_1.z.string().optional(),
18
19
  onramp: onramp_1.zOnrampMetadata.optional(),
19
20
  creatorAddress: zod_1.z.string().optional()
20
21
  });