@aztec/standard-contracts 0.0.1-commit.8655d4a → 0.0.1-commit.a4600f49
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 +1829 -1255
- package/artifacts/HandshakeRegistry.d.json.ts +5 -0
- package/artifacts/HandshakeRegistry.json +13156 -0
- package/artifacts/MultiCallEntrypoint.json +1509 -1055
- package/artifacts/PublicChecks.json +1357 -923
- package/dest/auth-registry/constants.d.ts +3 -2
- package/dest/auth-registry/constants.d.ts.map +1 -1
- package/dest/contract_data.d.ts +1 -1
- package/dest/contract_data.d.ts.map +1 -1
- package/dest/contract_data.js +9 -5
- package/dest/drift.js +1 -1
- package/dest/handshake-registry/constants.d.ts +5 -0
- package/dest/handshake-registry/constants.d.ts.map +1 -0
- package/dest/handshake-registry/constants.js +7 -0
- package/dest/handshake-registry/index.d.ts +6 -0
- package/dest/handshake-registry/index.d.ts.map +1 -0
- package/dest/handshake-registry/index.js +14 -0
- package/dest/handshake-registry/lazy.d.ts +7 -0
- package/dest/handshake-registry/lazy.d.ts.map +1 -0
- package/dest/handshake-registry/lazy.js +24 -0
- package/dest/index.d.ts +2 -1
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +1 -0
- package/dest/multi-call-entrypoint/constants.d.ts +3 -2
- package/dest/multi-call-entrypoint/constants.d.ts.map +1 -1
- package/dest/public-checks/constants.d.ts +3 -2
- package/dest/public-checks/constants.d.ts.map +1 -1
- package/dest/standard_contract_data.d.ts +2 -2
- package/dest/standard_contract_data.d.ts.map +1 -1
- package/dest/standard_contract_data.js +42 -18
- package/package.json +5 -4
- package/src/auth-registry/constants.ts +3 -1
- package/src/contract_data.ts +9 -7
- package/src/drift.ts +1 -1
- package/src/handshake-registry/constants.ts +10 -0
- package/src/handshake-registry/index.ts +24 -0
- package/src/handshake-registry/lazy.ts +35 -0
- package/src/index.ts +1 -0
- package/src/multi-call-entrypoint/constants.ts +3 -1
- package/src/public-checks/constants.ts +3 -1
- package/src/standard_contract_data.ts +53 -15
|
@@ -3,7 +3,12 @@ import { Fr } from '@aztec/foundation/curves/bn254';
|
|
|
3
3
|
import { FunctionSelector } from '@aztec/stdlib/abi';
|
|
4
4
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
5
5
|
|
|
6
|
-
export const standardContractNames = [
|
|
6
|
+
export const standardContractNames = [
|
|
7
|
+
'AuthRegistry',
|
|
8
|
+
'MultiCallEntrypoint',
|
|
9
|
+
'PublicChecks',
|
|
10
|
+
'HandshakeRegistry',
|
|
11
|
+
] as const;
|
|
7
12
|
|
|
8
13
|
export type StandardContractName = (typeof standardContractNames)[number];
|
|
9
14
|
|
|
@@ -11,18 +16,25 @@ export const StandardContractSalt: Record<StandardContractName, Fr> = {
|
|
|
11
16
|
AuthRegistry: new Fr(1),
|
|
12
17
|
MultiCallEntrypoint: new Fr(1),
|
|
13
18
|
PublicChecks: new Fr(1),
|
|
19
|
+
HandshakeRegistry: new Fr(1),
|
|
14
20
|
};
|
|
15
21
|
|
|
16
22
|
export const StandardContractAddress: Record<StandardContractName, AztecAddress> = {
|
|
17
|
-
AuthRegistry: AztecAddress.
|
|
18
|
-
MultiCallEntrypoint: AztecAddress.
|
|
19
|
-
|
|
23
|
+
AuthRegistry: AztecAddress.fromStringUnsafe('0x04fe1d86b5ae0f926883c34905a3c25cb30924138823a9883e2813d4f8b86ad9'),
|
|
24
|
+
MultiCallEntrypoint: AztecAddress.fromStringUnsafe(
|
|
25
|
+
'0x21d17a596e8ae64c399cc7bffaf3f0346ae067a34948510f041dff8babed9e9a',
|
|
26
|
+
),
|
|
27
|
+
PublicChecks: AztecAddress.fromStringUnsafe('0x2f96c5a68fc1d04b13b76167a254f0a1a906c2dc0b571fcbca107254f064b045'),
|
|
28
|
+
HandshakeRegistry: AztecAddress.fromStringUnsafe(
|
|
29
|
+
'0x090d0f9525c99184e3741290b2695c5e3af23f51e96061b74b953111b0d4f59d',
|
|
30
|
+
),
|
|
20
31
|
};
|
|
21
32
|
|
|
22
33
|
export const StandardContractClassId: Record<StandardContractName, Fr> = {
|
|
23
|
-
AuthRegistry: Fr.fromString('
|
|
24
|
-
MultiCallEntrypoint: Fr.fromString('
|
|
25
|
-
PublicChecks: Fr.fromString('
|
|
34
|
+
AuthRegistry: Fr.fromString('0x1d203dfe82143b105c236b42c42ede91728d4590e7c541f7d2423edeb68c31ae'),
|
|
35
|
+
MultiCallEntrypoint: Fr.fromString('0x127ebfb260048794535198012df8e2f7599a46651efbf738c406f4baa3b960ca'),
|
|
36
|
+
PublicChecks: Fr.fromString('0x087cada0973aa4e162f0830a61aed5a3f03d1e9578ce953aba213f2508d579a7'),
|
|
37
|
+
HandshakeRegistry: Fr.fromString('0x041a88db4c2b65a224ad9c9d96c8365d972a98f47e2549a1841ac9897b8b7dc0'),
|
|
26
38
|
};
|
|
27
39
|
|
|
28
40
|
export const StandardContractClassIdPreimage: Record<
|
|
@@ -30,26 +42,32 @@ export const StandardContractClassIdPreimage: Record<
|
|
|
30
42
|
{ artifactHash: Fr; privateFunctionsRoot: Fr; publicBytecodeCommitment: Fr }
|
|
31
43
|
> = {
|
|
32
44
|
AuthRegistry: {
|
|
33
|
-
artifactHash: Fr.fromString('
|
|
34
|
-
privateFunctionsRoot: Fr.fromString('
|
|
35
|
-
publicBytecodeCommitment: Fr.fromString('
|
|
45
|
+
artifactHash: Fr.fromString('0x2ebd3d6e0f9d8adc9dc0e7380d8cad794ee605f53223abbe436aaf58e5920a60'),
|
|
46
|
+
privateFunctionsRoot: Fr.fromString('0x211b33685bcb41a5d3a2a84d8ec021c7280392cb4aae5a778eafe5282dbba740'),
|
|
47
|
+
publicBytecodeCommitment: Fr.fromString('0x0c7984b020afc901da3b5898b8f94d1d9a09ea2b37d6e0043409abc0b0332906'),
|
|
36
48
|
},
|
|
37
49
|
MultiCallEntrypoint: {
|
|
38
|
-
artifactHash: Fr.fromString('
|
|
39
|
-
privateFunctionsRoot: Fr.fromString('
|
|
50
|
+
artifactHash: Fr.fromString('0x3024d0152d222f9be0e5248e3cd2596217946bf32cb798f10d3e3f2480ac261f'),
|
|
51
|
+
privateFunctionsRoot: Fr.fromString('0x2cd2008a79f59c3f2caa996962b0b35889f5ee8fcf175282406a2a521550cc70'),
|
|
40
52
|
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
|
|
41
53
|
},
|
|
42
54
|
PublicChecks: {
|
|
43
|
-
artifactHash: Fr.fromString('
|
|
55
|
+
artifactHash: Fr.fromString('0x0c2fe9905f4bb8c1e30daaa23836b88d2abcca5e9332e8d916a36b04548752b0'),
|
|
44
56
|
privateFunctionsRoot: Fr.fromString('0x202860adb1b8975971eeaf571aaaa88a27f4035290d58532ae7d60b0dfaad54c'),
|
|
45
57
|
publicBytecodeCommitment: Fr.fromString('0x013c4f854a5c87c9daf86c5f9bc07a42c2a061f1d924a5b3564ec7edc8e18cb7'),
|
|
46
58
|
},
|
|
59
|
+
HandshakeRegistry: {
|
|
60
|
+
artifactHash: Fr.fromString('0x062da141c4114bcc93ac6cbe2fe30f0e8cbf820780b2225e958fe806d0e347a9'),
|
|
61
|
+
privateFunctionsRoot: Fr.fromString('0x16c4666c93705b44b4a164ec6bcbfd7ec0ff593922f4a0e3bc158b9e3a1f95c1'),
|
|
62
|
+
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
|
|
63
|
+
},
|
|
47
64
|
};
|
|
48
65
|
|
|
49
66
|
export const StandardContractInitializationHash: Record<StandardContractName, Fr> = {
|
|
50
67
|
AuthRegistry: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
51
68
|
MultiCallEntrypoint: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
52
69
|
PublicChecks: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
70
|
+
HandshakeRegistry: Fr.fromString('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
53
71
|
};
|
|
54
72
|
|
|
55
73
|
export const StandardContractPrivateFunctions: Record<
|
|
@@ -61,7 +79,7 @@ export const StandardContractPrivateFunctions: Record<
|
|
|
61
79
|
selector: FunctionSelector.fromField(
|
|
62
80
|
Fr.fromString('0x0000000000000000000000000000000000000000000000000000000079a3d418'),
|
|
63
81
|
),
|
|
64
|
-
vkHash: Fr.fromString('
|
|
82
|
+
vkHash: Fr.fromString('0x2979f430e7a6d4c2222a35a5e00f9c8c0e41c5ad9afa95d8d718f5c1f57ac4f2'),
|
|
65
83
|
},
|
|
66
84
|
],
|
|
67
85
|
MultiCallEntrypoint: [
|
|
@@ -69,8 +87,28 @@ export const StandardContractPrivateFunctions: Record<
|
|
|
69
87
|
selector: FunctionSelector.fromField(
|
|
70
88
|
Fr.fromString('0x00000000000000000000000000000000000000000000000000000000f04908a9'),
|
|
71
89
|
),
|
|
72
|
-
vkHash: Fr.fromString('
|
|
90
|
+
vkHash: Fr.fromString('0x1bc6ab9244a92fe2143e42a1856ea0b29415e0530eda89dd634a0b8630780593'),
|
|
73
91
|
},
|
|
74
92
|
],
|
|
75
93
|
PublicChecks: [],
|
|
94
|
+
HandshakeRegistry: [
|
|
95
|
+
{
|
|
96
|
+
selector: FunctionSelector.fromField(
|
|
97
|
+
Fr.fromString('0x0000000000000000000000000000000000000000000000000000000019f8b409'),
|
|
98
|
+
),
|
|
99
|
+
vkHash: Fr.fromString('0x0f230529c03e4877eeabfc0c659a1133e53f2d954b1d0f6092558cb02952da3e'),
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
selector: FunctionSelector.fromField(
|
|
103
|
+
Fr.fromString('0x00000000000000000000000000000000000000000000000000000000db548fcf'),
|
|
104
|
+
),
|
|
105
|
+
vkHash: Fr.fromString('0x2aa20cf767e6af6f99f4ceedcbdda34c2cd8a8e0763fb273810cf5abd7873b70'),
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
selector: FunctionSelector.fromField(
|
|
109
|
+
Fr.fromString('0x00000000000000000000000000000000000000000000000000000000f1ff839b'),
|
|
110
|
+
),
|
|
111
|
+
vkHash: Fr.fromString('0x05eef6388f1678ef7a24ed7829a15abf8fb76922ed73477114ff4828e2772535'),
|
|
112
|
+
},
|
|
113
|
+
],
|
|
76
114
|
};
|