Commit graph

277 commits

Author SHA1 Message Date
Seungheon Oh
bf13fd926e stricter constraints over inputs
It will only allow treasuries given in the datum as input. It prevents
unwanted change in the system.
2022-04-22 19:01:36 -05:00
Seungheon Oh
ec46273b5b Now it checks specific treasury
Emily's suggestion on the review
2022-04-22 11:18:38 -04:00
Seungheon Oh
17817ba68b simple fixes suggested from review 2022-04-22 08:23:54 -04:00
Seungheon Oh
11a10bd4ec formatting 2022-04-21 19:03:14 -05:00
Seungheon Oh
df8baf4f4f Yeah! Treasury Withdrawal Effect works with good tests 2022-04-21 19:02:10 -05:00
Seungheon Oh
0d99e36541 Restructured Testings
Separated the samples and test sets
2022-04-21 16:44:59 -05:00
Seungheon Oh
bed2f37c2f withdrawal effect that actually passes tests 2022-04-21 16:17:54 -05:00
Seungheon Oh
6c02b94e16 more testings 2022-04-21 16:17:54 -05:00
Seungheon Oh
54e95364ea added test entree
Something is wrong. It does not work.
2022-04-21 16:17:49 -05:00
Seungheon Oh
c96ac583db now proper a proper script context..
and some formatting fixes
2022-04-21 16:16:50 -05:00
Seungheon Oh
774702f255 TWE test 2022-04-21 16:16:50 -05:00
Seungheon Oh
aa4d198e9f format... 2022-04-21 16:16:50 -05:00
Seungheon Oh
c90cd94c59 first step to the Test for Treasury Withdrawal Effect 2022-04-21 16:16:50 -05:00
Seungheon Oh
4328fa1ba9 Treasury Withdrawal Effect: Only check treasury inputs
Tried to make it so that its only checking treasury inputs when
checking if transaction is correctly returning the remainders to treasury.
2022-04-21 16:16:50 -05:00
Seungheon Oh
c9adf02614 Treasury Withdrawal Effect checks if remainder is to the treasury
It checks if transaction is paying the remainders to the treasury.
2022-04-21 16:16:49 -05:00
Seungheon Oh
0b90e041c6 Treasury Withdrawal Effect simple Haddock comment 2022-04-21 16:16:49 -05:00
Seungheon Oh
4cd6e6f534 Minor fixes
Using Utils.hs, fixing fusioning issue, fixing CI build
2022-04-21 16:16:49 -05:00
Seungheon Oh
e08efd173b small fixes for Treasury Withdrawal Effect 2022-04-21 16:16:49 -05:00
Seungheon Oh
7cae728860 Simple fixes for Treasury Withdrawal Effect
Some simple fixes: naming convention, proper comment for haddoc
2022-04-21 16:16:49 -05:00
Seungheon Oh
e3bf41af29 Treasury Withdrawal Effect Constraint
It checks for output that pays to effect itself.
2022-04-21 16:16:48 -05:00
Seungheon Oh
b3b057cfb8 Treasury Withdrawal Effect
ensures exact number of outputs, Haskell-level datum
2022-04-21 16:16:48 -05:00
Seungheon Oh
76d1454692 formatted Treasury Withdrawal Effect 2022-04-21 16:16:48 -05:00
Seungheon Oh
37cf3ab88e Rebase master to Treasury Withdrawal Effect
Liqwid-Labs/agora#46
2022-04-21 16:16:35 -05:00
Emily
0ace0406d8 Merge pull request #65 from Liqwid-Labs/emiflake/drop-allInputs
drop `allInputs`, fix `authorityTokensValidIn`
2022-04-21 11:22:46 +02:00
Emily Martins
4c265e081c improve trace error message 2022-04-21 11:09:07 +02:00
Emily Martins
956dbb4b53 add tests for authority token function 'singleAuthorityTokenBurned' 2022-04-20 20:26:32 +02:00
Emily Martins
27f5b5de16 drop allInputs, fix authorityTokensValidIn 2022-04-20 18:36:45 +02:00
Emily
bb54cd6a18 Merge pull request #63 from Liqwid-Labs/emiflake/haddock-ci
Publish haddock in CI
2022-04-19 16:46:31 +02:00
Emily Martins
a3274a0f91 publish haddock in CI
- set correct subdirectory for docs
- add elucidating comment about deployment target
2022-04-19 16:19:14 +02:00
Emily
b739e2a4ca Merge pull request #60 from Liqwid-Labs/seungheonoh/testDocumentation
Little guidance for `agora-test`
2022-04-19 14:10:28 +02:00
Seungheon Oh
a59c6fd55d fixes 2022-04-19 08:04:39 -04:00
Seungheon Oh
4ac6e1c081 fix misleading information 2022-04-19 08:03:17 -04:00
SeungheonOh
a92f41a356 removed random line break 2022-04-18 22:57:04 +00:00
Seungheon Oh
374fa2ee1a Little guidance for agora-test
I noticed `agora-test` is quote poorly documented... While it will
receive a restructure when we migrate to `plutarch-test`, these are
small notes in the meantime.
2022-04-18 17:52:30 -05:00
Emily
3971e3a390 Merge pull request #58 from Liqwid-Labs/seunghoenoh/util
New utility functions
2022-04-15 17:54:59 +02:00
Seungheon Oh
aba51c91e7 fixes 2022-04-15 09:02:16 -05:00
Seungheon Oh
339e28fc15 Emily's suggestions & fixed building 2022-04-15 08:52:42 -05:00
Emily Martins
476bf48649 format agora.cabal, flake.nix 2022-04-15 13:41:07 +02:00
fanghr
fccac702b8 break make format into sub-targets
...so that the the nix env won't reload when one just want to format the haskell code

now we have:
* `format_haskell` target
* `format_nix` target
2022-04-15 13:39:35 +02:00
Seungheon Oh
744316a5a6 Connor's suggestions 2022-04-14 23:23:50 -05:00
Seungheon Oh
0090299146 More utility functions
functions that I missed from Conner's governor branch...
2022-04-14 17:19:18 -05:00
Seungheon Oh
458ce8b453 New utility functions
added `pisScriptAddress`, `pfindEffectInput`, and
`pfindEffectAddress`. These functions are commonly used by effects.
2022-04-14 11:38:06 -04:00
Emily
87f900ccba Merge pull request #57 from Liqwid-Labs/emiflake/fix-ci
Fix CI format checks
2022-04-14 16:36:36 +02:00
Emily Martins
623e45c6ba don't use plutarch.tools 2022-04-14 15:24:09 +02:00
Emily Martins
1610f95763 use 'formatCheck' in CI instead of the two manual format checks 2022-04-14 14:20:37 +02:00
Emily
4ed01cf9ee Merge pull request #55 from Liqwid-Labs/seungheonoh/utiloptimization
`pmapUnionWith` optimization
2022-04-14 10:30:17 +02:00
Seungheon Oh
d5d39e0078 pmapUnionWith optimization
There is no reason to have `ps` unless the current key is a duplicate
entry.
2022-04-13 14:25:10 -04:00
Emily
6347a7b569 Merge pull request #54 from Liqwid-Labs/connor/use-the-correct-nixfmt
Use the right nixfmt
2022-04-12 13:56:17 +02:00
fanghr
45f7e92a5f fix #53
Thanks @emiflake !
2022-04-12 18:33:12 +08:00
Emily
1667fbf357 Merge pull request #52 from Liqwid-Labs/emiflake/docs
Various documentation additions
2022-04-12 10:43:14 +02:00