@gear-js/react-hooks
Version:
React hooks used across Gear applications
10 lines (9 loc) • 608 B
TypeScript
import { GasInfo, GearApi } from '@gear-js/api';
import { Event } from '@polkadot/types/interfaces';
import { Entries } from '../types';
declare const getAutoGasLimit: ({ waited, min_limit }: GasInfo, _multiplier?: number) => string;
declare const withoutCommas: (value: string) => string;
declare const getExtrinsicFailedMessage: (api: GearApi, event: Event) => string;
declare const getVaraAddress: (address: string) => string;
declare const getTypedEntries: <T extends object>(value: T) => Entries<T>;
export { getAutoGasLimit, withoutCommas, getExtrinsicFailedMessage, getVaraAddress, getTypedEntries };