diff --git a/go.mod b/go.mod index a0bad35..f59bd76 100644 --- a/go.mod +++ b/go.mod @@ -11,11 +11,11 @@ require ( github.com/pkg/errors v0.9.1 github.com/qubic/go-node-connector v0.10.2 github.com/qubic/go-schnorrq v1.0.1 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.uber.org/zap v1.27.0 google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9 google.golang.org/grpc v1.67.1 - google.golang.org/protobuf v1.35.1 + google.golang.org/protobuf v1.36.1 ) require ( @@ -48,7 +48,7 @@ require ( github.com/silenceper/pool v1.0.0 // indirect github.com/sirupsen/logrus v1.9.0 // indirect go.uber.org/multierr v1.10.0 // indirect - golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect + golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 // indirect golang.org/x/net v0.28.0 // indirect golang.org/x/sys v0.26.0 // indirect golang.org/x/text v0.17.0 // indirect diff --git a/go.sum b/go.sum index 4c391f6..7d6d840 100644 --- a/go.sum +++ b/go.sum @@ -255,8 +255,8 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -288,8 +288,8 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df h1:UA2aFVmmsIlefxMk29Dp2juaUSth8Pyn3Tq5Y5mJGME= -golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= +golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 h1:aAcj0Da7eBAtrTp03QXWvm88pSyOt+UgdZw2BFZ+lEw= +golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8/go.mod h1:CQ1k9gNrJ50XIzaKCRR2hssIjF07kZFEiieALBM/ARQ= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -539,8 +539,8 @@ google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGj google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= -google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk= +google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/protobuff/archive.pb.go b/protobuff/archive.pb.go index f4db000..51653ff 100644 --- a/protobuff/archive.pb.go +++ b/protobuff/archive.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.36.1 // protoc v3.21.12 // source: archive.proto @@ -23,28 +23,25 @@ const ( ) type TickData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ComputorIndex uint32 `protobuf:"varint,1,opt,name=computor_index,json=computorIndex,proto3" json:"computor_index,omitempty"` - Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` - TickNumber uint32 `protobuf:"varint,3,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` - Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - VarStruct []byte `protobuf:"bytes,5,opt,name=var_struct,json=varStruct,proto3" json:"var_struct,omitempty"` - TimeLock []byte `protobuf:"bytes,6,opt,name=time_lock,json=timeLock,proto3" json:"time_lock,omitempty"` - TransactionIds []string `protobuf:"bytes,7,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` - ContractFees []int64 `protobuf:"varint,8,rep,packed,name=contract_fees,json=contractFees,proto3" json:"contract_fees,omitempty"` - SignatureHex string `protobuf:"bytes,9,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ComputorIndex uint32 `protobuf:"varint,1,opt,name=computor_index,json=computorIndex,proto3" json:"computor_index,omitempty"` + Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` + TickNumber uint32 `protobuf:"varint,3,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + VarStruct []byte `protobuf:"bytes,5,opt,name=var_struct,json=varStruct,proto3" json:"var_struct,omitempty"` + TimeLock []byte `protobuf:"bytes,6,opt,name=time_lock,json=timeLock,proto3" json:"time_lock,omitempty"` + TransactionIds []string `protobuf:"bytes,7,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` + ContractFees []int64 `protobuf:"varint,8,rep,packed,name=contract_fees,json=contractFees,proto3" json:"contract_fees,omitempty"` + SignatureHex string `protobuf:"bytes,9,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TickData) Reset() { *x = TickData{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TickData) String() string { @@ -55,7 +52,7 @@ func (*TickData) ProtoMessage() {} func (x *TickData) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -134,20 +131,17 @@ func (x *TickData) GetSignatureHex() string { } type GetTickDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTickDataRequest) Reset() { *x = GetTickDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTickDataRequest) String() string { @@ -158,7 +152,7 @@ func (*GetTickDataRequest) ProtoMessage() {} func (x *GetTickDataRequest) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -181,20 +175,17 @@ func (x *GetTickDataRequest) GetTickNumber() uint32 { } type GetTickDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickData *TickData `protobuf:"bytes,1,opt,name=tick_data,json=tickData,proto3" json:"tick_data,omitempty"` unknownFields protoimpl.UnknownFields - - TickData *TickData `protobuf:"bytes,1,opt,name=tick_data,json=tickData,proto3" json:"tick_data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTickDataResponse) Reset() { *x = GetTickDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTickDataResponse) String() string { @@ -205,7 +196,7 @@ func (*GetTickDataResponse) ProtoMessage() {} func (x *GetTickDataResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -228,28 +219,25 @@ func (x *GetTickDataResponse) GetTickData() *TickData { } type Transaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` + DestId string `protobuf:"bytes,2,opt,name=dest_id,json=destId,proto3" json:"dest_id,omitempty"` + Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` + TickNumber uint32 `protobuf:"varint,4,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + InputType uint32 `protobuf:"varint,5,opt,name=input_type,json=inputType,proto3" json:"input_type,omitempty"` + InputSize uint32 `protobuf:"varint,6,opt,name=input_size,json=inputSize,proto3" json:"input_size,omitempty"` + InputHex string `protobuf:"bytes,7,opt,name=input_hex,json=inputHex,proto3" json:"input_hex,omitempty"` + SignatureHex string `protobuf:"bytes,8,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + TxId string `protobuf:"bytes,9,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` unknownFields protoimpl.UnknownFields - - SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` - DestId string `protobuf:"bytes,2,opt,name=dest_id,json=destId,proto3" json:"dest_id,omitempty"` - Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` - TickNumber uint32 `protobuf:"varint,4,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` - InputType uint32 `protobuf:"varint,5,opt,name=input_type,json=inputType,proto3" json:"input_type,omitempty"` - InputSize uint32 `protobuf:"varint,6,opt,name=input_size,json=inputSize,proto3" json:"input_size,omitempty"` - InputHex string `protobuf:"bytes,7,opt,name=input_hex,json=inputHex,proto3" json:"input_hex,omitempty"` - SignatureHex string `protobuf:"bytes,8,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` - TxId string `protobuf:"bytes,9,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Transaction) Reset() { *x = Transaction{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Transaction) String() string { @@ -260,7 +248,7 @@ func (*Transaction) ProtoMessage() {} func (x *Transaction) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -339,21 +327,18 @@ func (x *Transaction) GetTxId() string { } type TransactionStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + MoneyFlew bool `protobuf:"varint,2,opt,name=moneyFlew,proto3" json:"moneyFlew,omitempty"` unknownFields protoimpl.UnknownFields - - TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` - MoneyFlew bool `protobuf:"varint,2,opt,name=moneyFlew,proto3" json:"moneyFlew,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionStatus) Reset() { *x = TransactionStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionStatus) String() string { @@ -364,7 +349,7 @@ func (*TransactionStatus) ProtoMessage() {} func (x *TransactionStatus) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -394,20 +379,17 @@ func (x *TransactionStatus) GetMoneyFlew() bool { } type TickTransactionsStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Transactions []*TransactionStatus `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` unknownFields protoimpl.UnknownFields - - Transactions []*TransactionStatus `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TickTransactionsStatus) Reset() { *x = TickTransactionsStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TickTransactionsStatus) String() string { @@ -418,7 +400,7 @@ func (*TickTransactionsStatus) ProtoMessage() {} func (x *TickTransactionsStatus) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -441,20 +423,17 @@ func (x *TickTransactionsStatus) GetTransactions() []*TransactionStatus { } type NextAvailableTick struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NextTickNumber uint32 `protobuf:"varint,1,opt,name=next_tick_number,json=nextTickNumber,proto3" json:"next_tick_number,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + NextTickNumber uint32 `protobuf:"varint,1,opt,name=next_tick_number,json=nextTickNumber,proto3" json:"next_tick_number,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NextAvailableTick) Reset() { *x = NextAvailableTick{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NextAvailableTick) String() string { @@ -465,7 +444,7 @@ func (*NextAvailableTick) ProtoMessage() {} func (x *NextAvailableTick) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -488,20 +467,17 @@ func (x *NextAvailableTick) GetNextTickNumber() uint32 { } type LastProcessedTick struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LastProcessedTick uint32 `protobuf:"varint,1,opt,name=last_processed_tick,json=lastProcessedTick,proto3" json:"last_processed_tick,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + LastProcessedTick uint32 `protobuf:"varint,1,opt,name=last_processed_tick,json=lastProcessedTick,proto3" json:"last_processed_tick,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LastProcessedTick) Reset() { *x = LastProcessedTick{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LastProcessedTick) String() string { @@ -512,7 +488,7 @@ func (*LastProcessedTick) ProtoMessage() {} func (x *LastProcessedTick) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -535,20 +511,17 @@ func (x *LastProcessedTick) GetLastProcessedTick() uint32 { } type GetTransactionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` unknownFields protoimpl.UnknownFields - - TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTransactionRequest) Reset() { *x = GetTransactionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransactionRequest) String() string { @@ -559,7 +532,7 @@ func (*GetTransactionRequest) ProtoMessage() {} func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -582,20 +555,17 @@ func (x *GetTransactionRequest) GetTxId() string { } type GetTransactionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` unknownFields protoimpl.UnknownFields - - Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTransactionResponse) Reset() { *x = GetTransactionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransactionResponse) String() string { @@ -606,7 +576,7 @@ func (*GetTransactionResponse) ProtoMessage() {} func (x *GetTransactionResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -629,20 +599,17 @@ func (x *GetTransactionResponse) GetTransaction() *Transaction { } type GetTransactionStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` unknownFields protoimpl.UnknownFields - - TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTransactionStatusRequest) Reset() { *x = GetTransactionStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransactionStatusRequest) String() string { @@ -653,7 +620,7 @@ func (*GetTransactionStatusRequest) ProtoMessage() {} func (x *GetTransactionStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -676,20 +643,17 @@ func (x *GetTransactionStatusRequest) GetTxId() string { } type GetTransactionStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TransactionStatus *TransactionStatus `protobuf:"bytes,1,opt,name=transaction_status,json=transactionStatus,proto3" json:"transaction_status,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TransactionStatus *TransactionStatus `protobuf:"bytes,1,opt,name=transaction_status,json=transactionStatus,proto3" json:"transaction_status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTransactionStatusResponse) Reset() { *x = GetTransactionStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransactionStatusResponse) String() string { @@ -700,7 +664,7 @@ func (*GetTransactionStatusResponse) ProtoMessage() {} func (x *GetTransactionStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -723,20 +687,17 @@ func (x *GetTransactionStatusResponse) GetTransactionStatus() *TransactionStatus } type GetTickTransactionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTickTransactionsRequest) Reset() { *x = GetTickTransactionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTickTransactionsRequest) String() string { @@ -747,7 +708,7 @@ func (*GetTickTransactionsRequest) ProtoMessage() {} func (x *GetTickTransactionsRequest) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -770,20 +731,17 @@ func (x *GetTickTransactionsRequest) GetTickNumber() uint32 { } type GetTickTransactionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` unknownFields protoimpl.UnknownFields - - Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTickTransactionsResponse) Reset() { *x = GetTickTransactionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTickTransactionsResponse) String() string { @@ -794,7 +752,7 @@ func (*GetTickTransactionsResponse) ProtoMessage() {} func (x *GetTickTransactionsResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -817,20 +775,17 @@ func (x *GetTickTransactionsResponse) GetTransactions() []*Transaction { } type GetTickApprovedTransactionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTickApprovedTransactionsRequest) Reset() { *x = GetTickApprovedTransactionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTickApprovedTransactionsRequest) String() string { @@ -841,7 +796,7 @@ func (*GetTickApprovedTransactionsRequest) ProtoMessage() {} func (x *GetTickApprovedTransactionsRequest) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -864,20 +819,17 @@ func (x *GetTickApprovedTransactionsRequest) GetTickNumber() uint32 { } type GetTickApprovedTransactionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ApprovedTransactions []*Transaction `protobuf:"bytes,1,rep,name=approved_transactions,json=approvedTransactions,proto3" json:"approved_transactions,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ApprovedTransactions []*Transaction `protobuf:"bytes,1,rep,name=approved_transactions,json=approvedTransactions,proto3" json:"approved_transactions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTickApprovedTransactionsResponse) Reset() { *x = GetTickApprovedTransactionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTickApprovedTransactionsResponse) String() string { @@ -888,7 +840,7 @@ func (*GetTickApprovedTransactionsResponse) ProtoMessage() {} func (x *GetTickApprovedTransactionsResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -911,21 +863,18 @@ func (x *GetTickApprovedTransactionsResponse) GetApprovedTransactions() []*Trans } type QuorumTickData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` QuorumTickStructure *QuorumTickStructure `protobuf:"bytes,1,opt,name=quorum_tick_structure,json=quorumTickStructure,proto3" json:"quorum_tick_structure,omitempty"` - QuorumDiffPerComputor map[uint32]*QuorumDiff `protobuf:"bytes,2,rep,name=quorum_diff_per_computor,json=quorumDiffPerComputor,proto3" json:"quorum_diff_per_computor,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + QuorumDiffPerComputor map[uint32]*QuorumDiff `protobuf:"bytes,2,rep,name=quorum_diff_per_computor,json=quorumDiffPerComputor,proto3" json:"quorum_diff_per_computor,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QuorumTickData) Reset() { *x = QuorumTickData{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QuorumTickData) String() string { @@ -936,7 +885,7 @@ func (*QuorumTickData) ProtoMessage() {} func (x *QuorumTickData) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -966,27 +915,24 @@ func (x *QuorumTickData) GetQuorumDiffPerComputor() map[uint32]*QuorumDiff { } type QuorumTickStructure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` - TickNumber uint32 `protobuf:"varint,3,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` - Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - PrevResourceTestingDigestHex string `protobuf:"bytes,5,opt,name=prev_resource_testing_digest_hex,json=prevResourceTestingDigestHex,proto3" json:"prev_resource_testing_digest_hex,omitempty"` - PrevSpectrumDigestHex string `protobuf:"bytes,6,opt,name=prev_spectrum_digest_hex,json=prevSpectrumDigestHex,proto3" json:"prev_spectrum_digest_hex,omitempty"` - PrevUniverseDigestHex string `protobuf:"bytes,7,opt,name=prev_universe_digest_hex,json=prevUniverseDigestHex,proto3" json:"prev_universe_digest_hex,omitempty"` - PrevComputerDigestHex string `protobuf:"bytes,8,opt,name=prev_computer_digest_hex,json=prevComputerDigestHex,proto3" json:"prev_computer_digest_hex,omitempty"` - TxDigestHex string `protobuf:"bytes,9,opt,name=tx_digest_hex,json=txDigestHex,proto3" json:"tx_digest_hex,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` + TickNumber uint32 `protobuf:"varint,3,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + PrevResourceTestingDigestHex string `protobuf:"bytes,5,opt,name=prev_resource_testing_digest_hex,json=prevResourceTestingDigestHex,proto3" json:"prev_resource_testing_digest_hex,omitempty"` + PrevSpectrumDigestHex string `protobuf:"bytes,6,opt,name=prev_spectrum_digest_hex,json=prevSpectrumDigestHex,proto3" json:"prev_spectrum_digest_hex,omitempty"` + PrevUniverseDigestHex string `protobuf:"bytes,7,opt,name=prev_universe_digest_hex,json=prevUniverseDigestHex,proto3" json:"prev_universe_digest_hex,omitempty"` + PrevComputerDigestHex string `protobuf:"bytes,8,opt,name=prev_computer_digest_hex,json=prevComputerDigestHex,proto3" json:"prev_computer_digest_hex,omitempty"` + TxDigestHex string `protobuf:"bytes,9,opt,name=tx_digest_hex,json=txDigestHex,proto3" json:"tx_digest_hex,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QuorumTickStructure) Reset() { *x = QuorumTickStructure{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QuorumTickStructure) String() string { @@ -997,7 +943,7 @@ func (*QuorumTickStructure) ProtoMessage() {} func (x *QuorumTickStructure) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1069,25 +1015,22 @@ func (x *QuorumTickStructure) GetTxDigestHex() string { } type QuorumDiff struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SaltedResourceTestingDigestHex string `protobuf:"bytes,1,opt,name=salted_resource_testing_digest_hex,json=saltedResourceTestingDigestHex,proto3" json:"salted_resource_testing_digest_hex,omitempty"` - SaltedSpectrumDigestHex string `protobuf:"bytes,2,opt,name=salted_spectrum_digest_hex,json=saltedSpectrumDigestHex,proto3" json:"salted_spectrum_digest_hex,omitempty"` - SaltedUniverseDigestHex string `protobuf:"bytes,3,opt,name=salted_universe_digest_hex,json=saltedUniverseDigestHex,proto3" json:"salted_universe_digest_hex,omitempty"` - SaltedComputerDigestHex string `protobuf:"bytes,4,opt,name=salted_computer_digest_hex,json=saltedComputerDigestHex,proto3" json:"salted_computer_digest_hex,omitempty"` - ExpectedNextTickTxDigestHex string `protobuf:"bytes,5,opt,name=expected_next_tick_tx_digest_hex,json=expectedNextTickTxDigestHex,proto3" json:"expected_next_tick_tx_digest_hex,omitempty"` - SignatureHex string `protobuf:"bytes,6,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SaltedResourceTestingDigestHex string `protobuf:"bytes,1,opt,name=salted_resource_testing_digest_hex,json=saltedResourceTestingDigestHex,proto3" json:"salted_resource_testing_digest_hex,omitempty"` + SaltedSpectrumDigestHex string `protobuf:"bytes,2,opt,name=salted_spectrum_digest_hex,json=saltedSpectrumDigestHex,proto3" json:"salted_spectrum_digest_hex,omitempty"` + SaltedUniverseDigestHex string `protobuf:"bytes,3,opt,name=salted_universe_digest_hex,json=saltedUniverseDigestHex,proto3" json:"salted_universe_digest_hex,omitempty"` + SaltedComputerDigestHex string `protobuf:"bytes,4,opt,name=salted_computer_digest_hex,json=saltedComputerDigestHex,proto3" json:"salted_computer_digest_hex,omitempty"` + ExpectedNextTickTxDigestHex string `protobuf:"bytes,5,opt,name=expected_next_tick_tx_digest_hex,json=expectedNextTickTxDigestHex,proto3" json:"expected_next_tick_tx_digest_hex,omitempty"` + SignatureHex string `protobuf:"bytes,6,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QuorumDiff) Reset() { *x = QuorumDiff{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QuorumDiff) String() string { @@ -1098,7 +1041,7 @@ func (*QuorumDiff) ProtoMessage() {} func (x *QuorumDiff) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1156,21 +1099,18 @@ func (x *QuorumDiff) GetSignatureHex() string { } type SkippedTicksInterval struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + StartTick uint32 `protobuf:"varint,1,opt,name=start_tick,json=startTick,proto3" json:"start_tick,omitempty"` + EndTick uint32 `protobuf:"varint,2,opt,name=end_tick,json=endTick,proto3" json:"end_tick,omitempty"` unknownFields protoimpl.UnknownFields - - StartTick uint32 `protobuf:"varint,1,opt,name=start_tick,json=startTick,proto3" json:"start_tick,omitempty"` - EndTick uint32 `protobuf:"varint,2,opt,name=end_tick,json=endTick,proto3" json:"end_tick,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SkippedTicksInterval) Reset() { *x = SkippedTicksInterval{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SkippedTicksInterval) String() string { @@ -1181,7 +1121,7 @@ func (*SkippedTicksInterval) ProtoMessage() {} func (x *SkippedTicksInterval) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1211,20 +1151,17 @@ func (x *SkippedTicksInterval) GetEndTick() uint32 { } type SkippedTicksIntervalList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SkippedTicks []*SkippedTicksInterval `protobuf:"bytes,1,rep,name=skipped_ticks,json=skippedTicks,proto3" json:"skipped_ticks,omitempty"` unknownFields protoimpl.UnknownFields - - SkippedTicks []*SkippedTicksInterval `protobuf:"bytes,1,rep,name=skipped_ticks,json=skippedTicks,proto3" json:"skipped_ticks,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SkippedTicksIntervalList) Reset() { *x = SkippedTicksIntervalList{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SkippedTicksIntervalList) String() string { @@ -1235,7 +1172,7 @@ func (*SkippedTicksIntervalList) ProtoMessage() {} func (x *SkippedTicksIntervalList) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1258,21 +1195,18 @@ func (x *SkippedTicksIntervalList) GetSkippedTicks() []*SkippedTicksInterval { } type QuorumTickDataStored struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` QuorumTickStructure *QuorumTickStructure `protobuf:"bytes,1,opt,name=quorum_tick_structure,json=quorumTickStructure,proto3" json:"quorum_tick_structure,omitempty"` - QuorumDiffPerComputor map[uint32]*QuorumDiffStored `protobuf:"bytes,2,rep,name=quorum_diff_per_computor,json=quorumDiffPerComputor,proto3" json:"quorum_diff_per_computor,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + QuorumDiffPerComputor map[uint32]*QuorumDiffStored `protobuf:"bytes,2,rep,name=quorum_diff_per_computor,json=quorumDiffPerComputor,proto3" json:"quorum_diff_per_computor,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QuorumTickDataStored) Reset() { *x = QuorumTickDataStored{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QuorumTickDataStored) String() string { @@ -1283,7 +1217,7 @@ func (*QuorumTickDataStored) ProtoMessage() {} func (x *QuorumTickDataStored) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1313,21 +1247,18 @@ func (x *QuorumTickDataStored) GetQuorumDiffPerComputor() map[uint32]*QuorumDiff } type QuorumDiffStored struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExpectedNextTickTxDigestHex string `protobuf:"bytes,5,opt,name=expected_next_tick_tx_digest_hex,json=expectedNextTickTxDigestHex,proto3" json:"expected_next_tick_tx_digest_hex,omitempty"` - SignatureHex string `protobuf:"bytes,6,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ExpectedNextTickTxDigestHex string `protobuf:"bytes,5,opt,name=expected_next_tick_tx_digest_hex,json=expectedNextTickTxDigestHex,proto3" json:"expected_next_tick_tx_digest_hex,omitempty"` + SignatureHex string `protobuf:"bytes,6,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QuorumDiffStored) Reset() { *x = QuorumDiffStored{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QuorumDiffStored) String() string { @@ -1338,7 +1269,7 @@ func (*QuorumDiffStored) ProtoMessage() {} func (x *QuorumDiffStored) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1368,20 +1299,17 @@ func (x *QuorumDiffStored) GetSignatureHex() string { } type LastTickQuorumDataPerEpochIntervals struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QuorumDataPerInterval map[int32]*QuorumTickData `protobuf:"bytes,1,rep,name=quorum_data_per_interval,json=quorumDataPerInterval,proto3" json:"quorum_data_per_interval,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + state protoimpl.MessageState `protogen:"open.v1"` + QuorumDataPerInterval map[int32]*QuorumTickData `protobuf:"bytes,1,rep,name=quorum_data_per_interval,json=quorumDataPerInterval,proto3" json:"quorum_data_per_interval,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LastTickQuorumDataPerEpochIntervals) Reset() { *x = LastTickQuorumDataPerEpochIntervals{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LastTickQuorumDataPerEpochIntervals) String() string { @@ -1392,7 +1320,7 @@ func (*LastTickQuorumDataPerEpochIntervals) ProtoMessage() {} func (x *LastTickQuorumDataPerEpochIntervals) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1415,20 +1343,17 @@ func (x *LastTickQuorumDataPerEpochIntervals) GetQuorumDataPerInterval() map[int } type GetQuorumTickDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetQuorumTickDataRequest) Reset() { *x = GetQuorumTickDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetQuorumTickDataRequest) String() string { @@ -1439,7 +1364,7 @@ func (*GetQuorumTickDataRequest) ProtoMessage() {} func (x *GetQuorumTickDataRequest) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1462,20 +1387,17 @@ func (x *GetQuorumTickDataRequest) GetTickNumber() uint32 { } type GetQuorumTickDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QuorumTickData *QuorumTickData `protobuf:"bytes,1,opt,name=quorum_tick_data,json=quorumTickData,proto3" json:"quorum_tick_data,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QuorumTickData *QuorumTickData `protobuf:"bytes,1,opt,name=quorum_tick_data,json=quorumTickData,proto3" json:"quorum_tick_data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetQuorumTickDataResponse) Reset() { *x = GetQuorumTickDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetQuorumTickDataResponse) String() string { @@ -1486,7 +1408,7 @@ func (*GetQuorumTickDataResponse) ProtoMessage() {} func (x *GetQuorumTickDataResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1509,20 +1431,17 @@ func (x *GetQuorumTickDataResponse) GetQuorumTickData() *QuorumTickData { } type GetQuorumTickDataResponseStored struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - QuorumTickData *QuorumTickDataStored `protobuf:"bytes,1,opt,name=quorum_tick_data,json=quorumTickData,proto3" json:"quorum_tick_data,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + QuorumTickData *QuorumTickDataStored `protobuf:"bytes,1,opt,name=quorum_tick_data,json=quorumTickData,proto3" json:"quorum_tick_data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetQuorumTickDataResponseStored) Reset() { *x = GetQuorumTickDataResponseStored{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetQuorumTickDataResponseStored) String() string { @@ -1533,7 +1452,7 @@ func (*GetQuorumTickDataResponseStored) ProtoMessage() {} func (x *GetQuorumTickDataResponseStored) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1556,22 +1475,19 @@ func (x *GetQuorumTickDataResponseStored) GetQuorumTickData() *QuorumTickDataSto } type Computors struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` + Identities []string `protobuf:"bytes,2,rep,name=identities,proto3" json:"identities,omitempty"` + SignatureHex string `protobuf:"bytes,3,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` unknownFields protoimpl.UnknownFields - - Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` - Identities []string `protobuf:"bytes,2,rep,name=identities,proto3" json:"identities,omitempty"` - SignatureHex string `protobuf:"bytes,3,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Computors) Reset() { *x = Computors{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Computors) String() string { @@ -1582,7 +1498,7 @@ func (*Computors) ProtoMessage() {} func (x *Computors) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1619,20 +1535,17 @@ func (x *Computors) GetSignatureHex() string { } type GetComputorsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` unknownFields protoimpl.UnknownFields - - Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetComputorsRequest) Reset() { *x = GetComputorsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetComputorsRequest) String() string { @@ -1643,7 +1556,7 @@ func (*GetComputorsRequest) ProtoMessage() {} func (x *GetComputorsRequest) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1666,20 +1579,17 @@ func (x *GetComputorsRequest) GetEpoch() uint32 { } type GetComputorsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Computors *Computors `protobuf:"bytes,1,opt,name=computors,proto3" json:"computors,omitempty"` unknownFields protoimpl.UnknownFields - - Computors *Computors `protobuf:"bytes,1,opt,name=computors,proto3" json:"computors,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetComputorsResponse) Reset() { *x = GetComputorsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetComputorsResponse) String() string { @@ -1690,7 +1600,7 @@ func (*GetComputorsResponse) ProtoMessage() {} func (x *GetComputorsResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1713,22 +1623,19 @@ func (x *GetComputorsResponse) GetComputors() *Computors { } type TransferTransactionsPerTick struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + Transactions []*Transaction `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - Transactions []*Transaction `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransferTransactionsPerTick) Reset() { *x = TransferTransactionsPerTick{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransferTransactionsPerTick) String() string { @@ -1739,7 +1646,7 @@ func (*TransferTransactionsPerTick) ProtoMessage() {} func (x *TransferTransactionsPerTick) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1776,21 +1683,18 @@ func (x *TransferTransactionsPerTick) GetTransactions() []*Transaction { } type ProcessedTick struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` - Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ProcessedTick) Reset() { *x = ProcessedTick{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProcessedTick) String() string { @@ -1801,7 +1705,7 @@ func (*ProcessedTick) ProtoMessage() {} func (x *ProcessedTick) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1831,24 +1735,21 @@ func (x *ProcessedTick) GetEpoch() uint32 { } type GetStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` LastProcessedTick *ProcessedTick `protobuf:"bytes,1,opt,name=last_processed_tick,json=lastProcessedTick,proto3" json:"last_processed_tick,omitempty"` - LastProcessedTicksPerEpoch map[uint32]uint32 `protobuf:"bytes,2,rep,name=last_processed_ticks_per_epoch,json=lastProcessedTicksPerEpoch,proto3" json:"last_processed_ticks_per_epoch,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + LastProcessedTicksPerEpoch map[uint32]uint32 `protobuf:"bytes,2,rep,name=last_processed_ticks_per_epoch,json=lastProcessedTicksPerEpoch,proto3" json:"last_processed_ticks_per_epoch,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` SkippedTicks []*SkippedTicksInterval `protobuf:"bytes,3,rep,name=skipped_ticks,json=skippedTicks,proto3" json:"skipped_ticks,omitempty"` ProcessedTickIntervalsPerEpoch []*ProcessedTickIntervalsPerEpoch `protobuf:"bytes,4,rep,name=processed_tick_intervals_per_epoch,json=processedTickIntervalsPerEpoch,proto3" json:"processed_tick_intervals_per_epoch,omitempty"` - EmptyTicksPerEpoch map[uint32]uint32 `protobuf:"bytes,5,rep,name=empty_ticks_per_epoch,json=emptyTicksPerEpoch,proto3" json:"empty_ticks_per_epoch,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + EmptyTicksPerEpoch map[uint32]uint32 `protobuf:"bytes,5,rep,name=empty_ticks_per_epoch,json=emptyTicksPerEpoch,proto3" json:"empty_ticks_per_epoch,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetStatusResponse) Reset() { *x = GetStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetStatusResponse) String() string { @@ -1859,7 +1760,7 @@ func (*GetStatusResponse) ProtoMessage() {} func (x *GetStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1910,20 +1811,17 @@ func (x *GetStatusResponse) GetEmptyTicksPerEpoch() map[uint32]uint32 { } type GetHealthCheckResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields - - Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetHealthCheckResponse) Reset() { *x = GetHealthCheckResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetHealthCheckResponse) String() string { @@ -1934,7 +1832,7 @@ func (*GetHealthCheckResponse) ProtoMessage() {} func (x *GetHealthCheckResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1957,22 +1855,19 @@ func (x *GetHealthCheckResponse) GetStatus() bool { } type GetTransferTransactionsPerTickRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + StartTick uint32 `protobuf:"varint,2,opt,name=start_tick,json=startTick,proto3" json:"start_tick,omitempty"` + EndTick uint32 `protobuf:"varint,3,opt,name=end_tick,json=endTick,proto3" json:"end_tick,omitempty"` unknownFields protoimpl.UnknownFields - - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - StartTick uint32 `protobuf:"varint,2,opt,name=start_tick,json=startTick,proto3" json:"start_tick,omitempty"` - EndTick uint32 `protobuf:"varint,3,opt,name=end_tick,json=endTick,proto3" json:"end_tick,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTransferTransactionsPerTickRequest) Reset() { *x = GetTransferTransactionsPerTickRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransferTransactionsPerTickRequest) String() string { @@ -1983,7 +1878,7 @@ func (*GetTransferTransactionsPerTickRequest) ProtoMessage() {} func (x *GetTransferTransactionsPerTickRequest) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2020,20 +1915,17 @@ func (x *GetTransferTransactionsPerTickRequest) GetEndTick() uint32 { } type GetTransferTransactionsPerTickResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` TransferTransactionsPerTick []*TransferTransactionsPerTick `protobuf:"bytes,1,rep,name=transfer_transactions_per_tick,json=transferTransactionsPerTick,proto3" json:"transfer_transactions_per_tick,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetTransferTransactionsPerTickResponse) Reset() { *x = GetTransferTransactionsPerTickResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransferTransactionsPerTickResponse) String() string { @@ -2044,7 +1936,7 @@ func (*GetTransferTransactionsPerTickResponse) ProtoMessage() {} func (x *GetTransferTransactionsPerTickResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2067,20 +1959,17 @@ func (x *GetTransferTransactionsPerTickResponse) GetTransferTransactionsPerTick( } type GetChainHashRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetChainHashRequest) Reset() { *x = GetChainHashRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetChainHashRequest) String() string { @@ -2091,7 +1980,7 @@ func (*GetChainHashRequest) ProtoMessage() {} func (x *GetChainHashRequest) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2114,20 +2003,17 @@ func (x *GetChainHashRequest) GetTickNumber() uint32 { } type GetChainHashResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + HexDigest string `protobuf:"bytes,1,opt,name=hex_digest,json=hexDigest,proto3" json:"hex_digest,omitempty"` unknownFields protoimpl.UnknownFields - - HexDigest string `protobuf:"bytes,1,opt,name=hex_digest,json=hexDigest,proto3" json:"hex_digest,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetChainHashResponse) Reset() { *x = GetChainHashResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetChainHashResponse) String() string { @@ -2138,7 +2024,7 @@ func (*GetChainHashResponse) ProtoMessage() {} func (x *GetChainHashResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2161,21 +2047,18 @@ func (x *GetChainHashResponse) GetHexDigest() string { } type ProcessedTickInterval struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InitialProcessedTick uint32 `protobuf:"varint,1,opt,name=initial_processed_tick,json=initialProcessedTick,proto3" json:"initial_processed_tick,omitempty"` - LastProcessedTick uint32 `protobuf:"varint,2,opt,name=last_processed_tick,json=lastProcessedTick,proto3" json:"last_processed_tick,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + InitialProcessedTick uint32 `protobuf:"varint,1,opt,name=initial_processed_tick,json=initialProcessedTick,proto3" json:"initial_processed_tick,omitempty"` + LastProcessedTick uint32 `protobuf:"varint,2,opt,name=last_processed_tick,json=lastProcessedTick,proto3" json:"last_processed_tick,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ProcessedTickInterval) Reset() { *x = ProcessedTickInterval{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProcessedTickInterval) String() string { @@ -2186,7 +2069,7 @@ func (*ProcessedTickInterval) ProtoMessage() {} func (x *ProcessedTickInterval) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2216,21 +2099,18 @@ func (x *ProcessedTickInterval) GetLastProcessedTick() uint32 { } type ProcessedTickIntervalsPerEpoch struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` + Intervals []*ProcessedTickInterval `protobuf:"bytes,2,rep,name=intervals,proto3" json:"intervals,omitempty"` unknownFields protoimpl.UnknownFields - - Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` - Intervals []*ProcessedTickInterval `protobuf:"bytes,2,rep,name=intervals,proto3" json:"intervals,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ProcessedTickIntervalsPerEpoch) Reset() { *x = ProcessedTickIntervalsPerEpoch{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProcessedTickIntervalsPerEpoch) String() string { @@ -2241,7 +2121,7 @@ func (*ProcessedTickIntervalsPerEpoch) ProtoMessage() {} func (x *ProcessedTickIntervalsPerEpoch) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2271,28 +2151,25 @@ func (x *ProcessedTickIntervalsPerEpoch) GetIntervals() []*ProcessedTickInterval } type Tick struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ComputorIndex uint32 `protobuf:"varint,1,opt,name=computor_index,json=computorIndex,proto3" json:"computor_index,omitempty"` - Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` - TickNumber uint32 `protobuf:"varint,3,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` - Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - VarStruct []byte `protobuf:"bytes,5,opt,name=var_struct,json=varStruct,proto3" json:"var_struct,omitempty"` //Will change to return with unmarshalled info - TimeLock []byte `protobuf:"bytes,6,opt,name=time_lock,json=timeLock,proto3" json:"time_lock,omitempty"` - TransactionIds []string `protobuf:"bytes,7,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` - ContractFees []int64 `protobuf:"varint,8,rep,packed,name=contract_fees,json=contractFees,proto3" json:"contract_fees,omitempty"` - SignatureHex string `protobuf:"bytes,9,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ComputorIndex uint32 `protobuf:"varint,1,opt,name=computor_index,json=computorIndex,proto3" json:"computor_index,omitempty"` + Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` + TickNumber uint32 `protobuf:"varint,3,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + VarStruct []byte `protobuf:"bytes,5,opt,name=var_struct,json=varStruct,proto3" json:"var_struct,omitempty"` //Will change to return with unmarshalled info + TimeLock []byte `protobuf:"bytes,6,opt,name=time_lock,json=timeLock,proto3" json:"time_lock,omitempty"` + TransactionIds []string `protobuf:"bytes,7,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"` + ContractFees []int64 `protobuf:"varint,8,rep,packed,name=contract_fees,json=contractFees,proto3" json:"contract_fees,omitempty"` + SignatureHex string `protobuf:"bytes,9,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Tick) Reset() { *x = Tick{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Tick) String() string { @@ -2303,7 +2180,7 @@ func (*Tick) ProtoMessage() {} func (x *Tick) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2382,20 +2259,17 @@ func (x *Tick) GetSignatureHex() string { } type GetTickResponseV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Tick_Data *Tick `protobuf:"bytes,1,opt,name=tick_Data,json=tickData,proto3" json:"tick_Data,omitempty"` unknownFields protoimpl.UnknownFields - - Tick_Data *Tick `protobuf:"bytes,1,opt,name=tick_Data,json=tickData,proto3" json:"tick_Data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTickResponseV2) Reset() { *x = GetTickResponseV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTickResponseV2) String() string { @@ -2406,7 +2280,7 @@ func (*GetTickResponseV2) ProtoMessage() {} func (x *GetTickResponseV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2429,22 +2303,19 @@ func (x *GetTickResponseV2) GetTick_Data() *Tick { } type PerTickIdentityTransfers struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + Transactions []*TransactionData `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - Transactions []*TransactionData `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PerTickIdentityTransfers) Reset() { *x = PerTickIdentityTransfers{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PerTickIdentityTransfers) String() string { @@ -2455,7 +2326,7 @@ func (*PerTickIdentityTransfers) ProtoMessage() {} func (x *PerTickIdentityTransfers) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2492,21 +2363,18 @@ func (x *PerTickIdentityTransfers) GetTransactions() []*TransactionData { } type GetIdentityTransfersInTickRangeResponseV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Transactions []*PerTickIdentityTransfers `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Transactions []*PerTickIdentityTransfers `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetIdentityTransfersInTickRangeResponseV2) Reset() { *x = GetIdentityTransfersInTickRangeResponseV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetIdentityTransfersInTickRangeResponseV2) String() string { @@ -2517,7 +2385,7 @@ func (*GetIdentityTransfersInTickRangeResponseV2) ProtoMessage() {} func (x *GetIdentityTransfersInTickRangeResponseV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2548,21 +2416,18 @@ func (x *GetIdentityTransfersInTickRangeResponseV2) GetTransactions() []*PerTick // SendMany Transaction type SendManyTransfer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DestId string `protobuf:"bytes,1,opt,name=dest_id,json=destId,proto3" json:"dest_id,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields - - DestId string `protobuf:"bytes,1,opt,name=dest_id,json=destId,proto3" json:"dest_id,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SendManyTransfer) Reset() { *x = SendManyTransfer{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SendManyTransfer) String() string { @@ -2573,7 +2438,7 @@ func (*SendManyTransfer) ProtoMessage() {} func (x *SendManyTransfer) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2603,25 +2468,22 @@ func (x *SendManyTransfer) GetAmount() int64 { } type SendManyTransaction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` + TickNumber uint32 `protobuf:"varint,2,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + Transfers []*SendManyTransfer `protobuf:"bytes,3,rep,name=transfers,proto3" json:"transfers,omitempty"` + TotalAmount int64 `protobuf:"varint,4,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` + SignatureHex string `protobuf:"bytes,5,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` + TxId string `protobuf:"bytes,6,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` unknownFields protoimpl.UnknownFields - - SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` - TickNumber uint32 `protobuf:"varint,2,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` - Transfers []*SendManyTransfer `protobuf:"bytes,3,rep,name=transfers,proto3" json:"transfers,omitempty"` - TotalAmount int64 `protobuf:"varint,4,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` - SignatureHex string `protobuf:"bytes,5,opt,name=signature_hex,json=signatureHex,proto3" json:"signature_hex,omitempty"` - TxId string `protobuf:"bytes,6,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SendManyTransaction) Reset() { *x = SendManyTransaction{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SendManyTransaction) String() string { @@ -2632,7 +2494,7 @@ func (*SendManyTransaction) ProtoMessage() {} func (x *SendManyTransaction) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2691,22 +2553,19 @@ func (x *SendManyTransaction) GetTxId() string { // Wrapper around send many transaction and additional data type SendManyTransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Transaction *SendManyTransaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + MoneyFlew bool `protobuf:"varint,4,opt,name=money_flew,json=moneyFlew,proto3" json:"money_flew,omitempty"` unknownFields protoimpl.UnknownFields - - Transaction *SendManyTransaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - MoneyFlew bool `protobuf:"varint,4,opt,name=money_flew,json=moneyFlew,proto3" json:"money_flew,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SendManyTransactionData) Reset() { *x = SendManyTransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SendManyTransactionData) String() string { @@ -2717,7 +2576,7 @@ func (*SendManyTransactionData) ProtoMessage() {} func (x *SendManyTransactionData) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2754,20 +2613,17 @@ func (x *SendManyTransactionData) GetMoneyFlew() bool { } type GetSendManyTransactionRequestV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` unknownFields protoimpl.UnknownFields - - TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSendManyTransactionRequestV2) Reset() { *x = GetSendManyTransactionRequestV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSendManyTransactionRequestV2) String() string { @@ -2778,7 +2634,7 @@ func (*GetSendManyTransactionRequestV2) ProtoMessage() {} func (x *GetSendManyTransactionRequestV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2801,22 +2657,19 @@ func (x *GetSendManyTransactionRequestV2) GetTxId() string { } type GetSendManyTransactionResponseV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Transaction *SendManyTransaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + MoneyFlew bool `protobuf:"varint,4,opt,name=money_flew,json=moneyFlew,proto3" json:"money_flew,omitempty"` unknownFields protoimpl.UnknownFields - - Transaction *SendManyTransaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - MoneyFlew bool `protobuf:"varint,4,opt,name=money_flew,json=moneyFlew,proto3" json:"money_flew,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSendManyTransactionResponseV2) Reset() { *x = GetSendManyTransactionResponseV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSendManyTransactionResponseV2) String() string { @@ -2827,7 +2680,7 @@ func (*GetSendManyTransactionResponseV2) ProtoMessage() {} func (x *GetSendManyTransactionResponseV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2865,22 +2718,19 @@ func (x *GetSendManyTransactionResponseV2) GetMoneyFlew() bool { // Wrapper around transaction and additional data type TransactionData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + MoneyFlew bool `protobuf:"varint,3,opt,name=money_flew,json=moneyFlew,proto3" json:"money_flew,omitempty"` unknownFields protoimpl.UnknownFields - - Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` - Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - MoneyFlew bool `protobuf:"varint,3,opt,name=money_flew,json=moneyFlew,proto3" json:"money_flew,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TransactionData) Reset() { *x = TransactionData{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TransactionData) String() string { @@ -2891,7 +2741,7 @@ func (*TransactionData) ProtoMessage() {} func (x *TransactionData) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2928,20 +2778,17 @@ func (x *TransactionData) GetMoneyFlew() bool { } type GetLatestTickResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LatestTick uint32 `protobuf:"varint,1,opt,name=latest_tick,json=latestTick,proto3" json:"latest_tick,omitempty"` unknownFields protoimpl.UnknownFields - - LatestTick uint32 `protobuf:"varint,1,opt,name=latest_tick,json=latestTick,proto3" json:"latest_tick,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetLatestTickResponse) Reset() { *x = GetLatestTickResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetLatestTickResponse) String() string { @@ -2952,7 +2799,7 @@ func (*GetLatestTickResponse) ProtoMessage() {} func (x *GetLatestTickResponse) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2976,20 +2823,17 @@ func (x *GetLatestTickResponse) GetLatestTick() uint32 { // Tick Transactions type GetTickRequestV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTickRequestV2) Reset() { *x = GetTickRequestV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTickRequestV2) String() string { @@ -3000,7 +2844,7 @@ func (*GetTickRequestV2) ProtoMessage() {} func (x *GetTickRequestV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3023,20 +2867,17 @@ func (x *GetTickRequestV2) GetTickNumber() uint32 { } type GetTickTransactionsResponseV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Transactions []*TransactionData `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` unknownFields protoimpl.UnknownFields - - Transactions []*TransactionData `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTickTransactionsResponseV2) Reset() { *x = GetTickTransactionsResponseV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTickTransactionsResponseV2) String() string { @@ -3047,7 +2888,7 @@ func (*GetTickTransactionsResponseV2) ProtoMessage() {} func (x *GetTickTransactionsResponseV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3071,20 +2912,17 @@ func (x *GetTickTransactionsResponseV2) GetTransactions() []*TransactionData { // Get Transaction type GetTransactionRequestV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` unknownFields protoimpl.UnknownFields - - TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTransactionRequestV2) Reset() { *x = GetTransactionRequestV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransactionRequestV2) String() string { @@ -3095,7 +2933,7 @@ func (*GetTransactionRequestV2) ProtoMessage() {} func (x *GetTransactionRequestV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3118,22 +2956,19 @@ func (x *GetTransactionRequestV2) GetTxId() string { } type GetTransactionResponseV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + MoneyFlew bool `protobuf:"varint,3,opt,name=money_flew,json=moneyFlew,proto3" json:"money_flew,omitempty"` unknownFields protoimpl.UnknownFields - - Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` - Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - MoneyFlew bool `protobuf:"varint,3,opt,name=money_flew,json=moneyFlew,proto3" json:"money_flew,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTransactionResponseV2) Reset() { *x = GetTransactionResponseV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransactionResponseV2) String() string { @@ -3144,7 +2979,7 @@ func (*GetTransactionResponseV2) ProtoMessage() {} func (x *GetTransactionResponseV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3181,22 +3016,19 @@ func (x *GetTransactionResponseV2) GetMoneyFlew() bool { } type GetTickTransactionsRequestV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + Transfers bool `protobuf:"varint,2,opt,name=transfers,proto3" json:"transfers,omitempty"` + Approved bool `protobuf:"varint,3,opt,name=approved,proto3" json:"approved,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` - Transfers bool `protobuf:"varint,2,opt,name=transfers,proto3" json:"transfers,omitempty"` - Approved bool `protobuf:"varint,3,opt,name=approved,proto3" json:"approved,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTickTransactionsRequestV2) Reset() { *x = GetTickTransactionsRequestV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTickTransactionsRequestV2) String() string { @@ -3207,7 +3039,7 @@ func (*GetTickTransactionsRequestV2) ProtoMessage() {} func (x *GetTickTransactionsRequestV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3244,26 +3076,23 @@ func (x *GetTickTransactionsRequestV2) GetApproved() bool { } type GetTransferTransactionsPerTickRequestV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + StartTick uint32 `protobuf:"varint,2,opt,name=start_tick,json=startTick,proto3" json:"start_tick,omitempty"` + EndTick uint32 `protobuf:"varint,3,opt,name=end_tick,json=endTick,proto3" json:"end_tick,omitempty"` + ScOnly bool `protobuf:"varint,4,opt,name=sc_only,json=scOnly,proto3" json:"sc_only,omitempty"` + Desc bool `protobuf:"varint,5,opt,name=desc,proto3" json:"desc,omitempty"` + Page uint32 `protobuf:"varint,6,opt,name=page,proto3" json:"page,omitempty"` + PageSize uint32 `protobuf:"varint,7,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` unknownFields protoimpl.UnknownFields - - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - StartTick uint32 `protobuf:"varint,2,opt,name=start_tick,json=startTick,proto3" json:"start_tick,omitempty"` - EndTick uint32 `protobuf:"varint,3,opt,name=end_tick,json=endTick,proto3" json:"end_tick,omitempty"` - ScOnly bool `protobuf:"varint,4,opt,name=sc_only,json=scOnly,proto3" json:"sc_only,omitempty"` - Desc bool `protobuf:"varint,5,opt,name=desc,proto3" json:"desc,omitempty"` - Page int32 `protobuf:"varint,6,opt,name=page,proto3" json:"page,omitempty"` - PageSize int32 `protobuf:"varint,7,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetTransferTransactionsPerTickRequestV2) Reset() { *x = GetTransferTransactionsPerTickRequestV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTransferTransactionsPerTickRequestV2) String() string { @@ -3274,7 +3103,7 @@ func (*GetTransferTransactionsPerTickRequestV2) ProtoMessage() {} func (x *GetTransferTransactionsPerTickRequestV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3324,14 +3153,14 @@ func (x *GetTransferTransactionsPerTickRequestV2) GetDesc() bool { return false } -func (x *GetTransferTransactionsPerTickRequestV2) GetPage() int32 { +func (x *GetTransferTransactionsPerTickRequestV2) GetPage() uint32 { if x != nil { return x.Page } return 0 } -func (x *GetTransferTransactionsPerTickRequestV2) GetPageSize() int32 { +func (x *GetTransferTransactionsPerTickRequestV2) GetPageSize() uint32 { if x != nil { return x.PageSize } @@ -3339,25 +3168,22 @@ func (x *GetTransferTransactionsPerTickRequestV2) GetPageSize() int32 { } type Pagination struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TotalRecords int32 `protobuf:"varint,1,opt,name=total_records,json=totalRecords,proto3" json:"total_records,omitempty"` + CurrentPage int32 `protobuf:"varint,2,opt,name=current_page,json=currentPage,proto3" json:"current_page,omitempty"` + TotalPages int32 `protobuf:"varint,3,opt,name=total_pages,json=totalPages,proto3" json:"total_pages,omitempty"` + PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + NextPage int32 `protobuf:"varint,5,opt,name=next_page,json=nextPage,proto3" json:"next_page,omitempty"` + PreviousPage int32 `protobuf:"varint,6,opt,name=previous_page,json=previousPage,proto3" json:"previous_page,omitempty"` unknownFields protoimpl.UnknownFields - - TotalRecords int32 `protobuf:"varint,1,opt,name=total_records,json=totalRecords,proto3" json:"total_records,omitempty"` - CurrentPage int32 `protobuf:"varint,2,opt,name=current_page,json=currentPage,proto3" json:"current_page,omitempty"` - TotalPages int32 `protobuf:"varint,3,opt,name=total_pages,json=totalPages,proto3" json:"total_pages,omitempty"` - PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - NextPage int32 `protobuf:"varint,5,opt,name=next_page,json=nextPage,proto3" json:"next_page,omitempty"` - PreviousPage int32 `protobuf:"varint,6,opt,name=previous_page,json=previousPage,proto3" json:"previous_page,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Pagination) Reset() { *x = Pagination{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pagination) String() string { @@ -3368,7 +3194,7 @@ func (*Pagination) ProtoMessage() {} func (x *Pagination) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3426,22 +3252,19 @@ func (x *Pagination) GetPreviousPage() int32 { } type GetEmptyTickListRequestV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` unknownFields protoimpl.UnknownFields - - Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` - Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` - PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEmptyTickListRequestV2) Reset() { *x = GetEmptyTickListRequestV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetEmptyTickListRequestV2) String() string { @@ -3452,7 +3275,7 @@ func (*GetEmptyTickListRequestV2) ProtoMessage() {} func (x *GetEmptyTickListRequestV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3489,21 +3312,18 @@ func (x *GetEmptyTickListRequestV2) GetPageSize() int32 { } type GetEmptyTickListResponseV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + EmptyTicks []uint32 `protobuf:"varint,2,rep,packed,name=emptyTicks,proto3" json:"emptyTicks,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - EmptyTicks []uint32 `protobuf:"varint,2,rep,packed,name=emptyTicks,proto3" json:"emptyTicks,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEmptyTickListResponseV2) Reset() { *x = GetEmptyTickListResponseV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetEmptyTickListResponseV2) String() string { @@ -3514,7 +3334,7 @@ func (*GetEmptyTickListResponseV2) ProtoMessage() {} func (x *GetEmptyTickListResponseV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3544,21 +3364,18 @@ func (x *GetEmptyTickListResponseV2) GetEmptyTicks() []uint32 { } type TickStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` + IsEmpty bool `protobuf:"varint,2,opt,name=is_empty,json=isEmpty,proto3" json:"is_empty,omitempty"` unknownFields protoimpl.UnknownFields - - TickNumber uint32 `protobuf:"varint,1,opt,name=tick_number,json=tickNumber,proto3" json:"tick_number,omitempty"` - IsEmpty bool `protobuf:"varint,2,opt,name=is_empty,json=isEmpty,proto3" json:"is_empty,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TickStatus) Reset() { *x = TickStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TickStatus) String() string { @@ -3569,7 +3386,7 @@ func (*TickStatus) ProtoMessage() {} func (x *TickStatus) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3599,23 +3416,20 @@ func (x *TickStatus) GetIsEmpty() bool { } type GetEpochTickListRequestV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + Desc bool `protobuf:"varint,4,opt,name=desc,proto3" json:"desc,omitempty"` unknownFields protoimpl.UnknownFields - - Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` - Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` - PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - Desc bool `protobuf:"varint,4,opt,name=desc,proto3" json:"desc,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEpochTickListRequestV2) Reset() { *x = GetEpochTickListRequestV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetEpochTickListRequestV2) String() string { @@ -3626,7 +3440,7 @@ func (*GetEpochTickListRequestV2) ProtoMessage() {} func (x *GetEpochTickListRequestV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3670,21 +3484,18 @@ func (x *GetEpochTickListRequestV2) GetDesc() bool { } type GetEpochTickListResponseV2 struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + Ticks []*TickStatus `protobuf:"bytes,2,rep,name=ticks,proto3" json:"ticks,omitempty"` unknownFields protoimpl.UnknownFields - - Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Ticks []*TickStatus `protobuf:"bytes,2,rep,name=ticks,proto3" json:"ticks,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEpochTickListResponseV2) Reset() { *x = GetEpochTickListResponseV2{} - if protoimpl.UnsafeEnabled { - mi := &file_archive_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_archive_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetEpochTickListResponseV2) String() string { @@ -3695,7 +3506,7 @@ func (*GetEpochTickListResponseV2) ProtoMessage() {} func (x *GetEpochTickListResponseV2) ProtoReflect() protoreflect.Message { mi := &file_archive_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4266,9 +4077,9 @@ var file_archive_proto_rawDesc = []byte{ 0x17, 0x0a, 0x07, 0x73, 0x63, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x63, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x12, 0x0a, 0x04, - 0x70, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, + 0x70, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xd4, 0x01, + 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xd4, 0x01, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, @@ -4749,764 +4560,6 @@ func file_archive_proto_init() { if File_archive_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_archive_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*TickData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GetTickDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*GetTickDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*Transaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*TransactionStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*TickTransactionsStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*NextAvailableTick); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*LastProcessedTick); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*GetTransactionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*GetTransactionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*GetTransactionStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*GetTransactionStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*GetTickTransactionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*GetTickTransactionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*GetTickApprovedTransactionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*GetTickApprovedTransactionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*QuorumTickData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*QuorumTickStructure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*QuorumDiff); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*SkippedTicksInterval); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*SkippedTicksIntervalList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*QuorumTickDataStored); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*QuorumDiffStored); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*LastTickQuorumDataPerEpochIntervals); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*GetQuorumTickDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*GetQuorumTickDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*GetQuorumTickDataResponseStored); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*Computors); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*GetComputorsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[29].Exporter = func(v any, i int) any { - switch v := v.(*GetComputorsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[30].Exporter = func(v any, i int) any { - switch v := v.(*TransferTransactionsPerTick); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[31].Exporter = func(v any, i int) any { - switch v := v.(*ProcessedTick); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[32].Exporter = func(v any, i int) any { - switch v := v.(*GetStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[33].Exporter = func(v any, i int) any { - switch v := v.(*GetHealthCheckResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[34].Exporter = func(v any, i int) any { - switch v := v.(*GetTransferTransactionsPerTickRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[35].Exporter = func(v any, i int) any { - switch v := v.(*GetTransferTransactionsPerTickResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[36].Exporter = func(v any, i int) any { - switch v := v.(*GetChainHashRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[37].Exporter = func(v any, i int) any { - switch v := v.(*GetChainHashResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[38].Exporter = func(v any, i int) any { - switch v := v.(*ProcessedTickInterval); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[39].Exporter = func(v any, i int) any { - switch v := v.(*ProcessedTickIntervalsPerEpoch); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[40].Exporter = func(v any, i int) any { - switch v := v.(*Tick); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[41].Exporter = func(v any, i int) any { - switch v := v.(*GetTickResponseV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[42].Exporter = func(v any, i int) any { - switch v := v.(*PerTickIdentityTransfers); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[43].Exporter = func(v any, i int) any { - switch v := v.(*GetIdentityTransfersInTickRangeResponseV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[44].Exporter = func(v any, i int) any { - switch v := v.(*SendManyTransfer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[45].Exporter = func(v any, i int) any { - switch v := v.(*SendManyTransaction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[46].Exporter = func(v any, i int) any { - switch v := v.(*SendManyTransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[47].Exporter = func(v any, i int) any { - switch v := v.(*GetSendManyTransactionRequestV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[48].Exporter = func(v any, i int) any { - switch v := v.(*GetSendManyTransactionResponseV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[49].Exporter = func(v any, i int) any { - switch v := v.(*TransactionData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[50].Exporter = func(v any, i int) any { - switch v := v.(*GetLatestTickResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[51].Exporter = func(v any, i int) any { - switch v := v.(*GetTickRequestV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[52].Exporter = func(v any, i int) any { - switch v := v.(*GetTickTransactionsResponseV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[53].Exporter = func(v any, i int) any { - switch v := v.(*GetTransactionRequestV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[54].Exporter = func(v any, i int) any { - switch v := v.(*GetTransactionResponseV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[55].Exporter = func(v any, i int) any { - switch v := v.(*GetTickTransactionsRequestV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[56].Exporter = func(v any, i int) any { - switch v := v.(*GetTransferTransactionsPerTickRequestV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[57].Exporter = func(v any, i int) any { - switch v := v.(*Pagination); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[58].Exporter = func(v any, i int) any { - switch v := v.(*GetEmptyTickListRequestV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[59].Exporter = func(v any, i int) any { - switch v := v.(*GetEmptyTickListResponseV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[60].Exporter = func(v any, i int) any { - switch v := v.(*TickStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[61].Exporter = func(v any, i int) any { - switch v := v.(*GetEpochTickListRequestV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_archive_proto_msgTypes[62].Exporter = func(v any, i int) any { - switch v := v.(*GetEpochTickListResponseV2); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/protobuff/archive.proto b/protobuff/archive.proto index 3d1cd19..11c8cae 100644 --- a/protobuff/archive.proto +++ b/protobuff/archive.proto @@ -320,8 +320,8 @@ message GetTransferTransactionsPerTickRequestV2 { uint32 end_tick = 3; bool sc_only = 4; bool desc = 5; - int32 page = 6; - int32 page_size = 7; + uint32 page = 6; + uint32 page_size = 7; } message Pagination { diff --git a/rpc/v2_endpoints.go b/rpc/v2_endpoints.go index 79b30c2..4380712 100644 --- a/rpc/v2_endpoints.go +++ b/rpc/v2_endpoints.go @@ -318,7 +318,21 @@ func (s *Server) GetSendManyTransactionV2(ctx context.Context, req *protobuff.Ge } func (s *Server) GetIdentityTransfersInTickRangeV2(ctx context.Context, req *protobuff.GetTransferTransactionsPerTickRequestV2) (*protobuff.GetIdentityTransfersInTickRangeResponseV2, error) { - txs, err := s.store.GetTransferTransactions(ctx, req.Identity, uint64(req.GetStartTick()), uint64(req.GetEndTick())) + + var pageSize uint32 + if req.GetPageSize() > 1000 { + return nil, status.Errorf(codes.InvalidArgument, "invalid page size") + } else if req.GetPageSize() == 0 { + pageSize = 1000 + } else { + pageSize = req.GetPageSize() + } + pageNumber := max(0, int(req.Page)-1) // API index starts with '1', implementation index starts with '0'. + txs, totalCount, err := s.store.GetTransferTransactionsPaged(ctx, req.Identity, + uint64(req.GetStartTick()), uint64(req.GetEndTick()), + store.Pageable{Page: uint32(pageNumber), Size: pageSize}, + store.Sortable{Descending: req.Desc}, + store.Filterable{ScOnly: req.ScOnly}) if err != nil { return nil, status.Errorf(codes.Internal, "getting transfer transactions: %s", err.Error()) } @@ -335,9 +349,10 @@ func (s *Server) GetIdentityTransfersInTickRangeV2(ctx context.Context, req *pro return nil, status.Errorf(codes.Internal, "Got Err: %s when getting transaction info for tx id: %s", err.Error(), transaction.TxId) } - if req.ScOnly == true && transaction.GetInputType() == 0 { - continue - } + // TODO move into store and remove me later + //if req.ScOnly == true && transaction.GetInputType() == 0 { + // continue + //} transactionData := &protobuff.TransactionData{ Transaction: transaction, @@ -357,20 +372,53 @@ func (s *Server) GetIdentityTransfersInTickRangeV2(ctx context.Context, req *pro totalTransactions = append(totalTransactions, transfers) } - if req.Desc == true { - - slices.SortFunc(totalTransactions, func(a, b *protobuff.PerTickIdentityTransfers) int { - return -cmp.Compare(a.TickNumber, b.TickNumber) - }) - - } + // FIXME move into store and remove me later + //if req.Desc == true { + // + // slices.SortFunc(totalTransactions, func(a, b *protobuff.PerTickIdentityTransfers) int { + // return -cmp.Compare(a.TickNumber, b.TickNumber) + // }) + // + //} return &protobuff.GetIdentityTransfersInTickRangeResponseV2{ + Pagination: getPaginationInformation(totalCount, pageNumber+1, int(pageSize)), Transactions: totalTransactions, }, nil } +// ATTENTION: first page has pageNumber == 1 as API starts with index 1 +func getPaginationInformation(totalRecords, pageNumber, pageSize int) *protobuff.Pagination { + + totalPages := totalRecords / pageSize // rounds down + if totalRecords%pageSize != 0 { + totalPages += 1 + } + + // next page starts at index 1. -1 if no next page. + nextPage := pageNumber + 1 + if nextPage > totalPages { + nextPage = -1 + } + + // previous page starts at index 1. -1 if no previous page + previousPage := pageNumber - 1 + if previousPage == 0 { + previousPage = -1 + } + + pagination := protobuff.Pagination{ + TotalRecords: int32(totalRecords), + CurrentPage: int32(min(totalRecords, pageNumber)), // 0 if there are no records + TotalPages: int32(totalPages), // 0 if there are no records + PageSize: int32(pageSize), + NextPage: int32(nextPage), // -1 if there is none + PreviousPage: int32(previousPage), // -1 if there is none + } + return &pagination +} + func (s *Server) GetEmptyTickListV2(ctx context.Context, req *protobuff.GetEmptyTickListRequestV2) (*protobuff.GetEmptyTickListResponseV2, error) { if req.PageSize <= 0 { diff --git a/store/store.go b/store/store.go index 5167623..0d705d9 100644 --- a/store/store.go +++ b/store/store.go @@ -8,7 +8,6 @@ import ( "github.com/qubic/go-archiver/protobuff" "go.uber.org/zap" "google.golang.org/protobuf/proto" - "math" "strconv" ) @@ -401,21 +400,34 @@ func (s *PebbleStore) PutTransferTransactionsPerTick(ctx context.Context, identi } type Pageable struct { - page, size uint32 + Page, Size uint32 +} + +type Sortable struct { + Descending bool +} + +type Filterable struct { + ScOnly bool } func (s *PebbleStore) GetTransferTransactions(ctx context.Context, identity string, startTick, endTick uint64) ([]*protobuff.TransferTransactionsPerTick, error) { - return s.GetTransferTransactionsPaged(ctx, identity, startTick, endTick, Pageable{0, math.MaxUint32}) + transfers, _, err := s.GetTransferTransactionsPaged(ctx, identity, startTick, endTick, + Pageable{0, 1000}, + Sortable{false}, + Filterable{false}, + ) + return transfers, err } -func (s *PebbleStore) GetTransferTransactionsPaged(_ context.Context, identity string, startTick, endTick uint64, pageable Pageable) ([]*protobuff.TransferTransactionsPerTick, error) { +func (s *PebbleStore) GetTransferTransactionsPaged(_ context.Context, identity string, startTick, endTick uint64, page Pageable, sort Sortable, filter Filterable) ([]*protobuff.TransferTransactionsPerTick, int, error) { - var index, pageSize, start, end int - pageSize = int(min(pageable.size, 1000)) - start = int(pageable.page) * pageSize - end = start + pageSize + var index, start, end int + start = int(page.Page) * int(page.Size) + end = start + int(page.Size) - transferTxs := make([]*protobuff.TransferTransactionsPerTick, 0) + var transferTxs []*protobuff.TransferTransactionsPerTick + transferTxs = make([]*protobuff.TransferTransactionsPerTick, 0, min(page.Size, 1000)) partialKey := identityTransferTransactions(identity) iter, err := s.db.NewIter(&pebble.IterOptions{ @@ -423,46 +435,75 @@ func (s *PebbleStore) GetTransferTransactionsPaged(_ context.Context, identity s UpperBound: binary.BigEndian.AppendUint64(partialKey, endTick+1), }) if err != nil { - return nil, errors.Wrap(err, "creating iter") + return nil, -1, errors.Wrap(err, "creating iterator") } defer iter.Close() - for iter.First(); iter.Valid(); iter.Next() { // per tick - - value, err := iter.ValueAndErr() - if err != nil { - return nil, errors.Wrap(err, "getting value from iter") + if sort.Descending { // TODO test + for iter.Last(); iter.Valid(); iter.Prev() { + index, transferTxs, err = getTransfersPage(iter, index, transferTxs, start, end, filter) + } + } else { + for iter.First(); iter.Valid(); iter.Next() { // per tick + index, transferTxs, err = getTransfersPage(iter, index, transferTxs, start, end, filter) } + } + if err != nil { + return nil, -1, errors.Wrap(err, "getting transfers page") + } + + return transferTxs, index, nil +} - var perTick protobuff.TransferTransactionsPerTick - var toBeAdded *protobuff.TransferTransactionsPerTick +func getTransfersPage(iter *pebble.Iterator, index int, transferTxs []*protobuff.TransferTransactionsPerTick, pageStart int, pageEnd int, filter Filterable) (int, []*protobuff.TransferTransactionsPerTick, error) { + value, err := iter.ValueAndErr() + if err != nil { + return -1, nil, errors.Wrap(err, "getting value from iter") + } - err = proto.Unmarshal(value, &perTick) - if err != nil { - return nil, errors.Wrap(err, "unmarshalling transfer tx per tick to protobuff type") - } + var perTick protobuff.TransferTransactionsPerTick + var toBeAdded *protobuff.TransferTransactionsPerTick + + err = proto.Unmarshal(value, &perTick) + if err != nil { + return -1, nil, errors.Wrap(err, "unmarshalling transfer tx per tick to protobuff type") + } - count := len(perTick.GetTransactions()) - if count > 0 && index+count >= start && index < end { + transactions := filterTransactions(filter, &perTick) // TODO TEST - startIndex := max(start-index, 0) // if index < start we need to skip first items - endIndex := min(end-index, count) - // log.Printf("index [%d], start [%d], end [%d], slice [%d:%d].", index, start, end, startIndex, endIndex) + count := len(transactions) + if count > 0 && index+count >= pageStart && index < pageEnd { - if index+count >= start && endIndex > startIndex { // covers case index >= start and index+count >= start - toBeAdded = &protobuff.TransferTransactionsPerTick{ - TickNumber: perTick.GetTickNumber(), - Identity: perTick.GetIdentity(), - Transactions: perTick.GetTransactions()[startIndex:endIndex], - } - transferTxs = append(transferTxs, toBeAdded) + startIndex := max(pageStart-index, 0) // if index < pageStart we need to skip first items + endIndex := min(pageEnd-index, count) + // log.Printf("index [%d], pageStart [%d], pageEnd [%d], slice [%d:%d].", index, pageStart, pageEnd, startIndex, endIndex) + + if index+count >= pageStart && endIndex > startIndex { // covers case index >= pageStart and index+count >= pageStart + toBeAdded = &protobuff.TransferTransactionsPerTick{ + TickNumber: perTick.GetTickNumber(), + Identity: perTick.GetIdentity(), + Transactions: transactions[startIndex:endIndex], } + transferTxs = append(transferTxs, toBeAdded) } - index += count - } + index += count + return index, transferTxs, nil +} - return transferTxs, nil +func filterTransactions(filter Filterable, perTick *protobuff.TransferTransactionsPerTick) []*protobuff.Transaction { + var transactions []*protobuff.Transaction + if filter.ScOnly { // filter if necessary + transactions = make([]*protobuff.Transaction, 0) + for _, tx := range perTick.GetTransactions() { + if tx.InputType != 0 { + transactions = append(transactions, tx) + } + } + } else { + transactions = perTick.GetTransactions() + } + return transactions } func (s *PebbleStore) PutChainDigest(ctx context.Context, tickNumber uint32, digest []byte) error { diff --git a/store/store_paging_test.go b/store/store_paging_test.go index 888b0ea..e782876 100644 --- a/store/store_paging_test.go +++ b/store/store_paging_test.go @@ -20,40 +20,41 @@ var ( store *PebbleStore ) -func Test_Scrapbook(t *testing.T) { - - a := [15]int{1, 2, 3, 4, 5} - s := a[2:3] - log.Print(s) -} - -func TestPebbleStore_TransferPaging_GivenAllFitsPage_ThenReturnAll(t *testing.T) { +func TestPebbleStore_TransfersPaging_GivenAllFitsPage_ThenReturnAll(t *testing.T) { ctx := context.Background() idOne := "QJRRSSKMJRDKUDTYVNYGAMQPULKAMILQQYOWBEXUDEUWQUMNGDHQYLOAJMEB" forTickOne := tickOne(t, idOne) forTickTwo := tickTwo(t, idOne) - got, err := store.GetTransferTransactionsPaged(ctx, idOne, 12, 12, Pageable{0, 2}) + got, _, err := store.GetTransferTransactionsPaged(ctx, idOne, 12, 12, Pageable{0, 2}, Sortable{}, Filterable{}) // only first tick in range require.NoError(t, err) require.Len(t, got, 1) require.Len(t, got[0].Transactions, 2) diff := cmp.Diff([]*pb.TransferTransactionsPerTick{forTickOne}, got, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) require.Equal(t, "", diff, "comparing first TransferTransactionsPerTick for idOne, for first tick") - got, err = store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{0, 3}) + got, _, err = store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{0, 2}, Sortable{}, Filterable{}) // both ticks available + require.NoError(t, err) + require.Len(t, got, 1) + require.Len(t, got[0].Transactions, 2) + diff = cmp.Diff([]*pb.TransferTransactionsPerTick{forTickOne}, got, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) + require.Equal(t, "", diff, "comparing first TransferTransactionsPerTick for idOne, for first tick") + + got, _, err = store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{0, 3}, Sortable{}, Filterable{}) // only second tick in range require.NoError(t, err) require.Len(t, got, 1) require.Len(t, got[0].Transactions, 3) diff = cmp.Diff([]*pb.TransferTransactionsPerTick{forTickTwo}, got, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) require.Equal(t, "", diff, "comparing second TransferTransactionsPerTick for idOne, for second tick") + } -func TestPebbleStore_TransferPaging_GivenPartialFitsPage_ThenPage(t *testing.T) { +func TestPebbleStore_TransfersPaging_GivenPartOfTickFitsPage_ThenPage(t *testing.T) { ctx := context.Background() idOne := "QJRRSSKMJRDKUDTYVNYGAMQPULKAMILQQYOWBEXUDEUWQUMNGDHQYLOAJMEB" forTickTwo := tickTwo(t, idOne) - got, err := store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{0, 2}) + got, _, err := store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{0, 2}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 1) require.Len(t, got[0].Transactions, 2) @@ -66,7 +67,7 @@ func TestPebbleStore_TransferPaging_GivenPartialFitsPage_ThenPage(t *testing.T) }[:], got, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) require.Equal(t, "", diff, "comparing second TransferTransactionsPerTick for idOne, for second tick") - got, err = store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{1, 1}) + got, _, err = store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{1, 1}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 1) require.Len(t, got[0].Transactions, 1) @@ -79,7 +80,7 @@ func TestPebbleStore_TransferPaging_GivenPartialFitsPage_ThenPage(t *testing.T) }[:], got, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) require.Equal(t, "", diff, "comparing second TransferTransactionsPerTick for idOne, for second tick") - got, err = store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{1, 2}) + got, _, err = store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{1, 2}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 1) require.Len(t, got[0].Transactions, 1) @@ -93,33 +94,33 @@ func TestPebbleStore_TransferPaging_GivenPartialFitsPage_ThenPage(t *testing.T) require.Equal(t, "", diff, "comparing second TransferTransactionsPerTick for idOne, for second tick") } -func TestPebbleStore_TransferPaging_GivenPageOutOfRange_ThenEmpty(t *testing.T) { +func TestPebbleStore_TransfersPaging_GivenPageOutOfRange_ThenEmpty(t *testing.T) { ctx := context.Background() idOne := "QJRRSSKMJRDKUDTYVNYGAMQPULKAMILQQYOWBEXUDEUWQUMNGDHQYLOAJMEB" tickTwo(t, idOne) - got, err := store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{1, 3}) + got, _, err := store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{1, 3}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 0) // all items in page 0 - got, err = store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{3, 1}) + got, _, err = store.GetTransferTransactionsPaged(ctx, idOne, 15, 15, Pageable{3, 1}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 0) // all items in page 0 } -func TestPebbleStore_TransferPaging_GivenPageSpansAllData_ThenReturnAll(t *testing.T) { +func TestPebbleStore_TransfersPaging_GivenPageSpansAllData_ThenReturnAll(t *testing.T) { ctx := context.Background() idOne := "QJRRSSKMJRDKUDTYVNYGAMQPULKAMILQQYOWBEXUDEUWQUMNGDHQYLOAJMEB" forTickOne := tickOne(t, idOne) forTickTwo := tickTwo(t, idOne) - got, err := store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{0, 5}) + got, _, err := store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{0, 5}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 2) diff := cmp.Diff([]*pb.TransferTransactionsPerTick{forTickOne, forTickTwo}, got, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) require.Equal(t, "", diff, "expecting last two from tick two") - got, err = store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{0, 5000000}) + got, _, err = store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{0, 5000000}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 2) diff = cmp.Diff([]*pb.TransferTransactionsPerTick{forTickOne, forTickTwo}, got, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) @@ -127,13 +128,13 @@ func TestPebbleStore_TransferPaging_GivenPageSpansAllData_ThenReturnAll(t *testi } -func TestPebbleStore_TransferPaging_GivenPageSpansMultipleTicks_ThenCombineInPage(t *testing.T) { +func TestPebbleStore_TransfersPaging_GivenPageSpansMultipleTicks_ThenCombineInPage(t *testing.T) { ctx := context.Background() idOne := "QJRRSSKMJRDKUDTYVNYGAMQPULKAMILQQYOWBEXUDEUWQUMNGDHQYLOAJMEB" forTickOne := tickOne(t, idOne) forTickTwo := tickTwo(t, idOne) - got, err := store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{0, 3}) + got, _, err := store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{0, 3}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 2) require.Len(t, got[0].Transactions, 2) @@ -146,7 +147,7 @@ func TestPebbleStore_TransferPaging_GivenPageSpansMultipleTicks_ThenCombineInPag }}, got, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) require.Equal(t, "", diff, "expecting 2 from tick one, 1 from tick two") - got, err = store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{1, 2}) + got, _, err = store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{1, 2}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 1) require.Len(t, got[0].Transactions, 2) @@ -158,7 +159,7 @@ func TestPebbleStore_TransferPaging_GivenPageSpansMultipleTicks_ThenCombineInPag }}, got, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) require.Equal(t, "", diff, "expecting first 2 from tick two") - got, err = store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{2, 2}) + got, _, err = store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{2, 2}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 1) require.Len(t, got[0].Transactions, 1) @@ -170,7 +171,7 @@ func TestPebbleStore_TransferPaging_GivenPageSpansMultipleTicks_ThenCombineInPag }}, got, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) require.Equal(t, "", diff, "expecting last one from tick two") - got, err = store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{1, 3}) + got, _, err = store.GetTransferTransactionsPaged(ctx, idOne, 10, 20, Pageable{1, 3}, Sortable{}, Filterable{}) require.NoError(t, err) require.Len(t, got, 1) require.Len(t, got[0].Transactions, 2) @@ -270,12 +271,14 @@ func TestMain(m *testing.M) { if err != nil { log.Fatal(err) } + //goland:noinspection ALL defer os.RemoveAll(dbDir) db, err := pebble.Open(filepath.Join(dbDir, "testdb"), &pebble.Options{}) if err != nil { log.Fatal(err) } + //goland:noinspection ALL defer db.Close() logger, _ := zap.NewDevelopment() diff --git a/store/store_test.go b/store/store_test.go index edf025f..e1b1612 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -604,6 +604,7 @@ func TestPebbleStore_TransferTransactions(t *testing.T) { diff = cmp.Diff([]*pb.TransferTransactionsPerTick{}, perTickTx, cmpopts.IgnoreUnexported(pb.TransferTransactionsPerTick{}, pb.Transaction{})) require.Equal(t, "", diff, "comparison of perTickTx for idOne and tick 14") } + func TestPebbleStore_ChainHash(t *testing.T) { ctx := context.Background()