2025 04 10 block timestamp#312
Conversation
WalkthroughThis pull request updates various test metrics and refactors many library import references throughout the codebase. The gas snapshot file now shows increased run counts and gas consumption figures. The project configuration removes the “rain.math.float” submodule and updates its remapping path. Several contracts and test files have been modified to replace all references to “LibAllStandardOpsNP” with “LibAllStandardOps”, with corresponding changes in function calls. Additionally, the library itself was renamed and adjusted (including an increased constant value), and the timestamp library was refactored with updated parameter and return types, accompanied by new tests and removal of deprecated tests. Changes
Sequence Diagram(s)sequenceDiagram
participant C as Contract/Interpreter
participant T as LibOpTimestamp
participant D as LibDecimalFloat
C->>T: Call referenceFn(state, operand, stackItems)
T->>D: Convert block.timestamp with fromFixedDecimalLosslessMem
D-->>T: Return wrapped timestamp
T-->>C: Return StackItem[] with timestamp
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (29)
💤 Files with no reviewable changes (3)
⏰ Context from checks skipped due to timeout of 90000ms (10)
🔇 Additional comments (64)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Motivation
Solution
Checks
By submitting this for review, I'm confirming I've done the following:
Summary by CodeRabbit
These improvements boost internal reliability and testing precision while leaving user-facing functionality unchanged.