-
Notifications
You must be signed in to change notification settings - Fork 556
/
events.go
72 lines (62 loc) · 2.75 KB
/
events.go
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
60
61
62
63
64
65
66
67
68
69
70
71
72
package types
import (
"fmt"
ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
)
// IBC channel events
const (
AttributeKeyConnectionID = "connection_id"
AttributeKeyPortID = "port_id"
AttributeKeyChannelID = "channel_id"
AttributeKeyChannelState = "channel_state"
AttributeVersion = "version"
AttributeKeyConnectionHops = "connection_hops"
AttributeKeyOrdering = "ordering"
// upgrade specific keys
AttributeKeyUpgradeTimeoutHeight = "timeout_height"
AttributeKeyUpgradeTimeoutTimestamp = "timeout_timestamp"
AttributeKeyUpgradeSequence = "upgrade_sequence"
AttributeKeyErrorReceipt = "error_receipt"
AttributeCounterpartyPortID = "counterparty_port_id"
AttributeCounterpartyChannelID = "counterparty_channel_id"
EventTypeSendPacket = "send_packet"
EventTypeRecvPacket = "recv_packet"
EventTypeWriteAck = "write_acknowledgement"
EventTypeAcknowledgePacket = "acknowledge_packet"
EventTypeTimeoutPacket = "timeout_packet"
// Deprecated: in favor of AttributeKeyDataHex
AttributeKeyData = "packet_data"
// Deprecated: in favor of AttributeKeyAckHex
AttributeKeyAck = "packet_ack"
AttributeKeyDataHex = "packet_data_hex"
AttributeKeyAckHex = "packet_ack_hex"
AttributeKeyTimeoutHeight = "packet_timeout_height"
AttributeKeyTimeoutTimestamp = "packet_timeout_timestamp"
AttributeKeySequence = "packet_sequence"
AttributeKeySrcPort = "packet_src_port"
AttributeKeySrcChannel = "packet_src_channel"
AttributeKeyDstPort = "packet_dst_port"
AttributeKeyDstChannel = "packet_dst_channel"
AttributeKeyChannelOrdering = "packet_channel_ordering"
AttributeKeyConnection = "packet_connection"
)
// IBC channel events vars
var (
EventTypeChannelOpenInit = "channel_open_init"
EventTypeChannelOpenTry = "channel_open_try"
EventTypeChannelOpenAck = "channel_open_ack"
EventTypeChannelOpenConfirm = "channel_open_confirm"
EventTypeChannelCloseInit = "channel_close_init"
EventTypeChannelCloseConfirm = "channel_close_confirm"
EventTypeChannelClosed = "channel_close"
EventTypeChannelUpgradeInit = "channel_upgrade_init"
EventTypeChannelUpgradeTry = "channel_upgrade_try"
EventTypeChannelUpgradeAck = "channel_upgrade_ack"
EventTypeChannelUpgradeConfirm = "channel_upgrade_confirm"
EventTypeChannelUpgradeOpen = "channel_upgrade_open"
EventTypeChannelUpgradeTimeout = "channel_upgrade_timeout"
EventTypeChannelUpgradeCancel = "channel_upgrade_cancelled"
EventTypeChannelUpgradeError = "channel_upgrade_error"
EventTypeChannelFlushComplete = "channel_flush_complete"
AttributeValueCategory = fmt.Sprintf("%s_%s", ibcexported.ModuleName, SubModuleName)
)