@etherspot/prime-sdk
Version:
Etherspot Prime (Account Abstraction) SDK
17 lines (16 loc) • 809 B
TypeScript
import { UserOperationStruct } from '../contracts/account-abstraction/contracts/core/BaseAccount';
export declare const AddressZero = "0x0000000000000000000000000000000000000000";
export type NotPromise<T> = {
[P in keyof T]: Exclude<T[P], Promise<any>>;
};
export declare function packUserOp(op: NotPromise<UserOperationStruct>, forSignature?: boolean): string;
export declare function getUserOpHash(op: NotPromise<UserOperationStruct>, entryPoint: string, chainId: number): string;
interface DecodedError {
message: string;
opIndex?: number;
}
export declare function decodeErrorReason(error: string): DecodedError | undefined;
export declare function rethrowError(e: any): any;
export declare function deepHexlify(obj: any): any;
export declare function resolveHexlify(a: any): any;
export {};