@@ -58,10 +58,12 @@ type LogModel struct {
5858}
5959
6060type DecodedLogDataModel struct {
61- Name string `json:"name"`
62- Signature string `json:"signature"`
63- IndexedParams map [string ]interface {} `json:"indexedParams" swaggertype:"object"`
64- NonIndexedParams map [string ]interface {} `json:"nonIndexedParams" swaggertype:"object"`
61+ Name string `json:"name"`
62+ Signature string `json:"signature"`
63+ IndexedParamsDeprecated map [string ]interface {} `json:"indexedParams" swaggertype:"object" deprecated:"true"`
64+ IndexedParams map [string ]interface {} `json:"indexed_params" swaggertype:"object"`
65+ NonIndexedParamsDeprecated map [string ]interface {} `json:"nonIndexedParams" swaggertype:"object" deprecated:"true"`
66+ NonIndexedParams map [string ]interface {} `json:"non_indexed_params" swaggertype:"object"`
6567}
6668
6769type DecodedLogModel struct {
@@ -77,13 +79,13 @@ type RawReceipt = map[string]interface{}
7779type DecodedLogData struct {
7880 Name string `json:"name"`
7981 Signature string `json:"signature"`
80- IndexedParams map [string ]interface {} `json:"indexedParams "`
81- NonIndexedParams map [string ]interface {} `json:"nonIndexedParams "`
82+ IndexedParams map [string ]interface {} `json:"indexed_params "`
83+ NonIndexedParams map [string ]interface {} `json:"non_indexed_params "`
8284}
8385
8486type DecodedLog struct {
8587 Log
86- Decoded DecodedLogData `json:"decodedData "`
88+ Decoded DecodedLogData `json:"decoded "`
8789}
8890
8991func DecodeLogs (chainId string , logs []Log ) []* DecodedLog {
@@ -251,10 +253,12 @@ func (l *Log) Serialize() LogModel {
251253
252254func (l * DecodedLog ) Serialize () DecodedLogModel {
253255 decodedData := DecodedLogDataModel {
254- Name : l .Decoded .Name ,
255- Signature : l .Decoded .Signature ,
256- IndexedParams : l .Decoded .IndexedParams ,
257- NonIndexedParams : l .Decoded .NonIndexedParams ,
256+ Name : l .Decoded .Name ,
257+ Signature : l .Decoded .Signature ,
258+ IndexedParams : l .Decoded .IndexedParams ,
259+ IndexedParamsDeprecated : l .Decoded .IndexedParams ,
260+ NonIndexedParams : l .Decoded .NonIndexedParams ,
261+ NonIndexedParamsDeprecated : l .Decoded .NonIndexedParams ,
258262 }
259263 return DecodedLogModel {
260264 LogModel : l .Log .Serialize (),
0 commit comments