@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
32 lines (31 loc) • 2.79 kB
TypeScript
import { type AbiEventName, type AbiFunctionName, type Address, type DecodeEventParams, type DecodeTransactionParams, type DecodedEvent, type DecodedTransaction, type FullContractState, type ProviderRpcClient, type Transaction } from 'everscale-inpage-provider';
import { type EvmTvmBaseEventDetails, type EvmTvmBaseEventInitData } from '../../models/evm-tvm-base-event';
import { type EvmTvmEventNativeAbi } from '../../models/evm-tvm-event-native/abi';
export interface EvmTvmEventNativeDecodedData {
amount: string;
expectedGas: string;
payload: string;
proxyAddress: Address;
recipientAddress: Address;
tokenAddress: Address;
tokenWalletAddress: Address;
value: string;
}
export interface EvmTvmEventNativeDetails extends EvmTvmBaseEventDetails {
}
export interface EvmTvmEventNativeInitData extends EvmTvmBaseEventInitData {
}
export type EvmTvmEventNativeDecodedEvent = DecodedEvent<typeof EvmTvmEventNativeAbi, AbiEventName<typeof EvmTvmEventNativeAbi>>;
export type EvmTvmEventNativeDecodedTransaction = DecodedTransaction<typeof EvmTvmEventNativeAbi, AbiFunctionName<typeof EvmTvmEventNativeAbi>>;
export declare abstract class EvmTvmEventNativeUtils {
static getDecodedData(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<EvmTvmEventNativeDecodedData>;
static getDetails(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<EvmTvmEventNativeDetails>;
static getEventInitData(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<EvmTvmEventNativeInitData>;
static nonce(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<string>;
static recipient(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<Address>;
static relayRound(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<Address>;
static roundNumber(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<number>;
static decodeEvent(connection: ProviderRpcClient, eventAddress: Address | string, args: DecodeEventParams<typeof EvmTvmEventNativeAbi>): Promise<EvmTvmEventNativeDecodedEvent | undefined>;
static decodeTransaction(connection: ProviderRpcClient, eventAddress: Address | string, args: DecodeTransactionParams<typeof EvmTvmEventNativeAbi>): Promise<EvmTvmEventNativeDecodedTransaction | undefined>;
static decodeTransactionEvents(connection: ProviderRpcClient, eventAddress: Address | string, transaction: Transaction): Promise<EvmTvmEventNativeDecodedEvent[]>;
}