Commit graph

93 commits

Author SHA1 Message Date
Hongrui Fang
bedac537d0 remove unused SOP.Generic derivations 2022-08-12 05:01:35 +08:00
Hongrui Fang
33e4ed037e fix compilation errors 2022-08-12 04:56:19 +08:00
Hongrui Fang
8d7da3df6c fix typos 2022-07-26 21:47:15 +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
516f6bacda encode some enum types as integer on chain 2022-06-28 22:41:05 +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
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
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
88c54a74c5 Merge branch 'master' into connor/governor 2022-05-14 00:40:26 +08:00
fanghr
70367702fb add all agora types 2022-05-13 20:03:17 +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
a4ba8501a2 add someee comments; consistent naming 2022-05-10 19:55:41 +08:00
fanghr
b361ad7aa7 check if the UTXO carries a valid datum while minting GST 2022-05-06 17:11:09 +08:00
fanghr
c404cef850 add samples: proposalCreation, mutateState and mintGAT 2022-05-06 17:11:07 +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
fanghr
750761ed0d reimplement mustFindDatum' with PTryFrom 2022-05-06 17:09:37 +08:00
fanghr
3da721b876 add PTryFrom instances for PGovernorDatum and PGovernorDatum 2022-05-06 17:09:37 +08:00
fanghr
c47d0ca857 get rid of pownCurrencySymbol 2022-05-06 17:09:36 +08:00
fanghr
8630b7190d move pgetNextProposalId from Proposal module to Governor module 2022-05-06 17:09:36 +08:00
fanghr
62c359aac3 fix typos/grammar/docstrings, suggested by @jhodgdev
Co-authored-by: Jack Hodgkinson <30505104+jhodgdev@users.noreply.github.com>
2022-05-06 17:09:35 +08:00
fanghr
836ec5e9cf remove executable state of the proposal
revert 45a09e8 and 8ffc430
2022-05-06 17:09:35 +08:00
fanghr
70d79e8971 apply hlint suggestions; format 2022-05-06 17:09:33 +08:00
fanghr
c67a4ea81b check stake upon the creation of a proposal
...documentation is updated as well
2022-05-06 17:09:33 +08:00
fanghr
ec0c53db99 allow multiple outputs to the proposal validator
... upon creation of the proposal. Don't know if this is intended or
not.
2022-05-06 17:09:32 +08:00
fanghr
14b8d30d57 naming 2022-05-06 17:09:31 +08:00
fanghr
13c72a6180 ensure that the token name of GST is empty 2022-05-06 17:09:31 +08:00
fanghr
7294c01ebb simplify code
Co-authored-by: Emily Martins <emi@haskell.fyi>
2022-05-06 17:09:30 +08:00
fanghr
4dc311d370 apply naming suggestions by @emiflake 2022-05-06 17:09:30 +08:00
fanghr
0874571d89 fix some typos :) 2022-05-06 17:09:29 +08:00
fanghr
01d3be029d clean up; apply hlint suggestions; format 2022-05-06 17:09:28 +08:00
fanghr
15414aeda4 properly check state datum when creat a proposal 2022-05-06 17:09:28 +08:00
fanghr
a4d55f221a support more than two effect groups/vote outcomes 2022-05-06 17:09:27 +08:00
fanghr
9e85a7a004 rewrite the doc for governor components
... also explain what GST is
2022-05-06 17:09:26 +08:00
fanghr
c6cdb3ac31 expose util function gatSymbol 2022-05-06 17:09:25 +08:00
fanghr
54b58ad937 fix compilation erros; format && lint
Co-authored-by: Emily Martins <emi@haskell.fyi>
2022-05-06 17:09:25 +08:00
fanghr
a5c461700e consistent naming 2022-05-06 17:09:24 +08:00