Mark Spanbroek
a945698ec6
Add convenience initializer to Outcome
2021-03-09 16:48:47 +01:00
Mark Spanbroek
b758751211
Add Destination (abstraction for either channel id or eth address)
2021-03-09 14:02:01 +01:00
Mark Spanbroek
7395029f19
Move test basics up one level
2021-03-09 13:18:31 +01:00
Mark Spanbroek
2e9896c13a
Move everything into nitro/protocol
2021-03-04 11:30:32 +01:00
Mark Spanbroek
34072f4749
Fix ABI encoding of Nitro state to match javascript implementation
...
- rewrite ABI encoding to properly handle dynamic tuples
- surround Nitro types with extra tuples to match javascript
- test with examples of encoding extracted from javascript
2021-02-25 09:11:46 +01:00
Mark Spanbroek
3867258fe6
Fix ABI encoding of outcome; should be in a tuple
2021-02-23 12:30:55 +01:00
Mark Spanbroek
763a758b0a
Fix ABI encoding of Ethereum Addresses
...
They should be encoded as if they were UInt160, which means they
should be left-padded with zeroes, instead of right-padded.
2021-02-23 10:24:09 +01:00
Mark Spanbroek
ab2a39a704
Nitro state, including ABI encoding and hashing
2021-02-22 15:32:48 +01:00