UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

47 lines (46 loc) 3.19 kB
import { type Forceable, type Silentable, type SmartContractWatchCallback, type Syncable, type Watchable, SmartContractModel } from '@broxus/js-core'; import { type Address, type ProviderRpcClient, type Subscriber } from 'everscale-inpage-provider'; import { type TokenTransferEvmTvmDetails, TokenTransferEvmTvmEventUtils } from '../../models/token-transfer-evm-tvm-event/TokenTransferEvmTvmEventUtils'; export interface TokenTransferEvmTvmEventCtorOptions { watchDebounceDelay?: number; } export interface TokenTransferEvmTvmEventCreateOptions extends Syncable, TokenTransferEvmTvmEventCtorOptions, Watchable { watchCallback?: VoidFunction; } export interface TokenTransferEvmTvmEventData extends TokenTransferEvmTvmDetails { } /** * @deprecated Use EvmTvmBaseEvent instead */ export declare class TokenTransferEvmTvmEvent extends SmartContractModel<TokenTransferEvmTvmEventData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<TokenTransferEvmTvmEventCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof TokenTransferEvmTvmEventUtils; /** * @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<TokenTransferEvmTvmEventCtorOptions>} [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<TokenTransferEvmTvmEventCtorOptions> | 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<TokenTransferEvmTvmEventCreateOptions>} [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<TokenTransferEvmTvmEventCreateOptions>, provider?: ProviderRpcClient): Promise<TokenTransferEvmTvmEvent>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: SmartContractWatchCallback<TokenTransferEvmTvmEventData>): Promise<Subscriber>; unwatch(): Promise<void>; get balance(): TokenTransferEvmTvmEventData['balance']; get confirms(): TokenTransferEvmTvmEventData['confirms']; get empty(): TokenTransferEvmTvmEventData['empty']; get eventInitData(): TokenTransferEvmTvmEventData['eventInitData']; get initializer(): TokenTransferEvmTvmEventData['initializer']; get meta(): TokenTransferEvmTvmEventData['meta']; get rejects(): TokenTransferEvmTvmEventData['rejects']; get requiredVotes(): TokenTransferEvmTvmEventData['requiredVotes']; get status(): TokenTransferEvmTvmEventData['status']; }