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 TvmSolEventConfigurationAbi } from '../../models/tvm-sol-event-configuration/abi'; import { type TvmSolEventConfigurationDecodedEvent, type TvmSolEventConfigurationDecodedTransaction, type TvmSolEventConfigurationDeployEventAbiParams, type TvmSolEventConfigurationDeriveEventAddressAbiParams, type TvmSolEventConfigurationDetails, TvmSolEventConfigurationUtils } from '../../models/tvm-sol-event-configuration/TvmSolEventConfigurationUtils'; export interface TvmSolEventConfigurationCtorOptions { watchDebounceDelay?: number; } export interface TvmSolEventConfigurationCreateOptions extends TvmSolEventConfigurationCtorOptions, Syncable, Watchable { watchCallback?: VoidFunction; } export interface TvmSolEventConfigurationData extends TvmSolEventConfigurationDetails { ownerAddress?: Address; flags?: string; } export declare class TvmSolEventConfiguration extends SmartContractModel<TvmSolEventConfigurationData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<TvmSolEventConfigurationCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof TvmSolEventConfigurationUtils; /** * @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<TvmSolEventConfigurationCtorOptions>} [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<TvmSolEventConfigurationCtorOptions> | 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<TvmSolEventConfigurationCreateOptions>} [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<TvmSolEventConfigurationCreateOptions>, provider?: ProviderRpcClient): Promise<TvmSolEventConfiguration>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: VoidFunction): Promise<Subscriber>; unwatch(): Promise<void>; deployEvent(params: TvmSolEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'from'> & Omit<Partial<SendInternalParams>, 'from'>): Promise<DelayedMessageExecution>; deriveEventAddress(params: TvmSolEventConfigurationDeriveEventAddressAbiParams): Promise<Address>; get basicConfiguration(): TvmSolEventConfigurationData['basicConfiguration']; get networkConfiguration(): TvmSolEventConfigurationData['networkConfiguration']; get meta(): TvmSolEventConfigurationData['meta']; get flags(): TvmSolEventConfigurationData['flags']; decodeEvent(args: DecodeEventParams<typeof TvmSolEventConfigurationAbi>): Promise<TvmSolEventConfigurationDecodedEvent | undefined>; decodeTransaction(args: DecodeTransactionParams<typeof TvmSolEventConfigurationAbi>): Promise<TvmSolEventConfigurationDecodedTransaction | undefined>; decodeTransactionEvents(transaction: Transaction): Promise<TvmSolEventConfigurationDecodedEvent[]>; }