UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

45 lines (44 loc) 1.79 kB
import { type Address, type FullContractState, type ProviderRpcClient } from 'everscale-inpage-provider'; export interface SolTvmEventAlienVoteData { accountSeed: string; blockTime: number; eventData: string; slot: string; txSignature: string; } export interface SolTvmEventAlienDecodedData { amount: string; baseToken: string; decimals: number; expectedEvers: string; name: string; payload: string; proxyAddress: Address; recipientAddress: Address; symbol: string; tokenAddress: Address; value: string; } export interface SolTvmEventAlienEventInitData { configuration: Address; staking: Address; voteData: SolTvmEventAlienVoteData; } export interface SolTvmEventAlienDetails { balance: string; confirms: string[]; empty: string[]; eventInitData: SolTvmEventAlienEventInitData; initializer: Address; meta: string; rejects: string[]; requiredVotes: number; status: string; } export declare abstract class SolTvmEventAlienUtils { static getDecodedData(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<SolTvmEventAlienDecodedData>; static getDetails(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<SolTvmEventAlienDetails>; static getEventInitData(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<SolTvmEventAlienEventInitData>; static roundNumber(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<number>; static nonce(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<string>; }