Commit graph

61 commits

Author SHA1 Message Date
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
a355482fea
tests for delegate voting 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
a6280b05a7
fix typos 2022-07-26 21:47:15 +08:00
Hongrui Fang
23cc230968
fix broken tests; utilizing new PCB APIs 2022-07-21 22:41:28 +08:00
Hongrui Fang
eb407b98c4
add tests for governor mutation 2022-07-21 22:41:22 +08:00
Hongrui Fang
c450e1252d
add tests for GAT minting
no more propsoal T_T
2022-07-21 22:29:18 +08:00
Hongrui Fang
f6cf4f01db
add withBuiltinPairAsData 2022-07-19 22:48:03 +08:00
Hongrui Fang
51c4955a37
add tests for minting GST 2022-07-19 22:48:02 +08:00
Hongrui Fang
4317987964
check GST while moving from Locked 2022-07-19 22:48:02 +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
b6fb23975c
improve performance of the governor validator 2022-07-19 22:48:02 +08:00
Hongrui Fang
6d7bee611a
check the amount of cosigners while cosigning 2022-07-19 22:48:01 +08:00
Hongrui Fang
77894c0228
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
f0d0188812
add new tests for creating proposals 2022-07-11 23:47:29 +08:00
Hongrui Fang
0495d27f86
refactor and add more tests for unlocking stakes 2022-07-11 23:10:21 +08:00
Hongrui Fang
1865c5cf38
fix existing tests 2022-07-11 23:10:19 +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
ae0e78976a
check cosign stakes while advancing from draft 2022-07-05 07:53:29 +08:00
Hongrui Fang
95410ce254
partially fix cosigning logic; improve performance 2022-07-02 21:03:41 +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
f26442fb0b
apply Emily's suggestions 2022-06-28 22:41:06 +08:00
Hongrui Fang
e428b504d7
encode some enum types as integer on chain 2022-06-28 22:41:05 +08:00
Hongrui Fang
9852d2791a
fix broken test cases 2022-06-28 18:31:54 +08:00
Hongrui Fang
7832910e94
create credentials using blake2b_224
datum hash should be 256 bits(32 bytes)
2022-06-28 17:25:13 +08:00
Emily Martins
9297cd4c9f update bench.csv 2022-06-22 21:57:26 +02:00
Hongrui Fang
5cd8d0c51f
use LF as record separator in bench.csv 2022-06-22 00:14:37 +08:00
Hongrui Fang
3b15fedc26
use PCB to simplify samples 2022-06-20 21:19:38 +08:00
Hongrui Fang
c49e623504
forgot to remove some upstreamed utils for some reason :) 2022-06-20 18:55:44 +08:00
Hongrui Fang
4ac80516c5
allow multiple proposals in the samples of unlocking stake 2022-06-20 18:54:44 +08:00
fanghr
feb3f2daaf
apply Emily's suggestions 2022-06-20 18:45:56 +08:00
fanghr
034e55c34f
add samples and tests for unlocking stakes 2022-06-20 18:45:05 +08:00
fanghr
a1c5d0e339
add validation logic for unlocking stakes 2022-06-20 18:38:27 +08:00
fanghr
edac5b6cf5
share stake check code among redeemers 2022-06-20 18:37:07 +08:00
Seungheon Oh
50b89107ed
Moved samples to PCB
* Cleaner imports
2022-06-17 12:35:33 -05:00
Hongrui Fang
240a53e6c2
update benchmark 2022-06-17 21:17:49 +08:00
Seungheon Oh
c98f39c6aa
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
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
fanghr
5326b4cb81
fix winner outcome selection logic and timing 2022-05-30 23:54:51 +08:00
fanghr
70d3c01af4
add tests and samples of advancing proposals 2022-05-30 23:54:51 +08:00
fanghr
039fa36620
implement logic to advance proposals 2022-05-30 23:54:48 +08: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
Seungheon Oh
53e48843c9
bench update 2022-05-26 09:53:41 -05:00