@aztec/simulator 0.85.0-alpha-testnet.1 → 0.85.0-alpha-testnet.3
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
-
import {
|
|
3
|
+
import { DateProvider } from '@aztec/foundation/timer';
|
|
4
4
|
import type { ContractDataSource } from '@aztec/stdlib/contract';
|
|
5
5
|
import { Gas } from '@aztec/stdlib/gas';
|
|
6
6
|
import type { MerkleTreeWriteOperations } from '@aztec/stdlib/interfaces/server';
|
|
@@ -14,8 +14,8 @@ import { type PublicTxSimulator } from '../public_tx_simulator/index.js';
|
|
|
14
14
|
export declare class PublicProcessorFactory {
|
|
15
15
|
private contractDataSource;
|
|
16
16
|
private dateProvider;
|
|
17
|
-
|
|
18
|
-
constructor(contractDataSource: ContractDataSource, dateProvider
|
|
17
|
+
protected telemetryClient: TelemetryClient;
|
|
18
|
+
constructor(contractDataSource: ContractDataSource, dateProvider?: DateProvider, telemetryClient?: TelemetryClient);
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new instance of a PublicProcessor.
|
|
21
21
|
* @param historicalHeader - The header of a block previous to the one in which the tx is included.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public_processor.d.ts","sourceRoot":"","sources":["../../../src/public/public_processor/public_processor.ts"],"names":[],"mappings":";;AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"public_processor.d.ts","sourceRoot":"","sources":["../../../src/public/public_processor/public_processor.ts"],"names":[],"mappings":";;AAIA,OAAO,EAAE,YAAY,EAAkC,MAAM,yBAAyB,CAAC;AAMvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,KAAK,EAAE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,WAAW,EAAE,iBAAiB,EAC9B,iBAAiB,EAAE,iBAAiB,EACtC,YAAY,EAAE,YAAY,EAClC,eAAe,GAAE,eAAsC,EAC/C,GAAG,yCAA6C;IAK1D,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;;;;OAMG;IACU,OAAO,CAClB,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,EAAE,CAAC,EACrC,MAAM,GAAE;QACN,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,GAAG,CAAC;QAClB,QAAQ,CAAC,EAAE,IAAI,CAAC;KACZ,EACN,SAAS,GAAE;QACT,mBAAmB,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC;QACtC,cAAc,CAAC,EAAE;YAAE,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;SAAE,CAAC;KAC/D,GACL,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,EAAE,yBAAyB,EAAE,CAAC,CAAC;YAoJtD,SAAS;YA2BT,gCAAgC;IAyC9C,kFAAkF;YACpE,uBAAuB;IA+BrC;;;;OAIG;YACW,4BAA4B;YAwB5B,oBAAoB;YA6BpB,wBAAwB;CA8CvC"}
|
|
@@ -8,7 +8,7 @@ import { MAX_NOTE_HASHES_PER_TX, MAX_NULLIFIERS_PER_TX, NULLIFIER_SUBTREE_HEIGHT
|
|
|
8
8
|
import { padArrayEnd } from '@aztec/foundation/collection';
|
|
9
9
|
import { Fr } from '@aztec/foundation/fields';
|
|
10
10
|
import { createLogger } from '@aztec/foundation/log';
|
|
11
|
-
import { Timer, elapsed, executeTimeout } from '@aztec/foundation/timer';
|
|
11
|
+
import { DateProvider, Timer, elapsed, executeTimeout } from '@aztec/foundation/timer';
|
|
12
12
|
import { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
13
13
|
import { ContractClassRegisteredEvent } from '@aztec/protocol-contracts/class-registerer';
|
|
14
14
|
import { computeFeePayerBalanceLeafSlot, computeFeePayerBalanceStorageSlot } from '@aztec/protocol-contracts/fee-juice';
|
|
@@ -27,7 +27,7 @@ import { PublicProcessorMetrics } from './public_processor_metrics.js';
|
|
|
27
27
|
contractDataSource;
|
|
28
28
|
dateProvider;
|
|
29
29
|
telemetryClient;
|
|
30
|
-
constructor(contractDataSource, dateProvider, telemetryClient = getTelemetryClient()){
|
|
30
|
+
constructor(contractDataSource, dateProvider = new DateProvider(), telemetryClient = getTelemetryClient()){
|
|
31
31
|
this.contractDataSource = contractDataSource;
|
|
32
32
|
this.dateProvider = dateProvider;
|
|
33
33
|
this.telemetryClient = telemetryClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/simulator",
|
|
3
|
-
"version": "0.85.0-alpha-testnet.
|
|
3
|
+
"version": "0.85.0-alpha-testnet.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./server": "./dest/server.js",
|
|
@@ -60,24 +60,24 @@
|
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@aztec/constants": "0.85.0-alpha-testnet.
|
|
64
|
-
"@aztec/foundation": "0.85.0-alpha-testnet.
|
|
65
|
-
"@aztec/noir-acvm_js": "0.85.0-alpha-testnet.
|
|
66
|
-
"@aztec/noir-noirc_abi": "0.85.0-alpha-testnet.
|
|
67
|
-
"@aztec/noir-protocol-circuits-types": "0.85.0-alpha-testnet.
|
|
68
|
-
"@aztec/noir-types": "0.85.0-alpha-testnet.
|
|
69
|
-
"@aztec/protocol-contracts": "0.85.0-alpha-testnet.
|
|
70
|
-
"@aztec/stdlib": "0.85.0-alpha-testnet.
|
|
71
|
-
"@aztec/telemetry-client": "0.85.0-alpha-testnet.
|
|
72
|
-
"@aztec/world-state": "0.85.0-alpha-testnet.
|
|
63
|
+
"@aztec/constants": "0.85.0-alpha-testnet.3",
|
|
64
|
+
"@aztec/foundation": "0.85.0-alpha-testnet.3",
|
|
65
|
+
"@aztec/noir-acvm_js": "0.85.0-alpha-testnet.3",
|
|
66
|
+
"@aztec/noir-noirc_abi": "0.85.0-alpha-testnet.3",
|
|
67
|
+
"@aztec/noir-protocol-circuits-types": "0.85.0-alpha-testnet.3",
|
|
68
|
+
"@aztec/noir-types": "0.85.0-alpha-testnet.3",
|
|
69
|
+
"@aztec/protocol-contracts": "0.85.0-alpha-testnet.3",
|
|
70
|
+
"@aztec/stdlib": "0.85.0-alpha-testnet.3",
|
|
71
|
+
"@aztec/telemetry-client": "0.85.0-alpha-testnet.3",
|
|
72
|
+
"@aztec/world-state": "0.85.0-alpha-testnet.3",
|
|
73
73
|
"lodash.clonedeep": "^4.5.0",
|
|
74
74
|
"lodash.merge": "^4.6.2",
|
|
75
75
|
"tslib": "^2.4.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@aztec/kv-store": "0.85.0-alpha-testnet.
|
|
79
|
-
"@aztec/merkle-tree": "0.85.0-alpha-testnet.
|
|
80
|
-
"@aztec/noir-contracts.js": "0.85.0-alpha-testnet.
|
|
78
|
+
"@aztec/kv-store": "0.85.0-alpha-testnet.3",
|
|
79
|
+
"@aztec/merkle-tree": "0.85.0-alpha-testnet.3",
|
|
80
|
+
"@aztec/noir-contracts.js": "0.85.0-alpha-testnet.3",
|
|
81
81
|
"@jest/globals": "^29.5.0",
|
|
82
82
|
"@types/jest": "^29.5.0",
|
|
83
83
|
"@types/lodash.clonedeep": "^4.5.7",
|
|
@@ -2,7 +2,7 @@ import { MAX_NOTE_HASHES_PER_TX, MAX_NULLIFIERS_PER_TX, NULLIFIER_SUBTREE_HEIGHT
|
|
|
2
2
|
import { padArrayEnd } from '@aztec/foundation/collection';
|
|
3
3
|
import { Fr } from '@aztec/foundation/fields';
|
|
4
4
|
import { createLogger } from '@aztec/foundation/log';
|
|
5
|
-
import {
|
|
5
|
+
import { DateProvider, Timer, elapsed, executeTimeout } from '@aztec/foundation/timer';
|
|
6
6
|
import { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
7
7
|
import { ContractClassRegisteredEvent } from '@aztec/protocol-contracts/class-registerer';
|
|
8
8
|
import { computeFeePayerBalanceLeafSlot, computeFeePayerBalanceStorageSlot } from '@aztec/protocol-contracts/fee-juice';
|
|
@@ -43,8 +43,8 @@ import { PublicProcessorMetrics } from './public_processor_metrics.js';
|
|
|
43
43
|
export class PublicProcessorFactory {
|
|
44
44
|
constructor(
|
|
45
45
|
private contractDataSource: ContractDataSource,
|
|
46
|
-
private dateProvider: DateProvider,
|
|
47
|
-
|
|
46
|
+
private dateProvider: DateProvider = new DateProvider(),
|
|
47
|
+
protected telemetryClient: TelemetryClient = getTelemetryClient(),
|
|
48
48
|
) {}
|
|
49
49
|
|
|
50
50
|
/**
|