@0xsquid/react-hooks 8.3.1-deposit-with-signature-beta.0 → 8.3.1

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.
Files changed (31) hide show
  1. package/dist/core/constants.d.ts +0 -1
  2. package/dist/core/index.d.ts +1 -1
  3. package/dist/core/types/transaction.d.ts +1 -19
  4. package/dist/hooks/transaction/useGetRoute.d.ts +7 -18
  5. package/dist/{index-U4eXO6Fb.js → index-CMrdTYeW.js} +295 -368
  6. package/dist/index-CMrdTYeW.js.map +1 -0
  7. package/dist/{index-BZZTlYsR.js → index-qAOvcSon.js} +294 -371
  8. package/dist/index-qAOvcSon.js.map +1 -0
  9. package/dist/{index.es-C01J_dI8.js → index.es-Cu_QQTg-.js} +2 -2
  10. package/dist/{index.es-C01J_dI8.js.map → index.es-Cu_QQTg-.js.map} +1 -1
  11. package/dist/{index.es-BlkvCguf.js → index.es-DRgOycmm.js} +2 -2
  12. package/dist/{index.es-BlkvCguf.js.map → index.es-DRgOycmm.js.map} +1 -1
  13. package/dist/index.esm.js +1 -1
  14. package/dist/index.js +1 -5
  15. package/dist/index.js.map +1 -1
  16. package/dist/{secretService-BjTB3Huu.js → secretService-B3sc6ibT.js} +2 -2
  17. package/dist/{secretService-BjTB3Huu.js.map → secretService-B3sc6ibT.js.map} +1 -1
  18. package/dist/{secretService-Br6MTZoE.js → secretService-B_-XWo1F.js} +2 -2
  19. package/dist/{secretService-Br6MTZoE.js.map → secretService-B_-XWo1F.js.map} +1 -1
  20. package/dist/services/index.d.ts +0 -1
  21. package/dist/services/internal/transactionService.d.ts +1 -14
  22. package/dist/{stellarService.client-B13x_2i7.js → stellarService.client-Ciqw9lmL.js} +6 -2
  23. package/dist/stellarService.client-Ciqw9lmL.js.map +1 -0
  24. package/dist/{stellarService.client-DeMvPQEY.js → stellarService.client-sRzC5VSD.js} +6 -2
  25. package/dist/stellarService.client-sRzC5VSD.js.map +1 -0
  26. package/package.json +3 -3
  27. package/dist/index-BZZTlYsR.js.map +0 -1
  28. package/dist/index-U4eXO6Fb.js.map +0 -1
  29. package/dist/services/internal/routeService.d.ts +0 -8
  30. package/dist/stellarService.client-B13x_2i7.js.map +0 -1
  31. package/dist/stellarService.client-DeMvPQEY.js.map +0 -1
@@ -28,7 +28,6 @@ export declare const gasRefundMultiplier = 25;
28
28
  export declare const internalSquidApiBaseUrl = "https://app.squidrouter.com/api";
29
29
  export declare const XAMAN_API_URL: string;
30
30
  export declare const TOKEN_PRICE_API_URL: string;
31
- export declare const DEFAULT_ROUTE_REFETCH_INTERVAL = 30000;
32
31
  export declare const SOLANA_RPC_URL = "https://meredith-ute2ko-fast-mainnet.helius-rpc.com";
33
32
  export declare const INTEGRATOR_ID = "squid-widget-playground-local-cd33cba6-7e12-4fcc-8d5d-35e286f655ea";
34
33
  export declare const DEFAULT_COUNTRY_CODE = "US";
@@ -1,4 +1,4 @@
1
- export { CHAIN_IDS, chainTypeToNativeTokenAddressMap, chainTypeToZeroAddressMap, DEFAULT_LOCALE, DEFAULT_ROUTE_REFETCH_INTERVAL, destinationAddressResetValue, fallbackAddressResetValue, nativeBitcoinTokenAddress, nativeCosmosTokenAddress, nativeEvmTokenAddress, nativeSolanaTokenAddress, nativeStellarTokenAddress, nativeSuiTokenAddress, nativeXrplTokenAddress, } from "./constants";
1
+ export { CHAIN_IDS, chainTypeToNativeTokenAddressMap, chainTypeToZeroAddressMap, DEFAULT_LOCALE, destinationAddressResetValue, fallbackAddressResetValue, nativeBitcoinTokenAddress, nativeCosmosTokenAddress, nativeEvmTokenAddress, nativeSolanaTokenAddress, nativeStellarTokenAddress, nativeSuiTokenAddress, nativeXrplTokenAddress, } from "./constants";
2
2
  export { CosmosProvider, useCosmosContext } from "./providers/CosmosProvider";
3
3
  export { QueryKeys } from "./queries/queries-keys";
4
4
  export * from "./types";
@@ -46,24 +46,11 @@ export interface TransactionParams {
46
46
  fromChain?: ChainData;
47
47
  toChain?: ChainData;
48
48
  nonce?: number;
49
- /**
50
- * Some transactions require a special transactionId instead of the source tx hash
51
- * to be passed to the status endpoint (i.e Chainflip transactions)
52
- */
53
49
  transactionIdForStatus?: string;
54
50
  transactionId: string | undefined;
55
- /**
56
- * quoteId is used to correlate /route and /status requests
57
- */
58
51
  quoteId: string;
59
52
  timestamp?: number;
60
- /**
61
- * The source chain transaction status
62
- */
63
53
  sourceStatus?: TransactionStatus;
64
- /**
65
- * Cross-chain transaction Status
66
- */
67
54
  status: TransactionStatus;
68
55
  error?: TransactionErrorWithMessage;
69
56
  fromAddress?: string;
@@ -71,11 +58,6 @@ export interface TransactionParams {
71
58
  axelarUrl?: string;
72
59
  sourceTxExplorerUrl?: string;
73
60
  sourceExplorerImgUrl?: string;
74
- /**
75
- * User signature, sent to Status API for deposit verification
76
- * Only used for deposit-with-signature routes
77
- */
78
- depositTxVerificationSignature?: string;
79
61
  }
80
62
  export type SwapTransactionForHistoryStore = TransactionParams & Pick<RouteResponse["route"], "params" | "estimate">;
81
63
  export interface StepStatusGetterProps {
@@ -87,7 +69,7 @@ export interface PatchedRouteActionResponse extends Omit<RouteActionResponse, "d
87
69
  data?: RouteActionResponse["data"];
88
70
  coralV2Order?: Record<string, never>;
89
71
  }
90
- export type SwapTransactionForStatus = Pick<SwapTransactionHistory, "fromChain" | "transactionId" | "toChain" | "status" | "fromAddress" | "bridgeType" | "transactionIdForStatus" | "actions" | "quoteId"> & Pick<TransactionParams, "depositTxVerificationSignature">;
72
+ export type SwapTransactionForStatus = Pick<SwapTransactionHistory, "fromChain" | "transactionId" | "toChain" | "status" | "fromAddress" | "bridgeType" | "transactionIdForStatus" | "actions" | "quoteId">;
91
73
  export type SimplifiedRouteAction = Pick<PatchedRouteActionResponse, "type" | "provider"> & {
92
74
  data?: any;
93
75
  isCoralV2?: boolean;
@@ -1,6 +1,4 @@
1
- import { RouteResponse } from "@0xsquid/sdk/dist/types";
2
1
  import { ChainType, Token } from "@0xsquid/squid-types";
3
- import { QueryObserverOptions } from "@tanstack/react-query";
4
2
  import type { AppConfig } from "../../core/types/config";
5
3
  import { RouteRequest } from "../../core/types/route";
6
4
  export declare const useGetRoute: () => import("@tanstack/react-query").UseMutationResult<{
@@ -23,22 +21,13 @@ export declare const useGetRoute: () => import("@tanstack/react-query").UseMutat
23
21
  postHook: AppConfig["postHook"];
24
22
  overrideGasRefundAddress: AppConfig["overrideGasRefundAddress"];
25
23
  }, unknown>;
26
- export declare const useGetRouteWrapper: ({ enabled, cacheTime, staleTime, refetchOnWindowFocus, refetchIntervalInBackground, refetchInterval, quoteOnly, }: Pick<QueryObserverOptions<{
27
- estimate: import("@0xsquid/squid-types").Estimate;
28
- transactionRequest?: import("@0xsquid/squid-types").SquidData | undefined;
29
- params: import("@0xsquid/squid-types").RouteRequest;
30
- quoteId: string;
31
- } | undefined, unknown, {
32
- estimate: import("@0xsquid/squid-types").Estimate;
33
- transactionRequest?: import("@0xsquid/squid-types").SquidData | undefined;
34
- params: import("@0xsquid/squid-types").RouteRequest;
35
- quoteId: string;
36
- } | undefined, {
37
- estimate: import("@0xsquid/squid-types").Estimate;
38
- transactionRequest?: import("@0xsquid/squid-types").SquidData | undefined;
39
- params: import("@0xsquid/squid-types").RouteRequest;
40
- quoteId: string;
41
- } | undefined, import("@tanstack/react-query").QueryKey>, "cacheTime" | "enabled" | "staleTime" | "refetchInterval" | "refetchIntervalInBackground" | "refetchOnWindowFocus"> & {
24
+ export declare const useGetRouteWrapper: ({ enabled, cacheTime, staleTime, refetchOnWindowFocus, refetchIntervalInBackground, refetchInterval, quoteOnly, }: {
25
+ enabled?: boolean | undefined;
26
+ cacheTime?: number | undefined;
27
+ staleTime?: number | undefined;
28
+ refetchOnWindowFocus?: any;
29
+ refetchIntervalInBackground?: boolean | undefined;
30
+ refetchInterval?: number | false | undefined;
42
31
  quoteOnly?: boolean | undefined;
43
32
  }) => {
44
33
  squidRoute: import("@tanstack/react-query").UseQueryResult<{