UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

55 lines (54 loc) 4.14 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 DelayedMessageExecution, type ProviderRpcClient, type SendInternalParams, type Subscriber, type Transaction } from 'everscale-inpage-provider'; import { type EvmTonEventConfigurationAbi } from '../../models/evm-ton-event-configuration/abi'; import { type EvmTonEventConfigurationDecodedEvent, type EvmTonEventConfigurationDecodedTransaction, type EvmTonEventConfigurationDeployEventAbiParams, type EvmTonEventConfigurationDeriveEventAddressAbiParams, type EvmTonEventConfigurationDetails, EvmTonEventConfigurationUtils } from '../../models/evm-ton-event-configuration/EvmTonEventConfigurationUtils'; export interface EvmTonEventConfigurationCtorOptions { watchDebounceDelay?: number; } export interface EvmTonEventConfigurationCreateOptions extends EvmTonEventConfigurationCtorOptions, Syncable, Watchable { watchCallback?: VoidFunction; } export interface EvmTonEventConfigurationData extends EvmTonEventConfigurationDetails { flags: string; ownerAddress?: Address; } export declare class EvmTonEventConfiguration extends SmartContractModel<EvmTonEventConfigurationData> { protected readonly _connection: ProviderRpcClient; protected readonly options?: Readonly<EvmTonEventConfigurationCtorOptions> | undefined; protected readonly _provider?: ProviderRpcClient | undefined; static Utils: typeof EvmTonEventConfigurationUtils; /** * @param {ProviderRpcClient} _connection * Standalone RPC client that doesn't require connection to the TVM wallet provider * @param {Address | string} address * Alien Event Configuration root address * @param {Readonly<EvmTonEventConfigurationCtorOptions>} [options] * (optional) Alien 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<EvmTonEventConfigurationCtorOptions> | 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 Configuration root address * @param {Readonly<EvmTonEventConfigurationCreateOptions>} [options] * (optional) Alien 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<EvmTonEventConfigurationCreateOptions>, provider?: ProviderRpcClient): Promise<EvmTonEventConfiguration>; sync(options?: Forceable & Silentable): Promise<void>; watch(callback?: SmartContractWatchCallback<EvmTonEventConfigurationData>): Promise<Subscriber>; unwatch(): Promise<void>; deployEvent(params: EvmTonEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'from'> & Omit<Partial<SendInternalParams>, 'from'>): Promise<DelayedMessageExecution>; deriveEventAddress(params: EvmTonEventConfigurationDeriveEventAddressAbiParams): Promise<Address>; get basicConfiguration(): EvmTonEventConfigurationData['basicConfiguration']; get networkConfiguration(): EvmTonEventConfigurationData['networkConfiguration']; get meta(): EvmTonEventConfigurationData['meta']; get flags(): EvmTonEventConfigurationData['flags']; decodeEvent(args: DecodeEventParams<typeof EvmTonEventConfigurationAbi>): Promise<EvmTonEventConfigurationDecodedEvent | undefined>; decodeTransaction(args: DecodeTransactionParams<typeof EvmTonEventConfigurationAbi>): Promise<EvmTonEventConfigurationDecodedTransaction | undefined>; decodeTransactionEvents(transaction: Transaction): Promise<EvmTonEventConfigurationDecodedEvent[]>; }