@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
46 lines (45 loc) • 3.02 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 { type EvmTvmEventNativeDecodedData, type EvmTvmEventNativeDetails, EvmTvmEventNativeUtils } from '../../models/evm-tvm-event-native/EvmTvmEventNativeUtils';
export interface EvmTvmEventNativeCtorOptions {
watchDebounceDelay?: number;
}
export interface EvmTvmEventNativeCreateOptions extends EvmTvmEventNativeCtorOptions, Syncable, Watchable {
watchCallback?: VoidFunction;
}
export interface EvmTvmEventNativeData extends EvmTvmEventNativeDetails {
decodedData: EvmTvmEventNativeDecodedData;
}
export declare class EvmTvmEventNative extends SmartContractModel<EvmTvmEventNativeData> {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<EvmTvmEventNativeCtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof EvmTvmEventNativeUtils;
/**
* @param {ProviderRpcClient} _connection Standalone RPC client that doesn't require connection to the TVM wallet provider
* @param {Address | string} address Native Event root address
* @param {Readonly<EvmTvmEventNativeCtorOptions>} [options] (optional) Native Event ABI Wrapper options
* @param {ProviderRpcClient} [_provider] (optional) RPC provider that require connection to the TVM wallet
*/
constructor(_connection: ProviderRpcClient, address: Address | string, options?: Readonly<EvmTvmEventNativeCtorOptions> | 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 Event root address
* @param {Readonly<EvmTvmEventNativeCreateOptions>} [options] (optional) Native Event 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<EvmTvmEventNativeCreateOptions>, provider?: ProviderRpcClient): Promise<EvmTvmEventNative>;
sync(options?: Forceable & Silentable): Promise<void>;
watch(callback?: VoidFunction): Promise<Subscriber>;
unwatch(): Promise<void>;
get balance(): EvmTvmEventNativeData['balance'];
get confirms(): EvmTvmEventNativeData['confirms'];
get decodedData(): EvmTvmEventNativeData['decodedData'];
get empty(): EvmTvmEventNativeData['empty'];
get eventInitData(): EvmTvmEventNativeData['eventInitData'];
get initializer(): EvmTvmEventNativeData['initializer'];
get meta(): EvmTvmEventNativeData['meta'];
get rejects(): EvmTvmEventNativeData['rejects'];
get requiredVotes(): EvmTvmEventNativeData['requiredVotes'];
get status(): EvmTvmEventNativeData['status'];
}