UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

46 lines (45 loc) 2.98 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 TvmSolEventAlienDecodedData, type TvmSolEventAlienDetails, TvmSolEventAlienUtils } from '../../models/tvm-sol-event-alien/TvmSolEventAlienUtils'; export interface TvmSolEventAlienCtorOptions { watchDebounceDelay?: number; } export interface TvmSolEventAlienCreateOptions extends TvmSolEventAlienCtorOptions, Syncable, Watchable { watchCallback?: VoidFunction; } export interface TvmSolEventAlienData extends TvmSolEventAlienDetails { decodedData: TvmSolEventAlienDecodedData; } export declare class TvmSolEventAlien extends SmartContractModel<TvmSolEventAlienData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<TvmSolEventAlienCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof TvmSolEventAlienUtils; /** * @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<TvmSolEventAlienCtorOptions>} [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<TvmSolEventAlienCtorOptions> | 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<TvmSolEventAlienCreateOptions>} [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<TvmSolEventAlienCreateOptions>, provider?: ProviderRpcClient): Promise<TvmSolEventAlien>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: VoidFunction): Promise<Subscriber>; unwatch(): Promise<void>; get balance(): TvmSolEventAlienData['balance']; get confirms(): TvmSolEventAlienData['confirms']; get decodedData(): TvmSolEventAlienData['decodedData']; get empty(): TvmSolEventAlienData['empty']; get eventInitData(): TvmSolEventAlienData['eventInitData']; get initializer(): TvmSolEventAlienData['initializer']; get meta(): TvmSolEventAlienData['meta']; get rejects(): TvmSolEventAlienData['rejects']; get requiredVotes(): TvmSolEventAlienData['requiredVotes']; get status(): TvmSolEventAlienData['status']; }