SeungheonOh
e2d873f1c5
use utilities from LPE
2022-08-03 23:46:15 +08:00
Hongrui Fang
8fba8e1598
allow delegating stake for voting
2022-07-26 22:37:35 +08:00
Hongrui Fang
7c3825ceba
check GST while moving from Locked
2022-07-19 22:48:02 +08:00
Hongrui Fang
9b3645df56
utilize pletAll wherever make sense
2022-07-19 22:48:02 +08:00
Hongrui Fang
e22bdc59fb
improve performance of the governor validator
2022-07-19 22:48:02 +08:00
Hongrui Fang
f9ddda4cc0
check the amount of cosigners while cosigning
2022-07-19 22:48:01 +08:00
Hongrui Fang
0b55cefd3b
apply Emily's suggestions
...
* Comment on `validateOutputLocks`
* Assertion message rewording
* Some comment rewording
* Fix Typos
* Correct `PShow` instances, derive as much we can
* Remove redundant checks
2022-07-13 01:58:37 +08:00
Hongrui Fang
5dee613dd4
implement new stake locking mechanism
2022-07-11 19:45:51 +08:00
Hongrui Fang
8242330ac9
apply Emily's suggestions
2022-07-06 21:55:39 +08:00
Hongrui Fang
bf4dd91342
check cosign stakes while advancing from draft
2022-07-05 07:53:29 +08:00
Hongrui Fang
5273f53d46
partially fix cosigning logic; improve performance
2022-07-02 21:03:41 +08:00
Hongrui Fang
516f6bacda
encode some enum types as integer on chain
2022-06-28 22:41:05 +08:00
Emily
8f60a07faa
Merge branch 'staging' into emiflake/backport-134
2022-06-28 12:42:51 +02:00
Hongrui Fang
89e9196983
fix threshold check (VotingReady -> Locked)
2022-06-28 17:48:11 +08:00
Hongrui Fang
2ab6c180b7
replace all tcont $ pletFields with pletFieldsC
...
and all `tcont $ ptryFrom` with `ptryFromC`
2022-06-23 18:40:41 +08:00
Emily Martins
c9ec0d05c4
add @since tags to everything
2022-06-22 21:57:26 +02:00
Hongrui Fang
2f46594fe7
fix some typo
2022-06-20 18:55:46 +08:00
Hongrui Fang
dd2fae059f
forgot to remove some upstreamed utils for some reason :)
2022-06-20 18:55:44 +08:00
fanghr
76a9cf79ba
apply Emily's suggestions
2022-06-20 18:45:56 +08:00
fanghr
9b88d5c099
add validation logic for unlocking stakes
2022-06-20 18:38:27 +08:00
fanghr
13dff0db43
share stake check code among redeemers
2022-06-20 18:37:07 +08:00
Hongrui Fang
12ab066e23
remove upstreamed utils; fix compilation errors
2022-06-17 21:16:29 +08:00
Emily Martins
5049441dfc
flake: bump plutarch, fix resulting issues
...
Collection of things fixed:
- `agora-test`: Fix compile resulting from some changes to hackage.
- `agora-benchmark`: Switched to `plutarch`-style `evalScript`.
- CI: Ported over new flake changes.
This is quite a mess.
2022-06-03 23:23:00 +02:00
fanghr
4c97341acf
fix winner outcome selection logic and timing
2022-05-30 23:54:51 +08:00
fanghr
9e8424b458
implement logic to advance proposals
2022-05-30 23:54:48 +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
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
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