Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ibc messages #25

Merged
merged 2 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
39 changes: 39 additions & 0 deletions broker/model/ibc.go
Original file line number Diff line number Diff line change
@@ -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"`
}
)