generated from input-output-hk/plutus-starter
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vesting] rewrite the private sale module #75
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2942a57
[vesting] rewrite the private sale module
devfull eb1c725
[vesting] add minimumUTxO calculation and tests
devfull 0ac9298
add preprod in network options
augucharles 8f3ec5d
Merge pull request #76 from smart-chain-fr/preprod-support
augucharles b751353
[network] add a local state query module
devfull 0d6a3e3
[network] add a query for system start
devfull 0a60a26
[network] add relative to absolute time support
devfull 2feceb4
[network] enable reading query args from env
devfull 6f80c86
[polish] keep universal quantification implicit
devfull 6ac20cf
[polish] keep universal quantification implicit
devfull fe04fc8
[vesting] fix slot conversion with local query
devfull 3f7b121
[vesting] fix min allocation for non-ada asset
devfull fba8968
[network] rewrite tests for monadic functions
devfull 01df2d6
[vesting] add SlotNo in NativeScriptInfo
devfull f44f3c1
[nix] update `cardano-node` to 1.35.3
devfull 504095c
Merge pull request #77 from smart-chain-fr/main
augucharles 469e882
add missing parameters in preprod env config
augucharles File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
potentiellement remplacé complètement le binaire par l'intégration directe de la lib haskell https://github.com/input-output-hk/cardano-addresses
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.
Or, maybe with https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/gen/Gen/Cardano/Api/Typed.hs