UNPKG

@particle-network/authkit

Version:

Auth Core provides MPC (Multi-Party Computation)-based threshold signatures.

21 lines (20 loc) 1.03 kB
import { SignTypedDataVersion, type GasFee, type PrefixedHexString, type TotalAmount } from '@particle-network/auth-core'; export declare const ethereumUtils: { gasFee({ gasLimit, baseFee, maxFeePerGas, maxPriorityFeePerGas, gasPrice, }: { gasLimit: PrefixedHexString | number; baseFee: PrefixedHexString | number; maxFeePerGas?: PrefixedHexString | number; maxPriorityFeePerGas?: PrefixedHexString | number; gasPrice?: PrefixedHexString | number; }): GasFee; totalAmount({ value, gasLimit, baseFee, maxFeePerGas, maxPriorityFeePerGas, gasPrice, }: { value?: PrefixedHexString | number; gasLimit: PrefixedHexString | number; baseFee: PrefixedHexString | number; maxFeePerGas?: PrefixedHexString | number; maxPriorityFeePerGas?: PrefixedHexString | number; gasPrice?: PrefixedHexString | number; }): TotalAmount; getSignTypedVersion(method: string): SignTypedDataVersion; isSignTypedDataUniq(method: string): boolean; };