Commit graph

452 commits

Author SHA1 Message Date
fanghr
0f36d649c6 merge #74; add sample and spec of the governor 2022-05-12 20:01:32 +08:00
fanghr
628894cc1c describe what sample contexts are "valid" for 2022-05-11 20:44:57 +08:00
fanghr
96a137ec3f add some description for the governor spec tests 2022-05-11 18:14:28 +08:00
fanghr
834eb892bf run formatter 2022-05-11 17:50:26 +08:00
fanghr
cad04c6273 only one signer to execute the effect 2022-05-11 17:43:04 +08:00
fanghr
f2d30250da Merge branch 'master' into connor/governor 2022-05-11 17:40:38 +08:00
fanghr
749d2ffc1a remove withMinAda 2022-05-11 17:31:17 +08:00
fanghr
48b1d658e9 add missing phony 2022-05-11 16:17:41 +08:00
fanghr
a95f7a2a4f Revert "add subcommand lint_haskell to lint haskell code"
This reverts commit 27e3033b3b.
2022-05-11 15:55:47 +08:00
fanghr
a6e78a51fb qualified imports 2022-05-10 22:13:31 +08:00
fanghr
a4ba8501a2 add someee comments; consistent naming 2022-05-10 19:55:41 +08:00
Emily
caaa407ac7 Merge pull request #37 from Liqwid-Labs/jhodgdev/treasury-tests
jhodgdev/treasury tests
2022-05-10 11:07:17 +02:00
Jack Hodgkinson
94013be605 replaced use of withMinAda 2022-05-09 13:54:20 +01:00
Jack Hodgkinson
a8bb884eab Applied Emily's suggestions 2022-05-09 12:17:49 +01:00
Jack Hodgkinson
a59ffb221d Added echo message for Makefile lint 2022-05-06 11:22:40 +01:00
Jack Hodgkinson
b870b3c545 added lint function to Makefile 2022-05-06 10:55:09 +01:00
Jack Hodgkinson
975077953b removed outdated reference 2022-05-06 10:54:03 +01:00
Jack Hodgkinson
7572bb4da2 Added review changes 2022-05-06 10:36:21 +01:00
fanghr
25ef9ba926 use validatorHashToTokenName 2022-05-06 17:13:32 +08:00
fanghr
4bf6a4f921 run linter 2022-05-06 17:12:47 +08:00
fanghr
a46a166a03 fix wired issue introduced by punsafeCoerce 2022-05-06 17:11:15 +08:00
Hongrui Fang
6a887e4cbd actually check GAT 2022-05-06 17:11:14 +08:00
fanghr
e6516e21e3 fix seralization issues 2022-05-06 17:11:14 +08:00
fanghr
e15e0bbe84 add the rest of the tests
They won't pass for some reasons, unfortunately.
2022-05-06 17:11:13 +08:00
fanghr
07ff2168b8 run formatter and linter 2022-05-06 17:11:13 +08:00
fanghr
0baf79924f add proposal creation test 2022-05-06 17:11:12 +08:00
fanghr
3e612135df remove incorrect votes check 2022-05-06 17:11:11 +08:00
fanghr
0ab1a0a440 implement merge sort to imporve perf of some utils 2022-05-06 17:11:11 +08:00
fanghr
0651c19ca6 add a sample for GST minting policy 2022-05-06 17:11:10 +08:00
fanghr
27e3033b3b add subcommand lint_haskell to lint haskell code 2022-05-06 17:11:09 +08:00
fanghr
b361ad7aa7 check if the UTXO carries a valid datum while minting GST 2022-05-06 17:11:09 +08:00
fanghr
6a96d68e01 run formatter and linter 2022-05-06 17:11:08 +08:00
fanghr
c404cef850 add samples: proposalCreation, mutateState and mintGAT 2022-05-06 17:11:07 +08:00
fanghr
63c87667c3 add templates for samples and tests of governor 2022-05-06 17:11:07 +08:00
fanghr
e5ab13d874 ensure GTs are in the stake being checked 2022-05-06 17:11:06 +08:00
fanghr
dd2bc5c0d6 add descriptions for available make subcommands 2022-05-06 17:11:05 +08:00
fanghr
89dd30b1d8 fix broken tests 2022-05-06 17:11:05 +08:00
fanghr
1387cd19df add stakeSTAssetClassFromGovernor 2022-05-06 17:11:04 +08:00
fanghr
f62189c38d refactor Spec.Sample.Shared with bridges 2022-05-06 17:11:03 +08:00
fanghr
62bd2dee28 parameterize PST policy only with assetclass of GST
...to resolve the cyclic reference between SST and PST
2022-05-06 17:11:03 +08:00
fanghr
afa8c7c542 fix a typo 2022-05-06 17:11:02 +08:00
fanghr
86877236de fix compilation errors :) 2022-05-06 17:11:01 +08:00
fanghr
b44a007e72 use new utils to construct record 2022-05-06 17:11:01 +08:00
fanghr
8ef9506cd6 apply hlint suggestions 2022-05-06 17:11:00 +08:00
fanghr
926b1f3727 fix compilation errors introduced by new util functions
... and export a bunch of bridge functions from the governor
2022-05-06 17:10:53 +08:00
fanghr
07a498641c move governor scripts from Agora.Governor to Agora.Governor.Scripts 2022-05-06 17:09:39 +08:00
fanghr
65a8e9f92c remove hasOnlyOneTokenOfAssetClass' 2022-05-06 17:09:38 +08:00
fanghr
750761ed0d reimplement mustFindDatum' with PTryFrom 2022-05-06 17:09:37 +08:00
fanghr
3da721b876 add PTryFrom instances for PGovernorDatum and PGovernorDatum 2022-05-06 17:09:37 +08:00
fanghr
c47d0ca857 get rid of pownCurrencySymbol 2022-05-06 17:09:36 +08:00