diff --git a/tzkt/data/consts.go b/tzkt/data/consts.go index 6622bc0..870d621 100644 --- a/tzkt/data/consts.go +++ b/tzkt/data/consts.go @@ -40,7 +40,7 @@ const ( KindSrOriginate = "sr_originate" KindSrPublish = "sr_publish" KindSrRecoverBond = "sr_recover_bond" - KindSrRefute = "sr_recover_bond" + KindSrRefute = "sr_refute" ) // urls diff --git a/tzkt/events/tzkt.go b/tzkt/events/tzkt.go index ab351ca..09e575d 100644 --- a/tzkt/events/tzkt.go +++ b/tzkt/events/tzkt.go @@ -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{})) }