@b3dotfun/sdk 0.0.7-alpha.25 → 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/index.d.ts +0 -2
- package/dist/cjs/anyspend/index.js +0 -4
- package/dist/cjs/anyspend/react/components/AnySpend.js +49 -48
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +39 -38
- package/dist/cjs/anyspend/react/components/common/OrderDetails.js +0 -40
- package/dist/cjs/anyspend/react/components/common/OrderHistory.js +6 -6
- package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +7 -7
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +9 -8
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.js +14 -13
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +0 -1
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +13 -12
- 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/react/hooks/useSigMint.d.ts +2 -2
- 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/cjs/global-account/react/components/custom/Button.d.ts +2 -2
- package/dist/cjs/global-account/react/components/ui/button.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/command.d.ts +7 -7
- package/dist/cjs/shared/constants/chains/b3Chain.d.ts +1 -1
- package/dist/cjs/shared/constants/chains/supported.d.ts +14 -14
- package/dist/cjs/shared/utils/insights.d.ts +1 -1
- package/dist/cjs/shared/utils/simplehash.d.ts +2 -2
- package/dist/esm/anyspend/index.d.ts +0 -2
- package/dist/esm/anyspend/index.js +0 -4
- package/dist/esm/anyspend/react/components/AnySpend.js +2 -1
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +2 -1
- package/dist/esm/anyspend/react/components/common/OrderDetails.js +0 -40
- package/dist/esm/anyspend/react/components/common/OrderHistory.js +1 -1
- package/dist/esm/anyspend/react/components/common/PanelOnramp.js +1 -1
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +2 -1
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.js +2 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +0 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +2 -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/react/hooks/useSigMint.d.ts +2 -2
- 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/esm/global-account/react/components/custom/Button.d.ts +2 -2
- package/dist/esm/global-account/react/components/ui/button.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/command.d.ts +7 -7
- package/dist/esm/shared/constants/chains/b3Chain.d.ts +1 -1
- package/dist/esm/shared/constants/chains/supported.d.ts +14 -14
- package/dist/esm/shared/utils/insights.d.ts +1 -1
- package/dist/esm/shared/utils/simplehash.d.ts +2 -2
- package/dist/types/anyspend/index.d.ts +0 -2
- 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/react/hooks/useSigMint.d.ts +2 -2
- 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/dist/types/global-account/react/components/custom/Button.d.ts +2 -2
- package/dist/types/global-account/react/components/ui/button.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/command.d.ts +7 -7
- package/dist/types/shared/constants/chains/b3Chain.d.ts +1 -1
- package/dist/types/shared/constants/chains/supported.d.ts +14 -14
- package/dist/types/shared/utils/insights.d.ts +1 -1
- package/dist/types/shared/utils/simplehash.d.ts +2 -2
- package/package.json +1 -1
- package/src/anyspend/index.ts +0 -6
- package/src/anyspend/react/components/AnySpend.tsx +2 -6
- package/src/anyspend/react/components/AnySpendCustom.tsx +4 -2
- package/src/anyspend/react/components/common/OrderDetails.tsx +0 -46
- package/src/anyspend/react/components/common/OrderHistory.tsx +1 -1
- package/src/anyspend/react/components/common/PanelOnramp.tsx +1 -1
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +2 -10
- package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +2 -1
- package/src/anyspend/react/components/webview/WebviewOnrampOrderStatus.tsx +0 -1
- package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +1 -3
- 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;
|
|
@@ -11,10 +11,6 @@ export const getStatusDisplay = (order) => {
|
|
|
11
11
|
text: "Awaiting Payment",
|
|
12
12
|
status: "processing",
|
|
13
13
|
};
|
|
14
|
-
case OrderStatus.ObtainToken:
|
|
15
|
-
return { text: "Obtaining Token", status: "processing" };
|
|
16
|
-
case OrderStatus.ObtainFailed:
|
|
17
|
-
return { text: "Obtain Token Failed", status: "failure" };
|
|
18
14
|
case OrderStatus.Expired:
|
|
19
15
|
return { text: "Order Expired", status: "failure" };
|
|
20
16
|
case OrderStatus.SendingTokenFromVault:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
declare const buttonVariants: (props?: ({
|
|
3
|
-
variant?: "link" | "default" | "
|
|
4
|
-
size?: "
|
|
3
|
+
variant?: "link" | "default" | "b3" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
4
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
6
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
7
|
variant?: "default" | "outline";
|
|
@@ -2,7 +2,7 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
asChild?: boolean;
|
|
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
} & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
-
}, "
|
|
9
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
10
|
label?: string;
|
|
11
11
|
shouldFilter?: boolean;
|
|
12
12
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -24,7 +24,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
24
24
|
ref?: React.Ref<HTMLInputElement>;
|
|
25
25
|
} & {
|
|
26
26
|
asChild?: boolean;
|
|
27
|
-
}, "
|
|
27
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
|
|
28
28
|
value?: string;
|
|
29
29
|
onValueChange?: (search: string) => void;
|
|
30
30
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -34,7 +34,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
34
34
|
ref?: React.Ref<HTMLDivElement>;
|
|
35
35
|
} & {
|
|
36
36
|
asChild?: boolean;
|
|
37
|
-
}, "
|
|
37
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
38
38
|
label?: string;
|
|
39
39
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
40
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -43,14 +43,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
43
43
|
ref?: React.Ref<HTMLDivElement>;
|
|
44
44
|
} & {
|
|
45
45
|
asChild?: boolean;
|
|
46
|
-
}, "
|
|
46
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
47
47
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
48
48
|
children?: React.ReactNode;
|
|
49
49
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
50
50
|
ref?: React.Ref<HTMLDivElement>;
|
|
51
51
|
} & {
|
|
52
52
|
asChild?: boolean;
|
|
53
|
-
}, "
|
|
53
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
54
54
|
heading?: React.ReactNode;
|
|
55
55
|
value?: string;
|
|
56
56
|
forceMount?: boolean;
|
|
@@ -59,7 +59,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
59
59
|
ref?: React.Ref<HTMLDivElement>;
|
|
60
60
|
} & {
|
|
61
61
|
asChild?: boolean;
|
|
62
|
-
}, "
|
|
62
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
63
63
|
alwaysRender?: boolean;
|
|
64
64
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
65
65
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -68,7 +68,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
68
68
|
ref?: React.Ref<HTMLDivElement>;
|
|
69
69
|
} & {
|
|
70
70
|
asChild?: boolean;
|
|
71
|
-
}, "
|
|
71
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
|
|
72
72
|
disabled?: boolean;
|
|
73
73
|
onSelect?: (value: string) => void;
|
|
74
74
|
value?: string;
|
|
@@ -87,10 +87,10 @@ export declare const getViemChainConfig: (config: ChainNetworks) => {
|
|
|
87
87
|
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
88
88
|
readonly rpc: string;
|
|
89
89
|
readonly icon: {
|
|
90
|
+
format: string;
|
|
90
91
|
url: string;
|
|
91
92
|
height: number;
|
|
92
93
|
width: number;
|
|
93
|
-
format: string;
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
export declare const thirdwebB3Testnet: ThirdwebChain;
|
|
@@ -2,36 +2,29 @@ import type { Chain as ThirdwebChain } from "thirdweb";
|
|
|
2
2
|
export declare const supportedChains: import("viem").Chain[];
|
|
3
3
|
export declare const supportedChainsTW: ThirdwebChain[];
|
|
4
4
|
export declare const supportedChainNetworks: {
|
|
5
|
-
testnet?: boolean | undefined;
|
|
6
|
-
color?: string | undefined;
|
|
7
5
|
contracts?: Record<string, {
|
|
8
6
|
blockCreated?: number | undefined;
|
|
9
7
|
address: string;
|
|
10
8
|
}> | undefined;
|
|
11
|
-
testnetConfigID?: number | undefined;
|
|
12
9
|
sourceId?: number | undefined;
|
|
13
|
-
|
|
10
|
+
testnet?: boolean | undefined;
|
|
14
11
|
fees?: Record<string, any> | undefined;
|
|
12
|
+
formatters?: Record<string, any> | undefined;
|
|
13
|
+
color?: string | undefined;
|
|
14
|
+
testnetConfigID?: number | undefined;
|
|
15
15
|
badge?: string | undefined;
|
|
16
16
|
enabledFeatures?: string[] | undefined;
|
|
17
17
|
name: string;
|
|
18
18
|
id: number;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
width: number;
|
|
23
|
-
format: string;
|
|
19
|
+
blockExplorers: {
|
|
20
|
+
default: string;
|
|
21
|
+
explorerTitle: string;
|
|
24
22
|
};
|
|
25
23
|
nativeCurrency: {
|
|
26
24
|
symbol: string;
|
|
27
25
|
name: string;
|
|
28
26
|
decimals: number;
|
|
29
27
|
};
|
|
30
|
-
blockExplorers: {
|
|
31
|
-
default: string;
|
|
32
|
-
explorerTitle: string;
|
|
33
|
-
};
|
|
34
|
-
_id: string | {};
|
|
35
28
|
rpcUrls: {
|
|
36
29
|
default: {
|
|
37
30
|
http: string;
|
|
@@ -42,6 +35,13 @@ export declare const supportedChainNetworks: {
|
|
|
42
35
|
uri: string;
|
|
43
36
|
}[];
|
|
44
37
|
};
|
|
38
|
+
icon: {
|
|
39
|
+
format: string;
|
|
40
|
+
url: string;
|
|
41
|
+
height: number;
|
|
42
|
+
width: number;
|
|
43
|
+
};
|
|
44
|
+
_id: string | {};
|
|
45
45
|
}[];
|
|
46
46
|
export declare const coingeckoChains: Record<number, {
|
|
47
47
|
coingecko_id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../shared/thirdweb/initiateClient";
|
|
2
2
|
import type * as SimpleHashTypes from "../../global-account/types/simplehash.types";
|
|
3
3
|
import type { GetV1NftsResponse, GetV1NftsTransfersByContractAddressResponse } from "../../shared/thirdweb/generated/types.gen";
|
|
4
|
-
export declare const simpleHashChainToChainName: (chain: number) => "
|
|
4
|
+
export declare const simpleHashChainToChainName: (chain: number) => "base" | "b3" | "b3-sepolia" | "base-sepolia" | null;
|
|
5
5
|
export declare function transformNFTResponse(insightsData: GetV1NftsResponse["data"]): SimpleHashTypes.SimpleHashNFTResponse;
|
|
6
6
|
export declare function transformCollectionResponse(nftData: GetV1NftsResponse["data"][0], chainId: number, chain: string, contractAddress: string): SimpleHashTypes.SimpleHashNFTResponse;
|
|
7
7
|
export declare function transformTransferResponse(response: GetV1NftsTransfersByContractAddressResponse): SimpleHashTypes.NFTTransfer[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as SimpleHashTypes from "../../global-account/types/simplehash.types";
|
|
2
2
|
export * from "../../global-account/types/simplehash.types";
|
|
3
|
-
export declare const simpleHashChainToChainId: (chain: string) => 8453 | 8333 |
|
|
4
|
-
export declare const simpleHashChainToChainName: (chain: number) => "
|
|
3
|
+
export declare const simpleHashChainToChainId: (chain: string) => 8453 | 8333 | 84532 | 1993 | null;
|
|
4
|
+
export declare const simpleHashChainToChainName: (chain: number) => "base" | "b3" | "b3-sepolia" | "base-sepolia" | null;
|
|
5
5
|
type SimpleHashRoute = `/v0/nfts/${string}/${string}/${string}` | `/v0/nfts/${string}` | `/v0/nfts/collections/${string}/${string}` | `/v0/nfts/transfers/${string}/${string}` | `/v0/fungibles/assets` | `/v0/native_tokens/balances` | string;
|
|
6
6
|
type RouteReturnType<T extends SimpleHashRoute> = T extends `/v0/nfts/collections/${string}/${string}` ? SimpleHashTypes.SimpleHashNFTResponse : T extends `/v0/nfts/transfers/${string}/${string}` ? {
|
|
7
7
|
transfers: SimpleHashTypes.NFTTransfer[];
|
|
@@ -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";
|