@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
53 lines (52 loc) • 4.06 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 EvmTvmEventConfigurationAbi } from '../../models/evm-tvm-event-configuration/abi';
import { type EvmTvmEventConfigurationDecodedEvent, type EvmTvmEventConfigurationDecodedTransaction, type EvmTvmEventConfigurationDeployEventAbiParams, type EvmTvmEventConfigurationDeriveEventAddressAbiParams, type EvmTvmEventConfigurationDetails, EvmTvmEventConfigurationUtils } from '../../models/evm-tvm-event-configuration/EvmTvmEventConfigurationUtils';
export interface EvmTvmEventConfigurationCtorOptions {
watchDebounceDelay?: number;
}
export interface EvmTvmEventConfigurationCreateOptions extends EvmTvmEventConfigurationCtorOptions, Syncable, Watchable {
watchCallback?: VoidFunction;
}
export interface EvmTvmEventConfigurationData extends EvmTvmEventConfigurationDetails {
ownerAddress?: Address;
flags: string;
}
export declare class EvmTvmEventConfiguration extends SmartContractModel<EvmTvmEventConfigurationData> {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<EvmTvmEventConfigurationCtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof EvmTvmEventConfigurationUtils;
/**
* @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<EvmTvmEventConfigurationCtorOptions>} [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<EvmTvmEventConfigurationCtorOptions> | 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<EvmTvmEventConfigurationCreateOptions>} [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<EvmTvmEventConfigurationCreateOptions>, provider?: ProviderRpcClient): Promise<EvmTvmEventConfiguration>;
sync(options?: Forceable & Silentable): Promise<void>;
watch(callback?: VoidFunction): Promise<Subscriber>;
unwatch(): Promise<void>;
deployEvent(params: EvmTvmEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'from'> & Omit<Partial<SendInternalParams>, 'from'>): Promise<DelayedMessageExecution>;
deriveEventAddress(params: EvmTvmEventConfigurationDeriveEventAddressAbiParams): Promise<Address>;
get basicConfiguration(): EvmTvmEventConfigurationData['basicConfiguration'];
get networkConfiguration(): EvmTvmEventConfigurationData['networkConfiguration'];
get meta(): EvmTvmEventConfigurationData['meta'];
get flags(): EvmTvmEventConfigurationData['flags'];
decodeEvent(args: DecodeEventParams<typeof EvmTvmEventConfigurationAbi>): Promise<EvmTvmEventConfigurationDecodedEvent | undefined>;
decodeTransaction(args: DecodeTransactionParams<typeof EvmTvmEventConfigurationAbi>): Promise<EvmTvmEventConfigurationDecodedTransaction | undefined>;
decodeTransactionEvents(transaction: Transaction): Promise<EvmTvmEventConfigurationDecodedEvent[]>;
}