UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

44 lines (43 loc) 3.06 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 TokenTransferSolTvmDetails, TokenTransferSolTvmEventUtils } from '../../models/token-transfer-sol-tvm-event/TokenTransferSolTvmEventUtils'; export interface TokenTransferSolTvmEventCtorOptions { watchDebounceDelay?: number; } export interface TokenTransferSolTvmEventCreateOptions extends TokenTransferSolTvmEventCtorOptions, Syncable, Watchable { watchCallback?: VoidFunction; } export interface TokenTransferSolTvmEventData extends TokenTransferSolTvmDetails { } export declare class TokenTransferSolTvmEvent extends SmartContractModel<TokenTransferSolTvmEventData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<TokenTransferSolTvmEventCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof TokenTransferSolTvmEventUtils; /** * @param {ProviderRpcClient} _connection Standalone RPC client that doesn't require connection to the TVM wallet provider * @param {Address | string} address Transfer Event root address * @param {Readonly<TokenTransferSolTvmEventCtorOptions>} [options] (optional) Transfer 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<TokenTransferSolTvmEventCtorOptions> | undefined, _provider?: ProviderRpcClient | undefined); /** * @param {ProviderRpcClient} connection Standalone RPC client that doesn't require connection to the TVM wallet provider * @param {Address | string} address Transfer Event root address * @param {Readonly<TokenTransferSolTvmEventCreateOptions>} [options] (optional) Transfer 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<TokenTransferSolTvmEventCreateOptions>, provider?: ProviderRpcClient): Promise<TokenTransferSolTvmEvent>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: VoidFunction): Promise<Subscriber>; unwatch(): Promise<void>; get balance(): TokenTransferSolTvmEventData['balance']; get confirms(): TokenTransferSolTvmEventData['confirms']; get empty(): TokenTransferSolTvmEventData['empty']; get eventInitData(): TokenTransferSolTvmEventData['eventInitData']; get initializer(): TokenTransferSolTvmEventData['initializer']; get meta(): TokenTransferSolTvmEventData['meta']; get rejects(): TokenTransferSolTvmEventData['rejects']; get requiredVotes(): TokenTransferSolTvmEventData['requiredVotes']; get status(): TokenTransferSolTvmEventData['status']; }