@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
26 lines (25 loc) • 1.3 kB
TypeScript
import { type Chain } from "viem";
import { z } from "zod";
import type { BigNumberish, Multiplier } from "../types";
export declare const ChainSchema: z.ZodType<Chain, z.ZodTypeDef, Chain>;
export declare const HexSchema: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
export declare const BigNumberishSchema: z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>;
export declare const BigNumberishRangeSchema: z.ZodObject<{
min: z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>;
max: z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>;
}, "strict", z.ZodTypeAny, {
min?: number | bigint | `0x${string}` | undefined;
max?: number | bigint | `0x${string}` | undefined;
}, {
min?: number | bigint | `0x${string}` | undefined;
max?: number | bigint | `0x${string}` | undefined;
}>;
export declare const MultiplierSchema: z.ZodObject<{
multiplier: z.ZodEffects<z.ZodNumber, number, number>;
}, "strict", z.ZodTypeAny, {
multiplier: number;
}, {
multiplier: number;
}>;
export declare function isBigNumberish(x: any): x is BigNumberish;
export declare function isMultiplier(x: any): x is Multiplier;