@aztec-labs/standard-contracts 6.0.0-rc.3 → 6.0.0
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 +152 -136
- package/artifacts/HandshakeRegistry.json +510 -417
- package/artifacts/MultiCallEntrypoint.json +110 -94
- package/artifacts/PublicChecks.json +134 -92
- package/dest/handshake-registry/constants.d.ts +1 -1
- package/dest/handshake-registry/constants.d.ts.map +1 -1
- package/dest/handshake-registry/constants.js +1 -0
- package/dest/make_standard_contract.d.ts +1 -1
- package/dest/make_standard_contract.d.ts.map +1 -1
- package/dest/make_standard_contract.js +1 -0
- package/dest/standard_contract_data.js +12 -12
- package/package.json +5 -4
- package/src/handshake-registry/constants.ts +1 -0
- package/src/make_standard_contract.ts +1 -0
- package/src/standard_contract_data.ts +12 -12
|
@@ -8,4 +8,4 @@ export declare const STANDARD_HANDSHAKE_REGISTRY_SALT: Fr;
|
|
|
8
8
|
* `resolveCustomRequest` hook. Mirrors `INTERACTIVE_HANDSHAKE_REQUEST_KIND` in the registry contract.
|
|
9
9
|
*/
|
|
10
10
|
export declare const INTERACTIVE_HANDSHAKE_REQUEST_KIND: Fr;
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGFuZHNoYWtlLXJlZ2lzdHJ5L2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQSxPQUFPLEtBQUssRUFBRSxFQUFFLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUM5RCxPQUFPLEtBQUssRUFBRSxZQUFZLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUtyRSxlQUFPLE1BQU0sbUNBQW1DLEVBQUUsWUFBd0QsQ0FBQztBQUMzRyxlQUFPLE1BQU0sb0NBQW9DLElBQTRDLENBQUM7QUFDOUYsZUFBTyxNQUFNLGdDQUFnQyxJQUF5QyxDQUFDO0FBRXZGOzs7R0FHRztBQUlILGVBQU8sTUFBTSxrQ0FBa0MsRUFBRSxFQUUvQyxDQUFDIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/handshake-registry/constants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/handshake-registry/constants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAKrE,eAAO,MAAM,mCAAmC,EAAE,YAAwD,CAAC;AAC3G,eAAO,MAAM,oCAAoC,IAA4C,CAAC;AAC9F,eAAO,MAAM,gCAAgC,IAAyC,CAAC;AAEvF;;;GAGG;AAIH,eAAO,MAAM,kCAAkC,EAAE,EAE/C,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// `@aztec-labs/standard-contracts/handshake-registry/constants` avoids dragging in the
|
|
3
3
|
// `HandshakeRegistry.json` static import.
|
|
4
4
|
import { sha256ToField } from '@aztec-labs/foundation/crypto/sha256';
|
|
5
|
+
import { Buffer } from 'buffer';
|
|
5
6
|
import { StandardContractAddress, StandardContractClassId, StandardContractSalt } from '../standard_contract_data.js';
|
|
6
7
|
export const STANDARD_HANDSHAKE_REGISTRY_ADDRESS = StandardContractAddress.HandshakeRegistry;
|
|
7
8
|
export const STANDARD_HANDSHAKE_REGISTRY_CLASS_ID = StandardContractClassId.HandshakeRegistry;
|
|
@@ -6,4 +6,4 @@ import { type StandardContractName } from './standard_contract_data.js';
|
|
|
6
6
|
* Internal to the standard-contracts package — not part of the public API.
|
|
7
7
|
*/
|
|
8
8
|
export declare function makeStandardContract(name: StandardContractName, artifact: ContractArtifact): StandardContract;
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFrZV9zdGFuZGFyZF9jb250cmFjdC5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL21ha2Vfc3RhbmRhcmRfY29udHJhY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUsvRCxPQUFPLEtBQUssRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQy9ELE9BQU8sRUFLTCxLQUFLLG9CQUFvQixFQUcxQixNQUFNLDZCQUE2QixDQUFDO0FBRXJDOzs7R0FHRztBQUNILHdCQUFnQixvQkFBb0IsQ0FBQyxJQUFJLEVBQUUsb0JBQW9CLEVBQUUsUUFBUSxFQUFFLGdCQUFnQixHQUFHLGdCQUFnQixDQThCN0cifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make_standard_contract.d.ts","sourceRoot":"","sources":["../src/make_standard_contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"make_standard_contract.d.ts","sourceRoot":"","sources":["../src/make_standard_contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAKL,KAAK,oBAAoB,EAG1B,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB,CA8B7G"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fr } from '@aztec-labs/foundation/curves/bn254';
|
|
2
2
|
import { AztecAddress } from '@aztec-labs/stdlib/aztec-address';
|
|
3
3
|
import { PublicKeys } from '@aztec-labs/stdlib/keys';
|
|
4
|
+
import { Buffer } from 'buffer';
|
|
4
5
|
import { StandardContractAddress, StandardContractClassId, StandardContractClassIdPreimage, StandardContractInitializationHash, StandardContractPrivateFunctions, StandardContractSalt } from './standard_contract_data.js';
|
|
5
6
|
/**
|
|
6
7
|
* Reconstructs a StandardContract from precomputed data without performing any hash computations.
|
|
@@ -15,35 +15,35 @@ export const StandardContractSalt = {
|
|
|
15
15
|
HandshakeRegistry: new Fr(1)
|
|
16
16
|
};
|
|
17
17
|
export const StandardContractAddress = {
|
|
18
|
-
AuthRegistry: AztecAddress.fromStringUnsafe('
|
|
19
|
-
MultiCallEntrypoint: AztecAddress.fromStringUnsafe('
|
|
20
|
-
PublicChecks: AztecAddress.fromStringUnsafe('
|
|
21
|
-
HandshakeRegistry: AztecAddress.fromStringUnsafe('
|
|
18
|
+
AuthRegistry: AztecAddress.fromStringUnsafe('0x120bf1fe8c548704113679844f28f54b787aafad438bd90f20654f8ffef65e83'),
|
|
19
|
+
MultiCallEntrypoint: AztecAddress.fromStringUnsafe('0x2d464e835406c6057bf147843d1541e0b338a13f8fedd5cba697629172dd8105'),
|
|
20
|
+
PublicChecks: AztecAddress.fromStringUnsafe('0x2097f8b30eed69e12abbb5107bcae325aa8b02ebf30a111d38f1ba89a15aa6a4'),
|
|
21
|
+
HandshakeRegistry: AztecAddress.fromStringUnsafe('0x20dfae8b5be70f13680b37dd346752517db43ebfc02bd5686fc11b3c5cba32b9')
|
|
22
22
|
};
|
|
23
23
|
export const StandardContractClassId = {
|
|
24
|
-
AuthRegistry: Fr.fromString('
|
|
25
|
-
MultiCallEntrypoint: Fr.fromString('
|
|
26
|
-
PublicChecks: Fr.fromString('
|
|
27
|
-
HandshakeRegistry: Fr.fromString('
|
|
24
|
+
AuthRegistry: Fr.fromString('0x280746c6b1377b8ca1414d898b0c1e63b02fc20f42b89c2e84fed4a615084a71'),
|
|
25
|
+
MultiCallEntrypoint: Fr.fromString('0x1f658f0f5874d1f073e85182e9fe96d3f6fcf5501ee05988eccb63b655213906'),
|
|
26
|
+
PublicChecks: Fr.fromString('0x0bcfd8eb97de32bf835c2202ce8dbbb61db9820c267f4d43200341840590e8b9'),
|
|
27
|
+
HandshakeRegistry: Fr.fromString('0x2169bdbbeb4bebbf99687e0683f6661028a16a1308bdf58ce0df0cb5c4bed15e')
|
|
28
28
|
};
|
|
29
29
|
export const StandardContractClassIdPreimage = {
|
|
30
30
|
AuthRegistry: {
|
|
31
|
-
artifactHash: Fr.fromString('
|
|
31
|
+
artifactHash: Fr.fromString('0x1d5f899f6dad791d8f2591bed29f998f8ea07a6ec06f1781e4a8685f611c64ab'),
|
|
32
32
|
privateFunctionsRoot: Fr.fromString('0x28b6c90e1c15060b3110a384b1a44abbae0b1a6e3a924e0e902a614c2e3e6340'),
|
|
33
33
|
publicBytecodeCommitment: Fr.fromString('0x27a30af260dec2e28b9bd38cd5d5096b6acdd6724cc481df0a62fa2a3b18b543')
|
|
34
34
|
},
|
|
35
35
|
MultiCallEntrypoint: {
|
|
36
|
-
artifactHash: Fr.fromString('
|
|
36
|
+
artifactHash: Fr.fromString('0x2249a3ee1d367666b1904c9bc5acdb30f8d516961f6550a173e05cb1c1952404'),
|
|
37
37
|
privateFunctionsRoot: Fr.fromString('0x241bdfca6b4a61f1bb835faea6be98736c3d95a4bc97e624324737baf3f1f150'),
|
|
38
38
|
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e')
|
|
39
39
|
},
|
|
40
40
|
PublicChecks: {
|
|
41
|
-
artifactHash: Fr.fromString('
|
|
41
|
+
artifactHash: Fr.fromString('0x0a1a6cb156224c1ff564f9f9c4a3d39ae2849b7243b794725d7957a24de5ee22'),
|
|
42
42
|
privateFunctionsRoot: Fr.fromString('0x202860adb1b8975971eeaf571aaaa88a27f4035290d58532ae7d60b0dfaad54c'),
|
|
43
43
|
publicBytecodeCommitment: Fr.fromString('0x24b3208d20769dfffffa03aa7c5a8d0def7cb568c70a36c6cdc41a09a5766dec')
|
|
44
44
|
},
|
|
45
45
|
HandshakeRegistry: {
|
|
46
|
-
artifactHash: Fr.fromString('
|
|
46
|
+
artifactHash: Fr.fromString('0x1024edfc0eecacb9ce01f429067cf65448c7aa8524e127b1f82f30226ec6796e'),
|
|
47
47
|
privateFunctionsRoot: Fr.fromString('0x0b411cc64d47cc476c8526b3e31a10a6e83cb506d4a5150aeb538cb2d9cb9aa9'),
|
|
48
48
|
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e')
|
|
49
49
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@aztec-labs/standard-contracts",
|
|
3
3
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/standard-contracts",
|
|
4
4
|
"description": "Standard non-protocol contracts for the Aztec Network",
|
|
5
|
-
"version": "6.0.0
|
|
5
|
+
"version": "6.0.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./dest/index.js",
|
|
@@ -75,8 +75,9 @@
|
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@aztec-labs/foundation": "6.0.0
|
|
79
|
-
"@aztec-labs/stdlib": "6.0.0
|
|
78
|
+
"@aztec-labs/foundation": "6.0.0",
|
|
79
|
+
"@aztec-labs/stdlib": "6.0.0",
|
|
80
|
+
"buffer": "^6.0.3",
|
|
80
81
|
"tslib": "^2.4.0"
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
@@ -99,6 +100,6 @@
|
|
|
99
100
|
"!src/scripts/*"
|
|
100
101
|
],
|
|
101
102
|
"engines": {
|
|
102
|
-
"node": ">=20.
|
|
103
|
+
"node": ">=20.16"
|
|
103
104
|
}
|
|
104
105
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { sha256ToField } from '@aztec-labs/foundation/crypto/sha256';
|
|
5
5
|
import type { Fr } from '@aztec-labs/foundation/curves/bn254';
|
|
6
6
|
import type { AztecAddress } from '@aztec-labs/stdlib/aztec-address';
|
|
7
|
+
import { Buffer } from 'buffer';
|
|
7
8
|
|
|
8
9
|
import { StandardContractAddress, StandardContractClassId, StandardContractSalt } from '../standard_contract_data.js';
|
|
9
10
|
|
|
@@ -2,6 +2,7 @@ import { Fr } from '@aztec-labs/foundation/curves/bn254';
|
|
|
2
2
|
import type { ContractArtifact } from '@aztec-labs/stdlib/abi';
|
|
3
3
|
import { AztecAddress } from '@aztec-labs/stdlib/aztec-address';
|
|
4
4
|
import { PublicKeys } from '@aztec-labs/stdlib/keys';
|
|
5
|
+
import { Buffer } from 'buffer';
|
|
5
6
|
|
|
6
7
|
import type { StandardContract } from './standard_contract.js';
|
|
7
8
|
import {
|
|
@@ -20,21 +20,21 @@ export const StandardContractSalt: Record<StandardContractName, Fr> = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export const StandardContractAddress: Record<StandardContractName, AztecAddress> = {
|
|
23
|
-
AuthRegistry: AztecAddress.fromStringUnsafe('
|
|
23
|
+
AuthRegistry: AztecAddress.fromStringUnsafe('0x120bf1fe8c548704113679844f28f54b787aafad438bd90f20654f8ffef65e83'),
|
|
24
24
|
MultiCallEntrypoint: AztecAddress.fromStringUnsafe(
|
|
25
|
-
'
|
|
25
|
+
'0x2d464e835406c6057bf147843d1541e0b338a13f8fedd5cba697629172dd8105',
|
|
26
26
|
),
|
|
27
|
-
PublicChecks: AztecAddress.fromStringUnsafe('
|
|
27
|
+
PublicChecks: AztecAddress.fromStringUnsafe('0x2097f8b30eed69e12abbb5107bcae325aa8b02ebf30a111d38f1ba89a15aa6a4'),
|
|
28
28
|
HandshakeRegistry: AztecAddress.fromStringUnsafe(
|
|
29
|
-
'
|
|
29
|
+
'0x20dfae8b5be70f13680b37dd346752517db43ebfc02bd5686fc11b3c5cba32b9',
|
|
30
30
|
),
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export const StandardContractClassId: Record<StandardContractName, Fr> = {
|
|
34
|
-
AuthRegistry: Fr.fromString('
|
|
35
|
-
MultiCallEntrypoint: Fr.fromString('
|
|
36
|
-
PublicChecks: Fr.fromString('
|
|
37
|
-
HandshakeRegistry: Fr.fromString('
|
|
34
|
+
AuthRegistry: Fr.fromString('0x280746c6b1377b8ca1414d898b0c1e63b02fc20f42b89c2e84fed4a615084a71'),
|
|
35
|
+
MultiCallEntrypoint: Fr.fromString('0x1f658f0f5874d1f073e85182e9fe96d3f6fcf5501ee05988eccb63b655213906'),
|
|
36
|
+
PublicChecks: Fr.fromString('0x0bcfd8eb97de32bf835c2202ce8dbbb61db9820c267f4d43200341840590e8b9'),
|
|
37
|
+
HandshakeRegistry: Fr.fromString('0x2169bdbbeb4bebbf99687e0683f6661028a16a1308bdf58ce0df0cb5c4bed15e'),
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export const StandardContractClassIdPreimage: Record<
|
|
@@ -42,22 +42,22 @@ export const StandardContractClassIdPreimage: Record<
|
|
|
42
42
|
{ artifactHash: Fr; privateFunctionsRoot: Fr; publicBytecodeCommitment: Fr }
|
|
43
43
|
> = {
|
|
44
44
|
AuthRegistry: {
|
|
45
|
-
artifactHash: Fr.fromString('
|
|
45
|
+
artifactHash: Fr.fromString('0x1d5f899f6dad791d8f2591bed29f998f8ea07a6ec06f1781e4a8685f611c64ab'),
|
|
46
46
|
privateFunctionsRoot: Fr.fromString('0x28b6c90e1c15060b3110a384b1a44abbae0b1a6e3a924e0e902a614c2e3e6340'),
|
|
47
47
|
publicBytecodeCommitment: Fr.fromString('0x27a30af260dec2e28b9bd38cd5d5096b6acdd6724cc481df0a62fa2a3b18b543'),
|
|
48
48
|
},
|
|
49
49
|
MultiCallEntrypoint: {
|
|
50
|
-
artifactHash: Fr.fromString('
|
|
50
|
+
artifactHash: Fr.fromString('0x2249a3ee1d367666b1904c9bc5acdb30f8d516961f6550a173e05cb1c1952404'),
|
|
51
51
|
privateFunctionsRoot: Fr.fromString('0x241bdfca6b4a61f1bb835faea6be98736c3d95a4bc97e624324737baf3f1f150'),
|
|
52
52
|
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
|
|
53
53
|
},
|
|
54
54
|
PublicChecks: {
|
|
55
|
-
artifactHash: Fr.fromString('
|
|
55
|
+
artifactHash: Fr.fromString('0x0a1a6cb156224c1ff564f9f9c4a3d39ae2849b7243b794725d7957a24de5ee22'),
|
|
56
56
|
privateFunctionsRoot: Fr.fromString('0x202860adb1b8975971eeaf571aaaa88a27f4035290d58532ae7d60b0dfaad54c'),
|
|
57
57
|
publicBytecodeCommitment: Fr.fromString('0x24b3208d20769dfffffa03aa7c5a8d0def7cb568c70a36c6cdc41a09a5766dec'),
|
|
58
58
|
},
|
|
59
59
|
HandshakeRegistry: {
|
|
60
|
-
artifactHash: Fr.fromString('
|
|
60
|
+
artifactHash: Fr.fromString('0x1024edfc0eecacb9ce01f429067cf65448c7aa8524e127b1f82f30226ec6796e'),
|
|
61
61
|
privateFunctionsRoot: Fr.fromString('0x0b411cc64d47cc476c8526b3e31a10a6e83cb506d4a5150aeb538cb2d9cb9aa9'),
|
|
62
62
|
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
|
|
63
63
|
},
|