@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
53 lines (52 loc) • 3.67 kB
TypeScript
import { type Forceable, type Silentable, SmartContractModel, type Syncable, type Watchable } from '@broxus/js-core';
import { type Address, type DecodeEventParams, type DecodeTransactionParams, type ProviderRpcClient, type Subscriber, type Transaction } from 'everscale-inpage-provider';
import { type SolTvmEventAlienAbi } from '../../models/sol-tvm-event-alien/abi';
import { type SolTvmEventAlienDecodedData, type SolTvmEventAlienDecodedEvent, type SolTvmEventAlienDecodedTransaction, 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>;
nonce(): Promise<string>;
relayRound(): Promise<Address>;
roundNumber(): Promise<number>;
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'];
decodeEvent(args: DecodeEventParams<typeof SolTvmEventAlienAbi>): Promise<SolTvmEventAlienDecodedEvent | undefined>;
decodeTransaction(args: DecodeTransactionParams<typeof SolTvmEventAlienAbi>): Promise<SolTvmEventAlienDecodedTransaction | undefined>;
decodeTransactionEvents(transaction: Transaction): Promise<SolTvmEventAlienDecodedEvent[]>;
}