Commit graph

34 commits

Author SHA1 Message Date
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
abe1d950bf make 'PProposalTime' scott-encoded 2022-05-25 21:36:56 +08: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
2820831dad add createProposalStartingTime to compute the starting time of proposals 2022-05-25 20:08:44 +08:00
fanghr
cafe91f7a1 use nested pmatches instead of laziness 2022-05-24 21:48:32 +08:00
fanghr
6145d9ef68 remove anyOutput 2022-05-23 23:18:18 +08:00
fanghr
14a8b9eece pull own output filtering out of the pmatch block 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
97b3d6f023 ensure the new proposal lock is placed on the stake 2022-05-20 03:35:31 +08:00
fanghr
ce09d05dff add sample test && fix broken tests 2022-05-20 03:35:31 +08:00
fanghr
3741759717 ensure that the voting op is within a valid period 2022-05-20 03:35:30 +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
7da72e9398 validation logic for voting 2022-05-20 03:35:28 +08:00
fanghr
28afcf2f65 docs for utils; refactor tests; rewrite pnubSortBy 2022-05-16 18:11:14 +08:00
fanghr
59fee6f75a merge master; use TermCont every where
fixes #73 partially
2022-05-12 21:21:48 +08:00
Emily Martins
a404a81cad remove all instances of P.do in favour of TermCont. 2022-05-12 13:54:31 +02:00
fanghr
0ab1a0a440 implement merge sort to imporve perf of some utils 2022-05-06 17:11:11 +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
Emily Martins
9ccc481272 remove infinities in ProposalTime, fix test build 2022-04-28 17:00:19 +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
0ca97a645a reduce use of unjustified punsafeCoerce 2022-04-27 12:55:37 +02:00
Emily Martins
4ec0013af4 add missing range checks 2022-04-27 12:55:37 +02:00
Emily Martins
e201351249 fix haddock errors 2022-04-27 12:55:37 +02:00
Emily Martins
82ce3ab717 move Stake to Scripts, fix tests 2022-04-27 12:55:37 +02:00
Emily Martins
7f62b04268 reduce 'PTxInfo' passing to functions 2022-04-27 12:55:37 +02:00
Emily Martins
deaa5cf6f1 move Proposal impl. to Agora.Proposal.Scripts to avoid cyclic deps 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
76911ed5d6 add 'isDraftRange' checking function. 2022-04-27 12:53:53 +02:00
Emily Martins
0ba8a58cb7 implement Agora.Record, implement Agora.Proposal.Time 2022-04-27 12:53:37 +02:00