From b9d7874dc2fe61ad4825d10e6fe88bcb9f922308 Mon Sep 17 00:00:00 2001 From: Qweder93 Date: Wed, 16 Jun 2021 19:46:25 +0300 Subject: [PATCH] multinode: old drpc api returned drpc api with old names added to prevent breaking backwards compatibility. Change-Id: I1b8a41f2c1e0bd11ac83c86f0b1bfbfc1f07378f --- multinode/nodes/service.go | 4 +- multinode/payouts/service.go | 48 +- private/multinodepb/multinode.pb.go | 1041 +++++++++++++++++++--- private/multinodepb/multinode.proto | 96 ++ private/multinodepb/multinode_drpc.pb.go | 555 ++++++++++++ storagenode/multinode/payout.go | 231 ++++- storagenode/peer.go | 2 +- 7 files changed, 1806 insertions(+), 171 deletions(-) diff --git a/multinode/nodes/service.go b/multinode/nodes/service.go index 770ca4054..fdf27a105 100644 --- a/multinode/nodes/service.go +++ b/multinode/nodes/service.go @@ -114,7 +114,7 @@ func (service *Service) ListInfos(ctx context.Context) (_ []NodeInfo, err error) nodeClient := multinodepb.NewDRPCNodeClient(conn) storageClient := multinodepb.NewDRPCStorageClient(conn) bandwidthClient := multinodepb.NewDRPCBandwidthClient(conn) - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, @@ -197,7 +197,7 @@ func (service *Service) ListInfosSatellite(ctx context.Context, satelliteID stor }() nodeClient := multinodepb.NewDRPCNodeClient(conn) - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, diff --git a/multinode/payouts/service.go b/multinode/payouts/service.go index 651fd2014..f24e1fda2 100644 --- a/multinode/payouts/service.go +++ b/multinode/payouts/service.go @@ -73,7 +73,7 @@ func (service *Service) EarnedSatellite(ctx context.Context) (earned []Satellite } var listSatellites storj.NodeIDList - var listNodesEarnedPerSatellite []multinodepb.EarnedSatelliteResponse + var listNodesEarnedPerSatellite []multinodepb.EarnedPerSatelliteResponse for _, node := range storageNodes { earnedPerSatellite, err := service.earnedSatellite(ctx, node) @@ -217,12 +217,12 @@ func (service *Service) summarySatellite(ctx context.Context, node nodes.Node, s err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } - response, err := payoutClient.SummarySatellite(ctx, &multinodepb.SummarySatelliteRequest{Header: header, SatelliteId: satelliteID}) + response, err := payoutClient.SatelliteSummary(ctx, &multinodepb.SatelliteSummaryRequest{Header: header, SatelliteId: satelliteID}) if err != nil { return &multinodepb.PayoutInfo{}, Error.Wrap(err) } @@ -244,12 +244,12 @@ func (service *Service) summarySatellitePeriod(ctx context.Context, node nodes.N err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } - response, err := payoutClient.SummarySatellitePeriod(ctx, &multinodepb.SummarySatellitePeriodRequest{Header: header, SatelliteId: satelliteID, Period: period}) + response, err := payoutClient.SatellitePeriodSummary(ctx, &multinodepb.SatellitePeriodSummaryRequest{Header: header, SatelliteId: satelliteID, Period: period}) if err != nil { return &multinodepb.PayoutInfo{}, Error.Wrap(err) } @@ -271,12 +271,12 @@ func (service *Service) summaryPeriod(ctx context.Context, node nodes.Node, peri err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } - response, err := payoutClient.SummaryPeriod(ctx, &multinodepb.SummaryPeriodRequest{Header: header, Period: period}) + response, err := payoutClient.AllSatellitesPeriodSummary(ctx, &multinodepb.AllSatellitesPeriodSummaryRequest{Header: header, Period: period}) if err != nil { return &multinodepb.PayoutInfo{}, Error.Wrap(err) } @@ -298,12 +298,12 @@ func (service *Service) summary(ctx context.Context, node nodes.Node) (info *mul err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } - response, err := payoutClient.Summary(ctx, &multinodepb.SummaryRequest{Header: header}) + response, err := payoutClient.AllSatellitesSummary(ctx, &multinodepb.AllSatellitesSummaryRequest{Header: header}) if err != nil { return &multinodepb.PayoutInfo{}, Error.Wrap(err) } @@ -476,12 +476,12 @@ func (service *Service) nodeExpectations(ctx context.Context, node nodes.Node) ( err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } - estimated, err := payoutClient.EstimatedPayout(ctx, &multinodepb.EstimatedPayoutRequest{Header: header}) + estimated, err := payoutClient.EstimatedPayoutTotal(ctx, &multinodepb.EstimatedPayoutTotalRequest{Header: header}) if err != nil { return Expectations{}, Error.Wrap(err) } @@ -508,7 +508,7 @@ func (service *Service) earned(ctx context.Context, node nodes.Node) (_ int64, e err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } @@ -522,27 +522,27 @@ func (service *Service) earned(ctx context.Context, node nodes.Node) (_ int64, e } // earnedSatellite returns earned split by satellites. -func (service *Service) earnedSatellite(ctx context.Context, node nodes.Node) (_ multinodepb.EarnedSatelliteResponse, err error) { +func (service *Service) earnedSatellite(ctx context.Context, node nodes.Node) (_ multinodepb.EarnedPerSatelliteResponse, err error) { conn, err := service.dialer.DialNodeURL(ctx, storj.NodeURL{ ID: node.ID, Address: node.PublicAddress, }) if err != nil { - return multinodepb.EarnedSatelliteResponse{}, Error.Wrap(err) + return multinodepb.EarnedPerSatelliteResponse{}, Error.Wrap(err) } defer func() { err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } - response, err := payoutClient.EarnedSatellite(ctx, &multinodepb.EarnedSatelliteRequest{Header: header}) + response, err := payoutClient.EarnedPerSatellite(ctx, &multinodepb.EarnedPerSatelliteRequest{Header: header}) if err != nil { - return multinodepb.EarnedSatelliteResponse{}, Error.Wrap(err) + return multinodepb.EarnedPerSatelliteResponse{}, Error.Wrap(err) } return *response, nil @@ -569,12 +569,12 @@ func (service *Service) PaystubSatellitePeriod(ctx context.Context, period strin err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } - response, err := payoutClient.PaystubSatellitePeriod(ctx, &multinodepb.PaystubSatellitePeriodRequest{ + response, err := payoutClient.SatellitePeriodPaystub(ctx, &multinodepb.SatellitePeriodPaystubRequest{ Header: header, SatelliteId: satelliteID, Period: period, @@ -620,12 +620,12 @@ func (service *Service) PaystubPeriod(ctx context.Context, period string, nodeID err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } - response, err := payoutClient.PaystubPeriod(ctx, &multinodepb.PaystubPeriodRequest{ + response, err := payoutClient.PeriodPaystub(ctx, &multinodepb.PeriodPaystubRequest{ Header: header, Period: period, }) @@ -670,12 +670,12 @@ func (service *Service) PaystubSatellite(ctx context.Context, nodeID, satelliteI err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } - response, err := payoutClient.PaystubSatellite(ctx, &multinodepb.PaystubSatelliteRequest{ + response, err := payoutClient.SatellitePaystub(ctx, &multinodepb.SatellitePaystubRequest{ Header: header, SatelliteId: satelliteID, }) @@ -720,7 +720,7 @@ func (service *Service) Paystub(ctx context.Context, nodeID storj.NodeID) (_ Pay err = errs.Combine(err, conn.Close()) }() - payoutClient := multinodepb.NewDRPCPayoutsClient(conn) + payoutClient := multinodepb.NewDRPCPayoutClient(conn) header := &multinodepb.RequestHeader{ ApiKey: node.APISecret, } diff --git a/private/multinodepb/multinode.pb.go b/private/multinodepb/multinode.pb.go index 85d62c3aa..1102774e6 100644 --- a/private/multinodepb/multinode.pb.go +++ b/private/multinodepb/multinode.pb.go @@ -3187,6 +3187,726 @@ func (m *HeldAmountHistoryResponse_HeldAmountHistory) GetHeldAmounts() []*HeldAm return nil } +type EstimatedPayoutTotalRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EstimatedPayoutTotalRequest) Reset() { *m = EstimatedPayoutTotalRequest{} } +func (m *EstimatedPayoutTotalRequest) String() string { return proto.CompactTextString(m) } +func (*EstimatedPayoutTotalRequest) ProtoMessage() {} +func (*EstimatedPayoutTotalRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{70} +} +func (m *EstimatedPayoutTotalRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EstimatedPayoutTotalRequest.Unmarshal(m, b) +} +func (m *EstimatedPayoutTotalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EstimatedPayoutTotalRequest.Marshal(b, m, deterministic) +} +func (m *EstimatedPayoutTotalRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstimatedPayoutTotalRequest.Merge(m, src) +} +func (m *EstimatedPayoutTotalRequest) XXX_Size() int { + return xxx_messageInfo_EstimatedPayoutTotalRequest.Size(m) +} +func (m *EstimatedPayoutTotalRequest) XXX_DiscardUnknown() { + xxx_messageInfo_EstimatedPayoutTotalRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_EstimatedPayoutTotalRequest proto.InternalMessageInfo + +func (m *EstimatedPayoutTotalRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +type EstimatedPayoutTotalResponse struct { + EstimatedEarnings int64 `protobuf:"varint,1,opt,name=estimated_earnings,json=estimatedEarnings,proto3" json:"estimated_earnings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EstimatedPayoutTotalResponse) Reset() { *m = EstimatedPayoutTotalResponse{} } +func (m *EstimatedPayoutTotalResponse) String() string { return proto.CompactTextString(m) } +func (*EstimatedPayoutTotalResponse) ProtoMessage() {} +func (*EstimatedPayoutTotalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{71} +} +func (m *EstimatedPayoutTotalResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EstimatedPayoutTotalResponse.Unmarshal(m, b) +} +func (m *EstimatedPayoutTotalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EstimatedPayoutTotalResponse.Marshal(b, m, deterministic) +} +func (m *EstimatedPayoutTotalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstimatedPayoutTotalResponse.Merge(m, src) +} +func (m *EstimatedPayoutTotalResponse) XXX_Size() int { + return xxx_messageInfo_EstimatedPayoutTotalResponse.Size(m) +} +func (m *EstimatedPayoutTotalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_EstimatedPayoutTotalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_EstimatedPayoutTotalResponse proto.InternalMessageInfo + +func (m *EstimatedPayoutTotalResponse) GetEstimatedEarnings() int64 { + if m != nil { + return m.EstimatedEarnings + } + return 0 +} + +type AllSatellitesSummaryRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AllSatellitesSummaryRequest) Reset() { *m = AllSatellitesSummaryRequest{} } +func (m *AllSatellitesSummaryRequest) String() string { return proto.CompactTextString(m) } +func (*AllSatellitesSummaryRequest) ProtoMessage() {} +func (*AllSatellitesSummaryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{72} +} +func (m *AllSatellitesSummaryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AllSatellitesSummaryRequest.Unmarshal(m, b) +} +func (m *AllSatellitesSummaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AllSatellitesSummaryRequest.Marshal(b, m, deterministic) +} +func (m *AllSatellitesSummaryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllSatellitesSummaryRequest.Merge(m, src) +} +func (m *AllSatellitesSummaryRequest) XXX_Size() int { + return xxx_messageInfo_AllSatellitesSummaryRequest.Size(m) +} +func (m *AllSatellitesSummaryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AllSatellitesSummaryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AllSatellitesSummaryRequest proto.InternalMessageInfo + +func (m *AllSatellitesSummaryRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +type AllSatellitesSummaryResponse struct { + PayoutInfo *PayoutInfo `protobuf:"bytes,1,opt,name=payout_info,json=payoutInfo,proto3" json:"payout_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AllSatellitesSummaryResponse) Reset() { *m = AllSatellitesSummaryResponse{} } +func (m *AllSatellitesSummaryResponse) String() string { return proto.CompactTextString(m) } +func (*AllSatellitesSummaryResponse) ProtoMessage() {} +func (*AllSatellitesSummaryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{73} +} +func (m *AllSatellitesSummaryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AllSatellitesSummaryResponse.Unmarshal(m, b) +} +func (m *AllSatellitesSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AllSatellitesSummaryResponse.Marshal(b, m, deterministic) +} +func (m *AllSatellitesSummaryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllSatellitesSummaryResponse.Merge(m, src) +} +func (m *AllSatellitesSummaryResponse) XXX_Size() int { + return xxx_messageInfo_AllSatellitesSummaryResponse.Size(m) +} +func (m *AllSatellitesSummaryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AllSatellitesSummaryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AllSatellitesSummaryResponse proto.InternalMessageInfo + +func (m *AllSatellitesSummaryResponse) GetPayoutInfo() *PayoutInfo { + if m != nil { + return m.PayoutInfo + } + return nil +} + +type AllSatellitesPeriodSummaryRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Period string `protobuf:"bytes,2,opt,name=period,proto3" json:"period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AllSatellitesPeriodSummaryRequest) Reset() { *m = AllSatellitesPeriodSummaryRequest{} } +func (m *AllSatellitesPeriodSummaryRequest) String() string { return proto.CompactTextString(m) } +func (*AllSatellitesPeriodSummaryRequest) ProtoMessage() {} +func (*AllSatellitesPeriodSummaryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{74} +} +func (m *AllSatellitesPeriodSummaryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AllSatellitesPeriodSummaryRequest.Unmarshal(m, b) +} +func (m *AllSatellitesPeriodSummaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AllSatellitesPeriodSummaryRequest.Marshal(b, m, deterministic) +} +func (m *AllSatellitesPeriodSummaryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllSatellitesPeriodSummaryRequest.Merge(m, src) +} +func (m *AllSatellitesPeriodSummaryRequest) XXX_Size() int { + return xxx_messageInfo_AllSatellitesPeriodSummaryRequest.Size(m) +} +func (m *AllSatellitesPeriodSummaryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AllSatellitesPeriodSummaryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AllSatellitesPeriodSummaryRequest proto.InternalMessageInfo + +func (m *AllSatellitesPeriodSummaryRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *AllSatellitesPeriodSummaryRequest) GetPeriod() string { + if m != nil { + return m.Period + } + return "" +} + +type AllSatellitesPeriodSummaryResponse struct { + PayoutInfo *PayoutInfo `protobuf:"bytes,1,opt,name=payout_info,json=payoutInfo,proto3" json:"payout_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AllSatellitesPeriodSummaryResponse) Reset() { *m = AllSatellitesPeriodSummaryResponse{} } +func (m *AllSatellitesPeriodSummaryResponse) String() string { return proto.CompactTextString(m) } +func (*AllSatellitesPeriodSummaryResponse) ProtoMessage() {} +func (*AllSatellitesPeriodSummaryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{75} +} +func (m *AllSatellitesPeriodSummaryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AllSatellitesPeriodSummaryResponse.Unmarshal(m, b) +} +func (m *AllSatellitesPeriodSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AllSatellitesPeriodSummaryResponse.Marshal(b, m, deterministic) +} +func (m *AllSatellitesPeriodSummaryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllSatellitesPeriodSummaryResponse.Merge(m, src) +} +func (m *AllSatellitesPeriodSummaryResponse) XXX_Size() int { + return xxx_messageInfo_AllSatellitesPeriodSummaryResponse.Size(m) +} +func (m *AllSatellitesPeriodSummaryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AllSatellitesPeriodSummaryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AllSatellitesPeriodSummaryResponse proto.InternalMessageInfo + +func (m *AllSatellitesPeriodSummaryResponse) GetPayoutInfo() *PayoutInfo { + if m != nil { + return m.PayoutInfo + } + return nil +} + +type SatelliteSummaryRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + SatelliteId NodeID `protobuf:"bytes,2,opt,name=satellite_id,json=satelliteId,proto3,customtype=NodeID" json:"satellite_id"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SatelliteSummaryRequest) Reset() { *m = SatelliteSummaryRequest{} } +func (m *SatelliteSummaryRequest) String() string { return proto.CompactTextString(m) } +func (*SatelliteSummaryRequest) ProtoMessage() {} +func (*SatelliteSummaryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{76} +} +func (m *SatelliteSummaryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SatelliteSummaryRequest.Unmarshal(m, b) +} +func (m *SatelliteSummaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SatelliteSummaryRequest.Marshal(b, m, deterministic) +} +func (m *SatelliteSummaryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SatelliteSummaryRequest.Merge(m, src) +} +func (m *SatelliteSummaryRequest) XXX_Size() int { + return xxx_messageInfo_SatelliteSummaryRequest.Size(m) +} +func (m *SatelliteSummaryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SatelliteSummaryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SatelliteSummaryRequest proto.InternalMessageInfo + +func (m *SatelliteSummaryRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +type SatelliteSummaryResponse struct { + PayoutInfo *PayoutInfo `protobuf:"bytes,1,opt,name=payout_info,json=payoutInfo,proto3" json:"payout_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SatelliteSummaryResponse) Reset() { *m = SatelliteSummaryResponse{} } +func (m *SatelliteSummaryResponse) String() string { return proto.CompactTextString(m) } +func (*SatelliteSummaryResponse) ProtoMessage() {} +func (*SatelliteSummaryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{77} +} +func (m *SatelliteSummaryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SatelliteSummaryResponse.Unmarshal(m, b) +} +func (m *SatelliteSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SatelliteSummaryResponse.Marshal(b, m, deterministic) +} +func (m *SatelliteSummaryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SatelliteSummaryResponse.Merge(m, src) +} +func (m *SatelliteSummaryResponse) XXX_Size() int { + return xxx_messageInfo_SatelliteSummaryResponse.Size(m) +} +func (m *SatelliteSummaryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SatelliteSummaryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SatelliteSummaryResponse proto.InternalMessageInfo + +func (m *SatelliteSummaryResponse) GetPayoutInfo() *PayoutInfo { + if m != nil { + return m.PayoutInfo + } + return nil +} + +type SatellitePeriodSummaryRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + SatelliteId NodeID `protobuf:"bytes,2,opt,name=satellite_id,json=satelliteId,proto3,customtype=NodeID" json:"satellite_id"` + Period string `protobuf:"bytes,3,opt,name=period,proto3" json:"period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SatellitePeriodSummaryRequest) Reset() { *m = SatellitePeriodSummaryRequest{} } +func (m *SatellitePeriodSummaryRequest) String() string { return proto.CompactTextString(m) } +func (*SatellitePeriodSummaryRequest) ProtoMessage() {} +func (*SatellitePeriodSummaryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{78} +} +func (m *SatellitePeriodSummaryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SatellitePeriodSummaryRequest.Unmarshal(m, b) +} +func (m *SatellitePeriodSummaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SatellitePeriodSummaryRequest.Marshal(b, m, deterministic) +} +func (m *SatellitePeriodSummaryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SatellitePeriodSummaryRequest.Merge(m, src) +} +func (m *SatellitePeriodSummaryRequest) XXX_Size() int { + return xxx_messageInfo_SatellitePeriodSummaryRequest.Size(m) +} +func (m *SatellitePeriodSummaryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SatellitePeriodSummaryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SatellitePeriodSummaryRequest proto.InternalMessageInfo + +func (m *SatellitePeriodSummaryRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *SatellitePeriodSummaryRequest) GetPeriod() string { + if m != nil { + return m.Period + } + return "" +} + +type SatellitePeriodSummaryResponse struct { + PayoutInfo *PayoutInfo `protobuf:"bytes,1,opt,name=payout_info,json=payoutInfo,proto3" json:"payout_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SatellitePeriodSummaryResponse) Reset() { *m = SatellitePeriodSummaryResponse{} } +func (m *SatellitePeriodSummaryResponse) String() string { return proto.CompactTextString(m) } +func (*SatellitePeriodSummaryResponse) ProtoMessage() {} +func (*SatellitePeriodSummaryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{79} +} +func (m *SatellitePeriodSummaryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SatellitePeriodSummaryResponse.Unmarshal(m, b) +} +func (m *SatellitePeriodSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SatellitePeriodSummaryResponse.Marshal(b, m, deterministic) +} +func (m *SatellitePeriodSummaryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SatellitePeriodSummaryResponse.Merge(m, src) +} +func (m *SatellitePeriodSummaryResponse) XXX_Size() int { + return xxx_messageInfo_SatellitePeriodSummaryResponse.Size(m) +} +func (m *SatellitePeriodSummaryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SatellitePeriodSummaryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SatellitePeriodSummaryResponse proto.InternalMessageInfo + +func (m *SatellitePeriodSummaryResponse) GetPayoutInfo() *PayoutInfo { + if m != nil { + return m.PayoutInfo + } + return nil +} + +type EarnedPerSatelliteRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EarnedPerSatelliteRequest) Reset() { *m = EarnedPerSatelliteRequest{} } +func (m *EarnedPerSatelliteRequest) String() string { return proto.CompactTextString(m) } +func (*EarnedPerSatelliteRequest) ProtoMessage() {} +func (*EarnedPerSatelliteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{80} +} +func (m *EarnedPerSatelliteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EarnedPerSatelliteRequest.Unmarshal(m, b) +} +func (m *EarnedPerSatelliteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EarnedPerSatelliteRequest.Marshal(b, m, deterministic) +} +func (m *EarnedPerSatelliteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EarnedPerSatelliteRequest.Merge(m, src) +} +func (m *EarnedPerSatelliteRequest) XXX_Size() int { + return xxx_messageInfo_EarnedPerSatelliteRequest.Size(m) +} +func (m *EarnedPerSatelliteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_EarnedPerSatelliteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_EarnedPerSatelliteRequest proto.InternalMessageInfo + +func (m *EarnedPerSatelliteRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +type EarnedPerSatelliteResponse struct { + EarnedSatellite []*EarnedSatellite `protobuf:"bytes,1,rep,name=earned_satellite,json=earnedSatellite,proto3" json:"earned_satellite,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EarnedPerSatelliteResponse) Reset() { *m = EarnedPerSatelliteResponse{} } +func (m *EarnedPerSatelliteResponse) String() string { return proto.CompactTextString(m) } +func (*EarnedPerSatelliteResponse) ProtoMessage() {} +func (*EarnedPerSatelliteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{81} +} +func (m *EarnedPerSatelliteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EarnedPerSatelliteResponse.Unmarshal(m, b) +} +func (m *EarnedPerSatelliteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EarnedPerSatelliteResponse.Marshal(b, m, deterministic) +} +func (m *EarnedPerSatelliteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EarnedPerSatelliteResponse.Merge(m, src) +} +func (m *EarnedPerSatelliteResponse) XXX_Size() int { + return xxx_messageInfo_EarnedPerSatelliteResponse.Size(m) +} +func (m *EarnedPerSatelliteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_EarnedPerSatelliteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_EarnedPerSatelliteResponse proto.InternalMessageInfo + +func (m *EarnedPerSatelliteResponse) GetEarnedSatellite() []*EarnedSatellite { + if m != nil { + return m.EarnedSatellite + } + return nil +} + +type SatellitePaystubRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + SatelliteId NodeID `protobuf:"bytes,2,opt,name=satellite_id,json=satelliteId,proto3,customtype=NodeID" json:"satellite_id"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SatellitePaystubRequest) Reset() { *m = SatellitePaystubRequest{} } +func (m *SatellitePaystubRequest) String() string { return proto.CompactTextString(m) } +func (*SatellitePaystubRequest) ProtoMessage() {} +func (*SatellitePaystubRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{82} +} +func (m *SatellitePaystubRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SatellitePaystubRequest.Unmarshal(m, b) +} +func (m *SatellitePaystubRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SatellitePaystubRequest.Marshal(b, m, deterministic) +} +func (m *SatellitePaystubRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SatellitePaystubRequest.Merge(m, src) +} +func (m *SatellitePaystubRequest) XXX_Size() int { + return xxx_messageInfo_SatellitePaystubRequest.Size(m) +} +func (m *SatellitePaystubRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SatellitePaystubRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SatellitePaystubRequest proto.InternalMessageInfo + +func (m *SatellitePaystubRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +type SatellitePaystubResponse struct { + Paystub *Paystub `protobuf:"bytes,1,opt,name=paystub,proto3" json:"paystub,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SatellitePaystubResponse) Reset() { *m = SatellitePaystubResponse{} } +func (m *SatellitePaystubResponse) String() string { return proto.CompactTextString(m) } +func (*SatellitePaystubResponse) ProtoMessage() {} +func (*SatellitePaystubResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{83} +} +func (m *SatellitePaystubResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SatellitePaystubResponse.Unmarshal(m, b) +} +func (m *SatellitePaystubResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SatellitePaystubResponse.Marshal(b, m, deterministic) +} +func (m *SatellitePaystubResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SatellitePaystubResponse.Merge(m, src) +} +func (m *SatellitePaystubResponse) XXX_Size() int { + return xxx_messageInfo_SatellitePaystubResponse.Size(m) +} +func (m *SatellitePaystubResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SatellitePaystubResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SatellitePaystubResponse proto.InternalMessageInfo + +func (m *SatellitePaystubResponse) GetPaystub() *Paystub { + if m != nil { + return m.Paystub + } + return nil +} + +type PeriodPaystubRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Period string `protobuf:"bytes,2,opt,name=period,proto3" json:"period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PeriodPaystubRequest) Reset() { *m = PeriodPaystubRequest{} } +func (m *PeriodPaystubRequest) String() string { return proto.CompactTextString(m) } +func (*PeriodPaystubRequest) ProtoMessage() {} +func (*PeriodPaystubRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{84} +} +func (m *PeriodPaystubRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PeriodPaystubRequest.Unmarshal(m, b) +} +func (m *PeriodPaystubRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PeriodPaystubRequest.Marshal(b, m, deterministic) +} +func (m *PeriodPaystubRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeriodPaystubRequest.Merge(m, src) +} +func (m *PeriodPaystubRequest) XXX_Size() int { + return xxx_messageInfo_PeriodPaystubRequest.Size(m) +} +func (m *PeriodPaystubRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PeriodPaystubRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PeriodPaystubRequest proto.InternalMessageInfo + +func (m *PeriodPaystubRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *PeriodPaystubRequest) GetPeriod() string { + if m != nil { + return m.Period + } + return "" +} + +type PeriodPaystubResponse struct { + Paystub *Paystub `protobuf:"bytes,1,opt,name=paystub,proto3" json:"paystub,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PeriodPaystubResponse) Reset() { *m = PeriodPaystubResponse{} } +func (m *PeriodPaystubResponse) String() string { return proto.CompactTextString(m) } +func (*PeriodPaystubResponse) ProtoMessage() {} +func (*PeriodPaystubResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{85} +} +func (m *PeriodPaystubResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PeriodPaystubResponse.Unmarshal(m, b) +} +func (m *PeriodPaystubResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PeriodPaystubResponse.Marshal(b, m, deterministic) +} +func (m *PeriodPaystubResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeriodPaystubResponse.Merge(m, src) +} +func (m *PeriodPaystubResponse) XXX_Size() int { + return xxx_messageInfo_PeriodPaystubResponse.Size(m) +} +func (m *PeriodPaystubResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PeriodPaystubResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PeriodPaystubResponse proto.InternalMessageInfo + +func (m *PeriodPaystubResponse) GetPaystub() *Paystub { + if m != nil { + return m.Paystub + } + return nil +} + +type SatellitePeriodPaystubRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + SatelliteId NodeID `protobuf:"bytes,2,opt,name=satellite_id,json=satelliteId,proto3,customtype=NodeID" json:"satellite_id"` + Period string `protobuf:"bytes,3,opt,name=period,proto3" json:"period,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SatellitePeriodPaystubRequest) Reset() { *m = SatellitePeriodPaystubRequest{} } +func (m *SatellitePeriodPaystubRequest) String() string { return proto.CompactTextString(m) } +func (*SatellitePeriodPaystubRequest) ProtoMessage() {} +func (*SatellitePeriodPaystubRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{86} +} +func (m *SatellitePeriodPaystubRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SatellitePeriodPaystubRequest.Unmarshal(m, b) +} +func (m *SatellitePeriodPaystubRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SatellitePeriodPaystubRequest.Marshal(b, m, deterministic) +} +func (m *SatellitePeriodPaystubRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SatellitePeriodPaystubRequest.Merge(m, src) +} +func (m *SatellitePeriodPaystubRequest) XXX_Size() int { + return xxx_messageInfo_SatellitePeriodPaystubRequest.Size(m) +} +func (m *SatellitePeriodPaystubRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SatellitePeriodPaystubRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SatellitePeriodPaystubRequest proto.InternalMessageInfo + +func (m *SatellitePeriodPaystubRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *SatellitePeriodPaystubRequest) GetPeriod() string { + if m != nil { + return m.Period + } + return "" +} + +type SatellitePeriodPaystubResponse struct { + Paystub *Paystub `protobuf:"bytes,1,opt,name=paystub,proto3" json:"paystub,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SatellitePeriodPaystubResponse) Reset() { *m = SatellitePeriodPaystubResponse{} } +func (m *SatellitePeriodPaystubResponse) String() string { return proto.CompactTextString(m) } +func (*SatellitePeriodPaystubResponse) ProtoMessage() {} +func (*SatellitePeriodPaystubResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9a45fd79b06f3a1b, []int{87} +} +func (m *SatellitePeriodPaystubResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SatellitePeriodPaystubResponse.Unmarshal(m, b) +} +func (m *SatellitePeriodPaystubResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SatellitePeriodPaystubResponse.Marshal(b, m, deterministic) +} +func (m *SatellitePeriodPaystubResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SatellitePeriodPaystubResponse.Merge(m, src) +} +func (m *SatellitePeriodPaystubResponse) XXX_Size() int { + return xxx_messageInfo_SatellitePeriodPaystubResponse.Size(m) +} +func (m *SatellitePeriodPaystubResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SatellitePeriodPaystubResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SatellitePeriodPaystubResponse proto.InternalMessageInfo + +func (m *SatellitePeriodPaystubResponse) GetPaystub() *Paystub { + if m != nil { + return m.Paystub + } + return nil +} + func init() { proto.RegisterType((*RequestHeader)(nil), "multinode.RequestHeader") proto.RegisterType((*DiskSpaceRequest)(nil), "multinode.DiskSpaceRequest") @@ -3263,151 +3983,188 @@ func init() { proto.RegisterType((*HeldAmountHistoryResponse)(nil), "multinode.HeldAmountHistoryResponse") proto.RegisterType((*HeldAmountHistoryResponse_HeldAmount)(nil), "multinode.HeldAmountHistoryResponse.HeldAmount") proto.RegisterType((*HeldAmountHistoryResponse_HeldAmountHistory)(nil), "multinode.HeldAmountHistoryResponse.HeldAmountHistory") + proto.RegisterType((*EstimatedPayoutTotalRequest)(nil), "multinode.EstimatedPayoutTotalRequest") + proto.RegisterType((*EstimatedPayoutTotalResponse)(nil), "multinode.EstimatedPayoutTotalResponse") + proto.RegisterType((*AllSatellitesSummaryRequest)(nil), "multinode.AllSatellitesSummaryRequest") + proto.RegisterType((*AllSatellitesSummaryResponse)(nil), "multinode.AllSatellitesSummaryResponse") + proto.RegisterType((*AllSatellitesPeriodSummaryRequest)(nil), "multinode.AllSatellitesPeriodSummaryRequest") + proto.RegisterType((*AllSatellitesPeriodSummaryResponse)(nil), "multinode.AllSatellitesPeriodSummaryResponse") + proto.RegisterType((*SatelliteSummaryRequest)(nil), "multinode.SatelliteSummaryRequest") + proto.RegisterType((*SatelliteSummaryResponse)(nil), "multinode.SatelliteSummaryResponse") + proto.RegisterType((*SatellitePeriodSummaryRequest)(nil), "multinode.SatellitePeriodSummaryRequest") + proto.RegisterType((*SatellitePeriodSummaryResponse)(nil), "multinode.SatellitePeriodSummaryResponse") + proto.RegisterType((*EarnedPerSatelliteRequest)(nil), "multinode.EarnedPerSatelliteRequest") + proto.RegisterType((*EarnedPerSatelliteResponse)(nil), "multinode.EarnedPerSatelliteResponse") + proto.RegisterType((*SatellitePaystubRequest)(nil), "multinode.SatellitePaystubRequest") + proto.RegisterType((*SatellitePaystubResponse)(nil), "multinode.SatellitePaystubResponse") + proto.RegisterType((*PeriodPaystubRequest)(nil), "multinode.PeriodPaystubRequest") + proto.RegisterType((*PeriodPaystubResponse)(nil), "multinode.PeriodPaystubResponse") + proto.RegisterType((*SatellitePeriodPaystubRequest)(nil), "multinode.SatellitePeriodPaystubRequest") + proto.RegisterType((*SatellitePeriodPaystubResponse)(nil), "multinode.SatellitePeriodPaystubResponse") } func init() { proto.RegisterFile("multinode.proto", fileDescriptor_9a45fd79b06f3a1b) } var fileDescriptor_9a45fd79b06f3a1b = []byte{ - // 2243 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcd, 0x73, 0x1c, 0x47, - 0x15, 0x67, 0xb5, 0xd2, 0xae, 0xf6, 0xed, 0x97, 0xd4, 0xd1, 0xc7, 0x6a, 0x62, 0x7d, 0x78, 0xe4, - 0xb2, 0x65, 0xec, 0x48, 0x44, 0x71, 0x05, 0x12, 0x92, 0xc2, 0x92, 0x2d, 0x47, 0x8a, 0x45, 0x2c, - 0x46, 0x32, 0x95, 0x8a, 0x0b, 0xaf, 0x47, 0x9a, 0x96, 0x34, 0x64, 0x76, 0x67, 0x98, 0xee, 0x55, - 0x50, 0x15, 0x15, 0x38, 0x40, 0x38, 0x51, 0xc5, 0x99, 0xe2, 0xff, 0xe0, 0xc8, 0x8d, 0x4a, 0x15, - 0xff, 0x01, 0x87, 0x50, 0xc5, 0x8d, 0x33, 0x07, 0xae, 0x54, 0x7f, 0xcc, 0x47, 0xcf, 0xce, 0xec, - 0xca, 0xb3, 0x50, 0xe2, 0x36, 0xfd, 0x3e, 0x7e, 0xfd, 0xfa, 0xbd, 0xee, 0x37, 0xfd, 0x5e, 0x43, - 0xb3, 0xd3, 0x73, 0xa8, 0xdd, 0x75, 0x2d, 0xbc, 0xee, 0xf9, 0x2e, 0x75, 0x51, 0x25, 0x24, 0x68, - 0x70, 0xe6, 0x9e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, 0x56, 0x9c, 0x84, 0x34, 0x98, 0xb4, 0x6c, 0xe2, 0xb9, 0x04, - 0x5b, 0xad, 0x9a, 0x70, 0x61, 0x30, 0x66, 0x25, 0xce, 0x2e, 0x76, 0xac, 0xad, 0x8e, 0xdb, 0xeb, - 0xd2, 0x5d, 0x9b, 0x50, 0x77, 0x94, 0x3b, 0xdb, 0xd7, 0x63, 0xb0, 0x90, 0x02, 0x27, 0xf7, 0xd7, - 0x01, 0x94, 0xcf, 0x05, 0x49, 0xfe, 0x2b, 0xde, 0x8d, 0x01, 0x66, 0xaa, 0xa5, 0x70, 0x02, 0x18, - 0xed, 0x03, 0x80, 0x88, 0x1b, 0xdb, 0xf9, 0x85, 0xf8, 0xce, 0x67, 0x74, 0x93, 0x4b, 0xc8, 0x0d, - 0x24, 0x47, 0xda, 0x1f, 0x0a, 0x30, 0xdd, 0x07, 0xde, 0x77, 0xe4, 0x0a, 0xc3, 0x8f, 0x9c, 0x01, - 0x35, 0x16, 0x9e, 0xb6, 0xc0, 0x65, 0xf5, 0x12, 0x5b, 0xdd, 0xc6, 0x6b, 0xae, 0xce, 0xa8, 0x9e, - 0x87, 0xdf, 0x64, 0xf3, 0x57, 0x63, 0x50, 0x96, 0x8f, 0x06, 0xe8, 0x09, 0x54, 0xc2, 0x87, 0x3c, - 0xf4, 0x66, 0x0c, 0x36, 0xf9, 0x4a, 0xa8, 0xdd, 0x48, 0x67, 0xca, 0x00, 0xec, 0xc2, 0x84, 0x78, - 0x48, 0x5b, 0xca, 0x7a, 0x99, 0x90, 0x30, 0xcb, 0x99, 0x7c, 0x89, 0x74, 0x02, 0x0d, 0xf5, 0x2d, - 0x04, 0xdd, 0xc9, 0x50, 0x49, 0xfe, 0x03, 0xb5, 0xb5, 0xe1, 0x82, 0x62, 0x92, 0xcd, 0x7f, 0x94, - 0xa0, 0x12, 0x36, 0xdf, 0x91, 0x09, 0xb5, 0xf8, 0x5b, 0x86, 0x32, 0xe1, 0xa0, 0xf7, 0x13, 0x65, - 0xc2, 0xc1, 0xcf, 0x22, 0x17, 0xb0, 0x90, 0xf9, 0xf0, 0x80, 0xee, 0xa5, 0xc1, 0x64, 0xdc, 0xd1, - 0xb5, 0xfb, 0x57, 0x13, 0x0e, 0x6b, 0xff, 0xa9, 0xa4, 0x10, 0xd2, 0x07, 0x20, 0x04, 0xb3, 0xac, - 0x0e, 0x94, 0x91, 0xe0, 0x1d, 0x98, 0x4b, 0x7f, 0x04, 0x40, 0x6b, 0x7d, 0x0d, 0xca, 0xac, 0xe5, - 0xdc, 0xbd, 0x82, 0xa4, 0x9c, 0xce, 0x80, 0xba, 0x22, 0x81, 0x96, 0xb3, 0x74, 0x03, 0xf0, 0x95, - 0x6c, 0x01, 0x89, 0xe9, 0xc1, 0x7c, 0x46, 0x1b, 0x1e, 0xdd, 0xed, 0x6f, 0x9c, 0x66, 0x2d, 0xe2, - 0xdb, 0x57, 0x11, 0x95, 0x33, 0x3e, 0x87, 0x86, 0x2a, 0x82, 0x56, 0x32, 0xb5, 0x03, 0xfc, 0x9b, - 0x03, 0x24, 0x22, 0x58, 0xb5, 0x2b, 0xae, 0xc0, 0xa6, 0xb6, 0xeb, 0x15, 0xd8, 0x8c, 0x96, 0xfa, - 0xfb, 0x30, 0xc1, 0x39, 0x68, 0x3e, 0x29, 0x1b, 0x80, 0xb4, 0xfa, 0x19, 0xf2, 0x90, 0x7d, 0x55, - 0x84, 0x71, 0x96, 0xd3, 0xd0, 0x43, 0x28, 0xcb, 0xae, 0x29, 0x5a, 0x88, 0x49, 0xab, 0xdd, 0x58, - 0x4d, 0x4b, 0x63, 0x49, 0x33, 0xf6, 0xa1, 0x1a, 0x6b, 0x81, 0xa2, 0xc5, 0x98, 0x68, 0x7f, 0x8b, - 0x55, 0x5b, 0xca, 0x62, 0x4b, 0xb4, 0x3d, 0x80, 0xa8, 0x13, 0x88, 0x6e, 0x64, 0x34, 0x08, 0x05, - 0xd6, 0xe2, 0xc0, 0xf6, 0x21, 0x7a, 0x09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61, 0x66, 0x85, - 0xfc, 0x30, 0xaa, 0x4f, 0x16, 0x52, 0xca, 0x9f, 0x94, 0xa3, 0x97, 0x2c, 0x6f, 0x0d, 0xa8, 0x2b, - 0xe5, 0xa4, 0xb2, 0xe4, 0xb4, 0x52, 0x56, 0x59, 0x72, 0x7a, 0x25, 0xda, 0x81, 0xb9, 0xf4, 0xe2, - 0x4d, 0x39, 0x1d, 0x03, 0xab, 0x4f, 0xe5, 0x74, 0x0c, 0xa9, 0x04, 0x5f, 0xa6, 0x5d, 0x8c, 0x57, - 0x07, 0xdf, 0x67, 0xfb, 0x13, 0x66, 0xe6, 0xa5, 0x77, 0xfb, 0xd6, 0x67, 0x3a, 0x23, 0xfc, 0x74, - 0xdd, 0x76, 0x37, 0xf8, 0xc7, 0x86, 0xe7, 0xdb, 0x17, 0x26, 0xc5, 0x1b, 0xa1, 0xb6, 0x77, 0x7c, - 0x5c, 0xe2, 0xaf, 0x63, 0xef, 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, 0x19, 0x8f, 0x1f, 0x0e, 0x82, - 0x27, 0x00, 0x00, + // 2549 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcd, 0x73, 0x1c, 0x47, + 0x15, 0x67, 0xb5, 0xd2, 0xae, 0xf6, 0xed, 0x97, 0xd4, 0xd1, 0xc7, 0x6a, 0xac, 0x2f, 0x8f, 0x8c, + 0x2d, 0x63, 0x5b, 0x22, 0x8a, 0x2b, 0x90, 0x90, 0x14, 0x96, 0x6c, 0x39, 0x52, 0x2c, 0xc7, 0x62, + 0x64, 0xa7, 0x52, 0x31, 0x78, 0x3d, 0xd2, 0xb4, 0x57, 0x43, 0x66, 0x77, 0x86, 0x99, 0x5e, 0x05, + 0x55, 0x51, 0x81, 0x03, 0x84, 0x13, 0x55, 0x9c, 0x29, 0xfe, 0x0f, 0x8e, 0xdc, 0xa8, 0x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 0x46, 0x4b, 0xeb, + 0x83, 0x19, 0x99, 0x90, 0xad, 0x7f, 0x95, 0xa0, 0xe2, 0x77, 0x9d, 0x91, 0x0a, 0xb5, 0x70, 0x13, + 0x5f, 0x10, 0x98, 0xf5, 0xc7, 0x01, 0x41, 0x60, 0xf6, 0xff, 0x01, 0xce, 0x60, 0x21, 0xb5, 0xe3, + 0x8e, 0x6e, 0x25, 0xc1, 0xa4, 0x14, 0xa7, 0xa4, 0xdb, 0x17, 0x63, 0xf6, 0x8b, 0xde, 0x53, 0x51, + 0x26, 0x24, 0x67, 0x20, 0x78, 0x52, 0xd6, 0x32, 0x79, 0x38, 0x78, 0x17, 0xe6, 0x92, 0xbb, 0xdf, + 0x68, 0x3d, 0xd6, 0x99, 0x4b, 0x33, 0xe7, 0xe6, 0x05, 0x38, 0xb9, 0x38, 0x05, 0xea, 0x02, 0x07, + 0x5a, 0x49, 0x5b, 0xeb, 0x81, 0xaf, 0xa6, 0x33, 0x70, 0x4c, 0x0b, 0xe6, 0x53, 0xfa, 0xcf, 0xe8, + 0x66, 0xbc, 0x63, 0x98, 0x66, 0xc4, 0xf7, 0x2e, 0xc2, 0xca, 0x25, 0x3e, 0x83, 0x86, 0xc8, 0x82, + 0x56, 0x53, 0x57, 0x7b, 0xf8, 0x57, 0x33, 0x38, 0x02, 0x58, 0xb1, 0x1d, 0x2c, 0xc0, 0x26, 0xf6, + 0xa9, 0x05, 0xd8, 0x94, 0x5e, 0xf2, 0xbb, 0x30, 0x41, 0x29, 0x68, 0x3e, 0xca, 0xeb, 0x81, 0xb4, + 0xe2, 0x04, 0x7e, 0xc9, 0xbe, 0x2c, 0xc2, 0xb8, 0x1b, 0xe7, 0xd0, 0x3d, 0x28, 0xf3, 0x76, 0x21, + 0x5a, 0x08, 0x71, 0x8b, 0x6d, 0x48, 0x49, 0x4a, 0x22, 0x71, 0x35, 0x0e, 0xa0, 0x1a, 0xea, 0xfd, + 0xa1, 0xa5, 0x10, 0x6b, 0xbc, 0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 0x39, 0x4c, 0x2a, + 0x4c, 0x0b, 0xe7, 0x30, 0xb9, 0xde, 0xfc, 0x1c, 0xa6, 0xa2, 0x25, 0x3c, 0xe1, 0x1c, 0xa6, 0x94, + 0x9d, 0x85, 0x73, 0x98, 0x5a, 0x1a, 0xbe, 0x17, 0x14, 0xe6, 0x16, 0x12, 0xf2, 0xb3, 0x84, 0xab, + 0x17, 0xcd, 0xf3, 0x14, 0xa8, 0x0b, 0x75, 0x54, 0xc1, 0xe4, 0xa4, 0x1a, 0xae, 0x60, 0x72, 0x72, + 0x09, 0xb6, 0x0b, 0x73, 0xc9, 0x55, 0x4b, 0xe1, 0x76, 0x64, 0x96, 0x5d, 0x85, 0xdb, 0x31, 0xa0, + 0x04, 0xfa, 0x22, 0xa9, 0x22, 0xb4, 0x96, 0x5d, 0xc8, 0x89, 0x07, 0xcc, 0xd4, 0x6a, 0xcf, 0xd6, + 0x7f, 0x2a, 0x50, 0xe2, 0xe7, 0xac, 0x03, 0x33, 0x49, 0xf5, 0x0e, 0x74, 0x3d, 0x04, 0x94, 0x51, + 0x61, 0x91, 0x6e, 0x0c, 0xe4, 0xe3, 0x36, 0x9d, 0x83, 0x94, 0x5e, 0x91, 0x40, 0xb7, 0xd3, 0x60, + 0x92, 0x5e, 0xe2, 0xd2, 0x9d, 0x0b, 0x72, 0x87, 0x02, 0x67, 0xa4, 0x5c, 0x20, 0x06, 0xce, 0xe4, + 0x5a, 0x86, 0x18, 0x38, 0xd3, 0xea, 0x0d, 0x6e, 0xe0, 0x4c, 0x7c, 0x98, 0x8b, 0x81, 0x33, 0xab, + 0xb2, 0x20, 0x06, 0xce, 0xec, 0x57, 0xfe, 0x90, 0x81, 0x53, 0x05, 0x14, 0x7f, 0x9d, 0xa3, 0x6b, + 0xb1, 0x05, 0x09, 0xb5, 0x00, 0xe9, 0xbb, 0x03, 0xb8, 0x46, 0x19, 0x41, 0x3b, 0x30, 0x93, 0x54, + 0x56, 0x14, 0x8e, 0x71, 0x46, 0x21, 0x53, 0x38, 0xc6, 0x99, 0xf5, 0xc9, 0x6f, 0x28, 0xa0, 0x46, + 0xab, 0x09, 0xc9, 0xe7, 0x33, 0x12, 0x05, 0xd7, 0x32, 0x79, 0x2e, 0x35, 0xa0, 0x86, 0x5f, 0xd4, + 0x62, 0x40, 0x4d, 0xa8, 0x04, 0x88, 0x01, 0x35, 0xf1, 0x31, 0x1e, 0xbf, 0x35, 0x1e, 0x78, 0xc6, + 0xad, 0x89, 0x48, 0xb9, 0x79, 0x01, 0x4e, 0x26, 0x6e, 0xe7, 0xda, 0xa7, 0xb2, 0x1b, 0x01, 0x7f, + 0xbe, 0xa1, 0x9b, 0x9b, 0xf4, 0x63, 0xd3, 0xb2, 0xf5, 0x33, 0x95, 0xe0, 0x4d, 0x1f, 0xc2, 0x3a, + 0x3e, 0x2e, 0xd1, 0xff, 0xc1, 0xbd, 0xf5, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x3c, 0x60, + 0x7e, 0x6c, 0x33, 0x00, 0x00, } diff --git a/private/multinodepb/multinode.proto b/private/multinodepb/multinode.proto index 82ea24e1b..bfb92cf6d 100644 --- a/private/multinodepb/multinode.proto +++ b/private/multinodepb/multinode.proto @@ -397,3 +397,99 @@ message HeldAmountHistoryResponse { repeated HeldAmountHistory history = 1; } + +service Payout { + rpc AllSatellitesSummary(AllSatellitesSummaryRequest) returns (AllSatellitesSummaryResponse); + rpc AllSatellitesPeriodSummary(AllSatellitesPeriodSummaryRequest) returns (AllSatellitesPeriodSummaryResponse); + rpc SatelliteSummary(SatelliteSummaryRequest) returns (SatelliteSummaryResponse); + rpc SatellitePeriodSummary(SatellitePeriodSummaryRequest) returns (SatellitePeriodSummaryResponse); + rpc Earned(EarnedRequest) returns (EarnedResponse); + rpc EarnedPerSatellite(EarnedPerSatelliteRequest) returns (EarnedPerSatelliteResponse); + rpc EstimatedPayoutSatellite(EstimatedPayoutSatelliteRequest) returns (EstimatedPayoutSatelliteResponse); + rpc EstimatedPayoutTotal(EstimatedPayoutTotalRequest) returns (EstimatedPayoutTotalResponse); + rpc Undistributed(UndistributedRequest) returns (UndistributedResponse); + rpc SatellitePaystub(SatellitePaystubRequest) returns (SatellitePaystubResponse); + rpc Paystub(PaystubRequest) returns (PaystubResponse); + rpc PeriodPaystub(PeriodPaystubRequest) returns (PeriodPaystubResponse); + rpc SatellitePeriodPaystub(SatellitePeriodPaystubRequest) returns (SatellitePeriodPaystubResponse); +} + +message EstimatedPayoutTotalRequest { + RequestHeader header = 1; +} + +message EstimatedPayoutTotalResponse { + int64 estimated_earnings = 1; +} + +message AllSatellitesSummaryRequest { + RequestHeader header = 1; +} + +message AllSatellitesSummaryResponse { + PayoutInfo payout_info = 1; +} + +message AllSatellitesPeriodSummaryRequest { + RequestHeader header = 1; + string period = 2; +} + +message AllSatellitesPeriodSummaryResponse { + PayoutInfo payout_info = 1; +} + +message SatelliteSummaryRequest { + RequestHeader header = 1; + bytes satellite_id = 2 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false]; +} + +message SatelliteSummaryResponse { + PayoutInfo payout_info = 1; +} + +message SatellitePeriodSummaryRequest { + RequestHeader header = 1; + bytes satellite_id = 2 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false]; + string period = 3; +} + +message SatellitePeriodSummaryResponse { + PayoutInfo payout_info = 1; +} + +message EarnedPerSatelliteRequest { + RequestHeader header = 1; +} + +message EarnedPerSatelliteResponse { + repeated EarnedSatellite earned_satellite = 1; +} + +message SatellitePaystubRequest { + RequestHeader header = 1; + bytes satellite_id = 2 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false]; +} + +message SatellitePaystubResponse { + Paystub paystub = 1; +} + +message PeriodPaystubRequest { + RequestHeader header = 1; + string period = 2; +} + +message PeriodPaystubResponse { + Paystub paystub = 1; +} + +message SatellitePeriodPaystubRequest { + RequestHeader header = 1; + bytes satellite_id = 2 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false]; + string period = 3; +} + +message SatellitePeriodPaystubResponse { + Paystub paystub = 1; +} \ No newline at end of file diff --git a/private/multinodepb/multinode_drpc.pb.go b/private/multinodepb/multinode_drpc.pb.go index ae84bba3c..d6205a158 100644 --- a/private/multinodepb/multinode_drpc.pb.go +++ b/private/multinodepb/multinode_drpc.pb.go @@ -1418,3 +1418,558 @@ func (x *drpcPayouts_HeldAmountHistoryStream) SendAndClose(m *HeldAmountHistoryR } return x.CloseSend() } + +type DRPCPayoutClient interface { + DRPCConn() drpc.Conn + + AllSatellitesSummary(ctx context.Context, in *AllSatellitesSummaryRequest) (*AllSatellitesSummaryResponse, error) + AllSatellitesPeriodSummary(ctx context.Context, in *AllSatellitesPeriodSummaryRequest) (*AllSatellitesPeriodSummaryResponse, error) + SatelliteSummary(ctx context.Context, in *SatelliteSummaryRequest) (*SatelliteSummaryResponse, error) + SatellitePeriodSummary(ctx context.Context, in *SatellitePeriodSummaryRequest) (*SatellitePeriodSummaryResponse, error) + Earned(ctx context.Context, in *EarnedRequest) (*EarnedResponse, error) + EarnedPerSatellite(ctx context.Context, in *EarnedPerSatelliteRequest) (*EarnedPerSatelliteResponse, error) + EstimatedPayoutSatellite(ctx context.Context, in *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error) + EstimatedPayoutTotal(ctx context.Context, in *EstimatedPayoutTotalRequest) (*EstimatedPayoutTotalResponse, error) + Undistributed(ctx context.Context, in *UndistributedRequest) (*UndistributedResponse, error) + SatellitePaystub(ctx context.Context, in *SatellitePaystubRequest) (*SatellitePaystubResponse, error) + Paystub(ctx context.Context, in *PaystubRequest) (*PaystubResponse, error) + PeriodPaystub(ctx context.Context, in *PeriodPaystubRequest) (*PeriodPaystubResponse, error) + SatellitePeriodPaystub(ctx context.Context, in *SatellitePeriodPaystubRequest) (*SatellitePeriodPaystubResponse, error) +} + +type drpcPayoutClient struct { + cc drpc.Conn +} + +func NewDRPCPayoutClient(cc drpc.Conn) DRPCPayoutClient { + return &drpcPayoutClient{cc} +} + +func (c *drpcPayoutClient) DRPCConn() drpc.Conn { return c.cc } + +func (c *drpcPayoutClient) AllSatellitesSummary(ctx context.Context, in *AllSatellitesSummaryRequest) (*AllSatellitesSummaryResponse, error) { + out := new(AllSatellitesSummaryResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/AllSatellitesSummary", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) AllSatellitesPeriodSummary(ctx context.Context, in *AllSatellitesPeriodSummaryRequest) (*AllSatellitesPeriodSummaryResponse, error) { + out := new(AllSatellitesPeriodSummaryResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/AllSatellitesPeriodSummary", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) SatelliteSummary(ctx context.Context, in *SatelliteSummaryRequest) (*SatelliteSummaryResponse, error) { + out := new(SatelliteSummaryResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/SatelliteSummary", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) SatellitePeriodSummary(ctx context.Context, in *SatellitePeriodSummaryRequest) (*SatellitePeriodSummaryResponse, error) { + out := new(SatellitePeriodSummaryResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/SatellitePeriodSummary", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) Earned(ctx context.Context, in *EarnedRequest) (*EarnedResponse, error) { + out := new(EarnedResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/Earned", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) EarnedPerSatellite(ctx context.Context, in *EarnedPerSatelliteRequest) (*EarnedPerSatelliteResponse, error) { + out := new(EarnedPerSatelliteResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/EarnedPerSatellite", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) EstimatedPayoutSatellite(ctx context.Context, in *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error) { + out := new(EstimatedPayoutSatelliteResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/EstimatedPayoutSatellite", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) EstimatedPayoutTotal(ctx context.Context, in *EstimatedPayoutTotalRequest) (*EstimatedPayoutTotalResponse, error) { + out := new(EstimatedPayoutTotalResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/EstimatedPayoutTotal", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) Undistributed(ctx context.Context, in *UndistributedRequest) (*UndistributedResponse, error) { + out := new(UndistributedResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/Undistributed", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) SatellitePaystub(ctx context.Context, in *SatellitePaystubRequest) (*SatellitePaystubResponse, error) { + out := new(SatellitePaystubResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/SatellitePaystub", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) Paystub(ctx context.Context, in *PaystubRequest) (*PaystubResponse, error) { + out := new(PaystubResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/Paystub", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) PeriodPaystub(ctx context.Context, in *PeriodPaystubRequest) (*PeriodPaystubResponse, error) { + out := new(PeriodPaystubResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/PeriodPaystub", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *drpcPayoutClient) SatellitePeriodPaystub(ctx context.Context, in *SatellitePeriodPaystubRequest) (*SatellitePeriodPaystubResponse, error) { + out := new(SatellitePeriodPaystubResponse) + err := c.cc.Invoke(ctx, "/multinode.Payout/SatellitePeriodPaystub", drpcEncoding_File_multinode_proto{}, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +type DRPCPayoutServer interface { + AllSatellitesSummary(context.Context, *AllSatellitesSummaryRequest) (*AllSatellitesSummaryResponse, error) + AllSatellitesPeriodSummary(context.Context, *AllSatellitesPeriodSummaryRequest) (*AllSatellitesPeriodSummaryResponse, error) + SatelliteSummary(context.Context, *SatelliteSummaryRequest) (*SatelliteSummaryResponse, error) + SatellitePeriodSummary(context.Context, *SatellitePeriodSummaryRequest) (*SatellitePeriodSummaryResponse, error) + Earned(context.Context, *EarnedRequest) (*EarnedResponse, error) + EarnedPerSatellite(context.Context, *EarnedPerSatelliteRequest) (*EarnedPerSatelliteResponse, error) + EstimatedPayoutSatellite(context.Context, *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error) + EstimatedPayoutTotal(context.Context, *EstimatedPayoutTotalRequest) (*EstimatedPayoutTotalResponse, error) + Undistributed(context.Context, *UndistributedRequest) (*UndistributedResponse, error) + SatellitePaystub(context.Context, *SatellitePaystubRequest) (*SatellitePaystubResponse, error) + Paystub(context.Context, *PaystubRequest) (*PaystubResponse, error) + PeriodPaystub(context.Context, *PeriodPaystubRequest) (*PeriodPaystubResponse, error) + SatellitePeriodPaystub(context.Context, *SatellitePeriodPaystubRequest) (*SatellitePeriodPaystubResponse, error) +} + +type DRPCPayoutUnimplementedServer struct{} + +func (s *DRPCPayoutUnimplementedServer) AllSatellitesSummary(context.Context, *AllSatellitesSummaryRequest) (*AllSatellitesSummaryResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) AllSatellitesPeriodSummary(context.Context, *AllSatellitesPeriodSummaryRequest) (*AllSatellitesPeriodSummaryResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) SatelliteSummary(context.Context, *SatelliteSummaryRequest) (*SatelliteSummaryResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) SatellitePeriodSummary(context.Context, *SatellitePeriodSummaryRequest) (*SatellitePeriodSummaryResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) Earned(context.Context, *EarnedRequest) (*EarnedResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) EarnedPerSatellite(context.Context, *EarnedPerSatelliteRequest) (*EarnedPerSatelliteResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) EstimatedPayoutSatellite(context.Context, *EstimatedPayoutSatelliteRequest) (*EstimatedPayoutSatelliteResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) EstimatedPayoutTotal(context.Context, *EstimatedPayoutTotalRequest) (*EstimatedPayoutTotalResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) Undistributed(context.Context, *UndistributedRequest) (*UndistributedResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) SatellitePaystub(context.Context, *SatellitePaystubRequest) (*SatellitePaystubResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) Paystub(context.Context, *PaystubRequest) (*PaystubResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) PeriodPaystub(context.Context, *PeriodPaystubRequest) (*PeriodPaystubResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +func (s *DRPCPayoutUnimplementedServer) SatellitePeriodPaystub(context.Context, *SatellitePeriodPaystubRequest) (*SatellitePeriodPaystubResponse, error) { + return nil, drpcerr.WithCode(errors.New("Unimplemented"), 12) +} + +type DRPCPayoutDescription struct{} + +func (DRPCPayoutDescription) NumMethods() int { return 13 } + +func (DRPCPayoutDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) { + switch n { + case 0: + return "/multinode.Payout/AllSatellitesSummary", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + AllSatellitesSummary( + ctx, + in1.(*AllSatellitesSummaryRequest), + ) + }, DRPCPayoutServer.AllSatellitesSummary, true + case 1: + return "/multinode.Payout/AllSatellitesPeriodSummary", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + AllSatellitesPeriodSummary( + ctx, + in1.(*AllSatellitesPeriodSummaryRequest), + ) + }, DRPCPayoutServer.AllSatellitesPeriodSummary, true + case 2: + return "/multinode.Payout/SatelliteSummary", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + SatelliteSummary( + ctx, + in1.(*SatelliteSummaryRequest), + ) + }, DRPCPayoutServer.SatelliteSummary, true + case 3: + return "/multinode.Payout/SatellitePeriodSummary", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + SatellitePeriodSummary( + ctx, + in1.(*SatellitePeriodSummaryRequest), + ) + }, DRPCPayoutServer.SatellitePeriodSummary, true + case 4: + return "/multinode.Payout/Earned", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + Earned( + ctx, + in1.(*EarnedRequest), + ) + }, DRPCPayoutServer.Earned, true + case 5: + return "/multinode.Payout/EarnedPerSatellite", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + EarnedPerSatellite( + ctx, + in1.(*EarnedPerSatelliteRequest), + ) + }, DRPCPayoutServer.EarnedPerSatellite, true + case 6: + return "/multinode.Payout/EstimatedPayoutSatellite", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + EstimatedPayoutSatellite( + ctx, + in1.(*EstimatedPayoutSatelliteRequest), + ) + }, DRPCPayoutServer.EstimatedPayoutSatellite, true + case 7: + return "/multinode.Payout/EstimatedPayoutTotal", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + EstimatedPayoutTotal( + ctx, + in1.(*EstimatedPayoutTotalRequest), + ) + }, DRPCPayoutServer.EstimatedPayoutTotal, true + case 8: + return "/multinode.Payout/Undistributed", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + Undistributed( + ctx, + in1.(*UndistributedRequest), + ) + }, DRPCPayoutServer.Undistributed, true + case 9: + return "/multinode.Payout/SatellitePaystub", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + SatellitePaystub( + ctx, + in1.(*SatellitePaystubRequest), + ) + }, DRPCPayoutServer.SatellitePaystub, true + case 10: + return "/multinode.Payout/Paystub", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + Paystub( + ctx, + in1.(*PaystubRequest), + ) + }, DRPCPayoutServer.Paystub, true + case 11: + return "/multinode.Payout/PeriodPaystub", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + PeriodPaystub( + ctx, + in1.(*PeriodPaystubRequest), + ) + }, DRPCPayoutServer.PeriodPaystub, true + case 12: + return "/multinode.Payout/SatellitePeriodPaystub", drpcEncoding_File_multinode_proto{}, + func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { + return srv.(DRPCPayoutServer). + SatellitePeriodPaystub( + ctx, + in1.(*SatellitePeriodPaystubRequest), + ) + }, DRPCPayoutServer.SatellitePeriodPaystub, true + default: + return "", nil, nil, nil, false + } +} + +func DRPCRegisterPayout(mux drpc.Mux, impl DRPCPayoutServer) error { + return mux.Register(impl, DRPCPayoutDescription{}) +} + +type DRPCPayout_AllSatellitesSummaryStream interface { + drpc.Stream + SendAndClose(*AllSatellitesSummaryResponse) error +} + +type drpcPayout_AllSatellitesSummaryStream struct { + drpc.Stream +} + +func (x *drpcPayout_AllSatellitesSummaryStream) SendAndClose(m *AllSatellitesSummaryResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_AllSatellitesPeriodSummaryStream interface { + drpc.Stream + SendAndClose(*AllSatellitesPeriodSummaryResponse) error +} + +type drpcPayout_AllSatellitesPeriodSummaryStream struct { + drpc.Stream +} + +func (x *drpcPayout_AllSatellitesPeriodSummaryStream) SendAndClose(m *AllSatellitesPeriodSummaryResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_SatelliteSummaryStream interface { + drpc.Stream + SendAndClose(*SatelliteSummaryResponse) error +} + +type drpcPayout_SatelliteSummaryStream struct { + drpc.Stream +} + +func (x *drpcPayout_SatelliteSummaryStream) SendAndClose(m *SatelliteSummaryResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_SatellitePeriodSummaryStream interface { + drpc.Stream + SendAndClose(*SatellitePeriodSummaryResponse) error +} + +type drpcPayout_SatellitePeriodSummaryStream struct { + drpc.Stream +} + +func (x *drpcPayout_SatellitePeriodSummaryStream) SendAndClose(m *SatellitePeriodSummaryResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_EarnedStream interface { + drpc.Stream + SendAndClose(*EarnedResponse) error +} + +type drpcPayout_EarnedStream struct { + drpc.Stream +} + +func (x *drpcPayout_EarnedStream) SendAndClose(m *EarnedResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_EarnedPerSatelliteStream interface { + drpc.Stream + SendAndClose(*EarnedPerSatelliteResponse) error +} + +type drpcPayout_EarnedPerSatelliteStream struct { + drpc.Stream +} + +func (x *drpcPayout_EarnedPerSatelliteStream) SendAndClose(m *EarnedPerSatelliteResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_EstimatedPayoutSatelliteStream interface { + drpc.Stream + SendAndClose(*EstimatedPayoutSatelliteResponse) error +} + +type drpcPayout_EstimatedPayoutSatelliteStream struct { + drpc.Stream +} + +func (x *drpcPayout_EstimatedPayoutSatelliteStream) SendAndClose(m *EstimatedPayoutSatelliteResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_EstimatedPayoutTotalStream interface { + drpc.Stream + SendAndClose(*EstimatedPayoutTotalResponse) error +} + +type drpcPayout_EstimatedPayoutTotalStream struct { + drpc.Stream +} + +func (x *drpcPayout_EstimatedPayoutTotalStream) SendAndClose(m *EstimatedPayoutTotalResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_UndistributedStream interface { + drpc.Stream + SendAndClose(*UndistributedResponse) error +} + +type drpcPayout_UndistributedStream struct { + drpc.Stream +} + +func (x *drpcPayout_UndistributedStream) SendAndClose(m *UndistributedResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_SatellitePaystubStream interface { + drpc.Stream + SendAndClose(*SatellitePaystubResponse) error +} + +type drpcPayout_SatellitePaystubStream struct { + drpc.Stream +} + +func (x *drpcPayout_SatellitePaystubStream) SendAndClose(m *SatellitePaystubResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_PaystubStream interface { + drpc.Stream + SendAndClose(*PaystubResponse) error +} + +type drpcPayout_PaystubStream struct { + drpc.Stream +} + +func (x *drpcPayout_PaystubStream) SendAndClose(m *PaystubResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_PeriodPaystubStream interface { + drpc.Stream + SendAndClose(*PeriodPaystubResponse) error +} + +type drpcPayout_PeriodPaystubStream struct { + drpc.Stream +} + +func (x *drpcPayout_PeriodPaystubStream) SendAndClose(m *PeriodPaystubResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} + +type DRPCPayout_SatellitePeriodPaystubStream interface { + drpc.Stream + SendAndClose(*SatellitePeriodPaystubResponse) error +} + +type drpcPayout_SatellitePeriodPaystubStream struct { + drpc.Stream +} + +func (x *drpcPayout_SatellitePeriodPaystubStream) SendAndClose(m *SatellitePeriodPaystubResponse) error { + if err := x.MsgSend(m, drpcEncoding_File_multinode_proto{}); err != nil { + return err + } + return x.CloseSend() +} diff --git a/storagenode/multinode/payout.go b/storagenode/multinode/payout.go index 3dc28281a..d54a405f8 100644 --- a/storagenode/multinode/payout.go +++ b/storagenode/multinode/payout.go @@ -16,12 +16,14 @@ import ( "storj.io/storj/storagenode/payouts/estimatedpayouts" ) +var _ multinodepb.DRPCPayoutServer = (*PayoutEndpoint)(nil) var _ multinodepb.DRPCPayoutsServer = (*PayoutEndpoint)(nil) // PayoutEndpoint implements multinode payouts endpoint. // // architecture: Endpoint type PayoutEndpoint struct { + multinodepb.DRPCPayoutUnimplementedServer multinodepb.DRPCPayoutsUnimplementedServer log *zap.Logger @@ -69,6 +71,7 @@ func (payout *PayoutEndpoint) EarnedSatellite(ctx context.Context, req *multinod } var resp multinodepb.EarnedSatelliteResponse + satelliteIDs, err := payout.db.GetPayingSatellitesIDs(ctx) if err != nil { return nil, rpcstatus.Wrap(rpcstatus.Internal, err) @@ -130,6 +133,7 @@ func (payout *PayoutEndpoint) Summary(ctx context.Context, req *multinodepb.Summ } var totalPaid, totalHeld int64 + satelliteIDs, err := payout.db.GetPayingSatellitesIDs(ctx) if err != nil { return &multinodepb.SummaryResponse{}, rpcstatus.Wrap(rpcstatus.Internal, err) @@ -157,6 +161,7 @@ func (payout *PayoutEndpoint) SummaryPeriod(ctx context.Context, req *multinodep } var totalPaid, totalHeld int64 + satelliteIDs, err := payout.db.GetPayingSatellitesIDs(ctx) if err != nil { return &multinodepb.SummaryPeriodResponse{}, rpcstatus.Wrap(rpcstatus.Internal, err) @@ -314,8 +319,8 @@ func (payout *PayoutEndpoint) PaystubPeriod(ctx context.Context, req *multinodep }}, nil } -// PaystubPeriodSatellite returns summed amounts of all values from paystubs from all satellites for specific period. -func (payout *PayoutEndpoint) PaystubPeriodSatellite(ctx context.Context, req *multinodepb.PaystubSatellitePeriodRequest) (_ *multinodepb.PaystubSatellitePeriodResponse, err error) { +// PaystubSatellitePeriod returns summed amounts of all values from paystubs from all satellites for specific period. +func (payout *PayoutEndpoint) PaystubSatellitePeriod(ctx context.Context, req *multinodepb.PaystubSatellitePeriodRequest) (_ *multinodepb.PaystubSatellitePeriodResponse, err error) { defer mon.Task()(&ctx)(&err) if err = authenticate(ctx, payout.apiKeys, req.GetHeader()); err != nil { @@ -376,3 +381,225 @@ func (payout *PayoutEndpoint) HeldAmountHistory(ctx context.Context, req *multin return resp, nil } + +// PeriodPaystub returns summed amounts of all values from paystubs from all satellites for specific period. +func (payout *PayoutEndpoint) PeriodPaystub(ctx context.Context, req *multinodepb.PeriodPaystubRequest) (_ *multinodepb.PeriodPaystubResponse, err error) { + defer mon.Task()(&ctx)(&err) + + if err = authenticate(ctx, payout.apiKeys, req.GetHeader()); err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Unauthenticated, err) + } + + paystub, err := payout.db.GetPeriodPaystubs(ctx, req.Period) + if err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + return &multinodepb.PeriodPaystubResponse{Paystub: &multinodepb.Paystub{ + UsageAtRest: paystub.UsageAtRest, + UsageGet: paystub.UsageGet, + UsageGetRepair: paystub.UsageGetRepair, + UsageGetAudit: paystub.UsageGetAudit, + CompAtRest: paystub.CompAtRest, + CompGet: paystub.CompGet, + CompGetRepair: paystub.CompGetRepair, + CompGetAudit: paystub.CompGetAudit, + Held: paystub.Held, + Paid: paystub.Paid, + Distributed: paystub.Distributed, + Disposed: paystub.Disposed, + }}, nil +} + +// EarnedPerSatellite returns total earned amount per satellite. +func (payout *PayoutEndpoint) EarnedPerSatellite(ctx context.Context, req *multinodepb.EarnedPerSatelliteRequest) (_ *multinodepb.EarnedPerSatelliteResponse, err error) { + defer mon.Task()(&ctx)(&err) + + if err = authenticate(ctx, payout.apiKeys, req.GetHeader()); err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Unauthenticated, err) + } + + var resp multinodepb.EarnedPerSatelliteResponse + satelliteIDs, err := payout.db.GetPayingSatellitesIDs(ctx) + if err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + for _, id := range satelliteIDs { + earned, err := payout.db.GetEarnedAtSatellite(ctx, id) + if err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + resp.EarnedSatellite = append(resp.EarnedSatellite, &multinodepb.EarnedSatellite{ + Total: earned, + SatelliteId: id, + }) + } + + return &resp, nil +} + +// EstimatedPayoutTotal returns estimated earnings for current month from all satellites. +func (payout *PayoutEndpoint) EstimatedPayoutTotal(ctx context.Context, req *multinodepb.EstimatedPayoutTotalRequest) (_ *multinodepb.EstimatedPayoutTotalResponse, err error) { + defer mon.Task()(&ctx)(&err) + + if err = authenticate(ctx, payout.apiKeys, req.GetHeader()); err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Unauthenticated, err) + } + + estimated, err := payout.estimatedPayouts.GetAllSatellitesEstimatedPayout(ctx, time.Now()) + if err != nil { + return &multinodepb.EstimatedPayoutTotalResponse{}, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + return &multinodepb.EstimatedPayoutTotalResponse{EstimatedEarnings: estimated.CurrentMonthExpectations}, nil +} + +// AllSatellitesSummary returns all satellites all time payout summary. +func (payout *PayoutEndpoint) AllSatellitesSummary(ctx context.Context, req *multinodepb.AllSatellitesSummaryRequest) (_ *multinodepb.AllSatellitesSummaryResponse, err error) { + defer mon.Task()(&ctx)(&err) + + if err = authenticate(ctx, payout.apiKeys, req.GetHeader()); err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Unauthenticated, err) + } + + var totalPaid, totalHeld int64 + satelliteIDs, err := payout.db.GetPayingSatellitesIDs(ctx) + if err != nil { + return &multinodepb.AllSatellitesSummaryResponse{}, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + for _, id := range satelliteIDs { + paid, held, err := payout.db.GetSatelliteSummary(ctx, id) + if err != nil { + return &multinodepb.AllSatellitesSummaryResponse{}, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + totalHeld += held + totalPaid += paid + } + + return &multinodepb.AllSatellitesSummaryResponse{PayoutInfo: &multinodepb.PayoutInfo{Paid: totalPaid, Held: totalHeld}}, nil +} + +// AllSatellitesPeriodSummary returns all satellites period payout summary. +func (payout *PayoutEndpoint) AllSatellitesPeriodSummary(ctx context.Context, req *multinodepb.AllSatellitesPeriodSummaryRequest) (_ *multinodepb.AllSatellitesPeriodSummaryResponse, err error) { + defer mon.Task()(&ctx)(&err) + + if err = authenticate(ctx, payout.apiKeys, req.GetHeader()); err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Unauthenticated, err) + } + + var totalPaid, totalHeld int64 + satelliteIDs, err := payout.db.GetPayingSatellitesIDs(ctx) + if err != nil { + return &multinodepb.AllSatellitesPeriodSummaryResponse{}, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + for _, id := range satelliteIDs { + paid, held, err := payout.db.GetSatellitePeriodSummary(ctx, id, req.Period) + if err != nil { + return &multinodepb.AllSatellitesPeriodSummaryResponse{}, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + totalHeld += held + totalPaid += paid + } + + return &multinodepb.AllSatellitesPeriodSummaryResponse{PayoutInfo: &multinodepb.PayoutInfo{Held: totalHeld, Paid: totalPaid}}, nil +} + +// SatelliteSummary returns satellite all time payout summary. +func (payout *PayoutEndpoint) SatelliteSummary(ctx context.Context, req *multinodepb.SatelliteSummaryRequest) (_ *multinodepb.SatelliteSummaryResponse, err error) { + defer mon.Task()(&ctx)(&err) + + if err = authenticate(ctx, payout.apiKeys, req.GetHeader()); err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Unauthenticated, err) + } + + var totalPaid, totalHeld int64 + + totalPaid, totalHeld, err = payout.db.GetSatelliteSummary(ctx, req.SatelliteId) + if err != nil { + return &multinodepb.SatelliteSummaryResponse{}, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + return &multinodepb.SatelliteSummaryResponse{PayoutInfo: &multinodepb.PayoutInfo{Held: totalHeld, Paid: totalPaid}}, nil +} + +// SatellitePeriodSummary returns satellite period payout summary. +func (payout *PayoutEndpoint) SatellitePeriodSummary(ctx context.Context, req *multinodepb.SatellitePeriodSummaryRequest) (_ *multinodepb.SatellitePeriodSummaryResponse, err error) { + defer mon.Task()(&ctx)(&err) + + if err = authenticate(ctx, payout.apiKeys, req.GetHeader()); err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Unauthenticated, err) + } + + var totalPaid, totalHeld int64 + + totalPaid, totalHeld, err = payout.db.GetSatellitePeriodSummary(ctx, req.SatelliteId, req.Period) + if err != nil { + return &multinodepb.SatellitePeriodSummaryResponse{}, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + return &multinodepb.SatellitePeriodSummaryResponse{PayoutInfo: &multinodepb.PayoutInfo{Held: totalHeld, Paid: totalPaid}}, nil +} + +// SatellitePaystub returns summed amounts of all values from paystubs from all satellites. +func (payout *PayoutEndpoint) SatellitePaystub(ctx context.Context, req *multinodepb.SatellitePaystubRequest) (_ *multinodepb.SatellitePaystubResponse, err error) { + defer mon.Task()(&ctx)(&err) + + if err = authenticate(ctx, payout.apiKeys, req.GetHeader()); err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Unauthenticated, err) + } + + paystub, err := payout.db.GetSatellitePaystubs(ctx, req.SatelliteId) + if err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + return &multinodepb.SatellitePaystubResponse{Paystub: &multinodepb.Paystub{ + UsageAtRest: paystub.UsageAtRest, + UsageGet: paystub.UsageGet, + UsageGetRepair: paystub.UsageGetRepair, + UsageGetAudit: paystub.UsageGetAudit, + CompAtRest: paystub.CompAtRest, + CompGet: paystub.CompGet, + CompGetRepair: paystub.CompGetRepair, + CompGetAudit: paystub.CompGetAudit, + Held: paystub.Held, + Paid: paystub.Paid, + Distributed: paystub.Distributed, + Disposed: paystub.Disposed, + }}, nil +} + +// SatellitePeriodPaystub returns summed amounts of all values from paystubs from all satellites for specific period. +func (payout *PayoutEndpoint) SatellitePeriodPaystub(ctx context.Context, req *multinodepb.SatellitePeriodPaystubRequest) (_ *multinodepb.SatellitePeriodPaystubResponse, err error) { + defer mon.Task()(&ctx)(&err) + + if err = authenticate(ctx, payout.apiKeys, req.GetHeader()); err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Unauthenticated, err) + } + + paystub, err := payout.db.GetSatellitePeriodPaystubs(ctx, req.Period, req.SatelliteId) + if err != nil { + return nil, rpcstatus.Wrap(rpcstatus.Internal, err) + } + + return &multinodepb.SatellitePeriodPaystubResponse{Paystub: &multinodepb.Paystub{ + UsageAtRest: paystub.UsageAtRest, + UsageGet: paystub.UsageGet, + UsageGetRepair: paystub.UsageGetRepair, + UsageGetAudit: paystub.UsageGetAudit, + CompAtRest: paystub.CompAtRest, + CompGet: paystub.CompGet, + CompGetRepair: paystub.CompGetRepair, + CompGetAudit: paystub.CompGetAudit, + Held: paystub.Held, + Paid: paystub.Paid, + Distributed: paystub.Distributed, + Disposed: paystub.Disposed, + }}, nil +} diff --git a/storagenode/peer.go b/storagenode/peer.go index 756c9883d..54b20a7bf 100644 --- a/storagenode/peer.go +++ b/storagenode/peer.go @@ -823,7 +823,7 @@ func New(log *zap.Logger, full *identity.FullIdentity, db DB, revocationDB exten if err = multinodepb.DRPCRegisterNode(peer.Server.DRPC(), peer.Multinode.Node); err != nil { return nil, errs.Combine(err, peer.Close()) } - if err = multinodepb.DRPCRegisterPayouts(peer.Server.DRPC(), peer.Multinode.Payout); err != nil { + if err = multinodepb.DRPCRegisterPayout(peer.Server.DRPC(), peer.Multinode.Payout); err != nil { return nil, errs.Combine(err, peer.Close()) } }