@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
47 lines (46 loc) • 3.19 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 TokenTransferSolTvmDetails, TokenTransferSolTvmEventUtils } from '../../models/token-transfer-sol-tvm-event/TokenTransferSolTvmEventUtils';
export interface TokenTransferSolTvmEventCtorOptions {
watchDebounceDelay?: number;
}
export interface TokenTransferSolTvmEventCreateOptions extends Syncable, TokenTransferSolTvmEventCtorOptions, Watchable {
watchCallback?: VoidFunction;
}
export interface TokenTransferSolTvmEventData extends TokenTransferSolTvmDetails {
}
/**
* @deprecated Use SolTvmBaseEvent instead
*/
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?: SmartContractWatchCallback<TokenTransferSolTvmEventData>): 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'];
}