Labels: high-difficulty, yul, events, gasguard
Difficulty: High
Module: contracts/events/
π§ Concept
Implement a low-level event logging utility in Yul assembly that emits batch execution summaries using raw log1, log2, or log3 opcodes.
β οΈ Problem
Emitting events in high-frequency loops using standard Solidity syntax allocates memory and executes repeated ABI encoding for each log item.
π Implementation Scope
contracts/events/BatchLogEngine.sol
test/events/BatchLogEngine.test.ts
π οΈ Requirements
- Construct topic arrays and log payload buffers directly in scratch memory (
0x00--0x40).
- Trigger event logging using the inline assembly opcode
log2(memPtr, size, topic1, topic2).
π― Acceptance Criteria
Labels:
high-difficulty,yul,events,gasguardDifficulty: High
Module:
contracts/events/π§ Concept
Implement a low-level event logging utility in Yul assembly that emits batch execution summaries using raw
log1,log2, orlog3opcodes.Emitting events in high-frequency loops using standard Solidity syntax allocates memory and executes repeated ABI encoding for each log item.
π Implementation Scope
contracts/events/BatchLogEngine.soltest/events/BatchLogEngine.test.tsπ οΈ Requirements
0x00--0x40).log2(memPtr, size, topic1, topic2).π― Acceptance Criteria