@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
43 lines (42 loc) • 1.79 kB
TypeScript
import { type Address, type FullContractState, type ProviderRpcClient } from 'everscale-inpage-provider';
export interface EvmTvmEventNativeVoteData {
eventBlock: string;
eventBlockNumber: number;
eventData: string;
eventIndex: number;
eventTransaction: string;
}
export interface EvmTvmEventNativeDecodedData {
amount: string;
expectedEvers: string;
payload: string;
proxyAddress: Address;
recipientAddress: Address;
tokenAddress: Address;
tokenWalletAddress: Address;
value: string;
}
export interface EvmTvmEventNativeEventInitData {
chainId: string;
configuration: Address;
staking: Address;
voteData: EvmTvmEventNativeVoteData;
}
export interface EvmTvmEventNativeDetails {
balance: string;
confirms: string[];
empty: string[];
eventInitData: EvmTvmEventNativeEventInitData;
initializer: Address;
meta: string;
rejects: string[];
requiredVotes: string;
status: string;
}
export declare abstract class EvmTvmEventNativeUtils {
static getEventInitData(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<EvmTvmEventNativeEventInitData>;
static getDecodedData(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<EvmTvmEventNativeDecodedData>;
static getDetails(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<EvmTvmEventNativeDetails>;
static roundNumber(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<number>;
static nonce(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<string>;
}