UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

54 lines (53 loc) 3.78 kB
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 EvmTvmEventAlienAbi } from '../../models/evm-tvm-event-alien/abi'; import { type EvmTvmEventAlienDecodedData, type EvmTvmEventAlienDecodedEvent, type EvmTvmEventAlienDecodedTransaction, type EvmTvmEventAlienDetails, type EvmTvmEventAlienTransitionalData, EvmTvmEventAlienUtils } from '../../models/evm-tvm-event-alien/EvmTvmEventAlienUtils'; export interface EvmTvmEventAlienCtorOptions { watchDebounceDelay?: number; } export interface EvmTvmEventAlienCreateOptions extends EvmTvmEventAlienCtorOptions, Syncable, Watchable { watchCallback?: VoidFunction; } export interface EvmTvmEventAlienData extends EvmTvmEventAlienDetails { decodedData: EvmTvmEventAlienDecodedData; } export declare class EvmTvmEventAlien extends SmartContractModel<EvmTvmEventAlienData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<EvmTvmEventAlienCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof EvmTvmEventAlienUtils; /** * @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<EvmTvmEventAlienCtorOptions>} [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<EvmTvmEventAlienCtorOptions> | 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<EvmTvmEventAlienCreateOptions>} [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<EvmTvmEventAlienCreateOptions>, provider?: ProviderRpcClient): Promise<EvmTvmEventAlien>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: VoidFunction): Promise<Subscriber>; unwatch(): Promise<void>; getTransitionalData(): Promise<EvmTvmEventAlienTransitionalData>; nonce(): Promise<string>; relayRound(): Promise<Address>; roundNumber(): Promise<number>; get balance(): EvmTvmEventAlienData['balance']; get confirms(): EvmTvmEventAlienData['confirms']; get decodedData(): EvmTvmEventAlienData['decodedData']; get empty(): EvmTvmEventAlienData['empty']; get eventInitData(): EvmTvmEventAlienData['eventInitData']; get initializer(): EvmTvmEventAlienData['initializer']; get meta(): EvmTvmEventAlienData['meta']; get rejects(): EvmTvmEventAlienData['rejects']; get requiredVotes(): EvmTvmEventAlienData['requiredVotes']; get status(): EvmTvmEventAlienData['status']; decodeEvent(args: DecodeEventParams<typeof EvmTvmEventAlienAbi>): Promise<EvmTvmEventAlienDecodedEvent | undefined>; decodeTransaction(args: DecodeTransactionParams<typeof EvmTvmEventAlienAbi>): Promise<EvmTvmEventAlienDecodedTransaction | undefined>; decodeTransactionEvents(transaction: Transaction): Promise<EvmTvmEventAlienDecodedEvent[]>; }