@aztec/protocol-contracts 0.0.1-commit.a5db02d → 0.0.1-commit.aa0c64f
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/ContractClassRegistry.json +115 -95
- package/artifacts/ContractInstanceRegistry.json +123 -111
- package/artifacts/FeeJuice.json +302 -183
- package/dest/protocol_contract_data.js +21 -21
- package/package.json +4 -4
- package/src/protocol_contract_data.ts +20 -20
|
@@ -19,29 +19,29 @@ export const ProtocolContractAddress = {
|
|
|
19
19
|
FeeJuice: AztecAddress.fromBigIntUnsafe(3n)
|
|
20
20
|
};
|
|
21
21
|
export const ProtocolContractDerivedAddress = {
|
|
22
|
-
ContractInstanceRegistry: AztecAddress.fromStringUnsafe('
|
|
23
|
-
ContractClassRegistry: AztecAddress.fromStringUnsafe('
|
|
24
|
-
FeeJuice: AztecAddress.fromStringUnsafe('
|
|
22
|
+
ContractInstanceRegistry: AztecAddress.fromStringUnsafe('0x2ce1dfe11c45332d557e8302d624b011eb471f0dfa40d2fae64d9fb21590321b'),
|
|
23
|
+
ContractClassRegistry: AztecAddress.fromStringUnsafe('0x1bbb52d2b4ac8c634f4b5026f2228580627c918895c369495f71caae13d996fe'),
|
|
24
|
+
FeeJuice: AztecAddress.fromStringUnsafe('0x258a4892dd83d064f6f250601711a82a7b2aaa20f39dbab216237af3ae0c63f2')
|
|
25
25
|
};
|
|
26
26
|
export const ProtocolContractClassId = {
|
|
27
|
-
ContractInstanceRegistry: Fr.fromString('
|
|
28
|
-
ContractClassRegistry: Fr.fromString('
|
|
29
|
-
FeeJuice: Fr.fromString('
|
|
27
|
+
ContractInstanceRegistry: Fr.fromString('0x265816820ef83a476c1725199f5b25fefffcf30d564b31ae95fa8eeee579aa30'),
|
|
28
|
+
ContractClassRegistry: Fr.fromString('0x0026d0944a8b8204b840c37cf238b145bdd6b1af9daf59eeb5e689022a708e5e'),
|
|
29
|
+
FeeJuice: Fr.fromString('0x2a58e1588a3ee6ef0d4c951051959789ec8a3680c551f74148f4b4dab7a3df9d')
|
|
30
30
|
};
|
|
31
31
|
export const ProtocolContractClassIdPreimage = {
|
|
32
32
|
ContractInstanceRegistry: {
|
|
33
|
-
artifactHash: Fr.fromString('
|
|
34
|
-
privateFunctionsRoot: Fr.fromString('
|
|
35
|
-
publicBytecodeCommitment: Fr.fromString('
|
|
33
|
+
artifactHash: Fr.fromString('0x19835337f0aee2e9042f3a0ae0d334bdb39ecb22794b40d2670d26b2ca72b98f'),
|
|
34
|
+
privateFunctionsRoot: Fr.fromString('0x05bb912d9d2871492d76c610472544d8219df70aa874768f9667e99861d7971f'),
|
|
35
|
+
publicBytecodeCommitment: Fr.fromString('0x1a226919cd754b17c3c32ad430ecb2ce41117aa6bab5d52f070d3ab4c103c45f')
|
|
36
36
|
},
|
|
37
37
|
ContractClassRegistry: {
|
|
38
|
-
artifactHash: Fr.fromString('
|
|
39
|
-
privateFunctionsRoot: Fr.fromString('
|
|
38
|
+
artifactHash: Fr.fromString('0x0d0ef0a61d9c829c306eee702aa7914299d58e7d3fc9f11d5aebd38c838fa1d0'),
|
|
39
|
+
privateFunctionsRoot: Fr.fromString('0x119c77be6d76c221642b63a337d94bf7b6ed8f872927ef3645c7e6b5002baa34'),
|
|
40
40
|
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e')
|
|
41
41
|
},
|
|
42
42
|
FeeJuice: {
|
|
43
|
-
artifactHash: Fr.fromString('
|
|
44
|
-
privateFunctionsRoot: Fr.fromString('
|
|
43
|
+
artifactHash: Fr.fromString('0x2686d931d674aa3a340ad779b9464901ea46b645570f62ddf6beeafcab989e5b'),
|
|
44
|
+
privateFunctionsRoot: Fr.fromString('0x1c4bf54a4a33e3b9eae6f816dfc81e128d76d2646807a5443598c8adbd47f81f'),
|
|
45
45
|
publicBytecodeCommitment: Fr.fromString('0x1d4b1a8f71b8250d4fb65f8e16a4604e9165648279f47d80e024ce2684c4bdfb')
|
|
46
46
|
}
|
|
47
47
|
};
|
|
@@ -54,30 +54,30 @@ export const ProtocolContractPrivateFunctions = {
|
|
|
54
54
|
ContractInstanceRegistry: [
|
|
55
55
|
{
|
|
56
56
|
selector: FunctionSelector.fromField(Fr.fromString('0x0000000000000000000000000000000000000000000000000000000077cff62f')),
|
|
57
|
-
vkHash: Fr.fromString('
|
|
57
|
+
vkHash: Fr.fromString('0x19172c0acecd517dd8995c2e36178ca2aa16cbe001c3606d8cd848776ab80d23')
|
|
58
58
|
}
|
|
59
59
|
],
|
|
60
60
|
ContractClassRegistry: [
|
|
61
61
|
{
|
|
62
62
|
selector: FunctionSelector.fromField(Fr.fromString('0x000000000000000000000000000000000000000000000000000000006934ed0d')),
|
|
63
|
-
vkHash: Fr.fromString('
|
|
63
|
+
vkHash: Fr.fromString('0x1241fdbf61631c59b977bb6a520cafe3169604036705b8680dea59f05fb71251')
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
66
|
FeeJuice: [
|
|
67
67
|
{
|
|
68
68
|
selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000cbe67243')),
|
|
69
|
-
vkHash: Fr.fromString('
|
|
69
|
+
vkHash: Fr.fromString('0x0bdf2e5c4467f295f8defb436546a7f2e642e7fe75786d0d54aef497b76527a1')
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000e8d374b6')),
|
|
73
|
-
vkHash: Fr.fromString('
|
|
73
|
+
vkHash: Fr.fromString('0x2616a94d2d2981737c31ed7d74b9fd32ddc8376bf436dd60fb2507662b47c6dd')
|
|
74
74
|
}
|
|
75
75
|
]
|
|
76
76
|
};
|
|
77
77
|
export const ProtocolContractsList = new ProtocolContracts([
|
|
78
|
-
AztecAddress.fromStringUnsafe('
|
|
79
|
-
AztecAddress.fromStringUnsafe('
|
|
80
|
-
AztecAddress.fromStringUnsafe('
|
|
78
|
+
AztecAddress.fromStringUnsafe('0x1bbb52d2b4ac8c634f4b5026f2228580627c918895c369495f71caae13d996fe'),
|
|
79
|
+
AztecAddress.fromStringUnsafe('0x2ce1dfe11c45332d557e8302d624b011eb471f0dfa40d2fae64d9fb21590321b'),
|
|
80
|
+
AztecAddress.fromStringUnsafe('0x258a4892dd83d064f6f250601711a82a7b2aaa20f39dbab216237af3ae0c63f2'),
|
|
81
81
|
AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
82
82
|
AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
83
83
|
AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
@@ -87,5 +87,5 @@ export const ProtocolContractsList = new ProtocolContracts([
|
|
|
87
87
|
AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
88
88
|
AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000')
|
|
89
89
|
]);
|
|
90
|
-
export const protocolContractsHash = Fr.fromString('
|
|
90
|
+
export const protocolContractsHash = Fr.fromString('0x08d0026a4983c49638d0910859942c6648d5ea0a3a152c8a376e4983d0a003d9');
|
|
91
91
|
export const CONTRACT_INSTANCE_PUBLISHED_EVENT_TAG = Fr.fromHexString('0x1a7e1badb79abdd38c684b3c8306ffe7ecb33c69e3380d9855730aaaa83a21a8');
|
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": "0.0.1-commit.
|
|
5
|
+
"version": "0.0.1-commit.aa0c64f",
|
|
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": "0.0.1-commit.
|
|
77
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
78
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
76
|
+
"@aztec/constants": "0.0.1-commit.aa0c64f",
|
|
77
|
+
"@aztec/foundation": "0.0.1-commit.aa0c64f",
|
|
78
|
+
"@aztec/stdlib": "0.0.1-commit.aa0c64f",
|
|
79
79
|
"lodash.chunk": "^4.2.0",
|
|
80
80
|
"lodash.omit": "^4.5.0",
|
|
81
81
|
"tslib": "^2.4.0"
|
|
@@ -33,33 +33,33 @@ FeeJuice: AztecAddress.fromBigIntUnsafe(3n)
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
export const ProtocolContractDerivedAddress = {
|
|
36
|
-
ContractInstanceRegistry: AztecAddress.fromStringUnsafe('
|
|
37
|
-
ContractClassRegistry: AztecAddress.fromStringUnsafe('
|
|
38
|
-
FeeJuice: AztecAddress.fromStringUnsafe('
|
|
36
|
+
ContractInstanceRegistry: AztecAddress.fromStringUnsafe('0x2ce1dfe11c45332d557e8302d624b011eb471f0dfa40d2fae64d9fb21590321b'),
|
|
37
|
+
ContractClassRegistry: AztecAddress.fromStringUnsafe('0x1bbb52d2b4ac8c634f4b5026f2228580627c918895c369495f71caae13d996fe'),
|
|
38
|
+
FeeJuice: AztecAddress.fromStringUnsafe('0x258a4892dd83d064f6f250601711a82a7b2aaa20f39dbab216237af3ae0c63f2')
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
export const ProtocolContractClassId: Record<ProtocolContractName, Fr> = {
|
|
44
|
-
ContractInstanceRegistry: Fr.fromString('
|
|
45
|
-
ContractClassRegistry: Fr.fromString('
|
|
46
|
-
FeeJuice: Fr.fromString('
|
|
44
|
+
ContractInstanceRegistry: Fr.fromString('0x265816820ef83a476c1725199f5b25fefffcf30d564b31ae95fa8eeee579aa30'),
|
|
45
|
+
ContractClassRegistry: Fr.fromString('0x0026d0944a8b8204b840c37cf238b145bdd6b1af9daf59eeb5e689022a708e5e'),
|
|
46
|
+
FeeJuice: Fr.fromString('0x2a58e1588a3ee6ef0d4c951051959789ec8a3680c551f74148f4b4dab7a3df9d')
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
export const ProtocolContractClassIdPreimage: Record<ProtocolContractName, { artifactHash: Fr; privateFunctionsRoot: Fr; publicBytecodeCommitment: Fr }> = {
|
|
50
50
|
ContractInstanceRegistry: {
|
|
51
|
-
artifactHash: Fr.fromString('
|
|
52
|
-
privateFunctionsRoot: Fr.fromString('
|
|
53
|
-
publicBytecodeCommitment: Fr.fromString('
|
|
51
|
+
artifactHash: Fr.fromString('0x19835337f0aee2e9042f3a0ae0d334bdb39ecb22794b40d2670d26b2ca72b98f'),
|
|
52
|
+
privateFunctionsRoot: Fr.fromString('0x05bb912d9d2871492d76c610472544d8219df70aa874768f9667e99861d7971f'),
|
|
53
|
+
publicBytecodeCommitment: Fr.fromString('0x1a226919cd754b17c3c32ad430ecb2ce41117aa6bab5d52f070d3ab4c103c45f'),
|
|
54
54
|
},
|
|
55
55
|
ContractClassRegistry: {
|
|
56
|
-
artifactHash: Fr.fromString('
|
|
57
|
-
privateFunctionsRoot: Fr.fromString('
|
|
56
|
+
artifactHash: Fr.fromString('0x0d0ef0a61d9c829c306eee702aa7914299d58e7d3fc9f11d5aebd38c838fa1d0'),
|
|
57
|
+
privateFunctionsRoot: Fr.fromString('0x119c77be6d76c221642b63a337d94bf7b6ed8f872927ef3645c7e6b5002baa34'),
|
|
58
58
|
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
|
|
59
59
|
},
|
|
60
60
|
FeeJuice: {
|
|
61
|
-
artifactHash: Fr.fromString('
|
|
62
|
-
privateFunctionsRoot: Fr.fromString('
|
|
61
|
+
artifactHash: Fr.fromString('0x2686d931d674aa3a340ad779b9464901ea46b645570f62ddf6beeafcab989e5b'),
|
|
62
|
+
privateFunctionsRoot: Fr.fromString('0x1c4bf54a4a33e3b9eae6f816dfc81e128d76d2646807a5443598c8adbd47f81f'),
|
|
63
63
|
publicBytecodeCommitment: Fr.fromString('0x1d4b1a8f71b8250d4fb65f8e16a4604e9165648279f47d80e024ce2684c4bdfb'),
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -71,17 +71,17 @@ FeeJuice: Fr.fromString('0x00000000000000000000000000000000000000000000000000000
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
export const ProtocolContractPrivateFunctions: Record<ProtocolContractName, { selector: FunctionSelector; vkHash: Fr }[]> = {
|
|
74
|
-
ContractInstanceRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x0000000000000000000000000000000000000000000000000000000077cff62f')), vkHash: Fr.fromString('
|
|
75
|
-
ContractClassRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x000000000000000000000000000000000000000000000000000000006934ed0d')), vkHash: Fr.fromString('
|
|
76
|
-
FeeJuice: [{ selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000cbe67243')), vkHash: Fr.fromString('
|
|
74
|
+
ContractInstanceRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x0000000000000000000000000000000000000000000000000000000077cff62f')), vkHash: Fr.fromString('0x19172c0acecd517dd8995c2e36178ca2aa16cbe001c3606d8cd848776ab80d23') }],
|
|
75
|
+
ContractClassRegistry: [{ selector: FunctionSelector.fromField(Fr.fromString('0x000000000000000000000000000000000000000000000000000000006934ed0d')), vkHash: Fr.fromString('0x1241fdbf61631c59b977bb6a520cafe3169604036705b8680dea59f05fb71251') }],
|
|
76
|
+
FeeJuice: [{ selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000cbe67243')), vkHash: Fr.fromString('0x0bdf2e5c4467f295f8defb436546a7f2e642e7fe75786d0d54aef497b76527a1') }, { selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000e8d374b6')), vkHash: Fr.fromString('0x2616a94d2d2981737c31ed7d74b9fd32ddc8376bf436dd60fb2507662b47c6dd') }]
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
export const ProtocolContractsList = new ProtocolContracts([
|
|
82
|
-
AztecAddress.fromStringUnsafe('
|
|
83
|
-
AztecAddress.fromStringUnsafe('
|
|
84
|
-
AztecAddress.fromStringUnsafe('
|
|
82
|
+
AztecAddress.fromStringUnsafe('0x1bbb52d2b4ac8c634f4b5026f2228580627c918895c369495f71caae13d996fe'),
|
|
83
|
+
AztecAddress.fromStringUnsafe('0x2ce1dfe11c45332d557e8302d624b011eb471f0dfa40d2fae64d9fb21590321b'),
|
|
84
|
+
AztecAddress.fromStringUnsafe('0x258a4892dd83d064f6f250601711a82a7b2aaa20f39dbab216237af3ae0c63f2'),
|
|
85
85
|
AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
86
86
|
AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
87
87
|
AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000'),
|
|
@@ -92,7 +92,7 @@ AztecAddress.fromStringUnsafe('0x00000000000000000000000000000000000000000000000
|
|
|
92
92
|
AztecAddress.fromStringUnsafe('0x0000000000000000000000000000000000000000000000000000000000000000')
|
|
93
93
|
]);
|
|
94
94
|
|
|
95
|
-
export const protocolContractsHash = Fr.fromString('
|
|
95
|
+
export const protocolContractsHash = Fr.fromString('0x08d0026a4983c49638d0910859942c6648d5ea0a3a152c8a376e4983d0a003d9');
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|