@aztec/protocol-contracts 3.0.0-nightly.20251104 → 3.0.0-nightly.20251106
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.
- package/artifacts/AuthRegistry.json +77 -73
- package/artifacts/ContractClassRegistry.json +56 -56
- package/artifacts/ContractInstanceRegistry.json +73 -73
- package/artifacts/FeeJuice.json +75 -75
- package/artifacts/MultiCallEntrypoint.json +45 -45
- package/artifacts/Router.json +50 -50
- package/dest/class-registry/contract_class_published_event.d.ts +1 -0
- package/dest/class-registry/contract_class_published_event.d.ts.map +1 -1
- package/dest/class-registry/contract_class_published_event.js +3 -0
- package/dest/instance-registry/contract_instance_published_event.d.ts +1 -0
- package/dest/instance-registry/contract_instance_published_event.d.ts.map +1 -1
- package/dest/instance-registry/contract_instance_published_event.js +3 -0
- package/dest/protocol_contract_data.js +13 -13
- package/package.json +4 -4
- package/src/class-registry/contract_class_published_event.ts +6 -0
- package/src/instance-registry/contract_instance_published_event.ts +6 -0
- package/src/protocol_contract_data.ts +13 -13
|
@@ -12,5 +12,6 @@ export declare class ContractClassPublishedEvent {
|
|
|
12
12
|
static isContractClassPublishedEvent(log: ContractClassLog): boolean;
|
|
13
13
|
static fromLog(log: ContractClassLog): ContractClassPublishedEvent;
|
|
14
14
|
toContractClassPublic(): Promise<ContractClassPublic>;
|
|
15
|
+
static extractContractClassEvents(logs: ContractClassLog[]): ContractClassPublishedEvent[];
|
|
15
16
|
}
|
|
16
17
|
//# sourceMappingURL=contract_class_published_event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract_class_published_event.d.ts","sourceRoot":"","sources":["../../src/class-registry/contract_class_published_event.ts"],"names":[],"mappings":"AACA,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,oDAAoD;AACpD,qBAAa,2BAA2B;aAEpB,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,6BAA6B,CAAC,GAAG,EAAE,gBAAgB;IAO1D,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB;IAmB9B,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"contract_class_published_event.d.ts","sourceRoot":"","sources":["../../src/class-registry/contract_class_published_event.ts"],"names":[],"mappings":"AACA,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,oDAAoD;AACpD,qBAAa,2BAA2B;aAEpB,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,6BAA6B,CAAC,GAAG,EAAE,gBAAgB;IAO1D,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB;IAmB9B,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC;WA4B7C,0BAA0B,CAAC,IAAI,EAAE,gBAAgB,EAAE,GAAG,2BAA2B,EAAE;CAKlG"}
|
|
@@ -52,4 +52,7 @@ import { ProtocolContractAddress } from '../protocol_contract_data.js';
|
|
|
52
52
|
utilityFunctions: []
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
+
static extractContractClassEvents(logs) {
|
|
56
|
+
return logs.filter((log)=>ContractClassPublishedEvent.isContractClassPublishedEvent(log)).map((log)=>ContractClassPublishedEvent.fromLog(log));
|
|
57
|
+
}
|
|
55
58
|
}
|
|
@@ -16,5 +16,6 @@ export declare class ContractInstancePublishedEvent {
|
|
|
16
16
|
static isContractInstancePublishedEvent(log: PrivateLog): boolean;
|
|
17
17
|
static fromLog(log: PrivateLog): ContractInstancePublishedEvent;
|
|
18
18
|
toContractInstance(): ContractInstanceWithAddress;
|
|
19
|
+
static extractContractInstanceEvents(logs: PrivateLog[]): ContractInstancePublishedEvent[];
|
|
19
20
|
}
|
|
20
21
|
//# sourceMappingURL=contract_instance_published_event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract_instance_published_event.d.ts","sourceRoot":"","sources":["../../src/instance-registry/contract_instance_published_event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrD,uDAAuD;AACvD,qBAAa,8BAA8B;aAEvB,OAAO,EAAE,YAAY;aACrB,OAAO,EAAE,MAAM;aACf,IAAI,EAAE,EAAE;aACR,eAAe,EAAE,EAAE;aACnB,kBAAkB,EAAE,EAAE;aACtB,UAAU,EAAE,UAAU;aACtB,QAAQ,EAAE,YAAY;gBANtB,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,EAAE,EACR,eAAe,EAAE,EAAE,EACnB,kBAAkB,EAAE,EAAE,EACtB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,YAAY;IAGxC,MAAM,CAAC,gCAAgC,CAAC,GAAG,EAAE,UAAU;IAIvD,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,UAAU;IAsB9B,kBAAkB,IAAI,2BAA2B;
|
|
1
|
+
{"version":3,"file":"contract_instance_published_event.d.ts","sourceRoot":"","sources":["../../src/instance-registry/contract_instance_published_event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrD,uDAAuD;AACvD,qBAAa,8BAA8B;aAEvB,OAAO,EAAE,YAAY;aACrB,OAAO,EAAE,MAAM;aACf,IAAI,EAAE,EAAE;aACR,eAAe,EAAE,EAAE;aACnB,kBAAkB,EAAE,EAAE;aACtB,UAAU,EAAE,UAAU;aACtB,QAAQ,EAAE,YAAY;gBANtB,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,EAAE,EACR,eAAe,EAAE,EAAE,EACnB,kBAAkB,EAAE,EAAE,EACtB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,YAAY;IAGxC,MAAM,CAAC,gCAAgC,CAAC,GAAG,EAAE,UAAU;IAIvD,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,UAAU;IAsB9B,kBAAkB,IAAI,2BAA2B;WAiBnC,6BAA6B,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,8BAA8B,EAAE;CAKlG"}
|
|
@@ -50,4 +50,7 @@ import { CONTRACT_INSTANCE_PUBLISHED_EVENT_TAG } from '../protocol_contract_data
|
|
|
50
50
|
deployer: this.deployer
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
+
static extractContractInstanceEvents(logs) {
|
|
54
|
+
return logs.filter((log)=>ContractInstancePublishedEvent.isContractInstancePublishedEvent(log)).map((log)=>ContractInstancePublishedEvent.fromLog(log));
|
|
55
|
+
}
|
|
53
56
|
}
|
|
@@ -27,25 +27,25 @@ export const ProtocolContractAddress = {
|
|
|
27
27
|
Router: AztecAddress.fromBigInt(6n)
|
|
28
28
|
};
|
|
29
29
|
export const ProtocolContractDerivedAddress = {
|
|
30
|
-
AuthRegistry: AztecAddress.fromString('
|
|
31
|
-
ContractInstanceRegistry: AztecAddress.fromString('
|
|
32
|
-
ContractClassRegistry: AztecAddress.fromString('
|
|
33
|
-
MultiCallEntrypoint: AztecAddress.fromString('
|
|
34
|
-
FeeJuice: AztecAddress.fromString('
|
|
35
|
-
Router: AztecAddress.fromString('
|
|
30
|
+
AuthRegistry: AztecAddress.fromString('0x0e4318f22df929c8359ec646cd67ee0d20c972a6b5a29d12c04ec7ffc6e12d56'),
|
|
31
|
+
ContractInstanceRegistry: AztecAddress.fromString('0x0051db4ec0a4d9878efd6c30eac3131d143dcaf8ae4c011860f776f3ce594459'),
|
|
32
|
+
ContractClassRegistry: AztecAddress.fromString('0x099949db1339ee1faf9153653888a8d4144c4abd0a3475b618d84258c73576da'),
|
|
33
|
+
MultiCallEntrypoint: AztecAddress.fromString('0x2f171cb49ef5b73a2452303a5fee9dc991b2de62d31ae733a2a53d0d394ad937'),
|
|
34
|
+
FeeJuice: AztecAddress.fromString('0x14c02f07efa31f8082f635913b9ad589522ac4ad02c1d67aa2f311f0664f84d1'),
|
|
35
|
+
Router: AztecAddress.fromString('0x26a3348377c43e1abd7c6bb319dc4edc590c91464abd14247682e8dcc169bebb')
|
|
36
36
|
};
|
|
37
37
|
export const ProtocolContractsList = new ProtocolContracts([
|
|
38
|
-
AztecAddress.fromString('
|
|
39
|
-
AztecAddress.fromString('
|
|
40
|
-
AztecAddress.fromString('
|
|
41
|
-
AztecAddress.fromString('
|
|
42
|
-
AztecAddress.fromString('
|
|
43
|
-
AztecAddress.fromString('
|
|
38
|
+
AztecAddress.fromString('0x0e4318f22df929c8359ec646cd67ee0d20c972a6b5a29d12c04ec7ffc6e12d56'),
|
|
39
|
+
AztecAddress.fromString('0x0051db4ec0a4d9878efd6c30eac3131d143dcaf8ae4c011860f776f3ce594459'),
|
|
40
|
+
AztecAddress.fromString('0x099949db1339ee1faf9153653888a8d4144c4abd0a3475b618d84258c73576da'),
|
|
41
|
+
AztecAddress.fromString('0x2f171cb49ef5b73a2452303a5fee9dc991b2de62d31ae733a2a53d0d394ad937'),
|
|
42
|
+
AztecAddress.fromString('0x14c02f07efa31f8082f635913b9ad589522ac4ad02c1d67aa2f311f0664f84d1'),
|
|
43
|
+
AztecAddress.fromString('0x26a3348377c43e1abd7c6bb319dc4edc590c91464abd14247682e8dcc169bebb'),
|
|
44
44
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
45
45
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
46
46
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
47
47
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
48
48
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000')
|
|
49
49
|
]);
|
|
50
|
-
export const protocolContractsHash = Fr.fromString('
|
|
50
|
+
export const protocolContractsHash = Fr.fromString('0x01a99b084fd4819985721a0da3da01b0bbaf53f5682fd42fce2afe7a440aec9b');
|
|
51
51
|
export const CONTRACT_INSTANCE_PUBLISHED_EVENT_TAG = Fr.fromHexString('0x28da3fc471387d4e20b646b77abc8cdfc02a339a7507285a73d84f9b97b13486');
|
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": "3.0.0-nightly.
|
|
5
|
+
"version": "3.0.0-nightly.20251106",
|
|
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": "3.0.0-nightly.
|
|
77
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
78
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
76
|
+
"@aztec/constants": "3.0.0-nightly.20251106",
|
|
77
|
+
"@aztec/foundation": "3.0.0-nightly.20251106",
|
|
78
|
+
"@aztec/stdlib": "3.0.0-nightly.20251106",
|
|
79
79
|
"lodash.chunk": "^4.2.0",
|
|
80
80
|
"lodash.omit": "^4.5.0",
|
|
81
81
|
"tslib": "^2.4.0"
|
|
@@ -74,4 +74,10 @@ export class ContractClassPublishedEvent {
|
|
|
74
74
|
utilityFunctions: [],
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
+
|
|
78
|
+
public static extractContractClassEvents(logs: ContractClassLog[]): ContractClassPublishedEvent[] {
|
|
79
|
+
return logs
|
|
80
|
+
.filter((log: ContractClassLog) => ContractClassPublishedEvent.isContractClassPublishedEvent(log))
|
|
81
|
+
.map((log: ContractClassLog) => ContractClassPublishedEvent.fromLog(log));
|
|
82
|
+
}
|
|
77
83
|
}
|
|
@@ -61,4 +61,10 @@ export class ContractInstancePublishedEvent {
|
|
|
61
61
|
deployer: this.deployer,
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
+
|
|
65
|
+
public static extractContractInstanceEvents(logs: PrivateLog[]): ContractInstancePublishedEvent[] {
|
|
66
|
+
return logs
|
|
67
|
+
.filter(log => ContractInstancePublishedEvent.isContractInstancePublishedEvent(log))
|
|
68
|
+
.map(log => ContractInstancePublishedEvent.fromLog(log));
|
|
69
|
+
}
|
|
64
70
|
}
|
|
@@ -41,23 +41,23 @@ Router: AztecAddress.fromBigInt(6n)
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
export const ProtocolContractDerivedAddress = {
|
|
44
|
-
AuthRegistry: AztecAddress.fromString('
|
|
45
|
-
ContractInstanceRegistry: AztecAddress.fromString('
|
|
46
|
-
ContractClassRegistry: AztecAddress.fromString('
|
|
47
|
-
MultiCallEntrypoint: AztecAddress.fromString('
|
|
48
|
-
FeeJuice: AztecAddress.fromString('
|
|
49
|
-
Router: AztecAddress.fromString('
|
|
44
|
+
AuthRegistry: AztecAddress.fromString('0x0e4318f22df929c8359ec646cd67ee0d20c972a6b5a29d12c04ec7ffc6e12d56'),
|
|
45
|
+
ContractInstanceRegistry: AztecAddress.fromString('0x0051db4ec0a4d9878efd6c30eac3131d143dcaf8ae4c011860f776f3ce594459'),
|
|
46
|
+
ContractClassRegistry: AztecAddress.fromString('0x099949db1339ee1faf9153653888a8d4144c4abd0a3475b618d84258c73576da'),
|
|
47
|
+
MultiCallEntrypoint: AztecAddress.fromString('0x2f171cb49ef5b73a2452303a5fee9dc991b2de62d31ae733a2a53d0d394ad937'),
|
|
48
|
+
FeeJuice: AztecAddress.fromString('0x14c02f07efa31f8082f635913b9ad589522ac4ad02c1d67aa2f311f0664f84d1'),
|
|
49
|
+
Router: AztecAddress.fromString('0x26a3348377c43e1abd7c6bb319dc4edc590c91464abd14247682e8dcc169bebb')
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
export const ProtocolContractsList = new ProtocolContracts([
|
|
55
|
-
AztecAddress.fromString('
|
|
56
|
-
AztecAddress.fromString('
|
|
57
|
-
AztecAddress.fromString('
|
|
58
|
-
AztecAddress.fromString('
|
|
59
|
-
AztecAddress.fromString('
|
|
60
|
-
AztecAddress.fromString('
|
|
55
|
+
AztecAddress.fromString('0x0e4318f22df929c8359ec646cd67ee0d20c972a6b5a29d12c04ec7ffc6e12d56'),
|
|
56
|
+
AztecAddress.fromString('0x0051db4ec0a4d9878efd6c30eac3131d143dcaf8ae4c011860f776f3ce594459'),
|
|
57
|
+
AztecAddress.fromString('0x099949db1339ee1faf9153653888a8d4144c4abd0a3475b618d84258c73576da'),
|
|
58
|
+
AztecAddress.fromString('0x2f171cb49ef5b73a2452303a5fee9dc991b2de62d31ae733a2a53d0d394ad937'),
|
|
59
|
+
AztecAddress.fromString('0x14c02f07efa31f8082f635913b9ad589522ac4ad02c1d67aa2f311f0664f84d1'),
|
|
60
|
+
AztecAddress.fromString('0x26a3348377c43e1abd7c6bb319dc4edc590c91464abd14247682e8dcc169bebb'),
|
|
61
61
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
62
62
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
63
63
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
@@ -65,7 +65,7 @@ AztecAddress.fromString('0x00000000000000000000000000000000000000000000000000000
|
|
|
65
65
|
AztecAddress.fromString('0x0000000000000000000000000000000000000000000000000000000000000000')
|
|
66
66
|
]);
|
|
67
67
|
|
|
68
|
-
export const protocolContractsHash = Fr.fromString('
|
|
68
|
+
export const protocolContractsHash = Fr.fromString('0x01a99b084fd4819985721a0da3da01b0bbaf53f5682fd42fce2afe7a440aec9b');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|