Commit graph

  • 74b5e714da remove all unnecessary mint only one kind of token checks fanghr 2022-04-21 22:22:49 +08:00
  • 12a0e3046e allow GST has a custom name fanghr 2022-04-21 22:15:48 +08:00
  • 8ec958646c ensure the proposal is in executable state while minting GATs fanghr 2022-04-21 22:08:37 +08:00
  • 0f2be417a7 add executable state for the proposal fanghr 2022-04-21 22:07:15 +08:00
  • 9e724fb75a some error message improvement fanghr 2022-04-21 22:01:44 +08:00
  • 044937c38c ensure that the proposal state token is sent back fanghr 2022-04-21 21:52:04 +08:00
  • 7d6cd33730 check input/output proposal status while minting GATs Hongrui Fang 2022-04-21 18:49:06 +08:00
  • 6a5ce88972 correct validation logic for proposals fanghr 2022-04-21 16:56:56 +08:00
  • 034fc397df add mustBePJust and mustBePDJust util functions fanghr 2022-04-21 16:33:59 +08:00
  • 2e1514f366 allow other components to know the assetclass of GST fanghr 2022-04-21 13:30:07 +08:00
  • c7ae47d487 add validation logic for GAT minting; add doc string for MintGATs fanghr 2022-04-20 23:29:47 +08:00
  • 793f038182 remove redundant imports fanghr 2022-04-20 16:56:07 +08:00
  • 3065cd9e11 getting start with GAT minting validation fanghr 2022-04-20 16:55:17 +08:00
  • b67361e7b4 calculate GAT's symbol based on gov parameters fanghr 2022-04-20 16:48:09 +08:00
  • b43171010e make authorityTokenPolicy a ClosedTerm PMintingPolicy fanghr 2022-04-20 16:45:25 +08:00
  • ce4922beb3 plet proposal symbol; clean up stuff a little bit Hongrui Fang 2022-04-20 12:55:43 +08:00
  • ff227bcbf5 handle proposal creation Hongrui Fang 2022-04-20 12:47:59 +08:00
  • a970c0586f add doc string for governorValidator and pnextProposalId fanghr 2022-04-19 22:35:42 +08:00
  • 04bba9ebaf convert all "datum NFT" to "state token" in the messages fanghr 2022-04-19 22:18:25 +08:00
  • 18bfa25fcb implement governor state token minting policy fanghr 2022-04-19 17:16:42 +08:00
  • afc48aa9f8 apply hlint suggestions; fix the ci fanghr 2022-04-19 12:12:46 +08:00
  • dd99543449 apply naming suggestions from Emily and Seungheon fanghr 2022-04-17 12:07:06 +08:00
  • be16b80459 get next proposal id from pnextProposalId fanghr 2022-04-16 23:04:22 +08:00
  • 731e714fc3 handle effects that mutate params of the governor fanghr 2022-04-16 18:49:25 +08:00
  • de517fc144 add pisDJust util function fanghr 2022-04-16 18:27:30 +08:00
  • f30ca26ea5 rename redeemer MutateDatum to MutateParams fanghr 2022-04-16 13:56:39 +08:00
  • 1e9ff7d8f4 handle proposal creation fanghr 2022-04-15 18:34:51 +08:00
  • 99365a32ae check that the datum nft always stays at the governor address fanghr 2022-04-15 17:58:37 +08:00
  • b546fc9701 export PGovernorRedeemer fanghr 2022-04-15 13:11:48 +08:00
  • c432a06d5e add corresponding plutarch-level redeemer and datum fanghr 2022-04-15 13:02:57 +08:00
  • 5ace88290d modify GovernorRedeemer and Governor fanghr 2022-04-15 12:43:59 +08:00
  • 6aa4ed732a Merge branch 'master' of github.com:Liqwid-Labs/agora into jhodgdev/treasury-tests Jack Hodgkinson 2022-05-06 09:35:23 +01:00
  • 1ce89d3ac6 Merge pull request #72 from Liqwid-Labs/connor/validatorHashTokenName Jack Hodgkinson 2022-05-06 09:15:17 +01:00
  • 32d6e74a8b run linter fanghr 2022-05-06 14:06:27 +08:00
  • 3b21cadd26 add PlutusTX validatorHashToTokenName fanghr 2022-05-06 13:22:28 +08:00
  • 3d71a1195d applied linting and formatting suggestions Jack Hodgkinson 2022-05-05 13:40:56 +01:00
  • 51ffd56203 finished first draft of treasury tests Jack Hodgkinson 2022-05-05 12:03:10 +01:00
  • 2c72372a69 Added treasury samples and tests Jack Hodgkinson 2022-05-04 17:06:26 +01:00
  • 9393a04fd5 Merge branch 'master' of github.com:Liqwid-Labs/agora into jhodgdev/treasury-tests Jack Hodgkinson 2022-05-03 12:49:23 +01:00
  • 297b6a59ef Merge pull request #59 from Liqwid-Labs/emiflake/proposal-impl Emily 2022-04-29 16:39:59 +02:00
  • f81deaf062 Reset progress on treasury testing; will continue without apropos Jack Hodgkinson 2022-04-29 15:23:08 +01:00
  • af75c25cda CekEvaluationError Jack Hodgkinson 2022-04-29 14:00:44 +01:00
  • ea47bdddaf fix formatting Emily Martins 2022-04-28 17:22:40 +02:00
  • fdcd725901 finished morphisms Jack Hodgkinson 2022-04-28 16:14:35 +01:00
  • 9ccc481272 remove infinities in ProposalTime, fix test build Emily Martins 2022-04-28 17:00:19 +02:00
  • ec835b48c9 remove pfindDatum', in favour of ptryFindDatum Emily Martins 2022-04-28 16:20:05 +02:00
  • 18622c76d2 apply suggestions Emily Martins 2022-04-28 16:18:07 +02:00
  • 5622a9d6db Added doc to new Makefile function Jack Hodgkinson 2022-04-28 09:28:58 +01:00
  • 638d616e29 add hasktags function to Makefile Jack Hodgkinson 2022-04-28 09:27:03 +01:00
  • bc90affbcd add effect and votes shape check on proposalDatumValid Emily Martins 2022-04-27 15:18:07 +02:00
  • 731ef4e42c be more consistent in use of "period", "state", etc wrt. proposals Emily Martins 2022-04-27 14:43:55 +02:00
  • 0ca97a645a reduce use of unjustified punsafeCoerce Emily Martins 2022-04-27 12:42:19 +02:00
  • 4ec0013af4 add missing range checks Emily Martins 2022-04-26 22:08:31 +02:00
  • e201351249 fix haddock errors Emily Martins 2022-04-26 21:07:02 +02:00
  • 82ce3ab717 move Stake to Scripts, fix tests Emily Martins 2022-04-26 19:26:26 +02:00
  • 33bf2facb1 remove TreasuryDatum, PTryFrom for PTreasuryRedeemer Emily Martins 2022-04-26 17:34:00 +02:00
  • 7f62b04268 reduce 'PTxInfo' passing to functions Emily Martins 2022-04-26 15:37:54 +02:00
  • deaa5cf6f1 move Proposal impl. to Agora.Proposal.Scripts to avoid cyclic deps Emily Martins 2022-04-25 22:32:26 +02:00
  • cee9eaec79 add missing plutarch level proposal status PLocked Hongrui Fang 2022-04-21 18:21:20 +08:00
  • 4ea9255a6b add shared Sample values module Emily Martins 2022-04-20 16:39:03 +02:00
  • 1e972f1402 add checks to cosign Emily Martins 2022-04-19 22:31:38 +02:00
  • 832e15fc16 simplify some PTxInfo functions Emily Martins 2022-04-19 22:20:17 +02:00
  • 83230e0948 flake: bump plutarch-extra fork Emily Martins 2022-04-19 17:42:39 +02:00
  • 355dcc99cd stub redeemer matching Emily Martins 2022-04-19 14:16:31 +02:00
  • 5649f27d24 fix linter errors Emily Martins 2022-04-19 11:07:11 +02:00
  • 862e9b6079 add proposalCreation Sample test Emily Martins 2022-04-18 16:26:34 +02:00
  • 76911ed5d6 add 'isDraftRange' checking function. Emily Martins 2022-04-18 13:52:01 +02:00
  • 0ba8a58cb7 implement Agora.Record, implement Agora.Proposal.Time Emily Martins 2022-04-15 22:22:22 +02:00
  • 265d8f25c7 add ProposalRedeemer, bump plutarch-safemoney PR revision Emily Martins 2022-04-15 22:03:18 +02:00
  • 808bf77d14 refactor out ptokenSpent Emily Martins 2022-04-13 16:39:08 +02:00
  • 99cacbf30d add proposalDatumValid Emily Martins 2022-04-12 14:25:30 +02:00
  • ecf1336463 Spelling error Jack Hodgkinson 2022-04-26 10:22:26 +01:00
  • 928ea73400 Merge pull request #56 from Liqwid-Labs/seungheonoh/treasurywithdrawaleffect Emily 2022-04-25 17:23:56 +02:00
  • 3ec470a9ed format Seungheon Oh 2022-04-25 11:17:15 -04:00
  • e08f294adc PTryFrom for Treasury Withdrawal Effect! Seungheon Oh 2022-04-25 11:16:17 -04:00
  • dfbe09edc5 Merge branch 'master' into seungheonoh/treasurywithdrawaleffect SeungheonOh 2022-04-25 10:57:41 -04:00
  • cecbb683fc Merge pull request #67 from Liqwid-Labs/seungheonoh/effect-ptryfrom Emily 2022-04-25 15:12:35 +02:00
  • d5720e05bf rename! Seungheon Oh 2022-04-25 09:04:07 -04:00
  • 3ef534f310 More comments Seungheon Oh 2022-04-25 09:01:40 -04:00
  • 5ff09ee207 format Seungheon Oh 2022-04-25 08:48:22 -04:00
  • 5a688262c3 take collaterals into account Seungheon Oh 2022-04-25 08:46:58 -04:00
  • 9394b2f70b Now makeEffect boilerplate requires datum to implemt PTryFrom Seungheon Oh 2022-04-22 23:34:33 -05:00
  • 5c63764159 optimized validator Seungheon Oh 2022-04-22 20:09:23 -05:00
  • bf13fd926e stricter constraints over inputs Seungheon Oh 2022-04-22 19:01:36 -05:00
  • ec46273b5b Now it checks specific treasury Seungheon Oh 2022-04-22 11:18:38 -04:00
  • 17817ba68b simple fixes suggested from review Seungheon Oh 2022-04-22 08:23:54 -04:00
  • 11a10bd4ec formatting Seungheon Oh 2022-04-21 19:03:14 -05:00
  • df8baf4f4f Yeah! Treasury Withdrawal Effect works with good tests Seungheon Oh 2022-04-21 19:02:10 -05:00
  • 0d99e36541 Restructured Testings Seungheon Oh 2022-04-21 16:44:59 -05:00
  • bed2f37c2f withdrawal effect that actually passes tests Seungheon Oh 2022-04-20 19:57:14 -05:00
  • 6c02b94e16 more testings Seungheon Oh 2022-04-20 12:06:16 -04:00
  • 54e95364ea added test entree Seungheon Oh 2022-04-20 08:43:22 -04:00
  • c96ac583db now proper a proper script context.. Seungheon Oh 2022-04-19 23:02:51 -04:00
  • 774702f255 TWE test Seungheon Oh 2022-04-19 22:32:06 -04:00
  • aa4d198e9f format... Seungheon Oh 2022-04-18 19:17:36 -05:00
  • c90cd94c59 first step to the Test for Treasury Withdrawal Effect Seungheon Oh 2022-04-18 19:15:41 -05:00
  • 4328fa1ba9 Treasury Withdrawal Effect: Only check treasury inputs Seungheon Oh 2022-04-18 13:59:59 -05:00
  • c9adf02614 Treasury Withdrawal Effect checks if remainder is to the treasury Seungheon Oh 2022-04-18 13:03:10 -05:00
  • 0b90e041c6 Treasury Withdrawal Effect simple Haddock comment Seungheon Oh 2022-04-16 00:33:23 -05:00
  • 4cd6e6f534 Minor fixes Seungheon Oh 2022-04-16 00:07:32 -05:00