[#828] Support transaction rollup jakarta changes
Description
Add support for txr1 and tz4 addresses.
Problem: Jakarta introduced new Michelson type, tx_rollup_l2_address,
used with the new key hash address types, prefixed with tz4
.
Solution: Implement support for this in Morley.
NB: Because tz4
hashes are handled more or less as other key hashes,
but can't be used directly neither as a 'KeyAddress', nor as 'KeyHash'
(verified on the node), to maximize code reuse, a new type KeyHash'
is introduced, which is a GADT parametrized by the key "level".
KeyHash
is then declared as a synonym for KeyHash' 'KeyHashKindRegular
.
Problem: Jakarta introduced a new address type for transaction rollups. We need to support it in Morley.
Solution: Add typechecking support. Emulator support is left for a separate issue.
Again, to maximize code reuse, txr1 addresses reuse some of KeyHash code via another GADT datakind.
Related issue(s)
Resolves #828 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.