@aztec/protocol-contracts 0.0.1-commit.181e2d196 → 0.0.1-commit.189eedb3

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 (79) hide show
  1. package/artifacts/ContractClassRegistry.json +2388 -460
  2. package/artifacts/ContractInstanceRegistry.json +3120 -937
  3. package/artifacts/FeeJuice.json +3560 -945
  4. package/dest/class-registry/contract_class_published_event.d.ts +6 -3
  5. package/dest/class-registry/contract_class_published_event.d.ts.map +1 -1
  6. package/dest/class-registry/contract_class_published_event.js +10 -16
  7. package/dest/class-registry/index.d.ts +1 -3
  8. package/dest/class-registry/index.d.ts.map +1 -1
  9. package/dest/class-registry/index.js +0 -2
  10. package/dest/class-registry/lazy.d.ts +1 -3
  11. package/dest/class-registry/lazy.d.ts.map +1 -1
  12. package/dest/class-registry/lazy.js +0 -2
  13. package/dest/instance-registry/contract_instance_published_event.d.ts +3 -2
  14. package/dest/instance-registry/contract_instance_published_event.d.ts.map +1 -1
  15. package/dest/instance-registry/contract_instance_published_event.js +7 -3
  16. package/dest/make_protocol_contract.d.ts +1 -1
  17. package/dest/make_protocol_contract.d.ts.map +1 -1
  18. package/dest/make_protocol_contract.js +3 -1
  19. package/dest/protocol_contract_data.d.ts +2 -5
  20. package/dest/protocol_contract_data.d.ts.map +1 -1
  21. package/dest/protocol_contract_data.js +32 -78
  22. package/dest/provider/bundle.d.ts +1 -1
  23. package/dest/provider/bundle.d.ts.map +1 -1
  24. package/dest/provider/bundle.js +1 -7
  25. package/dest/provider/lazy.d.ts +1 -1
  26. package/dest/provider/lazy.d.ts.map +1 -1
  27. package/dest/provider/lazy.js +0 -9
  28. package/dest/scripts/generate_data.js +4 -6
  29. package/dest/tests/fixtures.d.ts +1 -3
  30. package/dest/tests/fixtures.d.ts.map +1 -1
  31. package/dest/tests/fixtures.js +0 -10
  32. package/package.json +4 -4
  33. package/src/class-registry/contract_class_published_event.ts +10 -21
  34. package/src/class-registry/index.ts +0 -2
  35. package/src/class-registry/lazy.ts +0 -2
  36. package/src/instance-registry/contract_instance_published_event.ts +5 -1
  37. package/src/make_protocol_contract.ts +3 -1
  38. package/src/protocol_contract_data.ts +34 -70
  39. package/src/provider/bundle.ts +0 -6
  40. package/src/provider/lazy.ts +0 -9
  41. package/src/tests/fixtures.ts +0 -12
  42. package/artifacts/AuthRegistry.d.json.ts +0 -5
  43. package/artifacts/AuthRegistry.json +0 -3545
  44. package/artifacts/MultiCallEntrypoint.d.json.ts +0 -5
  45. package/artifacts/MultiCallEntrypoint.json +0 -2789
  46. package/artifacts/PublicChecks.d.json.ts +0 -5
  47. package/artifacts/PublicChecks.json +0 -1000
  48. package/dest/auth-registry/index.d.ts +0 -6
  49. package/dest/auth-registry/index.d.ts.map +0 -1
  50. package/dest/auth-registry/index.js +0 -13
  51. package/dest/auth-registry/lazy.d.ts +0 -6
  52. package/dest/auth-registry/lazy.d.ts.map +0 -1
  53. package/dest/auth-registry/lazy.js +0 -23
  54. package/dest/class-registry/private_function_broadcasted_event.d.ts +0 -44
  55. package/dest/class-registry/private_function_broadcasted_event.d.ts.map +0 -1
  56. package/dest/class-registry/private_function_broadcasted_event.js +0 -85
  57. package/dest/class-registry/utility_function_broadcasted_event.d.ts +0 -38
  58. package/dest/class-registry/utility_function_broadcasted_event.d.ts.map +0 -1
  59. package/dest/class-registry/utility_function_broadcasted_event.js +0 -81
  60. package/dest/multi-call-entrypoint/index.d.ts +0 -5
  61. package/dest/multi-call-entrypoint/index.d.ts.map +0 -1
  62. package/dest/multi-call-entrypoint/index.js +0 -13
  63. package/dest/multi-call-entrypoint/lazy.d.ts +0 -6
  64. package/dest/multi-call-entrypoint/lazy.d.ts.map +0 -1
  65. package/dest/multi-call-entrypoint/lazy.js +0 -23
  66. package/dest/public-checks/index.d.ts +0 -5
  67. package/dest/public-checks/index.d.ts.map +0 -1
  68. package/dest/public-checks/index.js +0 -13
  69. package/dest/public-checks/lazy.d.ts +0 -6
  70. package/dest/public-checks/lazy.d.ts.map +0 -1
  71. package/dest/public-checks/lazy.js +0 -23
  72. package/src/auth-registry/index.ts +0 -18
  73. package/src/auth-registry/lazy.ts +0 -29
  74. package/src/class-registry/private_function_broadcasted_event.ts +0 -109
  75. package/src/class-registry/utility_function_broadcasted_event.ts +0 -103
  76. package/src/multi-call-entrypoint/index.ts +0 -18
  77. package/src/multi-call-entrypoint/lazy.ts +0 -29
  78. package/src/public-checks/index.ts +0 -18
  79. package/src/public-checks/lazy.ts +0 -29
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.0.1-commit.181e2d196",
5
+ "version": "0.0.1-commit.189eedb3",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": "./dest/index.js",
@@ -73,9 +73,9 @@
73
73
  ]
74
74
  },
75
75
  "dependencies": {
76
- "@aztec/constants": "0.0.1-commit.181e2d196",
77
- "@aztec/foundation": "0.0.1-commit.181e2d196",
78
- "@aztec/stdlib": "0.0.1-commit.181e2d196",
76
+ "@aztec/constants": "0.0.1-commit.189eedb3",
77
+ "@aztec/foundation": "0.0.1-commit.189eedb3",
78
+ "@aztec/stdlib": "0.0.1-commit.189eedb3",
79
79
  "lodash.chunk": "^4.2.0",
80
80
  "lodash.omit": "^4.5.0",
81
81
  "tslib": "^2.4.0"
@@ -4,7 +4,7 @@ import { FieldReader } from '@aztec/foundation/serialize';
4
4
  import { bufferFromFields } from '@aztec/stdlib/abi';
5
5
  import {
6
6
  type ContractClassPublic,
7
- computeContractClassId,
7
+ type ContractClassPublicWithCommitment,
8
8
  computePublicBytecodeCommitment,
9
9
  } from '@aztec/stdlib/contract';
10
10
  import type { ContractClassLog } from '@aztec/stdlib/logs';
@@ -47,34 +47,23 @@ export class ContractClassPublishedEvent {
47
47
  );
48
48
  }
49
49
 
50
- async toContractClassPublic(): Promise<ContractClassPublic> {
51
- const computedClassId = await computeContractClassId({
52
- artifactHash: this.artifactHash,
53
- privateFunctionsRoot: this.privateFunctionsRoot,
54
- publicBytecodeCommitment: await computePublicBytecodeCommitment(this.packedPublicBytecode),
55
- });
56
-
57
- if (!computedClassId.equals(this.contractClassId)) {
58
- throw new Error(
59
- `Invalid contract class id: computed ${computedClassId.toString()} but event broadcasted ${this.contractClassId.toString()}`,
60
- );
61
- }
62
-
63
- if (this.version !== 1) {
64
- throw new Error(`Unexpected contract class version ${this.version}`);
65
- }
66
-
50
+ /** Converts the event to a contract class, without computing or validating the bytecode commitment. */
51
+ toContractClassPublic(): ContractClassPublic {
67
52
  return {
68
53
  id: this.contractClassId,
69
54
  artifactHash: this.artifactHash,
70
55
  packedBytecode: this.packedPublicBytecode,
71
56
  privateFunctionsRoot: this.privateFunctionsRoot,
72
- version: this.version,
73
- privateFunctions: [],
74
- utilityFunctions: [],
57
+ version: this.version as 1,
75
58
  };
76
59
  }
77
60
 
61
+ /** Converts the event to a contract class with its bytecode commitment (expensive). */
62
+ async toContractClassPublicWithBytecodeCommitment(): Promise<ContractClassPublicWithCommitment> {
63
+ const publicBytecodeCommitment = await computePublicBytecodeCommitment(this.packedPublicBytecode);
64
+ return { ...this.toContractClassPublic(), publicBytecodeCommitment };
65
+ }
66
+
78
67
  public static extractContractClassEvents(logs: ContractClassLog[]): ContractClassPublishedEvent[] {
79
68
  return logs
80
69
  .filter((log: ContractClassLog) => ContractClassPublishedEvent.isContractClassPublishedEvent(log))
@@ -6,8 +6,6 @@ import { makeProtocolContract } from '../make_protocol_contract.js';
6
6
  import type { ProtocolContract } from '../protocol_contract.js';
7
7
 
8
8
  export * from './contract_class_published_event.js';
9
- export * from './private_function_broadcasted_event.js';
10
- export * from './utility_function_broadcasted_event.js';
11
9
 
12
10
  export const ContractClassRegistryArtifact = loadContractArtifact(ContractClassRegistryJson as NoirCompiledContract);
13
11
 
@@ -4,8 +4,6 @@ import { makeProtocolContract } from '../make_protocol_contract.js';
4
4
  import type { ProtocolContract } from '../protocol_contract.js';
5
5
 
6
6
  export * from './contract_class_published_event.js';
7
- export * from './private_function_broadcasted_event.js';
8
- export * from './utility_function_broadcasted_event.js';
9
7
 
10
8
  let protocolContract: ProtocolContract;
11
9
  let protocolContractArtifact: ContractArtifact;
@@ -15,6 +15,7 @@ export class ContractInstancePublishedEvent {
15
15
  public readonly salt: Fr,
16
16
  public readonly contractClassId: Fr,
17
17
  public readonly initializationHash: Fr,
18
+ public readonly immutablesHash: Fr,
18
19
  public readonly publicKeys: PublicKeys,
19
20
  public readonly deployer: AztecAddress,
20
21
  ) {}
@@ -31,6 +32,7 @@ export class ContractInstancePublishedEvent {
31
32
  const salt = reader.readObject(Fr);
32
33
  const contractClassId = reader.readObject(Fr);
33
34
  const initializationHash = reader.readObject(Fr);
35
+ const immutablesHash = reader.readObject(Fr);
34
36
  const publicKeys = reader.readObject(PublicKeys);
35
37
  const deployer = reader.readObject(AztecAddress);
36
38
 
@@ -40,13 +42,14 @@ export class ContractInstancePublishedEvent {
40
42
  salt,
41
43
  contractClassId,
42
44
  initializationHash,
45
+ immutablesHash,
43
46
  publicKeys,
44
47
  deployer,
45
48
  );
46
49
  }
47
50
 
48
51
  toContractInstance(): ContractInstanceWithAddress {
49
- if (this.version !== 1) {
52
+ if (this.version !== 2) {
50
53
  throw new Error(`Unexpected contract instance version ${this.version}`);
51
54
  }
52
55
 
@@ -56,6 +59,7 @@ export class ContractInstancePublishedEvent {
56
59
  currentContractClassId: this.contractClassId,
57
60
  originalContractClassId: this.contractClassId,
58
61
  initializationHash: this.initializationHash,
62
+ immutablesHash: this.immutablesHash,
59
63
  publicKeys: this.publicKeys,
60
64
  salt: this.salt,
61
65
  deployer: this.deployer,
@@ -1,3 +1,4 @@
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
1
2
  import type { ContractArtifact } from '@aztec/stdlib/abi';
2
3
  import { PublicKeys } from '@aztec/stdlib/keys';
3
4
 
@@ -34,10 +35,11 @@ export function makeProtocolContract(name: ProtocolContractName, artifact: Contr
34
35
  };
35
36
 
36
37
  const instance = {
37
- version: 1 as const,
38
+ version: 2 as const,
38
39
  currentContractClassId: classId,
39
40
  originalContractClassId: classId,
40
41
  initializationHash,
42
+ immutablesHash: Fr.ZERO, // Protocol Contracts Have No Immutables
41
43
  publicKeys: PublicKeys.default(),
42
44
  salt,
43
45
  deployer: address,
@@ -7,12 +7,9 @@
7
7
 
8
8
 
9
9
  export const protocolContractNames = [
10
- 'AuthRegistry',
11
- 'ContractInstanceRegistry',
10
+ 'ContractInstanceRegistry',
12
11
  'ContractClassRegistry',
13
- 'MultiCallEntrypoint',
14
- 'FeeJuice',
15
- 'PublicChecks'
12
+ 'FeeJuice'
16
13
  ] as const;
17
14
 
18
15
  export type ProtocolContractName = typeof protocolContractNames[number];
@@ -20,107 +17,74 @@
20
17
 
21
18
 
22
19
  export const ProtocolContractSalt: Record<ProtocolContractName, Fr> = {
23
- AuthRegistry: new Fr(1),
24
- ContractInstanceRegistry: new Fr(1),
20
+ ContractInstanceRegistry: new Fr(1),
25
21
  ContractClassRegistry: new Fr(1),
26
- MultiCallEntrypoint: new Fr(1),
27
- FeeJuice: new Fr(1),
28
- PublicChecks: new Fr(1)
22
+ FeeJuice: new Fr(1)
29
23
  };
30
24
 
31
25
 
32
26
 
33
27
  export const ProtocolContractAddress: Record<ProtocolContractName, AztecAddress> = {
34
- AuthRegistry: AztecAddress.fromBigInt(1n),
35
- ContractInstanceRegistry: AztecAddress.fromBigInt(2n),
36
- ContractClassRegistry: AztecAddress.fromBigInt(3n),
37
- MultiCallEntrypoint: AztecAddress.fromBigInt(4n),
38
- FeeJuice: AztecAddress.fromBigInt(5n),
39
- PublicChecks: AztecAddress.fromBigInt(6n)
28
+ ContractInstanceRegistry: AztecAddress.fromBigInt(2n),
29
+ ContractClassRegistry: AztecAddress.fromBigInt(1n),
30
+ FeeJuice: AztecAddress.fromBigInt(3n)
40
31
  };
41
32
 
42
33
 
43
34
 
44
35
  export const ProtocolContractDerivedAddress = {
45
- AuthRegistry: AztecAddress.fromString('0x292c53d63f9d8a3f5f83cab6eda499c21bc5e258f25985664087a6367fd65d09'),
46
- ContractInstanceRegistry: AztecAddress.fromString('0x090e227f889bee009d1add3035568cb9f0df3e2d07d87abe018490c206853bfa'),
47
- ContractClassRegistry: AztecAddress.fromString('0x2e77d58588aa4c81bebb9682c24512073e88db074a27903e0c5e90f4b2fb78d4'),
48
- MultiCallEntrypoint: AztecAddress.fromString('0x161ee3702b2b3a33149a471440c000a7fac01a6b1e286e579d43e5bba8b0548a'),
49
- FeeJuice: AztecAddress.fromString('0x003b46ab3c3c1a13a74f46b10ec8c49400a44fa57d7e8e3a8c6e516b1ab846e4'),
50
- PublicChecks: AztecAddress.fromString('0x1910cabbd22d91e559d73d3a50c5523a66af98201c21559b28feaa311dfe3f9e')
36
+ ContractInstanceRegistry: AztecAddress.fromString('0x290f7bf7cea0eb4c440a06dc8bcf825865479348c9ebf8f540b10ad10fd32c44'),
37
+ ContractClassRegistry: AztecAddress.fromString('0x20b16259faa0a096d687572fc76221263f1cad4a4b726ef49e2cd7b7ce7c7465'),
38
+ FeeJuice: AztecAddress.fromString('0x0fa3ba3e01e6646cd2adade41018dbfff04e59c444760e33bf773ec43d683019')
51
39
  };
52
40
 
53
41
 
54
42
 
55
43
  export const ProtocolContractClassId: Record<ProtocolContractName, Fr> = {
56
- AuthRegistry: Fr.fromString('0x260a716e670e88aea8cfbc3f6a267ddc3d03d377303c01ddf1986d44b5eef85c'),
57
- ContractInstanceRegistry: Fr.fromString('0x166269e8cb830ae0aea50dd59edade58d506d6a986f7121e88906b3a641db544'),
58
- ContractClassRegistry: Fr.fromString('0x0504141e5fb67760c77407b06980bcc7f946d02bf294fb22e2a2a0a1d8dbe0a3'),
59
- MultiCallEntrypoint: Fr.fromString('0x03292f218d55b5b66feeaa4951597d2c6dcd95e8def5034367f0dbc85f630bbc'),
60
- FeeJuice: Fr.fromString('0x023e12215341b87c9a8f763fa2e261bf12a57006174e96fed008eb900cfe8bf1'),
61
- PublicChecks: Fr.fromString('0x13a9fe60765b974b2a3d898dbc6af70868f6bbc9d676d54d556f700618e9cb97')
44
+ ContractInstanceRegistry: Fr.fromString('0x123597d7f3c460a3e91bfb92e729fcd048d4f50a88b7c25e694cf75827062e3f'),
45
+ ContractClassRegistry: Fr.fromString('0x243b6ce1af8f520d531b26ce5081fa29c0870ce8d5949c5304a6705b07947a2e'),
46
+ FeeJuice: Fr.fromString('0x1f65e3db036c48ac8f8635b156880ed17e9437ed8904a0c0554f0d6251bf0997')
62
47
  };
63
48
 
64
49
  export const ProtocolContractClassIdPreimage: Record<ProtocolContractName, { artifactHash: Fr; privateFunctionsRoot: Fr; publicBytecodeCommitment: Fr }> = {
65
- AuthRegistry: {
66
- artifactHash: Fr.fromString('0x08cf135ff08a15bb08a91b47b610f4366b34dc4b51b6f17736349325045599a4'),
67
- privateFunctionsRoot: Fr.fromString('0x11900a485e3ffa03da98d89abb0c9419200644aaf17f5caa863953fccf1ed88f'),
68
- publicBytecodeCommitment: Fr.fromString('0x1765c0a2af421f31ebfa03f11cd3ae7fb6a8b41c3128375e2b0b0c30cf493975'),
69
- },
70
- ContractInstanceRegistry: {
71
- artifactHash: Fr.fromString('0x1462d295a066b8eb9f8955ec8445311b46e69cc076c079d226351281e3041fd2'),
72
- privateFunctionsRoot: Fr.fromString('0x136a6705c7ad1d47f65cb881a56909d4c78d3fa8944f5b103734cd91e654ed63'),
73
- publicBytecodeCommitment: Fr.fromString('0x1b34b6572f6b7e6d8b4ea5f3bc7a6b67a30e98bbc2e03f686fc7541ffb267b71'),
50
+ ContractInstanceRegistry: {
51
+ artifactHash: Fr.fromString('0x0cb37c0b0ec8670b88b472fca5858f8cb112a41ba2aad664903ac1a3bed468b3'),
52
+ privateFunctionsRoot: Fr.fromString('0x0239b0f293384aad456e2e27901eb97cd9073322a28d14b0ac7816a5297b2812'),
53
+ publicBytecodeCommitment: Fr.fromString('0x2c79b6699098244e947caca071a31799c20aa20e7124910a2b7c918fe817d65e'),
74
54
  },
75
55
  ContractClassRegistry: {
76
- artifactHash: Fr.fromString('0x2d30e855fe57e7d34c45be37b3444d794a3908c333913f3278e8afe64cac4c1b'),
77
- privateFunctionsRoot: Fr.fromString('0x2ac3bf890a7d534a768079aa86889caa1a86373c8e6fc2db48215b11bbb79106'),
78
- publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
79
- },
80
- MultiCallEntrypoint: {
81
- artifactHash: Fr.fromString('0x23ce43d8d524bd4e9d7ba1066d2699c333b318207a0ecaf1cdc8d5c0bb4afc77'),
82
- privateFunctionsRoot: Fr.fromString('0x266505ecb7c02ce6e227227c0b6bdb44713c8ecd43164ee7bb00b8fb340e8b03'),
56
+ artifactHash: Fr.fromString('0x1e252471ee2b770fba961d03289344f1798336d9a94e1d8f137397754708de0e'),
57
+ privateFunctionsRoot: Fr.fromString('0x0672f623ec0753ab9fbb02a9a241df81b9bcc0dbed8628d8cab8790e0cb0c03d'),
83
58
  publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
84
59
  },
85
60
  FeeJuice: {
86
- artifactHash: Fr.fromString('0x19a73a7968c4380304a333b461de418dbea82cb2c6964d1610ca8f0042a45ab5'),
87
- privateFunctionsRoot: Fr.fromString('0x0abef3cfc6ae314886c841b42dc33d3eed255ad3dee7773daabf05b229573759'),
88
- publicBytecodeCommitment: Fr.fromString('0x022c20c2d96794f3254446d85c553e0b768e77e877d100a9fdf2a7778e27e333'),
89
- },
90
- PublicChecks: {
91
- artifactHash: Fr.fromString('0x24fa2fc5e146ff5ab68cf0243da858c90318bad28f3dc6cc42b3e079285b79aa'),
92
- privateFunctionsRoot: Fr.fromString('0x067243231eddf4222f3911defbba7705aff06ed45960b27f6f91319196ef97e1'),
93
- publicBytecodeCommitment: Fr.fromString('0x2425ba7086fdf347931ff0f487610b980fd0ad716f7631a51cef39190c3a6709'),
61
+ artifactHash: Fr.fromString('0x1243f24c1d3e8b42c900aa95d3a12448d84f8b5da3fe047f8ac8a46e67bb10b7'),
62
+ privateFunctionsRoot: Fr.fromString('0x247aaafc67f6bf5b06736649181a477dac9f18d3468969b14669708c3dabb275'),
63
+ publicBytecodeCommitment: Fr.fromString('0x1d4b1a8f71b8250d4fb65f8e16a4604e9165648279f47d80e024ce2684c4bdfb'),
94
64
  }
95
65
  };
96
66
 
97
67
  export const ProtocolContractInitializationHash: Record<ProtocolContractName, Fr> = {
98
- AuthRegistry: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
99
- ContractInstanceRegistry: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
68
+ ContractInstanceRegistry: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
100
69
  ContractClassRegistry: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
101
- MultiCallEntrypoint: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
102
- FeeJuice: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
103
- PublicChecks: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000')
70
+ FeeJuice: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000')
104
71
  };
105
72
 
106
73
  export const ProtocolContractPrivateFunctions: Record<ProtocolContractName, { selector: FunctionSelector; vkHash: Fr }[]> = {
107
- AuthRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x0000000000000000000000000000000000000000000000000000000079a3d418')), vkHash: Fr.fromString('0x185a64e85b31ece67103f33ec67ddef374308c0a5dc2b7f37e016bca0dce63fb') }],
108
- ContractInstanceRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x0000000000000000000000000000000000000000000000000000000016ec12aa')), vkHash: Fr.fromString('0x262f7a90ecf055779001b67dad01a3add1e549f6c27931f0e71e463ce2142b57') }],
109
- ContractClassRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x000000000000000000000000000000000000000000000000000000006934ed0d')), vkHash: Fr.fromString('0x1163f31e191528254c877fce0c7f62dd738f5552bbd2dda97512fe4777377f5b') }],
110
- MultiCallEntrypoint: [{ selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000f04908a9')), vkHash: Fr.fromString('0x21732ab3cecf633e4c31a030df62c93e35a005b89941fdab568d2818c1355192') }],
111
- FeeJuice: [{ selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000cbe67243')), vkHash: Fr.fromString('0x2ad6083b4595f8076c014e5152191013167ab1b5a31ad0cbb06490054c7c59ae') }, { selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000e8d374b6')), vkHash: Fr.fromString('0x05aaffffdf797625ff24575d939339303775c5db77fb6bdcecbf955f726fd071') }],
112
- PublicChecks: []
74
+ ContractInstanceRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x0000000000000000000000000000000000000000000000000000000077cff62f')), vkHash: Fr.fromString('0x08a57d0b4d164c6c8d92da9c3bfe57a4ac1a639ab0a2a0ccb60bbb6bcd37f245') }],
75
+ ContractClassRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x000000000000000000000000000000000000000000000000000000006934ed0d')), vkHash: Fr.fromString('0x1531ed0e20d6d05f1aeb06f746c8c4b8f467174836d6edf915b0c45099b393ed') }],
76
+ FeeJuice: [{ selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000cbe67243')), vkHash: Fr.fromString('0x2dbad42bf59fe7ea908485dea59573b4d7fb8ddefb6a0f73bbcce79aa27d545c') }, { selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000e8d374b6')), vkHash: Fr.fromString('0x2e9880e15fb0c9a5494faef915861144769e94aded54c737819ee75918fbda51') }]
113
77
  };
114
78
 
115
79
 
116
80
 
117
81
  export const ProtocolContractsList = new ProtocolContracts([
118
- AztecAddress.fromString('0x292c53d63f9d8a3f5f83cab6eda499c21bc5e258f25985664087a6367fd65d09'),
119
- AztecAddress.fromString('0x090e227f889bee009d1add3035568cb9f0df3e2d07d87abe018490c206853bfa'),
120
- AztecAddress.fromString('0x2e77d58588aa4c81bebb9682c24512073e88db074a27903e0c5e90f4b2fb78d4'),
121
- AztecAddress.fromString('0x161ee3702b2b3a33149a471440c000a7fac01a6b1e286e579d43e5bba8b0548a'),
122
- AztecAddress.fromString('0x003b46ab3c3c1a13a74f46b10ec8c49400a44fa57d7e8e3a8c6e516b1ab846e4'),
123
- AztecAddress.fromString('0x1910cabbd22d91e559d73d3a50c5523a66af98201c21559b28feaa311dfe3f9e'),
82
+ AztecAddress.fromString('0x20b16259faa0a096d687572fc76221263f1cad4a4b726ef49e2cd7b7ce7c7465'),
83
+ AztecAddress.fromString('0x290f7bf7cea0eb4c440a06dc8bcf825865479348c9ebf8f540b10ad10fd32c44'),
84
+ AztecAddress.fromString('0x0fa3ba3e01e6646cd2adade41018dbfff04e59c444760e33bf773ec43d683019'),
85
+ AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
86
+ AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
87
+ AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
124
88
  AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
125
89
  AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
126
90
  AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
@@ -128,7 +92,7 @@ AztecAddress.fromString('0x00000000000000000000000000000000000000000000000000000
128
92
  AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000')
129
93
  ]);
130
94
 
131
- export const protocolContractsHash = Fr.fromString('0x2638c1bd839232f7fc496c38be46f2d3cf9239c1ceb75969d2331d3ab6fa9f3c');
95
+ export const protocolContractsHash = Fr.fromString('0x04194c6dd98d175d07d300b253a9967f5c46782d0e9c3c88473f79ca8b8b16d6');
132
96
 
133
97
 
134
98
 
@@ -1,23 +1,17 @@
1
1
  import type { ContractArtifact } from '@aztec/stdlib/abi';
2
2
 
3
- import { AuthRegistryArtifact } from '../auth-registry/index.js';
4
3
  import { ContractClassRegistryArtifact } from '../class-registry/index.js';
5
4
  import { FeeJuiceArtifact } from '../fee-juice/index.js';
6
5
  import { ContractInstanceRegistryArtifact } from '../instance-registry/index.js';
7
6
  import { makeProtocolContract } from '../make_protocol_contract.js';
8
- import { MultiCallEntrypointArtifact } from '../multi-call-entrypoint/index.js';
9
7
  import type { ProtocolContract } from '../protocol_contract.js';
10
8
  import type { ProtocolContractName } from '../protocol_contract_data.js';
11
- import { PublicChecksArtifact } from '../public-checks/index.js';
12
9
  import type { ProtocolContractsProvider } from './protocol_contracts_provider.js';
13
10
 
14
11
  export const ProtocolContractArtifact: Record<ProtocolContractName, ContractArtifact> = {
15
- AuthRegistry: AuthRegistryArtifact,
16
12
  ContractInstanceRegistry: ContractInstanceRegistryArtifact,
17
13
  ContractClassRegistry: ContractClassRegistryArtifact,
18
- MultiCallEntrypoint: MultiCallEntrypointArtifact,
19
14
  FeeJuice: FeeJuiceArtifact,
20
- PublicChecks: PublicChecksArtifact,
21
15
  };
22
16
 
23
17
  export class BundledProtocolContractsProvider implements ProtocolContractsProvider {
@@ -1,28 +1,19 @@
1
- import { getCanonicalAuthRegistry } from '../auth-registry/lazy.js';
2
1
  import { getCanonicalClassRegistry } from '../class-registry/lazy.js';
3
2
  import { getCanonicalFeeJuice } from '../fee-juice/lazy.js';
4
3
  import { getCanonicalInstanceRegistry } from '../instance-registry/lazy.js';
5
- import { getCanonicalMultiCallEntrypoint } from '../multi-call-entrypoint/lazy.js';
6
4
  import type { ProtocolContract } from '../protocol_contract.js';
7
5
  import type { ProtocolContractName } from '../protocol_contract_data.js';
8
- import { getCanonicalPublicChecks } from '../public-checks/lazy.js';
9
6
  import type { ProtocolContractsProvider } from './protocol_contracts_provider.js';
10
7
 
11
8
  export class LazyProtocolContractsProvider implements ProtocolContractsProvider {
12
9
  getProtocolContractArtifact(name: ProtocolContractName): Promise<ProtocolContract> {
13
10
  switch (name) {
14
- case 'AuthRegistry':
15
- return getCanonicalAuthRegistry();
16
11
  case 'ContractInstanceRegistry':
17
12
  return getCanonicalInstanceRegistry();
18
13
  case 'ContractClassRegistry':
19
14
  return getCanonicalClassRegistry();
20
- case 'MultiCallEntrypoint':
21
- return getCanonicalMultiCallEntrypoint();
22
15
  case 'FeeJuice':
23
16
  return getCanonicalFeeJuice();
24
- case 'PublicChecks':
25
- return getCanonicalPublicChecks();
26
17
  default:
27
18
  throw new Error(`Unknown protocol contract name: ${name}`);
28
19
  }
@@ -8,18 +8,6 @@ export function getSampleContractClassPublishedEventPayload(): Buffer {
8
8
  return Buffer.from(readFileSync(path).toString(), 'hex');
9
9
  }
10
10
 
11
- // Generated from end-to-end/src/e2e_deploy_contract/contract_class_registration.test.ts with AZTEC_GENERATE_TEST_DATA=1
12
- export function getSamplePrivateFunctionBroadcastedEventPayload(): Buffer {
13
- const path = getPathToFixture('PrivateFunctionBroadcastedEventData.hex');
14
- return Buffer.from(readFileSync(path).toString(), 'hex');
15
- }
16
-
17
- // Generated from end-to-end/src/e2e_deploy_contract/contract_class_registration.test.ts with AZTEC_GENERATE_TEST_DATA=1
18
- export function getSampleUtilityFunctionBroadcastedEventPayload(): Buffer {
19
- const path = getPathToFixture('UtilityFunctionBroadcastedEventData.hex');
20
- return Buffer.from(readFileSync(path).toString(), 'hex');
21
- }
22
-
23
11
  // Generated from end-to-end/src/e2e_deploy_contract/contract_class_registration.test.ts with AZTEC_GENERATE_TEST_DATA=1
24
12
  export function getSampleContractInstancePublishedEventPayload(): Buffer {
25
13
  const path = getPathToFixture('ContractInstancePublishedEventData.hex');
@@ -1,5 +0,0 @@
1
-
2
- import type { NoirCompiledContract } from '@aztec/stdlib/noir';
3
- const circuit: NoirCompiledContract;
4
- export = circuit;
5
-