Skip to content

Commit

Permalink
Merge PR #201: Start indexing at 1 for sequences & enums
Browse files Browse the repository at this point in the history
  • Loading branch information
cwgoes authored Aug 17, 2019
1 parent 1cb8d04 commit 57fa1b1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Binary file modified spec.pdf
Binary file not shown.
8 changes: 4 additions & 4 deletions spec/ics-003-connection-semantics/data-structures.proto
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
syntax = 'proto3';

enum ConnectionState {
INIT = 0;
TRYOPEN = 1;
OPEN = 2;
CLOSED = 3;
INIT = 1;
TRYOPEN = 2;
OPEN = 3;
CLOSED = 4;
}

message ConnectionEnd {
Expand Down
8 changes: 4 additions & 4 deletions spec/ics-004-channel-and-packet-semantics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ function chanOpenInit(
channel = Channel{INIT, order, portIdentifier, counterpartyPortIdentifier,
counterpartyChannelIdentifier, connectionHops, version, nextTimeoutHeight}
provableStore.set(channelKey(portIdentifier, channelIdentifier), channel)
provableStore.set(nextSequenceSendKey(portIdentifier, channelIdentifier), 0)
provableStore.set(nextSequenceRecvKey(portIdentifier, channelIdentifier), 0)
provableStore.set(nextSequenceSendKey(portIdentifier, channelIdentifier), 1)
provableStore.set(nextSequenceRecvKey(portIdentifier, channelIdentifier), 1)
}
```

Expand Down Expand Up @@ -260,8 +260,8 @@ function chanOpenTry(
channel = Channel{OPENTRY, order, portIdentifier, counterpartyPortIdentifier,
counterpartyChannelIdentifier, connectionHops, version, nextTimeoutHeight}
provableStore.set(channelKey(portIdentifier, channelIdentifier), channel)
provableStore.set(nextSequenceSendKey(portIdentifier, channelIdentifier), 0)
provableStore.set(nextSequenceRecvKey(portIdentifier, channelIdentifier), 0)
provableStore.set(nextSequenceSendKey(portIdentifier, channelIdentifier), 1)
provableStore.set(nextSequenceRecvKey(portIdentifier, channelIdentifier), 1)
}
```

Expand Down
12 changes: 6 additions & 6 deletions spec/ics-004-channel-and-packet-semantics/data-structures.proto
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
syntax = 'proto3';

enum ChannelOrder {
ORDERED = 0;
UNORDERED = 1;
ORDERED = 1;
UNORDERED = 2;
}

enum ChannelState {
INIT = 0;
OPENTRY = 1;
OPEN = 2;
CLOSED = 3;
INIT = 1;
OPENTRY = 2;
OPEN = 3;
CLOSED = 4;
}

message ChannelEnd {
Expand Down

0 comments on commit 57fa1b1

Please sign in to comment.