@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
44 lines (43 loc) • 3.45 kB
TypeScript
import { type Forceable, type Silentable, type SmartContractWatchCallback, type Syncable, type Watchable, SmartContractModel } from '@broxus/js-core';
import { type Address, type DecodeEventParams, type DecodeTransactionParams, type ProviderRpcClient, type Subscriber, type Transaction } from 'everscale-inpage-provider';
import { type TonNativeProxyV3Abi } from '../../models/ton-native-proxy/abi';
import { type TonNativeProxyV3DailyLimits, type TonNativeProxyV3DecodedEvent, type TonNativeProxyV3DecodedTransaction, type TonNativeProxyV3TvmDefaultFee, type TonNativeProxyV3TvmFees, type TonNativeProxyV3TvmTokenFee, TonNativeProxyV3Utils } from '../../models/ton-native-proxy/TonNativeProxyV3Utils';
export interface TonNativeProxyV3CtorOptions {
watchDebounceDelay?: number;
}
export interface TonNativeProxyV3CreateOptions extends Syncable, TonNativeProxyV3CtorOptions, Watchable {
watchCallback?: VoidFunction;
}
export declare class TonNativeProxyV3 extends SmartContractModel {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<TonNativeProxyV3CtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof TonNativeProxyV3Utils;
/**
* @param {ProviderRpcClient} _connection Standalone RPC client that doesn't require connection to the TVM wallet provider
* @param {Address | string} address Native Proxy root address
* @param {Readonly<TonNativeProxyV3CtorOptions>} [options] (optional) Native Proxy ABI Wrapper options
* @param {ProviderRpcClient} [_provider] (optional) RPC provider that require connection to the TVM wallet
*/
constructor(_connection: ProviderRpcClient, address: Address | string, options?: Readonly<TonNativeProxyV3CtorOptions> | undefined, _provider?: ProviderRpcClient | undefined);
/**
* @param {ProviderRpcClient} connection Standalone RPC client that doesn't require connection to the TVM wallet provider
* @param {Address | string} address Native Proxy root address
* @param {Readonly<TonNativeProxyV3CreateOptions>} [options] (optional) Native Proxy ABI Wrapper options
* @param {ProviderRpcClient} [provider] (optional) RPC provider that require connection to the TVM wallet
*/
static create(connection: ProviderRpcClient, address: Address | string, options?: TonNativeProxyV3CreateOptions, provider?: ProviderRpcClient): Promise<TonNativeProxyV3>;
sync(options?: Forceable & Silentable): Promise<void>;
watch(callback?: SmartContractWatchCallback): Promise<Subscriber>;
unwatch(): Promise<void>;
getExpectedTokenFeeAddress(tokenAddress: Address | string): Promise<Address>;
getDailyLimits(tokenAddress: Address | string): Promise<TonNativeProxyV3DailyLimits>;
getTvmDefaultFee(): Promise<TonNativeProxyV3TvmDefaultFee>;
getTvmFees(): Promise<TonNativeProxyV3TvmFees>;
getTvmTokenFee(tokenAddress: Address | string): Promise<TonNativeProxyV3TvmTokenFee>;
getTonEvmConfiguration(): Promise<Address>;
getDexMiddleware(): Promise<Address>;
decodeEvent(args: DecodeEventParams<typeof TonNativeProxyV3Abi>): Promise<TonNativeProxyV3DecodedEvent | undefined>;
decodeTransaction(args: DecodeTransactionParams<typeof TonNativeProxyV3Abi>): Promise<TonNativeProxyV3DecodedTransaction | undefined>;
decodeTransactionEvents(transaction: Transaction): Promise<TonNativeProxyV3DecodedEvent[]>;
}