Skip to content

Commit

Permalink
chore: stop tracing and limiting read requests in avm (#10220)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanks12 authored Nov 27, 2024
1 parent 37684cc commit 7d5c33d
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 345 deletions.
23 changes: 0 additions & 23 deletions yarn-project/simulator/src/avm/avm_simulator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ import {
EmitUnencryptedLog,
type Instruction,
Jump,
L1ToL2MessageExists,
NoteHashExists,
NullifierExists,
Return,
SLoad,
SStore,
SendL2ToL1Message,
Set,
Expand Down Expand Up @@ -1103,27 +1099,8 @@ describe('AVM simulator: transpiled Noir contracts', () => {

it.each([
['Public storage writes', () => new SStore(/*indirect=*/ 0, /*srcOffset=*/ 0, /*slotOffset=*/ 0)],
['Public storage reads', () => new SLoad(/*indirect=*/ 0, /*slotOffset=*/ 0, /*dstOffset=*/ 0)],
[
'Note hash checks',
() => new NoteHashExists(/*indirect=*/ 0, /*noteHashOffset=*/ 0, /*leafIndexOffest=*/ 0, /*existsOffset=*/ 1),
],
['New note hashes', () => new EmitNoteHash(/*indirect=*/ 0, /*noteHashOffset=*/ 0)],
[
'Nullifier checks',
() => new NullifierExists(/*indirect=*/ 0, /*nullifierOffset=*/ 0, /*addressOffest=*/ 0, /*existsOffset=*/ 1),
],
['New nullifiers', () => new EmitNullifier(/*indirect=*/ 0, /*noteHashOffset=*/ 0)],
[
'L1 to L2 message checks',
() =>
new L1ToL2MessageExists(
/*indirect=*/ 0,
/*msgHashOffset=*/ 0,
/*msgLeafIndexOffest=*/ 0,
/*existsOffset=*/ 1,
),
],
['New unencrypted logs', () => new EmitUnencryptedLog(/*indirect=*/ 0, /*logOffset=*/ 0, /*logSizeOffest=*/ 1)],
[
'New L1 to L2 messages',
Expand Down
Loading

0 comments on commit 7d5c33d

Please sign in to comment.