From 2b8f56a309837b017fae2e5761b39976cce30c4a Mon Sep 17 00:00:00 2001 From: Victor Neznaykin Date: Thu, 13 Jul 2023 11:00:02 +0400 Subject: [PATCH 1/2] support ibc messages --- broker/model/ibc.go | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 broker/model/ibc.go diff --git a/broker/model/ibc.go b/broker/model/ibc.go new file mode 100644 index 0000000..66eb2f6 --- /dev/null +++ b/broker/model/ibc.go @@ -0,0 +1,39 @@ +package model + +type ( + TransferMessage struct { + SourceChannel string `json:"source_channel"` + Coin Coin `json:"coin"` + Sender string `json:"sender"` + Receiver string `json:"receiver"` + Height int64 `json:"height"` + MsgIndex int64 `json:"msg_index"` + TxHash string `json:"tx_hash"` + } + + AcknowledgementMessage struct { + SourcePort string `json:"source_port"` + SourceChannel string `json:"source_channel"` + DestinationPort string `json:"destination_port"` + DestinationChannel string `json:"destination_channel"` + Data []byte `json:"data"` + TimeoutTimestamp uint64 `json:"timeout_timestamp"` + Signer string `json:"signer"` + Height int64 `json:"height"` + MsgIndex int64 `json:"msg_index"` + TxHash string `json:"tx_hash"` + } + + RecvPacketMessage struct { + SourcePort string `json:"source_port"` + SourceChannel string `json:"source_channel"` + DestinationPort string `json:"destination_port"` + DestinationChannel string `json:"destination_channel"` + Signer string `json:"signer"` + Data []byte `json:"data"` + TimeoutTimestamp uint64 `json:"timeout_timestamp"` + Height int64 `json:"height"` + MsgIndex int64 `json:"msg_index"` + TxHash string `json:"tx_hash"` + } +) From 7f7ca89286475d00bed867af1191685540776793 Mon Sep 17 00:00:00 2001 From: Victor Neznaykin Date: Thu, 13 Jul 2023 11:01:35 +0400 Subject: [PATCH 2/2] add ibc module to example config --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index 9d2cb69..d787184 100644 --- a/.env +++ b/.env @@ -3,7 +3,7 @@ START_TIMEOUT=60s STOP_TIMEOUT=20s LOG_LEVEL=info -MODULES=bank,core,auth,authz,distribution,gov,mint,staking,slashing,feegrant # Modules for processing +MODULES=bank,core,auth,authz,distribution,gov,mint,staking,slashing,feegrant,ibc # Modules for processing START_HEIGHT=13160000 # Start block height STOP_HEIGHT=13260011 # Stop block height