@aztec/protocol-contracts 0.86.0 → 0.87.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.
Files changed (43) hide show
  1. package/artifacts/AuthRegistry.json +736 -663
  2. package/artifacts/ContractClassRegisterer.json +333 -251
  3. package/artifacts/ContractInstanceDeployer.json +456 -425
  4. package/artifacts/FeeJuice.json +296 -265
  5. package/artifacts/MultiCallEntrypoint.json +77 -46
  6. package/artifacts/Router.json +204 -156
  7. package/dest/auth-registry/index.js +1 -1
  8. package/dest/class-registerer/contract_class_registered_event.d.ts +0 -2
  9. package/dest/class-registerer/contract_class_registered_event.d.ts.map +1 -1
  10. package/dest/class-registerer/contract_class_registered_event.js +4 -3
  11. package/dest/class-registerer/index.js +1 -1
  12. package/dest/class-registerer/private_function_broadcasted_event.d.ts +0 -2
  13. package/dest/class-registerer/private_function_broadcasted_event.d.ts.map +1 -1
  14. package/dest/class-registerer/private_function_broadcasted_event.js +2 -2
  15. package/dest/class-registerer/utility_function_broadcasted_event.d.ts +0 -2
  16. package/dest/class-registerer/utility_function_broadcasted_event.d.ts.map +1 -1
  17. package/dest/class-registerer/utility_function_broadcasted_event.js +2 -2
  18. package/dest/fee-juice/index.js +1 -1
  19. package/dest/instance-deployer/contract_instance_updated_event.js +1 -1
  20. package/dest/instance-deployer/index.js +1 -1
  21. package/dest/multi-call-entrypoint/index.js +1 -1
  22. package/dest/protocol_contract_data.js +7 -7
  23. package/dest/router/index.js +1 -1
  24. package/dest/scripts/cleanup_artifacts.js +2 -2
  25. package/dest/tests/fixtures.d.ts +0 -2
  26. package/dest/tests/fixtures.d.ts.map +1 -1
  27. package/package.json +7 -7
  28. package/src/auth-registry/index.ts +1 -1
  29. package/src/build_protocol_contract_tree.ts +2 -2
  30. package/src/class-registerer/contract_class_registered_event.ts +4 -3
  31. package/src/class-registerer/index.ts +1 -1
  32. package/src/class-registerer/private_function_broadcasted_event.ts +2 -2
  33. package/src/class-registerer/utility_function_broadcasted_event.ts +2 -2
  34. package/src/fee-juice/index.ts +1 -1
  35. package/src/instance-deployer/contract_instance_updated_event.ts +1 -1
  36. package/src/instance-deployer/index.ts +1 -1
  37. package/src/multi-call-entrypoint/index.ts +1 -1
  38. package/src/protocol_contract_data.ts +7 -7
  39. package/src/router/index.ts +1 -1
  40. package/dest/protocol_contract_data_2.d.ts +0 -21
  41. package/dest/protocol_contract_data_2.d.ts.map +0 -1
  42. package/dest/protocol_contract_data_2.js +0 -41
  43. package/src/protocol_contract_data_2.ts +0 -61
@@ -1,5 +1,5 @@
1
1
  import { loadContractArtifact } from '@aztec/stdlib/abi';
2
- import AuthRegistryJson from '../../artifacts/AuthRegistry.json' assert {
2
+ import AuthRegistryJson from '../../artifacts/AuthRegistry.json' with {
3
3
  type: 'json'
4
4
  };
5
5
  import { makeProtocolContract } from '../make_protocol_contract.js';
@@ -1,5 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- /// <reference types="node" resolution-mode="require"/>
3
1
  import { Fr } from '@aztec/foundation/fields';
4
2
  import { type ContractClassPublic } from '@aztec/stdlib/contract';
5
3
  import type { ContractClassLog } from '@aztec/stdlib/logs';
@@ -1 +1 @@
1
- {"version":3,"file":"contract_class_registered_event.d.ts","sourceRoot":"","sources":["../../src/class-registerer/contract_class_registered_event.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAG9C,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI3D,sDAAsD;AACtD,qBAAa,4BAA4B;aAErB,eAAe,EAAE,EAAE;aACnB,OAAO,EAAE,MAAM;aACf,YAAY,EAAE,EAAE;aAChB,oBAAoB,EAAE,EAAE;aACxB,oBAAoB,EAAE,MAAM;gBAJ5B,eAAe,EAAE,EAAE,EACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,EAAE,EAChB,oBAAoB,EAAE,EAAE,EACxB,oBAAoB,EAAE,MAAM;IAG9C,MAAM,CAAC,8BAA8B,CAAC,GAAG,EAAE,gBAAgB;IAI3D,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB;IAiB9B,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC;CA2B5D"}
1
+ {"version":3,"file":"contract_class_registered_event.d.ts","sourceRoot":"","sources":["../../src/class-registerer/contract_class_registered_event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAG9C,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI3D,sDAAsD;AACtD,qBAAa,4BAA4B;aAErB,eAAe,EAAE,EAAE;aACnB,OAAO,EAAE,MAAM;aACf,YAAY,EAAE,EAAE;aAChB,oBAAoB,EAAE,EAAE;aACxB,oBAAoB,EAAE,MAAM;gBAJ5B,eAAe,EAAE,EAAE,EACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,EAAE,EAChB,oBAAoB,EAAE,EAAE,EACxB,oBAAoB,EAAE,MAAM;IAG9C,MAAM,CAAC,8BAA8B,CAAC,GAAG,EAAE,gBAAgB;IAI3D,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB;IAkB9B,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC;CA2B5D"}
@@ -16,15 +16,16 @@ import { REGISTERER_CONTRACT_CLASS_REGISTERED_TAG } from '../protocol_contract_d
16
16
  this.packedPublicBytecode = packedPublicBytecode;
17
17
  }
18
18
  static isContractClassRegisteredEvent(log) {
19
- return log.fields[0].equals(REGISTERER_CONTRACT_CLASS_REGISTERED_TAG);
19
+ return log.fields.fields[0].equals(REGISTERER_CONTRACT_CLASS_REGISTERED_TAG);
20
20
  }
21
21
  static fromLog(log) {
22
- const reader = new FieldReader(log.fields.slice(1));
22
+ const fieldsWithoutTag = log.fields.fields.slice(1);
23
+ const reader = new FieldReader(fieldsWithoutTag);
23
24
  const contractClassId = reader.readField();
24
25
  const version = reader.readField().toNumber();
25
26
  const artifactHash = reader.readField();
26
27
  const privateFunctionsRoot = reader.readField();
27
- const packedPublicBytecode = bufferFromFields(reader.readFieldArray(log.fields.slice(1).length - reader.cursor));
28
+ const packedPublicBytecode = bufferFromFields(reader.readFieldArray(fieldsWithoutTag.length - reader.cursor));
28
29
  return new ContractClassRegisteredEvent(contractClassId, version, artifactHash, privateFunctionsRoot, packedPublicBytecode);
29
30
  }
30
31
  async toContractClassPublic() {
@@ -1,5 +1,5 @@
1
1
  import { loadContractArtifact } from '@aztec/stdlib/abi';
2
- import ContractClassRegistererJson from '../../artifacts/ContractClassRegisterer.json' assert {
2
+ import ContractClassRegistererJson from '../../artifacts/ContractClassRegisterer.json' with {
3
3
  type: 'json'
4
4
  };
5
5
  import { makeProtocolContract } from '../make_protocol_contract.js';
@@ -1,5 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- /// <reference types="node" resolution-mode="require"/>
3
1
  import { ARTIFACT_FUNCTION_TREE_MAX_HEIGHT, FUNCTION_TREE_HEIGHT } from '@aztec/constants';
4
2
  import { Fr } from '@aztec/foundation/fields';
5
3
  import type { Tuple } from '@aztec/foundation/serialize';
@@ -1 +1 @@
1
- {"version":3,"file":"private_function_broadcasted_event.d.ts","sourceRoot":"","sources":["../../src/class-registerer/private_function_broadcasted_event.ts"],"names":[],"mappings":";;AAAA,OAAO,EACL,iCAAiC,EACjC,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAoB,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,4CAA4C,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI3D,sDAAsD;AACtD,qBAAa,+BAA+B;aAExB,eAAe,EAAE,EAAE;aACnB,oBAAoB,EAAE,EAAE;aACxB,wBAAwB,EAAE,EAAE;aAC5B,8BAA8B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,oBAAoB,CAAC;aACtE,4BAA4B,EAAE,MAAM;aACpC,+BAA+B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,iCAAiC,CAAC;aACpF,6BAA6B,EAAE,MAAM;aACrC,eAAe,EAAE,0BAA0B;gBAP3C,eAAe,EAAE,EAAE,EACnB,oBAAoB,EAAE,EAAE,EACxB,wBAAwB,EAAE,EAAE,EAC5B,8BAA8B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,oBAAoB,CAAC,EACtE,4BAA4B,EAAE,MAAM,EACpC,+BAA+B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,iCAAiC,CAAC,EACpF,6BAA6B,EAAE,MAAM,EACrC,eAAe,EAAE,0BAA0B;IAG7D,MAAM,CAAC,iCAAiC,CAAC,GAAG,EAAE,gBAAgB;IAI9D,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB;IAapC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAuB5C,6BAA6B,IAAI,4CAA4C;CAa9E;AAED,qBAAa,0BAA2B,YAAW,eAAe;IAE9D,qJAAqJ;aACrI,QAAQ,EAAE,gBAAgB;IAC1C,6BAA6B;aACb,YAAY,EAAE,EAAE;IAChC,wEAAwE;aACxD,MAAM,EAAE,EAAE;IAC1B,gCAAgC;aAChB,QAAQ,EAAE,MAAM;;IAPhC,qJAAqJ;IACrI,QAAQ,EAAE,gBAAgB;IAC1C,6BAA6B;IACb,YAAY,EAAE,EAAE;IAChC,wEAAwE;IACxD,MAAM,EAAE,EAAE;IAC1B,gCAAgC;IAChB,QAAQ,EAAE,MAAM;IAGlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;CAU7C"}
1
+ {"version":3,"file":"private_function_broadcasted_event.d.ts","sourceRoot":"","sources":["../../src/class-registerer/private_function_broadcasted_event.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAoB,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,4CAA4C,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI3D,sDAAsD;AACtD,qBAAa,+BAA+B;aAExB,eAAe,EAAE,EAAE;aACnB,oBAAoB,EAAE,EAAE;aACxB,wBAAwB,EAAE,EAAE;aAC5B,8BAA8B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,oBAAoB,CAAC;aACtE,4BAA4B,EAAE,MAAM;aACpC,+BAA+B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,iCAAiC,CAAC;aACpF,6BAA6B,EAAE,MAAM;aACrC,eAAe,EAAE,0BAA0B;gBAP3C,eAAe,EAAE,EAAE,EACnB,oBAAoB,EAAE,EAAE,EACxB,wBAAwB,EAAE,EAAE,EAC5B,8BAA8B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,oBAAoB,CAAC,EACtE,4BAA4B,EAAE,MAAM,EACpC,+BAA+B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,iCAAiC,CAAC,EACpF,6BAA6B,EAAE,MAAM,EACrC,eAAe,EAAE,0BAA0B;IAG7D,MAAM,CAAC,iCAAiC,CAAC,GAAG,EAAE,gBAAgB;IAI9D,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB;IAapC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAuB5C,6BAA6B,IAAI,4CAA4C;CAa9E;AAED,qBAAa,0BAA2B,YAAW,eAAe;IAE9D,qJAAqJ;aACrI,QAAQ,EAAE,gBAAgB;IAC1C,6BAA6B;aACb,YAAY,EAAE,EAAE;IAChC,wEAAwE;aACxD,MAAM,EAAE,EAAE;IAC1B,gCAAgC;aAChB,QAAQ,EAAE,MAAM;;IAPhC,qJAAqJ;IACrI,QAAQ,EAAE,gBAAgB;IAC1C,6BAA6B;IACb,YAAY,EAAE,EAAE;IAChC,wEAAwE;IACxD,MAAM,EAAE,EAAE;IAC1B,gCAAgC;IAChB,QAAQ,EAAE,MAAM;IAGlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;CAU7C"}
@@ -22,10 +22,10 @@ import { REGISTERER_PRIVATE_FUNCTION_BROADCASTED_TAG } from '../protocol_contrac
22
22
  this.privateFunction = privateFunction;
23
23
  }
24
24
  static isPrivateFunctionBroadcastedEvent(log) {
25
- return log.fields[0].equals(REGISTERER_PRIVATE_FUNCTION_BROADCASTED_TAG);
25
+ return log.fields.fields[0].equals(REGISTERER_PRIVATE_FUNCTION_BROADCASTED_TAG);
26
26
  }
27
27
  static fromLog(log) {
28
- const reader = new FieldReader(log.fields.slice(1));
28
+ const reader = new FieldReader(log.fields.fields.slice(1));
29
29
  const event = PrivateFunctionBroadcastedEvent.fromFields(reader);
30
30
  while(!reader.isFinished()){
31
31
  const field = reader.readField();
@@ -1,5 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- /// <reference types="node" resolution-mode="require"/>
3
1
  import { ARTIFACT_FUNCTION_TREE_MAX_HEIGHT } from '@aztec/constants';
4
2
  import { Fr } from '@aztec/foundation/fields';
5
3
  import type { Tuple } from '@aztec/foundation/serialize';
@@ -1 +1 @@
1
- {"version":3,"file":"utility_function_broadcasted_event.d.ts","sourceRoot":"","sources":["../../src/class-registerer/utility_function_broadcasted_event.ts"],"names":[],"mappings":";;AAAA,OAAO,EACL,iCAAiC,EAElC,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAoB,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI3D,sDAAsD;AACtD,qBAAa,+BAA+B;aAExB,eAAe,EAAE,EAAE;aACnB,oBAAoB,EAAE,EAAE;aACxB,gCAAgC,EAAE,EAAE;aACpC,+BAA+B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,iCAAiC,CAAC;aACpF,6BAA6B,EAAE,MAAM;aACrC,eAAe,EAAE,0BAA0B;gBAL3C,eAAe,EAAE,EAAE,EACnB,oBAAoB,EAAE,EAAE,EACxB,gCAAgC,EAAE,EAAE,EACpC,+BAA+B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,iCAAiC,CAAC,EACpF,6BAA6B,EAAE,MAAM,EACrC,eAAe,EAAE,0BAA0B;IAG7D,MAAM,CAAC,iCAAiC,CAAC,GAAG,EAAE,gBAAgB;IAI9D,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB;IAapC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAmB5C,6BAA6B,IAAI,kCAAkC;CAgBpE;AAED,qBAAa,0BAA2B,YAAW,eAAe;IAE9D,qJAAqJ;aACrI,QAAQ,EAAE,gBAAgB;IAC1C,6BAA6B;aACb,YAAY,EAAE,EAAE;IAChC,uBAAuB;aACP,QAAQ,EAAE,MAAM;;IALhC,qJAAqJ;IACrI,QAAQ,EAAE,gBAAgB;IAC1C,6BAA6B;IACb,YAAY,EAAE,EAAE;IAChC,uBAAuB;IACP,QAAQ,EAAE,MAAM;IAGlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;CAS7C"}
1
+ {"version":3,"file":"utility_function_broadcasted_event.d.ts","sourceRoot":"","sources":["../../src/class-registerer/utility_function_broadcasted_event.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EAElC,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAoB,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI3D,sDAAsD;AACtD,qBAAa,+BAA+B;aAExB,eAAe,EAAE,EAAE;aACnB,oBAAoB,EAAE,EAAE;aACxB,gCAAgC,EAAE,EAAE;aACpC,+BAA+B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,iCAAiC,CAAC;aACpF,6BAA6B,EAAE,MAAM;aACrC,eAAe,EAAE,0BAA0B;gBAL3C,eAAe,EAAE,EAAE,EACnB,oBAAoB,EAAE,EAAE,EACxB,gCAAgC,EAAE,EAAE,EACpC,+BAA+B,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,iCAAiC,CAAC,EACpF,6BAA6B,EAAE,MAAM,EACrC,eAAe,EAAE,0BAA0B;IAG7D,MAAM,CAAC,iCAAiC,CAAC,GAAG,EAAE,gBAAgB;IAI9D,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB;IAapC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAmB5C,6BAA6B,IAAI,kCAAkC;CAgBpE;AAED,qBAAa,0BAA2B,YAAW,eAAe;IAE9D,qJAAqJ;aACrI,QAAQ,EAAE,gBAAgB;IAC1C,6BAA6B;aACb,YAAY,EAAE,EAAE;IAChC,uBAAuB;aACP,QAAQ,EAAE,MAAM;;IALhC,qJAAqJ;IACrI,QAAQ,EAAE,gBAAgB;IAC1C,6BAA6B;IACb,YAAY,EAAE,EAAE;IAChC,uBAAuB;IACP,QAAQ,EAAE,MAAM;IAGlC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;CAS7C"}
@@ -20,10 +20,10 @@ import { REGISTERER_UTILITY_FUNCTION_BROADCASTED_TAG } from '../protocol_contrac
20
20
  this.utilityFunction = utilityFunction;
21
21
  }
22
22
  static isUtilityFunctionBroadcastedEvent(log) {
23
- return log.fields[0].equals(REGISTERER_UTILITY_FUNCTION_BROADCASTED_TAG);
23
+ return log.fields.fields[0].equals(REGISTERER_UTILITY_FUNCTION_BROADCASTED_TAG);
24
24
  }
25
25
  static fromLog(log) {
26
- const reader = new FieldReader(log.fields.slice(1));
26
+ const reader = new FieldReader(log.fields.fields.slice(1));
27
27
  const event = UtilityFunctionBroadcastedEvent.fromFields(reader);
28
28
  while(!reader.isFinished()){
29
29
  const field = reader.readField();
@@ -1,6 +1,6 @@
1
1
  import { loadContractArtifact } from '@aztec/stdlib/abi';
2
2
  import { computePublicDataTreeLeafSlot, deriveStorageSlotInMap } from '@aztec/stdlib/hash';
3
- import FeeJuiceJson from '../../artifacts/FeeJuice.json' assert {
3
+ import FeeJuiceJson from '../../artifacts/FeeJuice.json' with {
4
4
  type: 'json'
5
5
  };
6
6
  import { makeProtocolContract } from '../make_protocol_contract.js';
@@ -14,7 +14,7 @@ import { DEPLOYER_CONTRACT_INSTANCE_UPDATED_TAG, ProtocolContractAddress } from
14
14
  this.blockOfChange = blockOfChange;
15
15
  }
16
16
  static isContractInstanceUpdatedEvent(log) {
17
- return log.contractAddress.equals(ProtocolContractAddress.ContractInstanceDeployer) && log.log[0].equals(DEPLOYER_CONTRACT_INSTANCE_UPDATED_TAG);
17
+ return log.contractAddress.equals(ProtocolContractAddress.ContractInstanceDeployer) && log.fields[0].equals(DEPLOYER_CONTRACT_INSTANCE_UPDATED_TAG);
18
18
  }
19
19
  static fromLog(log) {
20
20
  const bufferWithoutAddressAndTag = log.toBuffer().subarray(64);
@@ -1,5 +1,5 @@
1
1
  import { loadContractArtifact } from '@aztec/stdlib/abi';
2
- import ContractInstanceDeployerJson from '../../artifacts/ContractInstanceDeployer.json' assert {
2
+ import ContractInstanceDeployerJson from '../../artifacts/ContractInstanceDeployer.json' with {
3
3
  type: 'json'
4
4
  };
5
5
  import { makeProtocolContract } from '../make_protocol_contract.js';
@@ -1,5 +1,5 @@
1
1
  import { loadContractArtifact } from '@aztec/stdlib/abi';
2
- import MultiCallEntrypointJson from '../../artifacts/MultiCallEntrypoint.json' assert {
2
+ import MultiCallEntrypointJson from '../../artifacts/MultiCallEntrypoint.json' with {
3
3
  type: 'json'
4
4
  };
5
5
  import { makeProtocolContract } from '../make_protocol_contract.js';
@@ -26,14 +26,14 @@ export const ProtocolContractAddress = {
26
26
  Router: AztecAddress.fromBigInt(6n)
27
27
  };
28
28
  export const ProtocolContractLeaves = {
29
- AuthRegistry: Fr.fromHexString('0x1aa0c7460d3ef24a739cf28e413e712c493d6b37c65f37f9182a7fd924e7e4b7'),
30
- ContractInstanceDeployer: Fr.fromHexString('0x07ee7acaa2707c287093a1906f7efc139385dfb0e02b39c173ed485bd2844d9a'),
31
- ContractClassRegisterer: Fr.fromHexString('0x2ce2fd173e93d43d2e82aa3965c41a9ba9364ff2928450191a8a0fa0dc3f7c29'),
32
- MultiCallEntrypoint: Fr.fromHexString('0x2870569bd41693a61f686e5bff1a4037119c6b9dd016fa276ccc2cb6f148294c'),
33
- FeeJuice: Fr.fromHexString('0x009196e9a29fc30167c53b9f00f233ecfc0e0fd7a9825a825978ded84270d557'),
34
- Router: Fr.fromHexString('0x04a9a9bed524c29ed1a52a603fdb2f3c5e5e5941b7ae81fc39b13d93701ec4c4')
29
+ AuthRegistry: Fr.fromHexString('0x1f498360a588c6b9bdb5d0a2c0f27d2b91d6b0ca05566a426730e5063a04bb80'),
30
+ ContractInstanceDeployer: Fr.fromHexString('0x1fbadfc62feb4602dc3965aa3878e40c0b685b7a11bf953b3ec39f7689b90400'),
31
+ ContractClassRegisterer: Fr.fromHexString('0x2cd6fd67485b4de4b700d971ab338277bc9b48b451a92d1786d231d320ea2861'),
32
+ MultiCallEntrypoint: Fr.fromHexString('0x27e8e13b07c409cfc9fffd3c0d97b7dfeaea73272245659397f27d1c92237340'),
33
+ FeeJuice: Fr.fromHexString('0x0ad5c0999692263842476c07a515e25109b986cb1dc6ccb782580832e222c622'),
34
+ Router: Fr.fromHexString('0x22da197f32a0cf129eb0e960e459ac27024b65b9c77b33d6ff4e3321e405d2fc')
35
35
  };
36
- export const protocolContractTreeRoot = Fr.fromHexString('0x1ed87d453cb7c21c5dbca65441925b3f9138fd1433928dda23342367bf94f7c0');
36
+ export const protocolContractTreeRoot = Fr.fromHexString('0x26cf2e5cef38a4caa15b82168ae7f99fcb15a602b8289664a38f83bd7ece4703');
37
37
  export const REGISTERER_CONTRACT_CLASS_REGISTERED_TAG = Fr.fromHexString('0x20cd27645f65c15a38720ca984aef936592f3938a705db706d068ad13fc58ae9');
38
38
  export const REGISTERER_PRIVATE_FUNCTION_BROADCASTED_TAG = Fr.fromHexString('0x0abf338154e355442d9916d630da0491036d5a7b23c42b477c1395ba3bf9b42d');
39
39
  export const REGISTERER_UTILITY_FUNCTION_BROADCASTED_TAG = Fr.fromHexString('0x27774539896271d6dbe0c1de45ddc44709d1e8d9a9fb686ca3c105d87c417bb8');
@@ -1,5 +1,5 @@
1
1
  import { loadContractArtifact } from '@aztec/stdlib/abi';
2
- import RouterJson from '../../artifacts/Router.json' assert {
2
+ import RouterJson from '../../artifacts/Router.json' with {
3
3
  type: 'json'
4
4
  };
5
5
  import { makeProtocolContract } from '../make_protocol_contract.js';
@@ -8,9 +8,9 @@ async function cleanupArtifacts(target) {
8
8
  continue;
9
9
  }
10
10
  const fileData = JSON.parse((await readFile(join(target, file), 'utf8')).toString());
11
- fileData.file_map = {};
11
+ /* eslint-disable camelcase */ fileData.file_map = {};
12
12
  fileData.debug_symbols = {};
13
- await writeFile(join(target, file), JSON.stringify(fileData));
13
+ /* eslint-enable camelcase */ await writeFile(join(target, file), JSON.stringify(fileData));
14
14
  }
15
15
  }
16
16
  await cleanupArtifacts(fileURLToPath(new URL('../../artifacts', import.meta.url).href));
@@ -1,5 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- /// <reference types="node" resolution-mode="require"/>
3
1
  export declare function getSampleContractClassRegisteredEventPayload(): Buffer;
4
2
  export declare function getSamplePrivateFunctionBroadcastedEventPayload(): Buffer;
5
3
  export declare function getSampleUtilityFunctionBroadcastedEventPayload(): Buffer;
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../src/tests/fixtures.ts"],"names":[],"mappings":";;AAKA,wBAAgB,4CAA4C,IAAI,MAAM,CAGrE;AAGD,wBAAgB,+CAA+C,IAAI,MAAM,CAGxE;AAGD,wBAAgB,+CAA+C,IAAI,MAAM,CAGxE;AAGD,wBAAgB,6CAA6C,IAAI,MAAM,CAGtE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,UAE5C"}
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../src/tests/fixtures.ts"],"names":[],"mappings":"AAKA,wBAAgB,4CAA4C,IAAI,MAAM,CAGrE;AAGD,wBAAgB,+CAA+C,IAAI,MAAM,CAGxE;AAGD,wBAAgB,+CAA+C,IAAI,MAAM,CAGxE;AAGD,wBAAgB,6CAA6C,IAAI,MAAM,CAGtE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,UAE5C"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aztec/protocol-contracts",
3
3
  "homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/protocol-contracts",
4
4
  "description": "Canonical Noir contracts for the Aztec Network",
5
- "version": "0.86.0",
5
+ "version": "0.87.0",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": "./dest/index.js",
@@ -69,9 +69,9 @@
69
69
  ]
70
70
  },
71
71
  "dependencies": {
72
- "@aztec/constants": "0.86.0",
73
- "@aztec/foundation": "0.86.0",
74
- "@aztec/stdlib": "0.86.0",
72
+ "@aztec/constants": "0.87.0",
73
+ "@aztec/foundation": "0.87.0",
74
+ "@aztec/stdlib": "0.87.0",
75
75
  "lodash.chunk": "^4.2.0",
76
76
  "lodash.omit": "^4.5.0",
77
77
  "tslib": "^2.4.0"
@@ -81,12 +81,12 @@
81
81
  "@types/jest": "^29.5.0",
82
82
  "@types/lodash.chunk": "^4.2.9",
83
83
  "@types/lodash.omit": "^4.5.9",
84
- "@types/node": "^18.7.23",
84
+ "@types/node": "^22.15.17",
85
85
  "jest": "^29.5.0",
86
86
  "jest-mock-extended": "^3.0.3",
87
87
  "ts-loader": "^9.4.4",
88
88
  "ts-node": "^10.9.1",
89
- "typescript": "^5.0.4"
89
+ "typescript": "^5.3.3"
90
90
  },
91
91
  "files": [
92
92
  "dest",
@@ -96,6 +96,6 @@
96
96
  "!src/scripts/*"
97
97
  ],
98
98
  "engines": {
99
- "node": ">=18"
99
+ "node": ">=20.10"
100
100
  }
101
101
  }
@@ -1,7 +1,7 @@
1
1
  import { type ContractArtifact, loadContractArtifact } from '@aztec/stdlib/abi';
2
2
  import type { NoirCompiledContract } from '@aztec/stdlib/noir';
3
3
 
4
- import AuthRegistryJson from '../../artifacts/AuthRegistry.json' assert { type: 'json' };
4
+ import AuthRegistryJson from '../../artifacts/AuthRegistry.json' with { type: 'json' };
5
5
  import { makeProtocolContract } from '../make_protocol_contract.js';
6
6
  import type { ProtocolContract } from '../protocol_contract.js';
7
7
 
@@ -9,8 +9,8 @@ export async function buildProtocolContractTree(
9
9
  contracts: { address: AztecAddress; leaf: Fr }[],
10
10
  ): Promise<IndexedMerkleTree<ProtocolContractLeafPreimage, typeof PROTOCOL_CONTRACT_TREE_HEIGHT>> {
11
11
  const hasher = {
12
- hash: async (l: Buffer, r: Buffer) => (await poseidon2Hash([l, r])).toBuffer(),
13
- hashInputs: async (i: Buffer[]) => (await poseidon2Hash(i)).toBuffer(),
12
+ hash: async (l: Buffer, r: Buffer) => (await poseidon2Hash([l, r])).toBuffer() as Buffer<ArrayBuffer>,
13
+ hashInputs: async (i: Buffer[]) => (await poseidon2Hash(i)).toBuffer() as Buffer<ArrayBuffer>,
14
14
  };
15
15
  const calculator = await IndexedMerkleTreeCalculator.create(
16
16
  PROTOCOL_CONTRACT_TREE_HEIGHT,
@@ -21,16 +21,17 @@ export class ContractClassRegisteredEvent {
21
21
  ) {}
22
22
 
23
23
  static isContractClassRegisteredEvent(log: ContractClassLog) {
24
- return log.fields[0].equals(REGISTERER_CONTRACT_CLASS_REGISTERED_TAG);
24
+ return log.fields.fields[0].equals(REGISTERER_CONTRACT_CLASS_REGISTERED_TAG);
25
25
  }
26
26
 
27
27
  static fromLog(log: ContractClassLog) {
28
- const reader = new FieldReader(log.fields.slice(1));
28
+ const fieldsWithoutTag = log.fields.fields.slice(1);
29
+ const reader = new FieldReader(fieldsWithoutTag);
29
30
  const contractClassId = reader.readField();
30
31
  const version = reader.readField().toNumber();
31
32
  const artifactHash = reader.readField();
32
33
  const privateFunctionsRoot = reader.readField();
33
- const packedPublicBytecode = bufferFromFields(reader.readFieldArray(log.fields.slice(1).length - reader.cursor));
34
+ const packedPublicBytecode = bufferFromFields(reader.readFieldArray(fieldsWithoutTag.length - reader.cursor));
34
35
 
35
36
  return new ContractClassRegisteredEvent(
36
37
  contractClassId,
@@ -1,7 +1,7 @@
1
1
  import { loadContractArtifact } from '@aztec/stdlib/abi';
2
2
  import type { NoirCompiledContract } from '@aztec/stdlib/noir';
3
3
 
4
- import ContractClassRegistererJson from '../../artifacts/ContractClassRegisterer.json' assert { type: 'json' };
4
+ import ContractClassRegistererJson from '../../artifacts/ContractClassRegisterer.json' with { type: 'json' };
5
5
  import { makeProtocolContract } from '../make_protocol_contract.js';
6
6
  import type { ProtocolContract } from '../protocol_contract.js';
7
7
 
@@ -26,11 +26,11 @@ export class PrivateFunctionBroadcastedEvent {
26
26
  ) {}
27
27
 
28
28
  static isPrivateFunctionBroadcastedEvent(log: ContractClassLog) {
29
- return log.fields[0].equals(REGISTERER_PRIVATE_FUNCTION_BROADCASTED_TAG);
29
+ return log.fields.fields[0].equals(REGISTERER_PRIVATE_FUNCTION_BROADCASTED_TAG);
30
30
  }
31
31
 
32
32
  static fromLog(log: ContractClassLog) {
33
- const reader = new FieldReader(log.fields.slice(1));
33
+ const reader = new FieldReader(log.fields.fields.slice(1));
34
34
  const event = PrivateFunctionBroadcastedEvent.fromFields(reader);
35
35
  while (!reader.isFinished()) {
36
36
  const field = reader.readField();
@@ -24,11 +24,11 @@ export class UtilityFunctionBroadcastedEvent {
24
24
  ) {}
25
25
 
26
26
  static isUtilityFunctionBroadcastedEvent(log: ContractClassLog) {
27
- return log.fields[0].equals(REGISTERER_UTILITY_FUNCTION_BROADCASTED_TAG);
27
+ return log.fields.fields[0].equals(REGISTERER_UTILITY_FUNCTION_BROADCASTED_TAG);
28
28
  }
29
29
 
30
30
  static fromLog(log: ContractClassLog) {
31
- const reader = new FieldReader(log.fields.slice(1));
31
+ const reader = new FieldReader(log.fields.fields.slice(1));
32
32
  const event = UtilityFunctionBroadcastedEvent.fromFields(reader);
33
33
  while (!reader.isFinished()) {
34
34
  const field = reader.readField();
@@ -4,7 +4,7 @@ import type { AztecAddress } from '@aztec/stdlib/aztec-address';
4
4
  import { computePublicDataTreeLeafSlot, deriveStorageSlotInMap } from '@aztec/stdlib/hash';
5
5
  import type { NoirCompiledContract } from '@aztec/stdlib/noir';
6
6
 
7
- import FeeJuiceJson from '../../artifacts/FeeJuice.json' assert { type: 'json' };
7
+ import FeeJuiceJson from '../../artifacts/FeeJuice.json' with { type: 'json' };
8
8
  import { makeProtocolContract } from '../make_protocol_contract.js';
9
9
  import type { ProtocolContract } from '../protocol_contract.js';
10
10
  import { ProtocolContractAddress } from '../protocol_contract_data.js';
@@ -18,7 +18,7 @@ export class ContractInstanceUpdatedEvent {
18
18
  static isContractInstanceUpdatedEvent(log: PublicLog) {
19
19
  return (
20
20
  log.contractAddress.equals(ProtocolContractAddress.ContractInstanceDeployer) &&
21
- log.log[0].equals(DEPLOYER_CONTRACT_INSTANCE_UPDATED_TAG)
21
+ log.fields[0].equals(DEPLOYER_CONTRACT_INSTANCE_UPDATED_TAG)
22
22
  );
23
23
  }
24
24
 
@@ -1,7 +1,7 @@
1
1
  import { loadContractArtifact } from '@aztec/stdlib/abi';
2
2
  import type { NoirCompiledContract } from '@aztec/stdlib/noir';
3
3
 
4
- import ContractInstanceDeployerJson from '../../artifacts/ContractInstanceDeployer.json' assert { type: 'json' };
4
+ import ContractInstanceDeployerJson from '../../artifacts/ContractInstanceDeployer.json' with { type: 'json' };
5
5
  import { makeProtocolContract } from '../make_protocol_contract.js';
6
6
  import type { ProtocolContract } from '../protocol_contract.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { loadContractArtifact } from '@aztec/stdlib/abi';
2
2
  import type { NoirCompiledContract } from '@aztec/stdlib/noir';
3
3
 
4
- import MultiCallEntrypointJson from '../../artifacts/MultiCallEntrypoint.json' assert { type: 'json' };
4
+ import MultiCallEntrypointJson from '../../artifacts/MultiCallEntrypoint.json' with { type: 'json' };
5
5
  import { makeProtocolContract } from '../make_protocol_contract.js';
6
6
  import type { ProtocolContract } from '../protocol_contract.js';
7
7
 
@@ -40,17 +40,17 @@ Router: AztecAddress.fromBigInt(6n)
40
40
 
41
41
 
42
42
  export const ProtocolContractLeaves = {
43
- AuthRegistry: Fr.fromHexString('0x1aa0c7460d3ef24a739cf28e413e712c493d6b37c65f37f9182a7fd924e7e4b7'),
44
- ContractInstanceDeployer: Fr.fromHexString('0x07ee7acaa2707c287093a1906f7efc139385dfb0e02b39c173ed485bd2844d9a'),
45
- ContractClassRegisterer: Fr.fromHexString('0x2ce2fd173e93d43d2e82aa3965c41a9ba9364ff2928450191a8a0fa0dc3f7c29'),
46
- MultiCallEntrypoint: Fr.fromHexString('0x2870569bd41693a61f686e5bff1a4037119c6b9dd016fa276ccc2cb6f148294c'),
47
- FeeJuice: Fr.fromHexString('0x009196e9a29fc30167c53b9f00f233ecfc0e0fd7a9825a825978ded84270d557'),
48
- Router: Fr.fromHexString('0x04a9a9bed524c29ed1a52a603fdb2f3c5e5e5941b7ae81fc39b13d93701ec4c4')
43
+ AuthRegistry: Fr.fromHexString('0x1f498360a588c6b9bdb5d0a2c0f27d2b91d6b0ca05566a426730e5063a04bb80'),
44
+ ContractInstanceDeployer: Fr.fromHexString('0x1fbadfc62feb4602dc3965aa3878e40c0b685b7a11bf953b3ec39f7689b90400'),
45
+ ContractClassRegisterer: Fr.fromHexString('0x2cd6fd67485b4de4b700d971ab338277bc9b48b451a92d1786d231d320ea2861'),
46
+ MultiCallEntrypoint: Fr.fromHexString('0x27e8e13b07c409cfc9fffd3c0d97b7dfeaea73272245659397f27d1c92237340'),
47
+ FeeJuice: Fr.fromHexString('0x0ad5c0999692263842476c07a515e25109b986cb1dc6ccb782580832e222c622'),
48
+ Router: Fr.fromHexString('0x22da197f32a0cf129eb0e960e459ac27024b65b9c77b33d6ff4e3321e405d2fc')
49
49
  };
50
50
 
51
51
 
52
52
 
53
- export const protocolContractTreeRoot = Fr.fromHexString('0x1ed87d453cb7c21c5dbca65441925b3f9138fd1433928dda23342367bf94f7c0');
53
+ export const protocolContractTreeRoot = Fr.fromHexString('0x26cf2e5cef38a4caa15b82168ae7f99fcb15a602b8289664a38f83bd7ece4703');
54
54
 
55
55
 
56
56
 
@@ -1,7 +1,7 @@
1
1
  import { loadContractArtifact } from '@aztec/stdlib/abi';
2
2
  import type { NoirCompiledContract } from '@aztec/stdlib/noir';
3
3
 
4
- import RouterJson from '../../artifacts/Router.json' assert { type: 'json' };
4
+ import RouterJson from '../../artifacts/Router.json' with { type: 'json' };
5
5
  import { makeProtocolContract } from '../make_protocol_contract.js';
6
6
  import type { ProtocolContract } from '../protocol_contract.js';
7
7
 
@@ -1,21 +0,0 @@
1
- import { Fr } from '@aztec/foundation/fields';
2
- import { AztecAddress } from '@aztec/stdlib/aztec-address';
3
- export declare const protocolContractNames: readonly ["AuthRegistry", "ContractInstanceDeployer", "ContractClassRegisterer", "MultiCallEntrypoint", "FeeJuice", "Router"];
4
- export type ProtocolContractName = (typeof protocolContractNames)[number];
5
- export declare const ProtocolContractSalt: Record<ProtocolContractName, Fr>;
6
- export declare const ProtocolContractAddress: Record<ProtocolContractName, AztecAddress>;
7
- export declare const ProtocolContractLeaves: {
8
- AuthRegistry: Fr;
9
- ContractInstanceDeployer: Fr;
10
- ContractClassRegisterer: Fr;
11
- MultiCallEntrypoint: Fr;
12
- FeeJuice: Fr;
13
- Router: Fr;
14
- };
15
- export declare const protocolContractTreeRoot: Fr;
16
- export declare const REGISTERER_CONTRACT_CLASS_REGISTERED_TAG: Fr;
17
- export declare const REGISTERER_PRIVATE_FUNCTION_BROADCASTED_TAG: Fr;
18
- export declare const REGISTERER_UTILITY_FUNCTION_BROADCASTED_TAG: Fr;
19
- export declare const DEPLOYER_CONTRACT_INSTANCE_DEPLOYED_TAG: Fr;
20
- export declare const DEPLOYER_CONTRACT_INSTANCE_UPDATED_TAG: Fr;
21
- //# sourceMappingURL=protocol_contract_data_2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"protocol_contract_data_2.d.ts","sourceRoot":"","sources":["../src/protocol_contract_data_2.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,eAAO,MAAM,qBAAqB,+HAOxB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,EAAE,EAAE,CAOjE,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,oBAAoB,EAAE,YAAY,CAO9E,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAEF,eAAO,MAAM,wBAAwB,IAEpC,CAAC;AAEF,eAAO,MAAM,wCAAwC,IAEpD,CAAC;AACF,eAAO,MAAM,2CAA2C,IAEvD,CAAC;AACF,eAAO,MAAM,2CAA2C,IAEvD,CAAC;AACF,eAAO,MAAM,uCAAuC,IAEnD,CAAC;AACF,eAAO,MAAM,sCAAsC,IAElD,CAAC"}
@@ -1,41 +0,0 @@
1
- // GENERATED FILE - DO NOT EDIT. RUN `yarn generate` or `yarn generate:data`
2
- import { Fr } from '@aztec/foundation/fields';
3
- import { AztecAddress } from '@aztec/stdlib/aztec-address';
4
- export const protocolContractNames = [
5
- 'AuthRegistry',
6
- 'ContractInstanceDeployer',
7
- 'ContractClassRegisterer',
8
- 'MultiCallEntrypoint',
9
- 'FeeJuice',
10
- 'Router'
11
- ];
12
- export const ProtocolContractSalt = {
13
- AuthRegistry: new Fr(1),
14
- ContractInstanceDeployer: new Fr(1),
15
- ContractClassRegisterer: new Fr(1),
16
- MultiCallEntrypoint: new Fr(1),
17
- FeeJuice: new Fr(1),
18
- Router: new Fr(1)
19
- };
20
- export const ProtocolContractAddress = {
21
- AuthRegistry: AztecAddress.fromBigInt(1n),
22
- ContractInstanceDeployer: AztecAddress.fromBigInt(2n),
23
- ContractClassRegisterer: AztecAddress.fromBigInt(3n),
24
- MultiCallEntrypoint: AztecAddress.fromBigInt(4n),
25
- FeeJuice: AztecAddress.fromBigInt(5n),
26
- Router: AztecAddress.fromBigInt(6n)
27
- };
28
- export const ProtocolContractLeaves = {
29
- AuthRegistry: Fr.fromHexString('0x0807ac7ed9aae595efff561f39373a321811ed9bb69d9104fe3035b487ade50a'),
30
- ContractInstanceDeployer: Fr.fromHexString('0x28c3aee0c74e02b17f1ebf7bcd2c2874d4dce88b2ededf487e07d4b1912303ab'),
31
- ContractClassRegisterer: Fr.fromHexString('0x1f73d3d99860b24a5e8c4e4a6cadbb097370984293495d4c0bbfd809b690c49f'),
32
- MultiCallEntrypoint: Fr.fromHexString('0x2182bf9eb009655d81599ac098f641ee5095519f5bb4b30658c61807d4a83ae7'),
33
- FeeJuice: Fr.fromHexString('0x27e36a350de1027f4c9847e9fbe67585aacd2cb4b8d3edde5e33ba73d5d3c686'),
34
- Router: Fr.fromHexString('0x292db7e4209a217067fa7c1fcd2e8b98bb94a2fe1e564accda7d1b361bbd7c12')
35
- };
36
- export const protocolContractTreeRoot = Fr.fromHexString('0x0d728eb2ee21a9484e34312160bec66dd5995c80bb6cfb51e86528a7dae92870');
37
- export const REGISTERER_CONTRACT_CLASS_REGISTERED_TAG = Fr.fromHexString('0x20cd27645f65c15a38720ca984aef936592f3938a705db706d068ad13fc58ae9');
38
- export const REGISTERER_PRIVATE_FUNCTION_BROADCASTED_TAG = Fr.fromHexString('0x0abf338154e355442d9916d630da0491036d5a7b23c42b477c1395ba3bf9b42d');
39
- export const REGISTERER_UTILITY_FUNCTION_BROADCASTED_TAG = Fr.fromHexString('0x27774539896271d6dbe0c1de45ddc44709d1e8d9a9fb686ca3c105d87c417bb8');
40
- export const DEPLOYER_CONTRACT_INSTANCE_DEPLOYED_TAG = Fr.fromHexString('0x2ec28b91a5f838506d6042915005ff55cf7a0a5f889a83b11faed33a31b486f2');
41
- export const DEPLOYER_CONTRACT_INSTANCE_UPDATED_TAG = new Fr(1534834688047131268740281708431107902615560100979874281215533519862n);
@@ -1,61 +0,0 @@
1
- // GENERATED FILE - DO NOT EDIT. RUN `yarn generate` or `yarn generate:data`
2
- import { Fr } from '@aztec/foundation/fields';
3
- import { AztecAddress } from '@aztec/stdlib/aztec-address';
4
-
5
- export const protocolContractNames = [
6
- 'AuthRegistry',
7
- 'ContractInstanceDeployer',
8
- 'ContractClassRegisterer',
9
- 'MultiCallEntrypoint',
10
- 'FeeJuice',
11
- 'Router',
12
- ] as const;
13
-
14
- export type ProtocolContractName = (typeof protocolContractNames)[number];
15
-
16
- export const ProtocolContractSalt: Record<ProtocolContractName, Fr> = {
17
- AuthRegistry: new Fr(1),
18
- ContractInstanceDeployer: new Fr(1),
19
- ContractClassRegisterer: new Fr(1),
20
- MultiCallEntrypoint: new Fr(1),
21
- FeeJuice: new Fr(1),
22
- Router: new Fr(1),
23
- };
24
-
25
- export const ProtocolContractAddress: Record<ProtocolContractName, AztecAddress> = {
26
- AuthRegistry: AztecAddress.fromBigInt(1n),
27
- ContractInstanceDeployer: AztecAddress.fromBigInt(2n),
28
- ContractClassRegisterer: AztecAddress.fromBigInt(3n),
29
- MultiCallEntrypoint: AztecAddress.fromBigInt(4n),
30
- FeeJuice: AztecAddress.fromBigInt(5n),
31
- Router: AztecAddress.fromBigInt(6n),
32
- };
33
-
34
- export const ProtocolContractLeaves = {
35
- AuthRegistry: Fr.fromHexString('0x0807ac7ed9aae595efff561f39373a321811ed9bb69d9104fe3035b487ade50a'),
36
- ContractInstanceDeployer: Fr.fromHexString('0x28c3aee0c74e02b17f1ebf7bcd2c2874d4dce88b2ededf487e07d4b1912303ab'),
37
- ContractClassRegisterer: Fr.fromHexString('0x1f73d3d99860b24a5e8c4e4a6cadbb097370984293495d4c0bbfd809b690c49f'),
38
- MultiCallEntrypoint: Fr.fromHexString('0x2182bf9eb009655d81599ac098f641ee5095519f5bb4b30658c61807d4a83ae7'),
39
- FeeJuice: Fr.fromHexString('0x27e36a350de1027f4c9847e9fbe67585aacd2cb4b8d3edde5e33ba73d5d3c686'),
40
- Router: Fr.fromHexString('0x292db7e4209a217067fa7c1fcd2e8b98bb94a2fe1e564accda7d1b361bbd7c12'),
41
- };
42
-
43
- export const protocolContractTreeRoot = Fr.fromHexString(
44
- '0x0d728eb2ee21a9484e34312160bec66dd5995c80bb6cfb51e86528a7dae92870',
45
- );
46
-
47
- export const REGISTERER_CONTRACT_CLASS_REGISTERED_TAG = Fr.fromHexString(
48
- '0x20cd27645f65c15a38720ca984aef936592f3938a705db706d068ad13fc58ae9',
49
- );
50
- export const REGISTERER_PRIVATE_FUNCTION_BROADCASTED_TAG = Fr.fromHexString(
51
- '0x0abf338154e355442d9916d630da0491036d5a7b23c42b477c1395ba3bf9b42d',
52
- );
53
- export const REGISTERER_UTILITY_FUNCTION_BROADCASTED_TAG = Fr.fromHexString(
54
- '0x27774539896271d6dbe0c1de45ddc44709d1e8d9a9fb686ca3c105d87c417bb8',
55
- );
56
- export const DEPLOYER_CONTRACT_INSTANCE_DEPLOYED_TAG = Fr.fromHexString(
57
- '0x2ec28b91a5f838506d6042915005ff55cf7a0a5f889a83b11faed33a31b486f2',
58
- );
59
- export const DEPLOYER_CONTRACT_INSTANCE_UPDATED_TAG = new Fr(
60
- 1534834688047131268740281708431107902615560100979874281215533519862n,
61
- );