import pkg/stew/byteutils import pkg/stint import pkg/nitro import pkg/questionable import pkg/upraises import ./blockexc export AccountMessage export StateChannelUpdate export stint export nitro push: {.upraises: [].} type Account* = object address*: EthAddress func init*(_: type AccountMessage, account: Account): AccountMessage = AccountMessage(address: @(account.address.toArray)) func parse(_: type EthAddress, bytes: seq[byte]): ?EthAddress = var address: array[20, byte] if bytes.len != address.len: return EthAddress.none for i in 0..