UNPKG

@alchemy/aa-core

Version:

viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts

11 lines (10 loc) 605 B
import type { BigNumberish, Multiplier } from "../types"; export declare const bigIntMax: (...args: bigint[]) => bigint; export declare const bigIntMin: (...args: bigint[]) => bigint; export declare const bigIntClamp: (value: BigNumberish, lower: BigNumberish | null | undefined, upper: BigNumberish | null | undefined) => bigint; export declare enum RoundingMode { ROUND_DOWN = 0, ROUND_UP = 1 } export declare const bigIntMultiply: (base: BigNumberish, multiplier: Multiplier["multiplier"], roundingMode?: RoundingMode) => bigint; export declare const stringToIndex: (phrase: string) => bigint;