@aztec/txe 0.45.1 → 0.46.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/txe",
3
- "version": "0.45.1",
3
+ "version": "0.46.2",
4
4
  "type": "module",
5
5
  "exports": "./dest/index.js",
6
6
  "bin": "./dest/bin/index.js",
@@ -57,18 +57,18 @@
57
57
  ]
58
58
  },
59
59
  "dependencies": {
60
- "@aztec/archiver": "0.45.1",
61
- "@aztec/aztec.js": "0.45.1",
62
- "@aztec/circuit-types": "0.45.1",
63
- "@aztec/circuits.js": "0.45.1",
64
- "@aztec/foundation": "0.45.1",
65
- "@aztec/key-store": "0.45.1",
66
- "@aztec/kv-store": "0.45.1",
67
- "@aztec/noir-contracts.js": "0.45.1",
68
- "@aztec/pxe": "0.45.1",
69
- "@aztec/simulator": "0.45.1",
70
- "@aztec/types": "0.45.1",
71
- "@aztec/world-state": "0.45.1"
60
+ "@aztec/archiver": "0.46.2",
61
+ "@aztec/aztec.js": "0.46.2",
62
+ "@aztec/circuit-types": "0.46.2",
63
+ "@aztec/circuits.js": "0.46.2",
64
+ "@aztec/foundation": "0.46.2",
65
+ "@aztec/key-store": "0.46.2",
66
+ "@aztec/kv-store": "0.46.2",
67
+ "@aztec/noir-contracts.js": "0.46.2",
68
+ "@aztec/pxe": "0.46.2",
69
+ "@aztec/simulator": "0.46.2",
70
+ "@aztec/types": "0.46.2",
71
+ "@aztec/world-state": "0.46.2"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@jest/globals": "^29.5.0",
@@ -179,7 +179,6 @@ export class TXE implements TypedOracle {
179
179
  inputs.historicalHeader.state = stateReference;
180
180
  inputs.callContext.msgSender = this.msgSender;
181
181
  inputs.callContext.storageContractAddress = this.contractAddress;
182
- inputs.callContext.sideEffectCounter = sideEffectsCounter;
183
182
  inputs.callContext.isStaticCall = isStaticCall;
184
183
  inputs.callContext.isDelegateCall = isDelegateCall;
185
184
  inputs.startSideEffectCounter = sideEffectsCounter;
@@ -721,7 +720,6 @@ export class TXE implements TypedOracle {
721
720
  TxContext.empty(),
722
721
  /* pendingNullifiers */ [],
723
722
  /* transactionFee */ Fr.ONE,
724
- callContext.sideEffectCounter,
725
723
  );
726
724
  }
727
725
 
@@ -743,7 +741,6 @@ export class TXE implements TypedOracle {
743
741
  const callContext = CallContext.empty();
744
742
  callContext.msgSender = this.msgSender;
745
743
  callContext.functionSelector = this.functionSelector;
746
- callContext.sideEffectCounter = this.sideEffectsCounter;
747
744
  callContext.storageContractAddress = targetContractAddress;
748
745
  callContext.isStaticCall = isStaticCall;
749
746
  callContext.isDelegateCall = isDelegateCall;
@@ -785,7 +782,6 @@ export class TXE implements TypedOracle {
785
782
  const callContext = CallContext.empty();
786
783
  callContext.msgSender = this.msgSender;
787
784
  callContext.functionSelector = this.functionSelector;
788
- callContext.sideEffectCounter = sideEffectCounter;
789
785
  callContext.storageContractAddress = targetContractAddress;
790
786
  callContext.isStaticCall = isStaticCall;
791
787
  callContext.isDelegateCall = isDelegateCall;
@@ -827,7 +823,6 @@ export class TXE implements TypedOracle {
827
823
  const callContext = CallContext.empty();
828
824
  callContext.msgSender = this.msgSender;
829
825
  callContext.functionSelector = this.functionSelector;
830
- callContext.sideEffectCounter = sideEffectCounter;
831
826
  callContext.storageContractAddress = targetContractAddress;
832
827
  callContext.isStaticCall = isStaticCall;
833
828
  callContext.isDelegateCall = isDelegateCall;
@@ -850,7 +845,6 @@ export class TXE implements TypedOracle {
850
845
  const parentCallContext = CallContext.empty();
851
846
  parentCallContext.msgSender = currentMessageSender;
852
847
  parentCallContext.functionSelector = currentFunctionSelector;
853
- parentCallContext.sideEffectCounter = sideEffectCounter;
854
848
  parentCallContext.storageContractAddress = currentContractAddress;
855
849
  parentCallContext.isStaticCall = isStaticCall;
856
850
  parentCallContext.isDelegateCall = isDelegateCall;
@@ -860,6 +854,7 @@ export class TXE implements TypedOracle {
860
854
  contractAddress: targetContractAddress,
861
855
  functionSelector,
862
856
  callContext,
857
+ sideEffectCounter,
863
858
  args,
864
859
  });
865
860
  }
@@ -574,13 +574,15 @@ export class TXEService {
574
574
  ovskApp: ForeignCallSingle,
575
575
  ovpkMX: ForeignCallSingle,
576
576
  ovpkMY: ForeignCallSingle,
577
+ ovpkMIsInfinite: ForeignCallSingle,
577
578
  ivpkMX: ForeignCallSingle,
578
579
  ivpkMY: ForeignCallSingle,
580
+ ivpkMIsInfinite: ForeignCallSingle,
579
581
  preimage: ForeignCallArray,
580
582
  ) {
581
- const ovpkM = new Point(fromSingle(ovpkMX), fromSingle(ovpkMY));
583
+ const ovpkM = new Point(fromSingle(ovpkMX), fromSingle(ovpkMY), !fromSingle(ovpkMIsInfinite).isZero());
582
584
  const ovKeys = new KeyValidationRequest(ovpkM, Fr.fromString(fromSingle(ovskApp).toString()));
583
- const ivpkM = new Point(fromSingle(ivpkMX), fromSingle(ivpkMY));
585
+ const ivpkM = new Point(fromSingle(ivpkMX), fromSingle(ivpkMY), !fromSingle(ivpkMIsInfinite).isZero());
584
586
  const encLog = this.typedOracle.computeEncryptedNoteLog(
585
587
  AztecAddress.fromString(fromSingle(contractAddress).toString()),
586
588
  Fr.fromString(fromSingle(storageSlot).toString()),
@@ -599,7 +601,7 @@ export class TXEService {
599
601
 
600
602
  emitEncryptedLog(
601
603
  _contractAddress: ForeignCallSingle,
602
- _randomandomness: ForeignCallSingle,
604
+ _randomness: ForeignCallSingle,
603
605
  _encryptedLog: ForeignCallSingle,
604
606
  _counter: ForeignCallSingle,
605
607
  ) {
@@ -675,6 +677,7 @@ export class TXEService {
675
677
  publicCallRequest.contractAddress.toField(),
676
678
  publicCallRequest.functionSelector.toField(),
677
679
  ...publicCallRequest.callContext.toFields(),
680
+ fromSingle(sideEffectCounter),
678
681
  publicCallRequest.getArgsHash(),
679
682
  ];
680
683
  return toForeignCallResult([toArray(fields)]);
@@ -701,6 +704,7 @@ export class TXEService {
701
704
  publicTeardownCallRequest.contractAddress.toField(),
702
705
  publicTeardownCallRequest.functionSelector.toField(),
703
706
  ...publicTeardownCallRequest.callContext.toFields(),
707
+ fromSingle(sideEffectCounter),
704
708
  publicTeardownCallRequest.getArgsHash(),
705
709
  ];
706
710