@midnightntwrk/wallet-sdk-testkit 0.3.0-beta.1 → 0.3.0-beta.2

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.
@@ -54,7 +54,7 @@ export function registerDustHealthchecks({ getEnv, seed, syncCacheDir, timeout =
54
54
  logger.info(`utxo length: ${unregisteredUtxosNumber}`);
55
55
  const firstTwoNightUtxos = unregisteredNightUtxos.slice(0, 2);
56
56
  logger.info(`Registering UTXOs: ${inspect(firstTwoNightUtxos, { depth: null })}`);
57
- const dustRegistrationRecipe = await wallet.wallet.registerNightUtxosForDustGeneration(firstTwoNightUtxos, wallet.unshieldedKeystore.getPublicKey(), (payload) => wallet.unshieldedKeystore.signData(payload));
57
+ const dustRegistrationRecipe = await wallet.wallet.registerNightUtxosForDustGeneration(firstTwoNightUtxos, wallet.unshieldedKeystore.getPublicKey(), wallet.unshieldedKeystore.signDataAsync);
58
58
  const finalizedDustTx = await wallet.wallet.finalizeRecipe(dustRegistrationRecipe);
59
59
  const dustRegistrationTxid = await wallet.wallet.submitTransaction(finalizedDustTx);
60
60
  expect(dustRegistrationTxid).toBeDefined();
@@ -75,7 +75,7 @@ export function registerDustHealthchecks({ getEnv, seed, syncCacheDir, timeout =
75
75
  logger.info(`Registered night UTXOs: ${inspect(registeredNightUtxos, { depth: null })}`);
76
76
  expect(registeredNightUtxos.length, 'Not enough registered UTXOs found').toBeGreaterThan(1);
77
77
  const firstTwoRegisteredNightUtxos = registeredNightUtxos.slice(0, 2);
78
- const dustDeregistrationRecipe = await wallet.wallet.deregisterFromDustGeneration(firstTwoRegisteredNightUtxos, wallet.unshieldedKeystore.getPublicKey(), (payload) => wallet.unshieldedKeystore.signData(payload));
78
+ const dustDeregistrationRecipe = await wallet.wallet.deregisterFromDustGeneration(firstTwoRegisteredNightUtxos, wallet.unshieldedKeystore.getPublicKey(), wallet.unshieldedKeystore.signDataAsync);
79
79
  const balancedTransactionRecipe = await wallet.wallet.balanceUnprovenTransaction(dustDeregistrationRecipe.transaction, {
80
80
  shieldedSecretKeys: wallet.shieldedSecretKeys,
81
81
  dustSecretKey: wallet.dustSecretKey,
@@ -155,7 +155,7 @@ export function registerTokenTransferHealthchecks(deps) {
155
155
  });
156
156
  logger.info('Signing tx...');
157
157
  logger.info(txRecipe);
158
- const signedTxRecipe = await sender.wallet.signRecipe(txRecipe, (payload) => sender.unshieldedKeystore.signData(payload));
158
+ const signedTxRecipe = await sender.wallet.signRecipe(txRecipe, sender.unshieldedKeystore.signDataAsync);
159
159
  logger.info('Transaction to prove...');
160
160
  logger.info(signedTxRecipe);
161
161
  const finalizedTx = await sender.wallet.finalizeRecipe(signedTxRecipe);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midnightntwrk/wallet-sdk-testkit",
3
3
  "description": "Reusable wallet-SDK test harness: environment provisioning, wallet bootstrapping, sync waiters and tx-history assertions",
4
- "version": "0.3.0-beta.1",
4
+ "version": "0.3.0-beta.2",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -39,16 +39,16 @@
39
39
  }
40
40
  },
41
41
  "dependencies": {
42
- "@midnightntwrk/ledger-v9": "1.0.0-rc.2",
42
+ "@midnightntwrk/ledger-v9": "1.0.0-rc.3",
43
43
  "@midnightntwrk/wallet-sdk-abstractions": "3.0.0-beta.0",
44
- "@midnightntwrk/wallet-sdk-address-format": "4.0.0-beta.1",
45
- "@midnightntwrk/wallet-sdk-capabilities": "4.0.0-beta.1",
46
- "@midnightntwrk/wallet-sdk-dust-wallet": "5.0.0-beta.1",
47
- "@midnightntwrk/wallet-sdk-facade": "5.0.0-beta.1",
44
+ "@midnightntwrk/wallet-sdk-address-format": "4.0.0-beta.2",
45
+ "@midnightntwrk/wallet-sdk-capabilities": "4.0.0-beta.2",
46
+ "@midnightntwrk/wallet-sdk-dust-wallet": "5.0.0-beta.2",
47
+ "@midnightntwrk/wallet-sdk-facade": "5.0.0-beta.2",
48
48
  "@midnightntwrk/wallet-sdk-hd": "3.1.0-beta.1",
49
49
  "@midnightntwrk/wallet-sdk-indexer-client": "1.3.0-beta.1",
50
- "@midnightntwrk/wallet-sdk-shielded": "4.0.0-beta.1",
51
- "@midnightntwrk/wallet-sdk-unshielded-wallet": "4.0.0-beta.1",
50
+ "@midnightntwrk/wallet-sdk-shielded": "4.0.0-beta.2",
51
+ "@midnightntwrk/wallet-sdk-unshielded-wallet": "4.0.0-beta.2",
52
52
  "pino": "^10.3.1",
53
53
  "pino-pretty": "^13.1.3",
54
54
  "rxjs": "^7.8.2"