@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
30 lines (29 loc) • 3.35 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 SolTvmEventConfigurationAbi } from '../../models/sol-tvm-event-configuration/abi';
export interface SolTvmEventConfigurationDeployEventAbiParams {
eventVoteData: DecodedAbiFunctionInputs<typeof SolTvmEventConfigurationAbi, 'deployEvent'>['eventVoteData'];
}
export interface SolTvmEventConfigurationDeriveEventAddressAbiParams {
eventVoteData: DecodedAbiFunctionInputs<typeof SolTvmEventConfigurationAbi, 'deriveEventAddress'>['eventVoteData'];
}
export interface SolTvmEventConfigurationDetails {
basicConfiguration: DecodedAbiFunctionOutputs<typeof SolTvmEventConfigurationAbi, 'getDetails'>['_basicConfiguration'];
meta: DecodedAbiFunctionOutputs<typeof SolTvmEventConfigurationAbi, 'getDetails'>['_meta'];
networkConfiguration: {
program: DecodedAbiFunctionOutputs<typeof SolTvmEventConfigurationAbi, 'getDetails'>['_networkConfiguration']['program'];
proxy: DecodedAbiFunctionOutputs<typeof SolTvmEventConfigurationAbi, 'getDetails'>['_networkConfiguration']['proxy'];
endTimestamp: number;
startTimestamp: number;
};
}
export type SolTvmEventConfigurationDecodedEvent = DecodedEvent<typeof SolTvmEventConfigurationAbi, AbiEventName<typeof SolTvmEventConfigurationAbi>>;
export type SolTvmEventConfigurationDecodedTransaction = DecodedTransaction<typeof SolTvmEventConfigurationAbi, AbiFunctionName<typeof SolTvmEventConfigurationAbi>>;
export declare abstract class SolTvmEventConfigurationUtils {
static deployEvent(provider: ProviderRpcClient, eventConfigurationAddress: Address | string, params: SolTvmEventConfigurationDeployEventAbiParams, args: Pick<SendInternalParams, 'amount' | 'from'> & Omit<Partial<SendInternalParams>, 'amount' | 'from'>): Promise<DelayedMessageExecution>;
static deriveEventAddress(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, params: SolTvmEventConfigurationDeriveEventAddressAbiParams, cachedState?: FullContractState): Promise<Address>;
static getDetails(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, cachedState?: FullContractState): Promise<SolTvmEventConfigurationDetails>;
static getFlags(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, cachedState?: FullContractState): Promise<string | undefined>;
static decodeEvent(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeEventParams<typeof SolTvmEventConfigurationAbi>): Promise<SolTvmEventConfigurationDecodedEvent | undefined>;
static decodeTransaction(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeTransactionParams<typeof SolTvmEventConfigurationAbi>): Promise<SolTvmEventConfigurationDecodedTransaction | undefined>;
static decodeTransactionEvents(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, transaction: Transaction): Promise<SolTvmEventConfigurationDecodedEvent[]>;
}