@b3dotfun/sdk 0.0.86 → 0.0.87-alpha.0
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/hooks/useAnyspendOrderHistory.d.ts +76 -16
- package/dist/cjs/anyspend/types/api.d.ts +65 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +76 -16
- package/dist/esm/anyspend/types/api.d.ts +65 -3
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +76 -16
- package/dist/types/anyspend/types/api.d.ts +65 -3
- package/package.json +3 -3
- package/src/anyspend/types/api.ts +67 -2
|
@@ -8,7 +8,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
8
8
|
srcTokenAddress: string;
|
|
9
9
|
dstTokenAddress: string;
|
|
10
10
|
srcAmount: string;
|
|
11
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
11
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
12
12
|
errorDetails: string | null;
|
|
13
13
|
createdAt: number;
|
|
14
14
|
expiredAt: number;
|
|
@@ -38,7 +38,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
38
38
|
srcTokenAddress: string;
|
|
39
39
|
dstTokenAddress: string;
|
|
40
40
|
srcAmount: string;
|
|
41
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
41
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
42
42
|
errorDetails: string | null;
|
|
43
43
|
createdAt: number;
|
|
44
44
|
expiredAt: number;
|
|
@@ -68,7 +68,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
68
68
|
srcTokenAddress: string;
|
|
69
69
|
dstTokenAddress: string;
|
|
70
70
|
srcAmount: string;
|
|
71
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
71
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
72
72
|
errorDetails: string | null;
|
|
73
73
|
createdAt: number;
|
|
74
74
|
expiredAt: number;
|
|
@@ -98,7 +98,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
98
98
|
srcTokenAddress: string;
|
|
99
99
|
dstTokenAddress: string;
|
|
100
100
|
srcAmount: string;
|
|
101
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
101
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
102
102
|
errorDetails: string | null;
|
|
103
103
|
createdAt: number;
|
|
104
104
|
expiredAt: number;
|
|
@@ -128,7 +128,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
128
128
|
srcTokenAddress: string;
|
|
129
129
|
dstTokenAddress: string;
|
|
130
130
|
srcAmount: string;
|
|
131
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
131
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
132
132
|
errorDetails: string | null;
|
|
133
133
|
createdAt: number;
|
|
134
134
|
expiredAt: number;
|
|
@@ -158,7 +158,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
158
158
|
srcTokenAddress: string;
|
|
159
159
|
dstTokenAddress: string;
|
|
160
160
|
srcAmount: string;
|
|
161
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
161
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
162
162
|
errorDetails: string | null;
|
|
163
163
|
createdAt: number;
|
|
164
164
|
expiredAt: number;
|
|
@@ -188,7 +188,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
188
188
|
srcTokenAddress: string;
|
|
189
189
|
dstTokenAddress: string;
|
|
190
190
|
srcAmount: string;
|
|
191
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
191
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
192
192
|
errorDetails: string | null;
|
|
193
193
|
createdAt: number;
|
|
194
194
|
expiredAt: number;
|
|
@@ -218,7 +218,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
218
218
|
srcTokenAddress: string;
|
|
219
219
|
dstTokenAddress: string;
|
|
220
220
|
srcAmount: string;
|
|
221
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
221
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
222
222
|
errorDetails: string | null;
|
|
223
223
|
createdAt: number;
|
|
224
224
|
expiredAt: number;
|
|
@@ -239,6 +239,36 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
239
239
|
type: "fund_tournament";
|
|
240
240
|
payload: import("../..").components["schemas"]["FundTournamentPayload"];
|
|
241
241
|
metadata: import("../..").components["schemas"]["TournamentMetadata"];
|
|
242
|
+
}) | ({
|
|
243
|
+
id: string;
|
|
244
|
+
recipientAddress: string;
|
|
245
|
+
globalAddress: string;
|
|
246
|
+
srcChain: number;
|
|
247
|
+
dstChain: number;
|
|
248
|
+
srcTokenAddress: string;
|
|
249
|
+
dstTokenAddress: string;
|
|
250
|
+
srcAmount: string;
|
|
251
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
252
|
+
errorDetails: string | null;
|
|
253
|
+
createdAt: number;
|
|
254
|
+
expiredAt: number;
|
|
255
|
+
filledAt: number | null;
|
|
256
|
+
receivedDepositAt: number | null;
|
|
257
|
+
creatorAddress: string | null;
|
|
258
|
+
partnerId: string | null;
|
|
259
|
+
clientReferenceId?: string | null;
|
|
260
|
+
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
261
|
+
oneClickBuyUrl: string | null;
|
|
262
|
+
stripePaymentIntentId: string | null;
|
|
263
|
+
settlement: {
|
|
264
|
+
actualDstAmount?: string;
|
|
265
|
+
relay?: Record<string, never>;
|
|
266
|
+
} | null;
|
|
267
|
+
fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
|
|
268
|
+
} & {
|
|
269
|
+
type: "deposit_first";
|
|
270
|
+
payload: import("../..").components["schemas"]["DepositFirstPayload"];
|
|
271
|
+
metadata: import("../..").components["schemas"]["DepositFirstMetadata"];
|
|
242
272
|
}))[];
|
|
243
273
|
isLoadingOrderHistory: boolean;
|
|
244
274
|
getOrderHistoryError: Error | null;
|
|
@@ -251,7 +281,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
251
281
|
srcTokenAddress: string;
|
|
252
282
|
dstTokenAddress: string;
|
|
253
283
|
srcAmount: string;
|
|
254
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
284
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
255
285
|
errorDetails: string | null;
|
|
256
286
|
createdAt: number;
|
|
257
287
|
expiredAt: number;
|
|
@@ -281,7 +311,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
281
311
|
srcTokenAddress: string;
|
|
282
312
|
dstTokenAddress: string;
|
|
283
313
|
srcAmount: string;
|
|
284
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
314
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
285
315
|
errorDetails: string | null;
|
|
286
316
|
createdAt: number;
|
|
287
317
|
expiredAt: number;
|
|
@@ -311,7 +341,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
311
341
|
srcTokenAddress: string;
|
|
312
342
|
dstTokenAddress: string;
|
|
313
343
|
srcAmount: string;
|
|
314
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
344
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
315
345
|
errorDetails: string | null;
|
|
316
346
|
createdAt: number;
|
|
317
347
|
expiredAt: number;
|
|
@@ -341,7 +371,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
341
371
|
srcTokenAddress: string;
|
|
342
372
|
dstTokenAddress: string;
|
|
343
373
|
srcAmount: string;
|
|
344
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
374
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
345
375
|
errorDetails: string | null;
|
|
346
376
|
createdAt: number;
|
|
347
377
|
expiredAt: number;
|
|
@@ -371,7 +401,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
371
401
|
srcTokenAddress: string;
|
|
372
402
|
dstTokenAddress: string;
|
|
373
403
|
srcAmount: string;
|
|
374
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
404
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
375
405
|
errorDetails: string | null;
|
|
376
406
|
createdAt: number;
|
|
377
407
|
expiredAt: number;
|
|
@@ -401,7 +431,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
401
431
|
srcTokenAddress: string;
|
|
402
432
|
dstTokenAddress: string;
|
|
403
433
|
srcAmount: string;
|
|
404
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
434
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
405
435
|
errorDetails: string | null;
|
|
406
436
|
createdAt: number;
|
|
407
437
|
expiredAt: number;
|
|
@@ -431,7 +461,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
431
461
|
srcTokenAddress: string;
|
|
432
462
|
dstTokenAddress: string;
|
|
433
463
|
srcAmount: string;
|
|
434
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
464
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
435
465
|
errorDetails: string | null;
|
|
436
466
|
createdAt: number;
|
|
437
467
|
expiredAt: number;
|
|
@@ -461,7 +491,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
461
491
|
srcTokenAddress: string;
|
|
462
492
|
dstTokenAddress: string;
|
|
463
493
|
srcAmount: string;
|
|
464
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
494
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
465
495
|
errorDetails: string | null;
|
|
466
496
|
createdAt: number;
|
|
467
497
|
expiredAt: number;
|
|
@@ -482,5 +512,35 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
482
512
|
type: "fund_tournament";
|
|
483
513
|
payload: import("../..").components["schemas"]["FundTournamentPayload"];
|
|
484
514
|
metadata: import("../..").components["schemas"]["TournamentMetadata"];
|
|
515
|
+
}) | ({
|
|
516
|
+
id: string;
|
|
517
|
+
recipientAddress: string;
|
|
518
|
+
globalAddress: string;
|
|
519
|
+
srcChain: number;
|
|
520
|
+
dstChain: number;
|
|
521
|
+
srcTokenAddress: string;
|
|
522
|
+
dstTokenAddress: string;
|
|
523
|
+
srcAmount: string;
|
|
524
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
525
|
+
errorDetails: string | null;
|
|
526
|
+
createdAt: number;
|
|
527
|
+
expiredAt: number;
|
|
528
|
+
filledAt: number | null;
|
|
529
|
+
receivedDepositAt: number | null;
|
|
530
|
+
creatorAddress: string | null;
|
|
531
|
+
partnerId: string | null;
|
|
532
|
+
clientReferenceId?: string | null;
|
|
533
|
+
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
534
|
+
oneClickBuyUrl: string | null;
|
|
535
|
+
stripePaymentIntentId: string | null;
|
|
536
|
+
settlement: {
|
|
537
|
+
actualDstAmount?: string;
|
|
538
|
+
relay?: Record<string, never>;
|
|
539
|
+
} | null;
|
|
540
|
+
fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
|
|
541
|
+
} & {
|
|
542
|
+
type: "deposit_first";
|
|
543
|
+
payload: import("../..").components["schemas"]["DepositFirstPayload"];
|
|
544
|
+
metadata: import("../..").components["schemas"]["DepositFirstMetadata"];
|
|
485
545
|
}))[], Error>>;
|
|
486
546
|
};
|
|
@@ -1952,6 +1952,15 @@ export interface components {
|
|
|
1952
1952
|
*/
|
|
1953
1953
|
fundAmount: string;
|
|
1954
1954
|
};
|
|
1955
|
+
/** @description DepositFirst payload - empty at creation time, details determined after deposit is detected */
|
|
1956
|
+
DepositFirstPayload: Record<string, never>;
|
|
1957
|
+
/** @description DepositFirst metadata for display purposes */
|
|
1958
|
+
DepositFirstMetadata: {
|
|
1959
|
+
/** @description Token accepted for deposit */
|
|
1960
|
+
srcToken: components["schemas"]["Token"];
|
|
1961
|
+
/** @description Token to swap to after deposit */
|
|
1962
|
+
dstToken: components["schemas"]["Token"];
|
|
1963
|
+
};
|
|
1955
1964
|
/** @description Swap metadata for display purposes */
|
|
1956
1965
|
SwapMetadata: {
|
|
1957
1966
|
srcToken: components["schemas"]["Token"];
|
|
@@ -2037,7 +2046,7 @@ export interface components {
|
|
|
2037
2046
|
* @example executed
|
|
2038
2047
|
* @enum {string}
|
|
2039
2048
|
*/
|
|
2040
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
2049
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
2041
2050
|
/** @description Error details if order failed */
|
|
2042
2051
|
errorDetails: string | null;
|
|
2043
2052
|
/**
|
|
@@ -2167,7 +2176,16 @@ export interface components {
|
|
|
2167
2176
|
payload: components["schemas"]["FundTournamentPayload"];
|
|
2168
2177
|
metadata: components["schemas"]["TournamentMetadata"];
|
|
2169
2178
|
};
|
|
2170
|
-
|
|
2179
|
+
DepositFirstOrder: components["schemas"]["BaseOrder"] & {
|
|
2180
|
+
/**
|
|
2181
|
+
* @description Order type for deposit-first flow where amount is determined after deposit
|
|
2182
|
+
* @enum {string}
|
|
2183
|
+
*/
|
|
2184
|
+
type: "deposit_first";
|
|
2185
|
+
payload: components["schemas"]["DepositFirstPayload"];
|
|
2186
|
+
metadata: components["schemas"]["DepositFirstMetadata"];
|
|
2187
|
+
};
|
|
2188
|
+
Order: components["schemas"]["SwapOrder"] | components["schemas"]["X402SwapOrder"] | components["schemas"]["HypeDuelOrder"] | components["schemas"]["CustomOrder"] | components["schemas"]["CustomExactInOrder"] | components["schemas"]["MintNftOrder"] | components["schemas"]["JoinTournamentOrder"] | components["schemas"]["FundTournamentOrder"] | components["schemas"]["DepositFirstOrder"];
|
|
2171
2189
|
/** @description Swap order request */
|
|
2172
2190
|
SwapOrderRequest: {
|
|
2173
2191
|
/**
|
|
@@ -2568,7 +2586,51 @@ export interface components {
|
|
|
2568
2586
|
*/
|
|
2569
2587
|
creatorAddress?: string;
|
|
2570
2588
|
};
|
|
2571
|
-
|
|
2589
|
+
/** @description Deposit-first order request. The srcAmount is determined after deposit is detected, so it is not required at creation time. This flow does not support onramp - users deposit crypto directly. */
|
|
2590
|
+
DepositFirstOrderRequest: {
|
|
2591
|
+
/**
|
|
2592
|
+
* @description Order type for deposit-first flow
|
|
2593
|
+
* @enum {string}
|
|
2594
|
+
*/
|
|
2595
|
+
type: "deposit_first";
|
|
2596
|
+
/**
|
|
2597
|
+
* @description Address to receive the destination tokens after swap
|
|
2598
|
+
* @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
|
|
2599
|
+
*/
|
|
2600
|
+
recipientAddress: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* @description Source chain ID where deposit will be made
|
|
2603
|
+
* @example 8453
|
|
2604
|
+
*/
|
|
2605
|
+
srcChain: number;
|
|
2606
|
+
/**
|
|
2607
|
+
* @description Destination chain ID for the swap
|
|
2608
|
+
* @example 8453
|
|
2609
|
+
*/
|
|
2610
|
+
dstChain: number;
|
|
2611
|
+
/**
|
|
2612
|
+
* @description Token contract address that will be deposited
|
|
2613
|
+
* @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
|
|
2614
|
+
*/
|
|
2615
|
+
srcTokenAddress: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* @description Token contract address to receive after swap
|
|
2618
|
+
* @example 0x0000000000000000000000000000000000000000
|
|
2619
|
+
*/
|
|
2620
|
+
dstTokenAddress: string;
|
|
2621
|
+
payload: components["schemas"]["DepositFirstPayload"];
|
|
2622
|
+
metadata: components["schemas"]["DepositFirstMetadata"];
|
|
2623
|
+
/** @description Optional partner identifier */
|
|
2624
|
+
partnerId?: string;
|
|
2625
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2626
|
+
clientReferenceId?: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* @description Optional address of the order creator
|
|
2629
|
+
* @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
|
|
2630
|
+
*/
|
|
2631
|
+
creatorAddress?: string;
|
|
2632
|
+
};
|
|
2633
|
+
OrderRequest: components["schemas"]["SwapOrderRequest"] | components["schemas"]["X402SwapOrderRequest"] | components["schemas"]["HypeDuelOrderRequest"] | components["schemas"]["CustomOrderRequest"] | components["schemas"]["CustomExactInOrderRequest"] | components["schemas"]["MintNftOrderRequest"] | components["schemas"]["JoinTournamentOrderRequest"] | components["schemas"]["FundTournamentOrderRequest"] | components["schemas"]["DepositFirstOrderRequest"];
|
|
2572
2634
|
/** @description Deposit transaction (payment from user) */
|
|
2573
2635
|
DepositTx: {
|
|
2574
2636
|
/**
|
|
@@ -8,7 +8,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
8
8
|
srcTokenAddress: string;
|
|
9
9
|
dstTokenAddress: string;
|
|
10
10
|
srcAmount: string;
|
|
11
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
11
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
12
12
|
errorDetails: string | null;
|
|
13
13
|
createdAt: number;
|
|
14
14
|
expiredAt: number;
|
|
@@ -38,7 +38,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
38
38
|
srcTokenAddress: string;
|
|
39
39
|
dstTokenAddress: string;
|
|
40
40
|
srcAmount: string;
|
|
41
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
41
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
42
42
|
errorDetails: string | null;
|
|
43
43
|
createdAt: number;
|
|
44
44
|
expiredAt: number;
|
|
@@ -68,7 +68,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
68
68
|
srcTokenAddress: string;
|
|
69
69
|
dstTokenAddress: string;
|
|
70
70
|
srcAmount: string;
|
|
71
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
71
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
72
72
|
errorDetails: string | null;
|
|
73
73
|
createdAt: number;
|
|
74
74
|
expiredAt: number;
|
|
@@ -98,7 +98,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
98
98
|
srcTokenAddress: string;
|
|
99
99
|
dstTokenAddress: string;
|
|
100
100
|
srcAmount: string;
|
|
101
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
101
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
102
102
|
errorDetails: string | null;
|
|
103
103
|
createdAt: number;
|
|
104
104
|
expiredAt: number;
|
|
@@ -128,7 +128,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
128
128
|
srcTokenAddress: string;
|
|
129
129
|
dstTokenAddress: string;
|
|
130
130
|
srcAmount: string;
|
|
131
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
131
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
132
132
|
errorDetails: string | null;
|
|
133
133
|
createdAt: number;
|
|
134
134
|
expiredAt: number;
|
|
@@ -158,7 +158,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
158
158
|
srcTokenAddress: string;
|
|
159
159
|
dstTokenAddress: string;
|
|
160
160
|
srcAmount: string;
|
|
161
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
161
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
162
162
|
errorDetails: string | null;
|
|
163
163
|
createdAt: number;
|
|
164
164
|
expiredAt: number;
|
|
@@ -188,7 +188,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
188
188
|
srcTokenAddress: string;
|
|
189
189
|
dstTokenAddress: string;
|
|
190
190
|
srcAmount: string;
|
|
191
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
191
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
192
192
|
errorDetails: string | null;
|
|
193
193
|
createdAt: number;
|
|
194
194
|
expiredAt: number;
|
|
@@ -218,7 +218,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
218
218
|
srcTokenAddress: string;
|
|
219
219
|
dstTokenAddress: string;
|
|
220
220
|
srcAmount: string;
|
|
221
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
221
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
222
222
|
errorDetails: string | null;
|
|
223
223
|
createdAt: number;
|
|
224
224
|
expiredAt: number;
|
|
@@ -239,6 +239,36 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
239
239
|
type: "fund_tournament";
|
|
240
240
|
payload: import("../..").components["schemas"]["FundTournamentPayload"];
|
|
241
241
|
metadata: import("../..").components["schemas"]["TournamentMetadata"];
|
|
242
|
+
}) | ({
|
|
243
|
+
id: string;
|
|
244
|
+
recipientAddress: string;
|
|
245
|
+
globalAddress: string;
|
|
246
|
+
srcChain: number;
|
|
247
|
+
dstChain: number;
|
|
248
|
+
srcTokenAddress: string;
|
|
249
|
+
dstTokenAddress: string;
|
|
250
|
+
srcAmount: string;
|
|
251
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
252
|
+
errorDetails: string | null;
|
|
253
|
+
createdAt: number;
|
|
254
|
+
expiredAt: number;
|
|
255
|
+
filledAt: number | null;
|
|
256
|
+
receivedDepositAt: number | null;
|
|
257
|
+
creatorAddress: string | null;
|
|
258
|
+
partnerId: string | null;
|
|
259
|
+
clientReferenceId?: string | null;
|
|
260
|
+
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
261
|
+
oneClickBuyUrl: string | null;
|
|
262
|
+
stripePaymentIntentId: string | null;
|
|
263
|
+
settlement: {
|
|
264
|
+
actualDstAmount?: string;
|
|
265
|
+
relay?: Record<string, never>;
|
|
266
|
+
} | null;
|
|
267
|
+
fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
|
|
268
|
+
} & {
|
|
269
|
+
type: "deposit_first";
|
|
270
|
+
payload: import("../..").components["schemas"]["DepositFirstPayload"];
|
|
271
|
+
metadata: import("../..").components["schemas"]["DepositFirstMetadata"];
|
|
242
272
|
}))[];
|
|
243
273
|
isLoadingOrderHistory: boolean;
|
|
244
274
|
getOrderHistoryError: Error | null;
|
|
@@ -251,7 +281,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
251
281
|
srcTokenAddress: string;
|
|
252
282
|
dstTokenAddress: string;
|
|
253
283
|
srcAmount: string;
|
|
254
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
284
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
255
285
|
errorDetails: string | null;
|
|
256
286
|
createdAt: number;
|
|
257
287
|
expiredAt: number;
|
|
@@ -281,7 +311,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
281
311
|
srcTokenAddress: string;
|
|
282
312
|
dstTokenAddress: string;
|
|
283
313
|
srcAmount: string;
|
|
284
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
314
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
285
315
|
errorDetails: string | null;
|
|
286
316
|
createdAt: number;
|
|
287
317
|
expiredAt: number;
|
|
@@ -311,7 +341,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
311
341
|
srcTokenAddress: string;
|
|
312
342
|
dstTokenAddress: string;
|
|
313
343
|
srcAmount: string;
|
|
314
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
344
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
315
345
|
errorDetails: string | null;
|
|
316
346
|
createdAt: number;
|
|
317
347
|
expiredAt: number;
|
|
@@ -341,7 +371,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
341
371
|
srcTokenAddress: string;
|
|
342
372
|
dstTokenAddress: string;
|
|
343
373
|
srcAmount: string;
|
|
344
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
374
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
345
375
|
errorDetails: string | null;
|
|
346
376
|
createdAt: number;
|
|
347
377
|
expiredAt: number;
|
|
@@ -371,7 +401,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
371
401
|
srcTokenAddress: string;
|
|
372
402
|
dstTokenAddress: string;
|
|
373
403
|
srcAmount: string;
|
|
374
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
404
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
375
405
|
errorDetails: string | null;
|
|
376
406
|
createdAt: number;
|
|
377
407
|
expiredAt: number;
|
|
@@ -401,7 +431,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
401
431
|
srcTokenAddress: string;
|
|
402
432
|
dstTokenAddress: string;
|
|
403
433
|
srcAmount: string;
|
|
404
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
434
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
405
435
|
errorDetails: string | null;
|
|
406
436
|
createdAt: number;
|
|
407
437
|
expiredAt: number;
|
|
@@ -431,7 +461,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
431
461
|
srcTokenAddress: string;
|
|
432
462
|
dstTokenAddress: string;
|
|
433
463
|
srcAmount: string;
|
|
434
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
464
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
435
465
|
errorDetails: string | null;
|
|
436
466
|
createdAt: number;
|
|
437
467
|
expiredAt: number;
|
|
@@ -461,7 +491,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
461
491
|
srcTokenAddress: string;
|
|
462
492
|
dstTokenAddress: string;
|
|
463
493
|
srcAmount: string;
|
|
464
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
494
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
465
495
|
errorDetails: string | null;
|
|
466
496
|
createdAt: number;
|
|
467
497
|
expiredAt: number;
|
|
@@ -482,5 +512,35 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
482
512
|
type: "fund_tournament";
|
|
483
513
|
payload: import("../..").components["schemas"]["FundTournamentPayload"];
|
|
484
514
|
metadata: import("../..").components["schemas"]["TournamentMetadata"];
|
|
515
|
+
}) | ({
|
|
516
|
+
id: string;
|
|
517
|
+
recipientAddress: string;
|
|
518
|
+
globalAddress: string;
|
|
519
|
+
srcChain: number;
|
|
520
|
+
dstChain: number;
|
|
521
|
+
srcTokenAddress: string;
|
|
522
|
+
dstTokenAddress: string;
|
|
523
|
+
srcAmount: string;
|
|
524
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
525
|
+
errorDetails: string | null;
|
|
526
|
+
createdAt: number;
|
|
527
|
+
expiredAt: number;
|
|
528
|
+
filledAt: number | null;
|
|
529
|
+
receivedDepositAt: number | null;
|
|
530
|
+
creatorAddress: string | null;
|
|
531
|
+
partnerId: string | null;
|
|
532
|
+
clientReferenceId?: string | null;
|
|
533
|
+
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
534
|
+
oneClickBuyUrl: string | null;
|
|
535
|
+
stripePaymentIntentId: string | null;
|
|
536
|
+
settlement: {
|
|
537
|
+
actualDstAmount?: string;
|
|
538
|
+
relay?: Record<string, never>;
|
|
539
|
+
} | null;
|
|
540
|
+
fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
|
|
541
|
+
} & {
|
|
542
|
+
type: "deposit_first";
|
|
543
|
+
payload: import("../..").components["schemas"]["DepositFirstPayload"];
|
|
544
|
+
metadata: import("../..").components["schemas"]["DepositFirstMetadata"];
|
|
485
545
|
}))[], Error>>;
|
|
486
546
|
};
|
|
@@ -1952,6 +1952,15 @@ export interface components {
|
|
|
1952
1952
|
*/
|
|
1953
1953
|
fundAmount: string;
|
|
1954
1954
|
};
|
|
1955
|
+
/** @description DepositFirst payload - empty at creation time, details determined after deposit is detected */
|
|
1956
|
+
DepositFirstPayload: Record<string, never>;
|
|
1957
|
+
/** @description DepositFirst metadata for display purposes */
|
|
1958
|
+
DepositFirstMetadata: {
|
|
1959
|
+
/** @description Token accepted for deposit */
|
|
1960
|
+
srcToken: components["schemas"]["Token"];
|
|
1961
|
+
/** @description Token to swap to after deposit */
|
|
1962
|
+
dstToken: components["schemas"]["Token"];
|
|
1963
|
+
};
|
|
1955
1964
|
/** @description Swap metadata for display purposes */
|
|
1956
1965
|
SwapMetadata: {
|
|
1957
1966
|
srcToken: components["schemas"]["Token"];
|
|
@@ -2037,7 +2046,7 @@ export interface components {
|
|
|
2037
2046
|
* @example executed
|
|
2038
2047
|
* @enum {string}
|
|
2039
2048
|
*/
|
|
2040
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
2049
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
2041
2050
|
/** @description Error details if order failed */
|
|
2042
2051
|
errorDetails: string | null;
|
|
2043
2052
|
/**
|
|
@@ -2167,7 +2176,16 @@ export interface components {
|
|
|
2167
2176
|
payload: components["schemas"]["FundTournamentPayload"];
|
|
2168
2177
|
metadata: components["schemas"]["TournamentMetadata"];
|
|
2169
2178
|
};
|
|
2170
|
-
|
|
2179
|
+
DepositFirstOrder: components["schemas"]["BaseOrder"] & {
|
|
2180
|
+
/**
|
|
2181
|
+
* @description Order type for deposit-first flow where amount is determined after deposit
|
|
2182
|
+
* @enum {string}
|
|
2183
|
+
*/
|
|
2184
|
+
type: "deposit_first";
|
|
2185
|
+
payload: components["schemas"]["DepositFirstPayload"];
|
|
2186
|
+
metadata: components["schemas"]["DepositFirstMetadata"];
|
|
2187
|
+
};
|
|
2188
|
+
Order: components["schemas"]["SwapOrder"] | components["schemas"]["X402SwapOrder"] | components["schemas"]["HypeDuelOrder"] | components["schemas"]["CustomOrder"] | components["schemas"]["CustomExactInOrder"] | components["schemas"]["MintNftOrder"] | components["schemas"]["JoinTournamentOrder"] | components["schemas"]["FundTournamentOrder"] | components["schemas"]["DepositFirstOrder"];
|
|
2171
2189
|
/** @description Swap order request */
|
|
2172
2190
|
SwapOrderRequest: {
|
|
2173
2191
|
/**
|
|
@@ -2568,7 +2586,51 @@ export interface components {
|
|
|
2568
2586
|
*/
|
|
2569
2587
|
creatorAddress?: string;
|
|
2570
2588
|
};
|
|
2571
|
-
|
|
2589
|
+
/** @description Deposit-first order request. The srcAmount is determined after deposit is detected, so it is not required at creation time. This flow does not support onramp - users deposit crypto directly. */
|
|
2590
|
+
DepositFirstOrderRequest: {
|
|
2591
|
+
/**
|
|
2592
|
+
* @description Order type for deposit-first flow
|
|
2593
|
+
* @enum {string}
|
|
2594
|
+
*/
|
|
2595
|
+
type: "deposit_first";
|
|
2596
|
+
/**
|
|
2597
|
+
* @description Address to receive the destination tokens after swap
|
|
2598
|
+
* @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
|
|
2599
|
+
*/
|
|
2600
|
+
recipientAddress: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* @description Source chain ID where deposit will be made
|
|
2603
|
+
* @example 8453
|
|
2604
|
+
*/
|
|
2605
|
+
srcChain: number;
|
|
2606
|
+
/**
|
|
2607
|
+
* @description Destination chain ID for the swap
|
|
2608
|
+
* @example 8453
|
|
2609
|
+
*/
|
|
2610
|
+
dstChain: number;
|
|
2611
|
+
/**
|
|
2612
|
+
* @description Token contract address that will be deposited
|
|
2613
|
+
* @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
|
|
2614
|
+
*/
|
|
2615
|
+
srcTokenAddress: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* @description Token contract address to receive after swap
|
|
2618
|
+
* @example 0x0000000000000000000000000000000000000000
|
|
2619
|
+
*/
|
|
2620
|
+
dstTokenAddress: string;
|
|
2621
|
+
payload: components["schemas"]["DepositFirstPayload"];
|
|
2622
|
+
metadata: components["schemas"]["DepositFirstMetadata"];
|
|
2623
|
+
/** @description Optional partner identifier */
|
|
2624
|
+
partnerId?: string;
|
|
2625
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2626
|
+
clientReferenceId?: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* @description Optional address of the order creator
|
|
2629
|
+
* @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
|
|
2630
|
+
*/
|
|
2631
|
+
creatorAddress?: string;
|
|
2632
|
+
};
|
|
2633
|
+
OrderRequest: components["schemas"]["SwapOrderRequest"] | components["schemas"]["X402SwapOrderRequest"] | components["schemas"]["HypeDuelOrderRequest"] | components["schemas"]["CustomOrderRequest"] | components["schemas"]["CustomExactInOrderRequest"] | components["schemas"]["MintNftOrderRequest"] | components["schemas"]["JoinTournamentOrderRequest"] | components["schemas"]["FundTournamentOrderRequest"] | components["schemas"]["DepositFirstOrderRequest"];
|
|
2572
2634
|
/** @description Deposit transaction (payment from user) */
|
|
2573
2635
|
DepositTx: {
|
|
2574
2636
|
/**
|
|
@@ -8,7 +8,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
8
8
|
srcTokenAddress: string;
|
|
9
9
|
dstTokenAddress: string;
|
|
10
10
|
srcAmount: string;
|
|
11
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
11
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
12
12
|
errorDetails: string | null;
|
|
13
13
|
createdAt: number;
|
|
14
14
|
expiredAt: number;
|
|
@@ -38,7 +38,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
38
38
|
srcTokenAddress: string;
|
|
39
39
|
dstTokenAddress: string;
|
|
40
40
|
srcAmount: string;
|
|
41
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
41
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
42
42
|
errorDetails: string | null;
|
|
43
43
|
createdAt: number;
|
|
44
44
|
expiredAt: number;
|
|
@@ -68,7 +68,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
68
68
|
srcTokenAddress: string;
|
|
69
69
|
dstTokenAddress: string;
|
|
70
70
|
srcAmount: string;
|
|
71
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
71
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
72
72
|
errorDetails: string | null;
|
|
73
73
|
createdAt: number;
|
|
74
74
|
expiredAt: number;
|
|
@@ -98,7 +98,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
98
98
|
srcTokenAddress: string;
|
|
99
99
|
dstTokenAddress: string;
|
|
100
100
|
srcAmount: string;
|
|
101
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
101
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
102
102
|
errorDetails: string | null;
|
|
103
103
|
createdAt: number;
|
|
104
104
|
expiredAt: number;
|
|
@@ -128,7 +128,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
128
128
|
srcTokenAddress: string;
|
|
129
129
|
dstTokenAddress: string;
|
|
130
130
|
srcAmount: string;
|
|
131
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
131
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
132
132
|
errorDetails: string | null;
|
|
133
133
|
createdAt: number;
|
|
134
134
|
expiredAt: number;
|
|
@@ -158,7 +158,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
158
158
|
srcTokenAddress: string;
|
|
159
159
|
dstTokenAddress: string;
|
|
160
160
|
srcAmount: string;
|
|
161
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
161
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
162
162
|
errorDetails: string | null;
|
|
163
163
|
createdAt: number;
|
|
164
164
|
expiredAt: number;
|
|
@@ -188,7 +188,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
188
188
|
srcTokenAddress: string;
|
|
189
189
|
dstTokenAddress: string;
|
|
190
190
|
srcAmount: string;
|
|
191
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
191
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
192
192
|
errorDetails: string | null;
|
|
193
193
|
createdAt: number;
|
|
194
194
|
expiredAt: number;
|
|
@@ -218,7 +218,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
218
218
|
srcTokenAddress: string;
|
|
219
219
|
dstTokenAddress: string;
|
|
220
220
|
srcAmount: string;
|
|
221
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
221
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
222
222
|
errorDetails: string | null;
|
|
223
223
|
createdAt: number;
|
|
224
224
|
expiredAt: number;
|
|
@@ -239,6 +239,36 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
239
239
|
type: "fund_tournament";
|
|
240
240
|
payload: import("../..").components["schemas"]["FundTournamentPayload"];
|
|
241
241
|
metadata: import("../..").components["schemas"]["TournamentMetadata"];
|
|
242
|
+
}) | ({
|
|
243
|
+
id: string;
|
|
244
|
+
recipientAddress: string;
|
|
245
|
+
globalAddress: string;
|
|
246
|
+
srcChain: number;
|
|
247
|
+
dstChain: number;
|
|
248
|
+
srcTokenAddress: string;
|
|
249
|
+
dstTokenAddress: string;
|
|
250
|
+
srcAmount: string;
|
|
251
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
252
|
+
errorDetails: string | null;
|
|
253
|
+
createdAt: number;
|
|
254
|
+
expiredAt: number;
|
|
255
|
+
filledAt: number | null;
|
|
256
|
+
receivedDepositAt: number | null;
|
|
257
|
+
creatorAddress: string | null;
|
|
258
|
+
partnerId: string | null;
|
|
259
|
+
clientReferenceId?: string | null;
|
|
260
|
+
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
261
|
+
oneClickBuyUrl: string | null;
|
|
262
|
+
stripePaymentIntentId: string | null;
|
|
263
|
+
settlement: {
|
|
264
|
+
actualDstAmount?: string;
|
|
265
|
+
relay?: Record<string, never>;
|
|
266
|
+
} | null;
|
|
267
|
+
fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
|
|
268
|
+
} & {
|
|
269
|
+
type: "deposit_first";
|
|
270
|
+
payload: import("../..").components["schemas"]["DepositFirstPayload"];
|
|
271
|
+
metadata: import("../..").components["schemas"]["DepositFirstMetadata"];
|
|
242
272
|
}))[];
|
|
243
273
|
isLoadingOrderHistory: boolean;
|
|
244
274
|
getOrderHistoryError: Error | null;
|
|
@@ -251,7 +281,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
251
281
|
srcTokenAddress: string;
|
|
252
282
|
dstTokenAddress: string;
|
|
253
283
|
srcAmount: string;
|
|
254
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
284
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
255
285
|
errorDetails: string | null;
|
|
256
286
|
createdAt: number;
|
|
257
287
|
expiredAt: number;
|
|
@@ -281,7 +311,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
281
311
|
srcTokenAddress: string;
|
|
282
312
|
dstTokenAddress: string;
|
|
283
313
|
srcAmount: string;
|
|
284
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
314
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
285
315
|
errorDetails: string | null;
|
|
286
316
|
createdAt: number;
|
|
287
317
|
expiredAt: number;
|
|
@@ -311,7 +341,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
311
341
|
srcTokenAddress: string;
|
|
312
342
|
dstTokenAddress: string;
|
|
313
343
|
srcAmount: string;
|
|
314
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
344
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
315
345
|
errorDetails: string | null;
|
|
316
346
|
createdAt: number;
|
|
317
347
|
expiredAt: number;
|
|
@@ -341,7 +371,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
341
371
|
srcTokenAddress: string;
|
|
342
372
|
dstTokenAddress: string;
|
|
343
373
|
srcAmount: string;
|
|
344
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
374
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
345
375
|
errorDetails: string | null;
|
|
346
376
|
createdAt: number;
|
|
347
377
|
expiredAt: number;
|
|
@@ -371,7 +401,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
371
401
|
srcTokenAddress: string;
|
|
372
402
|
dstTokenAddress: string;
|
|
373
403
|
srcAmount: string;
|
|
374
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
404
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
375
405
|
errorDetails: string | null;
|
|
376
406
|
createdAt: number;
|
|
377
407
|
expiredAt: number;
|
|
@@ -401,7 +431,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
401
431
|
srcTokenAddress: string;
|
|
402
432
|
dstTokenAddress: string;
|
|
403
433
|
srcAmount: string;
|
|
404
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
434
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
405
435
|
errorDetails: string | null;
|
|
406
436
|
createdAt: number;
|
|
407
437
|
expiredAt: number;
|
|
@@ -431,7 +461,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
431
461
|
srcTokenAddress: string;
|
|
432
462
|
dstTokenAddress: string;
|
|
433
463
|
srcAmount: string;
|
|
434
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
464
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
435
465
|
errorDetails: string | null;
|
|
436
466
|
createdAt: number;
|
|
437
467
|
expiredAt: number;
|
|
@@ -461,7 +491,7 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
461
491
|
srcTokenAddress: string;
|
|
462
492
|
dstTokenAddress: string;
|
|
463
493
|
srcAmount: string;
|
|
464
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
494
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
465
495
|
errorDetails: string | null;
|
|
466
496
|
createdAt: number;
|
|
467
497
|
expiredAt: number;
|
|
@@ -482,5 +512,35 @@ export declare function useAnyspendOrderHistory(creatorAddress: string | undefin
|
|
|
482
512
|
type: "fund_tournament";
|
|
483
513
|
payload: import("../..").components["schemas"]["FundTournamentPayload"];
|
|
484
514
|
metadata: import("../..").components["schemas"]["TournamentMetadata"];
|
|
515
|
+
}) | ({
|
|
516
|
+
id: string;
|
|
517
|
+
recipientAddress: string;
|
|
518
|
+
globalAddress: string;
|
|
519
|
+
srcChain: number;
|
|
520
|
+
dstChain: number;
|
|
521
|
+
srcTokenAddress: string;
|
|
522
|
+
dstTokenAddress: string;
|
|
523
|
+
srcAmount: string;
|
|
524
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
525
|
+
errorDetails: string | null;
|
|
526
|
+
createdAt: number;
|
|
527
|
+
expiredAt: number;
|
|
528
|
+
filledAt: number | null;
|
|
529
|
+
receivedDepositAt: number | null;
|
|
530
|
+
creatorAddress: string | null;
|
|
531
|
+
partnerId: string | null;
|
|
532
|
+
clientReferenceId?: string | null;
|
|
533
|
+
onrampMetadata: import("../..").components["schemas"]["OnrampMetadata"] | null;
|
|
534
|
+
oneClickBuyUrl: string | null;
|
|
535
|
+
stripePaymentIntentId: string | null;
|
|
536
|
+
settlement: {
|
|
537
|
+
actualDstAmount?: string;
|
|
538
|
+
relay?: Record<string, never>;
|
|
539
|
+
} | null;
|
|
540
|
+
fee?: Omit<import("../..").components["schemas"]["Fee"], "type"> | null;
|
|
541
|
+
} & {
|
|
542
|
+
type: "deposit_first";
|
|
543
|
+
payload: import("../..").components["schemas"]["DepositFirstPayload"];
|
|
544
|
+
metadata: import("../..").components["schemas"]["DepositFirstMetadata"];
|
|
485
545
|
}))[], Error>>;
|
|
486
546
|
};
|
|
@@ -1952,6 +1952,15 @@ export interface components {
|
|
|
1952
1952
|
*/
|
|
1953
1953
|
fundAmount: string;
|
|
1954
1954
|
};
|
|
1955
|
+
/** @description DepositFirst payload - empty at creation time, details determined after deposit is detected */
|
|
1956
|
+
DepositFirstPayload: Record<string, never>;
|
|
1957
|
+
/** @description DepositFirst metadata for display purposes */
|
|
1958
|
+
DepositFirstMetadata: {
|
|
1959
|
+
/** @description Token accepted for deposit */
|
|
1960
|
+
srcToken: components["schemas"]["Token"];
|
|
1961
|
+
/** @description Token to swap to after deposit */
|
|
1962
|
+
dstToken: components["schemas"]["Token"];
|
|
1963
|
+
};
|
|
1955
1964
|
/** @description Swap metadata for display purposes */
|
|
1956
1965
|
SwapMetadata: {
|
|
1957
1966
|
srcToken: components["schemas"]["Token"];
|
|
@@ -2037,7 +2046,7 @@ export interface components {
|
|
|
2037
2046
|
* @example executed
|
|
2038
2047
|
* @enum {string}
|
|
2039
2048
|
*/
|
|
2040
|
-
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
2049
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "quoting_after_deposit" | "relay" | "executing" | "executed" | "refunding" | "refunded" | "failure";
|
|
2041
2050
|
/** @description Error details if order failed */
|
|
2042
2051
|
errorDetails: string | null;
|
|
2043
2052
|
/**
|
|
@@ -2167,7 +2176,16 @@ export interface components {
|
|
|
2167
2176
|
payload: components["schemas"]["FundTournamentPayload"];
|
|
2168
2177
|
metadata: components["schemas"]["TournamentMetadata"];
|
|
2169
2178
|
};
|
|
2170
|
-
|
|
2179
|
+
DepositFirstOrder: components["schemas"]["BaseOrder"] & {
|
|
2180
|
+
/**
|
|
2181
|
+
* @description Order type for deposit-first flow where amount is determined after deposit
|
|
2182
|
+
* @enum {string}
|
|
2183
|
+
*/
|
|
2184
|
+
type: "deposit_first";
|
|
2185
|
+
payload: components["schemas"]["DepositFirstPayload"];
|
|
2186
|
+
metadata: components["schemas"]["DepositFirstMetadata"];
|
|
2187
|
+
};
|
|
2188
|
+
Order: components["schemas"]["SwapOrder"] | components["schemas"]["X402SwapOrder"] | components["schemas"]["HypeDuelOrder"] | components["schemas"]["CustomOrder"] | components["schemas"]["CustomExactInOrder"] | components["schemas"]["MintNftOrder"] | components["schemas"]["JoinTournamentOrder"] | components["schemas"]["FundTournamentOrder"] | components["schemas"]["DepositFirstOrder"];
|
|
2171
2189
|
/** @description Swap order request */
|
|
2172
2190
|
SwapOrderRequest: {
|
|
2173
2191
|
/**
|
|
@@ -2568,7 +2586,51 @@ export interface components {
|
|
|
2568
2586
|
*/
|
|
2569
2587
|
creatorAddress?: string;
|
|
2570
2588
|
};
|
|
2571
|
-
|
|
2589
|
+
/** @description Deposit-first order request. The srcAmount is determined after deposit is detected, so it is not required at creation time. This flow does not support onramp - users deposit crypto directly. */
|
|
2590
|
+
DepositFirstOrderRequest: {
|
|
2591
|
+
/**
|
|
2592
|
+
* @description Order type for deposit-first flow
|
|
2593
|
+
* @enum {string}
|
|
2594
|
+
*/
|
|
2595
|
+
type: "deposit_first";
|
|
2596
|
+
/**
|
|
2597
|
+
* @description Address to receive the destination tokens after swap
|
|
2598
|
+
* @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
|
|
2599
|
+
*/
|
|
2600
|
+
recipientAddress: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* @description Source chain ID where deposit will be made
|
|
2603
|
+
* @example 8453
|
|
2604
|
+
*/
|
|
2605
|
+
srcChain: number;
|
|
2606
|
+
/**
|
|
2607
|
+
* @description Destination chain ID for the swap
|
|
2608
|
+
* @example 8453
|
|
2609
|
+
*/
|
|
2610
|
+
dstChain: number;
|
|
2611
|
+
/**
|
|
2612
|
+
* @description Token contract address that will be deposited
|
|
2613
|
+
* @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
|
|
2614
|
+
*/
|
|
2615
|
+
srcTokenAddress: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* @description Token contract address to receive after swap
|
|
2618
|
+
* @example 0x0000000000000000000000000000000000000000
|
|
2619
|
+
*/
|
|
2620
|
+
dstTokenAddress: string;
|
|
2621
|
+
payload: components["schemas"]["DepositFirstPayload"];
|
|
2622
|
+
metadata: components["schemas"]["DepositFirstMetadata"];
|
|
2623
|
+
/** @description Optional partner identifier */
|
|
2624
|
+
partnerId?: string;
|
|
2625
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2626
|
+
clientReferenceId?: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* @description Optional address of the order creator
|
|
2629
|
+
* @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
|
|
2630
|
+
*/
|
|
2631
|
+
creatorAddress?: string;
|
|
2632
|
+
};
|
|
2633
|
+
OrderRequest: components["schemas"]["SwapOrderRequest"] | components["schemas"]["X402SwapOrderRequest"] | components["schemas"]["HypeDuelOrderRequest"] | components["schemas"]["CustomOrderRequest"] | components["schemas"]["CustomExactInOrderRequest"] | components["schemas"]["MintNftOrderRequest"] | components["schemas"]["JoinTournamentOrderRequest"] | components["schemas"]["FundTournamentOrderRequest"] | components["schemas"]["DepositFirstOrderRequest"];
|
|
2572
2634
|
/** @description Deposit transaction (payment from user) */
|
|
2573
2635
|
DepositTx: {
|
|
2574
2636
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@b3dotfun/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.87-alpha.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"react-native": "./dist/cjs/index.native.js",
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
"postcss-prefix-selector": "^2.1.1",
|
|
361
361
|
"tailwindcss": "3.4.1",
|
|
362
362
|
"tailwindcss-animate": "^1.0.7",
|
|
363
|
-
"thirdweb": "5.
|
|
363
|
+
"thirdweb": "5.116.1",
|
|
364
364
|
"tsc-alias": "^1.8.16",
|
|
365
365
|
"tsc-watch": "^7.1.1",
|
|
366
366
|
"vitest": "^3.2.4"
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
"react": "^18.0.0 || ^19.0.0",
|
|
384
384
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
385
385
|
"react-native-mmkv": "^3.2.0",
|
|
386
|
-
"thirdweb": "5.
|
|
386
|
+
"thirdweb": "5.116.1",
|
|
387
387
|
"three": "^0.175.0",
|
|
388
388
|
"viem": "2.37.9",
|
|
389
389
|
"wagmi": "2.16.9"
|
|
@@ -1961,6 +1961,15 @@ export interface components {
|
|
|
1961
1961
|
*/
|
|
1962
1962
|
fundAmount: string;
|
|
1963
1963
|
};
|
|
1964
|
+
/** @description DepositFirst payload - empty at creation time, details determined after deposit is detected */
|
|
1965
|
+
DepositFirstPayload: Record<string, never>;
|
|
1966
|
+
/** @description DepositFirst metadata for display purposes */
|
|
1967
|
+
DepositFirstMetadata: {
|
|
1968
|
+
/** @description Token accepted for deposit */
|
|
1969
|
+
srcToken: components["schemas"]["Token"];
|
|
1970
|
+
/** @description Token to swap to after deposit */
|
|
1971
|
+
dstToken: components["schemas"]["Token"];
|
|
1972
|
+
};
|
|
1964
1973
|
/** @description Swap metadata for display purposes */
|
|
1965
1974
|
SwapMetadata: {
|
|
1966
1975
|
srcToken: components["schemas"]["Token"];
|
|
@@ -2051,6 +2060,7 @@ export interface components {
|
|
|
2051
2060
|
| "waiting_stripe_payment"
|
|
2052
2061
|
| "expired"
|
|
2053
2062
|
| "sending_token_from_vault"
|
|
2063
|
+
| "quoting_after_deposit"
|
|
2054
2064
|
| "relay"
|
|
2055
2065
|
| "executing"
|
|
2056
2066
|
| "executed"
|
|
@@ -2186,6 +2196,15 @@ export interface components {
|
|
|
2186
2196
|
payload: components["schemas"]["FundTournamentPayload"];
|
|
2187
2197
|
metadata: components["schemas"]["TournamentMetadata"];
|
|
2188
2198
|
};
|
|
2199
|
+
DepositFirstOrder: components["schemas"]["BaseOrder"] & {
|
|
2200
|
+
/**
|
|
2201
|
+
* @description Order type for deposit-first flow where amount is determined after deposit
|
|
2202
|
+
* @enum {string}
|
|
2203
|
+
*/
|
|
2204
|
+
type: "deposit_first";
|
|
2205
|
+
payload: components["schemas"]["DepositFirstPayload"];
|
|
2206
|
+
metadata: components["schemas"]["DepositFirstMetadata"];
|
|
2207
|
+
};
|
|
2189
2208
|
Order:
|
|
2190
2209
|
| components["schemas"]["SwapOrder"]
|
|
2191
2210
|
| components["schemas"]["X402SwapOrder"]
|
|
@@ -2194,7 +2213,8 @@ export interface components {
|
|
|
2194
2213
|
| components["schemas"]["CustomExactInOrder"]
|
|
2195
2214
|
| components["schemas"]["MintNftOrder"]
|
|
2196
2215
|
| components["schemas"]["JoinTournamentOrder"]
|
|
2197
|
-
| components["schemas"]["FundTournamentOrder"]
|
|
2216
|
+
| components["schemas"]["FundTournamentOrder"]
|
|
2217
|
+
| components["schemas"]["DepositFirstOrder"];
|
|
2198
2218
|
/** @description Swap order request */
|
|
2199
2219
|
SwapOrderRequest: {
|
|
2200
2220
|
/**
|
|
@@ -2595,6 +2615,50 @@ export interface components {
|
|
|
2595
2615
|
*/
|
|
2596
2616
|
creatorAddress?: string;
|
|
2597
2617
|
};
|
|
2618
|
+
/** @description Deposit-first order request. The srcAmount is determined after deposit is detected, so it is not required at creation time. This flow does not support onramp - users deposit crypto directly. */
|
|
2619
|
+
DepositFirstOrderRequest: {
|
|
2620
|
+
/**
|
|
2621
|
+
* @description Order type for deposit-first flow
|
|
2622
|
+
* @enum {string}
|
|
2623
|
+
*/
|
|
2624
|
+
type: "deposit_first";
|
|
2625
|
+
/**
|
|
2626
|
+
* @description Address to receive the destination tokens after swap
|
|
2627
|
+
* @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
|
|
2628
|
+
*/
|
|
2629
|
+
recipientAddress: string;
|
|
2630
|
+
/**
|
|
2631
|
+
* @description Source chain ID where deposit will be made
|
|
2632
|
+
* @example 8453
|
|
2633
|
+
*/
|
|
2634
|
+
srcChain: number;
|
|
2635
|
+
/**
|
|
2636
|
+
* @description Destination chain ID for the swap
|
|
2637
|
+
* @example 8453
|
|
2638
|
+
*/
|
|
2639
|
+
dstChain: number;
|
|
2640
|
+
/**
|
|
2641
|
+
* @description Token contract address that will be deposited
|
|
2642
|
+
* @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
|
|
2643
|
+
*/
|
|
2644
|
+
srcTokenAddress: string;
|
|
2645
|
+
/**
|
|
2646
|
+
* @description Token contract address to receive after swap
|
|
2647
|
+
* @example 0x0000000000000000000000000000000000000000
|
|
2648
|
+
*/
|
|
2649
|
+
dstTokenAddress: string;
|
|
2650
|
+
payload: components["schemas"]["DepositFirstPayload"];
|
|
2651
|
+
metadata: components["schemas"]["DepositFirstMetadata"];
|
|
2652
|
+
/** @description Optional partner identifier */
|
|
2653
|
+
partnerId?: string;
|
|
2654
|
+
/** @description Optional client reference identifier for tracking purposes (alphanumeric, hyphens, and underscores only, max 255 chars) */
|
|
2655
|
+
clientReferenceId?: string;
|
|
2656
|
+
/**
|
|
2657
|
+
* @description Optional address of the order creator
|
|
2658
|
+
* @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
|
|
2659
|
+
*/
|
|
2660
|
+
creatorAddress?: string;
|
|
2661
|
+
};
|
|
2598
2662
|
OrderRequest:
|
|
2599
2663
|
| components["schemas"]["SwapOrderRequest"]
|
|
2600
2664
|
| components["schemas"]["X402SwapOrderRequest"]
|
|
@@ -2603,7 +2667,8 @@ export interface components {
|
|
|
2603
2667
|
| components["schemas"]["CustomExactInOrderRequest"]
|
|
2604
2668
|
| components["schemas"]["MintNftOrderRequest"]
|
|
2605
2669
|
| components["schemas"]["JoinTournamentOrderRequest"]
|
|
2606
|
-
| components["schemas"]["FundTournamentOrderRequest"]
|
|
2670
|
+
| components["schemas"]["FundTournamentOrderRequest"]
|
|
2671
|
+
| components["schemas"]["DepositFirstOrderRequest"];
|
|
2607
2672
|
/** @description Deposit transaction (payment from user) */
|
|
2608
2673
|
DepositTx: {
|
|
2609
2674
|
/**
|