-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathin_flight_packet.proto
59 lines (53 loc) · 1.36 KB
/
in_flight_packet.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
syntax = "proto3";
package sunrise.swap;
import "amino/amino.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "sunrise/swap/route.proto";
option go_package = "github.com/sunriselayer/sunrise/x/swap/types";
message PacketIndex {
string port_id = 1;
string channel_id = 2;
uint64 sequence = 3;
}
message IncomingInFlightPacket {
PacketIndex index = 1 [
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true
];
bytes data = 2;
string src_port_id = 3;
string src_channel_id = 4;
string timeout_height = 5;
uint64 timeout_timestamp = 6;
bytes ack = 7;
RouteResult result = 8 [
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true
];
string interface_fee = 9 [
(cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "cosmossdk.io/math.Int",
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true
];
oneof change {
PacketIndex outgoing_index_change = 10;
bytes ack_change = 11;
}
oneof forward {
PacketIndex outgoing_index_forward = 12;
bytes ack_forward = 13;
}
}
message OutgoingInFlightPacket {
PacketIndex index = 1 [
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true
];
PacketIndex ack_waiting_index = 2 [
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true
];
int32 retries_remaining = 3;
}