@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
35 lines (34 loc) • 2.42 kB
TypeScript
import { SmartContractModel, type Syncable, type Watchable } from '@broxus/js-core';
import { type Address, type ProviderRpcClient, type Subscriber } from 'everscale-inpage-provider';
import { type DeriveEvmAlienJettonRootAbiParams, type EvmJettonMergeDetails, TonAlienProxyUtils } from '../../models/ton-alien-proxy/TonAlienProxyUtils';
export interface TonAlienProxyCtorOptions {
watchDebounceDelay?: number;
}
export interface TonAlienProxyCreateOptions extends TonAlienProxyCtorOptions, Syncable, Watchable {
watchCallback?: VoidFunction;
}
export declare class TonAlienProxy extends SmartContractModel {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<TonAlienProxyCtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof TonAlienProxyUtils;
/**
* @param {ProviderRpcClient} _connection Standalone RPC client that doesn't require connection to the TVM wallet provider
* @param {Address | string} address Alien Proxy root address
* @param {Readonly<TonAlienProxyCtorOptions>} [options] (optional) Alien 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<TonAlienProxyCtorOptions> | undefined, _provider?: ProviderRpcClient | undefined);
/**
* @param {ProviderRpcClient} connection Standalone RPC client that doesn't require connection to the TVM wallet provider
* @param {Address | string} address Alien Proxy root address
* @param {Readonly<TonAlienProxyCreateOptions>} [options] (optional) Alien 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<TonAlienProxyCreateOptions>, provider?: ProviderRpcClient): Promise<TonAlienProxy>;
watch(callback?: VoidFunction): Promise<Subscriber>;
unwatch(): Promise<void>;
deriveEvmAlienTokenRoot(params: DeriveEvmAlienJettonRootAbiParams): Promise<Address>;
getTonEvmConfiguration(): Promise<Address>;
getEvmTokenMergeDetails(tokenAddress: Address | string, chainId: string): Promise<EvmJettonMergeDetails | undefined>;
}