@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
47 lines (46 loc) • 4 kB
TypeScript
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 TvmEvmEventConfigurationAbi } from '../../models/tvm-evm-event-configuration/abi';
import { type TvmEvmEventConfigurationDecodedEvent, type TvmEvmEventConfigurationDecodedTransaction, type TvmEvmEventConfigurationDeployEventAbiParams, type TvmEvmEventConfigurationDeriveEventAddressAbiParams, type TvmEvmEventConfigurationDetails, TvmEvmEventConfigurationUtils } from '../../models/tvm-evm-event-configuration/TvmEvmEventConfigurationUtils';
export interface TvmEvmEventConfigurationCtorOptions {
watchDebounceDelay?: number;
}
export interface TvmEvmEventConfigurationCreateOptions extends TvmEvmEventConfigurationCtorOptions, Syncable, Watchable {
watchCallback?: VoidFunction;
}
export interface TvmEvmEventConfigurationData extends TvmEvmEventConfigurationDetails {
ownerAddress?: Address;
flags?: string;
}
export declare class TvmEvmEventConfiguration extends SmartContractModel<TvmEvmEventConfigurationData> {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<TvmEvmEventConfigurationCtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof TvmEvmEventConfigurationUtils;
/**
* @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<TvmEvmEventConfigurationCtorOptions>} [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<TvmEvmEventConfigurationCtorOptions> | 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<TvmEvmEventConfigurationCreateOptions>} [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<TvmEvmEventConfigurationCreateOptions>, provider?: ProviderRpcClient): Promise<TvmEvmEventConfiguration>;
sync(options?: Forceable & Silentable): Promise<void>;
watch(callback?: VoidFunction): Promise<Subscriber>;
unwatch(): Promise<void>;
deployEvent(params: TvmEvmEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'from'> & Omit<Partial<SendInternalParams>, 'from'>): Promise<DelayedMessageExecution>;
deriveEventAddress(params: TvmEvmEventConfigurationDeriveEventAddressAbiParams): Promise<Address>;
get basicConfiguration(): TvmEvmEventConfigurationData['basicConfiguration'];
get networkConfiguration(): TvmEvmEventConfigurationData['networkConfiguration'];
get meta(): TvmEvmEventConfigurationData['meta'];
get flags(): TvmEvmEventConfigurationData['flags'];
decodeEvent(args: DecodeEventParams<typeof TvmEvmEventConfigurationAbi>): Promise<TvmEvmEventConfigurationDecodedEvent | undefined>;
decodeTransaction(args: DecodeTransactionParams<typeof TvmEvmEventConfigurationAbi>): Promise<TvmEvmEventConfigurationDecodedTransaction | undefined>;
decodeTransactionEvents(transaction: Transaction): Promise<TvmEvmEventConfigurationDecodedEvent[]>;
}