@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
47 lines (46 loc) • 1.85 kB
TypeScript
import { type Address, type FullContractState, type ProviderRpcClient } from 'everscale-inpage-provider';
export interface EvmTvmEventAlienVoteData {
eventBlock: string;
eventBlockNumber: number;
eventData: string;
eventIndex: number;
eventTransaction: string;
}
export interface EvmTvmEventAlienDecodedData {
amount: string;
baseChainId: string;
baseToken: string;
decimals: number;
expectedEvers: string;
name: string;
payload: string;
proxyAddress: Address;
recipientAddress: Address;
symbol: string;
tokenAddress: Address;
value: string;
}
export interface EvmTvmEventAlienEventInitData {
chainId: string;
configuration: Address;
staking: Address;
voteData: EvmTvmEventAlienVoteData;
}
export interface EvmTvmEventAlienDetails {
balance: string;
confirms: string[];
empty: string[];
eventInitData: EvmTvmEventAlienEventInitData;
initializer: Address;
meta: string;
rejects: string[];
requiredVotes: string;
status: string;
}
export declare abstract class EvmTvmEventAlienUtils {
static getDecodedData(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<EvmTvmEventAlienDecodedData>;
static getDetails(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<EvmTvmEventAlienDetails>;
static getEventInitData(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<EvmTvmEventAlienEventInitData>;
static roundNumber(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<number>;
static nonce(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<string>;
}