@aztec/bot 0.87.7 → 1.0.0-nightly.20250604

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.
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,YAAY,EAQZ,KAAK,GAAG,EAIT,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAIjF,OAAO,EAAE,KAAK,SAAS,EAAwC,MAAM,aAAa,CAAC;AAMnF,qBAAa,UAAU;IAOnB,OAAO,CAAC,QAAQ,CAAC,MAAM;IANzB,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,IAAI,CAAC,CAAY;IACzB,OAAO,CAAC,SAAS,CAAC,CAAiB;IACnC,OAAO,CAAC,GAAG,CAAuB;gBAGf,MAAM,EAAE,SAAS,EAClC,YAAY,EAAE;QAAE,GAAG,CAAC,EAAE,GAAG,CAAC;QAAC,SAAS,CAAC,EAAE,cAAc,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,CAAA;KAAE;IA4B3E;;;OAGG;IACU,KAAK;;;;;;IAQL,QAAQ;;;;;;;IAarB;;;OAGG;YACW,YAAY;YAQZ,0BAA0B;YAgC1B,gBAAgB;IAc9B;;OAEG;YACW,iBAAiB;IAK/B;;;;OAIG;YACW,UAAU;IA6BxB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;YAYZ,gBAAgB;YAoBhB,OAAO;YA2DP,wBAAwB;IAoBtC;;;OAGG;YACW,UAAU;YAuCV,gBAAgB;YAgChB,cAAc;YAMd,WAAW;CAU1B"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,YAAY,EAQZ,KAAK,GAAG,EAIT,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAIjF,OAAO,EAAE,KAAK,SAAS,EAAwC,MAAM,aAAa,CAAC;AAMnF,qBAAa,UAAU;IAOnB,OAAO,CAAC,QAAQ,CAAC,MAAM;IANzB,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,IAAI,CAAC,CAAY;IACzB,OAAO,CAAC,SAAS,CAAC,CAAiB;IACnC,OAAO,CAAC,GAAG,CAAuB;gBAGf,MAAM,EAAE,SAAS,EAClC,YAAY,EAAE;QAAE,GAAG,CAAC,EAAE,GAAG,CAAC;QAAC,SAAS,CAAC,EAAE,cAAc,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,CAAA;KAAE;IA4B3E;;;OAGG;IACU,KAAK;;;;;;IAQL,QAAQ;;;;;;;IAarB;;;OAGG;YACW,YAAY;YAQZ,0BAA0B;YAgC1B,gBAAgB;IAc9B;;OAEG;YACW,iBAAiB;IAK/B;;;;OAIG;YACW,UAAU;IA6BxB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;YAYZ,gBAAgB;YAoBhB,OAAO;YAsEP,wBAAwB;IAoBtC;;;OAGG;YACW,UAAU;YAuCV,gBAAgB;YAgChB,cAAc;YAMd,WAAW;CAU1B"}
package/dest/factory.js CHANGED
@@ -218,13 +218,14 @@ export class BotFactory {
218
218
  const amount1Min = MINT_BALANCE / 4;
219
219
  const [t0Bal, t1Bal, lpBal] = await getPrivateBalances();
220
220
  this.log.info(`Minting ${MINT_BALANCE} tokens of each BotToken0 and BotToken1. Current private balances of ${wallet.getAddress()}: token0=${t0Bal}, token1=${t1Bal}, lp=${lpBal}`);
221
+ // Add authwitnesses for the transfers in AMM::add_liquidity function
221
222
  const token0Authwit = await wallet.createAuthWit({
222
223
  caller: amm.address,
223
- action: token0.methods.transfer_to_public(wallet.getAddress(), amm.address, amount0Max, nonce)
224
+ action: token0.methods.transfer_to_public_and_prepare_private_balance_increase(wallet.getAddress(), amm.address, amount0Max, nonce)
224
225
  });
225
226
  const token1Authwit = await wallet.createAuthWit({
226
227
  caller: amm.address,
227
- action: token1.methods.transfer_to_public(wallet.getAddress(), amm.address, amount1Max, nonce)
228
+ action: token1.methods.transfer_to_public_and_prepare_private_balance_increase(wallet.getAddress(), amm.address, amount1Max, nonce)
228
229
  });
229
230
  const mintTx = new BatchCall(wallet, [
230
231
  token0.methods.mint_to_private(wallet.getAddress(), wallet.getAddress(), MINT_BALANCE),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/bot",
3
- "version": "0.87.7",
3
+ "version": "1.0.0-nightly.20250604",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -50,16 +50,16 @@
50
50
  ]
51
51
  },
52
52
  "dependencies": {
53
- "@aztec/accounts": "0.87.7",
54
- "@aztec/aztec.js": "0.87.7",
55
- "@aztec/entrypoints": "0.87.7",
56
- "@aztec/ethereum": "0.87.7",
57
- "@aztec/foundation": "0.87.7",
58
- "@aztec/noir-contracts.js": "0.87.7",
59
- "@aztec/noir-protocol-circuits-types": "0.87.7",
60
- "@aztec/protocol-contracts": "0.87.7",
61
- "@aztec/stdlib": "0.87.7",
62
- "@aztec/telemetry-client": "0.87.7",
53
+ "@aztec/accounts": "1.0.0-nightly.20250604",
54
+ "@aztec/aztec.js": "1.0.0-nightly.20250604",
55
+ "@aztec/entrypoints": "1.0.0-nightly.20250604",
56
+ "@aztec/ethereum": "1.0.0-nightly.20250604",
57
+ "@aztec/foundation": "1.0.0-nightly.20250604",
58
+ "@aztec/noir-contracts.js": "1.0.0-nightly.20250604",
59
+ "@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250604",
60
+ "@aztec/protocol-contracts": "1.0.0-nightly.20250604",
61
+ "@aztec/stdlib": "1.0.0-nightly.20250604",
62
+ "@aztec/telemetry-client": "1.0.0-nightly.20250604",
63
63
  "source-map-support": "^0.5.21",
64
64
  "tslib": "^2.4.0",
65
65
  "zod": "^3.23.8"
package/src/factory.ts CHANGED
@@ -257,13 +257,24 @@ export class BotFactory {
257
257
  `Minting ${MINT_BALANCE} tokens of each BotToken0 and BotToken1. Current private balances of ${wallet.getAddress()}: token0=${t0Bal}, token1=${t1Bal}, lp=${lpBal}`,
258
258
  );
259
259
 
260
+ // Add authwitnesses for the transfers in AMM::add_liquidity function
260
261
  const token0Authwit = await wallet.createAuthWit({
261
262
  caller: amm.address,
262
- action: token0.methods.transfer_to_public(wallet.getAddress(), amm.address, amount0Max, nonce),
263
+ action: token0.methods.transfer_to_public_and_prepare_private_balance_increase(
264
+ wallet.getAddress(),
265
+ amm.address,
266
+ amount0Max,
267
+ nonce,
268
+ ),
263
269
  });
264
270
  const token1Authwit = await wallet.createAuthWit({
265
271
  caller: amm.address,
266
- action: token1.methods.transfer_to_public(wallet.getAddress(), amm.address, amount1Max, nonce),
272
+ action: token1.methods.transfer_to_public_and_prepare_private_balance_increase(
273
+ wallet.getAddress(),
274
+ amm.address,
275
+ amount1Max,
276
+ nonce,
277
+ ),
267
278
  });
268
279
 
269
280
  const mintTx = new BatchCall(wallet, [