mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 01:27:38 +00:00
revert receipt codec version (#2109)
This commit is contained in:
parent
ef380a0e89
commit
2be0ab6923
@ -39,10 +39,10 @@ func codecSelfer2False() bool { return false }
|
|||||||
func codecSelfer2True() bool { return true }
|
func codecSelfer2True() bool { return true }
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if codec1978.GenVersion != 25 {
|
if codec1978.GenVersion != 19 {
|
||||||
_, file, _, _ := runtime.Caller(0)
|
_, file, _, _ := runtime.Caller(0)
|
||||||
ver := strconv.FormatInt(int64(codec1978.GenVersion), 10)
|
ver := strconv.FormatInt(int64(codec1978.GenVersion), 10)
|
||||||
panic(errors.New("codecgen version mismatch: current: 25, need " + ver + ". Re-generate file: " + file))
|
panic(errors.New("codecgen version mismatch: current: 19, need " + ver + ". Re-generate file: " + file))
|
||||||
}
|
}
|
||||||
if false { // reference the types, but skip this branch at build/run time
|
if false { // reference the types, but skip this branch at build/run time
|
||||||
var _ pkg1_common.Address
|
var _ pkg1_common.Address
|
||||||
@ -50,15 +50,10 @@ func init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Receipt) codecSelferViaCodecgen() {}
|
|
||||||
func (x *Receipt) CodecEncodeSelf(e *codec1978.Encoder) {
|
func (x *Receipt) CodecEncodeSelf(e *codec1978.Encoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Encoder(e)
|
z, r := codec1978.GenHelperEncoder(e)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
if z.EncBasicHandle().CheckCircularRef {
|
|
||||||
z.EncEncode(x)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if x == nil {
|
if x == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
} else {
|
} else {
|
||||||
@ -88,7 +83,7 @@ func (x *Receipt) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
|
|
||||||
func (x *Receipt) CodecDecodeSelf(d *codec1978.Decoder) {
|
func (x *Receipt) CodecDecodeSelf(d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
if !z.DecBinary() && z.IsJSONHandle() {
|
if !z.DecBinary() && z.IsJSONHandle() {
|
||||||
z.DecJSONUnmarshal(x)
|
z.DecJSONUnmarshal(x)
|
||||||
@ -117,7 +112,7 @@ func (x *Receipt) CodecDecodeSelf(d *codec1978.Decoder) {
|
|||||||
|
|
||||||
func (x *Receipt) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
func (x *Receipt) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
var yyhl3 bool = l >= 0
|
var yyhl3 bool = l >= 0
|
||||||
for yyj3 := 0; ; yyj3++ {
|
for yyj3 := 0; ; yyj3++ {
|
||||||
@ -131,26 +126,26 @@ func (x *Receipt) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
z.DecReadMapElemKey()
|
z.DecReadMapElemKey()
|
||||||
yys3 := r.DecodeStringAsBytes()
|
yys3 := z.StringView(r.DecodeStringAsBytes())
|
||||||
z.DecReadMapElemValue()
|
z.DecReadMapElemValue()
|
||||||
switch string(yys3) {
|
switch yys3 {
|
||||||
case "Type":
|
case "Type":
|
||||||
x.Type = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
|
x.Type = (uint8)(z.C.UintV(r.DecodeUint64(), 8))
|
||||||
case "1":
|
case "1":
|
||||||
x.PostState = z.DecodeBytesInto(([]byte)(x.PostState))
|
x.PostState = r.DecodeBytes(([]byte)(x.PostState), false)
|
||||||
case "2":
|
case "2":
|
||||||
x.Status = (uint64)(r.DecodeUint64())
|
x.Status = (uint64)(r.DecodeUint64())
|
||||||
case "3":
|
case "3":
|
||||||
x.CumulativeGasUsed = (uint64)(r.DecodeUint64())
|
x.CumulativeGasUsed = (uint64)(r.DecodeUint64())
|
||||||
default:
|
default:
|
||||||
z.DecStructFieldNotFound(-1, string(yys3))
|
z.DecStructFieldNotFound(-1, yys3)
|
||||||
} // end switch yys3
|
} // end switch yys3
|
||||||
} // end for yyj3
|
} // end for yyj3
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Receipt) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
func (x *Receipt) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
var yyj9 int
|
var yyj9 int
|
||||||
var yyb9 bool
|
var yyb9 bool
|
||||||
@ -178,7 +173,7 @@ func (x *Receipt) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
z.DecReadArrayElem()
|
z.DecReadArrayElem()
|
||||||
x.PostState = z.DecodeBytesInto(([]byte)(x.PostState))
|
x.PostState = r.DecodeBytes(([]byte)(x.PostState), false)
|
||||||
yyj9++
|
yyj9++
|
||||||
if yyhl9 {
|
if yyhl9 {
|
||||||
yyb9 = yyj9 > l
|
yyb9 = yyj9 > l
|
||||||
@ -219,13 +214,12 @@ func (x *Receipt) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (x *Receipt) IsCodecEmpty() bool {
|
func (x *Receipt) IsCodecEmpty() bool {
|
||||||
return !(x.Type != 0 || len(x.PostState) != 0 || x.Status != 0 || x.CumulativeGasUsed != 0 || false)
|
return !(x.Type != 0 && len(x.PostState) != 0 && x.Status != 0 && x.CumulativeGasUsed != 0 && true)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Receipts) codecSelferViaCodecgen() {}
|
|
||||||
func (x Receipts) CodecEncodeSelf(e *codec1978.Encoder) {
|
func (x Receipts) CodecEncodeSelf(e *codec1978.Encoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Encoder(e)
|
z, r := codec1978.GenHelperEncoder(e)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
if x == nil {
|
if x == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
@ -236,20 +230,15 @@ func (x Receipts) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
|
|
||||||
func (x *Receipts) CodecDecodeSelf(d *codec1978.Decoder) {
|
func (x *Receipts) CodecDecodeSelf(d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
h.decReceipts((*Receipts)(x), d)
|
h.decReceipts((*Receipts)(x), d)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Log) codecSelferViaCodecgen() {}
|
|
||||||
func (x *Log) CodecEncodeSelf(e *codec1978.Encoder) {
|
func (x *Log) CodecEncodeSelf(e *codec1978.Encoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Encoder(e)
|
z, r := codec1978.GenHelperEncoder(e)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
if z.EncBasicHandle().CheckCircularRef {
|
|
||||||
z.EncEncode(x)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if x == nil {
|
if x == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
} else {
|
} else {
|
||||||
@ -265,7 +254,7 @@ func (x *Log) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
if !z.EncBinary() {
|
if !z.EncBinary() {
|
||||||
z.EncTextMarshal(*yy6)
|
z.EncTextMarshal(*yy6)
|
||||||
} else {
|
} else {
|
||||||
z.F.EncSliceUint8V(([]uint8)(yy6[:]), e)
|
h.enccommon_Address((*pkg1_common.Address)(yy6), e)
|
||||||
}
|
}
|
||||||
z.EncWriteArrayElem()
|
z.EncWriteArrayElem()
|
||||||
if x.Topics == nil {
|
if x.Topics == nil {
|
||||||
@ -286,7 +275,7 @@ func (x *Log) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
|
|
||||||
func (x *Log) CodecDecodeSelf(d *codec1978.Decoder) {
|
func (x *Log) CodecDecodeSelf(d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
if !z.DecBinary() && z.IsJSONHandle() {
|
if !z.DecBinary() && z.IsJSONHandle() {
|
||||||
z.DecJSONUnmarshal(x)
|
z.DecJSONUnmarshal(x)
|
||||||
@ -315,7 +304,7 @@ func (x *Log) CodecDecodeSelf(d *codec1978.Decoder) {
|
|||||||
|
|
||||||
func (x *Log) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
func (x *Log) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
var yyhl3 bool = l >= 0
|
var yyhl3 bool = l >= 0
|
||||||
for yyj3 := 0; ; yyj3++ {
|
for yyj3 := 0; ; yyj3++ {
|
||||||
@ -329,28 +318,28 @@ func (x *Log) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
z.DecReadMapElemKey()
|
z.DecReadMapElemKey()
|
||||||
yys3 := r.DecodeStringAsBytes()
|
yys3 := z.StringView(r.DecodeStringAsBytes())
|
||||||
z.DecReadMapElemValue()
|
z.DecReadMapElemValue()
|
||||||
switch string(yys3) {
|
switch yys3 {
|
||||||
case "1":
|
case "1":
|
||||||
if !z.DecBinary() && z.IsJSONHandle() {
|
if !z.DecBinary() && z.IsJSONHandle() {
|
||||||
z.DecJSONUnmarshal(&x.Address)
|
z.DecJSONUnmarshal(&x.Address)
|
||||||
} else {
|
} else {
|
||||||
z.F.DecSliceUint8N(([]uint8)(x.Address[:]), d)
|
h.deccommon_Address((*pkg1_common.Address)(&x.Address), d)
|
||||||
}
|
}
|
||||||
case "2":
|
case "2":
|
||||||
h.decSlicecommon_Hash((*[]pkg1_common.Hash)(&x.Topics), d)
|
h.decSlicecommon_Hash((*[]pkg1_common.Hash)(&x.Topics), d)
|
||||||
case "3":
|
case "3":
|
||||||
x.Data = z.DecodeBytesInto(([]byte)(x.Data))
|
x.Data = r.DecodeBytes(([]byte)(x.Data), false)
|
||||||
default:
|
default:
|
||||||
z.DecStructFieldNotFound(-1, string(yys3))
|
z.DecStructFieldNotFound(-1, yys3)
|
||||||
} // end switch yys3
|
} // end switch yys3
|
||||||
} // end for yyj3
|
} // end for yyj3
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Log) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
func (x *Log) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
var yyj10 int
|
var yyj10 int
|
||||||
var yyb10 bool
|
var yyb10 bool
|
||||||
@ -369,7 +358,7 @@ func (x *Log) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|||||||
if !z.DecBinary() && z.IsJSONHandle() {
|
if !z.DecBinary() && z.IsJSONHandle() {
|
||||||
z.DecJSONUnmarshal(&x.Address)
|
z.DecJSONUnmarshal(&x.Address)
|
||||||
} else {
|
} else {
|
||||||
z.F.DecSliceUint8N(([]uint8)(x.Address[:]), d)
|
h.deccommon_Address((*pkg1_common.Address)(&x.Address), d)
|
||||||
}
|
}
|
||||||
yyj10++
|
yyj10++
|
||||||
if yyhl10 {
|
if yyhl10 {
|
||||||
@ -394,7 +383,7 @@ func (x *Log) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
z.DecReadArrayElem()
|
z.DecReadArrayElem()
|
||||||
x.Data = z.DecodeBytesInto(([]byte)(x.Data))
|
x.Data = r.DecodeBytes(([]byte)(x.Data), false)
|
||||||
for {
|
for {
|
||||||
yyj10++
|
yyj10++
|
||||||
if yyhl10 {
|
if yyhl10 {
|
||||||
@ -411,13 +400,12 @@ func (x *Log) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (x *Log) IsCodecEmpty() bool {
|
func (x *Log) IsCodecEmpty() bool {
|
||||||
return !(len(x.Address) != 0 || len(x.Topics) != 0 || len(x.Data) != 0 || false)
|
return !(len(x.Address) != 0 && len(x.Topics) != 0 && len(x.Data) != 0 && true)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Logs) codecSelferViaCodecgen() {}
|
|
||||||
func (x Logs) CodecEncodeSelf(e *codec1978.Encoder) {
|
func (x Logs) CodecEncodeSelf(e *codec1978.Encoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Encoder(e)
|
z, r := codec1978.GenHelperEncoder(e)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
if x == nil {
|
if x == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
@ -428,26 +416,26 @@ func (x Logs) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
|
|
||||||
func (x *Logs) CodecDecodeSelf(d *codec1978.Decoder) {
|
func (x *Logs) CodecDecodeSelf(d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
h.decLogs((*Logs)(x), d)
|
h.decLogs((*Logs)(x), d)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x codecSelfer2) encReceipts(v Receipts, e *codec1978.Encoder) {
|
func (x codecSelfer2) encReceipts(v Receipts, e *codec1978.Encoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Encoder(e)
|
z, r := codec1978.GenHelperEncoder(e)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
if v == nil {
|
if v == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
z.EncWriteArrayStart(len(v))
|
z.EncWriteArrayStart(len(v))
|
||||||
for yyv1 := range v {
|
for _, yyv1 := range v {
|
||||||
z.EncWriteArrayElem()
|
z.EncWriteArrayElem()
|
||||||
if v[yyv1] == nil {
|
if yyv1 == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
} else {
|
} else {
|
||||||
v[yyv1].CodecEncodeSelf(e)
|
yyv1.CodecEncodeSelf(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
z.EncWriteArrayEnd()
|
z.EncWriteArrayEnd()
|
||||||
@ -455,7 +443,7 @@ func (x codecSelfer2) encReceipts(v Receipts, e *codec1978.Encoder) {
|
|||||||
|
|
||||||
func (x codecSelfer2) decReceipts(v *Receipts, d *codec1978.Decoder) {
|
func (x codecSelfer2) decReceipts(v *Receipts, d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
|
|
||||||
yyv1 := *v
|
yyv1 := *v
|
||||||
@ -537,22 +525,40 @@ func (x codecSelfer2) decReceipts(v *Receipts, d *codec1978.Decoder) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x codecSelfer2) enccommon_Address(v *pkg1_common.Address, e *codec1978.Encoder) {
|
||||||
|
var h codecSelfer2
|
||||||
|
z, r := codec1978.GenHelperEncoder(e)
|
||||||
|
_, _, _ = h, z, r
|
||||||
|
if v == nil {
|
||||||
|
r.EncodeNil()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r.EncodeStringBytesRaw(((*[20]byte)(v))[:])
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x codecSelfer2) deccommon_Address(v *pkg1_common.Address, d *codec1978.Decoder) {
|
||||||
|
var h codecSelfer2
|
||||||
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
|
_, _, _ = h, z, r
|
||||||
|
r.DecodeBytes(((*[20]byte)(v))[:], true)
|
||||||
|
}
|
||||||
|
|
||||||
func (x codecSelfer2) encSlicecommon_Hash(v []pkg1_common.Hash, e *codec1978.Encoder) {
|
func (x codecSelfer2) encSlicecommon_Hash(v []pkg1_common.Hash, e *codec1978.Encoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Encoder(e)
|
z, r := codec1978.GenHelperEncoder(e)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
if v == nil {
|
if v == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
z.EncWriteArrayStart(len(v))
|
z.EncWriteArrayStart(len(v))
|
||||||
for yyv1 := range v {
|
for _, yyv1 := range v {
|
||||||
z.EncWriteArrayElem()
|
z.EncWriteArrayElem()
|
||||||
yy2 := &v[yyv1]
|
yy2 := &yyv1
|
||||||
if !z.EncBinary() {
|
if !z.EncBinary() {
|
||||||
z.EncTextMarshal(*yy2)
|
z.EncTextMarshal(*yy2)
|
||||||
} else {
|
} else {
|
||||||
z.F.EncSliceUint8V(([]uint8)(yy2[:]), e)
|
h.enccommon_Hash((*pkg1_common.Hash)(yy2), e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
z.EncWriteArrayEnd()
|
z.EncWriteArrayEnd()
|
||||||
@ -560,7 +566,7 @@ func (x codecSelfer2) encSlicecommon_Hash(v []pkg1_common.Hash, e *codec1978.Enc
|
|||||||
|
|
||||||
func (x codecSelfer2) decSlicecommon_Hash(v *[]pkg1_common.Hash, d *codec1978.Decoder) {
|
func (x codecSelfer2) decSlicecommon_Hash(v *[]pkg1_common.Hash, d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
|
|
||||||
yyv1 := *v
|
yyv1 := *v
|
||||||
@ -621,7 +627,7 @@ func (x codecSelfer2) decSlicecommon_Hash(v *[]pkg1_common.Hash, d *codec1978.De
|
|||||||
if !z.DecBinary() && z.IsJSONHandle() {
|
if !z.DecBinary() && z.IsJSONHandle() {
|
||||||
z.DecJSONUnmarshal(&yyv1[yyj1])
|
z.DecJSONUnmarshal(&yyv1[yyj1])
|
||||||
} else {
|
} else {
|
||||||
z.F.DecSliceUint8N(([]uint8)(yyv1[yyj1][:]), d)
|
h.deccommon_Hash((*pkg1_common.Hash)(&yyv1[yyj1]), d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -639,21 +645,39 @@ func (x codecSelfer2) decSlicecommon_Hash(v *[]pkg1_common.Hash, d *codec1978.De
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x codecSelfer2) enccommon_Hash(v *pkg1_common.Hash, e *codec1978.Encoder) {
|
||||||
|
var h codecSelfer2
|
||||||
|
z, r := codec1978.GenHelperEncoder(e)
|
||||||
|
_, _, _ = h, z, r
|
||||||
|
if v == nil {
|
||||||
|
r.EncodeNil()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r.EncodeStringBytesRaw(((*[32]byte)(v))[:])
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x codecSelfer2) deccommon_Hash(v *pkg1_common.Hash, d *codec1978.Decoder) {
|
||||||
|
var h codecSelfer2
|
||||||
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
|
_, _, _ = h, z, r
|
||||||
|
r.DecodeBytes(((*[32]byte)(v))[:], true)
|
||||||
|
}
|
||||||
|
|
||||||
func (x codecSelfer2) encLogs(v Logs, e *codec1978.Encoder) {
|
func (x codecSelfer2) encLogs(v Logs, e *codec1978.Encoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Encoder(e)
|
z, r := codec1978.GenHelperEncoder(e)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
if v == nil {
|
if v == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
z.EncWriteArrayStart(len(v))
|
z.EncWriteArrayStart(len(v))
|
||||||
for yyv1 := range v {
|
for _, yyv1 := range v {
|
||||||
z.EncWriteArrayElem()
|
z.EncWriteArrayElem()
|
||||||
if v[yyv1] == nil {
|
if yyv1 == nil {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
} else {
|
} else {
|
||||||
v[yyv1].CodecEncodeSelf(e)
|
yyv1.CodecEncodeSelf(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
z.EncWriteArrayEnd()
|
z.EncWriteArrayEnd()
|
||||||
@ -661,7 +685,7 @@ func (x codecSelfer2) encLogs(v Logs, e *codec1978.Encoder) {
|
|||||||
|
|
||||||
func (x codecSelfer2) decLogs(v *Logs, d *codec1978.Decoder) {
|
func (x codecSelfer2) decLogs(v *Logs, d *codec1978.Decoder) {
|
||||||
var h codecSelfer2
|
var h codecSelfer2
|
||||||
z, r := codec1978.GenHelper().Decoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
|
|
||||||
yyv1 := *v
|
yyv1 := *v
|
||||||
|
4
go.mod
4
go.mod
@ -54,8 +54,8 @@ require (
|
|||||||
github.com/spf13/cobra v1.1.3
|
github.com/spf13/cobra v1.1.3
|
||||||
github.com/spf13/pflag v1.0.5
|
github.com/spf13/pflag v1.0.5
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
github.com/ugorji/go/codec v1.2.6
|
github.com/ugorji/go/codec v1.1.13
|
||||||
github.com/ugorji/go/codec/codecgen v1.2.6
|
github.com/ugorji/go/codec/codecgen v1.1.13
|
||||||
github.com/urfave/cli v1.22.4
|
github.com/urfave/cli v1.22.4
|
||||||
github.com/valyala/fastjson v1.6.3
|
github.com/valyala/fastjson v1.6.3
|
||||||
github.com/wcharczuk/go-chart v2.0.1+incompatible
|
github.com/wcharczuk/go-chart v2.0.1+incompatible
|
||||||
|
13
go.sum
13
go.sum
@ -989,12 +989,12 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1
|
|||||||
github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31/go.mod h1:onvgF043R+lC5RZ8IT9rBXDaEDnpnw/Cl+HFiw+v/7Q=
|
github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31/go.mod h1:onvgF043R+lC5RZ8IT9rBXDaEDnpnw/Cl+HFiw+v/7Q=
|
||||||
github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM=
|
github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM=
|
||||||
github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs=
|
github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs=
|
||||||
github.com/ugorji/go v1.2.6 h1:tGiWC9HENWE2tqYycIqFTNorMmFRVhNwCpDOpWqnk8E=
|
github.com/ugorji/go v1.1.13 h1:nB3O5kBSQGjEQAcfe1aLUYuxmXdFKmYgBZhY32rQb6Q=
|
||||||
github.com/ugorji/go v1.2.6/go.mod h1:anCg0y61KIhDlPZmnH+so+RQbysYVyDko0IMgJv0Nn0=
|
github.com/ugorji/go v1.1.13/go.mod h1:jxau1n+/wyTGLQoCkjok9r5zFa/FxT6eI5HiHKQszjc=
|
||||||
github.com/ugorji/go/codec v1.2.6 h1:7kbGefxLoDBuYXOms4yD7223OpNMMPNPZxXk5TvFcyQ=
|
github.com/ugorji/go/codec v1.1.13 h1:013LbFhocBoIqgHeIHKlV4JWYhqogATYWZhIcH0WHn4=
|
||||||
github.com/ugorji/go/codec v1.2.6/go.mod h1:V6TCNZ4PHqoHGFZuSG1W8nrCzzdgA2DozYxWFFpvxTw=
|
github.com/ugorji/go/codec v1.1.13/go.mod h1:oNVt3Dq+FO91WNQ/9JnHKQP2QJxTzoN7wCBFCq1OeuU=
|
||||||
github.com/ugorji/go/codec/codecgen v1.2.6 h1:7Hv5px3xQNvgYX2bhQv31edoyQYlcN6wOacsr0gLwGQ=
|
github.com/ugorji/go/codec/codecgen v1.1.13 h1:rGpZ4Q63VcWA3DMBbIHvg+SQweUkfXBBa/f9X0W+tFg=
|
||||||
github.com/ugorji/go/codec/codecgen v1.2.6/go.mod h1:pOEF0qieVrlmZmMUXWdMkWFrE1zfcyOnge55NbLw30U=
|
github.com/ugorji/go/codec/codecgen v1.1.13/go.mod h1:EhCxlc7Crov+HLygD4+hBCitXNrrGKRrRWj+pRsyJGg=
|
||||||
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
|
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
|
||||||
github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
|
github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
|
||||||
github.com/urfave/cli v1.22.4 h1:u7tSpNPPswAFymm8IehJhy4uJMlUuU/GmqSkvJ1InXA=
|
github.com/urfave/cli v1.22.4 h1:u7tSpNPPswAFymm8IehJhy4uJMlUuU/GmqSkvJ1InXA=
|
||||||
@ -1323,7 +1323,6 @@ golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc
|
|||||||
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
golang.org/x/tools v0.0.0-20200928182047-19e03678916f/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
golang.org/x/tools v0.0.0-20200928182047-19e03678916f/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
||||||
golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
golang.org/x/tools v0.0.0-20201028224754-2c115999a7f0/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
|
||||||
golang.org/x/tools v0.0.0-20201204162204-73cf035baebf/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
golang.org/x/tools v0.0.0-20201204162204-73cf035baebf/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a h1:CB3a9Nez8M13wwlr/E2YtwoU+qYHKfC+JrDa45RXXoQ=
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a h1:CB3a9Nez8M13wwlr/E2YtwoU+qYHKfC+JrDa45RXXoQ=
|
||||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
|
Loading…
Reference in New Issue
Block a user