@broxus/js-core
Version:
MobX-based JavaScript Core library
33 lines (32 loc) • 2.08 kB
TypeScript
import { type Address, type FullContractState, type ProviderRpcClient } from 'everscale-inpage-provider';
export interface GetAddPoolGasAbiParams {
tokenCount: number;
}
export interface GetDeployPoolGasAbiParams {
tokenCount: number;
}
export interface GetPoolDirectNoFeeWithdrawGasAbiParams {
deployWalletValue: string | number;
tokenCount: number;
}
export interface GetAccountDepositGasAbiParams {
autoChange: boolean;
referrerAddress?: Address | string;
tokenCount: number;
}
export interface GetAccountWithdrawGasAbiParams {
deployWalletValue: string | number;
}
export interface GasValuesResponse {
dynamicGas: string;
fixedValue: string;
}
export declare abstract class DexGasValuesUtils {
static getDeployAccountGas(connection: ProviderRpcClient, dexGasValuesAddress: Address | string, cachedState?: FullContractState): Promise<GasValuesResponse>;
static getDepositToAccountGas(connection: ProviderRpcClient, dexGasValuesAddress: Address | string, cachedState?: FullContractState): Promise<GasValuesResponse>;
static getAccountWithdrawGas(connection: ProviderRpcClient, dexGasValuesAddress: Address | string, params: GetAccountWithdrawGasAbiParams, cachedState?: FullContractState): Promise<GasValuesResponse>;
static getAccountDepositGas(connection: ProviderRpcClient, dexGasValuesAddress: Address | string, params: GetAccountDepositGasAbiParams, cachedState?: FullContractState): Promise<GasValuesResponse>;
static getAddPoolGas(connection: ProviderRpcClient, dexGasValuesAddress: Address | string, params: GetAddPoolGasAbiParams, cachedState?: FullContractState): Promise<GasValuesResponse>;
static getDeployPoolGas(connection: ProviderRpcClient, dexGasValuesAddress: Address | string, params: GetDeployPoolGasAbiParams, cachedState?: FullContractState): Promise<GasValuesResponse>;
static getPoolDirectNoFeeWithdrawGas(connection: ProviderRpcClient, dexGasValuesAddress: Address | string, params: GetPoolDirectNoFeeWithdrawGasAbiParams, cachedState?: FullContractState): Promise<GasValuesResponse>;
}