@xpla/xpla
Version:
<p align="center"> <img src="https://user-images.githubusercontent.com/545047/188804067-28e67e5e-0214-4449-ab04-2e0c564a6885.svg" width="80"> </p>
23 lines (22 loc) • 1.12 kB
TypeScript
import { IPrivateKey } from "@interchainjs/types";
import { Secp256k1HDWallet } from "@interchainjs/cosmos/wallets/secp256k1hd";
import { ICosmosWalletConfig } from "@interchainjs/cosmos/wallets/types";
//#region src/wallets/ethSecp256k1hd.d.ts
/**
* HD Wallet implementation for secp256k1 with Ethereum-style address derivation for CosmosEvm
* Extends Secp256k1HDWallet from Cosmos for consistent wallet behavior
* Uses proper HD derivation with configurable derivation paths
* Uses keccak256 hashing for address generation instead of standard Cosmos approach
*/
declare class EthSecp256k1HDWallet extends Secp256k1HDWallet {
constructor(privateKeys: IPrivateKey[], config?: ICosmosWalletConfig);
/**
* Create wallet from mnemonic with derivation paths from config
* @param mnemonic BIP39 mnemonic phrase
* @param config Wallet configuration including derivation paths and address prefix
* @returns Promise<EthSecp256k1HDWallet> instance
*/
static fromMnemonic(mnemonic: string, config?: ICosmosWalletConfig): Promise<EthSecp256k1HDWallet>;
}
//#endregion
export { EthSecp256k1HDWallet };