@aa-simulator/btc-connectkit
Version:
First Account Abstraction Protocol on Bitcoin
13 lines (12 loc) • 663 B
TypeScript
import type { SmartAccount, UserOp } from '@aa-simulator/core';
export declare const pubKeyToEVMAddress: (pubKey: string) => string;
export declare const convertSignature: (signature: string) => string;
export declare function caculateNativeFee(userOp: UserOp): bigint;
export declare const getBTCAAAddress: (smartAccount: SmartAccount) => Promise<string>;
export declare const getBTCAccountInfo: (smartAccount: SmartAccount, btcAddress: string) => Promise<{
smartAccountAddress: `0x${string}`;
name: string;
btcPublicKey: any;
btcAddress: string;
}>;
export declare const formatToken: (amount: bigint, decimals?: number) => number | "<0.000001";