@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
30 lines (29 loc) • 3.34 kB
TypeScript
import { type AbiEventName, type AbiFunctionName, type Address, type DecodeEventParams, type DecodeTransactionParams, type DecodedAbiFunctionInputs, type DecodedAbiFunctionOutputs, type DecodedEvent, type DecodedTransaction, type DelayedMessageExecution, type FullContractState, type ProviderRpcClient, type SendInternalParams, type Transaction } from 'everscale-inpage-provider';
import { type TvmTvmEventConfigurationAbi } from '../../models/tvm-tvm-event-configuration/abi';
export interface TvmTvmEventConfigurationDeployEventAbiParams {
eventVoteData: DecodedAbiFunctionInputs<typeof TvmTvmEventConfigurationAbi, 'deployEvent'>['_eventVoteData'];
}
export interface TvmTvmEventConfigurationDeriveEventAddressAbiParams {
msgHash: DecodedAbiFunctionInputs<typeof TvmTvmEventConfigurationAbi, 'deriveEventAddress'>['_msgHash'];
}
export interface TvmTvmEventConfigurationDetails {
basicConfiguration: DecodedAbiFunctionOutputs<typeof TvmTvmEventConfigurationAbi, 'getDetails'>['_basicConfiguration'];
meta: DecodedAbiFunctionOutputs<typeof TvmTvmEventConfigurationAbi, 'getDetails'>['_meta'];
networkConfiguration: {
chainId: DecodedAbiFunctionOutputs<typeof TvmTvmEventConfigurationAbi, 'getDetails'>['_networkConfiguration']['chainId'];
endTimestamp: number;
proxy: DecodedAbiFunctionOutputs<typeof TvmTvmEventConfigurationAbi, 'getDetails'>['_networkConfiguration']['proxy'];
startTimestamp: number;
};
}
export type TvmTvmEventConfigurationDecodedEvent = DecodedEvent<typeof TvmTvmEventConfigurationAbi, AbiEventName<typeof TvmTvmEventConfigurationAbi>>;
export type TvmTvmEventConfigurationDecodedTransaction = DecodedTransaction<typeof TvmTvmEventConfigurationAbi, AbiFunctionName<typeof TvmTvmEventConfigurationAbi>>;
export declare abstract class TvmTvmEventConfigurationUtils {
static deployEvent(provider: ProviderRpcClient, eventConfigurationAddress: Address | string, params: TvmTvmEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'amount' | 'from'> & Omit<Partial<SendInternalParams>, 'amount' | 'from'>): Promise<DelayedMessageExecution>;
static deriveEventAddress(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, params: TvmTvmEventConfigurationDeriveEventAddressAbiParams, cachedState?: FullContractState): Promise<Address>;
static getDetails(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, cachedState?: FullContractState): Promise<TvmTvmEventConfigurationDetails>;
static getFlags(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, cachedState?: FullContractState): Promise<string | undefined>;
static decodeEvent(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeEventParams<typeof TvmTvmEventConfigurationAbi>): Promise<TvmTvmEventConfigurationDecodedEvent | undefined>;
static decodeTransaction(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeTransactionParams<typeof TvmTvmEventConfigurationAbi>): Promise<TvmTvmEventConfigurationDecodedTransaction | undefined>;
static decodeTransactionEvents(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, transaction: Transaction): Promise<TvmTvmEventConfigurationDecodedEvent[]>;
}