Commit graph

106 commits

Author SHA1 Message Date
fanghr
8a408f3ab0 add a property test for pupdate and updateMap 2022-05-20 21:50:58 +08:00
fanghr
ec48f4de95 some doc for the proposal voting sample 2022-05-20 03:35:32 +08:00
fanghr
ce09d05dff add sample test && fix broken tests 2022-05-20 03:35:31 +08:00
fanghr
fc48709c07 store starting time of the proposal in its datum
... hardcoded to 0 upon creation for now
2022-05-20 03:35:30 +08:00
fanghr
d44fe083da store timing config in the proposal datum
.... and mock the value upon creation for now
2022-05-20 03:35:29 +08:00
fanghr
937b69a50c rename some props, as @jhodgdev suggested 2022-05-17 18:17:58 +08:00
fanghr
3bb4d752e5 add doc string for prop tests of utils 2022-05-16 23:23:43 +08:00
fanghr
cd6b6a4acc add tests for 'pnubSort' and 'pisUniq' 2022-05-16 20:38:21 +08:00
fanghr
28afcf2f65 docs for utils; refactor tests; rewrite pnubSortBy 2022-05-16 18:11:14 +08:00
fanghr
67ff8f7f46 add tests for pmsort, pmerge and phalve 2022-05-14 19:57:01 +08:00
fanghr
31d8b8bc43 doc negative test cases as a TODO 2022-05-12 20:30:52 +08:00
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
a6e78a51fb qualified imports 2022-05-10 22:13:31 +08: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
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
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
0651c19ca6 add a sample for GST minting policy 2022-05-06 17:11:10 +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
89dd30b1d8 fix broken tests 2022-05-06 17:11:05 +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
86877236de fix compilation errors :) 2022-05-06 17:11:01 +08:00
Jack Hodgkinson
3d71a1195d applied linting and formatting suggestions 2022-05-05 13:40:56 +01:00
Jack Hodgkinson
51ffd56203 finished first draft of treasury tests 2022-05-05 12:03:10 +01:00
Jack Hodgkinson
2c72372a69 Added treasury samples and tests 2022-05-04 17:06:26 +01:00
Jack Hodgkinson
f81deaf062 Reset progress on treasury testing; will continue without apropos 2022-04-29 15:23:08 +01:00
Jack Hodgkinson
af75c25cda CekEvaluationError 2022-04-29 14:00:44 +01:00
Jack Hodgkinson
fdcd725901 finished morphisms 2022-04-28 16:14:35 +01:00
Emily Martins
9ccc481272 remove infinities in ProposalTime, fix test build 2022-04-28 17:00:19 +02:00
Emily Martins
ec835b48c9 remove pfindDatum', in favour of ptryFindDatum 2022-04-28 16:25:40 +02:00
Emily Martins
18622c76d2 apply suggestions 2022-04-28 16:21:16 +02:00
Emily Martins
731ef4e42c 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
82ce3ab717 move Stake to Scripts, fix tests 2022-04-27 12:55:37 +02:00
Emily Martins
4ea9255a6b add shared Sample values module
- add Proposal validator testing
- add some Agora.Record improvements
2022-04-27 12:55:12 +02:00
Emily Martins
1e972f1402 add checks to cosign 2022-04-27 12:54:36 +02:00
Emily Martins
5649f27d24 fix linter errors 2022-04-27 12:53:53 +02:00
Emily Martins
862e9b6079 add proposalCreation Sample test 2022-04-27 12:53:53 +02:00