@abstract-foundation/agw-client
Version:
Abstract Global Wallet Client SDK
15 lines • 1.51 kB
TypeScript
import { type Address, type Chain, type Hex, type PublicClient, type Transport, type TypedDataDefinition, type UnionRequiredBy } from 'viem';
import { type ChainEIP712, type SignEip712TransactionParameters } from 'viem/zksync';
import { type Call } from './types/call.js';
export declare const VALID_CHAINS: Record<number, Chain>;
export declare function convertBigIntToString(value: any): any;
export declare function getSmartAccountAddressFromInitialSigner<chain extends ChainEIP712 | undefined = ChainEIP712 | undefined>(initialSigner: Address, publicClient: PublicClient<Transport, chain>): Promise<Hex>;
export declare function isAGWAccount<chain extends ChainEIP712 | undefined = ChainEIP712 | undefined>(publicClient: PublicClient<Transport, chain>, address: Address): Promise<boolean>;
export declare function isSmartAccountDeployed<chain extends ChainEIP712 | undefined = ChainEIP712 | undefined>(publicClient: PublicClient<Transport, chain>, address: Hex): Promise<boolean>;
export declare function getInitializerCalldata(initialOwnerAddress: Address, validatorAddress: Address, initialCall: Call): Hex;
export declare function transformHexValues(transaction: any, keys: string[]): void;
export declare function isEip712TypedData(typedData: TypedDataDefinition): boolean;
export declare function transformEip712TypedData(typedData: TypedDataDefinition): UnionRequiredBy<Omit<SignEip712TransactionParameters, 'chain'>, 'to' | 'data'> & {
chainId: number;
};
//# sourceMappingURL=utils.d.ts.map