generated from input-output-hk/plutus-starter
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from smart-chain-fr/redesign-vesting
[vesting] rewrite the private sale module
- Loading branch information
Showing
69 changed files
with
3,631 additions
and
708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
# This script is a wrapper around cardano-address. | ||
# | ||
# By default, cardano-address takes its input from stdin. For now, piping with | ||
# (|>) from Shh.Internal leads to unexpected behaviour when doing IO inside the | ||
# PropertyM transformer of QuickCheck. With (|>)¸the command cardano-address | ||
# sometimes does not receive stdin and hang indefinitely, probably due to a | ||
# strictness issue of the monads involved. | ||
# | ||
# The purpose of this script is to provide a hack, hidding the plumbing inside a | ||
# bash script to avoid depending on the pipe from Haskell. The parameter | ||
# following `--` is taken as the input for cardano-address. The rest of the | ||
# arguments are propagated as-is. | ||
# | ||
# In order to use cardano-address in property testing from Haskell, you must | ||
# install this script on your path. | ||
|
||
args=() | ||
|
||
while [ $# -gt 0 ]; do | ||
case "$1" in | ||
"--") | ||
shift | ||
break 2 | ||
;; | ||
*) | ||
args+=("$1") | ||
shift | ||
;; | ||
esac | ||
done | ||
|
||
if [ -t 0 ]; then | ||
printf '%s\n' "$1" | ||
else | ||
cat - | ||
fi | cardano-address "${args[@]}" |
Oops, something went wrong.