Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Mar 7, 2023
1 parent df0597d commit f305ca6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tzkt/data/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const (
KindSrOriginate = "sr_originate"
KindSrPublish = "sr_publish"
KindSrRecoverBond = "sr_recover_bond"
KindSrRefute = "sr_recover_bond"
KindSrRefute = "sr_refute"
)

// urls
Expand Down
14 changes: 14 additions & 0 deletions tzkt/events/tzkt.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,20 @@ func parseOperations(data []byte) (any, error) {
result = append(result, &tzktData.UpdateConsensusKey{})
case tzktData.KindDrainDelegate:
result = append(result, &tzktData.DrainDelegate{})
case tzktData.KindSrAddMessages:
result = append(result, &tzktData.SmartRollupAddMessage{})
case tzktData.KindSrCement:
result = append(result, &tzktData.SmartRollupCement{})
case tzktData.KindSrExecute:
result = append(result, &tzktData.SmartRollupExecute{})
case tzktData.KindSrOriginate:
result = append(result, &tzktData.SmartRollupOriginate{})
case tzktData.KindSrPublish:
result = append(result, &tzktData.SmartRollupPublish{})
case tzktData.KindSrRecoverBond:
result = append(result, &tzktData.SmartRollupRecoverBond{})
case tzktData.KindSrRefute:
result = append(result, &tzktData.SmartRollupRefute{})
default:
result = append(result, make(map[string]interface{}))
}
Expand Down

0 comments on commit f305ca6

Please sign in to comment.