UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

35 lines (34 loc) 3.04 kB
import { type AbiEventName, type AbiFunctionName, type Address, type DecodeEventParams, type DecodeTransactionParams, type DecodedAbiFunctionInputs, 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: { eventABI: string; eventCode: string; eventInitialBalance: string; staking: Address; }; meta: string; networkConfiguration: { endTimestamp: number; eventEmitter: Address; proxy: string; 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, 'from'> & Omit<Partial<SendInternalParams>, '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[]>; }