@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
35 lines (34 loc) • 2.28 kB
TypeScript
import { type Forceable, type Silentable, SmartContractModel, type Syncable, type Watchable } from '@broxus/js-core';
import { type Address, type ProviderRpcClient, type Subscriber } from 'everscale-inpage-provider';
import { TonNativeProxyUtils } from '../../models/ton-native-proxy/TonNativeProxyUtils';
export interface TonNativeProxyCtorOptions {
watchDebounceDelay?: number;
}
export interface TonNativeProxyCreateOptions extends TonNativeProxyCtorOptions, Syncable, Watchable {
watchCallback?: VoidFunction;
}
export declare class TonNativeProxy extends SmartContractModel {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<TonNativeProxyCtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof TonNativeProxyUtils;
/**
* @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<TonNativeProxyCtorOptions>} [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<TonNativeProxyCtorOptions> | 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<TonNativeProxyCreateOptions>} [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?: TonNativeProxyCreateOptions, provider?: ProviderRpcClient): Promise<TonNativeProxy>;
sync(options?: Forceable & Silentable): Promise<void>;
watch(callback?: VoidFunction): Promise<Subscriber>;
unwatch(): Promise<void>;
getTonEvmConfiguration(): Promise<Address>;
getDexMiddleware(): Promise<Address>;
}