Commit graph

300 commits

Author SHA1 Message Date
Emily Martins
18df6ead55 add checks to cosign 2022-04-27 12:54:36 +02:00
Emily Martins
7634460241 simplify some PTxInfo functions 2022-04-27 12:53:56 +02:00
Emily Martins
8f7f543438 flake: bump plutarch-extra fork 2022-04-27 12:53:53 +02:00
Emily Martins
e77140e863 stub redeemer matching 2022-04-27 12:53:53 +02:00
Emily Martins
eba9ce452e fix linter errors 2022-04-27 12:53:53 +02:00
Emily Martins
f79f85b2c0 add proposalCreation Sample test 2022-04-27 12:53:53 +02:00
Emily Martins
12fc16390b add 'isDraftRange' checking function. 2022-04-27 12:53:53 +02:00
Emily Martins
faf326f9c3 implement Agora.Record, implement Agora.Proposal.Time 2022-04-27 12:53:37 +02:00
Emily Martins
8f8416593f add ProposalRedeemer, bump plutarch-safemoney PR revision 2022-04-27 12:51:01 +02:00
Emily Martins
2726348665 refactor out ptokenSpent 2022-04-27 12:51:01 +02:00
Emily Martins
801c9067e3 add proposalDatumValid 2022-04-27 12:51:01 +02:00
Jack Hodgkinson
45afbf1d4e
Spelling error 2022-04-26 10:22:26 +01:00
Emily
b134b5f9e1
Merge pull request #56 from Liqwid-Labs/seungheonoh/treasurywithdrawaleffect
Treasury Withdrawal Effect
2022-04-25 17:23:56 +02:00
Seungheon Oh
e262395556 format 2022-04-25 11:17:15 -04:00
Seungheon Oh
cbff7324d8 PTryFrom for Treasury Withdrawal Effect! 2022-04-25 11:16:17 -04:00
SeungheonOh
19c9cd06c8
Merge branch 'master' into seungheonoh/treasurywithdrawaleffect 2022-04-25 10:57:41 -04:00
Emily
9a40151ca1
Merge pull request #67 from Liqwid-Labs/seungheonoh/effect-ptryfrom
Now `makeEffect` boilerplate requires datum to implemt `PTryFrom`
2022-04-25 15:12:35 +02:00
Seungheon Oh
349b4454ab rename! 2022-04-25 09:04:07 -04:00
Seungheon Oh
bb4b87eeb1 More comments 2022-04-25 09:01:40 -04:00
Seungheon Oh
8315f410e8 format 2022-04-25 08:48:22 -04:00
Seungheon Oh
35b862153c take collaterals into account 2022-04-25 08:46:58 -04:00
Seungheon Oh
04b57dce85
Now makeEffect boilerplate requires datum to implemt PTryFrom
It will free `makeEffect` from using `unsafeCoerce` and force each
effect datums to implement their own "parsers".
2022-04-22 23:34:33 -05:00
Seungheon Oh
75f5e83bcf
optimized validator 2022-04-22 20:09:23 -05:00
Seungheon Oh
05a6808767
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
e91dcb7ce1 Now it checks specific treasury
Emily's suggestion on the review
2022-04-22 11:18:38 -04:00
Seungheon Oh
efb0776730 simple fixes suggested from review 2022-04-22 08:23:54 -04:00
Seungheon Oh
9866845f04
formatting 2022-04-21 19:03:14 -05:00
Seungheon Oh
7f6ccc0dee
Yeah! Treasury Withdrawal Effect works with good tests 2022-04-21 19:02:10 -05:00
Seungheon Oh
82dd53efcf
Restructured Testings
Separated the samples and test sets
2022-04-21 16:44:59 -05:00
Seungheon Oh
fe5c18969e
withdrawal effect that actually passes tests 2022-04-21 16:17:54 -05:00
Seungheon Oh
6c62c007f1
more testings 2022-04-21 16:17:54 -05:00
Seungheon Oh
57a0c10404
added test entree
Something is wrong. It does not work.
2022-04-21 16:17:49 -05:00
Seungheon Oh
0464a03989
now proper a proper script context..
and some formatting fixes
2022-04-21 16:16:50 -05:00
Seungheon Oh
27d364bda1
TWE test 2022-04-21 16:16:50 -05:00
Seungheon Oh
5584a47528
format... 2022-04-21 16:16:50 -05:00
Seungheon Oh
c52b65a335
first step to the Test for Treasury Withdrawal Effect 2022-04-21 16:16:50 -05:00
Seungheon Oh
a82fa6f31d
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
bf67f38782
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
1e4d6e554d
Treasury Withdrawal Effect simple Haddock comment 2022-04-21 16:16:49 -05:00
Seungheon Oh
4d2c3af2ba
Minor fixes
Using Utils.hs, fixing fusioning issue, fixing CI build
2022-04-21 16:16:49 -05:00
Seungheon Oh
a3a76a2461
small fixes for Treasury Withdrawal Effect 2022-04-21 16:16:49 -05:00
Seungheon Oh
81dccdb858
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
1f6d8573a0
Treasury Withdrawal Effect Constraint
It checks for output that pays to effect itself.
2022-04-21 16:16:48 -05:00
Seungheon Oh
2fc54b3fc5
Treasury Withdrawal Effect
ensures exact number of outputs, Haskell-level datum
2022-04-21 16:16:48 -05:00
Seungheon Oh
fecbf66782
formatted Treasury Withdrawal Effect 2022-04-21 16:16:48 -05:00
Seungheon Oh
f9d7db9323
Rebase master to Treasury Withdrawal Effect
Liqwid-Labs/agora#46
2022-04-21 16:16:35 -05:00
Emily
41a88204fa
Merge pull request #65 from Liqwid-Labs/emiflake/drop-allInputs
drop `allInputs`, fix `authorityTokensValidIn`
2022-04-21 11:22:46 +02:00
Emily Martins
b8b6269591 improve trace error message 2022-04-21 11:09:07 +02:00
Emily Martins
a6ef476beb add tests for authority token function 'singleAuthorityTokenBurned' 2022-04-20 20:26:32 +02:00
Emily Martins
7c59888b45 drop allInputs, fix authorityTokensValidIn 2022-04-20 18:36:45 +02:00