@aztec/simulator 0.39.0 → 0.40.1
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/acvm/oracle/oracle.d.ts +2 -4
- package/dest/acvm/oracle/oracle.d.ts.map +1 -1
- package/dest/acvm/oracle/oracle.js +6 -10
- package/dest/acvm/oracle/typed_oracle.d.ts +1 -0
- package/dest/acvm/oracle/typed_oracle.d.ts.map +1 -1
- package/dest/acvm/oracle/typed_oracle.js +4 -1
- package/dest/avm/avm_gas.d.ts.map +1 -1
- package/dest/avm/avm_gas.js +3 -1
- package/dest/avm/journal/journal.js +4 -4
- package/dest/avm/journal/trace.js +9 -9
- package/dest/avm/opcodes/index.d.ts +2 -0
- package/dest/avm/opcodes/index.d.ts.map +1 -1
- package/dest/avm/opcodes/index.js +3 -1
- package/dest/avm/opcodes/misc.d.ts +17 -0
- package/dest/avm/opcodes/misc.d.ts.map +1 -0
- package/dest/avm/opcodes/misc.js +45 -0
- package/dest/avm/serialization/bytecode_serialization.d.ts.map +1 -1
- package/dest/avm/serialization/bytecode_serialization.js +4 -3
- package/dest/avm/serialization/instruction_serialization.d.ts +6 -5
- package/dest/avm/serialization/instruction_serialization.d.ts.map +1 -1
- package/dest/avm/serialization/instruction_serialization.js +8 -6
- package/dest/client/client_execution_context.d.ts +1 -0
- package/dest/client/client_execution_context.d.ts.map +1 -1
- package/dest/client/client_execution_context.js +5 -2
- package/dest/client/view_data_oracle.d.ts +1 -0
- package/dest/client/view_data_oracle.d.ts.map +1 -1
- package/dest/client/view_data_oracle.js +6 -2
- package/dest/public/public_execution_context.d.ts +1 -0
- package/dest/public/public_execution_context.d.ts.map +1 -1
- package/dest/public/public_execution_context.js +6 -2
- package/package.json +8 -8
- package/src/acvm/oracle/oracle.ts +5 -9
- package/src/acvm/oracle/typed_oracle.ts +4 -0
- package/src/avm/avm_gas.ts +2 -0
- package/src/avm/journal/journal.ts +4 -4
- package/src/avm/journal/trace.ts +8 -8
- package/src/avm/opcodes/index.ts +2 -0
- package/src/avm/opcodes/misc.ts +63 -0
- package/src/avm/serialization/bytecode_serialization.ts +5 -1
- package/src/avm/serialization/instruction_serialization.ts +2 -0
- package/src/client/client_execution_context.ts +5 -1
- package/src/client/view_data_oracle.ts +6 -1
- package/src/public/public_execution_context.ts +6 -1
|
@@ -24,7 +24,7 @@ import { computePublicDataTreeLeafSlot, computeUniqueNoteHash, siloNoteHash } fr
|
|
|
24
24
|
import { type FunctionAbi, type FunctionArtifact, countArgumentsSize } from '@aztec/foundation/abi';
|
|
25
25
|
import { type AztecAddress } from '@aztec/foundation/aztec-address';
|
|
26
26
|
import { Fr, type Point } from '@aztec/foundation/fields';
|
|
27
|
-
import { createDebugLogger } from '@aztec/foundation/log';
|
|
27
|
+
import { applyStringFormatting, createDebugLogger } from '@aztec/foundation/log';
|
|
28
28
|
|
|
29
29
|
import { type NoteData, toACVMWitness } from '../acvm/index.js';
|
|
30
30
|
import { type PackedValuesCache } from '../common/packed_values_cache.js';
|
|
@@ -642,4 +642,8 @@ export class ClientExecutionContext extends ViewDataOracle {
|
|
|
642
642
|
const aes128 = new Aes128();
|
|
643
643
|
return aes128.encryptBufferCBC(input, initializationVector, key);
|
|
644
644
|
}
|
|
645
|
+
|
|
646
|
+
public override debugLog(message: string, fields: Fr[]) {
|
|
647
|
+
this.log.verbose(`debug_log ${applyStringFormatting(message, fields)}`);
|
|
648
|
+
}
|
|
645
649
|
}
|
|
@@ -11,7 +11,7 @@ import { type Header } from '@aztec/circuits.js';
|
|
|
11
11
|
import { siloNullifier } from '@aztec/circuits.js/hash';
|
|
12
12
|
import { type AztecAddress } from '@aztec/foundation/aztec-address';
|
|
13
13
|
import { Fr } from '@aztec/foundation/fields';
|
|
14
|
-
import { createDebugLogger } from '@aztec/foundation/log';
|
|
14
|
+
import { applyStringFormatting, createDebugLogger } from '@aztec/foundation/log';
|
|
15
15
|
import { type ContractInstance } from '@aztec/types/contracts';
|
|
16
16
|
|
|
17
17
|
import { type NoteData, type NullifierKeys, TypedOracle } from '../acvm/index.js';
|
|
@@ -258,4 +258,9 @@ export class ViewDataOracle extends TypedOracle {
|
|
|
258
258
|
}
|
|
259
259
|
return values;
|
|
260
260
|
}
|
|
261
|
+
|
|
262
|
+
public override debugLog(message: string, fields: Fr[]): void {
|
|
263
|
+
const formattedStr = applyStringFormatting(message, fields);
|
|
264
|
+
this.log.verbose(`debug_log ${formattedStr}`);
|
|
265
|
+
}
|
|
261
266
|
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from '@aztec/circuits.js';
|
|
13
13
|
import { type AztecAddress } from '@aztec/foundation/aztec-address';
|
|
14
14
|
import { Fr } from '@aztec/foundation/fields';
|
|
15
|
-
import { createDebugLogger } from '@aztec/foundation/log';
|
|
15
|
+
import { applyStringFormatting, createDebugLogger } from '@aztec/foundation/log';
|
|
16
16
|
import { type ContractInstance } from '@aztec/types/contracts';
|
|
17
17
|
|
|
18
18
|
import { TypedOracle, toACVMWitness } from '../acvm/index.js';
|
|
@@ -281,4 +281,9 @@ export class PublicExecutionContext extends TypedOracle {
|
|
|
281
281
|
}
|
|
282
282
|
return instance;
|
|
283
283
|
}
|
|
284
|
+
|
|
285
|
+
public override debugLog(message: string, fields: Fr[]): void {
|
|
286
|
+
const formattedStr = applyStringFormatting(message, fields);
|
|
287
|
+
this.log.verbose(`debug_log ${formattedStr}`);
|
|
288
|
+
}
|
|
284
289
|
}
|