Skip to content

Commit 234146b

Browse files
committed
feat(multi_call_entrypoint): demote to non-protocol contract
1 parent 54fa4bc commit 234146b

33 files changed

Lines changed: 112 additions & 80 deletions

File tree

barretenberg/cpp/pil/vm2/constants_gen.pil

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ namespace constants;
1717
pol MAX_PROTOCOL_CONTRACTS = 11;
1818
pol CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS = 2;
1919
pol CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS = 3;
20-
pol MULTI_CALL_ENTRYPOINT_ADDRESS = 4;
2120
pol FEE_JUICE_ADDRESS = 5;
2221
pol FEE_JUICE_BALANCES_SLOT = 1;
2322
pol UPDATED_CLASS_IDS_SLOT = 1;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#define MAX_PROTOCOL_CONTRACTS 11
2424
#define CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS 2
2525
#define CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS 3
26-
#define MULTI_CALL_ENTRYPOINT_ADDRESS 4
2726
#define FEE_JUICE_ADDRESS 5
2827
#define FEE_JUICE_BALANCES_SLOT 1
2928
#define UPDATED_CLASS_IDS_SLOT 1

noir-projects/noir-contracts/Nargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ members = [
2828
"contracts/fees/sponsored_fpc_contract",
2929
"contracts/message_discovery/handshake_registry_contract",
3030
"contracts/standard/auth_registry_contract",
31+
"contracts/standard/multi_call_entrypoint_contract",
3132
"contracts/standard/public_checks_contract",
3233
"contracts/protocol/contract_class_registry_contract",
3334
"contracts/protocol/contract_instance_registry_contract",
3435
"contracts/protocol/fee_juice_contract",
35-
"contracts/protocol/multi_call_entrypoint_contract",
3636
"contracts/protocol_interface/contract_instance_registry_interface",
3737
"contracts/protocol_interface/fee_juice_interface",
3838
"contracts/test/generic_proxy_contract",

noir-projects/noir-contracts/contracts/protocol/multi_call_entrypoint_contract/Nargo.toml renamed to noir-projects/noir-contracts/contracts/standard/multi_call_entrypoint_contract/Nargo.toml

File renamed without changes.

noir-projects/noir-contracts/contracts/protocol/multi_call_entrypoint_contract/src/main.nr renamed to noir-projects/noir-contracts/contracts/standard/multi_call_entrypoint_contract/src/main.nr

File renamed without changes.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[
22
"contract_instance_registry_contract-ContractInstanceRegistry",
33
"contract_class_registry_contract-ContractClassRegistry",
4-
"multi_call_entrypoint_contract-MultiCallEntrypoint",
54
"fee_juice_contract-FeeJuice"
65
]

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ pub global MAX_PROTOCOL_CONTRACTS: u32 = 11;
230230
// Address 0 is not a protocol contract.
231231
pub global CONTRACT_INSTANCE_REGISTRY_CONTRACT_ADDRESS: AztecAddress = AztecAddress::from_field(2);
232232
pub global CONTRACT_CLASS_REGISTRY_CONTRACT_ADDRESS: AztecAddress = AztecAddress::from_field(3);
233-
pub global MULTI_CALL_ENTRYPOINT_ADDRESS: AztecAddress = AztecAddress::from_field(4);
234233
pub global FEE_JUICE_ADDRESS: AztecAddress = AztecAddress::from_field(5);
235234

236235
// `SIDE_EFFECT_MASKING_ADDRESS` is used by the protocol circuits to silo the padding side effects. It's not a protocol

yarn-project/aztec-node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"@aztec/bb-prover": "workspace:^",
7070
"@aztec/blob-client": "workspace:^",
7171
"@aztec/blob-lib": "workspace:^",
72+
"@aztec/standard-contracts": "workspace:^",
7273
"@aztec/constants": "workspace:^",
7374
"@aztec/epoch-cache": "workspace:^",
7475
"@aztec/ethereum": "workspace:^",

yarn-project/aztec-node/src/aztec-node/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import {
4747
type Watcher,
4848
createSlasher,
4949
} from '@aztec/slasher';
50+
import { STANDARD_MULTI_CALL_ENTRYPOINT_ADDRESS } from '@aztec/standard-contracts/multi-call-entrypoint';
5051
import { CollectionLimitsConfig, PublicSimulatorConfig } from '@aztec/stdlib/avm';
5152
import { AztecAddress } from '@aztec/stdlib/aztec-address';
5253
import {
@@ -1618,7 +1619,7 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, AztecNodeDeb
16181619
classRegistry: ProtocolContractAddress.ContractClassRegistry,
16191620
feeJuice: ProtocolContractAddress.FeeJuice,
16201621
instanceRegistry: ProtocolContractAddress.ContractInstanceRegistry,
1621-
multiCallEntrypoint: ProtocolContractAddress.MultiCallEntrypoint,
1622+
multiCallEntrypoint: STANDARD_MULTI_CALL_ENTRYPOINT_ADDRESS,
16221623
});
16231624
}
16241625

yarn-project/aztec-node/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
{
1919
"path": "../blob-lib"
2020
},
21+
{
22+
"path": "../standard-contracts"
23+
},
2124
{
2225
"path": "../constants"
2326
},

0 commit comments

Comments
 (0)