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 TonEvmEventConfigurationAbi } from '../../models/ton-evm-event-configuration/abi'; import { type TonEvmEventConfigurationDecodedEvent, type TonEvmEventConfigurationDecodedTransaction, type TonEvmEventConfigurationDeployEventAbiParams, type TonEvmEventConfigurationDeriveEventAddressAbiParams, type TonEvmEventConfigurationDetails, TonEvmEventConfigurationUtils } from '../../models/ton-evm-event-configuration/TonEvmEventConfigurationUtils'; export interface TonEvmEventConfigurationCtorOptions { watchDebounceDelay?: number; } export interface TonEvmEventConfigurationCreateOptions extends TonEvmEventConfigurationCtorOptions, Syncable, Watchable { watchCallback?: VoidFunction; } export interface TonEvmEventConfigurationData extends TonEvmEventConfigurationDetails { ownerAddress?: Address; flags?: string; } export declare class TonEvmEventConfiguration extends SmartContractModel<TonEvmEventConfigurationData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<TonEvmEventConfigurationCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof TonEvmEventConfigurationUtils; /** * @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<TonEvmEventConfigurationCtorOptions>} [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<TonEvmEventConfigurationCtorOptions> | 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<TonEvmEventConfigurationCreateOptions>} [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<TonEvmEventConfigurationCreateOptions>, provider?: ProviderRpcClient): Promise<TonEvmEventConfiguration>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: VoidFunction): Promise<Subscriber>; unwatch(): Promise<void>; deployEvent(params: TonEvmEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'from'> & Omit<Partial<SendInternalParams>, 'from'>): Promise<DelayedMessageExecution>; deriveEventAddress(params: TonEvmEventConfigurationDeriveEventAddressAbiParams): Promise<Address>; get basicConfiguration(): TonEvmEventConfigurationData['basicConfiguration']; get networkConfiguration(): TonEvmEventConfigurationData['networkConfiguration']; get meta(): TonEvmEventConfigurationData['meta']; get flags(): TonEvmEventConfigurationData['flags']; decodeEvent(args: DecodeEventParams<typeof TonEvmEventConfigurationAbi>): Promise<TonEvmEventConfigurationDecodedEvent | undefined>; decodeTransaction(args: DecodeTransactionParams<typeof TonEvmEventConfigurationAbi>): Promise<TonEvmEventConfigurationDecodedTransaction | undefined>; decodeTransactionEvents(transaction: Transaction): Promise<TonEvmEventConfigurationDecodedEvent[]>; }