Start of addition of project infrastructure.
[?]
Jan 24, 2015, 2:59 AM
5XFJNUAZUCQ3WCGW4QRIAWR764QYDOPHOIVO2TRMGSSG7UDX2M2ACDependencies
- [2]
BROSTG5KBeginning of modularization of server. - [3]
4IQVQL4TAdded client for payouts endpoint. - [4]
IZEVQF62Work in progress replacing sqlite with postgres. - [5]
BXGLKYRXAdded primitive user registration handler. - [6]
TZQJVHBAAdd auction functions to ADB. - [7]
W35DDBFYFactor common JSON conversions up into client lib module. - [8]
EMVTF2IWWIP moving back to snap. - [9]
WO2MINIFAuctions now compile! - [10]
75N3UJ4JMore progression toward lenses. - [11]
TNR3TEHKSwitch to Postgres + snaplet arch compiles. - [12]
64VI73NPServer now compiles using abstracted SQLite - [13]
64C6AWH6Rename Ananke -> Quixotic, project reboot. - [14]
LAROLAYUWIP - [15]
NTPC7KJETrivial changes, feature scratchpad. - [16]
TCOAKCGGCompleted conversion to snap. - [17]
5W5M56VJMove library code to 'lib'
Change contents
- file move: Auction.hs → Auctions.hs
- replacement in lib/Quixotic/Auctions.hs at line 1
{-# LANGUAGE ScopedTypeVariables, OverloadedStrings, NoImplicitPrelude, TemplateHaskell #-}{-# LANGUAGE TemplateHaskell #-} - replacement in lib/Quixotic/Auctions.hs at line 3
module Quixotic.Auction wheremodule Quixotic.Auctions where - replacement in lib/Quixotic/Database/PostgreSQL.hs at line 18
import Quixotic.Auctionimport Quixotic.Auctions - replacement in lib/Quixotic/Database/SQLite.hs at line 14
import Quixotic.Auctionimport Quixotic.Auctions - replacement in lib/Quixotic/Database.hs at line 8
import Quixotic.Auctionimport Quixotic.Usersimport Quixotic.Auctionsimport Quixotic.Projects - edit in lib/Quixotic/Database.hs at line 11
import Quixotic.Users - replacement in lib/Quixotic/Database.hs at line 20
{ recordEvent :: UserId -> LogEntry -> m (), readWorkIndex :: m WorkIndex, newAuction :: Auction -> m AuctionId, readAuction :: AuctionId -> m (Maybe Auction), recordBid :: AuctionId -> Bid -> m (), readBids :: AuctionId -> m [Bid], createUser :: User -> m UserId, findUser :: UserId -> m (Maybe User){ recordEvent :: ProjectId -> UserId -> LogEntry -> m (), readWorkIndex :: ProjectId -> m WorkIndex, newAuction :: ProjectId -> Auction -> m AuctionId, readAuction :: ProjectId -> AuctionId -> m (Maybe Auction), recordBid :: ProjectId -> AuctionId -> Bid -> m (), readBids :: ProjectId -> AuctionId -> m [Bid], createUser :: User -> m UserId, findUser :: UserId -> m (Maybe User) - file addition: Projects.hs[3.18]
{-# LANGUAGE TemplateHaskell #-}module Quixotic.Projects whereimport ClassyPreludeimport Control.Lensimport Network.Bitcoinimport Quixoticimport Quixotic.Usersnewtype ProjectId = ProjectId Int64 deriving (Show, Eq)makePrisms ''ProjectIddata Project = Project{ _projectName :: Text, _inceptionDate :: UTCTime, _initiator :: UserId}makeLenses ''Projectdata Invitation = Invitation{ _projectId :: ProjectId, _currentMember :: UserId, _sentAt :: UTCTime, _toAddr :: BtcAddr, _amount :: BTC}makeLenses ''Invitationdata Acceptance = Acceptance{ _acceptedInvitation :: Int64, _blockHeight :: Integer, _observedAt :: UTCTime}makeLenses ''Acceptancedata Cancellation = Cancellation{ _cancelledInvitation :: Int64, _requestedAt :: UTCTime}makeLenses ''Cancellation - edit in quixotic.cabal at line 23
Quixotic.Auction - edit in quixotic.cabal at line 30
Quixotic.AuctionsQuixotic.Projects - replacement in server/Quixotic/Api/Users.hs at line 59
(AuthHeader uname pwd) <- either (throwDenied . AU.AuthError) pure $ parseOnly authHeaderParser rawHeaderlet parsedHeader = parseOnly authHeaderParser rawHeader(AuthHeader uname pwd) <- either (throwDenied . AU.AuthError) pure parsedHeader