@aztec/protocol-contracts 5.0.0-rc.2 → 5.0.1

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.
@@ -19,29 +19,29 @@ export const ProtocolContractAddress = {
19
19
  FeeJuice: AztecAddress.fromBigIntUnsafe(3n)
20
20
  };
21
21
  export const ProtocolContractDerivedAddress = {
22
- ContractInstanceRegistry: AztecAddress.fromStringUnsafe('0x06400117b682ea82bad313957460725049b29c05082fc954983c72d6500866de'),
23
- ContractClassRegistry: AztecAddress.fromStringUnsafe('0x07172e8dd677966edbe706407e35b6897662846df1894661c8902efa56c22778'),
24
- FeeJuice: AztecAddress.fromStringUnsafe('0x1b83996ec00ec66dce369f748e422e14abbe4e0dcd485ce82aef6e19323b4c11')
22
+ ContractInstanceRegistry: AztecAddress.fromStringUnsafe('0x2f4d749853d6ff00bf0969eef675e4e63dca84255348cdf1f69176c38e09f7da'),
23
+ ContractClassRegistry: AztecAddress.fromStringUnsafe('0x1ad5e07ed202599c25462f92cf076bffd90a2e4bb0139e8647c061fd5e2f7d13'),
24
+ FeeJuice: AztecAddress.fromStringUnsafe('0x0743403848a6684700b1c45208e325f268da52e79f698d7342ff2799d0a7729e')
25
25
  };
26
26
  export const ProtocolContractClassId = {
27
- ContractInstanceRegistry: Fr.fromString('0x2f180ecabe86459dc712b3a69a115819bdc13699cdee1fbe6eb84be5f2efdcc6'),
28
- ContractClassRegistry: Fr.fromString('0x05968d8add5742552b128d956d82fa3ecdb46cd0893116a18c569fefd11054f1'),
29
- FeeJuice: Fr.fromString('0x0656c2f1693bb3233d86084a0ab458ed136fdc0e66ead9679f198a251bfa6e4b')
27
+ ContractInstanceRegistry: Fr.fromString('0x0cd7fad1e486ce7ab4d897b4a7430775e80f3694eb2aaa714435b000aefa5f02'),
28
+ ContractClassRegistry: Fr.fromString('0x046e11488b01d2db4daf6dc632eb7ec56618859d3be90f9933d36c90d3c1ded3'),
29
+ FeeJuice: Fr.fromString('0x1f85d8b901a87b3fa9b93a44ab569ca2f5eb62412dfd58c894fdfff218be11a4')
30
30
  };
31
31
  export const ProtocolContractClassIdPreimage = {
32
32
  ContractInstanceRegistry: {
33
- artifactHash: Fr.fromString('0x14ca3d252eed7fe35d495760dbea6eb0f44b9dc586a8dbed9990a96b254a4b58'),
34
- privateFunctionsRoot: Fr.fromString('0x0239b0f293384aad456e2e27901eb97cd9073322a28d14b0ac7816a5297b2812'),
35
- publicBytecodeCommitment: Fr.fromString('0x2c79b6699098244e947caca071a31799c20aa20e7124910a2b7c918fe817d65e')
33
+ artifactHash: Fr.fromString('0x1a45ee8878136dff02e310c2c62b875be7480494673f5dc2d4f963746b0dbd8d'),
34
+ privateFunctionsRoot: Fr.fromString('0x1c21b5564bd6774f86a20103a5e1aa636f80c240d678d7d2ae1205203e81d072'),
35
+ publicBytecodeCommitment: Fr.fromString('0x232a10bc23611d07c57c32110e6ad7accd088e861c4e167a17bd7433fec2f020')
36
36
  },
37
37
  ContractClassRegistry: {
38
- artifactHash: Fr.fromString('0x25af8a0fba5e72be31e2c7f0d72c78b1ae0efb07eba675c641d8dab2a555b77a'),
39
- privateFunctionsRoot: Fr.fromString('0x0672f623ec0753ab9fbb02a9a241df81b9bcc0dbed8628d8cab8790e0cb0c03d'),
38
+ artifactHash: Fr.fromString('0x2cbc206eed84dbb5fc5b5d34e223c8c26def6bf0eb4ef93a54936ef1d6be6bbb'),
39
+ privateFunctionsRoot: Fr.fromString('0x26971e025c17caf0340d7259b93b38919bc21ee13923e585a72586f2d8caab16'),
40
40
  publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e')
41
41
  },
42
42
  FeeJuice: {
43
- artifactHash: Fr.fromString('0x1df228ba4645988ae80cf09734c9c05bb572809026914611bc6b66c39cce6081'),
44
- privateFunctionsRoot: Fr.fromString('0x247aaafc67f6bf5b06736649181a477dac9f18d3468969b14669708c3dabb275'),
43
+ artifactHash: Fr.fromString('0x1a57ff2a8e653094229bd15c028683e08b2086dfeadecac4c6b950c383b3ae1d'),
44
+ privateFunctionsRoot: Fr.fromString('0x0897a65a4ad8cc60b20c23ad70780edf5147f0be7030adaee95d6b0e0b31ca53'),
45
45
  publicBytecodeCommitment: Fr.fromString('0x1d4b1a8f71b8250d4fb65f8e16a4604e9165648279f47d80e024ce2684c4bdfb')
46
46
  }
47
47
  };
@@ -54,30 +54,30 @@ export const ProtocolContractPrivateFunctions = {
54
54
  ContractInstanceRegistry: [
55
55
  {
56
56
  selector: FunctionSelector.fromField(Fr.fromString('0x0000000000000000000000000000000000000000000000000000000077cff62f')),
57
- vkHash: Fr.fromString('0x08a57d0b4d164c6c8d92da9c3bfe57a4ac1a639ab0a2a0ccb60bbb6bcd37f245')
57
+ vkHash: Fr.fromString('0x028caeef5bee1a5c12da24bf280dd3dcf32c2093e5d0e7e61e4cd28c6061ca70')
58
58
  }
59
59
  ],
60
60
  ContractClassRegistry: [
61
61
  {
62
62
  selector: FunctionSelector.fromField(Fr.fromString('0x000000000000000000000000000000000000000000000000000000006934ed0d')),
63
- vkHash: Fr.fromString('0x1531ed0e20d6d05f1aeb06f746c8c4b8f467174836d6edf915b0c45099b393ed')
63
+ vkHash: Fr.fromString('0x2f2f2e5957c16e9b7db7909384093a09a121694480467d53b589f622bca37c22')
64
64
  }
65
65
  ],
66
66
  FeeJuice: [
67
67
  {
68
68
  selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000cbe67243')),
69
- vkHash: Fr.fromString('0x2dbad42bf59fe7ea908485dea59573b4d7fb8ddefb6a0f73bbcce79aa27d545c')
69
+ vkHash: Fr.fromString('0x11664a0b6be6af413f92d8f0c18f4f6b296ea9a39bfecd4874e409527a8f926e')
70
70
  },
71
71
  {
72
72
  selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000e8d374b6')),
73
- vkHash: Fr.fromString('0x2e9880e15fb0c9a5494faef915861144769e94aded54c737819ee75918fbda51')
73
+ vkHash: Fr.fromString('0x0bdf721b3958382bbd74c9140eb83beca26c7eda8e041f162d28b823d8399199')
74
74
  }
75
75
  ]
76
76
  };
77
77
  export const ProtocolContractsList = new ProtocolContracts([
78
- AztecAddress.fromStringUnsafe('0x07172e8dd677966edbe706407e35b6897662846df1894661c8902efa56c22778'),
79
- AztecAddress.fromStringUnsafe('0x06400117b682ea82bad313957460725049b29c05082fc954983c72d6500866de'),
80
- AztecAddress.fromStringUnsafe('0x1b83996ec00ec66dce369f748e422e14abbe4e0dcd485ce82aef6e19323b4c11'),
78
+ AztecAddress.fromStringUnsafe('0x1ad5e07ed202599c25462f92cf076bffd90a2e4bb0139e8647c061fd5e2f7d13'),
79
+ AztecAddress.fromStringUnsafe('0x2f4d749853d6ff00bf0969eef675e4e63dca84255348cdf1f69176c38e09f7da'),
80
+ AztecAddress.fromStringUnsafe('0x0743403848a6684700b1c45208e325f268da52e79f698d7342ff2799d0a7729e'),
81
81
  AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
82
82
  AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
83
83
  AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
@@ -87,5 +87,5 @@ export const ProtocolContractsList = new ProtocolContracts([
87
87
  AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
88
88
  AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000')
89
89
  ]);
90
- export const protocolContractsHash = Fr.fromString('0x0a1f22b72996215e178699fff463a6ca5e3c7d5ffe66e183490eb766ec1c83ae');
90
+ export const protocolContractsHash = Fr.fromString('0x2c075866eafc88a1f6f9addc7e337c6e64e45d1cb7fd7c0d612ebcec72aab2ca');
91
91
  export const CONTRACT_INSTANCE_PUBLISHED_EVENT_TAG = Fr.fromHexString('0x1a7e1badb79abdd38c684b3c8306ffe7ecb33c69e3380d9855730aaaa83a21a8');
@@ -1,12 +1,12 @@
1
1
  import { readFileSync } from 'fs';
2
2
  import { dirname, resolve } from 'path';
3
3
  import { fileURLToPath } from 'url';
4
- // Generated from end-to-end/src/e2e_deploy_contract/contract_class_registration.test.ts with AZTEC_GENERATE_TEST_DATA=1
4
+ // Generated from end-to-end/src/automine/contracts/deploy/contract_class_registration.test.ts with AZTEC_GENERATE_TEST_DATA=1
5
5
  export function getSampleContractClassPublishedEventPayload() {
6
6
  const path = getPathToFixture('ContractClassPublishedEventData.hex');
7
7
  return Buffer.from(readFileSync(path).toString(), 'hex');
8
8
  }
9
- // Generated from end-to-end/src/e2e_deploy_contract/contract_class_registration.test.ts with AZTEC_GENERATE_TEST_DATA=1
9
+ // Generated from end-to-end/src/automine/contracts/deploy/contract_class_registration.test.ts with AZTEC_GENERATE_TEST_DATA=1
10
10
  export function getSampleContractInstancePublishedEventPayload() {
11
11
  const path = getPathToFixture('ContractInstancePublishedEventData.hex');
12
12
  return Buffer.from(readFileSync(path).toString(), 'hex');
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": "5.0.0-rc.2",
5
+ "version": "5.0.1",
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": "5.0.0-rc.2",
77
- "@aztec/foundation": "5.0.0-rc.2",
78
- "@aztec/stdlib": "5.0.0-rc.2",
76
+ "@aztec/constants": "5.0.1",
77
+ "@aztec/foundation": "5.0.1",
78
+ "@aztec/stdlib": "5.0.1",
79
79
  "lodash.chunk": "^4.2.0",
80
80
  "lodash.omit": "^4.5.0",
81
81
  "tslib": "^2.4.0"
@@ -33,33 +33,33 @@ FeeJuice: AztecAddress.fromBigIntUnsafe(3n)
33
33
 
34
34
 
35
35
  export const ProtocolContractDerivedAddress = {
36
- ContractInstanceRegistry: AztecAddress.fromStringUnsafe('0x06400117b682ea82bad313957460725049b29c05082fc954983c72d6500866de'),
37
- ContractClassRegistry: AztecAddress.fromStringUnsafe('0x07172e8dd677966edbe706407e35b6897662846df1894661c8902efa56c22778'),
38
- FeeJuice: AztecAddress.fromStringUnsafe('0x1b83996ec00ec66dce369f748e422e14abbe4e0dcd485ce82aef6e19323b4c11')
36
+ ContractInstanceRegistry: AztecAddress.fromStringUnsafe('0x2f4d749853d6ff00bf0969eef675e4e63dca84255348cdf1f69176c38e09f7da'),
37
+ ContractClassRegistry: AztecAddress.fromStringUnsafe('0x1ad5e07ed202599c25462f92cf076bffd90a2e4bb0139e8647c061fd5e2f7d13'),
38
+ FeeJuice: AztecAddress.fromStringUnsafe('0x0743403848a6684700b1c45208e325f268da52e79f698d7342ff2799d0a7729e')
39
39
  };
40
40
 
41
41
 
42
42
 
43
43
  export const ProtocolContractClassId: Record<ProtocolContractName, Fr> = {
44
- ContractInstanceRegistry: Fr.fromString('0x2f180ecabe86459dc712b3a69a115819bdc13699cdee1fbe6eb84be5f2efdcc6'),
45
- ContractClassRegistry: Fr.fromString('0x05968d8add5742552b128d956d82fa3ecdb46cd0893116a18c569fefd11054f1'),
46
- FeeJuice: Fr.fromString('0x0656c2f1693bb3233d86084a0ab458ed136fdc0e66ead9679f198a251bfa6e4b')
44
+ ContractInstanceRegistry: Fr.fromString('0x0cd7fad1e486ce7ab4d897b4a7430775e80f3694eb2aaa714435b000aefa5f02'),
45
+ ContractClassRegistry: Fr.fromString('0x046e11488b01d2db4daf6dc632eb7ec56618859d3be90f9933d36c90d3c1ded3'),
46
+ FeeJuice: Fr.fromString('0x1f85d8b901a87b3fa9b93a44ab569ca2f5eb62412dfd58c894fdfff218be11a4')
47
47
  };
48
48
 
49
49
  export const ProtocolContractClassIdPreimage: Record<ProtocolContractName, { artifactHash: Fr; privateFunctionsRoot: Fr; publicBytecodeCommitment: Fr }> = {
50
50
  ContractInstanceRegistry: {
51
- artifactHash: Fr.fromString('0x14ca3d252eed7fe35d495760dbea6eb0f44b9dc586a8dbed9990a96b254a4b58'),
52
- privateFunctionsRoot: Fr.fromString('0x0239b0f293384aad456e2e27901eb97cd9073322a28d14b0ac7816a5297b2812'),
53
- publicBytecodeCommitment: Fr.fromString('0x2c79b6699098244e947caca071a31799c20aa20e7124910a2b7c918fe817d65e'),
51
+ artifactHash: Fr.fromString('0x1a45ee8878136dff02e310c2c62b875be7480494673f5dc2d4f963746b0dbd8d'),
52
+ privateFunctionsRoot: Fr.fromString('0x1c21b5564bd6774f86a20103a5e1aa636f80c240d678d7d2ae1205203e81d072'),
53
+ publicBytecodeCommitment: Fr.fromString('0x232a10bc23611d07c57c32110e6ad7accd088e861c4e167a17bd7433fec2f020'),
54
54
  },
55
55
  ContractClassRegistry: {
56
- artifactHash: Fr.fromString('0x25af8a0fba5e72be31e2c7f0d72c78b1ae0efb07eba675c641d8dab2a555b77a'),
57
- privateFunctionsRoot: Fr.fromString('0x0672f623ec0753ab9fbb02a9a241df81b9bcc0dbed8628d8cab8790e0cb0c03d'),
56
+ artifactHash: Fr.fromString('0x2cbc206eed84dbb5fc5b5d34e223c8c26def6bf0eb4ef93a54936ef1d6be6bbb'),
57
+ privateFunctionsRoot: Fr.fromString('0x26971e025c17caf0340d7259b93b38919bc21ee13923e585a72586f2d8caab16'),
58
58
  publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
59
59
  },
60
60
  FeeJuice: {
61
- artifactHash: Fr.fromString('0x1df228ba4645988ae80cf09734c9c05bb572809026914611bc6b66c39cce6081'),
62
- privateFunctionsRoot: Fr.fromString('0x247aaafc67f6bf5b06736649181a477dac9f18d3468969b14669708c3dabb275'),
61
+ artifactHash: Fr.fromString('0x1a57ff2a8e653094229bd15c028683e08b2086dfeadecac4c6b950c383b3ae1d'),
62
+ privateFunctionsRoot: Fr.fromString('0x0897a65a4ad8cc60b20c23ad70780edf5147f0be7030adaee95d6b0e0b31ca53'),
63
63
  publicBytecodeCommitment: Fr.fromString('0x1d4b1a8f71b8250d4fb65f8e16a4604e9165648279f47d80e024ce2684c4bdfb'),
64
64
  }
65
65
  };
@@ -71,17 +71,17 @@ FeeJuice: Fr.fromString('0x00000000000000000000000000000000000000000000000000000
71
71
  };
72
72
 
73
73
  export const ProtocolContractPrivateFunctions: Record<ProtocolContractName, { selector: FunctionSelector; vkHash: Fr }[]> = {
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') }]
74
+ ContractInstanceRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x0000000000000000000000000000000000000000000000000000000077cff62f')), vkHash: Fr.fromString('0x028caeef5bee1a5c12da24bf280dd3dcf32c2093e5d0e7e61e4cd28c6061ca70') }],
75
+ ContractClassRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x000000000000000000000000000000000000000000000000000000006934ed0d')), vkHash: Fr.fromString('0x2f2f2e5957c16e9b7db7909384093a09a121694480467d53b589f622bca37c22') }],
76
+ FeeJuice: [{ selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000cbe67243')), vkHash: Fr.fromString('0x11664a0b6be6af413f92d8f0c18f4f6b296ea9a39bfecd4874e409527a8f926e') }, { selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000e8d374b6')), vkHash: Fr.fromString('0x0bdf721b3958382bbd74c9140eb83beca26c7eda8e041f162d28b823d8399199') }]
77
77
  };
78
78
 
79
79
 
80
80
 
81
81
  export const ProtocolContractsList = new ProtocolContracts([
82
- AztecAddress.fromStringUnsafe('0x07172e8dd677966edbe706407e35b6897662846df1894661c8902efa56c22778'),
83
- AztecAddress.fromStringUnsafe('0x06400117b682ea82bad313957460725049b29c05082fc954983c72d6500866de'),
84
- AztecAddress.fromStringUnsafe('0x1b83996ec00ec66dce369f748e422e14abbe4e0dcd485ce82aef6e19323b4c11'),
82
+ AztecAddress.fromStringUnsafe('0x1ad5e07ed202599c25462f92cf076bffd90a2e4bb0139e8647c061fd5e2f7d13'),
83
+ AztecAddress.fromStringUnsafe('0x2f4d749853d6ff00bf0969eef675e4e63dca84255348cdf1f69176c38e09f7da'),
84
+ AztecAddress.fromStringUnsafe('0x0743403848a6684700b1c45208e325f268da52e79f698d7342ff2799d0a7729e'),
85
85
  AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
86
86
  AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
87
87
  AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
@@ -92,7 +92,7 @@ AztecAddress.fromStringUnsafe('0x00000000000000000000000000000000000000000000000
92
92
  AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000')
93
93
  ]);
94
94
 
95
- export const protocolContractsHash = Fr.fromString('0x0a1f22b72996215e178699fff463a6ca5e3c7d5ffe66e183490eb766ec1c83ae');
95
+ export const protocolContractsHash = Fr.fromString('0x2c075866eafc88a1f6f9addc7e337c6e64e45d1cb7fd7c0d612ebcec72aab2ca');
96
96
 
97
97
 
98
98
 
@@ -2,13 +2,13 @@ import { readFileSync } from 'fs';
2
2
  import { dirname, resolve } from 'path';
3
3
  import { fileURLToPath } from 'url';
4
4
 
5
- // Generated from end-to-end/src/e2e_deploy_contract/contract_class_registration.test.ts with AZTEC_GENERATE_TEST_DATA=1
5
+ // Generated from end-to-end/src/automine/contracts/deploy/contract_class_registration.test.ts with AZTEC_GENERATE_TEST_DATA=1
6
6
  export function getSampleContractClassPublishedEventPayload(): Buffer {
7
7
  const path = getPathToFixture('ContractClassPublishedEventData.hex');
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
11
+ // Generated from end-to-end/src/automine/contracts/deploy/contract_class_registration.test.ts with AZTEC_GENERATE_TEST_DATA=1
12
12
  export function getSampleContractInstancePublishedEventPayload(): Buffer {
13
13
  const path = getPathToFixture('ContractInstancePublishedEventData.hex');
14
14
  return Buffer.from(readFileSync(path).toString(), 'hex');