vyperlang / titanoboa

a vyper interpreter
https://titanoboa.readthedocs.io
Other
251 stars 49 forks source link

feat: Add block and timestamp helper properties to env #223

Closed DanielSchiavini closed 4 months ago

DanielSchiavini commented 4 months ago

What I did

Add block and timestamp helper properties to env

How I did it

Passing the call to evm.patch

How to verify it

Tests are included

Description for the changelog

Cute Animal Picture

image

charles-cooper commented 4 months ago

maybe instead of dynamically creating the class, we can have BlockEnv inherit from something like MagicAttributeSet?

charles-cooper commented 4 months ago

also i think if we are going to do this we should plan to do it for everything in the patcher.