@0xsquid/react-hooks 8.5.1-beta-stellar-tempo.0 → 8.6.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/externalLinks.d.ts +1 -1
- package/dist/core/queries/queries-keys.d.ts +1 -1
- package/dist/core/types/config.d.ts +10 -2
- package/dist/core/types/event.d.ts +4 -0
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/swap/useUrlSwapParams.d.ts +10 -0
- package/dist/hooks/transaction/send/useEstimateSendTransactionGas.d.ts +2 -10
- package/dist/hooks/transaction/useEstimate.d.ts +12 -7
- package/dist/hooks/user/useUserParams.d.ts +4 -0
- package/dist/{index-BSX11dad.js → index-BvAot66c.js} +317 -298
- package/dist/index-BvAot66c.js.map +1 -0
- package/dist/{index-XR8ODWxH.js → index-Ck3Byj7H.js} +313 -298
- package/dist/index-Ck3Byj7H.js.map +1 -0
- package/dist/{index.es-CczeKjuj.js → index.es-83oSJcJe.js} +2 -2
- package/dist/{index.es-CczeKjuj.js.map → index.es-83oSJcJe.js.map} +1 -1
- package/dist/{index.es-CkrP1GZJ.js → index.es-C_BgGjLx.js} +2 -2
- package/dist/{index.es-CkrP1GZJ.js.map → index.es-C_BgGjLx.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/{secretService-ChCrHmS3.js → secretService-Cj_HK_on.js} +2 -2
- package/dist/{secretService-ChCrHmS3.js.map → secretService-Cj_HK_on.js.map} +1 -1
- package/dist/{secretService-ScgDU3bX.js → secretService-zFFQM-jC.js} +2 -2
- package/dist/{secretService-ScgDU3bX.js.map → secretService-zFFQM-jC.js.map} +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.esm.js +100 -0
- package/dist/server.esm.js.map +1 -0
- package/dist/server.js +111 -0
- package/dist/server.js.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/internal/assetsService.d.ts +2 -2
- package/dist/services/internal/configService.d.ts +2 -1
- package/dist/services/internal/estimateService.d.ts +28 -15
- package/dist/services/internal/eventService.d.ts +4 -0
- package/dist/services/internal/urlParamsService.d.ts +19 -0
- package/dist/{stellarService.client-D65n-wCV.js → stellarService.client-CBzr6pLs.js} +2 -2
- package/dist/{stellarService.client-D65n-wCV.js.map → stellarService.client-CBzr6pLs.js.map} +1 -1
- package/dist/{stellarService.client-BaDOSK8x.js → stellarService.client-CI86BfjV.js} +2 -2
- package/dist/{stellarService.client-BaDOSK8x.js.map → stellarService.client-CI86BfjV.js.map} +1 -1
- package/dist/tests/urlParamsService.test.d.ts +1 -0
- package/package.json +13 -1
- package/dist/hooks/tokens/useSourceChainGasToken.d.ts +0 -10
- package/dist/hooks/transaction/useTempoFeeCheck.d.ts +0 -11
- package/dist/index-BSX11dad.js.map +0 -1
- package/dist/index-XR8ODWxH.js.map +0 -1
- package/dist/services/internal/tempoService.d.ts +0 -38
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export declare const TEMPO_FEE_MANAGER_ADDRESS: "0xfeec000000000000000000000000000000000000";
|
|
2
|
-
export declare const feeManagerAbi: readonly [{
|
|
3
|
-
readonly name: "userTokens";
|
|
4
|
-
readonly type: "function";
|
|
5
|
-
readonly stateMutability: "view";
|
|
6
|
-
readonly inputs: readonly [{
|
|
7
|
-
readonly type: "address";
|
|
8
|
-
readonly name: "user";
|
|
9
|
-
}];
|
|
10
|
-
readonly outputs: readonly [{
|
|
11
|
-
readonly type: "address";
|
|
12
|
-
}];
|
|
13
|
-
}];
|
|
14
|
-
export declare const isTempoChain: (chainId: string | undefined) => boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Convert a fee amount from virtual USD (18 decimals, attodollars)
|
|
17
|
-
* to 6-decimal TIP-20 stablecoin units (microdollars).
|
|
18
|
-
* All TIP-20 tokens on Tempo have 6 decimals.
|
|
19
|
-
*/
|
|
20
|
-
export declare const convertTempoFeeToStablecoinUnits: (feeIn18Dec: bigint) => bigint;
|
|
21
|
-
export type TempoFeeData = {
|
|
22
|
-
gasBalance: bigint;
|
|
23
|
-
/**
|
|
24
|
-
* The address of the resolved gas token.
|
|
25
|
-
* Either the account-preferred token address or the fromToken address.
|
|
26
|
-
*/
|
|
27
|
-
gasTokenAddress: string;
|
|
28
|
-
};
|
|
29
|
-
export type ChainFeeParams = {
|
|
30
|
-
fromTokenPaysNetworkFee: boolean;
|
|
31
|
-
gasTokenBalanceWei: bigint;
|
|
32
|
-
/**
|
|
33
|
-
* Converts a raw fee (from route estimator or gas estimator) into the
|
|
34
|
-
* correct unit for the resolved gas token.
|
|
35
|
-
* Identity for chains with a native gas token; 18-dec→6-dec for Tempo.
|
|
36
|
-
*/
|
|
37
|
-
normalizeFee: (rawFee: bigint) => bigint;
|
|
38
|
-
};
|