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