Commit graph

321 commits

Author SHA1 Message Date
Jack Hodgkinson
a8d3ad0abc
Merge pull request #72 from Liqwid-Labs/connor/validatorHashTokenName
`ValidatorHashToTokenName`
2022-05-06 09:15:17 +01:00
fanghr
f92d5a6d78
run linter 2022-05-06 14:18:16 +08:00
fanghr
a14d98e077
add PlutusTX validatorHashToTokenName 2022-05-06 13:22:28 +08:00
Emily
49adccbbeb
Merge pull request #59 from Liqwid-Labs/emiflake/proposal-impl
Proposal validator implementation
2022-04-29 16:39:59 +02:00
Emily Martins
be3b8ea5af fix formatting
fourmolu breaks weirdly on some spacing
2022-04-28 17:22:40 +02:00
Emily Martins
cf14d9edd8 remove infinities in ProposalTime, fix test build 2022-04-28 17:00:19 +02:00
Emily Martins
c8f5c6af8f remove pfindDatum', in favour of ptryFindDatum 2022-04-28 16:25:40 +02:00
Emily Martins
5ec74e86b8 apply suggestions 2022-04-28 16:21:16 +02:00
Jack Hodgkinson
45e5261989 Added doc to new Makefile function 2022-04-28 09:28:58 +01:00
Jack Hodgkinson
a313b2680a add hasktags function to Makefile 2022-04-28 09:27:03 +01:00
Emily Martins
0ce8676860 add effect and votes shape check on proposalDatumValid 2022-04-27 15:18:07 +02:00
Emily Martins
2865f2f093 be more consistent in use of "period", "state", etc wrt. proposals
- specify maximum cosigners requirement in spec.
- remove silly qualified names in Proposal impl.
2022-04-27 14:43:55 +02:00
Emily Martins
9dd5bed05e reduce use of unjustified punsafeCoerce 2022-04-27 12:55:37 +02:00
Emily Martins
34827aeca6 add missing range checks 2022-04-27 12:55:37 +02:00
Emily Martins
8cbdbeb2fe fix haddock errors 2022-04-27 12:55:37 +02:00
Emily Martins
438ed872e3 move Stake to Scripts, fix tests 2022-04-27 12:55:37 +02:00
Emily Martins
f2a9749d95 remove TreasuryDatum, PTryFrom for PTreasuryRedeemer 2022-04-27 12:55:37 +02:00
Emily Martins
189973f30f reduce 'PTxInfo' passing to functions 2022-04-27 12:55:37 +02:00
Emily Martins
4411dba717 move Proposal impl. to Agora.Proposal.Scripts to avoid cyclic deps 2022-04-27 12:55:37 +02:00
Hongrui Fang
53629f53c3 add missing plutarch level proposal status PLocked 2022-04-27 12:55:37 +02:00
Emily Martins
eb4dc2c654 add shared Sample values module
- add Proposal validator testing
- add some Agora.Record improvements
2022-04-27 12:55:12 +02:00
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