UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

47 lines (46 loc) 3.04 kB
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 TvmEvmEventAlienDecodedData, type TvmEvmEventAlienDetails, TvmEvmEventAlienUtils } from '../../models/tvm-evm-event-alien/TvmEvmEventAlienUtils'; export interface TvmEvmEventAlienCtorOptions { watchDebounceDelay?: number; } export interface TvmEvmEventAlienCreateOptions extends TvmEvmEventAlienCtorOptions, Syncable, Watchable { watchCallback?: VoidFunction; } export interface TvmEvmEventAlienData extends TvmEvmEventAlienDetails { decodedData: TvmEvmEventAlienDecodedData; } export declare class TvmEvmEventAlien extends SmartContractModel<TvmEvmEventAlienData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<TvmEvmEventAlienCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof TvmEvmEventAlienUtils; /** * @param {ProviderRpcClient} _connection Standalone RPC client that doesn't require connection to the TVM wallet provider * @param {Address | string} address Alien Event root address * @param {Readonly<TvmEvmEventAlienCtorOptions>} [options] (optional) Alien 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<TvmEvmEventAlienCtorOptions> | 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 Event root address * @param {Readonly<TvmEvmEventAlienCreateOptions>} [options] (optional) Alien 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<TvmEvmEventAlienCreateOptions>, provider?: ProviderRpcClient): Promise<TvmEvmEventAlien>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: VoidFunction): Promise<Subscriber>; unwatch(): Promise<void>; get balance(): TvmEvmEventAlienData['balance']; get confirms(): TvmEvmEventAlienData['confirms']; get decodedData(): TvmEvmEventAlienData['decodedData']; get empty(): TvmEvmEventAlienData['empty']; get eventInitData(): TvmEvmEventAlienData['eventInitData']; get initializer(): TvmEvmEventAlienData['initializer']; get meta(): TvmEvmEventAlienData['meta']; get rejects(): TvmEvmEventAlienData['rejects']; get requiredVotes(): TvmEvmEventAlienData['requiredVotes']; get signatures(): TvmEvmEventAlienData['signatures']; get status(): TvmEvmEventAlienData['status']; }