Commit graph

45 commits

Author SHA1 Message Date
Emily Martins
0cb45dbd76 bump liqwid-nix to 2.2.0 2023-01-06 17:18:58 +01:00
Hongrui Fang
ca951031dc
fix compilation errors; rename stuff 2022-12-01 22:15:59 +08:00
Hongrui Fang
74bb792624
fix docstrings
Co-authored-by: Emily Martins <emi@haskell.fyi>
2022-11-22 19:28:31 +08:00
Hongrui Fang
a462e6a3d3
implement cooldown period for stake unlocking 2022-11-21 18:04:35 +08:00
adamczykm
5791e51739
Implement isGovernorDatumValid tests. 2022-11-11 23:35:51 +08:00
Hongrui Fang
6da4e7286d
fix compilation errors 2022-11-11 23:34:55 +08:00
Hongrui Fang
823ebc95a5
test that govenor will reject fake stakes 2022-11-02 00:48:11 +08:00
Hongrui Fang
46ff6023e6
fix typos 2022-10-28 23:55:18 +08:00
Hongrui Fang
b19faa7cfe
correctly handle proposal time 2022-10-28 23:55:17 +08:00
Hongrui Fang
aea6582876
remove redundant import Prelude 2022-10-12 00:15:36 +08:00
adamczykm
5ebdc04498 Bump LPE and update use sites. 2022-09-26 13:18:59 +02:00
方泓睿
c7edb9047c
workaround CTL validity range inclusiveness issue 2022-09-15 22:30:30 +08:00
Hongrui Fang
e5dc29f98b
make use of LPE's time module 2022-09-13 20:24:30 +08:00
Emily Martins
fe39eea726 add kind signatures to all agora decls 2022-08-24 17:08:19 +02:00
Emily Martins
255c38db67 explicit imports for core agora modules 2022-08-18 16:52:53 +02:00
Hongrui Fang
ce72202cfd
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
b7902c0cf8
use v2 types 2022-08-15 21:41:31 +08:00
Hongrui Fang
651b7ef631
remove unused SOP.Generic derivations 2022-08-12 05:01:35 +08:00
Hongrui Fang
91f7118ec3
parameterize scripts over AgoraScripts 2022-08-12 05:01:34 +08:00
Hongrui Fang
f248dbab49
fix compilation errors 2022-08-12 04:56:19 +08:00
Hongrui Fang
a6280b05a7
fix typos 2022-07-26 21:47:15 +08:00
Hongrui Fang
3ec1645f5a
utilize pletAll wherever make sense 2022-07-19 22:48:02 +08:00
Hongrui Fang
2155e59508
fix governor datum validation 2022-07-19 22:48:02 +08:00
Hongrui Fang
6d27bf0270
encode ProposalThresholds/ProposalTimingConfig normally 2022-06-29 19:12:30 +08:00
Hongrui Fang
4d7e323e01
efficiently encode proposal datum on chain 2022-06-28 22:41:06 +08:00
Hongrui Fang
cdda68332a
replace all tcont $ pletFields with pletFieldsC
and all `tcont $ ptryFrom` with `ptryFromC`
2022-06-23 18:40:41 +08:00
Emily Martins
f48027f353 fix Agora's PTryFrom instances through orphans 2022-06-22 21:57:26 +02:00
Emily Martins
77401ad0a7 add @since tags to everything 2022-06-22 21:57:26 +02:00
Hongrui Fang
b60cae3516
remove upstreamed utils; fix compilation errors 2022-06-17 21:16:29 +08:00
Emily Martins
ad9da8e6b3 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
8e71ecbdfd add and fix haddock doc comments 2022-06-02 16:28:14 +02:00
Seungheon Oh
55defea912
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
ff4eb9cf27
make 'PProposalTime' scott-encoded 2022-05-25 21:36:56 +08:00
fanghr
a85b066a05
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
355f838417
calculate the starting time of a proposal upon creation 2022-05-25 20:08:45 +08:00
fanghr
d9732fe814
add createProposalStartingTime to compute the starting time of proposals 2022-05-25 20:08:44 +08:00
fanghr
92c64f8d7a
store timing config in the proposal datum
.... and mock the value upon creation for now
2022-05-20 03:35:29 +08:00
Emily Martins
1bd6030855 remove all instances of P.do in favour of TermCont. 2022-05-12 13:54:31 +02:00
Emily Martins
cf14d9edd8 remove infinities in ProposalTime, fix test build 2022-04-28 17:00:19 +02:00
Emily Martins
5ec74e86b8 apply suggestions 2022-04-28 16:21:16 +02:00
Emily Martins
34827aeca6 add missing range checks 2022-04-27 12:55:37 +02:00
Emily Martins
8cbdbeb2fe fix haddock errors 2022-04-27 12:55:37 +02:00
Emily Martins
eb4dc2c654 add shared Sample values module
- add Proposal validator testing
- add some Agora.Record improvements
2022-04-27 12:55:12 +02:00
Emily Martins
12fc16390b add 'isDraftRange' checking function. 2022-04-27 12:53:53 +02:00
Emily Martins
faf326f9c3 implement Agora.Record, implement Agora.Proposal.Time 2022-04-27 12:53:37 +02:00