Commit graph

102 commits

Author SHA1 Message Date
adamczykm
3142ace0ff Bump LPE and update use sites. 2022-09-26 13:18:59 +02:00
方泓睿
0baea570a4 clean up proposal validator 2022-09-16 23:36:06 +08:00
Hongrui Fang
86e60657d4 apply review suggestions 2022-09-13 20:24:32 +08:00
Hongrui Fang
f6b36abfc6 derive list encoded types with PlutusTypeDataList 2022-09-13 20:24:28 +08:00
Hongrui Fang
b2aefbe502 witnessing stakes in reference inputs 2022-09-13 20:24:27 +08:00
Hongrui Fang
ce787fe19c bump plutarch/LPE/PCB; point plutarch to master branch 2022-09-13 20:24:20 +08:00
Emily Martins
42f74f3d37 apply suggestions
Rename `PVoting` -> `PVotingReady` to match Haskell-level
2022-08-30 12:31:29 +02:00
Hongrui Fang
adcf927607 type safe sorted votes/effects 2022-08-26 22:10:46 +08:00
Hongrui Fang
7cdf0e2fc0 ensure the uniqueness of ResultTag 2022-08-25 20:42:57 +08:00
Emily Martins
342ea6a60b add kind signatures to all agora decls 2022-08-24 17:08:19 +02:00
Emily Martins
da9e60d34c add docstring for PProposalEffectGroup 2022-08-18 18:48:38 +02:00
Emily Martins
2f1e04b4f7 explicit imports for core agora modules 2022-08-18 16:52:53 +02:00
Emily Martins
b32ae8ca57 add changelog entry for Credential change 2022-08-18 16:11:28 +02:00
Hongrui Fang
03a1e550d0 use utils from LPE 2022-08-18 00:20:25 +08:00
Hongrui Fang
48fa641511 clean up import/export lists 2022-08-18 00:20:24 +08:00
Emily Martins
f730998326 use Credential instead of PubKeyHash everywhere 2022-08-17 11:00:24 +02:00
Hongrui Fang
e5385c3021 encode reference script hashes in effects
Also:

- Change the validation logic to check the reference script in the GAT UTXO upon the minting of GAT
- Make use of `PMonad`
2022-08-17 12:26:54 +08:00
Hongrui Fang
fec449ceb5 use v2 types 2022-08-15 21:41:31 +08:00
Hongrui Fang
bedac537d0 remove unused SOP.Generic derivations 2022-08-12 05:01:35 +08:00
Hongrui Fang
3d9c447783 parameterize scripts over AgoraScripts 2022-08-12 05:01:34 +08:00
Hongrui Fang
33e4ed037e fix compilation errors 2022-08-12 04:56:19 +08:00
Emily
422af237ef Merge branch 'staging' into nini-faroux/comment-fix 2022-08-05 13:05:55 +02:00
SeungheonOh
e2d873f1c5 use utilities from LPE 2022-08-03 23:46:15 +08:00
nini-faroux
f75bfb0e00 Update ProposalRedeemer comment 2022-08-02 10:16:30 +01:00
Hongrui Fang
2098de2d9c add withBuiltinPairAsData 2022-07-19 22:48:03 +08:00
Hongrui Fang
d709a1fdd0 fix governor datum validation 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
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
bf4dd91342 check cosign stakes while advancing from draft 2022-07-05 07:53:29 +08:00
Hongrui Fang
ce7d5d2214 encode ProposalThresholds/ProposalTimingConfig normally 2022-06-29 19:12:30 +08:00
Hongrui Fang
f30b75cc4e efficiently encode proposal datum on chain 2022-06-28 22:41:06 +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
84f124a8b6 fix Agora's PTryFrom instances through orphans 2022-06-22 21:57:26 +02:00
Emily Martins
c9ec0d05c4 add @since tags to everything 2022-06-22 21:57:26 +02: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
Hongrui Fang
12ab066e23 remove upstreamed utils; fix compilation errors 2022-06-17 21:16:29 +08:00
Seungheon Oh
8e9dd16613 countingVote,create,startVoting to execute,create,vote
Let's embrace consistancy between Haskell types and Plutarch types.
2022-06-16 13:28:55 -05: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
Emily Martins
0348f72499 add and fix haddock doc comments 2022-06-02 16:28:14 +02:00
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
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