@aztec/archiver 0.79.0 → 0.80.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.
|
@@ -67,7 +67,8 @@ import { Vector } from '@aztec/stdlib/types';
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
function serializeContractClassPublic(contractClass) {
|
|
70
|
-
return serializeToBuffer(contractClass.l2BlockNumber, numToUInt8(contractClass.version), contractClass.artifactHash, contractClass.publicFunctions.length,
|
|
70
|
+
return serializeToBuffer(contractClass.l2BlockNumber, numToUInt8(contractClass.version), contractClass.artifactHash, contractClass.publicFunctions.length, // TODO(#8985): The below should only contain the public dispatch function, and no others
|
|
71
|
+
contractClass.publicFunctions?.map((f)=>serializeToBuffer(f.selector, f.bytecode.length, f.bytecode)) ?? [], contractClass.privateFunctions.length, contractClass.privateFunctions.map(serializePrivateFunction), contractClass.unconstrainedFunctions.length, contractClass.unconstrainedFunctions.map(serializeUnconstrainedFunction), contractClass.packedBytecode.length, contractClass.packedBytecode, contractClass.privateFunctionsRoot);
|
|
71
72
|
}
|
|
72
73
|
function serializePrivateFunction(fn) {
|
|
73
74
|
return serializeToBuffer(fn.selector, fn.vkHash, fn.bytecode.length, fn.bytecode, fn.functionMetadataHash, fn.artifactMetadataHash, fn.unconstrainedFunctionsArtifactTreeRoot, new Vector(fn.privateFunctionTreeSiblingPath), fn.privateFunctionTreeLeafIndex, new Vector(fn.artifactTreeSiblingPath), fn.artifactTreeLeafIndex);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/archiver",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -64,18 +64,18 @@
|
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@aztec/blob-lib": "0.
|
|
68
|
-
"@aztec/blob-sink": "0.
|
|
69
|
-
"@aztec/constants": "0.
|
|
70
|
-
"@aztec/ethereum": "0.
|
|
71
|
-
"@aztec/foundation": "0.
|
|
72
|
-
"@aztec/kv-store": "0.
|
|
73
|
-
"@aztec/l1-artifacts": "0.
|
|
74
|
-
"@aztec/noir-contracts.js": "0.
|
|
75
|
-
"@aztec/noir-protocol-circuits-types": "0.
|
|
76
|
-
"@aztec/protocol-contracts": "0.
|
|
77
|
-
"@aztec/stdlib": "0.
|
|
78
|
-
"@aztec/telemetry-client": "0.
|
|
67
|
+
"@aztec/blob-lib": "0.80.0",
|
|
68
|
+
"@aztec/blob-sink": "0.80.0",
|
|
69
|
+
"@aztec/constants": "0.80.0",
|
|
70
|
+
"@aztec/ethereum": "0.80.0",
|
|
71
|
+
"@aztec/foundation": "0.80.0",
|
|
72
|
+
"@aztec/kv-store": "0.80.0",
|
|
73
|
+
"@aztec/l1-artifacts": "0.80.0",
|
|
74
|
+
"@aztec/noir-contracts.js": "0.80.0",
|
|
75
|
+
"@aztec/noir-protocol-circuits-types": "0.80.0",
|
|
76
|
+
"@aztec/protocol-contracts": "0.80.0",
|
|
77
|
+
"@aztec/stdlib": "0.80.0",
|
|
78
|
+
"@aztec/telemetry-client": "0.80.0",
|
|
79
79
|
"debug": "^4.3.4",
|
|
80
80
|
"lodash.groupby": "^4.6.0",
|
|
81
81
|
"lodash.omit": "^4.5.0",
|
|
@@ -97,6 +97,7 @@ function serializeContractClassPublic(contractClass: Omit<ContractClassPublicWit
|
|
|
97
97
|
numToUInt8(contractClass.version),
|
|
98
98
|
contractClass.artifactHash,
|
|
99
99
|
contractClass.publicFunctions.length,
|
|
100
|
+
// TODO(#8985): The below should only contain the public dispatch function, and no others
|
|
100
101
|
contractClass.publicFunctions?.map(f => serializeToBuffer(f.selector, f.bytecode.length, f.bytecode)) ?? [],
|
|
101
102
|
contractClass.privateFunctions.length,
|
|
102
103
|
contractClass.privateFunctions.map(serializePrivateFunction),
|