-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
Description
- Implement core types and en/decoding
- Implement channel
- Implement packet
- Add transaction handler and datagram types
- Implement related RPCs
Datagrams
Mostly corresponded with required functions
ChanOpenInit
ChanOpenTry
ChanOpenAck
ChanOpenConfirm
ChanCloseInit
ChanCloseConfirm
SendPacket
RecvPacket
AcknowledgePacket
These will not be implemented in PoC
TimeoutPcaket
TimeoutOnClose
ClenupPacket
RPCs
query_channel_end()
query_packet_commitment()
query_packet_acknowledgement()
query_next_sequence_recv()
query_latest_send_packet()
query_latest_recv_packet()
Questions
- Why no port & channel here?
emitLogEntry("sendPacket", {sequence: packet.sequence, data: packet.data, timeout: packet.timeout})
Changes
- We always require
acknowledgement
inrecv_packet()
since we don't know the use case of non-ack.