@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
47 lines (46 loc) • 3.99 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 SolTvmEventConfigurationAbi } from '../../models/sol-tvm-event-configuration/abi';
import { type SolTvmEventConfigurationDecodedEvent, type SolTvmEventConfigurationDecodedTransaction, type SolTvmEventConfigurationDeployEventAbiParams, type SolTvmEventConfigurationDeriveEventAddressAbiParams, type SolTvmEventConfigurationDetails, SolTvmEventConfigurationUtils } from '../../models/sol-tvm-event-configuration/SolTvmEventConfigurationUtils';
export interface SolTvmEventConfigurationCtorOptions {
watchDebounceDelay?: number;
}
export interface SolTvmEventConfigurationCreateOptions extends SolTvmEventConfigurationCtorOptions, Syncable, Watchable {
watchCallback?: VoidFunction;
}
export interface SolTvmEventConfigurationData extends SolTvmEventConfigurationDetails {
ownerAddress?: Address;
flags?: string;
}
export declare class SolTvmEventConfiguration extends SmartContractModel<SolTvmEventConfigurationData> {
protected readonly _connection: ProviderRpcClient;
protected readonly options?: Readonly<SolTvmEventConfigurationCtorOptions> | undefined;
protected readonly _provider?: ProviderRpcClient | undefined;
static Utils: typeof SolTvmEventConfigurationUtils;
/**
* @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<SolTvmEventConfigurationCtorOptions>} [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<SolTvmEventConfigurationCtorOptions> | 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<SolTvmEventConfigurationCreateOptions>} [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<SolTvmEventConfigurationCreateOptions>, provider?: ProviderRpcClient): Promise<SolTvmEventConfiguration>;
sync(options?: Forceable & Silentable): Promise<void>;
watch(callback?: VoidFunction): Promise<Subscriber>;
unwatch(): Promise<void>;
deployEvent(params: SolTvmEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'from'> & Omit<Partial<SendInternalParams>, 'from'>): Promise<DelayedMessageExecution>;
deriveEventAddress(params: SolTvmEventConfigurationDeriveEventAddressAbiParams): Promise<Address>;
get basicConfiguration(): SolTvmEventConfigurationData['basicConfiguration'];
get networkConfiguration(): SolTvmEventConfigurationData['networkConfiguration'];
get meta(): SolTvmEventConfigurationData['meta'];
get flags(): SolTvmEventConfigurationData['flags'];
decodeEvent(args: DecodeEventParams<typeof SolTvmEventConfigurationAbi>): Promise<SolTvmEventConfigurationDecodedEvent | undefined>;
decodeTransaction(args: DecodeTransactionParams<typeof SolTvmEventConfigurationAbi>): Promise<SolTvmEventConfigurationDecodedTransaction | undefined>;
decodeTransactionEvents(transaction: Transaction): Promise<SolTvmEventConfigurationDecodedEvent[]>;
}