From 7105ba3e0fbac799f4bd2407a658bd0c7748a215 Mon Sep 17 00:00:00 2001 From: Sorin Stanculeanu Date: Thu, 24 Oct 2024 10:41:26 +0300 Subject: [PATCH 1/6] new relayed v3 --- data/transaction/apiTransactionResult.go | 1 + data/transaction/frontendTransaction.go | 2 + data/transaction/transaction.pb.go | 199 ++++++++++++++++++----- data/transaction/transaction.proto | 2 + 4 files changed, 166 insertions(+), 38 deletions(-) diff --git a/data/transaction/apiTransactionResult.go b/data/transaction/apiTransactionResult.go index ca9671b10..624b07136 100644 --- a/data/transaction/apiTransactionResult.go +++ b/data/transaction/apiTransactionResult.go @@ -63,6 +63,7 @@ type ApiTransactionResult struct { IsRefund bool `json:"isRefund,omitempty"` CallType string `json:"callType,omitempty"` RelayerAddress string `json:"relayerAddress,omitempty"` + RelayerSignature string `json:"relayerSignature,omitempty"` RelayedValue string `json:"relayedValue,omitempty"` ChainID string `json:"chainID,omitempty"` Version uint32 `json:"version,omitempty"` diff --git a/data/transaction/frontendTransaction.go b/data/transaction/frontendTransaction.go index b5b55c2a4..1330c15bd 100644 --- a/data/transaction/frontendTransaction.go +++ b/data/transaction/frontendTransaction.go @@ -17,4 +17,6 @@ type FrontendTransaction struct { Options uint32 `json:"options,omitempty"` GuardianAddr string `json:"guardian,omitempty"` GuardianSignature string `json:"guardianSignature,omitempty"` + RelayerAddr string `json:"relayer,omitempty"` + RelayerSignature string `json:"relayerSignature,omitempty"` } diff --git a/data/transaction/transaction.pb.go b/data/transaction/transaction.pb.go index a8b2dd871..e9a3670ad 100644 --- a/data/transaction/transaction.pb.go +++ b/data/transaction/transaction.pb.go @@ -45,6 +45,8 @@ type Transaction struct { Options uint32 `protobuf:"varint,13,opt,name=Options,proto3" json:"options,omitempty"` GuardianAddr []byte `protobuf:"bytes,14,opt,name=GuardianAddr,proto3" json:"guardian,omitempty"` GuardianSignature []byte `protobuf:"bytes,15,opt,name=GuardianSignature,proto3" json:"guardianSignature,omitempty"` + RelayerAddr []byte `protobuf:"bytes,16,opt,name=RelayerAddr,proto3" json:"relayer,omitempty"` + RelayerSignature []byte `protobuf:"bytes,17,opt,name=RelayerSignature,proto3" json:"relayerSignature,omitempty"` } func (m *Transaction) Reset() { *m = Transaction{} } @@ -180,6 +182,20 @@ func (m *Transaction) GetGuardianSignature() []byte { return nil } +func (m *Transaction) GetRelayerAddr() []byte { + if m != nil { + return m.RelayerAddr + } + return nil +} + +func (m *Transaction) GetRelayerSignature() []byte { + if m != nil { + return m.RelayerSignature + } + return nil +} + func init() { proto.RegisterType((*Transaction)(nil), "proto.Transaction") } @@ -187,43 +203,46 @@ func init() { func init() { proto.RegisterFile("transaction.proto", fileDescriptor_2cc4e03d2c28c490) } var fileDescriptor_2cc4e03d2c28c490 = []byte{ - // 573 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x31, 0x6f, 0xd4, 0x3e, - 0x18, 0xc6, 0xe3, 0xff, 0xbf, 0x77, 0x69, 0x7d, 0xd7, 0xa2, 0x1a, 0x15, 0x02, 0x48, 0x76, 0x85, - 0xa0, 0xea, 0xc0, 0x5d, 0x24, 0x10, 0x0b, 0x9d, 0xb8, 0x16, 0x55, 0x95, 0xa0, 0xa0, 0x14, 0x3a, - 0xb0, 0xf9, 0x12, 0x93, 0xb3, 0xd4, 0xd8, 0x95, 0xe3, 0x9c, 0xca, 0x80, 0xc4, 0x47, 0xe0, 0x63, - 0x20, 0x36, 0xbe, 0x05, 0x63, 0xc7, 0x4e, 0x81, 0xe6, 0x16, 0x94, 0xa9, 0x1f, 0x01, 0xc5, 0xb9, - 0x34, 0x6e, 0x99, 0x98, 0x62, 0xff, 0xde, 0xe7, 0x79, 0x1f, 0xcb, 0xce, 0x0b, 0x57, 0xb5, 0xa2, - 0x22, 0xa5, 0xa1, 0xe6, 0x52, 0x0c, 0x8f, 0x95, 0xd4, 0x12, 0x75, 0xcc, 0xe7, 0xee, 0x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b, 0xa2, 0x45, 0xaf, 0xe0, 0x6a, - 0xb3, 0x6f, 0xcf, 0x7a, 0xc3, 0x34, 0x20, 0x65, 0x4e, 0xee, 0xc5, 0xd7, 0x8b, 0x56, 0xa7, 0xbf, - 0x9d, 0xa3, 0x4f, 0xa7, 0xe7, 0xd8, 0x39, 0x3b, 0xc7, 0xce, 0xc5, 0x39, 0x06, 0x9f, 0x0b, 0x0c, - 0xbe, 0x16, 0x18, 0xfc, 0x28, 0x30, 0x38, 0x2d, 0x30, 0x38, 0x2b, 0x30, 0xf8, 0x55, 0x60, 0xf0, - 0xbb, 0xc0, 0xce, 0x45, 0x81, 0xc1, 0x97, 0x19, 0x76, 0x4e, 0x67, 0xd8, 0x39, 0x9b, 0x61, 0xe7, - 0xfd, 0xf6, 0x3f, 0xcc, 0x84, 0x6f, 0x8d, 0xf8, 0x96, 0xb5, 0x1e, 0x77, 0xcd, 0xe4, 0x3e, 0xf9, - 0x13, 0x00, 0x00, 0xff, 0xff, 0x38, 0xda, 0x76, 0x84, 0x04, 0x04, 0x00, 0x00, + // 615 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x4e, 0xd4, 0x40, + 0x18, 0xdf, 0x2a, 0x4b, 0x61, 0x76, 0x41, 0x76, 0x0c, 0x5a, 0x31, 0x99, 0x21, 0x46, 0x09, 0x07, + 0x77, 0x9b, 0x68, 0x8c, 0x89, 0x9c, 0x5c, 0x30, 0x04, 0xa3, 0x68, 0x8a, 0x72, 0xf0, 0x36, 0xdb, + 0x8e, 0xdd, 0x49, 0xe8, 0x94, 0x4c, 0x67, 0x37, 0x70, 0x30, 0xf1, 0x11, 0x7c, 0x0c, 0xe3, 0x03, + 0xf8, 0x0c, 0x1e, 0x39, 0x72, 0xaa, 0x52, 0x2e, 0xa6, 0x27, 0x1e, 0xc1, 0xf4, 0xeb, 0x96, 0x0e, + 0xcb, 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3, 0x94, + 0x76, 0xe2, 0x12, 0x32, 0x24, 0x15, 0x0b, 0xbf, 0x40, 0xed, 0xed, 0x11, 0x53, 0x81, 0x60, 0x12, + 0x4e, 0x6b, 0x11, 0xa2, 0xca, 0x5d, 0x99, 0xe0, 0x86, 0xec, 0x0a, 0x17, 0xbf, 0x45, 0x9d, 0xaa, + 0xae, 0x67, 0xbd, 0x05, 0x06, 0x34, 0x4f, 0xe9, 0xfd, 0x70, 0xba, 0x69, 0x38, 0x5d, 0x57, 0xe2, + 0xe7, 0xa8, 0xe5, 0xf1, 0x03, 0x76, 0xcc, 0x15, 0x4c, 0xb2, 0x04, 0x46, 0x30, 0xbf, 0x2a, 0xe1, + 0x2b, 0x97, 0xad, 0x66, 0xe2, 0xd7, 0x68, 0x69, 0x52, 0xd6, 0x63, 0x74, 0x40, 0x4d, 0xf2, 0x94, + 0xae, 0xa8, 0xa9, 0x9e, 0x61, 0x73, 0x4d, 0xd7, 0xff, 0x72, 0x72, 0x46, 0x1a, 0xa7, 0x67, 0xa4, + 0x71, 0x71, 0x46, 0xac, 0xaf, 0x19, 0xb1, 0xbe, 0x67, 0xc4, 0xfa, 0x95, 0x11, 0xeb, 0x24, 0x23, + 0xd6, 0x69, 0x46, 0xac, 0x3f, 0x19, 0xb1, 0xfe, 0x66, 0xa4, 0x71, 0x91, 0x11, 0xeb, 0xdb, 0x39, + 0x69, 0x9c, 0x9c, 0x93, 0xc6, 0xe9, 0x39, 0x69, 0x7c, 0xda, 0xfc, 0x8f, 0x1f, 0xd3, 0x35, 0xde, + 0x99, 0x0d, 0x63, 0x3d, 0x98, 0x85, 0xe7, 0xe3, 0xe9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8b, + 0xe9, 0x09, 0xf0, 0x89, 0x04, 0x00, 0x00, } func (this *Transaction) Equal(that interface{}) bool { @@ -293,13 +312,19 @@ func (this *Transaction) Equal(that interface{}) bool { if !bytes.Equal(this.GuardianSignature, that1.GuardianSignature) { return false } + if !bytes.Equal(this.RelayerAddr, that1.RelayerAddr) { + return false + } + if !bytes.Equal(this.RelayerSignature, that1.RelayerSignature) { + return false + } return true } func (this *Transaction) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 19) + s := make([]string, 0, 21) s = append(s, "&transaction.Transaction{") s = append(s, "Nonce: "+fmt.Sprintf("%#v", this.Nonce)+",\n") s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n") @@ -316,6 +341,8 @@ func (this *Transaction) GoString() string { s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") s = append(s, "GuardianAddr: "+fmt.Sprintf("%#v", this.GuardianAddr)+",\n") s = append(s, "GuardianSignature: "+fmt.Sprintf("%#v", this.GuardianSignature)+",\n") + s = append(s, "RelayerAddr: "+fmt.Sprintf("%#v", this.RelayerAddr)+",\n") + s = append(s, "RelayerSignature: "+fmt.Sprintf("%#v", this.RelayerSignature)+",\n") s = append(s, "}") return strings.Join(s, "") } @@ -347,6 +374,24 @@ func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.RelayerSignature) > 0 { + i -= len(m.RelayerSignature) + copy(dAtA[i:], m.RelayerSignature) + i = encodeVarintTransaction(dAtA, i, uint64(len(m.RelayerSignature))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + if len(m.RelayerAddr) > 0 { + i -= len(m.RelayerAddr) + copy(dAtA[i:], m.RelayerAddr) + i = encodeVarintTransaction(dAtA, i, uint64(len(m.RelayerAddr))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } if len(m.GuardianSignature) > 0 { i -= len(m.GuardianSignature) copy(dAtA[i:], m.GuardianSignature) @@ -522,6 +567,14 @@ func (m *Transaction) Size() (n int) { if l > 0 { n += 1 + l + sovTransaction(uint64(l)) } + l = len(m.RelayerAddr) + if l > 0 { + n += 2 + l + sovTransaction(uint64(l)) + } + l = len(m.RelayerSignature) + if l > 0 { + n += 2 + l + sovTransaction(uint64(l)) + } return n } @@ -551,6 +604,8 @@ func (this *Transaction) String() string { `Options:` + fmt.Sprintf("%v", this.Options) + `,`, `GuardianAddr:` + fmt.Sprintf("%v", this.GuardianAddr) + `,`, `GuardianSignature:` + fmt.Sprintf("%v", this.GuardianSignature) + `,`, + `RelayerAddr:` + fmt.Sprintf("%v", this.RelayerAddr) + `,`, + `RelayerSignature:` + fmt.Sprintf("%v", this.RelayerSignature) + `,`, `}`, }, "") return s @@ -1031,6 +1086,74 @@ func (m *Transaction) Unmarshal(dAtA []byte) error { m.GuardianSignature = []byte{} } iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelayerAddr", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RelayerAddr = append(m.RelayerAddr[:0], dAtA[iNdEx:postIndex]...) + if m.RelayerAddr == nil { + m.RelayerAddr = []byte{} + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelayerSignature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RelayerSignature = append(m.RelayerSignature[:0], dAtA[iNdEx:postIndex]...) + if m.RelayerSignature == nil { + m.RelayerSignature = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTransaction(dAtA[iNdEx:]) diff --git a/data/transaction/transaction.proto b/data/transaction/transaction.proto index e9026a452..2a263f5df 100644 --- a/data/transaction/transaction.proto +++ b/data/transaction/transaction.proto @@ -30,4 +30,6 @@ message Transaction { uint32 Options = 13 [(gogoproto.jsontag) = "options,omitempty"]; bytes GuardianAddr = 14 [(gogoproto.jsontag) = "guardian,omitempty"]; bytes GuardianSignature = 15 [(gogoproto.jsontag) = "guardianSignature,omitempty"]; + bytes RelayerAddr = 16 [(gogoproto.jsontag) = "relayer,omitempty"]; + bytes RelayerSignature = 17 [(gogoproto.jsontag) = "relayerSignature,omitempty"]; } From 65c67240b624eda0a304983fea9cb479fb823c18 Mon Sep 17 00:00:00 2001 From: Sorin Stanculeanu Date: Thu, 24 Oct 2024 11:11:32 +0300 Subject: [PATCH 2/6] added interface for new methods --- data/interface.go | 6 ++++++ data/transaction/transaction.go | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/data/interface.go b/data/interface.go index 97f5ecd76..88cabda69 100644 --- a/data/interface.go +++ b/data/interface.go @@ -314,6 +314,12 @@ type GuardedTransactionHandler interface { GetDataForSigning(encoder Encoder, marshaller Marshaller, hasher Hasher) ([]byte, error) } +// RelayedTransactionHandler defines functionality for the relayed transactions +type RelayedTransactionHandler interface { + GetRelayerAddr() []byte + GetRelayerSignature() []byte +} + // LogHandler defines the type for a log resulted from executing a transaction or smart contract call type LogHandler interface { // GetAddress returns the address of the sc that was originally called by the user diff --git a/data/transaction/transaction.go b/data/transaction/transaction.go index b5b42531c..16275bd83 100644 --- a/data/transaction/transaction.go +++ b/data/transaction/transaction.go @@ -102,6 +102,15 @@ func (tx *Transaction) GetDataForSigning(encoder data.Encoder, marshaller data.M ftx.GuardianAddr = guardianAddr } + if len(tx.RelayerAddr) > 0 { + relayerAddr, errRelayer := encoder.Encode(tx.RelayerAddr) + if errRelayer != nil { + return nil, errRelayer + } + + ftx.RelayerAddr = relayerAddr + } + ftxBytes, err := marshaller.Marshal(ftx) if err != nil { return nil, err From bbc08e634e511047a9434b9af9544965b3d2f8a1 Mon Sep 17 00:00:00 2001 From: Sorin Stanculeanu Date: Thu, 24 Oct 2024 11:12:46 +0300 Subject: [PATCH 3/6] extended interface --- data/interface.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/interface.go b/data/interface.go index 88cabda69..f53a01aef 100644 --- a/data/interface.go +++ b/data/interface.go @@ -318,6 +318,8 @@ type GuardedTransactionHandler interface { type RelayedTransactionHandler interface { GetRelayerAddr() []byte GetRelayerSignature() []byte + GetSignature() []byte + GetDataForSigning(encoder Encoder, marshaller Marshaller, hasher Hasher) ([]byte, error) } // LogHandler defines the type for a log resulted from executing a transaction or smart contract call From 0580ffeedb71ca92f744029d28113026ca77967c Mon Sep 17 00:00:00 2001 From: miiu Date: Wed, 15 Jan 2025 12:44:20 +0200 Subject: [PATCH 4/6] extend fee info structure --- data/outport/feeInfo.go | 5 + data/outport/outportBlock.pb.go | 287 ++++++++++++++++++-------------- data/outport/outportBlock.proto | 1 + 3 files changed, 170 insertions(+), 123 deletions(-) diff --git a/data/outport/feeInfo.go b/data/outport/feeInfo.go index 3741fa022..21a1c19ff 100644 --- a/data/outport/feeInfo.go +++ b/data/outport/feeInfo.go @@ -16,3 +16,8 @@ func (f *FeeInfo) SetGasUsed(gasUsed uint64) { func (f *FeeInfo) SetFee(fee *big.Int) { f.Fee = fee } + +// SetGasRefunded sets the gas units refunded +func (f *FeeInfo) SetGasRefunded(gasRefunded uint64) { + f.GasRefunded = gasRefunded +} diff --git a/data/outport/outportBlock.pb.go b/data/outport/outportBlock.pb.go index f7020b56c..94d072bad 100644 --- a/data/outport/outportBlock.pb.go +++ b/data/outport/outportBlock.pb.go @@ -325,6 +325,7 @@ type FeeInfo struct { GasUsed uint64 `protobuf:"varint,1,opt,name=GasUsed,proto3" json:"gasUsed"` Fee *math_big.Int `protobuf:"bytes,2,opt,name=Fee,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"fee,omitempty"` InitialPaidFee *math_big.Int `protobuf:"bytes,3,opt,name=InitialPaidFee,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"initialPaidFee,omitempty"` + GasRefunded uint64 `protobuf:"varint,4,opt,name=GasRefunded,proto3" json:"gasRefunded,omitempty"` } func (m *FeeInfo) Reset() { *m = FeeInfo{} } @@ -376,6 +377,13 @@ func (m *FeeInfo) GetInitialPaidFee() *math_big.Int { return nil } +func (m *FeeInfo) GetGasRefunded() uint64 { + if m != nil { + return m.GasRefunded + } + return 0 +} + type TxInfo struct { Transaction *transaction.Transaction `protobuf:"bytes,1,opt,name=Transaction,proto3" json:"transaction,omitempty"` FeeInfo *FeeInfo `protobuf:"bytes,2,opt,name=FeeInfo,proto3" json:"feeInfo,omitempty"` @@ -1138,128 +1146,129 @@ func init() { func init() { proto.RegisterFile("outportBlock.proto", fileDescriptor_661b95cef868af95) } var fileDescriptor_661b95cef868af95 = []byte{ - // 1931 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0x4b, 0x70, 0xe3, 0x48, - 0x19, 0x8e, 0xfc, 0x88, 0xe3, 0xdf, 0x89, 0x93, 0xe9, 0xcd, 0x04, 0x4d, 0x86, 0xb5, 0x82, 0x67, - 0x76, 0x49, 0x31, 0x8c, 0xcd, 0xce, 0x4e, 0x51, 0x53, 0x33, 0xb5, 0x05, 0xa3, 0xcc, 0xcb, 0xcc, - 0x23, 0x29, 0x25, 0xb0, 0xcc, 0x16, 0x55, 0x20, 0x5b, 0x1d, 0x59, 0x35, 0xb6, 0xda, 0x48, 0xed, - 0x60, 0x73, 0x81, 0x13, 0xcb, 0x81, 0xad, 0xe2, 0xc8, 0x8d, 0x2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, - 0xd6, 0xd1, 0x64, 0xf6, 0x20, 0x40, 0xf6, 0xcf, 0x03, 0x62, 0x0e, 0x28, 0xf6, 0xb0, 0x75, 0xb7, - 0xd7, 0x23, 0x63, 0x97, 0x66, 0x5e, 0x39, 0x60, 0xf3, 0x4f, 0x15, 0x58, 0xdd, 0x97, 0xb2, 0x09, - 0xb5, 0xa1, 0x72, 0xd8, 0x37, 0x3d, 0xab, 0x73, 0x4f, 0x55, 0x76, 0x94, 0xdd, 0x35, 0xfd, 0x62, - 0x18, 0x68, 0x17, 0x7c, 0x4e, 0xfa, 0x3a, 0x19, 0x3a, 0x14, 0x0f, 0x47, 0x74, 0x6a, 0xc4, 0x52, - 0xe8, 0x21, 0x54, 0x99, 0xe6, 0x3d, 0x93, 0x9a, 0x6a, 0x61, 0x47, 0xd9, 0xad, 0xdd, 0xd8, 0xe0, - 0xe0, 0xad, 0x19, 0x5d, 0xff, 0x52, 0x18, 0x68, 0x6f, 0x75, 0xe3, 0x57, 0x09, 0x26, 0xd1, 0x45, - 0x3f, 0x84, 0xf5, 0xa3, 0x24, 0xa6, 0x07, 0x84, 0x0c, 0xd4, 0x22, 0x83, 0xdb, 0x12, 0x70, 0x19, - 0xae, 0xfe, 0x76, 0x18, 0x68, 0x97, 0x68, 0x9a, 0x28, 0x41, 0x67, 0xd1, 0x90, 0x0f, 0x9b, 0x8f, - 0xb0, 0x69, 0x61, 0xef, 0xa1, 0xe9, 0xef, 0x11, 0xd7, 0x1f, 0x0f, 0x47, 0x11, 0x4f, 0x2d, 0x31, - 0x2b, 0x97, 0x85, 0x95, 0x3c, 0x11, 0xbd, 0x19, 0x06, 0x5a, 0xa3, 0x9f, 0xc3, 0x91, 0xec, 0xe5, - 0x82, 0xa3, 0x1f, 0xc3, 0xfa, 0xdd, 0x94, 0xe3, 0x7d, 0xb5, 0xbc, 0x53, 0xdc, 0xad, 0xdd, 0xd8, - 0x15, 0xf6, 0x64, 0xef, 0xb7, 0x32, 0xa2, 0xf7, 0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58, 0x7a, 0xf5, 0xa6, 0xb1, 0xf4, 0xd1, 0x79, 0x46, - 0xca, 0xb6, 0xf8, 0x3f, 0xc0, 0x1d, 0xf1, 0xdb, 0x5d, 0x66, 0x0e, 0x7b, 0xff, 0x3f, 0x01, 0x00, - 0x00, 0xff, 0xff, 0xe1, 0x15, 0x1f, 0x1e, 0x21, 0x18, 0x00, 0x00, + // 1946 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xcb, 0x6f, 0x1c, 0x49, + 0x19, 0x77, 0xcf, 0xc3, 0xe3, 0xf9, 0x6c, 0x8f, 0x9d, 0x8a, 0x63, 0x3a, 0x0e, 0x3b, 0x6d, 0x26, + 0xd9, 0xc5, 0x22, 0x64, 0x86, 0xcd, 0x46, 0x28, 0x4a, 0xb4, 0x82, 0xb4, 0xf3, 0x1a, 0xf2, 0xb0, + 0xd5, 0x36, 0x2c, 0x5e, 0x21, 0x41, 0xcf, 0x74, 0xb9, 0xa7, 0x95, 0x99, 0xae, 0xa1, 0xbb, 0xc6, + 0xcc, 0x70, 0x81, 0x13, 0xcb, 0x81, 0x95, 0x38, 0x72, 0xe3, 0x8a, 0xf8, 0x07, 0x38, 0x70, 0x47, + 0x9c, 0x50, 0x4e, 0x28, 0xa7, 0x86, 0x38, 0x17, 0xd4, 0x48, 0x68, 0x6f, 0x5c, 0x51, 0x57, 0x55, + 0x4f, 0x57, 0xf7, 0xb4, 0x57, 0xe3, 0x85, 0x88, 0x8b, 0xa7, 0xfb, 0x7b, 0xfc, 0xbe, 0xaa, 0xef, + 0x59, 0xd5, 0x06, 0x44, 0x46, 0x74, 0x48, 0x3c, 0xaa, 0xf7, 0x49, 0xf7, 0x45, 0x73, 0xe8, 0x11, + 0x4a, 0x50, 0x99, 0xfd, 0x6c, 0xdd, 0xb0, 0x1d, 0xda, 0x1b, 0x75, 0x9a, 0x5d, 0x32, 0x68, 0x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92, 0xaa, 0x24, 0x9b, 0x68, 0x32, 0x07, 0x97, 0x98, 0x55, 0x49, 0x33, 0xe3, 0x55, 0x49, + 0x16, 0x7d, 0x00, 0x25, 0x9d, 0x58, 0x13, 0xb5, 0xcc, 0xfc, 0xb3, 0x1c, 0xb7, 0x19, 0x62, 0x4d, + 0x78, 0xfa, 0x75, 0x88, 0x35, 0x91, 0x54, 0x99, 0x30, 0xea, 0xc1, 0x46, 0x3b, 0x6a, 0xe9, 0x6c, + 0xd7, 0xcf, 0x1c, 0xd7, 0x61, 0x1e, 0xe3, 0xc5, 0x90, 0xf4, 0xaa, 0x29, 0x83, 0xd7, 0xba, 0x93, + 0xa3, 0x21, 0xd7, 0x7a, 0x1e, 0x62, 0xe3, 0x13, 0x98, 0x69, 0x61, 0xa8, 0x07, 0x2b, 0x12, 0xc9, + 0x57, 0x95, 0x54, 0xf1, 0x67, 0xa4, 0xe5, 0x77, 0x51, 0xfc, 0x2c, 0x99, 0xa5, 0x26, 0x27, 0xaf, + 0x22, 0x85, 0x8c, 0x7e, 0xa9, 0xc0, 0xc6, 0xc1, 0xec, 0x04, 0x8b, 0xe2, 0x1a, 0x99, 0xfc, 0xc6, + 0x19, 0x26, 0xf3, 0x54, 0xb8, 0x69, 0xe6, 0x88, 0x9c, 0x99, 0x98, 0x72, 0x44, 0x9e, 0x3a, 0x3a, + 0x84, 0x8a, 0xc1, 0x06, 0x97, 0xaf, 0x16, 0x99, 0xf1, 0xab, 0x67, 0x18, 0x17, 0x52, 0xdc, 0x1e, + 0x4b, 0x57, 0x3e, 0xf0, 0x64, 0x13, 0x31, 0x14, 0xfa, 0x3e, 0x2c, 0x19, 0x7c, 0xa4, 0xfa, 0x6a, + 0x89, 0xc1, 0x5e, 0x3b, 0x13, 0x96, 0x8b, 0x71, 0xdc, 0xcd, 0x30, 0xd0, 0x90, 0x18, 0xc6, 0x32, + 0xf0, 0x14, 0x0d, 0xfd, 0x08, 0xa0, 0xed, 0x9e, 0x98, 0x7d,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58, 0x9a, 0x7e, 0xf9, 0x99, 0xd3, 0x7f, 0x77, 0xa0, 0xc6, + 0x32, 0x37, 0x49, 0xb1, 0x42, 0xd2, 0xc7, 0x3a, 0x29, 0x8e, 0x91, 0x91, 0x44, 0x83, 0xd9, 0xef, + 0x59, 0xc5, 0xd4, 0x5d, 0x2c, 0x26, 0xff, 0x4f, 0xbe, 0x65, 0xbd, 0xcd, 0x8f, 0x27, 0x36, 0xd4, + 0xd8, 0x97, 0x9a, 0xa8, 0xb5, 0xf3, 0x3b, 0xce, 0x9c, 0xee, 0x6b, 0xa6, 0xbe, 0x5f, 0xf0, 0x03, + 0x6b, 0x2d, 0x0c, 0x34, 0x48, 0xbe, 0x5f, 0xc8, 0x5f, 0x2d, 0x1a, 0x4d, 0x28, 0x33, 0xd5, 0x39, + 0xf1, 0xf5, 0xd1, 0xcb, 0xd7, 0xf5, 0x85, 0x57, 0xaf, 0xeb, 0x0b, 0x9f, 0xbd, 0xae, 0x2b, 0x3f, + 0x3f, 0xad, 0x2b, 0xbf, 0x3b, 0xad, 0x2b, 0x7f, 0x3e, 0xad, 0x2b, 0x2f, 0x4f, 0xeb, 0xca, 0xab, + 0xd3, 0xba, 0xf2, 0xf7, 0xd3, 0xba, 0xf2, 0x8f, 0xd3, 0xfa, 0xc2, 0x67, 0xa7, 0x75, 0xe5, 0xd7, + 0x6f, 0xea, 0x0b, 0x2f, 0xdf, 0xd4, 0x17, 0x5e, 0xbd, 0xa9, 0x2f, 0x7c, 0x7c, 0x9e, 0xf3, 0x68, + 0x4b, 0xfc, 0x13, 0xe1, 0xae, 0xf8, 0xed, 0x2c, 0x32, 0x87, 0x7d, 0xf0, 0x9f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x3c, 0x43, 0x25, 0xe9, 0x5e, 0x18, 0x00, 0x00, } func (this *OutportBlock) Equal(that interface{}) bool { @@ -1491,6 +1500,9 @@ func (this *FeeInfo) Equal(that interface{}) bool { return false } } + if this.GasRefunded != that1.GasRefunded { + return false + } return true } func (this *TxInfo) Equal(that interface{}) bool { @@ -2067,11 +2079,12 @@ func (this *FeeInfo) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 7) + s := make([]string, 0, 8) s = append(s, "&outport.FeeInfo{") s = append(s, "GasUsed: "+fmt.Sprintf("%#v", this.GasUsed)+",\n") s = append(s, "Fee: "+fmt.Sprintf("%#v", this.Fee)+",\n") s = append(s, "InitialPaidFee: "+fmt.Sprintf("%#v", this.InitialPaidFee)+",\n") + s = append(s, "GasRefunded: "+fmt.Sprintf("%#v", this.GasRefunded)+",\n") s = append(s, "}") return strings.Join(s, "") } @@ -2730,6 +2743,11 @@ func (m *FeeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.GasRefunded != 0 { + i = encodeVarintOutportBlock(dAtA, i, uint64(m.GasRefunded)) + i-- + dAtA[i] = 0x20 + } { __caster := &github_com_multiversx_mx_chain_core_go_data.BigIntCaster{} size := __caster.Size(m.InitialPaidFee) @@ -3622,6 +3640,9 @@ func (m *FeeInfo) Size() (n int) { l = __caster.Size(m.InitialPaidFee) n += 1 + l + sovOutportBlock(uint64(l)) } + if m.GasRefunded != 0 { + n += 1 + sovOutportBlock(uint64(m.GasRefunded)) + } return n } @@ -4039,6 +4060,7 @@ func (this *FeeInfo) String() string { `GasUsed:` + fmt.Sprintf("%v", this.GasUsed) + `,`, `Fee:` + fmt.Sprintf("%v", this.Fee) + `,`, `InitialPaidFee:` + fmt.Sprintf("%v", this.InitialPaidFee) + `,`, + `GasRefunded:` + fmt.Sprintf("%v", this.GasRefunded) + `,`, `}`, }, "") return s @@ -5895,6 +5917,25 @@ func (m *FeeInfo) Unmarshal(dAtA []byte) error { } } iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GasRefunded", wireType) + } + m.GasRefunded = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOutportBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GasRefunded |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipOutportBlock(dAtA[iNdEx:]) diff --git a/data/outport/outportBlock.proto b/data/outport/outportBlock.proto index dfad100a2..bb9743276 100644 --- a/data/outport/outportBlock.proto +++ b/data/outport/outportBlock.proto @@ -51,6 +51,7 @@ message FeeInfo { uint64 GasUsed = 1 [(gogoproto.jsontag) = "gasUsed"]; bytes Fee = 2 [(gogoproto.jsontag) = "fee,omitempty", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; bytes InitialPaidFee = 3 [(gogoproto.jsontag) = "initialPaidFee,omitempty", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + uint64 GasRefunded = 4 [(gogoproto.jsontag) = "gasRefunded,omitempty"]; } message TxInfo { From 6fe74e0386385d66c54de1bf83d273d768e0f856 Mon Sep 17 00:00:00 2001 From: miiu Date: Thu, 16 Jan 2025 10:12:04 +0200 Subject: [PATCH 5/6] extra field --- data/outport/outportBlock.pb.go | 295 ++++++++++++++++++-------------- data/outport/outportBlock.proto | 1 + 2 files changed, 172 insertions(+), 124 deletions(-) diff --git a/data/outport/outportBlock.pb.go b/data/outport/outportBlock.pb.go index 94d072bad..f3cf4d6bc 100644 --- a/data/outport/outportBlock.pb.go +++ b/data/outport/outportBlock.pb.go @@ -326,6 +326,7 @@ type FeeInfo struct { Fee *math_big.Int `protobuf:"bytes,2,opt,name=Fee,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"fee,omitempty"` InitialPaidFee *math_big.Int `protobuf:"bytes,3,opt,name=InitialPaidFee,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"initialPaidFee,omitempty"` GasRefunded uint64 `protobuf:"varint,4,opt,name=GasRefunded,proto3" json:"gasRefunded,omitempty"` + HadRefund bool `protobuf:"varint,5,opt,name=HadRefund,proto3" json:"hadRefund,omitempty"` } func (m *FeeInfo) Reset() { *m = FeeInfo{} } @@ -384,6 +385,13 @@ func (m *FeeInfo) GetGasRefunded() uint64 { return 0 } +func (m *FeeInfo) GetHadRefund() bool { + if m != nil { + return m.HadRefund + } + return false +} + type TxInfo struct { Transaction *transaction.Transaction `protobuf:"bytes,1,opt,name=Transaction,proto3" json:"transaction,omitempty"` FeeInfo *FeeInfo `protobuf:"bytes,2,opt,name=FeeInfo,proto3" json:"feeInfo,omitempty"` @@ -1146,129 +1154,130 @@ func init() { func init() { proto.RegisterFile("outportBlock.proto", fileDescriptor_661b95cef868af95) } var fileDescriptor_661b95cef868af95 = []byte{ - // 1946 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xcb, 0x6f, 0x1c, 0x49, - 0x19, 0x77, 0xcf, 0xc3, 0xe3, 0xf9, 0x6c, 0x8f, 0x9d, 0x8a, 0x63, 0x3a, 0x0e, 0x3b, 0x6d, 0x26, - 0xd9, 0xc5, 0x22, 0x64, 0x86, 0xcd, 0x46, 0x28, 0x4a, 0xb4, 0x82, 0xb4, 0xf3, 0x1a, 0xf2, 0xb0, - 0xd5, 0x36, 0x2c, 0x5e, 0x21, 0x41, 0xcf, 0x74, 0xb9, 0xa7, 0x95, 0x99, 0xae, 0xa1, 0xbb, 0xc6, - 0xcc, 0x70, 0x81, 0x13, 0xcb, 0x81, 0x95, 0x38, 0x72, 0xe3, 0x8a, 0xf8, 0x07, 0x38, 0x70, 0x47, - 0x9c, 0x50, 0x4e, 0x28, 0xa7, 0x86, 0x38, 0x17, 0xd4, 0x48, 0x68, 0x6f, 0x5c, 0x51, 0x57, 0x55, - 0x4f, 0x57, 0xf7, 0xb4, 0x57, 0xe3, 0x85, 0x88, 0x8b, 0xa7, 0xfb, 0x7b, 0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0x13, 0x8a, - 0x7d, 0x66, 0x75, 0x45, 0xbf, 0x1c, 0x06, 0xda, 0xa5, 0x5e, 0x42, 0x96, 0x14, 0x65, 0x69, 0x74, - 0x1b, 0x80, 0xbf, 0x1e, 0x4e, 0x86, 0x98, 0x55, 0x6a, 0x55, 0x57, 0xc3, 0x40, 0xdb, 0xe8, 0x4d, - 0xa9, 0x92, 0xaa, 0x24, 0x9b, 0x68, 0x32, 0x07, 0x97, 0x98, 0x55, 0x49, 0x33, 0xe3, 0x55, 0x49, - 0x16, 0x7d, 0x00, 0x25, 0x9d, 0x58, 0x13, 0xb5, 0xcc, 0xfc, 0xb3, 0x1c, 0xb7, 0x19, 0x62, 0x4d, - 0x78, 0xfa, 0x75, 0x88, 0x35, 0x91, 0x54, 0x99, 0x30, 0xea, 0xc1, 0x46, 0x3b, 0x6a, 0xe9, 0x6c, - 0xd7, 0xcf, 0x1c, 0xd7, 0x61, 0x1e, 0xe3, 0xc5, 0x90, 0xf4, 0xaa, 0x29, 0x83, 0xd7, 0xba, 0x93, - 0xa3, 0x21, 0xd7, 0x7a, 0x1e, 0x62, 0xe3, 0x13, 0x98, 0x69, 0x61, 0xa8, 0x07, 0x2b, 0x12, 0xc9, - 0x57, 0x95, 0x54, 0xf1, 0x67, 0xa4, 0xe5, 0x77, 0x51, 0xfc, 0x2c, 0x99, 0xa5, 0x26, 0x27, 0xaf, - 0x22, 0x85, 0x8c, 0x7e, 0xa9, 0xc0, 0xc6, 0xc1, 0xec, 0x04, 0x8b, 0xe2, 0x1a, 0x99, 0xfc, 0xc6, - 0x19, 0x26, 0xf3, 0x54, 0xb8, 0x69, 0xe6, 0x88, 0x9c, 0x99, 0x98, 0x72, 0x44, 0x9e, 0x3a, 0x3a, - 0x84, 0x8a, 0xc1, 0x06, 0x97, 0xaf, 0x16, 0x99, 0xf1, 0xab, 0x67, 0x18, 0x17, 0x52, 0xdc, 0x1e, - 0x4b, 0x57, 0x3e, 0xf0, 0x64, 0x13, 0x31, 0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ed, 0x2c, 0x32, 0x87, 0x7d, 0xf0, 0x9f, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x3c, 0x43, 0x25, 0xe9, 0x5e, 0x18, 0x00, 0x00, + // 1967 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xcb, 0x6f, 0xe4, 0x48, + 0x19, 0x8f, 0xfb, 0x91, 0x4e, 0x7f, 0x49, 0x3a, 0x99, 0x9a, 0x4c, 0xf0, 0x64, 0xd8, 0x76, 0xe8, + 0x99, 0x5d, 0x22, 0x86, 0xe9, 0x66, 0x67, 0x07, 0x34, 0x9a, 0xd1, 0x0a, 0xc6, 0x99, 0x57, 0x33, + 0x8f, 0x44, 0x4e, 0x60, 0xc9, 0x0a, 0x09, 0xdc, 0xed, 0x8a, 0xdb, 0x9a, 0x6e, 0x57, 0x63, 0x57, + 0x87, 0x6e, 0x2e, 0x70, 0x62, 0x39, 0xb0, 0x12, 0x47, 0x6e, 0x48, 0x9c, 0x10, 0xff, 0x00, 0x07, + 0xee, 0x88, 0x13, 0x9a, 0x13, 0x9a, 0x93, 0x61, 0x32, 0x17, 0xe4, 0x03, 0xda, 0x1b, 0x57, 0xe4, + 0xaa, 0x72, 0xbb, 0xec, 0x76, 0x56, 0x9d, 0x85, 0xd5, 0x5e, 0xd2, 0xf6, 0xf7, 0xf8, 0x7d, 0x55, + 0xdf, 0xb3, 0xca, 0x01, 0x44, 0x46, 0x74, 0x48, 0x3c, 0xaa, 0xf7, 0x49, 0xf7, 0x45, 0x73, 0xe8, + 0x11, 0x4a, 0x50, 0x99, 0xfd, 0x6c, 0xdd, 0xb0, 0x1d, 0xda, 0x1b, 0x75, 0x9a, 0x5d, 0x32, 0x68, + 0xd9, 0xc4, 0x26, 0x2d, 0x46, 0xee, 0x8c, 0x8e, 0xd9, 0x1b, 0x7b, 0x61, 0x4f, 0x5c, 0x6b, 0xeb, + 0x7d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0x17, 0xb9, 0xd9, 0xc7, 0x59, 0x73, 0x07, 0x6a, 0xbc, 0xf2, + 0x1d, 0xe2, 0xee, 0x79, 0x16, 0xf6, 0x58, 0x7c, 0xc4, 0x31, 0x13, 0xa7, 0x38, 0x46, 0x46, 0xb2, + 0xf1, 0x1f, 0x05, 0x2a, 0xa2, 0xfc, 0x10, 0x81, 0x8b, 0x39, 0xc5, 0x2c, 0x76, 0xb8, 0x15, 0xd7, + 0xea, 0xac, 0x84, 0xfe, 0x95, 0x30, 0xd0, 0xde, 0xca, 0x99, 0x7e, 0xd2, 0x62, 0xf3, 0x90, 0xbf, + 0xd8, 0x9d, 0x1f, 0x42, 0x45, 0xcc, 0x14, 0xd4, 0x88, 0x82, 0xcb, 0x4e, 0x58, 0xac, 0x80, 0x75, + 0x08, 0x03, 0x6d, 0x91, 0x32, 0x8a, 0x21, 0x38, 0xe8, 0x6d, 0x28, 0x3e, 0x25, 0xb6, 0x58, 0x27, + 0x24, 0x43, 0x49, 0xaf, 0x84, 0x81, 0x56, 0xec, 0x13, 0xdb, 0x88, 0xf8, 0x8d, 0x8f, 0x14, 0x80, + 0xa4, 0x05, 0xa1, 0xf7, 0x61, 0x91, 0xbf, 0x09, 0x2f, 0xae, 0xa5, 0xba, 0xd4, 0xe1, 0x58, 0xdf, + 0x08, 0x03, 0x6d, 0x9d, 0x0f, 0x72, 0x69, 0x83, 0x42, 0x29, 0x67, 0x7f, 0x85, 0xb9, 0xf7, 0xf7, + 0x6f, 0x25, 0xff, 0x0e, 0x87, 0xde, 0x65, 0xf5, 0xb3, 0xef, 0x91, 0x13, 0xc7, 0x9a, 0x36, 0x9a, + 0xb5, 0x30, 0xd0, 0x96, 0xed, 0x84, 0x6c, 0xc8, 0x32, 0x42, 0x65, 0x5a, 0x72, 0x85, 0x94, 0x4a, + 0x4c, 0x4e, 0x17, 0xda, 0x2d, 0x58, 0x89, 0x10, 0xb0, 0x6b, 0xf6, 0xa3, 0x8b, 0x11, 0x0b, 0x4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00, 0x4b, 0xd3, 0x0f, 0x46, + 0x73, 0xfa, 0xef, 0x0e, 0xd4, 0x58, 0xe6, 0x26, 0x29, 0x56, 0x48, 0xfa, 0x58, 0x27, 0xc5, 0x31, + 0x32, 0x92, 0x68, 0x30, 0xfb, 0x19, 0xac, 0x98, 0xba, 0xc2, 0xc5, 0xe4, 0xff, 0xcb, 0x27, 0xb0, + 0xcf, 0xf3, 0x9b, 0x8b, 0x0d, 0x35, 0xf6, 0x81, 0x27, 0x6a, 0xed, 0xfc, 0x6a, 0x34, 0xa7, 0xfb, + 0x9a, 0xa9, 0xcf, 0x1e, 0xfc, 0x9c, 0x5b, 0x0b, 0x03, 0x0d, 0x92, 0xcf, 0x1e, 0xf2, 0xc7, 0x8e, + 0x46, 0x13, 0xca, 0x4c, 0x75, 0x4e, 0x7c, 0x7d, 0xf4, 0xf2, 0x75, 0x7d, 0xe1, 0xd5, 0xeb, 0xfa, + 0xc2, 0x27, 0xaf, 0xeb, 0xca, 0x2f, 0x4e, 0xeb, 0xca, 0x1f, 0x4e, 0xeb, 0xca, 0x5f, 0x4f, 0xeb, + 0xca, 0xcb, 0xd3, 0xba, 0xf2, 0xea, 0xb4, 0xae, 0xfc, 0xf3, 0xb4, 0xae, 0xfc, 0xeb, 0xb4, 0xbe, + 0xf0, 0xc9, 0x69, 0x5d, 0xf9, 0xcd, 0x9b, 0xfa, 0xc2, 0xcb, 0x37, 0xf5, 0x85, 0x57, 0x6f, 0xea, + 0x0b, 0x1f, 0x9e, 0xe7, 0x18, 0xdb, 0x12, 0xff, 0x7b, 0xb8, 0x2b, 0x7e, 0x3b, 0x8b, 0xcc, 0x61, + 0xef, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x51, 0x54, 0x02, 0x95, 0x18, 0x00, 0x00, } func (this *OutportBlock) Equal(that interface{}) bool { @@ -1503,6 +1512,9 @@ func (this *FeeInfo) Equal(that interface{}) bool { if this.GasRefunded != that1.GasRefunded { return false } + if this.HadRefund != that1.HadRefund { + return false + } return true } func (this *TxInfo) Equal(that interface{}) bool { @@ -2079,12 +2091,13 @@ func (this *FeeInfo) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 8) + s := make([]string, 0, 9) s = append(s, "&outport.FeeInfo{") s = append(s, "GasUsed: "+fmt.Sprintf("%#v", this.GasUsed)+",\n") s = append(s, "Fee: "+fmt.Sprintf("%#v", this.Fee)+",\n") s = append(s, "InitialPaidFee: "+fmt.Sprintf("%#v", this.InitialPaidFee)+",\n") s = append(s, "GasRefunded: "+fmt.Sprintf("%#v", this.GasRefunded)+",\n") + s = append(s, "HadRefund: "+fmt.Sprintf("%#v", this.HadRefund)+",\n") s = append(s, "}") return strings.Join(s, "") } @@ -2743,6 +2756,16 @@ func (m *FeeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.HadRefund { + i-- + if m.HadRefund { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } if m.GasRefunded != 0 { i = encodeVarintOutportBlock(dAtA, i, uint64(m.GasRefunded)) i-- @@ -3643,6 +3666,9 @@ func (m *FeeInfo) Size() (n int) { if m.GasRefunded != 0 { n += 1 + sovOutportBlock(uint64(m.GasRefunded)) } + if m.HadRefund { + n += 2 + } return n } @@ -4061,6 +4087,7 @@ func (this *FeeInfo) String() string { `Fee:` + fmt.Sprintf("%v", this.Fee) + `,`, `InitialPaidFee:` + fmt.Sprintf("%v", this.InitialPaidFee) + `,`, `GasRefunded:` + fmt.Sprintf("%v", this.GasRefunded) + `,`, + `HadRefund:` + fmt.Sprintf("%v", this.HadRefund) + `,`, `}`, }, "") return s @@ -5936,6 +5963,26 @@ func (m *FeeInfo) Unmarshal(dAtA []byte) error { break } } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HadRefund", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOutportBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HadRefund = bool(v != 0) default: iNdEx = preIndex skippy, err := skipOutportBlock(dAtA[iNdEx:]) diff --git a/data/outport/outportBlock.proto b/data/outport/outportBlock.proto index bb9743276..c26c0c6fe 100644 --- a/data/outport/outportBlock.proto +++ b/data/outport/outportBlock.proto @@ -52,6 +52,7 @@ message FeeInfo { bytes Fee = 2 [(gogoproto.jsontag) = "fee,omitempty", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; bytes InitialPaidFee = 3 [(gogoproto.jsontag) = "initialPaidFee,omitempty", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; uint64 GasRefunded = 4 [(gogoproto.jsontag) = "gasRefunded,omitempty"]; + bool HadRefund = 5 [(gogoproto.jsontag) = "hadRefund,omitempty"]; } message TxInfo { From adb8c08089b4faa623338a56d143f78749b9e039 Mon Sep 17 00:00:00 2001 From: miiu Date: Thu, 16 Jan 2025 10:13:27 +0200 Subject: [PATCH 6/6] new function --- data/outport/feeInfo.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/outport/feeInfo.go b/data/outport/feeInfo.go index 21a1c19ff..8229b988a 100644 --- a/data/outport/feeInfo.go +++ b/data/outport/feeInfo.go @@ -21,3 +21,8 @@ func (f *FeeInfo) SetFee(fee *big.Int) { func (f *FeeInfo) SetGasRefunded(gasRefunded uint64) { f.GasRefunded = gasRefunded } + +// SetHadRefund sets hadRefund field with true +func (f *FeeInfo) SetHadRefund() { + f.HadRefund = true +}