@aztec/aztec.js 3.0.0-nightly.20251022 → 3.0.0-nightly.20251024

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 (114) hide show
  1. package/dest/account/account.d.ts +2 -2
  2. package/dest/account/account_contract.d.ts +1 -1
  3. package/dest/account/account_contract.d.ts.map +1 -1
  4. package/dest/api/abi.d.ts +1 -0
  5. package/dest/api/abi.d.ts.map +1 -1
  6. package/dest/api/addresses.d.ts +1 -0
  7. package/dest/api/addresses.d.ts.map +1 -1
  8. package/dest/api/addresses.js +1 -0
  9. package/dest/api/block.d.ts +3 -0
  10. package/dest/api/block.d.ts.map +1 -0
  11. package/dest/api/block.js +2 -0
  12. package/dest/api/contract.d.ts +2 -4
  13. package/dest/api/contract.d.ts.map +1 -1
  14. package/dest/api/contract.js +1 -2
  15. package/dest/api/crypto.d.ts +2 -0
  16. package/dest/api/crypto.d.ts.map +1 -0
  17. package/dest/api/crypto.js +1 -0
  18. package/dest/api/keys.d.ts +4 -0
  19. package/dest/api/keys.d.ts.map +1 -0
  20. package/dest/api/keys.js +3 -0
  21. package/dest/api/log.d.ts +1 -0
  22. package/dest/api/log.d.ts.map +1 -1
  23. package/dest/api/log.js +1 -0
  24. package/dest/api/messaging.d.ts +3 -0
  25. package/dest/api/messaging.d.ts.map +1 -0
  26. package/dest/api/messaging.js +2 -0
  27. package/dest/api/node.d.ts +21 -0
  28. package/dest/api/node.d.ts.map +1 -0
  29. package/dest/api/node.js +18 -0
  30. package/dest/api/note.d.ts +2 -0
  31. package/dest/api/note.d.ts.map +1 -0
  32. package/dest/api/note.js +1 -0
  33. package/dest/api/protocol.d.ts +3 -0
  34. package/dest/api/protocol.d.ts.map +1 -0
  35. package/dest/api/protocol.js +2 -0
  36. package/dest/api/trees.d.ts +3 -0
  37. package/dest/api/trees.d.ts.map +1 -0
  38. package/dest/api/trees.js +2 -0
  39. package/dest/api/tx.d.ts +2 -0
  40. package/dest/api/tx.d.ts.map +1 -0
  41. package/dest/api/tx.js +1 -0
  42. package/dest/api/utils.d.ts +10 -4
  43. package/dest/api/utils.d.ts.map +1 -1
  44. package/dest/api/utils.js +10 -3
  45. package/dest/api/wallet.d.ts +3 -1
  46. package/dest/api/wallet.d.ts.map +1 -1
  47. package/dest/api/wallet.js +3 -1
  48. package/dest/contract/base_contract_interaction.d.ts +3 -18
  49. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  50. package/dest/contract/base_contract_interaction.js +5 -26
  51. package/dest/contract/contract_base.d.ts +1 -1
  52. package/dest/contract/contract_base.d.ts.map +1 -1
  53. package/dest/contract/deploy_method.d.ts +2 -10
  54. package/dest/contract/deploy_method.d.ts.map +1 -1
  55. package/dest/contract/deploy_method.js +4 -16
  56. package/dest/contract/wait_for_proven.d.ts +1 -1
  57. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  58. package/dest/utils/authwit.d.ts +0 -7
  59. package/dest/utils/authwit.d.ts.map +1 -1
  60. package/dest/utils/authwit.js +0 -11
  61. package/dest/wallet/account_manager.d.ts +1 -1
  62. package/dest/wallet/account_manager.d.ts.map +1 -1
  63. package/dest/wallet/base_wallet.d.ts +11 -5
  64. package/dest/wallet/base_wallet.d.ts.map +1 -1
  65. package/dest/wallet/base_wallet.js +18 -9
  66. package/dest/wallet/wallet.d.ts +20 -10
  67. package/dest/wallet/wallet.d.ts.map +1 -1
  68. package/dest/wallet/wallet.js +17 -9
  69. package/package.json +21 -17
  70. package/src/api/abi.ts +11 -0
  71. package/src/api/addresses.ts +1 -0
  72. package/src/api/block.ts +2 -0
  73. package/src/api/contract.ts +9 -3
  74. package/src/api/crypto.ts +1 -0
  75. package/src/api/keys.ts +8 -0
  76. package/src/api/log.ts +1 -0
  77. package/src/api/messaging.ts +2 -0
  78. package/src/api/node.ts +20 -0
  79. package/src/api/note.ts +1 -0
  80. package/src/api/protocol.ts +2 -0
  81. package/src/api/trees.ts +2 -0
  82. package/src/api/tx.ts +11 -0
  83. package/src/api/utils.ts +12 -12
  84. package/src/api/wallet.ts +28 -7
  85. package/src/contract/base_contract_interaction.ts +6 -36
  86. package/src/contract/deploy_method.ts +6 -27
  87. package/src/contract/wait_for_proven.ts +1 -1
  88. package/src/utils/authwit.ts +0 -10
  89. package/src/wallet/base_wallet.ts +16 -12
  90. package/src/wallet/wallet.ts +29 -13
  91. package/dest/api/interfaces.d.ts +0 -2
  92. package/dest/api/interfaces.d.ts.map +0 -1
  93. package/dest/api/interfaces.js +0 -1
  94. package/dest/api/log_id.d.ts +0 -2
  95. package/dest/api/log_id.d.ts.map +0 -1
  96. package/dest/api/log_id.js +0 -1
  97. package/dest/api/tx_hash.d.ts +0 -2
  98. package/dest/api/tx_hash.d.ts.map +0 -1
  99. package/dest/api/tx_hash.js +0 -1
  100. package/dest/contract/deploy_proven_tx.d.ts +0 -21
  101. package/dest/contract/deploy_proven_tx.d.ts.map +0 -1
  102. package/dest/contract/deploy_proven_tx.js +0 -21
  103. package/dest/contract/proven_tx.d.ts +0 -21
  104. package/dest/contract/proven_tx.d.ts.map +0 -1
  105. package/dest/contract/proven_tx.js +0 -23
  106. package/dest/index.d.ts +0 -58
  107. package/dest/index.d.ts.map +0 -1
  108. package/dest/index.js +0 -61
  109. package/src/api/interfaces.ts +0 -1
  110. package/src/api/log_id.ts +0 -1
  111. package/src/api/tx_hash.ts +0 -1
  112. package/src/contract/deploy_proven_tx.ts +0 -45
  113. package/src/contract/proven_tx.ts +0 -36
  114. package/src/index.ts +0 -84
@@ -34,9 +34,9 @@ export declare class BaseAccount implements Account {
34
34
  getChainId(): Fr;
35
35
  getVersion(): Fr;
36
36
  /** Returns the complete address of the account that implements this wallet. */
37
- getCompleteAddress(): import("../index.js").CompleteAddress;
37
+ getCompleteAddress(): import("../api/addresses.js").CompleteAddress;
38
38
  /** Returns the address of the account that implements this wallet. */
39
- getAddress(): import("../index.js").AztecAddress;
39
+ getAddress(): import("../api/addresses.js").AztecAddress;
40
40
  /**
41
41
  * Computes an authentication witness from either a message hash or an intent.
42
42
  *
@@ -39,5 +39,5 @@ export interface AccountContract {
39
39
  /**
40
40
  * Compute the address of an account contract from secret and salt.
41
41
  */
42
- export declare function getAccountContractAddress(accountContract: AccountContract, secret: Fr, salt: Fr): Promise<import("../index.js").AztecAddress>;
42
+ export declare function getAccountContractAddress(accountContract: AccountContract, secret: Fr, salt: Fr): Promise<import("../api/addresses.js").AztecAddress>;
43
43
  //# sourceMappingURL=account_contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account_contract.d.ts","sourceRoot":"","sources":["../../src/account/account_contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAI9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEjD;;OAEG;IACH,gCAAgC,IAAI,OAAO,CACvC;QACE,+DAA+D;QAC/D,eAAe,EAAE,MAAM,CAAC;QACxB,+DAA+D;QAC/D,eAAe,EAAE,GAAG,EAAE,CAAC;KACxB,GACD,SAAS,CACZ,CAAC;IAEF;;;;;;;OAOG;IACH,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,GAAG,gBAAgB,CAAC;IAE/E;;;OAGG;IACH,sBAAsB,CAAC,OAAO,EAAE,eAAe,GAAG,mBAAmB,CAAC;CACvE;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,+CAcrG"}
1
+ {"version":3,"file":"account_contract.d.ts","sourceRoot":"","sources":["../../src/account/account_contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAI9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEjD;;OAEG;IACH,gCAAgC,IAAI,OAAO,CACvC;QACE,+DAA+D;QAC/D,eAAe,EAAE,MAAM,CAAC;QACxB,+DAA+D;QAC/D,eAAe,EAAE,GAAG,EAAE,CAAC;KACxB,GACD,SAAS,CACZ,CAAC;IAEF;;;;;;;OAOG;IACH,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,GAAG,gBAAgB,CAAC;IAE/E;;;OAGG;IACH,sBAAsB,CAAC,OAAO,EAAE,eAAe,GAAG,mBAAmB,CAAC;CACvE;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,uDAcrG"}
package/dest/api/abi.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { type ContractArtifact, type FunctionArtifact, type FunctionAbi, EventSelector, FunctionType, FunctionSelector, FunctionCall, NoteSelector, type ABIParameter, decodeFromAbi, encodeArguments, type AbiType, isAddressStruct, isAztecAddressStruct, isEthAddressStruct, isWrappedFieldStruct, isFunctionSelectorStruct, loadContractArtifact, loadContractArtifactForPublic, getAllFunctionAbis, contractArtifactToBuffer, contractArtifactFromBuffer, } from '@aztec/stdlib/abi';
2
2
  export { type NoirCompiledContract } from '@aztec/stdlib/noir';
3
+ export { type AztecAddressLike, type EthAddressLike, type EventSelectorLike, type FieldLike, type FunctionSelectorLike, type U128Like, type WrappedFieldLike, } from '../utils/abi_types.js';
3
4
  //# sourceMappingURL=abi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../src/api/abi.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,KAAK,YAAY,EACjB,aAAa,EACb,eAAe,EACf,KAAK,OAAO,EACZ,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,6BAA6B,EAC7B,kBAAkB,EAClB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../src/api/abi.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,KAAK,YAAY,EACjB,aAAa,EACb,eAAe,EACf,KAAK,OAAO,EACZ,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,6BAA6B,EAC7B,kBAAkB,EAClB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG/D,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,gBAAgB,GACtB,MAAM,uBAAuB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { AztecAddress } from '@aztec/stdlib/aztec-address';
2
2
  export { CompleteAddress } from '@aztec/stdlib/contract';
3
+ export { EthAddress } from '@aztec/foundation/eth-address';
3
4
  //# sourceMappingURL=addresses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../src/api/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../src/api/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { AztecAddress } from '@aztec/stdlib/aztec-address';
2
2
  export { CompleteAddress } from '@aztec/stdlib/contract';
3
+ export { EthAddress } from '@aztec/foundation/eth-address';
@@ -0,0 +1,3 @@
1
+ export { Body, L2Block } from '@aztec/stdlib/block';
2
+ export { getTimestampRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
3
+ //# sourceMappingURL=block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../src/api/block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Body, L2Block } from '@aztec/stdlib/block';
2
+ export { getTimestampRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
@@ -37,13 +37,11 @@
37
37
  */
38
38
  export { Contract } from '../contract/contract.js';
39
39
  export { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
40
- export { type RequestInteractionOptions, type SendInteractionOptions, type ProfileInteractionOptions, type SimulateInteractionOptions, type InteractionFeeOptions, } from '../contract/interaction_options.js';
41
- export { TxProfileResult } from '@aztec/stdlib/tx';
40
+ export { type RequestInteractionOptions, type SendInteractionOptions, type ProfileInteractionOptions, type SimulateInteractionOptions, type InteractionFeeOptions, toProfileOptions, toSendOptions, toSimulateOptions, } from '../contract/interaction_options.js';
42
41
  export { DefaultWaitOpts, SentTx, type WaitOpts } from '../contract/sent_tx.js';
43
- export { ProvenTx } from '../contract/proven_tx.js';
44
42
  export { ContractBase, type ContractMethod, type ContractStorageLayout } from '../contract/contract_base.js';
45
43
  export { BatchCall } from '../contract/batch_call.js';
46
- export { type DeployOptions, DeployMethod } from '../contract/deploy_method.js';
44
+ export { type DeployOptions, DeployMethod, type RequestDeployOptions, type SimulateDeployOptions, } from '../contract/deploy_method.js';
47
45
  export { DeploySentTx } from '../contract/deploy_sent_tx.js';
48
46
  export { waitForProven, type WaitForProvenOpts, DefaultWaitForProvenOpts } from '../contract/wait_for_proven.js';
49
47
  export { getGasLimits } from '../contract/get_gas_limits.js';
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/api/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAE3F,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC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AAE,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EACL,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACjH,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,4BAA4B,EAC5B,0CAA0C,EAC1C,KAAK,QAAQ,GACd,MAAM,wBAAwB,CAAC"}
@@ -36,9 +36,8 @@
36
36
  * @packageDocumentation
37
37
  */ export { Contract } from '../contract/contract.js';
38
38
  export { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
39
- export { TxProfileResult } from '@aztec/stdlib/tx';
39
+ export { toProfileOptions, toSendOptions, toSimulateOptions } from '../contract/interaction_options.js';
40
40
  export { DefaultWaitOpts, SentTx } from '../contract/sent_tx.js';
41
- export { ProvenTx } from '../contract/proven_tx.js';
42
41
  export { ContractBase } from '../contract/contract_base.js';
43
42
  export { BatchCall } from '../contract/batch_call.js';
44
43
  export { DeployMethod } from '../contract/deploy_method.js';
@@ -0,0 +1,2 @@
1
+ export { computeSecretHash } from '@aztec/stdlib/hash';
2
+ //# sourceMappingURL=crypto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/api/crypto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ export { computeSecretHash } from '@aztec/stdlib/hash';
@@ -0,0 +1,4 @@
1
+ export { type PublicKey, PublicKeys } from '@aztec/stdlib/keys';
2
+ export { computeAppNullifierSecretKey, deriveKeys, deriveMasterIncomingViewingSecretKey, deriveMasterNullifierSecretKey, } from '@aztec/stdlib/keys';
3
+ export { generatePublicKey } from '../utils/pub_key.js';
4
+ //# sourceMappingURL=keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/api/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,4BAA4B,EAC5B,UAAU,EACV,oCAAoC,EACpC,8BAA8B,GAC/B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { PublicKeys } from '@aztec/stdlib/keys';
2
+ export { computeAppNullifierSecretKey, deriveKeys, deriveMasterIncomingViewingSecretKey, deriveMasterNullifierSecretKey } from '@aztec/stdlib/keys';
3
+ export { generatePublicKey } from '../utils/pub_key.js';
package/dest/api/log.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { createLogger, type Logger } from '@aztec/foundation/log';
2
+ export { LogId, type LogFilter } from '@aztec/stdlib/logs';
2
3
  //# sourceMappingURL=log.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/api/log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/api/log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC"}
package/dest/api/log.js CHANGED
@@ -1 +1,2 @@
1
1
  export { createLogger } from '@aztec/foundation/log';
2
+ export { LogId } from '@aztec/stdlib/logs';
@@ -0,0 +1,3 @@
1
+ export { L1ToL2Message, L2Actor, L1Actor } from '@aztec/stdlib/messaging';
2
+ export { isL1ToL2MessageReady, waitForL1ToL2MessageReady } from '../utils/cross_chain.js';
3
+ //# sourceMappingURL=messaging.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/api/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { L1ToL2Message, L2Actor, L1Actor } from '@aztec/stdlib/messaging';
2
+ export { isL1ToL2MessageReady, waitForL1ToL2MessageReady } from '../utils/cross_chain.js';
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The `node` module provides utilities for connecting to and interacting with an Aztec node.
3
+ *
4
+ * The primary function is {@link createAztecNodeClient}, which creates a JSON-RPC client
5
+ * that connects to a running Aztec node instance. Use {@link waitForNode} to wait for
6
+ * the node to be ready before proceeding.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * import { createAztecNodeClient, waitForNode } from '@aztec/aztec.js/node';
11
+ *
12
+ * const node = createAztecNodeClient('http://localhost:8080');
13
+ * await waitForNode(node);
14
+ * const blockNumber = await node.getBlockNumber();
15
+ * ```
16
+ *
17
+ * @packageDocumentation
18
+ */
19
+ export { createAztecNodeClient, waitForNode, type AztecNode } from '../utils/node.js';
20
+ export { type NodeInfo } from '@aztec/stdlib/contract';
21
+ //# sourceMappingURL=node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/api/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The `node` module provides utilities for connecting to and interacting with an Aztec node.
3
+ *
4
+ * The primary function is {@link createAztecNodeClient}, which creates a JSON-RPC client
5
+ * that connects to a running Aztec node instance. Use {@link waitForNode} to wait for
6
+ * the node to be ready before proceeding.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * import { createAztecNodeClient, waitForNode } from '@aztec/aztec.js/node';
11
+ *
12
+ * const node = createAztecNodeClient('http://localhost:8080');
13
+ * await waitForNode(node);
14
+ * const blockNumber = await node.getBlockNumber();
15
+ * ```
16
+ *
17
+ * @packageDocumentation
18
+ */ export { createAztecNodeClient, waitForNode } from '../utils/node.js';
@@ -0,0 +1,2 @@
1
+ export { UniqueNote, Comparator, Note } from '@aztec/stdlib/note';
2
+ //# sourceMappingURL=note.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../src/api/note.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ export { UniqueNote, Comparator, Note } from '@aztec/stdlib/note';
@@ -0,0 +1,3 @@
1
+ export { ProtocolContractAddress } from '@aztec/protocol-contracts';
2
+ export { INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
3
+ //# sourceMappingURL=protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/api/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { ProtocolContractAddress } from '@aztec/protocol-contracts';
2
+ export { INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
@@ -0,0 +1,3 @@
1
+ export { SiblingPath } from '@aztec/foundation/trees';
2
+ export { MerkleTreeId, merkleTreeIds } from '@aztec/stdlib/trees';
3
+ //# sourceMappingURL=trees.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trees.d.ts","sourceRoot":"","sources":["../../src/api/trees.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { SiblingPath } from '@aztec/foundation/trees';
2
+ export { MerkleTreeId, merkleTreeIds } from '@aztec/stdlib/trees';
@@ -0,0 +1,2 @@
1
+ export { Tx, TxExecutionRequest, TxHash, TxReceipt, TxStatus, Capsule, HashedValues, GlobalVariables, TxProfileResult, } from '@aztec/stdlib/tx';
2
+ //# sourceMappingURL=tx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tx.d.ts","sourceRoot":"","sources":["../../src/api/tx.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,kBAAkB,EAClB,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,eAAe,EACf,eAAe,GAChB,MAAM,kBAAkB,CAAC"}
package/dest/api/tx.js ADDED
@@ -0,0 +1 @@
1
+ export { Tx, TxExecutionRequest, TxHash, TxReceipt, TxStatus, Capsule, HashedValues, GlobalVariables, TxProfileResult } from '@aztec/stdlib/tx';
@@ -1,7 +1,13 @@
1
- export { generatePublicKey } from '../utils/pub_key.js';
2
- export { type AztecAddressLike, type EthAddressLike, type EventSelectorLike, type FieldLike, type FunctionSelectorLike, type U128Like, type WrappedFieldLike, } from '../utils/abi_types.js';
3
- export { waitForNode, createAztecNodeClient, type AztecNode } from '../utils/node.js';
1
+ /**
2
+ * Utility functions for aztec.js.
3
+ *
4
+ * NOTE: This module contains low-usage utilities and may be deprecated in the future.
5
+ * Prefer using more specific modules:
6
+ * - Node connection utilities → `@aztec/aztec.js/node`
7
+ * - Type converters → `@aztec/aztec.js/abi`
8
+ * - Key generation → `@aztec/aztec.js/keys`
9
+ * - Messaging utilities → `@aztec/aztec.js/messaging`
10
+ */
4
11
  export { getFeeJuiceBalance } from '../utils/fee_juice.js';
5
12
  export { readFieldCompressedString } from '../utils/field_compressed_string.js';
6
- export { isL1ToL2MessageReady, waitForL1ToL2MessageReady } from '../utils/cross_chain.js';
7
13
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/api/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,gBAAgB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/api/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC"}
package/dest/api/utils.js CHANGED
@@ -1,5 +1,12 @@
1
- export { generatePublicKey } from '../utils/pub_key.js';
2
- export { waitForNode, createAztecNodeClient } from '../utils/node.js';
1
+ /**
2
+ * Utility functions for aztec.js.
3
+ *
4
+ * NOTE: This module contains low-usage utilities and may be deprecated in the future.
5
+ * Prefer using more specific modules:
6
+ * - Node connection utilities → `@aztec/aztec.js/node`
7
+ * - Type converters → `@aztec/aztec.js/abi`
8
+ * - Key generation → `@aztec/aztec.js/keys`
9
+ * - Messaging utilities → `@aztec/aztec.js/messaging`
10
+ */ // Low-usage utilities - consider these internal/experimental
3
11
  export { getFeeJuiceBalance } from '../utils/fee_juice.js';
4
12
  export { readFieldCompressedString } from '../utils/field_compressed_string.js';
5
- export { isL1ToL2MessageReady, waitForL1ToL2MessageReady } from '../utils/cross_chain.js';
@@ -1,3 +1,5 @@
1
- export { type Aliased, BaseWallet, type Wallet, AccountManager, WalletSchema, type FeeOptions, type UserFeeOptions, type SimulateOptions, type SendOptions, type ProfileOptions, } from '../wallet/index.js';
1
+ export { type Aliased, type ContractInstanceAndArtifact, type UserFeeOptions, type SimulateOptions, type ProfileOptions, type SendOptions, type BatchableMethods, type BatchedMethod, type BatchedMethodResult, type BatchedMethodResultWrapper, type BatchResults, type Wallet, ContractInstantiationDataSchema, FunctionCallSchema, ExecutionPayloadSchema, UserFeeOptionsSchema, WalletSimulationFeeOptionSchema, SendOptionsSchema, SimulateOptionsSchema, ProfileOptionsSchema, InstanceDataSchema, MessageHashOrIntentSchema, BatchedMethodSchema, ContractMetadataSchema, ContractClassMetadataSchema, EventMetadataDefinitionSchema, WalletSchema, } from '../wallet/wallet.js';
2
+ export { type FeeOptions, BaseWallet } from '../wallet/base_wallet.js';
3
+ export { AccountManager } from '../wallet/account_manager.js';
2
4
  export { type DeployAccountOptions, DeployAccountMethod } from '../wallet/deploy_account_method.js';
3
5
  //# sourceMappingURL=wallet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/api/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,UAAU,EACV,KAAK,MAAM,EACX,cAAc,EACd,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,cAAc,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC"}
1
+ {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/api/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,2BAA2B,EAChC,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,+BAA+B,EAC/B,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,+BAA+B,EAC/B,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,YAAY,GACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,UAAU,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,KAAK,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC"}
@@ -1,2 +1,4 @@
1
- export { BaseWallet, AccountManager, WalletSchema } from '../wallet/index.js';
1
+ export { ContractInstantiationDataSchema, FunctionCallSchema, ExecutionPayloadSchema, UserFeeOptionsSchema, WalletSimulationFeeOptionSchema, SendOptionsSchema, SimulateOptionsSchema, ProfileOptionsSchema, InstanceDataSchema, MessageHashOrIntentSchema, BatchedMethodSchema, ContractMetadataSchema, ContractClassMetadataSchema, EventMetadataDefinitionSchema, WalletSchema } from '../wallet/wallet.js';
2
+ export { BaseWallet } from '../wallet/base_wallet.js';
3
+ export { AccountManager } from '../wallet/account_manager.js';
2
4
  export { DeployAccountMethod } from '../wallet/deploy_account_method.js';
@@ -1,9 +1,8 @@
1
1
  import type { ExecutionPayload } from '@aztec/entrypoints/payload';
2
2
  import type { AuthWitness } from '@aztec/stdlib/auth-witness';
3
- import type { Capsule, TxProvingResult } from '@aztec/stdlib/tx';
3
+ import type { Capsule } from '@aztec/stdlib/tx';
4
4
  import type { Wallet } from '../wallet/wallet.js';
5
5
  import { type RequestInteractionOptions, type SendInteractionOptions } from './interaction_options.js';
6
- import { ProvenTx } from './proven_tx.js';
7
6
  import { SentTx } from './sent_tx.js';
8
7
  /**
9
8
  * Base class for an interaction with a contract, be it a deployment, a function call, or a batch.
@@ -22,27 +21,13 @@ export declare abstract class BaseContractInteraction {
22
21
  * @returns An execution request wrapped in promise.
23
22
  */
24
23
  abstract request(options?: RequestInteractionOptions): Promise<ExecutionPayload>;
25
- /**
26
- * Creates a transaction execution request, simulates and proves it. Differs from .prove in
27
- * that its result does not include the wallet nor the composed tx object, but only the proving result.
28
- * This object can then be used to either create a ProvenTx ready to be sent, or directly send the transaction.
29
- * @param options - optional arguments to be used in the creation of the transaction
30
- * @returns The proving result.
31
- */
32
- protected proveInternal(options: SendInteractionOptions): Promise<TxProvingResult>;
33
- /**
34
- * Proves a transaction execution request and returns a tx object ready to be sent.
35
- * @param options - optional arguments to be used in the creation of the transaction
36
- * @returns The resulting transaction
37
- */
38
- prove(options: SendInteractionOptions): Promise<ProvenTx>;
39
24
  /**
40
25
  * Sends a transaction to the contract function with the specified options.
41
26
  * This function throws an error if called on a utility function.
42
27
  * It creates and signs the transaction if necessary, and returns a SentTx instance,
43
28
  * which can be used to track the transaction status, receipt, and events.
44
- * @param options - An optional object containing 'from' property representing
45
- * the AztecAddress of the sender. If not provided, the default address is used.
29
+ * @param options - An object containing 'from' property representing
30
+ * the AztecAddress of the sender and optional fee configuration
46
31
  * @returns A SentTx instance for tracking the transaction status and information.
47
32
  */
48
33
  send(options: SendInteractionOptions): SentTx;
@@ -1 +1 @@
1
- {"version":3,"file":"base_contract_interaction.d.ts","sourceRoot":"","sources":["../../src/contract/base_contract_interaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,sBAAsB,EAAiB,MAAM,0BAA0B,CAAC;AACtH,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC;;;GAGG;AACH,8BAAsB,uBAAuB;IAIzC,SAAS,CAAC,MAAM,EAAE,MAAM;IACxB,SAAS,CAAC,aAAa,EAAE,WAAW,EAAE;IACtC,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE;IAL/B,SAAS,CAAC,GAAG,yCAAgD;gBAGjD,MAAM,EAAE,MAAM,EACd,aAAa,GAAE,WAAW,EAAO,EACjC,QAAQ,GAAE,OAAO,EAAO;IAGpC;;;;;OAKG;aACa,OAAO,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAEvF;;;;;;OAMG;cACa,aAAa,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,eAAe,CAAC;IAOxF;;;;OAIG;IACU,KAAK,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAYtE;;;;;;;;OAQG;IACI,IAAI,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM;CAQrD"}
1
+ {"version":3,"file":"base_contract_interaction.d.ts","sourceRoot":"","sources":["../../src/contract/base_contract_interaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,sBAAsB,EAAiB,MAAM,0BAA0B,CAAC;AACtH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC;;;GAGG;AACH,8BAAsB,uBAAuB;IAIzC,SAAS,CAAC,MAAM,EAAE,MAAM;IACxB,SAAS,CAAC,aAAa,EAAE,WAAW,EAAE;IACtC,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE;IAL/B,SAAS,CAAC,GAAG,yCAAgD;gBAGjD,MAAM,EAAE,MAAM,EACd,aAAa,GAAE,WAAW,EAAO,EACjC,QAAQ,GAAE,OAAO,EAAO;IAGpC;;;;;OAKG;aACa,OAAO,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAGvF;;;;;;;;OAQG;IACI,IAAI,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM;CASrD"}
@@ -1,6 +1,5 @@
1
1
  import { createLogger } from '@aztec/foundation/log';
2
2
  import { toSendOptions } from './interaction_options.js';
3
- import { ProvenTx } from './proven_tx.js';
4
3
  import { SentTx } from './sent_tx.js';
5
4
  /**
6
5
  * Base class for an interaction with a contract, be it a deployment, a function call, or a batch.
@@ -16,41 +15,21 @@ import { SentTx } from './sent_tx.js';
16
15
  this.capsules = capsules;
17
16
  this.log = createLogger('aztecjs:contract_interaction');
18
17
  }
19
- /**
20
- * Creates a transaction execution request, simulates and proves it. Differs from .prove in
21
- * that its result does not include the wallet nor the composed tx object, but only the proving result.
22
- * This object can then be used to either create a ProvenTx ready to be sent, or directly send the transaction.
23
- * @param options - optional arguments to be used in the creation of the transaction
24
- * @returns The proving result.
25
- */ async proveInternal(options) {
26
- const executionPayload = await this.request(options);
27
- const proveOptions = await toSendOptions(options);
28
- return await this.wallet.proveTx(executionPayload, proveOptions);
29
- }
30
- // docs:start:prove
31
- /**
32
- * Proves a transaction execution request and returns a tx object ready to be sent.
33
- * @param options - optional arguments to be used in the creation of the transaction
34
- * @returns The resulting transaction
35
- */ async prove(options) {
36
- // docs:end:prove
37
- const txProvingResult = await this.proveInternal(options);
38
- return new ProvenTx(this.wallet, await txProvingResult.toTx(), txProvingResult.getOffchainEffects(), txProvingResult.stats);
39
- }
40
18
  // docs:start:send
41
19
  /**
42
20
  * Sends a transaction to the contract function with the specified options.
43
21
  * This function throws an error if called on a utility function.
44
22
  * It creates and signs the transaction if necessary, and returns a SentTx instance,
45
23
  * which can be used to track the transaction status, receipt, and events.
46
- * @param options - An optional object containing 'from' property representing
47
- * the AztecAddress of the sender. If not provided, the default address is used.
24
+ * @param options - An object containing 'from' property representing
25
+ * the AztecAddress of the sender and optional fee configuration
48
26
  * @returns A SentTx instance for tracking the transaction status and information.
49
27
  */ send(options) {
50
28
  // docs:end:send
51
29
  const sendTx = async ()=>{
52
- const txProvingResult = await this.proveInternal(options);
53
- return this.wallet.sendTx(await txProvingResult.toTx());
30
+ const executionPayload = await this.request(options);
31
+ const sendOptions = await toSendOptions(options);
32
+ return this.wallet.sendTx(executionPayload, sendOptions);
54
33
  };
55
34
  return new SentTx(this.wallet, sendTx);
56
35
  }
@@ -42,7 +42,7 @@ export declare class ContractBase {
42
42
  /** The wallet used for interacting with this contract. */
43
43
  wallet: Wallet);
44
44
  /** Address of the contract. */
45
- get address(): import("../index.js").AztecAddress;
45
+ get address(): import("../api/addresses.js").AztecAddress;
46
46
  /** Partial address of the contract. */
47
47
  get partialAddress(): Promise<import("@aztec/foundation/schemas").Fr>;
48
48
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"contract_base.d.ts","sourceRoot":"","sources":["../../src/contract/contract_base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAEhB,gBAAgB,EAEjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,2BAA2B,EAAyB,MAAM,wBAAwB,CAAC;AAEjG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAEjF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,2BAA2B,CAAC,GAAG;IAC/E;;OAEG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC3C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,MAAM,IAAI;KACnD,CAAC,IAAI,CAAC,GAAG,WAAW;CACtB,CAAC;AAEF;;GAEG;AACH,qBAAa,YAAY;IAOrB,iDAAiD;aACjC,QAAQ,EAAE,2BAA2B;IACrD,yDAAyD;aACzC,QAAQ,EAAE,gBAAgB;IAC1C,0DAA0D;IACnD,MAAM,EAAE,MAAM;IAXvB;;OAEG;IACI,OAAO,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAM;IAExD,SAAS;IACP,iDAAiD;IACjC,QAAQ,EAAE,2BAA2B;IACrD,yDAAyD;IACzC,QAAQ,EAAE,gBAAgB;IAC1C,0DAA0D;IACnD,MAAM,EAAE,MAAM;IAmBvB,+BAA+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uC;IACvC,IAAW,cAAc,oDAExB;IAED;;;;OAIG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAGxC"}
@@ -5,12 +5,11 @@ import type { AuthWitness } from '@aztec/stdlib/auth-witness';
5
5
  import { AztecAddress } from '@aztec/stdlib/aztec-address';
6
6
  import { type ContractInstanceWithAddress } from '@aztec/stdlib/contract';
7
7
  import type { PublicKeys } from '@aztec/stdlib/keys';
8
- import { type Capsule, type TxProfileResult, TxProvingResult } from '@aztec/stdlib/tx';
8
+ import { type Capsule, type TxProfileResult } from '@aztec/stdlib/tx';
9
9
  import type { Wallet } from '../wallet/wallet.js';
10
10
  import { BaseContractInteraction } from './base_contract_interaction.js';
11
11
  import type { Contract } from './contract.js';
12
12
  import type { ContractBase } from './contract_base.js';
13
- import { DeployProvenTx } from './deploy_proven_tx.js';
14
13
  import { DeploySentTx } from './deploy_sent_tx.js';
15
14
  import { type ProfileInteractionOptions, type RequestInteractionOptions, type SendInteractionOptions, type SimulationInteractionFeeOptions, type SimulationReturn } from './interaction_options.js';
16
15
  /**
@@ -88,7 +87,7 @@ export declare class DeployMethod<TContract extends ContractBase = Contract> ext
88
87
  * @returns The execution payload for this operation
89
88
  */
90
89
  request(options?: RequestDeployOptions): Promise<ExecutionPayload>;
91
- protected convertDeployOptionsToRequestOptions(options: DeployOptions): RequestDeployOptions;
90
+ convertDeployOptionsToRequestOptions(options: DeployOptions): RequestDeployOptions;
92
91
  /**
93
92
  * Adds this contract to the wallet and returns the Contract object.
94
93
  * @param options - Deployment options.
@@ -109,7 +108,6 @@ export declare class DeployMethod<TContract extends ContractBase = Contract> ext
109
108
  * @returns - An array of function calls.
110
109
  */
111
110
  protected getInitializationExecutionPayload(options?: RequestDeployOptions): Promise<ExecutionPayload>;
112
- proveInternal(options: DeployOptions): Promise<TxProvingResult>;
113
111
  /**
114
112
  * Send a contract deployment transaction (initialize and/or publish) using the provided options.
115
113
  * This function extends the 'send' method from the ContractFunctionInteraction class,
@@ -126,12 +124,6 @@ export declare class DeployMethod<TContract extends ContractBase = Contract> ext
126
124
  * @returns An instance object.
127
125
  */
128
126
  getInstance(options?: RequestDeployOptions): Promise<ContractInstanceWithAddress>;
129
- /**
130
- * Prove the request.
131
- * @param options - initialization and publication options.
132
- * @returns The proven tx.
133
- */
134
- prove(options: DeployOptions): Promise<DeployProvenTx<TContract>>;
135
127
  /**
136
128
  * Simulate the deployment
137
129
  *
@@ -1 +1 @@
1
- {"version":3,"file":"deploy_method.d.ts","sourceRoot":"","sources":["../../src/contract/deploy_method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,KAAK,gBAAgB,EAAoB,KAAK,gBAAgB,EAAkB,MAAM,mBAAmB,CAAC;AACnH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,KAAK,2BAA2B,EAIjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAAE,eAAe,EAA0B,MAAM,kBAAkB,CAAC;AAI/G,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EACL,KAAK,yBAAyB,EAC9B,K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9F;;;;;;OAMG;IACU,QAAQ,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAgBtF;;;;;OAKG;IACU,OAAO,CAAC,OAAO,EAAE,aAAa,GAAG,yBAAyB,GAAG,OAAO,CAAC,eAAe,CAAC;IASlG,sCAAsC;IACtC,IAAW,OAAO,6BAEjB;IAED,uDAAuD;IACvD,IAAW,cAAc,4BAExB;IAED;;;;OAIG;IACI,IAAI,CAAC,EACV,aAAkB,EAClB,QAAa,GACd,EAAE;QACD,iDAAiD;QACjD,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;QAC9B,4CAA4C;QAC5C,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;KACtB,GAAG,YAAY;CAYjB"}
@@ -8,7 +8,6 @@ import { publishContractClass } from '../deployment/publish_class.js';
8
8
  import { publishInstance } from '../deployment/publish_instance.js';
9
9
  import { BaseContractInteraction } from './base_contract_interaction.js';
10
10
  import { ContractFunctionInteraction } from './contract_function_interaction.js';
11
- import { DeployProvenTx } from './deploy_proven_tx.js';
12
11
  import { DeploySentTx } from './deploy_sent_tx.js';
13
12
  import { getGasLimits } from './get_gas_limits.js';
14
13
  import { toProfileOptions, toSendOptions, toSimulateOptions } from './interaction_options.js';
@@ -120,11 +119,6 @@ import { toProfileOptions, toSendOptions, toSimulateOptions } from './interactio
120
119
  }
121
120
  return mergeExecutionPayloads(executionsPayloads);
122
121
  }
123
- async proveInternal(options) {
124
- const executionPayload = await this.request(this.convertDeployOptionsToRequestOptions(options));
125
- const proveOptions = await toSendOptions(options);
126
- return await this.wallet.proveTx(executionPayload, proveOptions);
127
- }
128
122
  /**
129
123
  * Send a contract deployment transaction (initialize and/or publish) using the provided options.
130
124
  * This function extends the 'send' method from the ContractFunctionInteraction class,
@@ -133,8 +127,10 @@ import { toProfileOptions, toSendOptions, toSimulateOptions } from './interactio
133
127
  * @param options - An object containing various deployment options such as contractAddressSalt and from.
134
128
  * @returns A SentTx object that returns the receipt and the deployed contract instance.
135
129
  */ send(options) {
136
- const sendTx = ()=>{
137
- return super.send(options).getTxHash();
130
+ const sendTx = async ()=>{
131
+ const executionPayload = await this.request(this.convertDeployOptionsToRequestOptions(options));
132
+ const sendOptions = await toSendOptions(options);
133
+ return this.wallet.sendTx(executionPayload, sendOptions);
138
134
  };
139
135
  this.log.debug(`Sent deployment tx of ${this.artifact.name} contract`);
140
136
  return new DeploySentTx(this.wallet, sendTx, this.postDeployCtor, ()=>this.getInstance(options));
@@ -157,14 +153,6 @@ import { toProfileOptions, toSendOptions, toSimulateOptions } from './interactio
157
153
  return this.instance;
158
154
  }
159
155
  /**
160
- * Prove the request.
161
- * @param options - initialization and publication options.
162
- * @returns The proven tx.
163
- */ async prove(options) {
164
- const txProvingResult = await this.proveInternal(options);
165
- return await DeployProvenTx.fromProvingResult(this.wallet, txProvingResult, this.postDeployCtor, ()=>this.getInstance(options), txProvingResult.stats);
166
- }
167
- /**
168
156
  * Simulate the deployment
169
157
  *
170
158
  * @param options - An optional object containing additional configuration for the simulation.
@@ -1,5 +1,5 @@
1
1
  import type { AztecNode } from '@aztec/stdlib/interfaces/client';
2
- import type { TxReceipt } from '../index.js';
2
+ import type { TxReceipt } from '@aztec/stdlib/tx';
3
3
  /**
4
4
  * Options for waiting for a transaction to be proven.
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"wait_for_proven.d.ts","sourceRoot":"","sources":["../../src/contract/wait_for_proven.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,6DAA6D;IAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAGtC,CAAC;AAEF;;GAEG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,iBAAiB,mBAahG"}
1
+ {"version":3,"file":"wait_for_proven.d.ts","sourceRoot":"","sources":["../../src/contract/wait_for_proven.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,6DAA6D;IAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAGtC,CAAC;AAEF;;GAEG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,iBAAiB,mBAahG"}
@@ -91,13 +91,6 @@ export declare class SetPublicAuthwitContractInteraction extends ContractFunctio
91
91
  private from;
92
92
  private constructor();
93
93
  static create(wallet: Wallet, from: AztecAddress, messageHashOrIntent: Fr | Buffer | IntentInnerHash | CallIntent | ContractFunctionInteractionCallIntent, authorized: boolean): Promise<SetPublicAuthwitContractInteraction>;
94
- /**
95
- * Overrides the proveInternal method, adding the sender of the authwit (authorizer) as from
96
- * and preventing misuse
97
- * @param options - An optional object containing additional configuration for the transaction.
98
- * @returns The result of the transaction as returned by the contract function.
99
- */
100
- proveInternal(options: Omit<SendInteractionOptions, 'from'>): Promise<import("@aztec/stdlib/tx").TxProvingResult>;
101
94
  /**
102
95
  * Overrides the simulate method, adding the sender of the authwit (authorizer) as from
103
96
  * and preventing misuse