Commit graph

42 commits

Author SHA1 Message Date
adamczykm
5ebdc04498 Bump LPE and update use sites. 2022-09-26 13:18:59 +02:00
Emily Martins
e3eab7de7e add NoFieldSelectors flag globally 2022-09-17 15:18:01 +02:00
Hongrui Fang
01cacc9721
standalone stake redeemers 2022-09-13 22:21:18 +08:00
Hongrui Fang
0db0abbe49
document newly added validation context types 2022-09-13 20:24:31 +08:00
Hongrui Fang
57082eb106
witnessing stakes in reference inputs 2022-09-13 20:24:27 +08:00
Hongrui Fang
6a2ce860fe
restructure stake validator 2022-09-06 21:22:59 +08:00
Emily Martins
255c38db67 explicit imports for core agora modules 2022-08-18 16:52:53 +02:00
Hongrui Fang
cb45b5255b
use utils from LPE 2022-08-18 00:20:25 +08:00
Emily Martins
44f3ddf00d use Credential instead of PubKeyHash everywhere 2022-08-17 11:00:24 +02:00
Hongrui Fang
b7902c0cf8
use v2 types 2022-08-15 21:41:31 +08:00
Hongrui Fang
7424a96a2d
remove pvalidatorHashToTokenName 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
SeungheonOh
309c8775ed
use utilities from LPE 2022-08-03 23:46:15 +08:00
Hongrui Fang
95fd75399f
add pdjust and pdnothing 2022-07-26 22:37:35 +08:00
Hongrui Fang
53160efbeb
allows delegate to retract votes 2022-07-26 22:37:35 +08:00
Hongrui Fang
be1eabc261
simple tests for setting delegate 2022-07-26 22:37:35 +08:00
Hongrui Fang
2d6e8b4c4e
allow delegating stake for voting 2022-07-26 22:37:35 +08:00
Hongrui Fang
96a50419d1
implement new stake locking mechanism 2022-07-11 19:45:51 +08:00
Hongrui Fang
f00cc62476
apply Emily's suggestions 2022-07-06 21:55:39 +08:00
Hongrui Fang
9c8d04dbc6
add tests for advancement from draft phrase; refactoring 2022-07-05 16:59:15 +08:00
Hongrui Fang
d433ab17d6
WitnessStake: accept multiple stakes at input 2022-07-05 07:53:56 +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
77401ad0a7 add @since tags to everything 2022-06-22 21:57:26 +02:00
fanghr
a1c5d0e339
add validation logic for unlocking stakes 2022-06-20 18:38:27 +08: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
Seungheon Oh
20e4f56e10
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
d7a235f010
CI using deploy keys of plutarch-*
Simplified workflow using `strategy.matrix`
2022-05-27 13:54:33 -05: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
297ccc91d9
use nested pmatches instead of laziness 2022-05-24 21:48:32 +08:00
fanghr
ab12406f3d
remove anyOutput 2022-05-23 23:18:18 +08:00
fanghr
02bf6f49cc
remove anyInput 2022-05-23 18:11:32 +08:00
fanghr
9549fae0df
fix misleading assert messages && add some comments 2022-05-20 21:51:02 +08:00
fanghr
dfe4bba15f
ensure the new proposal lock is placed on the stake 2022-05-20 03:35:31 +08:00
Emily Martins
1bd6030855 remove all instances of P.do in favour of TermCont. 2022-05-12 13:54:31 +02:00
fanghr
a14d98e077
add PlutusTX validatorHashToTokenName 2022-05-06 13:22:28 +08:00
Emily Martins
be3b8ea5af fix formatting
fourmolu breaks weirdly on some spacing
2022-04-28 17:22:40 +02:00
Emily Martins
5ec74e86b8 apply suggestions 2022-04-28 16:21:16 +02:00
Emily Martins
9dd5bed05e reduce use of unjustified punsafeCoerce 2022-04-27 12:55:37 +02:00
Emily Martins
8cbdbeb2fe fix haddock errors 2022-04-27 12:55:37 +02:00
Emily Martins
438ed872e3 move Stake to Scripts, fix tests 2022-04-27 12:55:37 +02:00