Commit graph

27 commits

Author SHA1 Message Date
fanghr
4c97341acf fix winner outcome selection logic and timing 2022-05-30 23:54:51 +08:00
fanghr
cf5b6ebc5b add pwinner to find the winning outcome 2022-05-30 23:54:03 +08:00
Seungheon Oh
312976a4ca Moved Agora.Record to Plutarch.Extra.Record
Since `Agora.Record` provides a general utility for easy construction
of Plutarch record types, they can be moved to `liqwid-plutarch-extra`
to be used abroad.
2022-05-30 09:02:07 -05:00
Seungheon Oh
16b1f6ad4b CI using deploy keys of plutarch-*
Simplified workflow using `strategy.matrix`
2022-05-27 13:54:33 -05:00
Seungheon Oh
7a0f9e9a66 Use Liqwid-Labs/plutarch
- Removed `Utils.Value` -- not being used/better is provided with
  liqwid-plutarch-extra
- uses `Liqwid-Labs/plutarch`
- uses `Liqwid-Labs/plutarch-numeric`
- uses `Liqwid-Labs/plutarch-safemoney`
- uses `Liqwid-Labs/liqwid-plutarch-extra`
2022-05-27 13:43:55 -05:00
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
9bc2acb9ca calculate the starting time of a proposal upon creation 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
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
59fee6f75a merge master; use TermCont every where
fixes #73 partially
2022-05-12 21:21:48 +08:00
fanghr
a4ba8501a2 add someee comments; consistent naming 2022-05-10 19:55:41 +08:00
fanghr
25ef9ba926 use validatorHashToTokenName 2022-05-06 17:13:32 +08:00
Hongrui Fang
6a887e4cbd actually check GAT 2022-05-06 17:11:14 +08:00
fanghr
3e612135df remove incorrect votes check 2022-05-06 17:11:11 +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
e5ab13d874 ensure GTs are in the stake being checked 2022-05-06 17:11:06 +08:00
fanghr
1387cd19df add stakeSTAssetClassFromGovernor 2022-05-06 17:11:04 +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
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