@umbra-privacy/sdk 2.1.0 → 3.0.0

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.
Files changed (45) hide show
  1. package/dist/{chunk-GP26R377.js → chunk-AUNYA6JP.js} +2 -2
  2. package/dist/chunk-AUNYA6JP.js.map +1 -0
  3. package/dist/{chunk-BL6WXLPV.cjs → chunk-KCHHJKQN.cjs} +2 -2
  4. package/dist/chunk-KCHHJKQN.cjs.map +1 -0
  5. package/dist/{chunk-KMRROOME.js → chunk-YA66JLHI.js} +9 -4
  6. package/dist/chunk-YA66JLHI.js.map +1 -0
  7. package/dist/{chunk-3LS5P32X.cjs → chunk-YFUGKMNS.cjs} +9 -4
  8. package/dist/chunk-YFUGKMNS.cjs.map +1 -0
  9. package/dist/{client-Cb53GYes.d.cts → client-Baxe29tj.d.cts} +128 -51
  10. package/dist/{client-CJ5S6Qln.d.ts → client-Cqv_5hHQ.d.ts} +128 -51
  11. package/dist/constants/index.cjs +1 -1
  12. package/dist/constants/index.js +1 -1
  13. package/dist/crypto/index.cjs +142 -142
  14. package/dist/crypto/index.d.cts +1 -1
  15. package/dist/crypto/index.d.ts +1 -1
  16. package/dist/crypto/index.js +1 -1
  17. package/dist/errors/index.cjs +28 -28
  18. package/dist/errors/index.d.cts +1 -1
  19. package/dist/errors/index.d.ts +1 -1
  20. package/dist/errors/index.js +1 -1
  21. package/dist/{errors-DAIrstEL.d.cts → errors-BqAlwXfh.d.cts} +3 -5
  22. package/dist/{errors-DPNMfyh0.d.ts → errors-Crx4Jf9K.d.ts} +3 -5
  23. package/dist/{index-B5wNTNZr.d.cts → index-BRLHQNe9.d.cts} +27 -12
  24. package/dist/{index-Cd76ZBHA.d.ts → index-gpTrCX61.d.ts} +27 -12
  25. package/dist/index.cjs +825 -1078
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +12 -263
  28. package/dist/index.d.ts +12 -263
  29. package/dist/index.js +330 -579
  30. package/dist/index.js.map +1 -1
  31. package/dist/indexer-NHZDFABY.js +311 -0
  32. package/dist/indexer-NHZDFABY.js.map +1 -0
  33. package/dist/indexer-XOUBVRNU.cjs +316 -0
  34. package/dist/indexer-XOUBVRNU.cjs.map +1 -0
  35. package/dist/interfaces/index.d.cts +2 -2
  36. package/dist/interfaces/index.d.ts +2 -2
  37. package/dist/solana/index.d.cts +2 -2
  38. package/dist/solana/index.d.ts +2 -2
  39. package/dist/{transaction-forwarder-Dme9whAc.d.ts → transaction-forwarder-Cv3OlsaZ.d.ts} +1 -1
  40. package/dist/{transaction-forwarder-0GZRKXIr.d.cts → transaction-forwarder-DH07CEkG.d.cts} +1 -1
  41. package/package.json +1 -1
  42. package/dist/chunk-3LS5P32X.cjs.map +0 -1
  43. package/dist/chunk-BL6WXLPV.cjs.map +0 -1
  44. package/dist/chunk-GP26R377.js.map +0 -1
  45. package/dist/chunk-KMRROOME.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { o as AesDecryptorFunction, p as AesEncryptorFunction, d as IUmbraClient } from '../client-Cb53GYes.cjs';
1
+ import { j as AesDecryptorFunction, k as AesEncryptorFunction, d as IUmbraClient } from '../client-Baxe29tj.cjs';
2
2
  import { b as SubBrandedType, B as Bytes, f as U256, U as U128, S as SubSubBrandedType, a as SubSubSubBrandedType } from '../types-C_V_CaKK.cjs';
3
3
  import { T as PseudorandomU512DeriverFunction, a5 as Kmac256Function, x as MasterSeedBasedFieldElementDeriverFunction, N as PoseidonHashFunction, D as DailyViewingKeyGeneratorFunction, E as EphemeralMasterSeedDeriverFunction, k as EphemeralRescueCommitmentBlindingFactorDeriverFunction, l as EphemeralUtxoH2RandomSecretDeriverFunction, m as EphemeralUtxoMasterViewingKeyBlindingFactorDeriverFunction, n as EphemeralUtxoMasterViewingKeyDeriverFunction, o as EphemeralUtxoNullifierDeriverFunction, p as EphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriverFunction, q as EphemeralUtxoPoseidonPrivateKeyDeriverFunction, w as HourlyViewingKeyGeneratorFunction, b as MasterViewingKeyBlindingFactorDeriverFunction, a as MasterViewingKeyDeriverFunction, C as Curve25519KeypairGeneratorFunction, z as MintViewingKeyDeriverFunction, M as MintX25519KeypairDeriverFunction, A as MinuteViewingKeyGeneratorFunction, G as MonthlyViewingKeyGeneratorFunction, d as PolynomialCommitmentFactorDeriverFunction, c as PoseidonBlindingFactorDeriverFunction, O as PoseidonKeystreamBlindingFactorDeriverFunction, P as PoseidonPrivateKeyDeriverFunction, R as RescueCommitmentBlindingFactorDeriverFunction, a1 as SecondViewingKeyGeneratorFunction, a4 as YearlyViewingKeyGeneratorFunction, r as FieldArithmetic, X as RescueCipherDeps, Y as RescueCipherInstance, $ as RescuePrimeHashDeps, a0 as RescuePrimeHashFunction, Q as PoseidonKeystreamGeneratorFunction, S as PoseidonPrfFunction, K as KeystreamCommitmentFunction, J as PoseidonDecryptorFunction, L as PoseidonEncryptorFunction, u as H2GeneratorFns, a6 as RandomNonceGeneratorFunction, f as RcEncryptorWithNonceFunction, a7 as X25519GetSharedSecretFunction, V as RcDecryptorFunction, W as RcEncryptorFunction, e as RcKeyGeneratorFunction, j as ChallengePowersDeps, g as ChallengePowersFunction, F as FiatShamirChallengeGeneratorFunction, B as ModuloPowCurve25519Function, I as PolynomialEvaluatorDeps, h as PolynomialEvaluatorFunction, a2 as UserCommitmentGeneratorDeps, U as UserCommitmentGeneratorFunction } from '../interfaces-43cReBcS.cjs';
4
4
  export { H as H2CircuitProvableHashFunction, s as H2CircuitProvableParams, t as H2FullParams, v as H2HashFunction, y as MasterSeedGeneratorFunction, i as PoseidonAggregatorHashFunction, Z as RescueKeyDerivationFunction, _ as RescuePermuteFunction, a3 as ViewingKeyGeneratorOptions } from '../interfaces-43cReBcS.cjs';
@@ -1,4 +1,4 @@
1
- import { o as AesDecryptorFunction, p as AesEncryptorFunction, d as IUmbraClient } from '../client-CJ5S6Qln.js';
1
+ import { j as AesDecryptorFunction, k as AesEncryptorFunction, d as IUmbraClient } from '../client-Cqv_5hHQ.js';
2
2
  import { b as SubBrandedType, B as Bytes, f as U256, U as U128, S as SubSubBrandedType, a as SubSubSubBrandedType } from '../types-C_V_CaKK.js';
3
3
  import { T as PseudorandomU512DeriverFunction, a5 as Kmac256Function, x as MasterSeedBasedFieldElementDeriverFunction, N as PoseidonHashFunction, D as DailyViewingKeyGeneratorFunction, E as EphemeralMasterSeedDeriverFunction, k as EphemeralRescueCommitmentBlindingFactorDeriverFunction, l as EphemeralUtxoH2RandomSecretDeriverFunction, m as EphemeralUtxoMasterViewingKeyBlindingFactorDeriverFunction, n as EphemeralUtxoMasterViewingKeyDeriverFunction, o as EphemeralUtxoNullifierDeriverFunction, p as EphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriverFunction, q as EphemeralUtxoPoseidonPrivateKeyDeriverFunction, w as HourlyViewingKeyGeneratorFunction, b as MasterViewingKeyBlindingFactorDeriverFunction, a as MasterViewingKeyDeriverFunction, C as Curve25519KeypairGeneratorFunction, z as MintViewingKeyDeriverFunction, M as MintX25519KeypairDeriverFunction, A as MinuteViewingKeyGeneratorFunction, G as MonthlyViewingKeyGeneratorFunction, d as PolynomialCommitmentFactorDeriverFunction, c as PoseidonBlindingFactorDeriverFunction, O as PoseidonKeystreamBlindingFactorDeriverFunction, P as PoseidonPrivateKeyDeriverFunction, R as RescueCommitmentBlindingFactorDeriverFunction, a1 as SecondViewingKeyGeneratorFunction, a4 as YearlyViewingKeyGeneratorFunction, r as FieldArithmetic, X as RescueCipherDeps, Y as RescueCipherInstance, $ as RescuePrimeHashDeps, a0 as RescuePrimeHashFunction, Q as PoseidonKeystreamGeneratorFunction, S as PoseidonPrfFunction, K as KeystreamCommitmentFunction, J as PoseidonDecryptorFunction, L as PoseidonEncryptorFunction, u as H2GeneratorFns, a6 as RandomNonceGeneratorFunction, f as RcEncryptorWithNonceFunction, a7 as X25519GetSharedSecretFunction, V as RcDecryptorFunction, W as RcEncryptorFunction, e as RcKeyGeneratorFunction, j as ChallengePowersDeps, g as ChallengePowersFunction, F as FiatShamirChallengeGeneratorFunction, B as ModuloPowCurve25519Function, I as PolynomialEvaluatorDeps, h as PolynomialEvaluatorFunction, a2 as UserCommitmentGeneratorDeps, U as UserCommitmentGeneratorFunction } from '../interfaces-z_xYJlgV.js';
4
4
  export { H as H2CircuitProvableHashFunction, s as H2CircuitProvableParams, t as H2FullParams, v as H2HashFunction, y as MasterSeedGeneratorFunction, i as PoseidonAggregatorHashFunction, Z as RescueKeyDerivationFunction, _ as RescuePermuteFunction, a3 as ViewingKeyGeneratorOptions } from '../interfaces-z_xYJlgV.js';
@@ -1,4 +1,4 @@
1
- export { AES_AUTH_TAG_LENGTH, AES_IV_LENGTH, AES_KEY_LENGTH, AES_METADATA_OVERHEAD, ALPHA, ALPHA_INVERSE, BASE85_LIMB_MAX, BLOCK_SIZE, CIPHER_ROUND_COUNT, FIELD_ELEMENT_BYTE_LENGTH, FIELD_PRIME, GROTH16_G1_BYTE_LENGTH, GROTH16_G2_BYTE_LENGTH, HASH_CAPACITY, HASH_DIGEST_LENGTH, HASH_RATE, HASH_ROUND_COUNT, HASH_STATE_SIZE, MASTER_VIEWING_KEY_MAX, MAX_AGGREGATOR_INPUTS, MAX_POSEIDON_INPUTS, MAX_PRF_SEEDS, NONCE_BYTES, OPTIONAL_DATA_BYTE_LENGTH, PRECOMPUTED_FIELD_INVERSES, REDUCTION_CONST, SAMPLE_BUFFER_BYTE_LENGTH, SECRET_BYTES, SHAKE256_CIPHER_SEED, X25519_BYTE_LENGTH, ZK_PROOF_BYTE_LENGTH, assertAesCiphertextWithMetadata, assertAesKey, assertAesPlaintext, assertBase85Limb, assertCurve25519KeypairResult, assertDailyViewingKey, assertEd25519Keypair, assertGenerationSeed, assertGroth16ProofA, assertGroth16ProofB, assertGroth16ProofC, assertHourlyViewingKey, assertKeccak256Hash, assertKeccak512Hash, assertMasterSeed, assertMasterViewingKey, assertMintViewingKey, assertMinuteViewingKey, assertMonthlyViewingKey, assertOptionalData32, assertPoseidonCiphertext, assertPoseidonCounter, assertPoseidonHash, assertPoseidonKey, assertPoseidonKeystream, assertPoseidonPlaintext, assertRcCiphertext, assertRcCounter, assertRcEncryptionNonce, assertRcKey, assertRcPlaintext, assertSecondViewingKey, assertSharedSecret, assertX25519Bytes, assertX25519Keypair, assertX25519PrivateKey, assertX25519PublicKey, assertYearlyViewingKey, assertZkProofBytes, buildPersonalizationString, defaultAesDecryptor, defaultAesEncryptor, deriveBn254FieldElementFromKeccak512, deriveEphemeralMasterViewingKey, deriveEphemeralMasterViewingKeyBlindingFactor, deriveEphemeralPoseidonPrivateKey, deriveEphemeralPoseidonPrivateKeyBlindingFactor, deriveKeystreamBlindingFactor, deriveModifiedGenerationIndexForReceiverClaim, deriveModifiedGenerationIndexForSenderClaim, deriveNullifierFromModifiedGenerationIndex, deriveProofAccountOffsetFromModifiedGenerationIndex, deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex, deriveRandomSecretFromModifiedGenerationIndex, deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex, expandModifiedGenerationIndex, getAesDecryptor, getAesEncryptor, getBn254FieldElementFromKeccak512Deriver, getChallengePowersFunction, getDailyViewingKeyDeriver, getEphemeralMasterSeedDeriver, getEphemeralRescueCommitmentBlindingFactorDeriver, getEphemeralUtxoH2RandomSecretDeriver, getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver, getEphemeralUtxoMasterViewingKeyDeriver, getEphemeralUtxoNullifierDeriver, getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver, getEphemeralUtxoPoseidonPrivateKeyDeriver, getFiatShamirChallengeGeneratorFunction, getFieldArithmetic, getHourlyViewingKeyDeriver, getKeystreamCommitmentGenerator, getMasterSeedBasedFieldElementDeriver, getMasterViewingKeyBlindingFactorDeriver, getMasterViewingKeyDeriver, getMasterViewingKeyX25519KeypairDeriver, getMintViewingKeyDeriver, getMintX25519KeypairDeriver, getMinuteViewingKeyDeriver, getModuloPowCurve25519Function, getMonthlyViewingKeyDeriver, getPersonalizationStringBuilder, getPolynomialCommitmentFactorDeriver, getPolynomialEvaluatorFunction, getPoseidonAggregator, getPoseidonBlindingFactorDeriver, getPoseidonDecryptor, getPoseidonEncryptor, getPoseidonHasher, getPoseidonKeystreamBlindingFactorDeriver, getPoseidonKeystreamGenerator, getPoseidonPrf, getPoseidonPrivateKeyDeriver, getPseudorandomU512Deriver, getRescueCipher, getRescueCipherFromKeyPair, getRescueCipherInstance, getRescueCommitmentBlindingFactorDeriver, getRescueCommitmentGenerator, getRescueDecryptorFromPrivateKey, getRescueEncryptorFromPrivateKey, getRescueEncryptorWithNonceFromPrivateKey, getRescueKeyGeneratorFromPrivateKey, getRescuePrimeHashFunction, getSecondViewingKeyDeriver, getUserAccountX25519KeypairDeriver, getUserCommitmentGeneratorFunction, getUtxoCommitmentHashGenerator, getYearlyViewingKeyDeriver } from '../chunk-KMRROOME.js';
1
+ export { AES_AUTH_TAG_LENGTH, AES_IV_LENGTH, AES_KEY_LENGTH, AES_METADATA_OVERHEAD, ALPHA, ALPHA_INVERSE, BASE85_LIMB_MAX, BLOCK_SIZE, CIPHER_ROUND_COUNT, FIELD_ELEMENT_BYTE_LENGTH, FIELD_PRIME, GROTH16_G1_BYTE_LENGTH, GROTH16_G2_BYTE_LENGTH, HASH_CAPACITY, HASH_DIGEST_LENGTH, HASH_RATE, HASH_ROUND_COUNT, HASH_STATE_SIZE, MASTER_VIEWING_KEY_MAX, MAX_AGGREGATOR_INPUTS, MAX_POSEIDON_INPUTS, MAX_PRF_SEEDS, NONCE_BYTES, OPTIONAL_DATA_BYTE_LENGTH, PRECOMPUTED_FIELD_INVERSES, REDUCTION_CONST, SAMPLE_BUFFER_BYTE_LENGTH, SECRET_BYTES, SHAKE256_CIPHER_SEED, X25519_BYTE_LENGTH, ZK_PROOF_BYTE_LENGTH, assertAesCiphertextWithMetadata, assertAesKey, assertAesPlaintext, assertBase85Limb, assertCurve25519KeypairResult, assertDailyViewingKey, assertEd25519Keypair, assertGenerationSeed, assertGroth16ProofA, assertGroth16ProofB, assertGroth16ProofC, assertHourlyViewingKey, assertKeccak256Hash, assertKeccak512Hash, assertMasterSeed, assertMasterViewingKey, assertMintViewingKey, assertMinuteViewingKey, assertMonthlyViewingKey, assertOptionalData32, assertPoseidonCiphertext, assertPoseidonCounter, assertPoseidonHash, assertPoseidonKey, assertPoseidonKeystream, assertPoseidonPlaintext, assertRcCiphertext, assertRcCounter, assertRcEncryptionNonce, assertRcKey, assertRcPlaintext, assertSecondViewingKey, assertSharedSecret, assertX25519Bytes, assertX25519Keypair, assertX25519PrivateKey, assertX25519PublicKey, assertYearlyViewingKey, assertZkProofBytes, buildPersonalizationString, defaultAesDecryptor, defaultAesEncryptor, deriveBn254FieldElementFromKeccak512, deriveEphemeralMasterViewingKey, deriveEphemeralMasterViewingKeyBlindingFactor, deriveEphemeralPoseidonPrivateKey, deriveEphemeralPoseidonPrivateKeyBlindingFactor, deriveKeystreamBlindingFactor, deriveModifiedGenerationIndexForReceiverClaim, deriveModifiedGenerationIndexForSenderClaim, deriveNullifierFromModifiedGenerationIndex, deriveProofAccountOffsetFromModifiedGenerationIndex, deriveRandomFactorForPolynomialCommitmentFromModifiedGenerationIndex, deriveRandomSecretFromModifiedGenerationIndex, deriveRescueEncryptionCommitmentBlindingFactorFromModifiedGenerationIndex, expandModifiedGenerationIndex, getAesDecryptor, getAesEncryptor, getBn254FieldElementFromKeccak512Deriver, getChallengePowersFunction, getDailyViewingKeyDeriver, getEphemeralMasterSeedDeriver, getEphemeralRescueCommitmentBlindingFactorDeriver, getEphemeralUtxoH2RandomSecretDeriver, getEphemeralUtxoMasterViewingKeyBlindingFactorDeriver, getEphemeralUtxoMasterViewingKeyDeriver, getEphemeralUtxoNullifierDeriver, getEphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriver, getEphemeralUtxoPoseidonPrivateKeyDeriver, getFiatShamirChallengeGeneratorFunction, getFieldArithmetic, getHourlyViewingKeyDeriver, getKeystreamCommitmentGenerator, getMasterSeedBasedFieldElementDeriver, getMasterViewingKeyBlindingFactorDeriver, getMasterViewingKeyDeriver, getMasterViewingKeyX25519KeypairDeriver, getMintViewingKeyDeriver, getMintX25519KeypairDeriver, getMinuteViewingKeyDeriver, getModuloPowCurve25519Function, getMonthlyViewingKeyDeriver, getPersonalizationStringBuilder, getPolynomialCommitmentFactorDeriver, getPolynomialEvaluatorFunction, getPoseidonAggregator, getPoseidonBlindingFactorDeriver, getPoseidonDecryptor, getPoseidonEncryptor, getPoseidonHasher, getPoseidonKeystreamBlindingFactorDeriver, getPoseidonKeystreamGenerator, getPoseidonPrf, getPoseidonPrivateKeyDeriver, getPseudorandomU512Deriver, getRescueCipher, getRescueCipherFromKeyPair, getRescueCipherInstance, getRescueCommitmentBlindingFactorDeriver, getRescueCommitmentGenerator, getRescueDecryptorFromPrivateKey, getRescueEncryptorFromPrivateKey, getRescueEncryptorWithNonceFromPrivateKey, getRescueKeyGeneratorFromPrivateKey, getRescuePrimeHashFunction, getSecondViewingKeyDeriver, getUserAccountX25519KeypairDeriver, getUserCommitmentGeneratorFunction, getUtxoCommitmentHashGenerator, getYearlyViewingKeyDeriver } from '../chunk-YA66JLHI.js';
2
2
  import '../chunk-UXMQI6B7.js';
3
3
  import '../chunk-KH3YTDKA.js';
4
4
  import '../chunk-EEKF4553.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkBL6WXLPV_cjs = require('../chunk-BL6WXLPV.cjs');
3
+ var chunkKCHHJKQN_cjs = require('../chunk-KCHHJKQN.cjs');
4
4
  var chunkFSK2ICMB_cjs = require('../chunk-FSK2ICMB.cjs');
5
5
  var chunkQJAUUYZU_cjs = require('../chunk-QJAUUYZU.cjs');
6
6
  require('../chunk-PK6SKIKE.cjs');
@@ -9,111 +9,111 @@ require('../chunk-PK6SKIKE.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "ClaimUtxoError", {
11
11
  enumerable: true,
12
- get: function () { return chunkBL6WXLPV_cjs.ClaimUtxoError; }
12
+ get: function () { return chunkKCHHJKQN_cjs.ClaimUtxoError; }
13
13
  });
14
14
  Object.defineProperty(exports, "ComputationMonitorError", {
15
15
  enumerable: true,
16
- get: function () { return chunkBL6WXLPV_cjs.ComputationMonitorError; }
16
+ get: function () { return chunkKCHHJKQN_cjs.ComputationMonitorError; }
17
17
  });
18
18
  Object.defineProperty(exports, "ConversionError", {
19
19
  enumerable: true,
20
- get: function () { return chunkBL6WXLPV_cjs.ConversionError; }
20
+ get: function () { return chunkKCHHJKQN_cjs.ConversionError; }
21
21
  });
22
22
  Object.defineProperty(exports, "CreateUtxoError", {
23
23
  enumerable: true,
24
- get: function () { return chunkBL6WXLPV_cjs.CreateUtxoError; }
24
+ get: function () { return chunkKCHHJKQN_cjs.CreateUtxoError; }
25
25
  });
26
26
  Object.defineProperty(exports, "EncryptedDepositError", {
27
27
  enumerable: true,
28
- get: function () { return chunkBL6WXLPV_cjs.EncryptedDepositError; }
28
+ get: function () { return chunkKCHHJKQN_cjs.EncryptedDepositError; }
29
29
  });
30
30
  Object.defineProperty(exports, "EncryptedWithdrawalError", {
31
31
  enumerable: true,
32
- get: function () { return chunkBL6WXLPV_cjs.EncryptedWithdrawalError; }
32
+ get: function () { return chunkKCHHJKQN_cjs.EncryptedWithdrawalError; }
33
33
  });
34
34
  Object.defineProperty(exports, "FetchUtxosError", {
35
35
  enumerable: true,
36
- get: function () { return chunkBL6WXLPV_cjs.FetchUtxosError; }
36
+ get: function () { return chunkKCHHJKQN_cjs.FetchUtxosError; }
37
37
  });
38
38
  Object.defineProperty(exports, "InstructionError", {
39
39
  enumerable: true,
40
- get: function () { return chunkBL6WXLPV_cjs.InstructionError; }
40
+ get: function () { return chunkKCHHJKQN_cjs.InstructionError; }
41
41
  });
42
42
  Object.defineProperty(exports, "MasterSeedSigningRejectedError", {
43
43
  enumerable: true,
44
- get: function () { return chunkBL6WXLPV_cjs.MasterSeedSigningRejectedError; }
44
+ get: function () { return chunkKCHHJKQN_cjs.MasterSeedSigningRejectedError; }
45
45
  });
46
46
  Object.defineProperty(exports, "QueryError", {
47
47
  enumerable: true,
48
- get: function () { return chunkBL6WXLPV_cjs.QueryError; }
48
+ get: function () { return chunkKCHHJKQN_cjs.QueryError; }
49
49
  });
50
50
  Object.defineProperty(exports, "RegistrationError", {
51
51
  enumerable: true,
52
- get: function () { return chunkBL6WXLPV_cjs.RegistrationError; }
52
+ get: function () { return chunkKCHHJKQN_cjs.RegistrationError; }
53
53
  });
54
54
  Object.defineProperty(exports, "RpcError", {
55
55
  enumerable: true,
56
- get: function () { return chunkBL6WXLPV_cjs.RpcError; }
56
+ get: function () { return chunkKCHHJKQN_cjs.RpcError; }
57
57
  });
58
58
  Object.defineProperty(exports, "TransactionError", {
59
59
  enumerable: true,
60
- get: function () { return chunkBL6WXLPV_cjs.TransactionError; }
60
+ get: function () { return chunkKCHHJKQN_cjs.TransactionError; }
61
61
  });
62
62
  Object.defineProperty(exports, "TransactionSigningError", {
63
63
  enumerable: true,
64
- get: function () { return chunkBL6WXLPV_cjs.TransactionSigningError; }
64
+ get: function () { return chunkKCHHJKQN_cjs.TransactionSigningError; }
65
65
  });
66
66
  Object.defineProperty(exports, "isClaimUtxoError", {
67
67
  enumerable: true,
68
- get: function () { return chunkBL6WXLPV_cjs.isClaimUtxoError; }
68
+ get: function () { return chunkKCHHJKQN_cjs.isClaimUtxoError; }
69
69
  });
70
70
  Object.defineProperty(exports, "isComputationMonitorError", {
71
71
  enumerable: true,
72
- get: function () { return chunkBL6WXLPV_cjs.isComputationMonitorError; }
72
+ get: function () { return chunkKCHHJKQN_cjs.isComputationMonitorError; }
73
73
  });
74
74
  Object.defineProperty(exports, "isConversionError", {
75
75
  enumerable: true,
76
- get: function () { return chunkBL6WXLPV_cjs.isConversionError; }
76
+ get: function () { return chunkKCHHJKQN_cjs.isConversionError; }
77
77
  });
78
78
  Object.defineProperty(exports, "isCreateUtxoError", {
79
79
  enumerable: true,
80
- get: function () { return chunkBL6WXLPV_cjs.isCreateUtxoError; }
80
+ get: function () { return chunkKCHHJKQN_cjs.isCreateUtxoError; }
81
81
  });
82
82
  Object.defineProperty(exports, "isEncryptedDepositError", {
83
83
  enumerable: true,
84
- get: function () { return chunkBL6WXLPV_cjs.isEncryptedDepositError; }
84
+ get: function () { return chunkKCHHJKQN_cjs.isEncryptedDepositError; }
85
85
  });
86
86
  Object.defineProperty(exports, "isEncryptedWithdrawalError", {
87
87
  enumerable: true,
88
- get: function () { return chunkBL6WXLPV_cjs.isEncryptedWithdrawalError; }
88
+ get: function () { return chunkKCHHJKQN_cjs.isEncryptedWithdrawalError; }
89
89
  });
90
90
  Object.defineProperty(exports, "isFetchUtxosError", {
91
91
  enumerable: true,
92
- get: function () { return chunkBL6WXLPV_cjs.isFetchUtxosError; }
92
+ get: function () { return chunkKCHHJKQN_cjs.isFetchUtxosError; }
93
93
  });
94
94
  Object.defineProperty(exports, "isInstructionError", {
95
95
  enumerable: true,
96
- get: function () { return chunkBL6WXLPV_cjs.isInstructionError; }
96
+ get: function () { return chunkKCHHJKQN_cjs.isInstructionError; }
97
97
  });
98
98
  Object.defineProperty(exports, "isQueryError", {
99
99
  enumerable: true,
100
- get: function () { return chunkBL6WXLPV_cjs.isQueryError; }
100
+ get: function () { return chunkKCHHJKQN_cjs.isQueryError; }
101
101
  });
102
102
  Object.defineProperty(exports, "isRegistrationError", {
103
103
  enumerable: true,
104
- get: function () { return chunkBL6WXLPV_cjs.isRegistrationError; }
104
+ get: function () { return chunkKCHHJKQN_cjs.isRegistrationError; }
105
105
  });
106
106
  Object.defineProperty(exports, "isRpcError", {
107
107
  enumerable: true,
108
- get: function () { return chunkBL6WXLPV_cjs.isRpcError; }
108
+ get: function () { return chunkKCHHJKQN_cjs.isRpcError; }
109
109
  });
110
110
  Object.defineProperty(exports, "isTransactionError", {
111
111
  enumerable: true,
112
- get: function () { return chunkBL6WXLPV_cjs.isTransactionError; }
112
+ get: function () { return chunkKCHHJKQN_cjs.isTransactionError; }
113
113
  });
114
114
  Object.defineProperty(exports, "isTransactionSigningError", {
115
115
  enumerable: true,
116
- get: function () { return chunkBL6WXLPV_cjs.isTransactionSigningError; }
116
+ get: function () { return chunkKCHHJKQN_cjs.isTransactionSigningError; }
117
117
  });
118
118
  Object.defineProperty(exports, "CryptographyError", {
119
119
  enumerable: true,
@@ -1,4 +1,4 @@
1
- export { C as ClaimUtxoError, a as ClaimUtxoStage, b as ComputationMonitorError, c as ComputationMonitorStage, d as ConversionError, e as ConversionStage, f as CreateUtxoError, g as CreateUtxoStage, E as EncryptedDepositError, h as EncryptedDepositStage, i as EncryptedWithdrawalError, j as EncryptedWithdrawalStage, F as FetchUtxosError, k as FetchUtxosStage, Q as QueryError, l as QueryStage, R as RegistrationError, m as RegistrationStage, n as isClaimUtxoError, o as isComputationMonitorError, p as isConversionError, q as isCreateUtxoError, r as isEncryptedDepositError, s as isEncryptedWithdrawalError, t as isFetchUtxosError, u as isQueryError, v as isRegistrationError } from '../errors-DAIrstEL.cjs';
1
+ export { C as ClaimUtxoError, a as ClaimUtxoStage, b as ComputationMonitorError, c as ComputationMonitorStage, d as ConversionError, e as ConversionStage, f as CreateUtxoError, g as CreateUtxoStage, E as EncryptedDepositError, h as EncryptedDepositStage, i as EncryptedWithdrawalError, j as EncryptedWithdrawalStage, F as FetchUtxosError, k as FetchUtxosStage, Q as QueryError, l as QueryStage, R as RegistrationError, m as RegistrationStage, n as isClaimUtxoError, o as isComputationMonitorError, p as isConversionError, q as isCreateUtxoError, r as isEncryptedDepositError, s as isEncryptedWithdrawalError, t as isFetchUtxosError, u as isQueryError, v as isRegistrationError } from '../errors-BqAlwXfh.cjs';
2
2
  import { U as UmbraError } from '../errors-B9EoPeWV.cjs';
3
3
  export { C as CryptographyAssertionError, M as MathematicsAssertionError, S as SolanaAssertionError, T as TemporalAssertionError, i as isUmbraError } from '../errors-B9EoPeWV.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- export { C as ClaimUtxoError, a as ClaimUtxoStage, b as ComputationMonitorError, c as ComputationMonitorStage, d as ConversionError, e as ConversionStage, f as CreateUtxoError, g as CreateUtxoStage, E as EncryptedDepositError, h as EncryptedDepositStage, i as EncryptedWithdrawalError, j as EncryptedWithdrawalStage, F as FetchUtxosError, k as FetchUtxosStage, Q as QueryError, l as QueryStage, R as RegistrationError, m as RegistrationStage, n as isClaimUtxoError, o as isComputationMonitorError, p as isConversionError, q as isCreateUtxoError, r as isEncryptedDepositError, s as isEncryptedWithdrawalError, t as isFetchUtxosError, u as isQueryError, v as isRegistrationError } from '../errors-DPNMfyh0.js';
1
+ export { C as ClaimUtxoError, a as ClaimUtxoStage, b as ComputationMonitorError, c as ComputationMonitorStage, d as ConversionError, e as ConversionStage, f as CreateUtxoError, g as CreateUtxoStage, E as EncryptedDepositError, h as EncryptedDepositStage, i as EncryptedWithdrawalError, j as EncryptedWithdrawalStage, F as FetchUtxosError, k as FetchUtxosStage, Q as QueryError, l as QueryStage, R as RegistrationError, m as RegistrationStage, n as isClaimUtxoError, o as isComputationMonitorError, p as isConversionError, q as isCreateUtxoError, r as isEncryptedDepositError, s as isEncryptedWithdrawalError, t as isFetchUtxosError, u as isQueryError, v as isRegistrationError } from '../errors-Crx4Jf9K.js';
2
2
  import { U as UmbraError } from '../errors-B9EoPeWV.js';
3
3
  export { C as CryptographyAssertionError, M as MathematicsAssertionError, S as SolanaAssertionError, T as TemporalAssertionError, i as isUmbraError } from '../errors-B9EoPeWV.js';
4
4
 
@@ -1,4 +1,4 @@
1
- export { ClaimUtxoError, ComputationMonitorError, ConversionError, CreateUtxoError, EncryptedDepositError, EncryptedWithdrawalError, FetchUtxosError, InstructionError, MasterSeedSigningRejectedError, QueryError, RegistrationError, RpcError, TransactionError, TransactionSigningError, isClaimUtxoError, isComputationMonitorError, isConversionError, isCreateUtxoError, isEncryptedDepositError, isEncryptedWithdrawalError, isFetchUtxosError, isInstructionError, isQueryError, isRegistrationError, isRpcError, isTransactionError, isTransactionSigningError } from '../chunk-GP26R377.js';
1
+ export { ClaimUtxoError, ComputationMonitorError, ConversionError, CreateUtxoError, EncryptedDepositError, EncryptedWithdrawalError, FetchUtxosError, InstructionError, MasterSeedSigningRejectedError, QueryError, RegistrationError, RpcError, TransactionError, TransactionSigningError, isClaimUtxoError, isComputationMonitorError, isConversionError, isCreateUtxoError, isEncryptedDepositError, isEncryptedWithdrawalError, isFetchUtxosError, isInstructionError, isQueryError, isRegistrationError, isRpcError, isTransactionError, isTransactionSigningError } from '../chunk-AUNYA6JP.js';
2
2
  export { CryptographyError, isCryptographyError } from '../chunk-5KPQXPQM.js';
3
3
  export { CryptographyAssertionError, MathematicsAssertionError, SolanaAssertionError, TemporalAssertionError, UmbraError, isUmbraError } from '../chunk-4TZVXB5G.js';
4
4
  import '../chunk-7QVYU63E.js';
@@ -42,15 +42,13 @@ type ComputationMonitorStage = "subscription" | "account-fetch" | "account-decod
42
42
  * @example
43
43
  * ```typescript
44
44
  * try {
45
- * const result = await monitor.awaitComputation(computationAddress, {
46
- * timeoutMs: 60_000,
45
+ * const prepared = await monitor.prepareMonitor(computationAddress, {
46
+ * safetyTimeoutMs: 60_000,
47
47
  * });
48
+ * const result = await prepared.awaitComputation();
48
49
  * } catch (error) {
49
50
  * if (isComputationMonitorError(error)) {
50
51
  * switch (error.stage) {
51
- * case "timeout":
52
- * console.log("MPC computation did not finalize in time");
53
- * break;
54
52
  * case "subscription":
55
53
  * console.log("WebSocket connection failed — try polling monitor");
56
54
  * break;
@@ -42,15 +42,13 @@ type ComputationMonitorStage = "subscription" | "account-fetch" | "account-decod
42
42
  * @example
43
43
  * ```typescript
44
44
  * try {
45
- * const result = await monitor.awaitComputation(computationAddress, {
46
- * timeoutMs: 60_000,
45
+ * const prepared = await monitor.prepareMonitor(computationAddress, {
46
+ * safetyTimeoutMs: 60_000,
47
47
  * });
48
+ * const result = await prepared.awaitComputation();
48
49
  * } catch (error) {
49
50
  * if (isComputationMonitorError(error)) {
50
51
  * switch (error.stage) {
51
- * case "timeout":
52
- * console.log("MPC computation did not finalize in time");
53
- * break;
54
52
  * case "subscription":
55
53
  * console.log("WebSocket connection failed — try polling monitor");
56
54
  * break;
@@ -1,4 +1,4 @@
1
- import { s as ComputationMonitorOptions, u as ComputationMonitorResult, v as ComputationMonitorResultWithSignature, I as IUmbraSigner, G as GetLatestBlockhash, T as TransactionForwarder, c as ComputationMonitor, L as GetMasterSeedFunction, d as IUmbraClient, A as AccountInfoProviderFunction, p as AesEncryptorFunction, a as GetEpochInfo, B as BatchMerkleProofFetcherFunction, k as ClaimableUtxoData } from './client-Cb53GYes.cjs';
1
+ import { n as ComputationMonitorOptions, p as ComputationMonitorResult, q as ComputationMonitorResultWithSignature, I as IUmbraSigner, G as GetLatestBlockhash, T as TransactionForwarder, c as ComputationMonitor, H as GetMasterSeedFunction, d as IUmbraClient, A as AccountInfoProviderFunction, k as AesEncryptorFunction, a as GetEpochInfo, J as BatchMerkleProofFetcherFunction, f as ClaimableUtxoData } from './client-Baxe29tj.cjs';
2
2
  import { V as RcDecryptorFunction, a as MasterViewingKeyDeriverFunction, b as MasterViewingKeyBlindingFactorDeriverFunction, P as PoseidonPrivateKeyDeriverFunction, c as PoseidonBlindingFactorDeriverFunction, C as Curve25519KeypairGeneratorFunction, a1 as SecondViewingKeyGeneratorFunction, o as EphemeralUtxoNullifierDeriverFunction, l as EphemeralUtxoH2RandomSecretDeriverFunction, O as PoseidonKeystreamBlindingFactorDeriverFunction, N as PoseidonHashFunction, f as RcEncryptorWithNonceFunction, F as FiatShamirChallengeGeneratorFunction, U as UserCommitmentGeneratorFunction, u as H2GeneratorFns, K as KeystreamCommitmentFunction, L as PoseidonEncryptorFunction, Q as PoseidonKeystreamGeneratorFunction, n as EphemeralUtxoMasterViewingKeyDeriverFunction, m as EphemeralUtxoMasterViewingKeyBlindingFactorDeriverFunction, q as EphemeralUtxoPoseidonPrivateKeyDeriverFunction, p as EphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriverFunction, i as PoseidonAggregatorHashFunction, e as RcKeyGeneratorFunction, M as MintX25519KeypairDeriverFunction } from './interfaces-43cReBcS.cjs';
3
3
  import './interfaces-D2NO6kDD.cjs';
4
4
  import * as _solana_kit from '@solana/kit';
@@ -182,10 +182,16 @@ declare function signTransactionMessage(signer: IUmbraSigner, transactionMessage
182
182
  *
183
183
  * This is the shared core extracted from all service `executeTransaction` closures.
184
184
  * It handles:
185
- * 1. Invoking the optional `pre` callback with the signed transaction
186
- * 2. Submitting the transaction via `TransactionForwarder.forwardSequentially`
187
- * 3. Invoking the optional `post` callback with the transaction and signature
188
- * 4. Optionally awaiting the MPC computation callback via `ComputationMonitor`
185
+ * 1. Preparing the computation monitor (establishing WebSocket subscription)
186
+ * 2. Invoking the optional `pre` callback with the signed transaction
187
+ * 3. Submitting the transaction via `TransactionForwarder.forwardSequentially`
188
+ * 4. Invoking the optional `post` callback with the transaction and signature
189
+ * 5. Awaiting the MPC computation callback via the prepared monitor
190
+ * 6. Closing the computation account regardless of outcome
191
+ *
192
+ * The monitor is prepared **before** the transaction is sent so the subscription
193
+ * is active when the `queue_computation` transaction lands. The first account
194
+ * notification (from the queue transaction itself) is consumed silently.
189
195
  *
190
196
  * @param config - The long-lived executor configuration
191
197
  * @param signedTransaction - The signed transaction to forward
@@ -237,14 +243,17 @@ type AwaitComputationFinalizationConfig = Omit<AwaitCallbackOptions, "computatio
237
243
  * Result of a direct deposit into an Encrypted Token Account.
238
244
  *
239
245
  * - `queueSignature` — the confirmed `queue_computation` transaction.
246
+ * - `callbackStatus` — the outcome of the computation monitor (`"finalized"`,
247
+ * `"pruned"`, or `"timed-out"`). Only present when callback monitoring is active.
240
248
  * - `callbackSignature` — the Arcium MPC callback transaction (only present when
241
- * `awaitComputationFinalization` is not set to `false`).
242
- * - `callbackElapsedMs` — time in ms from queue submission to callback finalization.
249
+ * `callbackStatus` is `"finalized"` and signature retrieval was requested).
250
+ * - `callbackElapsedMs` — time in ms from queue submission to monitor resolution.
243
251
  *
244
252
  * @public
245
253
  */
246
254
  interface DepositResult {
247
255
  readonly queueSignature: TransactionSignature;
256
+ readonly callbackStatus?: "finalized" | "pruned" | "timed-out";
248
257
  readonly callbackSignature?: TransactionSignature;
249
258
  readonly callbackElapsedMs?: number;
250
259
  readonly rentClaimSignature?: TransactionSignature;
@@ -254,14 +263,17 @@ interface DepositResult {
254
263
  * Result of a direct withdrawal from an Encrypted Token Account.
255
264
  *
256
265
  * - `queueSignature` — the confirmed `queue_computation` transaction.
266
+ * - `callbackStatus` — the outcome of the computation monitor (`"finalized"`,
267
+ * `"pruned"`, or `"timed-out"`). Only present when callback monitoring is active.
257
268
  * - `callbackSignature` — the Arcium MPC callback transaction (only present when
258
- * `awaitComputationFinalization` is not set to `false`).
259
- * - `callbackElapsedMs` — time in ms from queue submission to callback finalization.
269
+ * `callbackStatus` is `"finalized"` and signature retrieval was requested).
270
+ * - `callbackElapsedMs` — time in ms from queue submission to monitor resolution.
260
271
  *
261
272
  * @public
262
273
  */
263
274
  interface WithdrawResult {
264
275
  readonly queueSignature: TransactionSignature;
276
+ readonly callbackStatus?: "finalized" | "pruned" | "timed-out";
265
277
  readonly callbackSignature?: TransactionSignature;
266
278
  readonly callbackElapsedMs?: number;
267
279
  readonly rentClaimSignature?: TransactionSignature;
@@ -274,9 +286,11 @@ interface WithdrawResult {
274
286
  * - `closeProofAccountSignature` — closes a stale proof account (optional step).
275
287
  * - `createProofAccountSignature` — creates the confidential UTXO proof account.
276
288
  * - `queueSignature` — queues the Arcium MPC computation.
277
- * - `callbackSignature` — the Arcium MPC callback (only present when `awaitCallback`
278
- * was configured on the factory).
279
- * - `callbackElapsedMs` — time in ms from queue submission to callback finalization.
289
+ * - `callbackStatus` — the outcome of the computation monitor (`"finalized"`,
290
+ * `"pruned"`, or `"timed-out"`). Only present when callback monitoring is active.
291
+ * - `callbackSignature` — the Arcium MPC callback (only present when
292
+ * `callbackStatus` is `"finalized"` and signature retrieval was requested).
293
+ * - `callbackElapsedMs` — time in ms from queue submission to monitor resolution.
280
294
  *
281
295
  * @public
282
296
  */
@@ -284,6 +298,7 @@ interface CreateUtxoFromEncryptedBalanceResult {
284
298
  readonly closeProofAccountSignature?: TransactionSignature;
285
299
  readonly createProofAccountSignature: TransactionSignature;
286
300
  readonly queueSignature: TransactionSignature;
301
+ readonly callbackStatus?: "finalized" | "pruned" | "timed-out";
287
302
  readonly callbackSignature?: TransactionSignature;
288
303
  readonly callbackElapsedMs?: number;
289
304
  readonly rentClaimSignature?: TransactionSignature;
@@ -1,4 +1,4 @@
1
- import { s as ComputationMonitorOptions, u as ComputationMonitorResult, v as ComputationMonitorResultWithSignature, I as IUmbraSigner, G as GetLatestBlockhash, T as TransactionForwarder, c as ComputationMonitor, L as GetMasterSeedFunction, d as IUmbraClient, A as AccountInfoProviderFunction, p as AesEncryptorFunction, a as GetEpochInfo, B as BatchMerkleProofFetcherFunction, k as ClaimableUtxoData } from './client-CJ5S6Qln.js';
1
+ import { n as ComputationMonitorOptions, p as ComputationMonitorResult, q as ComputationMonitorResultWithSignature, I as IUmbraSigner, G as GetLatestBlockhash, T as TransactionForwarder, c as ComputationMonitor, H as GetMasterSeedFunction, d as IUmbraClient, A as AccountInfoProviderFunction, k as AesEncryptorFunction, a as GetEpochInfo, J as BatchMerkleProofFetcherFunction, f as ClaimableUtxoData } from './client-Cqv_5hHQ.js';
2
2
  import { V as RcDecryptorFunction, a as MasterViewingKeyDeriverFunction, b as MasterViewingKeyBlindingFactorDeriverFunction, P as PoseidonPrivateKeyDeriverFunction, c as PoseidonBlindingFactorDeriverFunction, C as Curve25519KeypairGeneratorFunction, a1 as SecondViewingKeyGeneratorFunction, o as EphemeralUtxoNullifierDeriverFunction, l as EphemeralUtxoH2RandomSecretDeriverFunction, O as PoseidonKeystreamBlindingFactorDeriverFunction, N as PoseidonHashFunction, f as RcEncryptorWithNonceFunction, F as FiatShamirChallengeGeneratorFunction, U as UserCommitmentGeneratorFunction, u as H2GeneratorFns, K as KeystreamCommitmentFunction, L as PoseidonEncryptorFunction, Q as PoseidonKeystreamGeneratorFunction, n as EphemeralUtxoMasterViewingKeyDeriverFunction, m as EphemeralUtxoMasterViewingKeyBlindingFactorDeriverFunction, q as EphemeralUtxoPoseidonPrivateKeyDeriverFunction, p as EphemeralUtxoPoseidonPrivateKeyBlindingFactorDeriverFunction, i as PoseidonAggregatorHashFunction, e as RcKeyGeneratorFunction, M as MintX25519KeypairDeriverFunction } from './interfaces-z_xYJlgV.js';
3
3
  import './interfaces-B8xKNl_6.js';
4
4
  import * as _solana_kit from '@solana/kit';
@@ -182,10 +182,16 @@ declare function signTransactionMessage(signer: IUmbraSigner, transactionMessage
182
182
  *
183
183
  * This is the shared core extracted from all service `executeTransaction` closures.
184
184
  * It handles:
185
- * 1. Invoking the optional `pre` callback with the signed transaction
186
- * 2. Submitting the transaction via `TransactionForwarder.forwardSequentially`
187
- * 3. Invoking the optional `post` callback with the transaction and signature
188
- * 4. Optionally awaiting the MPC computation callback via `ComputationMonitor`
185
+ * 1. Preparing the computation monitor (establishing WebSocket subscription)
186
+ * 2. Invoking the optional `pre` callback with the signed transaction
187
+ * 3. Submitting the transaction via `TransactionForwarder.forwardSequentially`
188
+ * 4. Invoking the optional `post` callback with the transaction and signature
189
+ * 5. Awaiting the MPC computation callback via the prepared monitor
190
+ * 6. Closing the computation account regardless of outcome
191
+ *
192
+ * The monitor is prepared **before** the transaction is sent so the subscription
193
+ * is active when the `queue_computation` transaction lands. The first account
194
+ * notification (from the queue transaction itself) is consumed silently.
189
195
  *
190
196
  * @param config - The long-lived executor configuration
191
197
  * @param signedTransaction - The signed transaction to forward
@@ -237,14 +243,17 @@ type AwaitComputationFinalizationConfig = Omit<AwaitCallbackOptions, "computatio
237
243
  * Result of a direct deposit into an Encrypted Token Account.
238
244
  *
239
245
  * - `queueSignature` — the confirmed `queue_computation` transaction.
246
+ * - `callbackStatus` — the outcome of the computation monitor (`"finalized"`,
247
+ * `"pruned"`, or `"timed-out"`). Only present when callback monitoring is active.
240
248
  * - `callbackSignature` — the Arcium MPC callback transaction (only present when
241
- * `awaitComputationFinalization` is not set to `false`).
242
- * - `callbackElapsedMs` — time in ms from queue submission to callback finalization.
249
+ * `callbackStatus` is `"finalized"` and signature retrieval was requested).
250
+ * - `callbackElapsedMs` — time in ms from queue submission to monitor resolution.
243
251
  *
244
252
  * @public
245
253
  */
246
254
  interface DepositResult {
247
255
  readonly queueSignature: TransactionSignature;
256
+ readonly callbackStatus?: "finalized" | "pruned" | "timed-out";
248
257
  readonly callbackSignature?: TransactionSignature;
249
258
  readonly callbackElapsedMs?: number;
250
259
  readonly rentClaimSignature?: TransactionSignature;
@@ -254,14 +263,17 @@ interface DepositResult {
254
263
  * Result of a direct withdrawal from an Encrypted Token Account.
255
264
  *
256
265
  * - `queueSignature` — the confirmed `queue_computation` transaction.
266
+ * - `callbackStatus` — the outcome of the computation monitor (`"finalized"`,
267
+ * `"pruned"`, or `"timed-out"`). Only present when callback monitoring is active.
257
268
  * - `callbackSignature` — the Arcium MPC callback transaction (only present when
258
- * `awaitComputationFinalization` is not set to `false`).
259
- * - `callbackElapsedMs` — time in ms from queue submission to callback finalization.
269
+ * `callbackStatus` is `"finalized"` and signature retrieval was requested).
270
+ * - `callbackElapsedMs` — time in ms from queue submission to monitor resolution.
260
271
  *
261
272
  * @public
262
273
  */
263
274
  interface WithdrawResult {
264
275
  readonly queueSignature: TransactionSignature;
276
+ readonly callbackStatus?: "finalized" | "pruned" | "timed-out";
265
277
  readonly callbackSignature?: TransactionSignature;
266
278
  readonly callbackElapsedMs?: number;
267
279
  readonly rentClaimSignature?: TransactionSignature;
@@ -274,9 +286,11 @@ interface WithdrawResult {
274
286
  * - `closeProofAccountSignature` — closes a stale proof account (optional step).
275
287
  * - `createProofAccountSignature` — creates the confidential UTXO proof account.
276
288
  * - `queueSignature` — queues the Arcium MPC computation.
277
- * - `callbackSignature` — the Arcium MPC callback (only present when `awaitCallback`
278
- * was configured on the factory).
279
- * - `callbackElapsedMs` — time in ms from queue submission to callback finalization.
289
+ * - `callbackStatus` — the outcome of the computation monitor (`"finalized"`,
290
+ * `"pruned"`, or `"timed-out"`). Only present when callback monitoring is active.
291
+ * - `callbackSignature` — the Arcium MPC callback (only present when
292
+ * `callbackStatus` is `"finalized"` and signature retrieval was requested).
293
+ * - `callbackElapsedMs` — time in ms from queue submission to monitor resolution.
280
294
  *
281
295
  * @public
282
296
  */
@@ -284,6 +298,7 @@ interface CreateUtxoFromEncryptedBalanceResult {
284
298
  readonly closeProofAccountSignature?: TransactionSignature;
285
299
  readonly createProofAccountSignature: TransactionSignature;
286
300
  readonly queueSignature: TransactionSignature;
301
+ readonly callbackStatus?: "finalized" | "pruned" | "timed-out";
287
302
  readonly callbackSignature?: TransactionSignature;
288
303
  readonly callbackElapsedMs?: number;
289
304
  readonly rentClaimSignature?: TransactionSignature;