-
Notifications
You must be signed in to change notification settings - Fork 631
Conversation
default.nix
Outdated
@@ -64,7 +64,8 @@ let | |||
executableHaskellDepends = drv.executableHaskellDepends ++ [self.cabal-install]; | |||
}))); | |||
cardano-sl-node = addGitRev super.cardano-sl-node; | |||
cardano-sl-wallet-new = addGitRev (justStaticExecutables super.cardano-sl-wallet-new); | |||
cardano-sl-wallet-new = addGitRev super.cardano-sl-wallet-new; | |||
cardano-sl-wallet-new-static = justStaticExecutables cardano-sl-wallet-new; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
upssing a super.
on this line
default.nix
Outdated
# Static linking for everything to work around | ||
# https://ghc.haskell.org/trac/ghc/ticket/14444 | ||
# This will be the default in nixpkgs since | ||
# https://github.com/NixOS/nixpkgs/issues/29011 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave the comments in, and move enableSharedExecutables
out of the args ? src
block
faucet/default.nix
Outdated
, servant-swagger-ui, stdenv, swagger2, text, text-format, tls, wai | ||
, wai-cors, wai-extra, warp | ||
}: | ||
mkDerivation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can probably delete this file, stack2nix handles it automatically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was for convenience while I was developing (to get round having to regenerate pkgs/default.nix
whenever I changed dependencies. I'll keep it for now, but will make a note to get rid of it and shell.nix
before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently only looking at the nix files
I think I've addressed everything apart from this informational "Only looking at the nix files" message?
686994b
to
06ad698
Compare
faucet/generated-wallet-details.json
Outdated
@@ -0,0 +1 @@ | |||
{"wallet-id":"Ae2tdPwUPEZJkLTchA9mETtyXumBT1K1gqtX3dgXUguJFLuvyNU9BzQXrEK","recovery-words":["relax","secret","seek","story","supreme","meat","judge","onion","weasel","sponsor","garlic","erase"],"address":"DdzFFzCqrhswmBoqDubnsZZpvnfFbjgwLwFyk4vC5jJJf75m36f4M3f67k4iia1RQdCUPmJHV7c9TK2ogfzjoQSYHKCoM4YTv6zrmr28","account-index":2147483648} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth pretty printing that JSON so its a bit more human readable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That wasn't actually supposed to be in there. I've added it to ignore.
faucet/server/Main.hs
Outdated
_statsd <- liftIO $ forkStatsd (config ^. fcStatsdOpts . _Wrapped') (fEnv ^. feStore) | ||
liftIO $ run (config ^. fcPort) (serve faucetDocAPI server) | ||
where | ||
-- runLogger :: LoggerNameBox IO a -> IO a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment? Why not actually have the type sig there so the compiler can validate that it is indeed correct.
88fde4e
to
2ce31cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Split up the withdraw function.
- Can we have at least one token test case?
- Needs a little documentation.
- Remove _dead code and commented out code
- Remove nix files and .projectile.
- Remove index.html
- Copyright IOHK
- There is a missing letter in Withdrawl
@rvl these would be easier to address if they were inline :-)
I've split out the queue handling parts 59a71c7
I'm sure there are some parts that can be sensibly tested now
There are haddocks on all the main functions and swagger docs (under
I've removed all the commented code I could find, could you review inline anymore you see and anything you think is dead? 7cabdb9
Done a015867
This is kinda handy to have around for testing purposes... Now that recaptcha is enabled you can't really test with
Done - found the remaining instance in LICENSE 3d945c6
Urban dictionary informs me that "withdrawl" is
which isn't quite what I intended. Fixed in 1c2ae37 |
Made a start on a test suite in 8741c9d |
49b5656
to
d323db0
Compare
faucet/cardano-sl-faucet.cabal
Outdated
, Cardano.WalletClient | ||
default-language: Haskell2010 | ||
|
||
executable faucet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would help with deployment if this were called cardano-faucet
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure - I can change that easy enough.
faucet/server/Main.hs
Outdated
|
||
main :: IO () | ||
main = withCompileInfo $ do | ||
ekg <- forkServer "localhost" 8001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be configurable with --ekg-server
option, like the wallet.
You might be able to re-use option handling code from Pos.Infra.Statistics.Ekg
.
In the config file, can the recaptcha secret key be specified as a path to a file from which the key will be read, rather than stored directly in the JSON? |
Thanks.
|
Helps when testing locally using curl. If there is a recaptcha secret configured, it will fail the recaptcha check and return HTTP 400.
Ported faucet branch from Previous version of faucet which is based off develop is on the devops-834-faucet-develop branch. |
Description
Faucet for the cardano testnet.
Linked issue
DEVOPS-834
Type of change
Developer checklist
Testing checklist