@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
62 lines (61 loc) • 3.86 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 TvmEvmEventAlienAbi } from '../../models/tvm-evm-event-alien/abi';
import { type TvmEvmEventAlienDecodedData, type TvmEvmEventAlienDecodedEvent, type TvmEvmEventAlienDecodedTransaction, type TvmEvmEventAlienDetails, TvmEvmEventAlienUtils } from '../../models/tvm-evm-event-alien/TvmEvmEventAlienUtils';
export interface TvmEvmEventAlienCtorOptions {
watchDebounceDelay?: number;
}
export interface TvmEvmEventAlienCreateOptions extends TvmEvmEventAlienCtorOptions, Syncable, Watchable {
watchCallback?: VoidFunction;
}
export interface TvmEvmEventAlienData extends TvmEvmEventAlienDetails {
decodedData: TvmEvmEventAlienDecodedData;
}
export declare class TvmEvmEventAlien extends SmartContractModel<TvmEvmEventAlienData> {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<TvmEvmEventAlienCtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof TvmEvmEventAlienUtils;
/**
* @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<TvmEvmEventAlienCtorOptions>} [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<TvmEvmEventAlienCtorOptions> | 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<TvmEvmEventAlienCreateOptions>} [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<TvmEvmEventAlienCreateOptions>, provider?: ProviderRpcClient): Promise<TvmEvmEventAlien>;
sync(options?: Forceable & Silentable): Promise<void>;
watch(callback?: VoidFunction): Promise<Subscriber>;
unwatch(): Promise<void>;
nonce(): Promise<string>;
recipient(): Promise<string>;
relayRound(): Promise<Address>;
roundNumber(): Promise<number>;
sender(): Promise<Address>;
get balance(): TvmEvmEventAlienData['balance'];
get confirms(): TvmEvmEventAlienData['confirms'];
get decodedData(): TvmEvmEventAlienData['decodedData'];
get empty(): TvmEvmEventAlienData['empty'];
get eventInitData(): TvmEvmEventAlienData['eventInitData'];
get initializer(): TvmEvmEventAlienData['initializer'];
get meta(): TvmEvmEventAlienData['meta'];
get rejects(): TvmEvmEventAlienData['rejects'];
get requiredVotes(): TvmEvmEventAlienData['requiredVotes'];
get signatures(): TvmEvmEventAlienData['signatures'];
get status(): TvmEvmEventAlienData['status'];
decodeEvent(args: DecodeEventParams<typeof TvmEvmEventAlienAbi>): Promise<TvmEvmEventAlienDecodedEvent | undefined>;
decodeTransaction(args: DecodeTransactionParams<typeof TvmEvmEventAlienAbi>): Promise<TvmEvmEventAlienDecodedTransaction | undefined>;
decodeTransactionEvents(transaction: Transaction): Promise<TvmEvmEventAlienDecodedEvent[]>;
}