Commit graph

16 commits

Author SHA1 Message Date
方泓睿
4bffc1005d
Merge branch 'main' into connor/mutate-governor 2022-05-24 12:38:46 +08:00
fanghr
ccf56f58d1
add min ada to both stake input and output 2022-05-20 21:51:03 +08:00
fanghr
9549fae0df
fix misleading assert messages && add some comments 2022-05-20 21:51:02 +08:00
fanghr
272be9f1f5
better naming 2022-05-20 19:10:34 +08:00
fanghr
bce9b45c25
add missing doc strings 2022-05-20 03:35:32 +08:00
fanghr
3f5707eb86
some doc for the proposal voting sample 2022-05-20 03:35:32 +08:00
fanghr
82201a6e1f
add sample test && fix broken tests 2022-05-20 03:35:31 +08:00
fanghr
e8b87654f3
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
92c64f8d7a
store timing config in the proposal datum
.... and mock the value upon creation for now
2022-05-20 03:35:29 +08:00
fanghr
b34d6b294d
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
1e55827d8b
switch to TermCont; fix a bunch of compilation errors; format 2022-05-17 20:54:21 +08:00
fanghr
ab9f472287
fix the broken test 2022-05-17 20:54:19 +08:00
fanghr
023fcc8e6f
add a valid sample for the mutate governor effect 2022-05-17 20:54:18 +08:00
fanghr
30cceb7910
add templates of tests and samples 2022-05-17 20:54:17 +08:00
fanghr
6548105719
apply Emily's suggestions 2022-05-16 19:59:11 +08:00
fanghr
9f116dd2cf
merge #74; add sample and spec of the governor 2022-05-12 20:01:32 +08:00