@particle-network/auth-core-modal
Version:
Auth Core provides MPC (Multi-Party Computation)-based threshold signatures.
21 lines (20 loc) • 1.04 kB
TypeScript
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?: string | number | undefined;
maxPriorityFeePerGas?: string | number | undefined;
gasPrice?: string | number | undefined;
}): GasFee;
totalAmount({ value, gasLimit, baseFee, maxFeePerGas, maxPriorityFeePerGas, gasPrice, }: {
value?: string | number | undefined;
gasLimit: PrefixedHexString | number;
baseFee: PrefixedHexString | number;
maxFeePerGas?: string | number | undefined;
maxPriorityFeePerGas?: string | number | undefined;
gasPrice?: string | number | undefined;
}): TotalAmount;
getSignTypedVersion(method: string): SignTypedDataVersion;
isSignTypedDataUniq(method: string): boolean;
};