Commit graph

32 commits

Author SHA1 Message Date
Hongrui Fang
215e952288 remove pvalidatorHashToTokenName 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
SeungheonOh
e2d873f1c5 use utilities from LPE 2022-08-03 23:46:15 +08:00
Hongrui Fang
ed7e808da7 add pdjust and pdnothing 2022-07-26 22:37:35 +08:00
Hongrui Fang
740a625938 allows delegate to retract votes 2022-07-26 22:37:35 +08:00
Hongrui Fang
11757be255 simple tests for setting delegate 2022-07-26 22:37:35 +08:00
Hongrui Fang
8fba8e1598 allow delegating stake for voting 2022-07-26 22:37:35 +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
701340688a add tests for advancement from draft phrase; refactoring 2022-07-05 16:59:15 +08:00
Hongrui Fang
894bba2874 WitnessStake: accept multiple stakes at input 2022-07-05 07:53:56 +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
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
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
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
f18b0992e7 remove anyInput 2022-05-23 18:11:32 +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
Emily Martins
a404a81cad remove all instances of P.do in favour of TermCont. 2022-05-12 13:54:31 +02:00
fanghr
3b21cadd26 add PlutusTX validatorHashToTokenName 2022-05-06 13:22:28 +08:00
Emily Martins
ea47bdddaf fix formatting
fourmolu breaks weirdly on some spacing
2022-04-28 17:22:40 +02:00
Emily Martins
18622c76d2 apply suggestions 2022-04-28 16:21:16 +02:00
Emily Martins
0ca97a645a reduce use of unjustified punsafeCoerce 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