Skip to content

Commit 64e5674

Browse files
committed
feat: shift remaining protocol-contract addresses to 1-3
1 parent 196e504 commit 64e5674

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

barretenberg/cpp/pil/vm2/constants_gen.pil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ namespace constants;
1515
pol MAX_L2_TO_L1_MSGS_PER_TX = 8;
1616
pol MAX_PACKED_PUBLIC_BYTECODE_SIZE_IN_FIELDS = 3000;
1717
pol MAX_PROTOCOL_CONTRACTS = 11;
18-
pol CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS = 2;
19-
pol CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS = 3;
20-
pol FEE_JUICE_ADDRESS = 5;
18+
pol CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS = 1;
19+
pol CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS = 2;
20+
pol FEE_JUICE_ADDRESS = 3;
2121
pol FEE_JUICE_BALANCES_SLOT = 1;
2222
pol UPDATED_CLASS_IDS_SLOT = 1;
2323
pol FLAT_PUBLIC_LOGS_HEADER_LENGTH = 1;

barretenberg/cpp/src/barretenberg/aztec/aztec_constants.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
#define GENESIS_ARCHIVE_ROOT "0x177a4955b31ecaafad999753938a44e526b54c5ba5d536688227f85f15cfbdf5"
2222
#define MAX_PACKED_PUBLIC_BYTECODE_SIZE_IN_FIELDS 3000
2323
#define MAX_PROTOCOL_CONTRACTS 11
24-
#define CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS 2
25-
#define CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS 3
26-
#define FEE_JUICE_ADDRESS 5
24+
#define CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS 1
25+
#define CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS 2
26+
#define FEE_JUICE_ADDRESS 3
2727
#define FEE_JUICE_BALANCES_SLOT 1
2828
#define UPDATED_CLASS_IDS_SLOT 1
2929
#define FLAT_PUBLIC_LOGS_HEADER_LENGTH 1

noir-projects/noir-protocol-circuits/crates/types/src/constants.nr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ pub global CONTRACT_INSTANCE_UPDATED_MAGIC_VALUE: Field =
228228
// Chosen to be a multiple of 3 (-1 to account for the separator), to optimize the poseidon2 hash.
229229
pub global MAX_PROTOCOL_CONTRACTS: u32 = 11;
230230
// Address 0 is not a protocol contract.
231-
pub global CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS: AztecAddress = AztecAddress::from_field(2);
232-
pub global CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS: AztecAddress = AztecAddress::from_field(3);
233-
pub global FEE_JUICE_ADDRESS: AztecAddress = AztecAddress::from_field(5);
231+
pub global CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS: AztecAddress = AztecAddress::from_field(1);
232+
pub global CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS: AztecAddress = AztecAddress::from_field(2);
233+
pub global FEE_JUICE_ADDRESS: AztecAddress = AztecAddress::from_field(3);
234234

235235
// `SIDE_EFFECT_MASKING_ADDRESS` is used by the protocol circuits to silo the padding side effects. It's not a protocol
236236
// contract (hence its address is greater than `MAX_PROTOCOL_CONTRACTS`).

yarn-project/constants/src/constants.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ export const CONTRACT_CLASS_REGISTRY_UTILITY_FUNCTION_BROADCASTED_MAGIC_VALUE =
117117
export const CONTRACT_INSTANCE_PUBLISHED_MAGIC_VALUE = 10538216027419913765597387738085647348651103543680388181336823392401502757423n;
118118
export const CONTRACT_INSTANCE_UPDATED_MAGIC_VALUE = 20721543224513346060908370400407150739273836456436647488068002302723900469047n;
119119
export const MAX_PROTOCOL_CONTRACTS = 11;
120-
export const CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS = 2;
121-
export const CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS = 3;
122-
export const FEE_JUICE_ADDRESS = 5;
120+
export const CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS = 1;
121+
export const CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS = 2;
122+
export const FEE_JUICE_ADDRESS = 3;
123123
export const SIDE_EFFECT_MASKING_ADDRESS = 19523154334483583633304358390644137470227519736821975910774528428729027989987n;
124124
export const NULL_MSG_SENDER_CONTRACT_ADDRESS = 21888242871839275222246405745257275088548364400416034343698204186575808495616n;
125125
export const CONTRACT_CLASS_REGISTRY_BYTECODE_CAPSULE_SLOT = 14193106819744442689484501689686180698286338820089744102289275815863062044599n;

0 commit comments

Comments
 (0)