Support Calldata arithmetic (#77)

* Re-order the input file.

This commit reorders the input file such that we have a definitions
section and an implementations section and such that the the order of
the items in both sections is the same.

* Implement a reverse polish calculator for calldata arithmetic
This commit is contained in:
Omar authored and GitHub committed 2025-07-24 15:35:25 +00:00
1 parent 90fb89adc0
commit 8f5bcf08ad
4 files changed
+532 -248

No files matched your search

@@ -48,11 +48,7 @@ macro_rules! define_wrapper_type {
$vis struct $ident($ty);
impl $ident {
pub fn new(value: $ty) -> Self {
Self(value)
}
pub fn new_from<T: Into<$ty>>(value: T) -> Self {
pub fn new(value: impl Into<$ty>) -> Self {
Self(value.into())
}