Skip to content

Commit

Permalink
Trie lib (part. 2) (#215)
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu <[email protected]>
  • Loading branch information
ClementWalter and enitrat authored Dec 6, 2024
1 parent 4316af3 commit 5b18a0e
Show file tree
Hide file tree
Showing 13 changed files with 957 additions and 240 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"nondet",
"ommers",
"patricialize",
"patricialized",
"recv",
"Reth",
"Risc"
Expand Down
26 changes: 26 additions & 0 deletions cairo/ethereum/base_types.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,32 @@ struct TupleBytes {
value: TupleBytesStruct*,
}

// Just a lke regular DictAccess pointer, with keys and values to be interpreted as
// Bytes pointers.
struct BytesBytesDictAccess {
key: Bytes,
prev_value: Bytes,
new_value: Bytes,
}

struct MappingBytesBytesStruct {
dict_ptr_start: BytesBytesDictAccess*,
dict_ptr: BytesBytesDictAccess*,
}

struct MappingBytesBytes {
value: MappingBytesBytesStruct*,
}

struct TupleMappingBytesBytesStruct {
value: MappingBytesBytes*,
len: felt,
}

struct TupleMappingBytesBytes {
value: TupleMappingBytesBytesStruct*,
}

struct TupleBytes32Struct {
value: Bytes32*,
len: felt,
Expand Down
Loading

0 comments on commit 5b18a0e

Please sign in to comment.