@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
31 lines (30 loc) • 2.65 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 SolTvmBaseEventDetails, type SolTvmBaseEventInitData } from '../../models/sol-tvm-base-event';
import { type SolTvmEventNativeAbi } from '../../models/sol-tvm-event-native/abi';
export interface SolTvmEventNativeDecodedData {
amount: string;
expectedGas: string;
payload: string;
proxyAddress: Address;
recipientAddress: Address;
tokenAddress: Address;
tokenWalletAddress: Address;
value: string;
}
export interface SolTvmEventNativeDetails extends SolTvmBaseEventDetails {
}
export interface SolTvmEventNativeInitData extends SolTvmBaseEventInitData {
}
export type SolTvmEventNativeDecodedEvent = DecodedEvent<typeof SolTvmEventNativeAbi, AbiEventName<typeof SolTvmEventNativeAbi>>;
export type SolTvmEventNativeDecodedTransaction = DecodedTransaction<typeof SolTvmEventNativeAbi, AbiFunctionName<typeof SolTvmEventNativeAbi>>;
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<SolTvmEventNativeInitData>;
static nonce(connection: ProviderRpcClient, eventAddress: Address | string, cachedState?: FullContractState): Promise<string>;
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 SolTvmEventNativeAbi>): Promise<SolTvmEventNativeDecodedEvent | undefined>;
static decodeTransaction(connection: ProviderRpcClient, eventAddress: Address | string, args: DecodeTransactionParams<typeof SolTvmEventNativeAbi>): Promise<SolTvmEventNativeDecodedTransaction | undefined>;
static decodeTransactionEvents(connection: ProviderRpcClient, eventAddress: Address | string, transaction: Transaction): Promise<SolTvmEventNativeDecodedEvent[]>;
}