@b3dotfun/sdk 0.0.7-alpha.11 → 0.0.7-alpha.13
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/AnySpendCustom.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
- package/dist/cjs/anyspend/services/anyspend.d.ts +5 -0
- package/dist/cjs/anyspend/types/onramp.d.ts +3 -0
- package/dist/cjs/anyspend/types/onramp.js +2 -1
- package/dist/cjs/anyspend/types/order.d.ts +30 -0
- package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +70 -0
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +45 -0
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +35 -0
- package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +26 -0
- package/dist/cjs/anyspend/types/req-res/getQuote.js +3 -1
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
- package/dist/esm/anyspend/services/anyspend.d.ts +5 -0
- package/dist/esm/anyspend/types/onramp.d.ts +3 -0
- package/dist/esm/anyspend/types/onramp.js +2 -1
- package/dist/esm/anyspend/types/order.d.ts +30 -0
- package/dist/esm/anyspend/types/req-res/createOrder.d.ts +70 -0
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +45 -0
- package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +35 -0
- package/dist/esm/anyspend/types/req-res/getQuote.d.ts +26 -0
- package/dist/esm/anyspend/types/req-res/getQuote.js +3 -1
- package/dist/styles/index.css +1 -1
- package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -0
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
- package/dist/types/anyspend/services/anyspend.d.ts +5 -0
- package/dist/types/anyspend/types/onramp.d.ts +3 -0
- package/dist/types/anyspend/types/order.d.ts +30 -0
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +70 -0
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +45 -0
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +35 -0
- package/dist/types/anyspend/types/req-res/getQuote.d.ts +26 -0
- package/package.json +1 -1
- package/src/anyspend/react/components/AnySpend.tsx +1 -0
- package/src/anyspend/react/components/AnySpendCustom.tsx +2 -2
- package/src/anyspend/types/onramp.ts +2 -1
- package/src/anyspend/types/req-res/getQuote.ts +3 -1
|
@@ -3,12 +3,14 @@ import { z } from "zod";
|
|
|
3
3
|
import { NftType } from "../nft";
|
|
4
4
|
import { OrderType } from "../order";
|
|
5
5
|
import { TradeType } from "../relay";
|
|
6
|
+
import { OnrampVendor } from "../onramp";
|
|
6
7
|
export declare const zGetQuoteRequest: z.ZodObject<{
|
|
7
8
|
body: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8
9
|
srcChain: z.ZodNumber;
|
|
9
10
|
dstChain: z.ZodNumber;
|
|
10
11
|
srcTokenAddress: z.ZodString;
|
|
11
12
|
dstTokenAddress: z.ZodString;
|
|
13
|
+
onrampVendor: z.ZodOptional<z.ZodNativeEnum<typeof OnrampVendor>>;
|
|
12
14
|
} & {
|
|
13
15
|
type: z.ZodLiteral<OrderType.Swap>;
|
|
14
16
|
tradeType: z.ZodNativeEnum<typeof TradeType>;
|
|
@@ -21,6 +23,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
21
23
|
srcTokenAddress: string;
|
|
22
24
|
dstTokenAddress: string;
|
|
23
25
|
tradeType: TradeType;
|
|
26
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
24
27
|
}, {
|
|
25
28
|
type: OrderType.Swap;
|
|
26
29
|
amount: string;
|
|
@@ -29,11 +32,13 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
29
32
|
srcTokenAddress: string;
|
|
30
33
|
dstTokenAddress: string;
|
|
31
34
|
tradeType: TradeType;
|
|
35
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
32
36
|
}>, z.ZodObject<{
|
|
33
37
|
srcChain: z.ZodNumber;
|
|
34
38
|
dstChain: z.ZodNumber;
|
|
35
39
|
srcTokenAddress: z.ZodString;
|
|
36
40
|
dstTokenAddress: z.ZodString;
|
|
41
|
+
onrampVendor: z.ZodOptional<z.ZodNativeEnum<typeof OnrampVendor>>;
|
|
37
42
|
} & {
|
|
38
43
|
type: z.ZodLiteral<OrderType.MintNFT>;
|
|
39
44
|
contractAddress: z.ZodString;
|
|
@@ -50,6 +55,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
50
55
|
srcTokenAddress: string;
|
|
51
56
|
dstTokenAddress: string;
|
|
52
57
|
price: string;
|
|
58
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
53
59
|
}, {
|
|
54
60
|
type: OrderType.MintNFT;
|
|
55
61
|
contractAddress: string;
|
|
@@ -60,11 +66,13 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
60
66
|
srcTokenAddress: string;
|
|
61
67
|
dstTokenAddress: string;
|
|
62
68
|
price: string;
|
|
69
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
63
70
|
}>, z.ZodObject<{
|
|
64
71
|
srcChain: z.ZodNumber;
|
|
65
72
|
dstChain: z.ZodNumber;
|
|
66
73
|
srcTokenAddress: z.ZodString;
|
|
67
74
|
dstTokenAddress: z.ZodString;
|
|
75
|
+
onrampVendor: z.ZodOptional<z.ZodNativeEnum<typeof OnrampVendor>>;
|
|
68
76
|
} & {
|
|
69
77
|
type: z.ZodLiteral<OrderType.JoinTournament>;
|
|
70
78
|
contractAddress: z.ZodString;
|
|
@@ -77,6 +85,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
77
85
|
srcTokenAddress: string;
|
|
78
86
|
dstTokenAddress: string;
|
|
79
87
|
price: string;
|
|
88
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
80
89
|
}, {
|
|
81
90
|
type: OrderType.JoinTournament;
|
|
82
91
|
contractAddress: string;
|
|
@@ -85,11 +94,13 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
85
94
|
srcTokenAddress: string;
|
|
86
95
|
dstTokenAddress: string;
|
|
87
96
|
price: string;
|
|
97
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
88
98
|
}>, z.ZodObject<{
|
|
89
99
|
srcChain: z.ZodNumber;
|
|
90
100
|
dstChain: z.ZodNumber;
|
|
91
101
|
srcTokenAddress: z.ZodString;
|
|
92
102
|
dstTokenAddress: z.ZodString;
|
|
103
|
+
onrampVendor: z.ZodOptional<z.ZodNativeEnum<typeof OnrampVendor>>;
|
|
93
104
|
} & {
|
|
94
105
|
type: z.ZodLiteral<OrderType.FundTournament>;
|
|
95
106
|
contractAddress: z.ZodString;
|
|
@@ -102,6 +113,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
102
113
|
dstChain: number;
|
|
103
114
|
srcTokenAddress: string;
|
|
104
115
|
dstTokenAddress: string;
|
|
116
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
105
117
|
}, {
|
|
106
118
|
type: OrderType.FundTournament;
|
|
107
119
|
contractAddress: string;
|
|
@@ -110,11 +122,13 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
110
122
|
dstChain: number;
|
|
111
123
|
srcTokenAddress: string;
|
|
112
124
|
dstTokenAddress: string;
|
|
125
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
113
126
|
}>, z.ZodObject<{
|
|
114
127
|
srcChain: z.ZodNumber;
|
|
115
128
|
dstChain: z.ZodNumber;
|
|
116
129
|
srcTokenAddress: z.ZodString;
|
|
117
130
|
dstTokenAddress: z.ZodString;
|
|
131
|
+
onrampVendor: z.ZodOptional<z.ZodNativeEnum<typeof OnrampVendor>>;
|
|
118
132
|
} & {
|
|
119
133
|
type: z.ZodLiteral<OrderType.Custom>;
|
|
120
134
|
payload: z.ZodObject<{
|
|
@@ -145,6 +159,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
145
159
|
amount: string;
|
|
146
160
|
spenderAddress?: string | undefined;
|
|
147
161
|
};
|
|
162
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
148
163
|
}, {
|
|
149
164
|
type: OrderType.Custom;
|
|
150
165
|
srcChain: number;
|
|
@@ -157,6 +172,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
157
172
|
amount: string;
|
|
158
173
|
spenderAddress?: string | undefined;
|
|
159
174
|
};
|
|
175
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
160
176
|
}>]>;
|
|
161
177
|
}, "strip", z.ZodTypeAny, {
|
|
162
178
|
body: {
|
|
@@ -167,6 +183,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
167
183
|
srcTokenAddress: string;
|
|
168
184
|
dstTokenAddress: string;
|
|
169
185
|
tradeType: TradeType;
|
|
186
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
170
187
|
} | {
|
|
171
188
|
type: OrderType.MintNFT;
|
|
172
189
|
contractAddress: string;
|
|
@@ -177,6 +194,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
177
194
|
srcTokenAddress: string;
|
|
178
195
|
dstTokenAddress: string;
|
|
179
196
|
price: string;
|
|
197
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
180
198
|
} | {
|
|
181
199
|
type: OrderType.JoinTournament;
|
|
182
200
|
contractAddress: string;
|
|
@@ -185,6 +203,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
185
203
|
srcTokenAddress: string;
|
|
186
204
|
dstTokenAddress: string;
|
|
187
205
|
price: string;
|
|
206
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
188
207
|
} | {
|
|
189
208
|
type: OrderType.FundTournament;
|
|
190
209
|
contractAddress: string;
|
|
@@ -193,6 +212,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
193
212
|
dstChain: number;
|
|
194
213
|
srcTokenAddress: string;
|
|
195
214
|
dstTokenAddress: string;
|
|
215
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
196
216
|
} | {
|
|
197
217
|
type: OrderType.Custom;
|
|
198
218
|
srcChain: number;
|
|
@@ -205,6 +225,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
205
225
|
amount: string;
|
|
206
226
|
spenderAddress?: string | undefined;
|
|
207
227
|
};
|
|
228
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
208
229
|
};
|
|
209
230
|
}, {
|
|
210
231
|
body: {
|
|
@@ -215,6 +236,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
215
236
|
srcTokenAddress: string;
|
|
216
237
|
dstTokenAddress: string;
|
|
217
238
|
tradeType: TradeType;
|
|
239
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
218
240
|
} | {
|
|
219
241
|
type: OrderType.MintNFT;
|
|
220
242
|
contractAddress: string;
|
|
@@ -225,6 +247,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
225
247
|
srcTokenAddress: string;
|
|
226
248
|
dstTokenAddress: string;
|
|
227
249
|
price: string;
|
|
250
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
228
251
|
} | {
|
|
229
252
|
type: OrderType.JoinTournament;
|
|
230
253
|
contractAddress: string;
|
|
@@ -233,6 +256,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
233
256
|
srcTokenAddress: string;
|
|
234
257
|
dstTokenAddress: string;
|
|
235
258
|
price: string;
|
|
259
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
236
260
|
} | {
|
|
237
261
|
type: OrderType.FundTournament;
|
|
238
262
|
contractAddress: string;
|
|
@@ -241,6 +265,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
241
265
|
dstChain: number;
|
|
242
266
|
srcTokenAddress: string;
|
|
243
267
|
dstTokenAddress: string;
|
|
268
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
244
269
|
} | {
|
|
245
270
|
type: OrderType.Custom;
|
|
246
271
|
srcChain: number;
|
|
@@ -253,6 +278,7 @@ export declare const zGetQuoteRequest: z.ZodObject<{
|
|
|
253
278
|
amount: string;
|
|
254
279
|
spenderAddress?: string | undefined;
|
|
255
280
|
};
|
|
281
|
+
onrampVendor?: OnrampVendor | undefined;
|
|
256
282
|
};
|
|
257
283
|
}>;
|
|
258
284
|
export type GetQuoteRequest = z.infer<typeof zGetQuoteRequest.shape.body>;
|
|
@@ -6,11 +6,13 @@ const custom_1 = require("../custom");
|
|
|
6
6
|
const nft_1 = require("../nft");
|
|
7
7
|
const order_1 = require("../order");
|
|
8
8
|
const relay_1 = require("../relay");
|
|
9
|
+
const onramp_1 = require("../onramp");
|
|
9
10
|
const zGetQuoteBody = zod_1.z.object({
|
|
10
11
|
srcChain: zod_1.z.number(),
|
|
11
12
|
dstChain: zod_1.z.number(),
|
|
12
13
|
srcTokenAddress: zod_1.z.string(),
|
|
13
|
-
dstTokenAddress: zod_1.z.string()
|
|
14
|
+
dstTokenAddress: zod_1.z.string(),
|
|
15
|
+
onrampVendor: zod_1.z.nativeEnum(onramp_1.OnrampVendor).optional()
|
|
14
16
|
});
|
|
15
17
|
const zGetQuoteForSwapOrderBody = zGetQuoteBody.extend({
|
|
16
18
|
type: zod_1.z.literal(order_1.OrderType.Swap),
|
|
@@ -348,7 +348,7 @@ export function AnySpendCustom({ isMainnet = true, loadOrder, mode = "modal", re
|
|
|
348
348
|
const historyView = (_jsx("div", { className: cn("mx-auto flex w-full max-w-2xl flex-col items-center p-5", mode === "modal" && "bg-b3-react-background"), children: _jsx(OrderHistory, { mode: mode, onBack: () => {
|
|
349
349
|
setActivePanel(PanelView.HISTORY);
|
|
350
350
|
}, onSelectOrder: onSelectOrder }) }));
|
|
351
|
-
const orderDetailsView = (_jsxs("div", { className: cn("mx-auto flex w-full flex-col items-center gap-4 p-5", mode === "modal" && "bg-b3-react-background"), children: [oat && (_jsxs(_Fragment, { children: [_jsx(OrderStatusDisplay, { order: oat.data.order }), _jsx(OrderDetails, { isMainnet: isMainnet, mode: mode, order: oat.data.order, depositTxs: oat.data.depositTxs, relayTx: oat.data.relayTx, executeTx: oat.data.executeTx, refundTxs: oat.data.refundTxs, onBack: () => {
|
|
351
|
+
const orderDetailsView = (_jsxs("div", { className: cn("mx-auto flex max-h-[90dvh] w-full flex-col items-center gap-4 overflow-y-auto p-5", mode === "modal" && "bg-b3-react-background"), children: [oat && (_jsxs(_Fragment, { children: [_jsx(OrderStatusDisplay, { order: oat.data.order }), _jsx(OrderDetails, { isMainnet: isMainnet, mode: mode, order: oat.data.order, depositTxs: oat.data.depositTxs, relayTx: oat.data.relayTx, executeTx: oat.data.executeTx, refundTxs: oat.data.refundTxs, onBack: () => {
|
|
352
352
|
setOrderId(undefined);
|
|
353
353
|
setActivePanel(PanelView.CONFIRM_ORDER);
|
|
354
354
|
// Remove orderId from URL when canceling
|
|
@@ -358,7 +358,7 @@ export function AnySpendCustom({ isMainnet = true, loadOrder, mode = "modal", re
|
|
|
358
358
|
} })] })), mode === "page" && _jsx("div", { className: "h-12" })] }));
|
|
359
359
|
const loadingView = (_jsxs("div", { className: cn("mx-auto flex w-full flex-col items-center gap-4 p-5", mode === "modal" && "bg-b3-react-background"), children: [_jsxs(Badge, { variant: "default", className: "bg-b3-react-muted/30 border-b3-react-border hover:bg-b3-react-muted/50 flex items-center gap-3 px-4 py-1 text-base transition-all", children: [_jsx(Loader2, { className: "text-b3-react-foreground size-4 animate-spin" }), _jsx(TextShimmer, { duration: 1, className: "font-sf-rounded text-base font-semibold", children: "Loading..." })] }), _jsxs("div", { className: "flex w-full flex-1 flex-col", children: [_jsxs("div", { className: "mb-4 flex flex-col gap-1", children: [_jsx(Skeleton, { className: "h-4 w-24" }), _jsxs("div", { className: "mt-2 flex items-center gap-2", children: [_jsx(Skeleton, { className: "h-8 w-48" }), _jsx(Skeleton, { className: "ml-4 h-8 w-32" })] }), _jsx(Skeleton, { className: "mt-4 h-8 w-24" })] }), _jsx(Skeleton, { className: "mb-4 h-12 w-full" }), _jsxs("div", { className: "flex w-full items-center justify-between gap-4", children: [_jsxs(Skeleton, { className: "rounded-lg bg-white/5 p-6 pb-3", children: [_jsx("div", { className: "size-[200px]" }), _jsx("div", { className: "mt-3 flex items-center justify-center gap-2", children: _jsx("div", { className: "size-5 rounded-full" }) })] }), _jsx("div", { className: "flex flex-1 flex-col gap-2", children: [1, 2, 3].map(i => (_jsx(Skeleton, { className: "h-10 w-full" }, i))) })] })] }), _jsxs("div", { className: "bg-b3-react-muted/30 mt-8 w-full rounded-lg p-4", children: [_jsx(Skeleton, { className: "mb-3 h-4 w-48" }), _jsxs("div", { className: "flex items-center gap-4", children: [_jsx(Skeleton, { className: "h-10 flex-1" }), _jsx(Skeleton, { className: "h-10 flex-1" })] })] }), _jsx("div", { className: "flex w-full flex-col gap-3", children: [1, 2, 3, 4, 5].map(i => (_jsxs("div", { className: "flex w-full justify-between", children: [_jsx(Skeleton, { className: "h-4 w-24" }), _jsx(Skeleton, { className: "h-4 w-32" })] }, i))) }), _jsx(Skeleton, { className: "h-10 w-full" }), mode === "page" && _jsx("div", { className: "h-12" })] }));
|
|
360
360
|
// Confirm order view.
|
|
361
|
-
const confirmOrderView = (_jsxs("div", { className: "relative mx-auto flex w-full flex-col items-center", children: [header({ anyspendPrice: anyspendQuote, isLoadingAnyspendPrice: isLoadingAnyspendQuote }), _jsx("div", { className: "divider w-full" }), _jsxs(Tabs, { value: activeTab, onValueChange: value => setActiveTab(value), className: "bg-b3-react-background w-full p-5", children: [isOnrampSupported || activeTab === "fiat" ? (_jsxs(TabsList, { hideGradient: true, className: "justify-center", children: [_jsx(TabTrigger, { value: "crypto", children: _jsx("span", { className: "text-as-primary w-[140px]", children: "Pay with crypto" }) }), _jsx(TabTrigger, { value: "fiat", children: _jsx("span", { className: "text-as-primary w-[140px]", children: "Pay with fiat" }) })] })) : null, _jsx(TabsContent, { value: "crypto", children: _jsxs("div", { className: "mt-2 flex flex-col gap-4", children: [_jsxs("div", { className: "flex flex-col gap-4", children: [_jsxs(motion.div, { initial: false, animate: {
|
|
361
|
+
const confirmOrderView = (_jsxs("div", { className: "relative mx-auto flex w-full flex-col items-center", children: [header({ anyspendPrice: anyspendQuote, isLoadingAnyspendPrice: isLoadingAnyspendQuote }), _jsx("div", { className: "divider w-full" }), _jsxs(Tabs, { value: activeTab, onValueChange: value => setActiveTab(value), className: "bg-b3-react-background max-h-[60dvh] w-full overflow-y-auto p-5", children: [isOnrampSupported || activeTab === "fiat" ? (_jsxs(TabsList, { hideGradient: true, className: "justify-center", children: [_jsx(TabTrigger, { value: "crypto", children: _jsx("span", { className: "text-as-primary w-[140px]", children: "Pay with crypto" }) }), _jsx(TabTrigger, { value: "fiat", children: _jsx("span", { className: "text-as-primary w-[140px]", children: "Pay with fiat" }) })] })) : null, _jsx(TabsContent, { value: "crypto", children: _jsxs("div", { className: "mt-2 flex flex-col gap-4", children: [_jsxs("div", { className: "flex flex-col gap-4", children: [_jsxs(motion.div, { initial: false, animate: {
|
|
362
362
|
opacity: hasMounted ? 1 : 0,
|
|
363
363
|
y: hasMounted ? 0 : 20,
|
|
364
364
|
filter: hasMounted ? "blur(0px)" : "blur(10px)"
|
|
@@ -44,6 +44,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
44
44
|
paymentMethod: string;
|
|
45
45
|
redirectUrl: string;
|
|
46
46
|
ipAddress?: string | undefined;
|
|
47
|
+
stripeAmountInCents?: number | undefined;
|
|
47
48
|
} | null;
|
|
48
49
|
creatorAddress: string | null;
|
|
49
50
|
partnerId: string | null;
|
|
@@ -116,6 +117,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
116
117
|
paymentMethod: string;
|
|
117
118
|
redirectUrl: string;
|
|
118
119
|
ipAddress?: string | undefined;
|
|
120
|
+
stripeAmountInCents?: number | undefined;
|
|
119
121
|
} | null;
|
|
120
122
|
creatorAddress: string | null;
|
|
121
123
|
partnerId: string | null;
|
|
@@ -182,6 +184,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
182
184
|
paymentMethod: string;
|
|
183
185
|
redirectUrl: string;
|
|
184
186
|
ipAddress?: string | undefined;
|
|
187
|
+
stripeAmountInCents?: number | undefined;
|
|
185
188
|
} | null;
|
|
186
189
|
creatorAddress: string | null;
|
|
187
190
|
partnerId: string | null;
|
|
@@ -246,6 +249,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
246
249
|
paymentMethod: string;
|
|
247
250
|
redirectUrl: string;
|
|
248
251
|
ipAddress?: string | undefined;
|
|
252
|
+
stripeAmountInCents?: number | undefined;
|
|
249
253
|
} | null;
|
|
250
254
|
creatorAddress: string | null;
|
|
251
255
|
partnerId: string | null;
|
|
@@ -305,6 +309,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
305
309
|
paymentMethod: string;
|
|
306
310
|
redirectUrl: string;
|
|
307
311
|
ipAddress?: string | undefined;
|
|
312
|
+
stripeAmountInCents?: number | undefined;
|
|
308
313
|
} | null;
|
|
309
314
|
creatorAddress: string | null;
|
|
310
315
|
partnerId: string | null;
|
|
@@ -404,6 +409,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
404
409
|
paymentMethod: string;
|
|
405
410
|
redirectUrl: string;
|
|
406
411
|
ipAddress?: string | undefined;
|
|
412
|
+
stripeAmountInCents?: number | undefined;
|
|
407
413
|
} | null;
|
|
408
414
|
creatorAddress: string | null;
|
|
409
415
|
partnerId: string | null;
|
|
@@ -476,6 +482,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
476
482
|
paymentMethod: string;
|
|
477
483
|
redirectUrl: string;
|
|
478
484
|
ipAddress?: string | undefined;
|
|
485
|
+
stripeAmountInCents?: number | undefined;
|
|
479
486
|
} | null;
|
|
480
487
|
creatorAddress: string | null;
|
|
481
488
|
partnerId: string | null;
|
|
@@ -542,6 +549,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
542
549
|
paymentMethod: string;
|
|
543
550
|
redirectUrl: string;
|
|
544
551
|
ipAddress?: string | undefined;
|
|
552
|
+
stripeAmountInCents?: number | undefined;
|
|
545
553
|
} | null;
|
|
546
554
|
creatorAddress: string | null;
|
|
547
555
|
partnerId: string | null;
|
|
@@ -606,6 +614,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
606
614
|
paymentMethod: string;
|
|
607
615
|
redirectUrl: string;
|
|
608
616
|
ipAddress?: string | undefined;
|
|
617
|
+
stripeAmountInCents?: number | undefined;
|
|
609
618
|
} | null;
|
|
610
619
|
creatorAddress: string | null;
|
|
611
620
|
partnerId: string | null;
|
|
@@ -665,6 +674,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
665
674
|
paymentMethod: string;
|
|
666
675
|
redirectUrl: string;
|
|
667
676
|
ipAddress?: string | undefined;
|
|
677
|
+
stripeAmountInCents?: number | undefined;
|
|
668
678
|
} | null;
|
|
669
679
|
creatorAddress: string | null;
|
|
670
680
|
partnerId: string | null;
|
|
@@ -41,6 +41,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
41
41
|
paymentMethod: string;
|
|
42
42
|
redirectUrl: string;
|
|
43
43
|
ipAddress?: string | undefined;
|
|
44
|
+
stripeAmountInCents?: number | undefined;
|
|
44
45
|
} | null;
|
|
45
46
|
creatorAddress: string | null;
|
|
46
47
|
partnerId: string | null;
|
|
@@ -113,6 +114,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
113
114
|
paymentMethod: string;
|
|
114
115
|
redirectUrl: string;
|
|
115
116
|
ipAddress?: string | undefined;
|
|
117
|
+
stripeAmountInCents?: number | undefined;
|
|
116
118
|
} | null;
|
|
117
119
|
creatorAddress: string | null;
|
|
118
120
|
partnerId: string | null;
|
|
@@ -179,6 +181,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
179
181
|
paymentMethod: string;
|
|
180
182
|
redirectUrl: string;
|
|
181
183
|
ipAddress?: string | undefined;
|
|
184
|
+
stripeAmountInCents?: number | undefined;
|
|
182
185
|
} | null;
|
|
183
186
|
creatorAddress: string | null;
|
|
184
187
|
partnerId: string | null;
|
|
@@ -243,6 +246,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
243
246
|
paymentMethod: string;
|
|
244
247
|
redirectUrl: string;
|
|
245
248
|
ipAddress?: string | undefined;
|
|
249
|
+
stripeAmountInCents?: number | undefined;
|
|
246
250
|
} | null;
|
|
247
251
|
creatorAddress: string | null;
|
|
248
252
|
partnerId: string | null;
|
|
@@ -302,6 +306,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
302
306
|
paymentMethod: string;
|
|
303
307
|
redirectUrl: string;
|
|
304
308
|
ipAddress?: string | undefined;
|
|
309
|
+
stripeAmountInCents?: number | undefined;
|
|
305
310
|
} | null;
|
|
306
311
|
creatorAddress: string | null;
|
|
307
312
|
partnerId: string | null;
|
|
@@ -365,6 +370,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
365
370
|
paymentMethod: string;
|
|
366
371
|
redirectUrl: string;
|
|
367
372
|
ipAddress?: string | undefined;
|
|
373
|
+
stripeAmountInCents?: number | undefined;
|
|
368
374
|
} | null;
|
|
369
375
|
creatorAddress: string | null;
|
|
370
376
|
partnerId: string | null;
|
|
@@ -437,6 +443,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
437
443
|
paymentMethod: string;
|
|
438
444
|
redirectUrl: string;
|
|
439
445
|
ipAddress?: string | undefined;
|
|
446
|
+
stripeAmountInCents?: number | undefined;
|
|
440
447
|
} | null;
|
|
441
448
|
creatorAddress: string | null;
|
|
442
449
|
partnerId: string | null;
|
|
@@ -503,6 +510,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
503
510
|
paymentMethod: string;
|
|
504
511
|
redirectUrl: string;
|
|
505
512
|
ipAddress?: string | undefined;
|
|
513
|
+
stripeAmountInCents?: number | undefined;
|
|
506
514
|
} | null;
|
|
507
515
|
creatorAddress: string | null;
|
|
508
516
|
partnerId: string | null;
|
|
@@ -567,6 +575,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
567
575
|
paymentMethod: string;
|
|
568
576
|
redirectUrl: string;
|
|
569
577
|
ipAddress?: string | undefined;
|
|
578
|
+
stripeAmountInCents?: number | undefined;
|
|
570
579
|
} | null;
|
|
571
580
|
creatorAddress: string | null;
|
|
572
581
|
partnerId: string | null;
|
|
@@ -626,6 +635,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
626
635
|
paymentMethod: string;
|
|
627
636
|
redirectUrl: string;
|
|
628
637
|
ipAddress?: string | undefined;
|
|
638
|
+
stripeAmountInCents?: number | undefined;
|
|
629
639
|
} | null;
|
|
630
640
|
creatorAddress: string | null;
|
|
631
641
|
partnerId: string | null;
|
|
@@ -64,6 +64,7 @@ export declare const anyspendService: {
|
|
|
64
64
|
paymentMethod: string;
|
|
65
65
|
redirectUrl: string;
|
|
66
66
|
ipAddress?: string | undefined;
|
|
67
|
+
stripeAmountInCents?: number | undefined;
|
|
67
68
|
} | null;
|
|
68
69
|
creatorAddress: string | null;
|
|
69
70
|
partnerId: string | null;
|
|
@@ -136,6 +137,7 @@ export declare const anyspendService: {
|
|
|
136
137
|
paymentMethod: string;
|
|
137
138
|
redirectUrl: string;
|
|
138
139
|
ipAddress?: string | undefined;
|
|
140
|
+
stripeAmountInCents?: number | undefined;
|
|
139
141
|
} | null;
|
|
140
142
|
creatorAddress: string | null;
|
|
141
143
|
partnerId: string | null;
|
|
@@ -202,6 +204,7 @@ export declare const anyspendService: {
|
|
|
202
204
|
paymentMethod: string;
|
|
203
205
|
redirectUrl: string;
|
|
204
206
|
ipAddress?: string | undefined;
|
|
207
|
+
stripeAmountInCents?: number | undefined;
|
|
205
208
|
} | null;
|
|
206
209
|
creatorAddress: string | null;
|
|
207
210
|
partnerId: string | null;
|
|
@@ -266,6 +269,7 @@ export declare const anyspendService: {
|
|
|
266
269
|
paymentMethod: string;
|
|
267
270
|
redirectUrl: string;
|
|
268
271
|
ipAddress?: string | undefined;
|
|
272
|
+
stripeAmountInCents?: number | undefined;
|
|
269
273
|
} | null;
|
|
270
274
|
creatorAddress: string | null;
|
|
271
275
|
partnerId: string | null;
|
|
@@ -325,6 +329,7 @@ export declare const anyspendService: {
|
|
|
325
329
|
paymentMethod: string;
|
|
326
330
|
redirectUrl: string;
|
|
327
331
|
ipAddress?: string | undefined;
|
|
332
|
+
stripeAmountInCents?: number | undefined;
|
|
328
333
|
} | null;
|
|
329
334
|
creatorAddress: string | null;
|
|
330
335
|
partnerId: string | null;
|
|
@@ -10,16 +10,19 @@ export declare const zOnrampMetadata: z.ZodObject<{
|
|
|
10
10
|
paymentMethod: z.ZodString;
|
|
11
11
|
ipAddress: z.ZodOptional<z.ZodString>;
|
|
12
12
|
redirectUrl: z.ZodString;
|
|
13
|
+
stripeAmountInCents: z.ZodOptional<z.ZodNumber>;
|
|
13
14
|
}, "strip", z.ZodTypeAny, {
|
|
14
15
|
country: string;
|
|
15
16
|
vendor: OnrampVendor;
|
|
16
17
|
paymentMethod: string;
|
|
17
18
|
redirectUrl: string;
|
|
18
19
|
ipAddress?: string | undefined;
|
|
20
|
+
stripeAmountInCents?: number | undefined;
|
|
19
21
|
}, {
|
|
20
22
|
country: string;
|
|
21
23
|
vendor: OnrampVendor;
|
|
22
24
|
paymentMethod: string;
|
|
23
25
|
redirectUrl: string;
|
|
24
26
|
ipAddress?: string | undefined;
|
|
27
|
+
stripeAmountInCents?: number | undefined;
|
|
25
28
|
}>;
|
|
@@ -10,5 +10,6 @@ export const zOnrampMetadata = z.object({
|
|
|
10
10
|
vendor: z.nativeEnum(OnrampVendor),
|
|
11
11
|
paymentMethod: z.string(),
|
|
12
12
|
ipAddress: z.string().ip("Invalid IP address").optional(),
|
|
13
|
-
redirectUrl: z.string()
|
|
13
|
+
redirectUrl: z.string(),
|
|
14
|
+
stripeAmountInCents: z.number().optional()
|
|
14
15
|
});
|