@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
46 lines (45 loc) • 2.98 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 SolTvmEventAlienDecodedData, type SolTvmEventAlienDetails, SolTvmEventAlienUtils } from '../../models/sol-tvm-event-alien/SolTvmEventAlienUtils';
export interface SolTvmEventAlienCtorOptions {
watchDebounceDelay?: number;
}
export interface SolTvmEventAlienCreateOptions extends SolTvmEventAlienCtorOptions, Syncable, Watchable {
watchCallback?: VoidFunction;
}
export interface SolTvmEventAlienData extends SolTvmEventAlienDetails {
decodedData: SolTvmEventAlienDecodedData;
}
export declare class SolTvmEventAlien extends SmartContractModel<SolTvmEventAlienData> {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<SolTvmEventAlienCtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof SolTvmEventAlienUtils;
/**
* @param {ProviderRpcClient} _connection Standalone RPC client that doesn't require connection to the TVM wallet provider
* @param {Address | string} address Alien Event root address
* @param {Readonly<SolTvmEventAlienCtorOptions>} [options] (optional) Alien 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<SolTvmEventAlienCtorOptions> | undefined, _provider?: ProviderRpcClient | undefined);
/**
* @param {ProviderRpcClient} connection Standalone RPC client that doesn't require connection to the TVM wallet provider
* @param {Address | string} address Alien Event root address
* @param {Readonly<SolTvmEventAlienCreateOptions>} [options] (optional) Alien 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<SolTvmEventAlienCreateOptions>, provider?: ProviderRpcClient): Promise<SolTvmEventAlien>;
sync(options?: Forceable & Silentable): Promise<void>;
watch(callback?: VoidFunction): Promise<Subscriber>;
unwatch(): Promise<void>;
get balance(): SolTvmEventAlienData['balance'];
get confirms(): SolTvmEventAlienData['confirms'];
get decodedData(): SolTvmEventAlienData['decodedData'];
get empty(): SolTvmEventAlienData['empty'];
get eventInitData(): SolTvmEventAlienData['eventInitData'];
get initializer(): SolTvmEventAlienData['initializer'];
get meta(): SolTvmEventAlienData['meta'];
get rejects(): SolTvmEventAlienData['rejects'];
get requiredVotes(): SolTvmEventAlienData['requiredVotes'];
get status(): SolTvmEventAlienData['status'];
}