@b3dotfun/sdk 0.0.7-alpha.26 → 0.0.7-alpha.27
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.
- package/dist/cjs/anyspend/react/components/common/OrderDetails.js +0 -40
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +0 -1
- package/dist/cjs/anyspend/react/hooks/index.d.ts +0 -2
- package/dist/cjs/anyspend/react/hooks/index.js +0 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +0 -70
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -70
- package/dist/cjs/anyspend/services/anyspend.d.ts +1 -39
- package/dist/cjs/anyspend/services/anyspend.js +0 -13
- package/dist/cjs/anyspend/types/index.d.ts +0 -1
- package/dist/cjs/anyspend/types/index.js +0 -1
- package/dist/cjs/anyspend/types/order.d.ts +0 -200
- package/dist/cjs/anyspend/types/order.js +1 -6
- package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +0 -235
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -305
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +0 -235
- package/dist/cjs/anyspend/types/req-res/index.d.ts +0 -1
- package/dist/cjs/anyspend/types/req-res/index.js +0 -1
- package/dist/cjs/anyspend/utils/format.js +0 -4
- package/dist/esm/anyspend/react/components/common/OrderDetails.js +0 -40
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +0 -1
- package/dist/esm/anyspend/react/hooks/index.d.ts +0 -2
- package/dist/esm/anyspend/react/hooks/index.js +0 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +0 -70
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -70
- package/dist/esm/anyspend/services/anyspend.d.ts +1 -39
- package/dist/esm/anyspend/services/anyspend.js +0 -13
- package/dist/esm/anyspend/types/index.d.ts +0 -1
- package/dist/esm/anyspend/types/index.js +0 -1
- package/dist/esm/anyspend/types/order.d.ts +0 -200
- package/dist/esm/anyspend/types/order.js +1 -6
- package/dist/esm/anyspend/types/req-res/createOrder.d.ts +0 -235
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -305
- package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +0 -235
- package/dist/esm/anyspend/types/req-res/index.d.ts +0 -1
- package/dist/esm/anyspend/types/req-res/index.js +0 -1
- package/dist/esm/anyspend/utils/format.js +0 -4
- package/dist/types/anyspend/react/hooks/index.d.ts +0 -2
- package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +0 -70
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -70
- package/dist/types/anyspend/services/anyspend.d.ts +1 -39
- package/dist/types/anyspend/types/index.d.ts +0 -1
- package/dist/types/anyspend/types/order.d.ts +0 -200
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +0 -235
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -305
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +0 -235
- package/dist/types/anyspend/types/req-res/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/anyspend/react/components/common/OrderDetails.tsx +0 -46
- package/src/anyspend/react/components/webview/WebviewOnrampOrderStatus.tsx +0 -1
- package/src/anyspend/react/hooks/index.ts +0 -2
- package/src/anyspend/services/anyspend.ts +0 -18
- package/src/anyspend/types/index.ts +0 -1
- package/src/anyspend/types/order.ts +1 -8
- package/src/anyspend/types/req-res/index.ts +0 -1
- package/src/anyspend/utils/format.ts +0 -5
- package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +0 -16
- package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.js +0 -39
- package/dist/cjs/anyspend/react/hooks/usePermitData.d.ts +0 -92
- package/dist/cjs/anyspend/react/hooks/usePermitData.js +0 -158
- package/dist/cjs/anyspend/types/permit.d.ts +0 -21
- package/dist/cjs/anyspend/types/permit.js +0 -11
- package/dist/cjs/anyspend/types/req-res/sendPermitData.d.ts +0 -66
- package/dist/cjs/anyspend/types/req-res/sendPermitData.js +0 -11
- package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +0 -16
- package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.js +0 -36
- package/dist/esm/anyspend/react/hooks/usePermitData.d.ts +0 -92
- package/dist/esm/anyspend/react/hooks/usePermitData.js +0 -154
- package/dist/esm/anyspend/types/permit.d.ts +0 -21
- package/dist/esm/anyspend/types/permit.js +0 -8
- package/dist/esm/anyspend/types/req-res/sendPermitData.d.ts +0 -66
- package/dist/esm/anyspend/types/req-res/sendPermitData.js +0 -8
- package/dist/types/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +0 -16
- package/dist/types/anyspend/react/hooks/usePermitData.d.ts +0 -92
- package/dist/types/anyspend/types/permit.d.ts +0 -21
- package/dist/types/anyspend/types/req-res/sendPermitData.d.ts +0 -66
- package/src/anyspend/react/hooks/useAnyspendSendPermitData.ts +0 -38
- package/src/anyspend/react/hooks/usePermitData.ts +0 -183
- package/src/anyspend/types/permit.ts +0 -10
- package/src/anyspend/types/req-res/sendPermitData.ts +0 -10
|
@@ -41,25 +41,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
41
41
|
partnerId: z.ZodNullable<z.ZodString>;
|
|
42
42
|
oneClickBuyUrl: z.ZodNullable<z.ZodString>;
|
|
43
43
|
stripePaymentIntentId: z.ZodNullable<z.ZodString>;
|
|
44
|
-
permit: z.ZodNullable<z.ZodObject<{
|
|
45
|
-
ownerAddress: z.ZodString;
|
|
46
|
-
deadline: z.ZodNumber;
|
|
47
|
-
v: z.ZodNumber;
|
|
48
|
-
r: z.ZodString;
|
|
49
|
-
s: z.ZodString;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
ownerAddress: string;
|
|
52
|
-
deadline: number;
|
|
53
|
-
v: number;
|
|
54
|
-
r: string;
|
|
55
|
-
s: string;
|
|
56
|
-
}, {
|
|
57
|
-
ownerAddress: string;
|
|
58
|
-
deadline: number;
|
|
59
|
-
v: number;
|
|
60
|
-
r: string;
|
|
61
|
-
s: string;
|
|
62
|
-
}>>;
|
|
63
44
|
} & {
|
|
64
45
|
type: z.ZodLiteral<import("../order").OrderType.Swap>;
|
|
65
46
|
payload: z.ZodObject<{
|
|
@@ -228,13 +209,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
228
209
|
partnerId: string | null;
|
|
229
210
|
oneClickBuyUrl: string | null;
|
|
230
211
|
stripePaymentIntentId: string | null;
|
|
231
|
-
permit: {
|
|
232
|
-
ownerAddress: string;
|
|
233
|
-
deadline: number;
|
|
234
|
-
v: number;
|
|
235
|
-
r: string;
|
|
236
|
-
s: string;
|
|
237
|
-
} | null;
|
|
238
212
|
payload: {
|
|
239
213
|
expectedDstAmount: string;
|
|
240
214
|
actualDstAmount: string | null;
|
|
@@ -287,13 +261,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
287
261
|
partnerId: string | null;
|
|
288
262
|
oneClickBuyUrl: string | null;
|
|
289
263
|
stripePaymentIntentId: string | null;
|
|
290
|
-
permit: {
|
|
291
|
-
ownerAddress: string;
|
|
292
|
-
deadline: number;
|
|
293
|
-
v: number;
|
|
294
|
-
r: string;
|
|
295
|
-
s: string;
|
|
296
|
-
} | null;
|
|
297
264
|
payload: {
|
|
298
265
|
expectedDstAmount: string;
|
|
299
266
|
actualDstAmount: string | null;
|
|
@@ -337,25 +304,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
337
304
|
partnerId: z.ZodNullable<z.ZodString>;
|
|
338
305
|
oneClickBuyUrl: z.ZodNullable<z.ZodString>;
|
|
339
306
|
stripePaymentIntentId: z.ZodNullable<z.ZodString>;
|
|
340
|
-
permit: z.ZodNullable<z.ZodObject<{
|
|
341
|
-
ownerAddress: z.ZodString;
|
|
342
|
-
deadline: z.ZodNumber;
|
|
343
|
-
v: z.ZodNumber;
|
|
344
|
-
r: z.ZodString;
|
|
345
|
-
s: z.ZodString;
|
|
346
|
-
}, "strip", z.ZodTypeAny, {
|
|
347
|
-
ownerAddress: string;
|
|
348
|
-
deadline: number;
|
|
349
|
-
v: number;
|
|
350
|
-
r: string;
|
|
351
|
-
s: string;
|
|
352
|
-
}, {
|
|
353
|
-
ownerAddress: string;
|
|
354
|
-
deadline: number;
|
|
355
|
-
v: number;
|
|
356
|
-
r: string;
|
|
357
|
-
s: string;
|
|
358
|
-
}>>;
|
|
359
307
|
} & {
|
|
360
308
|
type: z.ZodLiteral<import("../order").OrderType.MintNFT>;
|
|
361
309
|
payload: z.ZodObject<{
|
|
@@ -614,13 +562,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
614
562
|
partnerId: string | null;
|
|
615
563
|
oneClickBuyUrl: string | null;
|
|
616
564
|
stripePaymentIntentId: string | null;
|
|
617
|
-
permit: {
|
|
618
|
-
ownerAddress: string;
|
|
619
|
-
deadline: number;
|
|
620
|
-
v: number;
|
|
621
|
-
r: string;
|
|
622
|
-
s: string;
|
|
623
|
-
} | null;
|
|
624
565
|
payload: {
|
|
625
566
|
contractAddress: string;
|
|
626
567
|
tokenId: number | null;
|
|
@@ -689,13 +630,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
689
630
|
partnerId: string | null;
|
|
690
631
|
oneClickBuyUrl: string | null;
|
|
691
632
|
stripePaymentIntentId: string | null;
|
|
692
|
-
permit: {
|
|
693
|
-
ownerAddress: string;
|
|
694
|
-
deadline: number;
|
|
695
|
-
v: number;
|
|
696
|
-
r: string;
|
|
697
|
-
s: string;
|
|
698
|
-
} | null;
|
|
699
633
|
payload: {
|
|
700
634
|
contractAddress: string;
|
|
701
635
|
tokenId: number | null;
|
|
@@ -741,25 +675,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
741
675
|
partnerId: z.ZodNullable<z.ZodString>;
|
|
742
676
|
oneClickBuyUrl: z.ZodNullable<z.ZodString>;
|
|
743
677
|
stripePaymentIntentId: z.ZodNullable<z.ZodString>;
|
|
744
|
-
permit: z.ZodNullable<z.ZodObject<{
|
|
745
|
-
ownerAddress: z.ZodString;
|
|
746
|
-
deadline: z.ZodNumber;
|
|
747
|
-
v: z.ZodNumber;
|
|
748
|
-
r: z.ZodString;
|
|
749
|
-
s: z.ZodString;
|
|
750
|
-
}, "strip", z.ZodTypeAny, {
|
|
751
|
-
ownerAddress: string;
|
|
752
|
-
deadline: number;
|
|
753
|
-
v: number;
|
|
754
|
-
r: string;
|
|
755
|
-
s: string;
|
|
756
|
-
}, {
|
|
757
|
-
ownerAddress: string;
|
|
758
|
-
deadline: number;
|
|
759
|
-
v: number;
|
|
760
|
-
r: string;
|
|
761
|
-
s: string;
|
|
762
|
-
}>>;
|
|
763
678
|
} & {
|
|
764
679
|
type: z.ZodLiteral<import("../order").OrderType.JoinTournament>;
|
|
765
680
|
payload: z.ZodObject<{
|
|
@@ -962,13 +877,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
962
877
|
partnerId: string | null;
|
|
963
878
|
oneClickBuyUrl: string | null;
|
|
964
879
|
stripePaymentIntentId: string | null;
|
|
965
|
-
permit: {
|
|
966
|
-
ownerAddress: string;
|
|
967
|
-
deadline: number;
|
|
968
|
-
v: number;
|
|
969
|
-
r: string;
|
|
970
|
-
s: string;
|
|
971
|
-
} | null;
|
|
972
880
|
payload: {
|
|
973
881
|
contractAddress: string;
|
|
974
882
|
entryPrice: string;
|
|
@@ -1027,13 +935,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1027
935
|
partnerId: string | null;
|
|
1028
936
|
oneClickBuyUrl: string | null;
|
|
1029
937
|
stripePaymentIntentId: string | null;
|
|
1030
|
-
permit: {
|
|
1031
|
-
ownerAddress: string;
|
|
1032
|
-
deadline: number;
|
|
1033
|
-
v: number;
|
|
1034
|
-
r: string;
|
|
1035
|
-
s: string;
|
|
1036
|
-
} | null;
|
|
1037
938
|
payload: {
|
|
1038
939
|
contractAddress: string;
|
|
1039
940
|
entryPrice: string;
|
|
@@ -1077,25 +978,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1077
978
|
partnerId: z.ZodNullable<z.ZodString>;
|
|
1078
979
|
oneClickBuyUrl: z.ZodNullable<z.ZodString>;
|
|
1079
980
|
stripePaymentIntentId: z.ZodNullable<z.ZodString>;
|
|
1080
|
-
permit: z.ZodNullable<z.ZodObject<{
|
|
1081
|
-
ownerAddress: z.ZodString;
|
|
1082
|
-
deadline: z.ZodNumber;
|
|
1083
|
-
v: z.ZodNumber;
|
|
1084
|
-
r: z.ZodString;
|
|
1085
|
-
s: z.ZodString;
|
|
1086
|
-
}, "strip", z.ZodTypeAny, {
|
|
1087
|
-
ownerAddress: string;
|
|
1088
|
-
deadline: number;
|
|
1089
|
-
v: number;
|
|
1090
|
-
r: string;
|
|
1091
|
-
s: string;
|
|
1092
|
-
}, {
|
|
1093
|
-
ownerAddress: string;
|
|
1094
|
-
deadline: number;
|
|
1095
|
-
v: number;
|
|
1096
|
-
r: string;
|
|
1097
|
-
s: string;
|
|
1098
|
-
}>>;
|
|
1099
981
|
} & {
|
|
1100
982
|
type: z.ZodLiteral<import("../order").OrderType.FundTournament>;
|
|
1101
983
|
payload: z.ZodObject<{
|
|
@@ -1298,13 +1180,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1298
1180
|
partnerId: string | null;
|
|
1299
1181
|
oneClickBuyUrl: string | null;
|
|
1300
1182
|
stripePaymentIntentId: string | null;
|
|
1301
|
-
permit: {
|
|
1302
|
-
ownerAddress: string;
|
|
1303
|
-
deadline: number;
|
|
1304
|
-
v: number;
|
|
1305
|
-
r: string;
|
|
1306
|
-
s: string;
|
|
1307
|
-
} | null;
|
|
1308
1183
|
payload: {
|
|
1309
1184
|
contractAddress: string;
|
|
1310
1185
|
fundAmount: string;
|
|
@@ -1363,13 +1238,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1363
1238
|
partnerId: string | null;
|
|
1364
1239
|
oneClickBuyUrl: string | null;
|
|
1365
1240
|
stripePaymentIntentId: string | null;
|
|
1366
|
-
permit: {
|
|
1367
|
-
ownerAddress: string;
|
|
1368
|
-
deadline: number;
|
|
1369
|
-
v: number;
|
|
1370
|
-
r: string;
|
|
1371
|
-
s: string;
|
|
1372
|
-
} | null;
|
|
1373
1241
|
payload: {
|
|
1374
1242
|
contractAddress: string;
|
|
1375
1243
|
fundAmount: string;
|
|
@@ -1413,25 +1281,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1413
1281
|
partnerId: z.ZodNullable<z.ZodString>;
|
|
1414
1282
|
oneClickBuyUrl: z.ZodNullable<z.ZodString>;
|
|
1415
1283
|
stripePaymentIntentId: z.ZodNullable<z.ZodString>;
|
|
1416
|
-
permit: z.ZodNullable<z.ZodObject<{
|
|
1417
|
-
ownerAddress: z.ZodString;
|
|
1418
|
-
deadline: z.ZodNumber;
|
|
1419
|
-
v: z.ZodNumber;
|
|
1420
|
-
r: z.ZodString;
|
|
1421
|
-
s: z.ZodString;
|
|
1422
|
-
}, "strip", z.ZodTypeAny, {
|
|
1423
|
-
ownerAddress: string;
|
|
1424
|
-
deadline: number;
|
|
1425
|
-
v: number;
|
|
1426
|
-
r: string;
|
|
1427
|
-
s: string;
|
|
1428
|
-
}, {
|
|
1429
|
-
ownerAddress: string;
|
|
1430
|
-
deadline: number;
|
|
1431
|
-
v: number;
|
|
1432
|
-
r: string;
|
|
1433
|
-
s: string;
|
|
1434
|
-
}>>;
|
|
1435
1284
|
} & {
|
|
1436
1285
|
type: z.ZodLiteral<import("../order").OrderType.Custom>;
|
|
1437
1286
|
payload: z.ZodObject<{
|
|
@@ -1610,13 +1459,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1610
1459
|
partnerId: string | null;
|
|
1611
1460
|
oneClickBuyUrl: string | null;
|
|
1612
1461
|
stripePaymentIntentId: string | null;
|
|
1613
|
-
permit: {
|
|
1614
|
-
ownerAddress: string;
|
|
1615
|
-
deadline: number;
|
|
1616
|
-
v: number;
|
|
1617
|
-
r: string;
|
|
1618
|
-
s: string;
|
|
1619
|
-
} | null;
|
|
1620
1462
|
payload: {
|
|
1621
1463
|
data: string;
|
|
1622
1464
|
to: string;
|
|
@@ -1672,13 +1514,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1672
1514
|
partnerId: string | null;
|
|
1673
1515
|
oneClickBuyUrl: string | null;
|
|
1674
1516
|
stripePaymentIntentId: string | null;
|
|
1675
|
-
permit: {
|
|
1676
|
-
ownerAddress: string;
|
|
1677
|
-
deadline: number;
|
|
1678
|
-
v: number;
|
|
1679
|
-
r: string;
|
|
1680
|
-
s: string;
|
|
1681
|
-
} | null;
|
|
1682
1517
|
payload: {
|
|
1683
1518
|
data: string;
|
|
1684
1519
|
to: string;
|
|
@@ -1737,13 +1572,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1737
1572
|
partnerId: string | null;
|
|
1738
1573
|
oneClickBuyUrl: string | null;
|
|
1739
1574
|
stripePaymentIntentId: string | null;
|
|
1740
|
-
permit: {
|
|
1741
|
-
ownerAddress: string;
|
|
1742
|
-
deadline: number;
|
|
1743
|
-
v: number;
|
|
1744
|
-
r: string;
|
|
1745
|
-
s: string;
|
|
1746
|
-
} | null;
|
|
1747
1575
|
payload: {
|
|
1748
1576
|
expectedDstAmount: string;
|
|
1749
1577
|
actualDstAmount: string | null;
|
|
@@ -1810,13 +1638,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1810
1638
|
partnerId: string | null;
|
|
1811
1639
|
oneClickBuyUrl: string | null;
|
|
1812
1640
|
stripePaymentIntentId: string | null;
|
|
1813
|
-
permit: {
|
|
1814
|
-
ownerAddress: string;
|
|
1815
|
-
deadline: number;
|
|
1816
|
-
v: number;
|
|
1817
|
-
r: string;
|
|
1818
|
-
s: string;
|
|
1819
|
-
} | null;
|
|
1820
1641
|
payload: {
|
|
1821
1642
|
contractAddress: string;
|
|
1822
1643
|
tokenId: number | null;
|
|
@@ -1877,13 +1698,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1877
1698
|
partnerId: string | null;
|
|
1878
1699
|
oneClickBuyUrl: string | null;
|
|
1879
1700
|
stripePaymentIntentId: string | null;
|
|
1880
|
-
permit: {
|
|
1881
|
-
ownerAddress: string;
|
|
1882
|
-
deadline: number;
|
|
1883
|
-
v: number;
|
|
1884
|
-
r: string;
|
|
1885
|
-
s: string;
|
|
1886
|
-
} | null;
|
|
1887
1701
|
payload: {
|
|
1888
1702
|
contractAddress: string;
|
|
1889
1703
|
entryPrice: string;
|
|
@@ -1942,13 +1756,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
1942
1756
|
partnerId: string | null;
|
|
1943
1757
|
oneClickBuyUrl: string | null;
|
|
1944
1758
|
stripePaymentIntentId: string | null;
|
|
1945
|
-
permit: {
|
|
1946
|
-
ownerAddress: string;
|
|
1947
|
-
deadline: number;
|
|
1948
|
-
v: number;
|
|
1949
|
-
r: string;
|
|
1950
|
-
s: string;
|
|
1951
|
-
} | null;
|
|
1952
1759
|
payload: {
|
|
1953
1760
|
contractAddress: string;
|
|
1954
1761
|
fundAmount: string;
|
|
@@ -2002,13 +1809,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
2002
1809
|
partnerId: string | null;
|
|
2003
1810
|
oneClickBuyUrl: string | null;
|
|
2004
1811
|
stripePaymentIntentId: string | null;
|
|
2005
|
-
permit: {
|
|
2006
|
-
ownerAddress: string;
|
|
2007
|
-
deadline: number;
|
|
2008
|
-
v: number;
|
|
2009
|
-
r: string;
|
|
2010
|
-
s: string;
|
|
2011
|
-
} | null;
|
|
2012
1812
|
payload: {
|
|
2013
1813
|
data: string;
|
|
2014
1814
|
to: string;
|
|
@@ -2068,13 +1868,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
2068
1868
|
partnerId: string | null;
|
|
2069
1869
|
oneClickBuyUrl: string | null;
|
|
2070
1870
|
stripePaymentIntentId: string | null;
|
|
2071
|
-
permit: {
|
|
2072
|
-
ownerAddress: string;
|
|
2073
|
-
deadline: number;
|
|
2074
|
-
v: number;
|
|
2075
|
-
r: string;
|
|
2076
|
-
s: string;
|
|
2077
|
-
} | null;
|
|
2078
1871
|
payload: {
|
|
2079
1872
|
expectedDstAmount: string;
|
|
2080
1873
|
actualDstAmount: string | null;
|
|
@@ -2141,13 +1934,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
2141
1934
|
partnerId: string | null;
|
|
2142
1935
|
oneClickBuyUrl: string | null;
|
|
2143
1936
|
stripePaymentIntentId: string | null;
|
|
2144
|
-
permit: {
|
|
2145
|
-
ownerAddress: string;
|
|
2146
|
-
deadline: number;
|
|
2147
|
-
v: number;
|
|
2148
|
-
r: string;
|
|
2149
|
-
s: string;
|
|
2150
|
-
} | null;
|
|
2151
1937
|
payload: {
|
|
2152
1938
|
contractAddress: string;
|
|
2153
1939
|
tokenId: number | null;
|
|
@@ -2208,13 +1994,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
2208
1994
|
partnerId: string | null;
|
|
2209
1995
|
oneClickBuyUrl: string | null;
|
|
2210
1996
|
stripePaymentIntentId: string | null;
|
|
2211
|
-
permit: {
|
|
2212
|
-
ownerAddress: string;
|
|
2213
|
-
deadline: number;
|
|
2214
|
-
v: number;
|
|
2215
|
-
r: string;
|
|
2216
|
-
s: string;
|
|
2217
|
-
} | null;
|
|
2218
1997
|
payload: {
|
|
2219
1998
|
contractAddress: string;
|
|
2220
1999
|
entryPrice: string;
|
|
@@ -2273,13 +2052,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
2273
2052
|
partnerId: string | null;
|
|
2274
2053
|
oneClickBuyUrl: string | null;
|
|
2275
2054
|
stripePaymentIntentId: string | null;
|
|
2276
|
-
permit: {
|
|
2277
|
-
ownerAddress: string;
|
|
2278
|
-
deadline: number;
|
|
2279
|
-
v: number;
|
|
2280
|
-
r: string;
|
|
2281
|
-
s: string;
|
|
2282
|
-
} | null;
|
|
2283
2055
|
payload: {
|
|
2284
2056
|
contractAddress: string;
|
|
2285
2057
|
fundAmount: string;
|
|
@@ -2333,13 +2105,6 @@ export declare const zGetOrderHistoryResponse: z.ZodObject<{
|
|
|
2333
2105
|
partnerId: string | null;
|
|
2334
2106
|
oneClickBuyUrl: string | null;
|
|
2335
2107
|
stripePaymentIntentId: string | null;
|
|
2336
|
-
permit: {
|
|
2337
|
-
ownerAddress: string;
|
|
2338
|
-
deadline: number;
|
|
2339
|
-
v: number;
|
|
2340
|
-
r: string;
|
|
2341
|
-
s: string;
|
|
2342
|
-
} | null;
|
|
2343
2108
|
payload: {
|
|
2344
2109
|
data: string;
|
|
2345
2110
|
to: string;
|
|
@@ -14,10 +14,6 @@ const getStatusDisplay = (order) => {
|
|
|
14
14
|
text: "Awaiting Payment",
|
|
15
15
|
status: "processing",
|
|
16
16
|
};
|
|
17
|
-
case types_1.OrderStatus.ObtainToken:
|
|
18
|
-
return { text: "Obtaining Token", status: "processing" };
|
|
19
|
-
case types_1.OrderStatus.ObtainFailed:
|
|
20
|
-
return { text: "Obtain Token Failed", status: "failure" };
|
|
21
17
|
case types_1.OrderStatus.Expired:
|
|
22
18
|
return { text: "Order Expired", status: "failure" };
|
|
23
19
|
case types_1.OrderStatus.SendingTokenFromVault:
|
|
@@ -131,21 +131,6 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
|
|
|
131
131
|
const [showQRCode, setShowQRCode] = useState(false);
|
|
132
132
|
const { isLoading: txLoading, isSuccess: txSuccess } = useWaitForTransactionReceipt({ hash: txHash });
|
|
133
133
|
const { switchChainAndExecute, isSwitchingOrExecuting } = useChainSwitchWithAction();
|
|
134
|
-
// const { permitData, isCheckingPermit } = usePermitData({
|
|
135
|
-
// chainId: order.srcChain,
|
|
136
|
-
// tokenAddress: order.srcTokenAddress as Hex,
|
|
137
|
-
// ownerAddress: account?.address && isAddress(account.address) ? getAddress(account.address) : undefined,
|
|
138
|
-
// amount: BigInt(order.srcAmount)
|
|
139
|
-
// });
|
|
140
|
-
// const { sendPermitData } = useAnyspendSendPermitData({
|
|
141
|
-
// onSuccess: _data => {
|
|
142
|
-
// toast.info("Sent permit data successfully");
|
|
143
|
-
// },
|
|
144
|
-
// onError: error => {
|
|
145
|
-
// console.error(error);
|
|
146
|
-
// toast.error("Failed to send permit data: " + error.message);
|
|
147
|
-
// }
|
|
148
|
-
// });
|
|
149
134
|
const { colorMode } = useColorMode();
|
|
150
135
|
const roundedUpSrcAmount = useMemo(() => {
|
|
151
136
|
// Display the full transfer amount without rounding since users need to see the exact value they're transferring.
|
|
@@ -162,31 +147,6 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
|
|
|
162
147
|
return;
|
|
163
148
|
}
|
|
164
149
|
console.log("Processing transaction on chain:", currentWalletClient.chain.id);
|
|
165
|
-
// Process transaction
|
|
166
|
-
// if (permitData?.data && account.address) {
|
|
167
|
-
// const signature = await currentWalletClient.signTypedData({
|
|
168
|
-
// domain: permitData.data.domain,
|
|
169
|
-
// types: permitData.data.types,
|
|
170
|
-
// primaryType: "Permit",
|
|
171
|
-
// message: permitData.data.messageToSign
|
|
172
|
-
// });
|
|
173
|
-
// // Split signature into v, r, s components
|
|
174
|
-
// const r = signature.slice(0, 66);
|
|
175
|
-
// const s = "0x" + signature.slice(66, 130);
|
|
176
|
-
// const v = parseInt(signature.slice(130, 132), 16);
|
|
177
|
-
// sendPermitData({
|
|
178
|
-
// isMainnet: true,
|
|
179
|
-
// orderId: order.id,
|
|
180
|
-
// permitData: {
|
|
181
|
-
// deadline: Number(permitData.data.messageToSign.deadline),
|
|
182
|
-
// ownerAddress: account.address,
|
|
183
|
-
// r,
|
|
184
|
-
// s,
|
|
185
|
-
// v
|
|
186
|
-
// }
|
|
187
|
-
// });
|
|
188
|
-
// return;
|
|
189
|
-
// }
|
|
190
150
|
const signer = currentWalletClient.account;
|
|
191
151
|
// Send transaction
|
|
192
152
|
if (isNativeToken(order.srcTokenAddress)) {
|
|
@@ -10,7 +10,6 @@ export function WebviewOnrampOrderStatus({ order }) {
|
|
|
10
10
|
const isPending = order.status === OrderStatus.WaitingStripePayment ||
|
|
11
11
|
order.status === OrderStatus.ScanningDepositTransaction ||
|
|
12
12
|
order.status === OrderStatus.SendingTokenFromVault ||
|
|
13
|
-
order.status === OrderStatus.ObtainToken ||
|
|
14
13
|
order.status === OrderStatus.Relay;
|
|
15
14
|
const isExecuted = order.status === OrderStatus.Executed;
|
|
16
15
|
const isFailed = order.status === OrderStatus.Failure;
|
|
@@ -3,12 +3,10 @@ export * from "./useAnyspendCreateOrder";
|
|
|
3
3
|
export * from "./useAnyspendOrderAndTransactions";
|
|
4
4
|
export * from "./useAnyspendOrderHistory";
|
|
5
5
|
export * from "./useAnyspendQuote";
|
|
6
|
-
export * from "./useAnyspendSendPermitData";
|
|
7
6
|
export * from "./useAnyspendTokens";
|
|
8
7
|
export * from "./useCoinbaseOnrampOptions";
|
|
9
8
|
export * from "./useGeoOnrampOptions";
|
|
10
9
|
export * from "./useGetGeo";
|
|
11
|
-
export * from "./usePermitData";
|
|
12
10
|
export * from "./useSigMint";
|
|
13
11
|
export * from "./useStripeClientSecret";
|
|
14
12
|
export * from "./useStripeSupport";
|
|
@@ -3,12 +3,10 @@ export * from "./useAnyspendCreateOrder.js";
|
|
|
3
3
|
export * from "./useAnyspendOrderAndTransactions.js";
|
|
4
4
|
export * from "./useAnyspendOrderHistory.js";
|
|
5
5
|
export * from "./useAnyspendQuote.js";
|
|
6
|
-
export * from "./useAnyspendSendPermitData.js";
|
|
7
6
|
export * from "./useAnyspendTokens.js";
|
|
8
7
|
export * from "./useCoinbaseOnrampOptions.js";
|
|
9
8
|
export * from "./useGeoOnrampOptions.js";
|
|
10
9
|
export * from "./useGetGeo.js";
|
|
11
|
-
export * from "./usePermitData.js";
|
|
12
10
|
export * from "./useSigMint.js";
|
|
13
11
|
export * from "./useStripeClientSecret.js";
|
|
14
12
|
export * from "./useStripeSupport.js";
|
|
@@ -50,13 +50,6 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
50
50
|
partnerId: string | null;
|
|
51
51
|
oneClickBuyUrl: string | null;
|
|
52
52
|
stripePaymentIntentId: string | null;
|
|
53
|
-
permit: {
|
|
54
|
-
ownerAddress: string;
|
|
55
|
-
deadline: number;
|
|
56
|
-
v: number;
|
|
57
|
-
r: string;
|
|
58
|
-
s: string;
|
|
59
|
-
} | null;
|
|
60
53
|
payload: {
|
|
61
54
|
expectedDstAmount: string;
|
|
62
55
|
actualDstAmount: string | null;
|
|
@@ -123,13 +116,6 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
123
116
|
partnerId: string | null;
|
|
124
117
|
oneClickBuyUrl: string | null;
|
|
125
118
|
stripePaymentIntentId: string | null;
|
|
126
|
-
permit: {
|
|
127
|
-
ownerAddress: string;
|
|
128
|
-
deadline: number;
|
|
129
|
-
v: number;
|
|
130
|
-
r: string;
|
|
131
|
-
s: string;
|
|
132
|
-
} | null;
|
|
133
119
|
payload: {
|
|
134
120
|
contractAddress: string;
|
|
135
121
|
tokenId: number | null;
|
|
@@ -190,13 +176,6 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
190
176
|
partnerId: string | null;
|
|
191
177
|
oneClickBuyUrl: string | null;
|
|
192
178
|
stripePaymentIntentId: string | null;
|
|
193
|
-
permit: {
|
|
194
|
-
ownerAddress: string;
|
|
195
|
-
deadline: number;
|
|
196
|
-
v: number;
|
|
197
|
-
r: string;
|
|
198
|
-
s: string;
|
|
199
|
-
} | null;
|
|
200
179
|
payload: {
|
|
201
180
|
contractAddress: string;
|
|
202
181
|
entryPrice: string;
|
|
@@ -255,13 +234,6 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
255
234
|
partnerId: string | null;
|
|
256
235
|
oneClickBuyUrl: string | null;
|
|
257
236
|
stripePaymentIntentId: string | null;
|
|
258
|
-
permit: {
|
|
259
|
-
ownerAddress: string;
|
|
260
|
-
deadline: number;
|
|
261
|
-
v: number;
|
|
262
|
-
r: string;
|
|
263
|
-
s: string;
|
|
264
|
-
} | null;
|
|
265
237
|
payload: {
|
|
266
238
|
contractAddress: string;
|
|
267
239
|
fundAmount: string;
|
|
@@ -315,13 +287,6 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
315
287
|
partnerId: string | null;
|
|
316
288
|
oneClickBuyUrl: string | null;
|
|
317
289
|
stripePaymentIntentId: string | null;
|
|
318
|
-
permit: {
|
|
319
|
-
ownerAddress: string;
|
|
320
|
-
deadline: number;
|
|
321
|
-
v: number;
|
|
322
|
-
r: string;
|
|
323
|
-
s: string;
|
|
324
|
-
} | null;
|
|
325
290
|
payload: {
|
|
326
291
|
data: string;
|
|
327
292
|
to: string;
|
|
@@ -415,13 +380,6 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
415
380
|
partnerId: string | null;
|
|
416
381
|
oneClickBuyUrl: string | null;
|
|
417
382
|
stripePaymentIntentId: string | null;
|
|
418
|
-
permit: {
|
|
419
|
-
ownerAddress: string;
|
|
420
|
-
deadline: number;
|
|
421
|
-
v: number;
|
|
422
|
-
r: string;
|
|
423
|
-
s: string;
|
|
424
|
-
} | null;
|
|
425
383
|
payload: {
|
|
426
384
|
expectedDstAmount: string;
|
|
427
385
|
actualDstAmount: string | null;
|
|
@@ -488,13 +446,6 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
488
446
|
partnerId: string | null;
|
|
489
447
|
oneClickBuyUrl: string | null;
|
|
490
448
|
stripePaymentIntentId: string | null;
|
|
491
|
-
permit: {
|
|
492
|
-
ownerAddress: string;
|
|
493
|
-
deadline: number;
|
|
494
|
-
v: number;
|
|
495
|
-
r: string;
|
|
496
|
-
s: string;
|
|
497
|
-
} | null;
|
|
498
449
|
payload: {
|
|
499
450
|
contractAddress: string;
|
|
500
451
|
tokenId: number | null;
|
|
@@ -555,13 +506,6 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
555
506
|
partnerId: string | null;
|
|
556
507
|
oneClickBuyUrl: string | null;
|
|
557
508
|
stripePaymentIntentId: string | null;
|
|
558
|
-
permit: {
|
|
559
|
-
ownerAddress: string;
|
|
560
|
-
deadline: number;
|
|
561
|
-
v: number;
|
|
562
|
-
r: string;
|
|
563
|
-
s: string;
|
|
564
|
-
} | null;
|
|
565
509
|
payload: {
|
|
566
510
|
contractAddress: string;
|
|
567
511
|
entryPrice: string;
|
|
@@ -620,13 +564,6 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
620
564
|
partnerId: string | null;
|
|
621
565
|
oneClickBuyUrl: string | null;
|
|
622
566
|
stripePaymentIntentId: string | null;
|
|
623
|
-
permit: {
|
|
624
|
-
ownerAddress: string;
|
|
625
|
-
deadline: number;
|
|
626
|
-
v: number;
|
|
627
|
-
r: string;
|
|
628
|
-
s: string;
|
|
629
|
-
} | null;
|
|
630
567
|
payload: {
|
|
631
568
|
contractAddress: string;
|
|
632
569
|
fundAmount: string;
|
|
@@ -680,13 +617,6 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
680
617
|
partnerId: string | null;
|
|
681
618
|
oneClickBuyUrl: string | null;
|
|
682
619
|
stripePaymentIntentId: string | null;
|
|
683
|
-
permit: {
|
|
684
|
-
ownerAddress: string;
|
|
685
|
-
deadline: number;
|
|
686
|
-
v: number;
|
|
687
|
-
r: string;
|
|
688
|
-
s: string;
|
|
689
|
-
} | null;
|
|
690
620
|
payload: {
|
|
691
621
|
data: string;
|
|
692
622
|
to: string;
|