@b3dotfun/sdk 0.1.70-alpha.7 → 0.1.70-alpha.9
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/package.json
CHANGED
|
@@ -26,20 +26,20 @@ export function useAnyspendQuote(req: GetQuoteRequest): UseAnyspendQuoteResult {
|
|
|
26
26
|
},
|
|
27
27
|
enabled: Boolean(
|
|
28
28
|
req.srcChain &&
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
req.dstChain &&
|
|
30
|
+
req.srcTokenAddress &&
|
|
31
|
+
req.dstTokenAddress &&
|
|
32
|
+
BigInt(
|
|
33
|
+
req.type === "swap" || req.type === "hype_duel" || req.type === "x402_swap" || req.type === "custom_exact_in"
|
|
34
|
+
? req.amount
|
|
35
|
+
: req.type === "mint_nft"
|
|
36
|
+
? req.price
|
|
37
|
+
: req.type === "join_tournament"
|
|
36
38
|
? req.price
|
|
37
|
-
: req.type === "
|
|
38
|
-
? req.
|
|
39
|
-
: req.
|
|
40
|
-
|
|
41
|
-
: req.payload.amount,
|
|
42
|
-
) !== BigInt(0),
|
|
39
|
+
: req.type === "fund_tournament"
|
|
40
|
+
? req.fundAmount
|
|
41
|
+
: req.payload.amount,
|
|
42
|
+
) !== BigInt(0),
|
|
43
43
|
),
|
|
44
44
|
refetchInterval: 10000,
|
|
45
45
|
retry: false,
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { paths } from "./api";
|
|
2
2
|
|
|
3
|
-
export type GetOrderAndTxsResponse =
|
|
3
|
+
export type GetOrderAndTxsResponse =
|
|
4
|
+
paths["/orders/{orderId}"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
4
5
|
export type GetQuoteRequest = paths["/orders/quote"]["post"]["requestBody"]["content"]["application/json"];
|
|
5
6
|
export type GetQuoteResponse = paths["/orders/quote"]["post"]["responses"]["200"]["content"]["application/json"];
|
|
6
7
|
|
|
7
|
-
export type GetCoinbaseOnrampOptionsResponse =
|
|
8
|
+
export type GetCoinbaseOnrampOptionsResponse =
|
|
9
|
+
paths["/onramp/coinbase/options"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
8
10
|
export type GetOrderHistoryResponse = paths["/orders"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
9
|
-
export type GetTokenListResponse =
|
|
11
|
+
export type GetTokenListResponse =
|
|
12
|
+
paths["/chains/{chainId}/tokens"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
10
13
|
export type CreateOrderResponse = paths["/orders"]["post"]["responses"]["200"]["content"]["application/json"];
|
|
11
|
-
export type GetStripeSupportedResponse =
|
|
12
|
-
|
|
14
|
+
export type GetStripeSupportedResponse =
|
|
15
|
+
paths["/onramp/stripe/supported"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
16
|
+
export type GetStripeClientSecret =
|
|
17
|
+
paths["/stripe/clientSecret"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
@@ -32,8 +32,7 @@ const buttonVariants = cva(
|
|
|
32
32
|
);
|
|
33
33
|
|
|
34
34
|
export interface ButtonProps
|
|
35
|
-
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
36
|
-
VariantProps<typeof buttonVariants> {
|
|
35
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
37
36
|
asChild?: boolean;
|
|
38
37
|
}
|
|
39
38
|
|