Shorten invitation codes.
[?]
Feb 9, 2021, 1:42 PM
UO66QO7K6PZ6M6T4WZYRAUOEQMJLHB6GURC2LI4VABZOUWGCOSWACDependencies
- [2]
OVU272MTCreate zcash account with recovery zaddr - [3]
IR75ZMX3Return actual events for interval ends, not just timestamps. - [4]
XXJFUZOVAdd first revenue date to project payout computation. - [5]
NAS4BFL4Trivial stylish-haskell reformat. - [6]
HMDM3B55Implement core of payments/billing infrastructure. - [7]
M4PWY5RUPreliminary work to add support for Zcash payments. - [8]
U7YAT2ZKAdd error reporting to signup form. - [9]
X3ES7NUAFine. I'll use ormolu. At least it doesn't break the code. - [10]
4354Y4PEAdd endpoint to list project contributors. - [11]
4R7XIYK3Switch from ClassyPrelude to Relude - [12]
HALRDT2FAdded initial auction create route.
Change contents
- replacement in client/Dockerfile at line 11
libtinfo5 nodejs npm netbaselibtinfo5 nodejs npm netbase git - replacement in lib/Aftok/Database/PostgreSQL/Projects.hs at line 32
InvitationCode (..),InvitationCode, - edit in lib/Aftok/Database/PostgreSQL/Users.hs at line 25
pexec, - edit in lib/Aftok/Database/PostgreSQL/Users.hs at line 28
pexec, - replacement in lib/Aftok/Database/PostgreSQL/Users.hs at line 52
uid <- pinsertUserId[sql| INSERT INTO users (handle, recovery_email, recovery_zaddr)uid <-pinsertUserId[sql| INSERT INTO users (handle, recovery_email, recovery_zaddr) - replacement in lib/Aftok/Database/PostgreSQL/Users.hs at line 57
( user' ^. (username . _UserName),user' ^? userAccountRecovery . _RecoverByEmail . _Email,user' ^? userAccountRecovery . _RecoverByZAddr . Zcash._Address)( user' ^. (username . _UserName),user' ^? userAccountRecovery . _RecoverByEmail . _Email,user' ^? userAccountRecovery . _RecoverByZAddr . Zcash._Address) - replacement in lib/Aftok/Database/PostgreSQL/Users.hs at line 68
void $ pexec[sql| INSERT INTO cryptocurrency_accounts (user_id, is_primary, zcash_addr)void $pexec[sql| INSERT INTO cryptocurrency_accounts (user_id, is_primary, zcash_addr) - replacement in lib/Aftok/Database/PostgreSQL/Users.hs at line 72
( uid ^. _UserId,True,addr ^. Zcash._Address)( uid ^. _UserId,True,addr ^. Zcash._Address) - edit in lib/Aftok/Database/PostgreSQL/Users.hs at line 77
- replacement in lib/Aftok/Project.hs at line 3
module Aftok.Project wheremodule Aftok.Project( Project (..),ProjectName,projectName,inceptionDate,initiator,depRules,InvitationCode,randomInvCode,parseInvCode,renderInvCode,Invitation (..),projectId,invitingUser,invitedEmail,invitationTime,acceptanceTime,)where - edit in lib/Aftok/Project.hs at line 32
import qualified Data.ByteString as BS - replacement in lib/Aftok/Project.hs at line 52
randomInvCode = InvitationCode <$> getRandomBytes 32randomInvCode = InvitationCode <$> getRandomBytes 12 - replacement in lib/Aftok/Project.hs at line 55[3.90086]→[3.1903:1923](∅→∅),[3.1903]→[3.1903:1923](∅→∅),[3.1923]→[3.90087:90131](∅→∅),[3.90131]→[3.3938:3964](∅→∅),[3.1961]→[3.3938:3964](∅→∅),[3.3964]→[3.1984:2076](∅→∅),[3.1984]→[3.1984:2076](∅→∅)
parseInvCode t = docode <- B64.decodeBase64 . encodeUtf8 $ tif BS.length code == 32then Right $ InvitationCode codeelse Left "Invitation code appears to be invalid."parseInvCode t =InvitationCode <$> (B64.decodeBase64 . encodeUtf8 $ t) - replacement in lib/Aftok/Project.hs at line 59
renderInvCode (InvitationCode bs) = B64.encodeBase64 bsrenderInvCode (InvitationCode bs) = B64.encodeBase64Unpadded bs