@hardkas/accounts 0.12.0-rc.18 → 0.12.0-rc.19

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.
@@ -2,7 +2,8 @@ import {
2
2
  LazyAccountAuthorizer,
3
3
  PrivateKeyAuthorizer,
4
4
  StaticSignatureScriptAuthorizer
5
- } from "./chunk-EJK4QMPM.js";
5
+ } from "./chunk-5266LO4K.js";
6
+ import "./chunk-MCKGQKYU.js";
6
7
  export {
7
8
  LazyAccountAuthorizer,
8
9
  PrivateKeyAuthorizer,
@@ -39,9 +39,7 @@ var PrivateKeyAuthorizer = class {
39
39
  }
40
40
  const tx = wasmTransaction;
41
41
  try {
42
- console.log("DEBUG: Calling signTransaction");
43
42
  const signedTx = wasm.signTransaction(tx, [privateKey], false);
44
- console.log("DEBUG: signTransaction OK");
45
43
  const sigScript = signedTx.inputs[inputIndex].signatureScript;
46
44
  if (!sigScript || sigScript.length === 0) {
47
45
  throw new Error(`UNAUTHORIZED_TRANSACTION_INPUT: Kaspa WASM failed to generate a signature script for input ${inputIndex} using account '${this.accountName}'.`);
@@ -64,7 +62,7 @@ var LazyAccountAuthorizer = class {
64
62
  accountName;
65
63
  workspaceRoot;
66
64
  async authorize(context) {
67
- const { resolveHardkasAccount } = await import("./resolve-5G6NEL62.js");
65
+ const { resolveHardkasAccount } = await import("./resolve-UTFZTVAK.js");
68
66
  const account = await resolveHardkasAccount({
69
67
  nameOrAddress: this.accountName,
70
68
  config: { cwd: this.workspaceRoot }
@@ -75,8 +73,8 @@ var LazyAccountAuthorizer = class {
75
73
  }
76
74
  if (!pkValue && account.keystorePath) {
77
75
  try {
78
- const { KeystoreManager } = await import("./keystore-CMWEKGBF.js");
79
- const { DEV_ACCOUNTS_PASSWORD } = await import("./dev-accounts-F7LATHCT.js");
76
+ const { KeystoreManager } = await import("./keystore-2KRHVGCM.js");
77
+ const { DEV_ACCOUNTS_PASSWORD } = await import("./dev-accounts-S4WHPHJK.js");
80
78
  const keystore = await KeystoreManager.loadEncryptedKeystore(account.keystorePath);
81
79
  const unlock = await KeystoreManager.decryptEncryptedKeystore(keystore, DEV_ACCOUNTS_PASSWORD);
82
80
  if (unlock.success && unlock.payload) {
@@ -0,0 +1,15 @@
1
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
3
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
4
+ }) : x)(function(x) {
5
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
+ throw Error('Dynamic require of "' + x + '" is not supported');
7
+ });
8
+ var __commonJS = (cb, mod) => function __require2() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+
12
+ export {
13
+ __require,
14
+ __commonJS
15
+ };
@@ -29,7 +29,7 @@ var KaspaWasmPrivateKeySigner = class {
29
29
  async signTxPlan(input) {
30
30
  const plan = input.planArtifact;
31
31
  const sdk = await loadKaspaWasm(this.options.wasmConfig);
32
- const { detectCapabilities } = await import("./signer-backend-W3LNCQA3.js");
32
+ const { detectCapabilities } = await import("./signer-backend-X3FD3XMB.js");
33
33
  const capabilities = detectCapabilities(sdk);
34
34
  if (plan.computeBudget !== void 0 || plan.outputs.some((o) => o.covenant)) {
35
35
  if (!capabilities.transactionV1Signing) {
@@ -56,8 +56,8 @@ var KaspaWasmPrivateKeySigner = class {
56
56
  }
57
57
  if (!pkValue && account.keystorePath) {
58
58
  try {
59
- const KeystoreManager2 = (await import("./keystore-CMWEKGBF.js")).KeystoreManager;
60
- const DEV_ACCOUNTS_PASSWORD2 = (await import("./dev-accounts-F7LATHCT.js")).DEV_ACCOUNTS_PASSWORD;
59
+ const KeystoreManager2 = (await import("./keystore-2KRHVGCM.js")).KeystoreManager;
60
+ const DEV_ACCOUNTS_PASSWORD2 = (await import("./dev-accounts-S4WHPHJK.js")).DEV_ACCOUNTS_PASSWORD;
61
61
  const keystore = await KeystoreManager2.loadEncryptedKeystore(account.keystorePath);
62
62
  const unlock = await KeystoreManager2.decryptEncryptedKeystore(keystore, DEV_ACCOUNTS_PASSWORD2);
63
63
  if (unlock.success && unlock.payload) {
@@ -77,7 +77,7 @@ var KaspaWasmPrivateKeySigner = class {
77
77
  throw err;
78
78
  }
79
79
  const expectedAddress = new sdk.PrivateKey(pkValue).toKeypair().toAddress(getNetworkPrefix(plan.networkId || "simnet")).toString();
80
- const { PrivateKeyAuthorizer } = await import("./authorizers-23P5SD3F.js");
80
+ const { PrivateKeyAuthorizer } = await import("./authorizers-S5IKSHTE.js");
81
81
  const sourceInputs = plan.inputs || plan.selectedUtxos || [];
82
82
  for (let i = 0; i < numInputs; i++) {
83
83
  if (!authorizers[i]) {
@@ -325,7 +325,7 @@ async function getOrCreateDevAccount(workspaceDir, index, alias) {
325
325
  let publicKey = "";
326
326
  try {
327
327
  if (isSimnet) {
328
- const { loadKaspaWasm: loadKaspaWasm2 } = await import("./signer-backend-W3LNCQA3.js");
328
+ const { loadKaspaWasm: loadKaspaWasm2 } = await import("./signer-backend-X3FD3XMB.js");
329
329
  const kaspaWasm = await loadKaspaWasm2();
330
330
  const privKey = new kaspaWasm.PrivateKey(privateKeyHex);
331
331
  const kp = privKey.toKeypair();
@@ -337,7 +337,7 @@ async function getOrCreateDevAccount(workspaceDir, index, alias) {
337
337
  try {
338
338
  sdkModule = await import(
339
339
  /* @vite-ignore */
340
- "@kaspa/core-lib"
340
+ "./core-lib-YKSIDZOW.js"
341
341
  );
342
342
  } catch (e) {
343
343
  console.warn(`