@hardkas/accounts 0.8.15-alpha → 0.8.18-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -1
- package/dist/index.js +814 -709
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ interface HardkasSimulatedAccount extends HardkasBaseAccount {
|
|
|
57
57
|
interface HardkasKaspaPrivateKeyAccount extends HardkasBaseAccount {
|
|
58
58
|
kind: "kaspa-private-key";
|
|
59
59
|
privateKeyEnv?: string | undefined;
|
|
60
|
+
keystorePath?: string | undefined;
|
|
60
61
|
address?: string;
|
|
61
62
|
}
|
|
62
63
|
interface HardkasExternalWalletAccount extends HardkasBaseAccount {
|
|
@@ -249,6 +250,8 @@ interface RealDevAccount {
|
|
|
249
250
|
readonly publicKey?: string;
|
|
250
251
|
/** @deprecated Use keystoreRef for encrypted storage. Plaintext keys in this field are considered legacy/unsafe. */
|
|
251
252
|
readonly privateKey?: string;
|
|
253
|
+
/** Environment variable name containing the private key */
|
|
254
|
+
readonly privateKeyEnv?: string;
|
|
252
255
|
/** Reference to the encrypted keystore file in .hardkas/keystore/ */
|
|
253
256
|
readonly keystoreRef?: string;
|
|
254
257
|
readonly createdAt: string;
|
|
@@ -273,11 +276,13 @@ declare function saveRealAccountStore(store: RealAccountStore, options?: {
|
|
|
273
276
|
}): Promise<void>;
|
|
274
277
|
declare function validateAccountName(name: string): void;
|
|
275
278
|
declare function validateAddressPrefix(address: string): void;
|
|
279
|
+
declare function validateAddressNetwork(address: string, networkId: string, allowMainnet?: boolean): void;
|
|
276
280
|
declare function importRealDevAccount(store: RealAccountStore, account: {
|
|
277
281
|
readonly name: string;
|
|
278
282
|
readonly address: string;
|
|
279
283
|
readonly publicKey?: string;
|
|
280
284
|
readonly privateKey?: string;
|
|
285
|
+
readonly privateKeyEnv?: string;
|
|
281
286
|
readonly keystoreRef?: string;
|
|
282
287
|
}): RealAccountStore;
|
|
283
288
|
declare function removeRealDevAccount(store: RealAccountStore, name: string): RealAccountStore;
|
|
@@ -388,4 +393,4 @@ declare function listDevAccountsSync(workspaceDir: string): {
|
|
|
388
393
|
address: string;
|
|
389
394
|
}[];
|
|
390
395
|
|
|
391
|
-
export { type CreateKaspaWalletOptions, DEV_ACCOUNTS_PASSWORD, type EncryptedKeystoreV2, type EvmExportResult, type GeneratedKaspaDevAccount, type HardkasAccount, type HardkasAccountKind, type HardkasBaseAccount, type HardkasEvmPrivateKeyAccount, type HardkasExternalWalletAccount, HardkasFixtureSigner, type HardkasKaspaPrivateKeyAccount, type HardkasSigner, type HardkasSignerKind, type HardkasSimulatedAccount, type HardkasTxPlanSigner, type KaspaKeyGenerator, KaspaSdkKeyGenerator, type KaspaSdkKeyGeneratorOptions, KaspaSdkRealTxSigner, type KaspaSdkRealTxSignerOptions, type KaspaSigningBackendStatus, KaspaWasmPrivateKeySigner, type KeystoreCipherParams, type KeystoreKdfParams, KeystoreManager, type KeystorePayload, type KeystoreUnlockResult, type RealAccountStore, type RealDevAccount, type RealTxSigner, type RealTxSigningInput, type RealTxSigningResult, type ResolveAccountOptions, type SignTxPlanInput, type SignTxPlanResult, SimulatedSigner, SimulatedTxPlanSigner, UnsupportedKaspaKeyGenerator, UnsupportedRealKaspaSigner, UnsupportedRealTxSigner, assertSigningNetworkAllowed, createEmptyRealAccountStore, createLocalKaspaWallet, describeAccount, ensureDevAccounts, getDefaultRealAccountsPath, getKaspaSigningBackendStatus, getOrCreateDevAccount, getRealDevAccount, getRequiredEnv, importRealDevAccount, listDevAccountsSync, listHardkasAccounts, listRealDevAccounts, loadKaspaWasm, loadOrCreateRealAccountStore, loadRealAccountStore, loadRealAccountStoreSync, prepareEvmAccountExport, removeRealDevAccount, resolveHardkasAccount, resolveHardkasAccountAddress, resolveRealAccountOrAddress, saveRealAccountStore, signTxPlanArtifact, validateAccountName, validateAddressPrefix };
|
|
396
|
+
export { type CreateKaspaWalletOptions, DEV_ACCOUNTS_PASSWORD, type EncryptedKeystoreV2, type EvmExportResult, type GeneratedKaspaDevAccount, type HardkasAccount, type HardkasAccountKind, type HardkasBaseAccount, type HardkasEvmPrivateKeyAccount, type HardkasExternalWalletAccount, HardkasFixtureSigner, type HardkasKaspaPrivateKeyAccount, type HardkasSigner, type HardkasSignerKind, type HardkasSimulatedAccount, type HardkasTxPlanSigner, type KaspaKeyGenerator, KaspaSdkKeyGenerator, type KaspaSdkKeyGeneratorOptions, KaspaSdkRealTxSigner, type KaspaSdkRealTxSignerOptions, type KaspaSigningBackendStatus, KaspaWasmPrivateKeySigner, type KeystoreCipherParams, type KeystoreKdfParams, KeystoreManager, type KeystorePayload, type KeystoreUnlockResult, type RealAccountStore, type RealDevAccount, type RealTxSigner, type RealTxSigningInput, type RealTxSigningResult, type ResolveAccountOptions, type SignTxPlanInput, type SignTxPlanResult, SimulatedSigner, SimulatedTxPlanSigner, UnsupportedKaspaKeyGenerator, UnsupportedRealKaspaSigner, UnsupportedRealTxSigner, assertSigningNetworkAllowed, createEmptyRealAccountStore, createLocalKaspaWallet, describeAccount, ensureDevAccounts, getDefaultRealAccountsPath, getKaspaSigningBackendStatus, getOrCreateDevAccount, getRealDevAccount, getRequiredEnv, importRealDevAccount, listDevAccountsSync, listHardkasAccounts, listRealDevAccounts, loadKaspaWasm, loadOrCreateRealAccountStore, loadRealAccountStore, loadRealAccountStoreSync, prepareEvmAccountExport, removeRealDevAccount, resolveHardkasAccount, resolveHardkasAccountAddress, resolveRealAccountOrAddress, saveRealAccountStore, signTxPlanArtifact, validateAccountName, validateAddressNetwork, validateAddressPrefix };
|