UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

47 lines (46 loc) 4 kB
import { type Forceable, type Silentable, SmartContractModel, type Syncable, type Watchable } from '@broxus/js-core'; import { type Address, type DecodeEventParams, type DecodeTransactionParams, type DelayedMessageExecution, type ProviderRpcClient, type SendInternalParams, type Subscriber, type Transaction } from 'everscale-inpage-provider'; import { type TvmTvmEventConfigurationAbi } from '../../models/tvm-tvm-event-configuration/abi'; import { type TvmTvmEventConfigurationDecodedEvent, type TvmTvmEventConfigurationDecodedTransaction, type TvmTvmEventConfigurationDeployEventAbiParams, type TvmTvmEventConfigurationDeriveEventAddressAbiParams, type TvmTvmEventConfigurationDetails, TvmTvmEventConfigurationUtils } from '../../models/tvm-tvm-event-configuration/TvmTvmEventConfigurationUtils'; export interface TvmTvmEventConfigurationCtorOptions { watchDebounceDelay?: number; } export interface TvmTvmEventConfigurationCreateOptions extends TvmTvmEventConfigurationCtorOptions, Syncable, Watchable { watchCallback?: VoidFunction; } export interface TvmTvmEventConfigurationData extends TvmTvmEventConfigurationDetails { ownerAddress?: Address; flags?: string; } export declare class TvmTvmEventConfiguration extends SmartContractModel<TvmTvmEventConfigurationData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<TvmTvmEventConfigurationCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof TvmTvmEventConfigurationUtils; /** * @param {ProviderRpcClient} _connection Standalone RPC client that doesn't require connection to the TVM wallet provider * @param {Address | string} address Native Event Configuration root address * @param {Readonly<TvmTvmEventConfigurationCtorOptions>} [options] (optional) Native Event Configuration ABI Wrapper options * @param {ProviderRpcClient} [_provider] (optional) RPC provider that require connection to the TVM wallet */ constructor(_connection: ProviderRpcClient, address: Address | string, options?: Readonly<TvmTvmEventConfigurationCtorOptions> | 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 Configuration root address * @param {Readonly<TvmTvmEventConfigurationCreateOptions>} [options] (optional) Native Event Configuration 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<TvmTvmEventConfigurationCreateOptions>, provider?: ProviderRpcClient): Promise<TvmTvmEventConfiguration>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: VoidFunction): Promise<Subscriber>; unwatch(): Promise<void>; deployEvent(params: TvmTvmEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'from'> & Omit<Partial<SendInternalParams>, 'from'>): Promise<DelayedMessageExecution>; deriveEventAddress(params: TvmTvmEventConfigurationDeriveEventAddressAbiParams): Promise<Address>; get basicConfiguration(): TvmTvmEventConfigurationData['basicConfiguration']; get networkConfiguration(): TvmTvmEventConfigurationData['networkConfiguration']; get meta(): TvmTvmEventConfigurationData['meta']; get flags(): TvmTvmEventConfigurationData['flags']; decodeEvent(args: DecodeEventParams<typeof TvmTvmEventConfigurationAbi>): Promise<TvmTvmEventConfigurationDecodedEvent | undefined>; decodeTransaction(args: DecodeTransactionParams<typeof TvmTvmEventConfigurationAbi>): Promise<TvmTvmEventConfigurationDecodedTransaction | undefined>; decodeTransactionEvents(transaction: Transaction): Promise<TvmTvmEventConfigurationDecodedEvent[]>; }