@0xsquid/react-hooks 8.4.1-beta-tempo.0 → 8.5.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/core/constants.d.ts +0 -3
- package/dist/core/queries/queries-keys.d.ts +1 -1
- package/dist/core/types/config.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/transaction/send/useEstimateSendTransactionGas.d.ts +2 -6
- package/dist/hooks/transaction/useAllTransactionsStatus.d.ts +1 -0
- package/dist/hooks/transaction/useEstimate.d.ts +11 -5
- package/dist/hooks/user/useUserParams.d.ts +4 -0
- package/dist/{index-CaI-xWCW.js → index-5cyMUZhY.js} +1205 -1349
- package/dist/index-5cyMUZhY.js.map +1 -0
- package/dist/{index-B4aeecpP.js → index-BGVXRZI6.js} +1208 -1351
- package/dist/index-BGVXRZI6.js.map +1 -0
- package/dist/{index.es-BXf9jwuI.js → index.es-BfdAGErV.js} +3 -3
- package/dist/{index.es-BXf9jwuI.js.map → index.es-BfdAGErV.js.map} +1 -1
- package/dist/{index.es-DAfqL2H0.js → index.es-CeHwkxPw.js} +3 -3
- package/dist/{index.es-DAfqL2H0.js.map → index.es-CeHwkxPw.js.map} +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/{secretService-CIYxEkTN.js → secretService-BMYOBXhv.js} +3 -3
- package/dist/{secretService-CIYxEkTN.js.map → secretService-BMYOBXhv.js.map} +1 -1
- package/dist/{secretService-Cld4gYfG.js → secretService-D_d3CFdp.js} +3 -3
- package/dist/{secretService-Cld4gYfG.js.map → secretService-D_d3CFdp.js.map} +1 -1
- package/dist/services/internal/assetsService.d.ts +2 -2
- package/dist/services/internal/estimateService.d.ts +27 -13
- package/dist/services/internal/transactionService.d.ts +0 -7
- package/dist/{stellarService.client-COeQeah_.js → stellarService.client-CIkvwxPo.js} +3 -3
- package/dist/{stellarService.client-COeQeah_.js.map → stellarService.client-CIkvwxPo.js.map} +1 -1
- package/dist/{stellarService.client-ocLzRIB4.js → stellarService.client-DOrCdvCd.js} +3 -3
- package/dist/{stellarService.client-ocLzRIB4.js.map → stellarService.client-DOrCdvCd.js.map} +1 -1
- package/package.json +3 -3
- package/dist/hooks/tokens/useSourceChainGasToken.d.ts +0 -11
- package/dist/hooks/transaction/useTempoFeeCheck.d.ts +0 -11
- package/dist/index-B4aeecpP.js.map +0 -1
- package/dist/index-CaI-xWCW.js.map +0 -1
- package/dist/services/internal/tempoService.d.ts +0 -82
- package/dist/tests/networkGasToken.test.d.ts +0 -1
- package/dist/tests/tempoService.test.d.ts +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RouteResponse } from "@0xsquid/sdk/dist/types";
|
|
2
2
|
import { ChainData, ChainType, FeeCost, GasCost, Token } from "@0xsquid/squid-types";
|
|
3
3
|
import { SimplifiedRouteAction } from "../../core/types/transaction";
|
|
4
|
-
import { ChainFeeParams, TempoFeeData } from "./tempoService";
|
|
5
4
|
export type PartialFeeCost = Pick<FeeCost, "amount"> & {
|
|
6
5
|
token?: Pick<FeeCost["token"], "decimals">;
|
|
7
6
|
};
|
|
@@ -20,15 +19,19 @@ export declare const calculateTotalNativeFees: ({ expressFeeCost, firstFeeCost,
|
|
|
20
19
|
firstGasCost: Pick<GasCost, "amount"> | undefined;
|
|
21
20
|
sameTokenBetweenFees: boolean;
|
|
22
21
|
}) => bigint;
|
|
23
|
-
export declare const
|
|
22
|
+
export declare const isFromBalanceEnoughToSwap: ({ isFromTokenNative, fromAmount, totalFeesInNativeTokenPlusRatio, nativeTokenBalanceFromChainWei, }: {
|
|
23
|
+
isFromTokenNative: boolean;
|
|
24
24
|
fromAmount: string | undefined;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
fromTokenDecimals: number | undefined;
|
|
26
|
+
totalFeesInNativeTokenPlusRatio: bigint;
|
|
27
|
+
nativeTokenBalanceFromChainWei: bigint;
|
|
27
28
|
}) => boolean;
|
|
28
|
-
export declare const calculateMinAmountValueWarnMsg: ({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
export declare const calculateMinAmountValueWarnMsg: ({ isFromTokenNative, nativeTokenBalanceFromChainWei, sourceChainNativeTokenDecimals, totalFeesInNativeTokenPlusRatio, }: {
|
|
30
|
+
isFromTokenNative: boolean;
|
|
31
|
+
nativeTokenBalanceFromChainWei: bigint;
|
|
32
|
+
sourceChainNativeTokenDecimals: number | undefined;
|
|
33
|
+
totalFeesInNativeTokenPlusRatio: bigint;
|
|
34
|
+
}) => string | undefined;
|
|
32
35
|
/**
|
|
33
36
|
* Calculates the estimated duration of a route
|
|
34
37
|
*
|
|
@@ -57,18 +60,19 @@ export declare const formatEstimatedRouteDuration: ({ estimatedRouteDuration, is
|
|
|
57
60
|
* @returns {Object} An object containing various estimate results and calculations, including token information,
|
|
58
61
|
* amounts, fees, gas costs, and other relevant data for the transaction.
|
|
59
62
|
*/
|
|
60
|
-
export declare const calculateEstimateResults: ({ squidRoute, tokens, fromChain, toChain, collectFees, nativeTokenBalanceFromChainWei,
|
|
63
|
+
export declare const calculateEstimateResults: ({ squidRoute, tokens, fromChain, toChain, collectFees, nativeTokenBalanceFromChainWei, }: {
|
|
61
64
|
squidRoute: RouteResponse["route"] | undefined;
|
|
62
65
|
tokens: Token[];
|
|
63
66
|
fromChain?: ChainData | undefined;
|
|
64
67
|
toChain?: ChainData | undefined;
|
|
65
68
|
collectFees: boolean;
|
|
66
69
|
nativeTokenBalanceFromChainWei: bigint;
|
|
67
|
-
tempoFeeData?: TempoFeeData | undefined;
|
|
68
70
|
}) => {
|
|
69
|
-
fromToken:
|
|
71
|
+
fromToken: any;
|
|
70
72
|
fromAmount: string | undefined;
|
|
71
73
|
fromAmountFormatted: string;
|
|
74
|
+
sourceChainNativeToken: Token | undefined;
|
|
75
|
+
destChainNativeToken: Token | undefined;
|
|
72
76
|
toAmountUSD: string | undefined;
|
|
73
77
|
exchangeRate: string;
|
|
74
78
|
toAmountMinUSD: string;
|
|
@@ -83,10 +87,10 @@ export declare const calculateEstimateResults: ({ squidRoute, tokens, fromChain,
|
|
|
83
87
|
expectedGasRefundCost: bigint;
|
|
84
88
|
expectedGasRefundCostUSD: string;
|
|
85
89
|
sameTokenBetweenFees: boolean;
|
|
86
|
-
|
|
90
|
+
isFromTokenNative: boolean;
|
|
87
91
|
totalNativeFees: bigint;
|
|
88
92
|
totalFeesInNativeTokenPlusRatio: bigint;
|
|
89
|
-
|
|
93
|
+
fromBalanceEnoughToSwap: boolean;
|
|
90
94
|
minAmountValueWarnMsg: string | undefined;
|
|
91
95
|
estimatedRouteDuration: {
|
|
92
96
|
seconds: number;
|
|
@@ -106,3 +110,13 @@ export declare const calculateTotalWithRefundEstimate: (allFeeCosts: FeeCost[] |
|
|
|
106
110
|
totalAmountUSD: number;
|
|
107
111
|
feeToken: Token | undefined;
|
|
108
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* Calculates the proposed gas amount for the destination chain.
|
|
115
|
+
*
|
|
116
|
+
* @param destChainNativeToken - The symbol of the native token for the destination chain.
|
|
117
|
+
* @returns An object containing the proposed gas amount value and the currency symbol.
|
|
118
|
+
*/
|
|
119
|
+
export declare const getProposedGasDestinationAmount: (destChainNativeToken: string | undefined) => {
|
|
120
|
+
value: number;
|
|
121
|
+
currency: string | undefined;
|
|
122
|
+
};
|
|
@@ -44,12 +44,5 @@ export declare function isChainflipBridgeTransaction(actions?: SimplifiedRouteAc
|
|
|
44
44
|
* On-chain routes require calling a smart contract to execute
|
|
45
45
|
*/
|
|
46
46
|
export declare function isOnChainTxData(squidData: SquidData): squidData is OnChainExecutionData;
|
|
47
|
-
/**
|
|
48
|
-
* Checks if a route is of type deposit-with-signature
|
|
49
|
-
*
|
|
50
|
-
* deposit-with-signature routes are on-chain routes
|
|
51
|
-
* that require a signature from the user to execute
|
|
52
|
-
*/
|
|
53
|
-
export declare function isDepositWithSignatureTxData(squidData: SquidData): squidData is OnChainExecutionData;
|
|
54
47
|
export declare function getHistoryTransactionId(tx: HistoryTransaction): string;
|
|
55
48
|
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var squidTypes = require('@0xsquid/squid-types');
|
|
4
4
|
var stellarWalletsKit = require('@creit.tech/stellar-wallets-kit');
|
|
5
5
|
var ledger_module = require('@creit.tech/stellar-wallets-kit/modules/ledger.module');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-5cyMUZhY.js');
|
|
7
7
|
require('viem');
|
|
8
8
|
require('react');
|
|
9
9
|
require('@tanstack/react-query');
|
|
@@ -30,9 +30,9 @@ require('wagmi');
|
|
|
30
30
|
require('@safe-global/safe-apps-sdk');
|
|
31
31
|
require('@wallet-standard/core');
|
|
32
32
|
require('@mysten/slush-wallet');
|
|
33
|
+
require('wagmi/connectors');
|
|
33
34
|
require('@cosmjs/stargate');
|
|
34
35
|
require('@mysten/sui/client');
|
|
35
|
-
require('wagmi/connectors');
|
|
36
36
|
require('@cosmjs/proto-signing');
|
|
37
37
|
require('@mysten/sui/transactions');
|
|
38
38
|
require('@cosmjs/cosmwasm-stargate');
|
|
@@ -98,4 +98,4 @@ function formatStellarWallet(connector, isAvailable) {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
exports.formatStellarWallet = formatStellarWallet;
|
|
101
|
-
//# sourceMappingURL=stellarService.client-
|
|
101
|
+
//# sourceMappingURL=stellarService.client-CIkvwxPo.js.map
|
package/dist/{stellarService.client-COeQeah_.js.map → stellarService.client-CIkvwxPo.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stellarService.client-
|
|
1
|
+
{"version":3,"file":"stellarService.client-CIkvwxPo.js","sources":["../src/services/internal/stellarService.client.ts"],"sourcesContent":["import { ChainType } from \"@0xsquid/squid-types\";\nimport {\n ALBEDO_ID,\n FREIGHTER_ID,\n HANA_ID,\n HOTWALLET_ID,\n LOBSTR_ID,\n RABET_ID,\n XBULL_ID,\n} from \"@creit.tech/stellar-wallets-kit\";\nimport { LEDGER_ID } from \"@creit.tech/stellar-wallets-kit/modules/ledger.module\";\nimport { StellarConnector } from \"../../core/types/stellar\";\nimport {\n ConnectorID,\n StellarWallet,\n WindowWalletFlag,\n} from \"../../core/types/wallet\";\nimport { walletIconBaseUrl } from \"../../core/wallets\";\nimport { definedInWindow } from \"./walletService\";\n\ntype WalletOverride = Partial<\n Pick<\n StellarWallet,\n \"icon\" | \"windowFlag\" | \"skipInstallCheck\" | \"isInstalled\" | \"connectorId\"\n >\n>;\n\nconst walletOverrides: Partial<Record<string, WalletOverride>> = {\n [ALBEDO_ID]: {\n icon: `${walletIconBaseUrl}/albedo.webp`,\n isInstalled: () => false,\n skipInstallCheck: true,\n connectorId: \"albedo\",\n },\n [HOTWALLET_ID]: {\n icon: `${walletIconBaseUrl}/hot.webp`,\n windowFlag: WindowWalletFlag.HotWallet,\n skipInstallCheck: true,\n connectorId: \"hotWallet\",\n },\n [RABET_ID]: {\n icon: `${walletIconBaseUrl}/rabet.webp`,\n },\n [LEDGER_ID]: {\n icon: `${walletIconBaseUrl}/ledger_stellar_snap.webp`,\n },\n [XBULL_ID]: {\n icon: `${walletIconBaseUrl}/xbull.webp`,\n windowFlag: WindowWalletFlag.XBull,\n skipInstallCheck: true,\n connectorId: \"xBull\",\n },\n [FREIGHTER_ID]: {\n connectorId: \"freighter\",\n },\n [LOBSTR_ID]: {\n connectorId: \"lobstr\",\n },\n [HANA_ID]: {\n connectorId: \"hanaWallet\",\n },\n};\n\nexport function formatStellarWallet(\n connector: StellarConnector,\n isAvailable: boolean\n): StellarWallet {\n const { productName, productId, productIcon, productUrl } = connector;\n\n const overrides = walletOverrides[productId];\n const icon = overrides?.icon || productIcon;\n const connectorId = overrides?.connectorId || (productId as ConnectorID);\n\n return {\n connectorId,\n name: productName,\n connectorName: productName,\n type: ChainType.STELLAR,\n icon,\n windowFlag: productName as WindowWalletFlag,\n isMobile: false,\n isInstalled: overrides?.windowFlag\n ? () => definedInWindow(overrides.windowFlag, window)\n : overrides?.isInstalled || (() => isAvailable),\n skipInstallCheck: overrides?.skipInstallCheck,\n connector,\n url: productUrl,\n };\n}\n"],"names":["ALBEDO_ID","walletIconBaseUrl","HOTWALLET_ID","WindowWalletFlag","RABET_ID","LEDGER_ID","XBULL_ID","FREIGHTER_ID","LOBSTR_ID","HANA_ID","ChainType","definedInWindow"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAM,eAAe,GAA4C;IAC/D,CAACA,2BAAS,GAAG;QACX,IAAI,EAAE,CAAG,EAAAC,uBAAiB,CAAc,YAAA,CAAA;AACxC,QAAA,WAAW,EAAE,MAAM,KAAK;AACxB,QAAA,gBAAgB,EAAE,IAAI;AACtB,QAAA,WAAW,EAAE,QAAQ;AACtB,KAAA;IACD,CAACC,8BAAY,GAAG;QACd,IAAI,EAAE,CAAG,EAAAD,uBAAiB,CAAW,SAAA,CAAA;QACrC,UAAU,EAAEE,sBAAgB,CAAC,SAAS;AACtC,QAAA,gBAAgB,EAAE,IAAI;AACtB,QAAA,WAAW,EAAE,WAAW;AACzB,KAAA;IACD,CAACC,0BAAQ,GAAG;QACV,IAAI,EAAE,CAAG,EAAAH,uBAAiB,CAAa,WAAA,CAAA;AACxC,KAAA;IACD,CAACI,uBAAS,GAAG;QACX,IAAI,EAAE,CAAG,EAAAJ,uBAAiB,CAA2B,yBAAA,CAAA;AACtD,KAAA;IACD,CAACK,0BAAQ,GAAG;QACV,IAAI,EAAE,CAAG,EAAAL,uBAAiB,CAAa,WAAA,CAAA;QACvC,UAAU,EAAEE,sBAAgB,CAAC,KAAK;AAClC,QAAA,gBAAgB,EAAE,IAAI;AACtB,QAAA,WAAW,EAAE,OAAO;AACrB,KAAA;IACD,CAACI,8BAAY,GAAG;AACd,QAAA,WAAW,EAAE,WAAW;AACzB,KAAA;IACD,CAACC,2BAAS,GAAG;AACX,QAAA,WAAW,EAAE,QAAQ;AACtB,KAAA;IACD,CAACC,yBAAO,GAAG;AACT,QAAA,WAAW,EAAE,YAAY;AAC1B,KAAA;CACF;AAEe,SAAA,mBAAmB,CACjC,SAA2B,EAC3B,WAAoB,EAAA;IAEpB,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,SAAS;AAErE,IAAA,MAAM,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC;AAC5C,IAAA,MAAM,IAAI,GAAG,SAAS,EAAE,IAAI,IAAI,WAAW;AAC3C,IAAA,MAAM,WAAW,GAAG,SAAS,EAAE,WAAW,IAAK,SAAyB;IAExE,OAAO;QACL,WAAW;AACX,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,aAAa,EAAE,WAAW;QAC1B,IAAI,EAAEC,oBAAS,CAAC,OAAO;QACvB,IAAI;AACJ,QAAA,UAAU,EAAE,WAA+B;AAC3C,QAAA,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,SAAS,EAAE;cACpB,MAAMC,qBAAe,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM;cAClD,SAAS,EAAE,WAAW,KAAK,MAAM,WAAW,CAAC;QACjD,gBAAgB,EAAE,SAAS,EAAE,gBAAgB;QAC7C,SAAS;AACT,QAAA,GAAG,EAAE,UAAU;KAChB;AACH;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChainType } from '@0xsquid/squid-types';
|
|
2
2
|
import { HANA_ID, LOBSTR_ID, FREIGHTER_ID, XBULL_ID, RABET_ID, HOTWALLET_ID, ALBEDO_ID } from '@creit.tech/stellar-wallets-kit';
|
|
3
3
|
import { LEDGER_ID } from '@creit.tech/stellar-wallets-kit/modules/ledger.module';
|
|
4
|
-
import { a as WindowWalletFlag, w as walletIconBaseUrl, d as definedInWindow } from './index-
|
|
4
|
+
import { a as WindowWalletFlag, w as walletIconBaseUrl, d as definedInWindow } from './index-BGVXRZI6.js';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '@tanstack/react-query';
|
|
@@ -28,9 +28,9 @@ import 'wagmi';
|
|
|
28
28
|
import '@safe-global/safe-apps-sdk';
|
|
29
29
|
import '@wallet-standard/core';
|
|
30
30
|
import '@mysten/slush-wallet';
|
|
31
|
+
import 'wagmi/connectors';
|
|
31
32
|
import '@cosmjs/stargate';
|
|
32
33
|
import '@mysten/sui/client';
|
|
33
|
-
import 'wagmi/connectors';
|
|
34
34
|
import '@cosmjs/proto-signing';
|
|
35
35
|
import '@mysten/sui/transactions';
|
|
36
36
|
import '@cosmjs/cosmwasm-stargate';
|
|
@@ -96,4 +96,4 @@ function formatStellarWallet(connector, isAvailable) {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
export { formatStellarWallet };
|
|
99
|
-
//# sourceMappingURL=stellarService.client-
|
|
99
|
+
//# sourceMappingURL=stellarService.client-DOrCdvCd.js.map
|
package/dist/{stellarService.client-ocLzRIB4.js.map → stellarService.client-DOrCdvCd.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stellarService.client-
|
|
1
|
+
{"version":3,"file":"stellarService.client-DOrCdvCd.js","sources":["../src/services/internal/stellarService.client.ts"],"sourcesContent":["import { ChainType } from \"@0xsquid/squid-types\";\nimport {\n ALBEDO_ID,\n FREIGHTER_ID,\n HANA_ID,\n HOTWALLET_ID,\n LOBSTR_ID,\n RABET_ID,\n XBULL_ID,\n} from \"@creit.tech/stellar-wallets-kit\";\nimport { LEDGER_ID } from \"@creit.tech/stellar-wallets-kit/modules/ledger.module\";\nimport { StellarConnector } from \"../../core/types/stellar\";\nimport {\n ConnectorID,\n StellarWallet,\n WindowWalletFlag,\n} from \"../../core/types/wallet\";\nimport { walletIconBaseUrl } from \"../../core/wallets\";\nimport { definedInWindow } from \"./walletService\";\n\ntype WalletOverride = Partial<\n Pick<\n StellarWallet,\n \"icon\" | \"windowFlag\" | \"skipInstallCheck\" | \"isInstalled\" | \"connectorId\"\n >\n>;\n\nconst walletOverrides: Partial<Record<string, WalletOverride>> = {\n [ALBEDO_ID]: {\n icon: `${walletIconBaseUrl}/albedo.webp`,\n isInstalled: () => false,\n skipInstallCheck: true,\n connectorId: \"albedo\",\n },\n [HOTWALLET_ID]: {\n icon: `${walletIconBaseUrl}/hot.webp`,\n windowFlag: WindowWalletFlag.HotWallet,\n skipInstallCheck: true,\n connectorId: \"hotWallet\",\n },\n [RABET_ID]: {\n icon: `${walletIconBaseUrl}/rabet.webp`,\n },\n [LEDGER_ID]: {\n icon: `${walletIconBaseUrl}/ledger_stellar_snap.webp`,\n },\n [XBULL_ID]: {\n icon: `${walletIconBaseUrl}/xbull.webp`,\n windowFlag: WindowWalletFlag.XBull,\n skipInstallCheck: true,\n connectorId: \"xBull\",\n },\n [FREIGHTER_ID]: {\n connectorId: \"freighter\",\n },\n [LOBSTR_ID]: {\n connectorId: \"lobstr\",\n },\n [HANA_ID]: {\n connectorId: \"hanaWallet\",\n },\n};\n\nexport function formatStellarWallet(\n connector: StellarConnector,\n isAvailable: boolean\n): StellarWallet {\n const { productName, productId, productIcon, productUrl } = connector;\n\n const overrides = walletOverrides[productId];\n const icon = overrides?.icon || productIcon;\n const connectorId = overrides?.connectorId || (productId as ConnectorID);\n\n return {\n connectorId,\n name: productName,\n connectorName: productName,\n type: ChainType.STELLAR,\n icon,\n windowFlag: productName as WindowWalletFlag,\n isMobile: false,\n isInstalled: overrides?.windowFlag\n ? () => definedInWindow(overrides.windowFlag, window)\n : overrides?.isInstalled || (() => isAvailable),\n skipInstallCheck: overrides?.skipInstallCheck,\n connector,\n url: productUrl,\n };\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAM,eAAe,GAA4C;IAC/D,CAAC,SAAS,GAAG;QACX,IAAI,EAAE,CAAG,EAAA,iBAAiB,CAAc,YAAA,CAAA;AACxC,QAAA,WAAW,EAAE,MAAM,KAAK;AACxB,QAAA,gBAAgB,EAAE,IAAI;AACtB,QAAA,WAAW,EAAE,QAAQ;AACtB,KAAA;IACD,CAAC,YAAY,GAAG;QACd,IAAI,EAAE,CAAG,EAAA,iBAAiB,CAAW,SAAA,CAAA;QACrC,UAAU,EAAE,gBAAgB,CAAC,SAAS;AACtC,QAAA,gBAAgB,EAAE,IAAI;AACtB,QAAA,WAAW,EAAE,WAAW;AACzB,KAAA;IACD,CAAC,QAAQ,GAAG;QACV,IAAI,EAAE,CAAG,EAAA,iBAAiB,CAAa,WAAA,CAAA;AACxC,KAAA;IACD,CAAC,SAAS,GAAG;QACX,IAAI,EAAE,CAAG,EAAA,iBAAiB,CAA2B,yBAAA,CAAA;AACtD,KAAA;IACD,CAAC,QAAQ,GAAG;QACV,IAAI,EAAE,CAAG,EAAA,iBAAiB,CAAa,WAAA,CAAA;QACvC,UAAU,EAAE,gBAAgB,CAAC,KAAK;AAClC,QAAA,gBAAgB,EAAE,IAAI;AACtB,QAAA,WAAW,EAAE,OAAO;AACrB,KAAA;IACD,CAAC,YAAY,GAAG;AACd,QAAA,WAAW,EAAE,WAAW;AACzB,KAAA;IACD,CAAC,SAAS,GAAG;AACX,QAAA,WAAW,EAAE,QAAQ;AACtB,KAAA;IACD,CAAC,OAAO,GAAG;AACT,QAAA,WAAW,EAAE,YAAY;AAC1B,KAAA;CACF;AAEe,SAAA,mBAAmB,CACjC,SAA2B,EAC3B,WAAoB,EAAA;IAEpB,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,SAAS;AAErE,IAAA,MAAM,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC;AAC5C,IAAA,MAAM,IAAI,GAAG,SAAS,EAAE,IAAI,IAAI,WAAW;AAC3C,IAAA,MAAM,WAAW,GAAG,SAAS,EAAE,WAAW,IAAK,SAAyB;IAExE,OAAO;QACL,WAAW;AACX,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,aAAa,EAAE,WAAW;QAC1B,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,IAAI;AACJ,QAAA,UAAU,EAAE,WAA+B;AAC3C,QAAA,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,SAAS,EAAE;cACpB,MAAM,eAAe,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM;cAClD,SAAS,EAAE,WAAW,KAAK,MAAM,WAAW,CAAC;QACjD,gBAAgB,EAAE,SAAS,EAAE,gBAAgB;QAC7C,SAAS;AACT,QAAA,GAAG,EAAE,UAAU;KAChB;AACH;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsquid/react-hooks",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"description": "Squid hooks monorepo",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"packlib": "rm -f squid-hooks-lib-*.tgz && yarn build && yarn pack --filename squid-hooks-lib-$(date +%s).tgz"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@0xsquid/sdk": "2.
|
|
38
|
-
"@0xsquid/squid-types": "0.1.
|
|
37
|
+
"@0xsquid/sdk": "2.13.0",
|
|
38
|
+
"@0xsquid/squid-types": "0.1.216",
|
|
39
39
|
"@bitcoinerlab/secp256k1": "1.1.1",
|
|
40
40
|
"@cosmjs/cosmwasm-stargate": "0.32.4",
|
|
41
41
|
"@cosmjs/encoding": "0.32.4",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChainData } from "@0xsquid/squid-types";
|
|
2
|
-
import { Token } from "../../core";
|
|
3
|
-
/**
|
|
4
|
-
* Resolves the token that pays network gas fees for a given chain
|
|
5
|
-
*/
|
|
6
|
-
export declare function useSourceChainGasToken({ fromChain, fromToken, }: {
|
|
7
|
-
fromChain: ChainData | undefined;
|
|
8
|
-
fromToken: Token | undefined;
|
|
9
|
-
}): {
|
|
10
|
-
gasToken: Token | undefined;
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChainData } from "@0xsquid/squid-types";
|
|
2
|
-
import { Token } from "../../core/types";
|
|
3
|
-
import { TempoFeeData } from "../../services/internal/tempoService";
|
|
4
|
-
/**
|
|
5
|
-
* Returns raw on-chain gas token data for Tempo chains, or null when the source
|
|
6
|
-
* chain is not Tempo.
|
|
7
|
-
*/
|
|
8
|
-
export declare const useTempoFeeCheck: ({ fromChain, fromToken, }: {
|
|
9
|
-
fromChain: ChainData | undefined;
|
|
10
|
-
fromToken: Token | undefined;
|
|
11
|
-
}) => TempoFeeData | null;
|