UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

30 lines (29 loc) 3.36 kB
import { type AbiEventName, type AbiFunctionName, type Address, type DecodeEventParams, type DecodeTransactionParams, type DecodedAbiFunctionInputs, type DecodedAbiFunctionOutputs, type DecodedEvent, type DecodedTransaction, type DelayedMessageExecution, type FullContractState, type ProviderRpcClient, type SendInternalParams, type Transaction } from 'everscale-inpage-provider'; import { type TvmEvmEventConfigurationAbi } from '../../models/tvm-evm-event-configuration/abi'; export interface TvmEvmEventConfigurationDeployEventAbiParams { eventVoteData: DecodedAbiFunctionInputs<typeof TvmEvmEventConfigurationAbi, 'deployEvent'>['eventVoteData']; } export interface TvmEvmEventConfigurationDeriveEventAddressAbiParams { eventVoteData: DecodedAbiFunctionInputs<typeof TvmEvmEventConfigurationAbi, 'deriveEventAddress'>['eventVoteData']; } export interface TvmEvmEventConfigurationDetails { basicConfiguration: DecodedAbiFunctionOutputs<typeof TvmEvmEventConfigurationAbi, 'getDetails'>['_basicConfiguration']; meta: DecodedAbiFunctionOutputs<typeof TvmEvmEventConfigurationAbi, 'getDetails'>['_meta']; networkConfiguration: { endTimestamp: number; eventEmitter: DecodedAbiFunctionOutputs<typeof TvmEvmEventConfigurationAbi, 'getDetails'>['_networkConfiguration']['eventEmitter']; proxy: DecodedAbiFunctionOutputs<typeof TvmEvmEventConfigurationAbi, 'getDetails'>['_networkConfiguration']['proxy']; startTimestamp: number; }; } export type TvmEvmEventConfigurationDecodedEvent = DecodedEvent<typeof TvmEvmEventConfigurationAbi, AbiEventName<typeof TvmEvmEventConfigurationAbi>>; export type TvmEvmEventConfigurationDecodedTransaction = DecodedTransaction<typeof TvmEvmEventConfigurationAbi, AbiFunctionName<typeof TvmEvmEventConfigurationAbi>>; export declare abstract class TvmEvmEventConfigurationUtils { static deployEvent(provider: ProviderRpcClient, eventConfigurationAddress: Address | string, params: TvmEvmEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'amount' | 'from'> & Omit<Partial<SendInternalParams>, 'amount' | 'from'>): Promise<DelayedMessageExecution>; static deriveEventAddress(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, params: TvmEvmEventConfigurationDeriveEventAddressAbiParams, cachedState?: FullContractState): Promise<Address>; static getDetails(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, cachedState?: FullContractState): Promise<TvmEvmEventConfigurationDetails>; static getFlags(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, cachedState?: FullContractState): Promise<string | undefined>; static decodeEvent(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeEventParams<typeof TvmEvmEventConfigurationAbi>): Promise<TvmEvmEventConfigurationDecodedEvent | undefined>; static decodeTransaction(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeTransactionParams<typeof TvmEvmEventConfigurationAbi>): Promise<TvmEvmEventConfigurationDecodedTransaction | undefined>; static decodeTransactionEvents(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, transaction: Transaction): Promise<TvmEvmEventConfigurationDecodedEvent[]>; }