@aztec/aztec.js 0.84.0 → 0.85.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.
@@ -12,7 +12,7 @@ import { ProvenTx } from './proven_tx.js';
12
12
  * Sends the transaction to the network via the provided wallet.
13
13
  */ send() {
14
14
  const promise = (()=>{
15
- return this.wallet.sendTx(this);
15
+ return this.wallet.sendTx(this.getPlainDataTx());
16
16
  })();
17
17
  return new DeploySentTx(this.wallet, promise, this.postDeployCtor, this.instanceGetter);
18
18
  }
@@ -62,7 +62,7 @@ import { getRegistererContract } from '../contract/protocol_contracts.js';
62
62
  const { artifactMetadataHash, artifactTreeLeafIndex, artifactTreeSiblingPath, functionMetadataHash, privateFunctionsArtifactTreeRoot } = await createUtilityFunctionMembershipProof(selector, artifact);
63
63
  const registerer = await getRegistererContract(wallet);
64
64
  const bytecode = bufferAsFields(utilityFunctionArtifact.bytecode, MAX_PACKED_BYTECODE_SIZE_PER_PRIVATE_FUNCTION_IN_FIELDS);
65
- return registerer.methods.broadcast_unconstrained_function(contractClass.id, artifactMetadataHash, privateFunctionsArtifactTreeRoot, padArrayEnd(artifactTreeSiblingPath, Fr.ZERO, ARTIFACT_FUNCTION_TREE_MAX_HEIGHT), artifactTreeLeafIndex, // eslint-disable-next-line camelcase
65
+ return registerer.methods.broadcast_utility_function(contractClass.id, artifactMetadataHash, privateFunctionsArtifactTreeRoot, padArrayEnd(artifactTreeSiblingPath, Fr.ZERO, ARTIFACT_FUNCTION_TREE_MAX_HEIGHT), artifactTreeLeafIndex, // eslint-disable-next-line camelcase
66
66
  {
67
67
  selector,
68
68
  metadata_hash: functionMetadataHash
@@ -188,7 +188,7 @@ import { BaseWallet } from './base_wallet.js';
188
188
  }
189
189
  getIsConsumableAbi() {
190
190
  return {
191
- name: 'unconstrained_is_consumable',
191
+ name: 'utility_is_consumable',
192
192
  isInitializer: false,
193
193
  functionType: FunctionType.UTILITY,
194
194
  isInternal: false,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aztec/aztec.js",
3
3
  "homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/aztec.js",
4
- "version": "0.84.0",
4
+ "version": "0.85.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./dest/index.js",
@@ -80,13 +80,13 @@
80
80
  ]
81
81
  },
82
82
  "dependencies": {
83
- "@aztec/constants": "0.84.0",
84
- "@aztec/entrypoints": "0.84.0",
85
- "@aztec/ethereum": "0.84.0",
86
- "@aztec/foundation": "0.84.0",
87
- "@aztec/l1-artifacts": "0.84.0",
88
- "@aztec/protocol-contracts": "0.84.0",
89
- "@aztec/stdlib": "0.84.0",
83
+ "@aztec/constants": "0.85.0",
84
+ "@aztec/entrypoints": "0.85.0",
85
+ "@aztec/ethereum": "0.85.0",
86
+ "@aztec/foundation": "0.85.0",
87
+ "@aztec/l1-artifacts": "0.85.0",
88
+ "@aztec/protocol-contracts": "0.85.0",
89
+ "@aztec/stdlib": "0.85.0",
90
90
  "axios": "^1.7.2",
91
91
  "tslib": "^2.4.0",
92
92
  "viem": "2.23.7"
@@ -96,7 +96,7 @@
96
96
  "@types/jest": "^29.5.0",
97
97
  "@types/node": "^18.7.23",
98
98
  "buffer": "^6.0.3",
99
- "crypto-browserify": "^3.12.0",
99
+ "crypto-browserify": "^3.12.1",
100
100
  "jest": "^29.5.0",
101
101
  "jest-mock-extended": "^3.0.3",
102
102
  "process": "^0.11.10",
@@ -25,7 +25,7 @@ export class DeployProvenTx<TContract extends Contract = Contract> extends Prove
25
25
  */
26
26
  public override send(): DeploySentTx<TContract> {
27
27
  const promise = (() => {
28
- return this.wallet.sendTx(this);
28
+ return this.wallet.sendTx(this.getPlainDataTx());
29
29
  })();
30
30
 
31
31
  return new DeploySentTx(this.wallet, promise, this.postDeployCtor, this.instanceGetter);
@@ -127,7 +127,7 @@ export async function broadcastUtilityFunction(
127
127
  MAX_PACKED_BYTECODE_SIZE_PER_PRIVATE_FUNCTION_IN_FIELDS,
128
128
  );
129
129
  return registerer.methods
130
- .broadcast_unconstrained_function(
130
+ .broadcast_utility_function(
131
131
  contractClass.id,
132
132
  artifactMetadataHash,
133
133
  privateFunctionsArtifactTreeRoot,
@@ -219,7 +219,7 @@ export class AccountWallet extends BaseWallet {
219
219
 
220
220
  private getIsConsumableAbi(): FunctionAbi {
221
221
  return {
222
- name: 'unconstrained_is_consumable',
222
+ name: 'utility_is_consumable',
223
223
  isInitializer: false,
224
224
  functionType: FunctionType.UTILITY,
225
225
  isInternal: false,