@aztec/aztec.js 3.0.0-nightly.20251016 → 3.0.0-nightly.20251023

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 (37) hide show
  1. package/dest/api/contract.d.ts +2 -3
  2. package/dest/api/contract.d.ts.map +1 -1
  3. package/dest/api/contract.js +1 -1
  4. package/dest/api/wallet.d.ts +3 -1
  5. package/dest/api/wallet.d.ts.map +1 -1
  6. package/dest/api/wallet.js +3 -1
  7. package/dest/contract/base_contract_interaction.d.ts +3 -18
  8. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  9. package/dest/contract/base_contract_interaction.js +5 -26
  10. package/dest/contract/deploy_method.d.ts +2 -10
  11. package/dest/contract/deploy_method.d.ts.map +1 -1
  12. package/dest/contract/deploy_method.js +4 -16
  13. package/dest/utils/authwit.d.ts +0 -7
  14. package/dest/utils/authwit.d.ts.map +1 -1
  15. package/dest/utils/authwit.js +0 -11
  16. package/dest/wallet/base_wallet.d.ts +11 -5
  17. package/dest/wallet/base_wallet.d.ts.map +1 -1
  18. package/dest/wallet/base_wallet.js +18 -9
  19. package/dest/wallet/wallet.d.ts +20 -10
  20. package/dest/wallet/wallet.d.ts.map +1 -1
  21. package/dest/wallet/wallet.js +17 -9
  22. package/package.json +9 -9
  23. package/src/api/contract.ts +9 -2
  24. package/src/api/wallet.ts +28 -7
  25. package/src/contract/base_contract_interaction.ts +6 -36
  26. package/src/contract/deploy_method.ts +6 -27
  27. package/src/utils/authwit.ts +0 -10
  28. package/src/wallet/base_wallet.ts +16 -12
  29. package/src/wallet/wallet.ts +29 -13
  30. package/dest/contract/deploy_proven_tx.d.ts +0 -21
  31. package/dest/contract/deploy_proven_tx.d.ts.map +0 -1
  32. package/dest/contract/deploy_proven_tx.js +0 -21
  33. package/dest/contract/proven_tx.d.ts +0 -21
  34. package/dest/contract/proven_tx.d.ts.map +0 -1
  35. package/dest/contract/proven_tx.js +0 -23
  36. package/src/contract/deploy_proven_tx.ts +0 -45
  37. package/src/contract/proven_tx.ts +0 -36
@@ -1,36 +0,0 @@
1
- import { type OffchainEffect, type ProvingStats, Tx } from '@aztec/stdlib/tx';
2
-
3
- import type { Wallet } from '../wallet/wallet.js';
4
- import { SentTx } from './sent_tx.js';
5
-
6
- /**
7
- * A proven transaction that can be sent to the network. Returned by the `prove` method of a contract interaction.
8
- */
9
- export class ProvenTx extends Tx {
10
- #wallet: Wallet;
11
-
12
- constructor(
13
- wallet: Wallet,
14
- tx: Tx,
15
- /** The offchain effects emitted during the execution of the transaction. */
16
- public offchainEffects: OffchainEffect[],
17
- // eslint-disable-next-line jsdoc/require-jsdoc
18
- public stats?: ProvingStats,
19
- ) {
20
- super(tx.txHash, tx.data, tx.clientIvcProof, tx.contractClassLogFields, tx.publicFunctionCalldata);
21
- this.#wallet = wallet;
22
- }
23
-
24
- protected get wallet(): Wallet {
25
- return this.#wallet;
26
- }
27
-
28
- /**
29
- * Sends the transaction to the network via the provided wallet.
30
- */
31
- public send(): SentTx {
32
- const sendTx = () => this.#wallet.sendTx(this);
33
-
34
- return new SentTx(this.#wallet, sendTx);
35
- }
36
- }