@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
42 lines (41 loc) • 1.75 kB
TypeScript
import { type Address, type FullContractState, type ProviderRpcClient } from 'everscale-inpage-provider';
export interface SolTvmEventNativeVoteData {
accountSeed: string;
blockTime: number;
eventData: string;
slot: string;
txSignature: string;
}
export interface SolTvmEventNativeDecodedData {
amount: string;
expectedEvers: string;
payload: string;
proxyAddress: Address;
recipientAddress: Address;
tokenAddress: Address;
tokenWalletAddress: Address;
value: string;
}
export interface SolTvmEventNativeEventInitData {
configuration: Address;
staking: Address;
voteData: SolTvmEventNativeVoteData;
}
export interface SolTvmEventNativeDetails {
balance: string;
confirms: string[];
empty: string[];
eventInitData: SolTvmEventNativeEventInitData;
initializer: Address;
meta: string;
rejects: string[];
requiredVotes: number;
status: string;
}
export declare abstract class SolTvmEventNativeUtils {
static getDecodedData(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<SolTvmEventNativeDecodedData>;
static getDetails(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<SolTvmEventNativeDetails>;
static getEventInitData(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<SolTvmEventNativeEventInitData>;
static roundNumber(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<number>;
static nonce(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<string>;
}