Skip to content

refactor: Remove TimestampProvider and use EvmAccessors.getMsgSender()#957

Merged
mamoralesiob merged 3 commits intorefactor/BBND-1458-59-60-lib-diamond-migrationfrom
refactor/remove_TimestampProvider
Apr 20, 2026
Merged

refactor: Remove TimestampProvider and use EvmAccessors.getMsgSender()#957
mamoralesiob merged 3 commits intorefactor/BBND-1458-59-60-lib-diamond-migrationfrom
refactor/remove_TimestampProvider

Conversation

@mamoralesiob
Copy link
Copy Markdown
Contributor

Description

TimestampProvider was removed and msg.sender was substituted by EvmAccessors.getMsgSender()

Type of change

  • Bug fix 🐞
  • New feature ✨
  • Breaking change 💥
  • Documentation update 📖
  • Refactor 🔧

Testing

Node version:

  • 20
  • 22
  • 24

Checklist

  • Style Guidelines followed ✅
  • Documentation Updated 📚
  • Linters - No New Warnings ⚠️
  • Local Tests Pass ✅
  • Effective Tests Added ✔️
  • No reduction of Coverage

@mamoralesiob mamoralesiob changed the title Remove TimestampProvider and use EvmAccessors.getMsgSender() remove TimestampProvider and use EvmAccessors.getMsgSender() Apr 17, 2026
@mamoralesiob mamoralesiob changed the title remove TimestampProvider and use EvmAccessors.getMsgSender() refactor: Remove TimestampProvider and use EvmAccessors.getMsgSender() Apr 17, 2026
@mamoralesiob mamoralesiob self-assigned this Apr 17, 2026
@mamoralesiob mamoralesiob marked this pull request as ready for review April 17, 2026 15:09
@mamoralesiob mamoralesiob requested review from a team as code owners April 17, 2026 15:09
After TimestampProvider deletion, production facets call
TimeTravelStorageWrapper.getBlockTimestamp() directly (static library
call). The _getBlockTimestamp/_getBlockNumber overrides in each
*FacetTimeTravel variant were no-ops that just called the parent, and
are never reached via virtual dispatch. Remove them and update
TimeTravelProvider's stale NatDoc.

The TimeTravel facet variants remain as empty marker contracts pending
the broader "best time-travel pattern" discussion.

Signed-off-by: Miguel_LZPF <[email protected]>
@mamoralesiob mamoralesiob merged commit a9c2fde into refactor/BBND-1458-59-60-lib-diamond-migration Apr 20, 2026
14 checks passed
@mamoralesiob mamoralesiob deleted the refactor/remove_TimestampProvider branch April 20, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants