UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

16 lines (15 loc) 2.13 kB
import { type AbiEventName, type AbiFunctionName, type Address, type DecodeEventParams, type DecodeTransactionParams, type DecodedAbiFunctionOutputs, type DecodedEvent, type DecodedTransaction, type FullContractState, type ProviderRpcClient, type Transaction } from 'everscale-inpage-provider'; import { type NativeProxyV6Abi } from '../../models/native-proxy/abi'; export type NativeProxyV6Configurations = DecodedAbiFunctionOutputs<typeof NativeProxyV6Abi, 'getConfiguration'>; export type NativeProxyV6DecodedEvent = DecodedEvent<typeof NativeProxyV6Abi, AbiEventName<typeof NativeProxyV6Abi>>; export type NativeProxyV6DecodedTransaction = DecodedTransaction<typeof NativeProxyV6Abi, AbiFunctionName<typeof NativeProxyV6Abi>>; export declare abstract class NativeProxyV6Utils { static getConfiguration(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<NativeProxyV6Configurations>; static getTvmEvmConfiguration(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<Address>; static getSolTvmConfiguration(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<Address>; static getTvmSolConfiguration(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<Address>; static getDexMiddleware(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<Address>; static decodeEvent(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeEventParams<typeof NativeProxyV6Abi>): Promise<NativeProxyV6DecodedEvent | undefined>; static decodeTransaction(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeTransactionParams<typeof NativeProxyV6Abi>): Promise<NativeProxyV6DecodedTransaction | undefined>; static decodeTransactionEvents(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, transaction: Transaction): Promise<NativeProxyV6DecodedEvent[]>; }