@tonappchain/sdk 0.7.2-gas-price-0.2 → 0.7.2-gas-price-0.3
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/src/sdk/TacSdk.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { JettonMinterData, NFTItemData } from '../../artifacts/tonTypes';
|
|
|
3
3
|
import { FT, NFT } from '../assets';
|
|
4
4
|
import { IConfiguration, ILogger, IOperationTracker, ITacSDK } from '../interfaces';
|
|
5
5
|
import type { SenderAbstraction } from '../sender';
|
|
6
|
-
import { AssetFromFTArg, AssetFromNFTCollectionArg, AssetFromNFTItemArg, AssetLike, BatchCrossChainTxWithAssetLike, CrossChainTransactionOptions, CrossChainTransactionsOptions, CrosschainTx, EVMAddress, EvmProxyMsg, ExecutionFeeEstimationResult, NFTAddressType, SDKParams, SuggestedTVMExecutorFee,
|
|
6
|
+
import { AssetFromFTArg, AssetFromNFTCollectionArg, AssetFromNFTItemArg, AssetLike, BatchCrossChainTxWithAssetLike, CrossChainTransactionOptions, CrossChainTransactionsOptions, CrosschainTx, EVMAddress, EvmProxyMsg, ExecutionFeeEstimationResult, NFTAddressType, SDKParams, SuggestedTVMExecutorFee, TACSimulationParams, TACSimulationResult, TransactionLinkerWithOperationId, TVMAddress, UserWalletBalanceExtended } from '../structs/Struct';
|
|
7
7
|
export declare class TacSdk implements ITacSDK {
|
|
8
8
|
readonly config: IConfiguration;
|
|
9
9
|
readonly operationTracker: IOperationTracker;
|
|
@@ -16,7 +16,11 @@ export declare class TacSdk implements ITacSDK {
|
|
|
16
16
|
get nativeTONAddress(): string;
|
|
17
17
|
getSmartAccountAddressForTvmWallet(tvmWallet: string, applicationAddress: string): Promise<string>;
|
|
18
18
|
nativeTACAddress(): Promise<string>;
|
|
19
|
-
getTACGasPrice(): Promise<
|
|
19
|
+
getTACGasPrice(): Promise<{
|
|
20
|
+
average: number;
|
|
21
|
+
fast: number;
|
|
22
|
+
slow: number;
|
|
23
|
+
}>;
|
|
20
24
|
get getTrustedTACExecutors(): string[];
|
|
21
25
|
get getTrustedTONExecutors(): string[];
|
|
22
26
|
getSimulationInfo(evmProxyMsg: EvmProxyMsg, sender: SenderAbstraction, assets?: AssetLike[], options?: CrossChainTransactionOptions): Promise<ExecutionFeeEstimationResult>;
|
package/dist/src/sdk/TacSdk.js
CHANGED
|
@@ -58,7 +58,12 @@ class TacSdk {
|
|
|
58
58
|
return this.config.nativeTACAddress();
|
|
59
59
|
}
|
|
60
60
|
async getTACGasPrice() {
|
|
61
|
-
|
|
61
|
+
const response = await this.operationTracker.getTACGasPrice();
|
|
62
|
+
return {
|
|
63
|
+
average: response.gas_prices.average,
|
|
64
|
+
fast: response.gas_prices.fast,
|
|
65
|
+
slow: response.gas_prices.slow,
|
|
66
|
+
};
|
|
62
67
|
}
|
|
63
68
|
get getTrustedTACExecutors() {
|
|
64
69
|
return this.config.getTrustedTACExecutors;
|