Commit graph

19 commits

Author SHA1 Message Date
fanghr
6f9de51541 apply Emily's suggestions
* add `PMaxTimeRangeWidth`
* several `Default` instances for testing
* a bunch of docstrings
* fix the tests/samples
2022-05-25 21:07:09 +08:00
fanghr
c6c93f587a fix broken tests/samples 2022-05-25 20:08:45 +08:00
fanghr
1a2693aa98 store proposal timing conf in the governor datum 2022-05-25 20:08:39 +08:00
方泓睿
6ad986c7a9 Merge branch 'main' into connor/mutate-governor 2022-05-24 12:38:46 +08:00
fanghr
13225cb447 add min ada to both stake input and output 2022-05-20 21:51:03 +08:00
fanghr
ee6ae128de fix misleading assert messages && add some comments 2022-05-20 21:51:02 +08:00
fanghr
65dc55f37f better naming 2022-05-20 19:10:34 +08:00
fanghr
67a5f3a54d add missing doc strings 2022-05-20 03:35:32 +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
ad33b0cbbc refactor tests of the effect
* test both the effect and governor in the spec
* test that the effect and governor will fail when try setting the
  governor state to a invalid one
2022-05-19 21:31:22 +08:00
fanghr
fc050527a1 switch to TermCont; fix a bunch of compilation errors; format 2022-05-17 20:54:21 +08:00
fanghr
c556b3eda5 fix the broken test 2022-05-17 20:54:19 +08:00
fanghr
bac4eaa74e add a valid sample for the mutate governor effect 2022-05-17 20:54:18 +08:00
fanghr
526ca67747 add templates of tests and samples 2022-05-17 20:54:17 +08:00
fanghr
f45b919d0e apply Emily's suggestions 2022-05-16 19:59:11 +08:00
fanghr
0f36d649c6 merge #74; add sample and spec of the governor 2022-05-12 20:01:32 +08:00