@interchainjs/injective
Version:
20 lines (19 loc) • 1.02 kB
TypeScript
import { IPrivateKey } from '@interchainjs/types';
import { ICosmosWalletConfig } from '@interchainjs/cosmos';
import { Secp256k1HDWallet } from '@interchainjs/cosmos';
/**
* HD Wallet implementation for secp256k1 with Ethereum-style address derivation for Injective
* 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
*/
export 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>;
}