@broxus/js-core
Version:
MobX-based JavaScript Core library
16 lines (15 loc) • 1.78 kB
TypeScript
import { type AbiEventName, type AbiFunctionName, type Address, type DecodeEventParams, type DecodeTransactionParams, type DecodedAbiFunctionInputs, type DecodedEvent, type DecodedTransaction, type DelayedMessageExecution, type ProviderRpcClient, type SendInternalParams, type Transaction } from 'everscale-inpage-provider';
import { type TokenFactoryAbi } from '../../models/tvm-token-factory/abi';
export interface TvmTokenFactoryCreateTokenAbiParams extends Omit<DecodedAbiFunctionInputs<typeof TokenFactoryAbi, 'createToken'>, 'deployWalletValue' | 'initialSupplyTo' | 'remainingGasTo'> {
deployWalletValue?: string | number;
initialSupplyTo?: Address | string;
remainingGasTo: Address | string;
}
export type TvmTokenFactoryDecodedEvent = DecodedEvent<typeof TokenFactoryAbi, AbiEventName<typeof TokenFactoryAbi>>;
export type TvmTokenFactoryDecodedTransaction = DecodedTransaction<typeof TokenFactoryAbi, AbiFunctionName<typeof TokenFactoryAbi>>;
export declare abstract class TvmTokenFactoryUtils {
static createToken(provider: ProviderRpcClient, factoryAddress: Address | string, params: TvmTokenFactoryCreateTokenAbiParams, args?: Partial<SendInternalParams>): Promise<DelayedMessageExecution>;
static decodeEvent(connection: ProviderRpcClient, factoryAddress: Address | string, args: DecodeEventParams<typeof TokenFactoryAbi>): Promise<TvmTokenFactoryDecodedEvent | undefined>;
static decodeTransaction(connection: ProviderRpcClient, factoryAddress: Address | string, args: DecodeTransactionParams<typeof TokenFactoryAbi>): Promise<TvmTokenFactoryDecodedTransaction | undefined>;
static decodeTransactionEvents(connection: ProviderRpcClient, factoryAddress: Address | string, transaction: Transaction): Promise<TvmTokenFactoryDecodedEvent[]>;
}