UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

25 lines (24 loc) 3.12 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 TvmSolEventConfigurationAbi } from '../../models/tvm-sol-event-configuration/abi'; export interface TvmSolEventConfigurationDeployEventAbiParams { eventVoteData: DecodedAbiFunctionInputs<typeof TvmSolEventConfigurationAbi, 'deployEvent'>['eventVoteData']; } export interface TvmSolEventConfigurationDeriveEventAddressAbiParams { eventVoteData: DecodedAbiFunctionInputs<typeof TvmSolEventConfigurationAbi, 'deriveEventAddress'>['eventVoteData']; } export interface TvmSolEventConfigurationDetails { basicConfiguration: DecodedAbiFunctionOutputs<typeof TvmSolEventConfigurationAbi, 'getDetails'>['_basicConfiguration']; meta: DecodedAbiFunctionOutputs<typeof TvmSolEventConfigurationAbi, 'getDetails'>['_meta']; networkConfiguration: DecodedAbiFunctionOutputs<typeof TvmSolEventConfigurationAbi, 'getDetails'>['_networkConfiguration']; } export type TvmSolEventConfigurationDecodedEvent = DecodedEvent<typeof TvmSolEventConfigurationAbi, AbiEventName<typeof TvmSolEventConfigurationAbi>>; export type TvmSolEventConfigurationDecodedTransaction = DecodedTransaction<typeof TvmSolEventConfigurationAbi, AbiFunctionName<typeof TvmSolEventConfigurationAbi>>; export declare abstract class TvmSolEventConfigurationUtils { static deployEvent(provider: ProviderRpcClient, eventConfigurationAddress: Address | string, params: TvmSolEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'amount' | 'from'> & Omit<Partial<SendInternalParams>, 'amount' | 'from'>): Promise<DelayedMessageExecution>; static deriveEventAddress(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, params: TvmSolEventConfigurationDeriveEventAddressAbiParams, cachedState?: FullContractState): Promise<Address>; static getDetails(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, cachedState?: FullContractState): Promise<TvmSolEventConfigurationDetails>; static getFlags(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, cachedState?: FullContractState): Promise<string | undefined>; static decodeEvent(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeEventParams<typeof TvmSolEventConfigurationAbi>): Promise<TvmSolEventConfigurationDecodedEvent | undefined>; static decodeTransaction(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeTransactionParams<typeof TvmSolEventConfigurationAbi>): Promise<TvmSolEventConfigurationDecodedTransaction | undefined>; static decodeTransactionEvents(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, transaction: Transaction): Promise<TvmSolEventConfigurationDecodedEvent[]>; }