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 EvmTvmEventAlienDecodedData, type EvmTvmEventAlienDetails, EvmTvmEventAlienUtils } from '../../models/evm-tvm-event-alien/EvmTvmEventAlienUtils'; export interface EvmTvmEventAlienCtorOptions { watchDebounceDelay?: number; } export interface EvmTvmEventAlienCreateOptions extends EvmTvmEventAlienCtorOptions, Syncable, Watchable { watchCallback?: VoidFunction; } export interface EvmTvmEventAlienData extends EvmTvmEventAlienDetails { decodedData: EvmTvmEventAlienDecodedData; } export declare class EvmTvmEventAlien extends SmartContractModel<EvmTvmEventAlienData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<EvmTvmEventAlienCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof EvmTvmEventAlienUtils; /** * @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<EvmTvmEventAlienCtorOptions>} [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<EvmTvmEventAlienCtorOptions> | 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<EvmTvmEventAlienCreateOptions>} [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<EvmTvmEventAlienCreateOptions>, provider?: ProviderRpcClient): Promise<EvmTvmEventAlien>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: VoidFunction): Promise<Subscriber>; unwatch(): Promise<void>; get balance(): EvmTvmEventAlienData['balance']; get confirms(): EvmTvmEventAlienData['confirms']; get decodedData(): EvmTvmEventAlienData['decodedData']; get empty(): EvmTvmEventAlienData['empty']; get eventInitData(): EvmTvmEventAlienData['eventInitData']; get initializer(): EvmTvmEventAlienData['initializer']; get meta(): EvmTvmEventAlienData['meta']; get rejects(): EvmTvmEventAlienData['rejects']; get requiredVotes(): EvmTvmEventAlienData['requiredVotes']; get status(): EvmTvmEventAlienData['status']; }