import type { Abi } from "@polkadot/api-contract/Abi"; import type { ContractSubmittableResult } from "@polkadot/api-contract/base/Contract"; import type { AbiMessage, ContractCallOutcome, ContractOptions, DecodedEvent } from "@polkadot/api-contract/types"; import type { SubmittableResult } from "@polkadot/api/submittable"; import type { ApiBase } from "@polkadot/api/types"; import type { Registry } from "@polkadot/types-codec/types/registry"; import type { AccountId, Event, EventRecord, StorageDeposit, WeightV2 } from "@polkadot/types/interfaces"; import type { AnyJson } from "@polkadot/types/types/codec"; import { BN } from "@polkadot/util/bn"; import { type Logger, ProsopoContractError } from "@prosopo/common"; export declare function getEventNameFromMethodName(contractMethodName: string): string; export declare function getEventsFromMethodName(response: ContractSubmittableResult, contractMethodName: string): AnyJson | DecodedEvent[] | any; export declare function encodeStringArgs(abi: Abi, methodObj: AbiMessage, args: any[]): Uint8Array[]; export declare function getContractError(response: ContractCallOutcome): string | undefined; export declare function stringToHexPadded(data: string): string; export declare function decodeEvents(contractAddress: AccountId, records: EventRecord[], abi: Abi): DecodedEvent[] | undefined; export declare function dispatchErrorHandler(registry: Registry, event: EventRecord): ProsopoContractError; export declare const GAS_INCREASE_FACTOR = 2; export declare function getOptions(api: ApiBase<"promise">, isMutating?: boolean, value?: BN, gasLimit?: WeightV2, storageDeposit?: StorageDeposit, increaseGas?: boolean, gasIncreaseFactor?: number): ContractOptions; export declare function filterAndDecodeContractEvents(result: SubmittableResult, abi: Abi, logger: Logger): DecodedEvent[]; export declare function formatEvent(event: Event): string; //# sourceMappingURL=helpers.d.ts.map