UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

54 lines (53 loc) 3.82 kB
import { type Forceable, type Silentable, type SmartContractWatchCallback, type Syncable, type Watchable, SmartContractModel } from '@broxus/js-core'; import { type Address, type DecodeEventParams, type DecodeTransactionParams, type ProviderRpcClient, type Subscriber, type Transaction } from 'everscale-inpage-provider'; import { type EvmTvmEventNativeAbi } from '../../models/evm-tvm-event-native/abi'; import { type EvmTvmEventNativeDecodedData, type EvmTvmEventNativeDecodedEvent, type EvmTvmEventNativeDecodedTransaction, type EvmTvmEventNativeDetails, EvmTvmEventNativeUtils } from '../../models/evm-tvm-event-native/EvmTvmEventNativeUtils'; export interface EvmTvmEventNativeCtorOptions { watchDebounceDelay?: number; } export interface EvmTvmEventNativeCreateOptions extends EvmTvmEventNativeCtorOptions, Syncable, Watchable { watchCallback?: VoidFunction; } export interface EvmTvmEventNativeData extends EvmTvmEventNativeDetails { decodedData: EvmTvmEventNativeDecodedData; } export declare class EvmTvmEventNative extends SmartContractModel<EvmTvmEventNativeData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<EvmTvmEventNativeCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof EvmTvmEventNativeUtils; /** * @param {ProviderRpcClient} _connection Standalone RPC client that doesn't require connection to the TVM wallet provider * @param {Address | string} address Native Event root address * @param {Readonly<EvmTvmEventNativeCtorOptions>} [options] (optional) Native 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<EvmTvmEventNativeCtorOptions> | undefined, _provider?: ProviderRpcClient | undefined); /** * @param {ProviderRpcClient} connection Standalone RPC client that doesn't require connection to the TVM wallet provider * @param {Address | string} address Native Event root address * @param {Readonly<EvmTvmEventNativeCreateOptions>} [options] (optional) Native 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<EvmTvmEventNativeCreateOptions>, provider?: ProviderRpcClient): Promise<EvmTvmEventNative>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: SmartContractWatchCallback<EvmTvmEventNativeData>): Promise<Subscriber>; unwatch(): Promise<void>; nonce(): Promise<string>; recipient(): Promise<Address>; relayRound(): Promise<Address>; roundNumber(): Promise<number>; get balance(): EvmTvmEventNativeData['balance']; get confirms(): EvmTvmEventNativeData['confirms']; get decodedData(): EvmTvmEventNativeData['decodedData']; get empty(): EvmTvmEventNativeData['empty']; get eventInitData(): EvmTvmEventNativeData['eventInitData']; get initializer(): EvmTvmEventNativeData['initializer']; get meta(): EvmTvmEventNativeData['meta']; get rejects(): EvmTvmEventNativeData['rejects']; get requiredVotes(): EvmTvmEventNativeData['requiredVotes']; get status(): EvmTvmEventNativeData['status']; decodeEvent(args: DecodeEventParams<typeof EvmTvmEventNativeAbi>): Promise<EvmTvmEventNativeDecodedEvent | undefined>; decodeTransaction(args: DecodeTransactionParams<typeof EvmTvmEventNativeAbi>): Promise<EvmTvmEventNativeDecodedTransaction | undefined>; decodeTransactionEvents(transaction: Transaction): Promise<EvmTvmEventNativeDecodedEvent[]>; }