@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
47 lines (46 loc) • 3.11 kB
TypeScript
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 TokenTransferTvmSolDetails, TokenTransferTvmSolEventUtils } from '../../models/token-transfer-tvm-sol-event/TokenTransferTvmSolEventUtils';
export interface TokenTransferTvmSolEventCtorOptions {
watchDebounceDelay?: number;
}
export interface TokenTransferTvmSolEventCreateOptions extends TokenTransferTvmSolEventCtorOptions, Syncable, Watchable {
watchCallback?: VoidFunction;
}
export interface TokenTransferTvmSolEventData extends TokenTransferTvmSolDetails {
}
/**
* @deprecated Use TvmSolBaseEvent instead
*/
export declare class TokenTransferTvmSolEvent extends SmartContractModel<TokenTransferTvmSolEventData> {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<TokenTransferTvmSolEventCtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof TokenTransferTvmSolEventUtils;
/**
* @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<TokenTransferTvmSolEventCtorOptions>} [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<TokenTransferTvmSolEventCtorOptions> | 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<TokenTransferTvmSolEventCreateOptions>} [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<TokenTransferTvmSolEventCreateOptions>, provider?: ProviderRpcClient): Promise<TokenTransferTvmSolEvent>;
sync(options?: Forceable & Silentable): Promise<void>;
watch(callback?: VoidFunction): Promise<Subscriber>;
unwatch(): Promise<void>;
get balance(): TokenTransferTvmSolEventData['balance'];
get confirms(): TokenTransferTvmSolEventData['confirms'];
get empty(): TokenTransferTvmSolEventData['empty'];
get eventInitData(): TokenTransferTvmSolEventData['eventInitData'];
get initializer(): TokenTransferTvmSolEventData['initializer'];
get meta(): TokenTransferTvmSolEventData['meta'];
get rejects(): TokenTransferTvmSolEventData['rejects'];
get requiredVotes(): TokenTransferTvmSolEventData['requiredVotes'];
get status(): TokenTransferTvmSolEventData['status'];
}