Skip to content

Commit

Permalink
added more balance related fields to GetBalance request
Browse files Browse the repository at this point in the history
  • Loading branch information
0xluk committed Aug 1, 2024
1 parent aca9d4a commit fc8a4c2
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 205 deletions.
4 changes: 4 additions & 0 deletions foundation/rpc_server/rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ func (s *Server) GetBalance(ctx context.Context, req *protobuff.GetBalanceReques
ValidForTick: identityInfo.Tick,
LatestIncomingTransferTick: identityInfo.AddressData.LatestIncomingTransferTick,
LatestOutgoingTransferTick: identityInfo.AddressData.LatestOutgoingTransferTick,
IncomingAmount: identityInfo.AddressData.IncomingAmount,
OutgoingAmount: identityInfo.AddressData.OutgoingAmount,
NumberOfIncomingTransfers: identityInfo.AddressData.NumberOfIncomingTransfers,
NumberOfOutgoingTransfers: identityInfo.AddressData.NumberOfOutgoingTransfers,
}
return &protobuff.GetBalanceResponse{Balance: &balance}, nil
}
Expand Down
Loading

0 comments on commit fc8a4c2

Please sign in to comment.