@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
47 lines (46 loc) • 2.97 kB
TypeScript
import { type Forceable, type Silentable, SmartContractModel, type Syncable, type Watchable } from '@broxus/js-core';
import { type Address, type DecodeEventParams, type DecodeTransactionParams, type ProviderRpcClient, type Subscriber, type Transaction } from 'everscale-inpage-provider';
import { type NativeProxyV6Abi } from '../../models';
import { type NativeProxyV6DecodedEvent, type NativeProxyV6DecodedTransaction, NativeProxyV6Utils } from '../../models/native-proxy/NativeProxyV6Utils';
export interface NativeProxyV6CtorOptions {
watchDebounceDelay?: number;
}
export interface NativeProxyV6CreateOptions extends NativeProxyV6CtorOptions, Syncable, Watchable {
watchCallback?: VoidFunction;
}
export declare class NativeProxyV6 extends SmartContractModel {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<NativeProxyV6CtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof NativeProxyV6Utils;
/**
* @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<NativeProxyV6CtorOptions>} [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<NativeProxyV6CtorOptions> | 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<NativeProxyV6CreateOptions>} [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?: Readonly<NativeProxyV6CreateOptions>, provider?: ProviderRpcClient): Promise<NativeProxyV6>;
sync(options?: Forceable & Silentable): Promise<void>;
watch(callback?: VoidFunction): Promise<Subscriber>;
unwatch(): Promise<void>;
getTvmEvmConfiguration(): Promise<Address>;
getTvmSolConfiguration(): Promise<Address>;
getSolTvmConfiguration(): Promise<Address>;
getDexMiddleware(): Promise<Address>;
decodeEvent(args: DecodeEventParams<typeof NativeProxyV6Abi>): Promise<NativeProxyV6DecodedEvent | undefined>;
decodeTransaction(args: DecodeTransactionParams<typeof NativeProxyV6Abi>): Promise<NativeProxyV6DecodedTransaction | undefined>;
decodeTransactionEvents(transaction: Transaction): Promise<NativeProxyV6DecodedEvent[]>;
}