@aztec/noir-protocol-circuits-types 3.0.0-nightly.20251203 → 3.0.0-nightly.20251204
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/dest/conversion/common.js +2 -2
- package/package.json +11 -11
- package/src/conversion/common.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MAX_CONTRACT_CLASS_LOGS_PER_TX, MAX_ENQUEUED_CALLS_PER_TX, MAX_L2_TO_L1_MSGS_PER_TX, MAX_NOTE_HASHES_PER_TX, MAX_NULLIFIERS_PER_TX, MAX_PRIVATE_LOGS_PER_TX, MAX_PROTOCOL_CONTRACTS, PRIVATE_LOG_SIZE_IN_FIELDS } from '@aztec/constants';
|
|
2
|
-
import { SlotNumber } from '@aztec/foundation/branded-types';
|
|
2
|
+
import { BlockNumber, SlotNumber } from '@aztec/foundation/branded-types';
|
|
3
3
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
4
4
|
import { Fr, GrumpkinScalar, Point } from '@aztec/foundation/fields';
|
|
5
5
|
import { assertLength, mapTuple } from '@aztec/foundation/serialize';
|
|
@@ -351,7 +351,7 @@ export function mapVkDataToNoir(vkData, length) {
|
|
|
351
351
|
* @param globalVariables - The noir global variables.
|
|
352
352
|
* @returns The global variables.
|
|
353
353
|
*/ export function mapGlobalVariablesFromNoir(globalVariables) {
|
|
354
|
-
return new GlobalVariables(mapFieldFromNoir(globalVariables.chain_id), mapFieldFromNoir(globalVariables.version), mapNumberFromNoir(globalVariables.block_number), SlotNumber(mapFieldFromNoir(globalVariables.slot_number).toNumber()), mapBigIntFromNoir(globalVariables.timestamp), mapEthAddressFromNoir(globalVariables.coinbase), mapAztecAddressFromNoir(globalVariables.fee_recipient), mapGasFeesFromNoir(globalVariables.gas_fees));
|
|
354
|
+
return new GlobalVariables(mapFieldFromNoir(globalVariables.chain_id), mapFieldFromNoir(globalVariables.version), BlockNumber(mapNumberFromNoir(globalVariables.block_number)), SlotNumber(mapFieldFromNoir(globalVariables.slot_number).toNumber()), mapBigIntFromNoir(globalVariables.timestamp), mapEthAddressFromNoir(globalVariables.coinbase), mapAztecAddressFromNoir(globalVariables.fee_recipient), mapGasFeesFromNoir(globalVariables.gas_fees));
|
|
355
355
|
}
|
|
356
356
|
/**
|
|
357
357
|
* Maps state reference to Noir.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/noir-protocol-circuits-types",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251204",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./server": "./dest/entrypoint/server/artifacts.js",
|
|
@@ -63,20 +63,20 @@
|
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
67
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
68
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
69
|
-
"@aztec/noir-acvm_js": "3.0.0-nightly.
|
|
70
|
-
"@aztec/noir-noir_codegen": "3.0.0-nightly.
|
|
71
|
-
"@aztec/noir-noirc_abi": "3.0.0-nightly.
|
|
72
|
-
"@aztec/noir-types": "3.0.0-nightly.
|
|
73
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
66
|
+
"@aztec/blob-lib": "3.0.0-nightly.20251204",
|
|
67
|
+
"@aztec/constants": "3.0.0-nightly.20251204",
|
|
68
|
+
"@aztec/foundation": "3.0.0-nightly.20251204",
|
|
69
|
+
"@aztec/noir-acvm_js": "3.0.0-nightly.20251204",
|
|
70
|
+
"@aztec/noir-noir_codegen": "3.0.0-nightly.20251204",
|
|
71
|
+
"@aztec/noir-noirc_abi": "3.0.0-nightly.20251204",
|
|
72
|
+
"@aztec/noir-types": "3.0.0-nightly.20251204",
|
|
73
|
+
"@aztec/stdlib": "3.0.0-nightly.20251204",
|
|
74
74
|
"change-case": "^5.4.4",
|
|
75
75
|
"tslib": "^2.4.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
79
|
-
"@aztec/merkle-tree": "3.0.0-nightly.
|
|
78
|
+
"@aztec/kv-store": "3.0.0-nightly.20251204",
|
|
79
|
+
"@aztec/merkle-tree": "3.0.0-nightly.20251204",
|
|
80
80
|
"@jest/globals": "^30.0.0",
|
|
81
81
|
"@swc/helpers": "^0.5.15",
|
|
82
82
|
"@types/jest": "^30.0.0",
|
package/src/conversion/common.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
MAX_PROTOCOL_CONTRACTS,
|
|
9
9
|
PRIVATE_LOG_SIZE_IN_FIELDS,
|
|
10
10
|
} from '@aztec/constants';
|
|
11
|
-
import { SlotNumber } from '@aztec/foundation/branded-types';
|
|
11
|
+
import { BlockNumber, SlotNumber } from '@aztec/foundation/branded-types';
|
|
12
12
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
13
13
|
import { Fr, GrumpkinScalar, Point } from '@aztec/foundation/fields';
|
|
14
14
|
import { type Serializable, type Tuple, assertLength, mapTuple } from '@aztec/foundation/serialize';
|
|
@@ -565,7 +565,7 @@ export function mapGlobalVariablesFromNoir(globalVariables: GlobalVariablesNoir)
|
|
|
565
565
|
return new GlobalVariables(
|
|
566
566
|
mapFieldFromNoir(globalVariables.chain_id),
|
|
567
567
|
mapFieldFromNoir(globalVariables.version),
|
|
568
|
-
mapNumberFromNoir(globalVariables.block_number),
|
|
568
|
+
BlockNumber(mapNumberFromNoir(globalVariables.block_number)),
|
|
569
569
|
SlotNumber(mapFieldFromNoir(globalVariables.slot_number).toNumber()),
|
|
570
570
|
mapBigIntFromNoir(globalVariables.timestamp),
|
|
571
571
|
mapEthAddressFromNoir(globalVariables.coinbase),
|