Commit graph

69 commits

Author SHA1 Message Date
Emily Martins
8ac30c9bdf apply @chfanghr's suggestions 2022-08-23 15:58:58 +02:00
Emily Martins
6b8efdc364 auth check tokens instead of effect validator 2022-08-23 12:34:24 +02:00
Hongrui Fang
fb1c1cada6 update benchmark 2022-08-18 00:20:26 +08:00
Emily Martins
f730998326 use Credential instead of PubKeyHash everywhere 2022-08-17 11:00:24 +02:00
Hongrui Fang
1a62d7c4b7 test new functionalities in proposal advancements 2022-08-17 12:26:55 +08:00
Hongrui Fang
9f6f74a136 update benchmark 2022-08-15 21:42:32 +08:00
Hongrui Fang
757ccfc1e3 update benchmark 2022-08-12 05:01:36 +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
791b1fe291 tests for delegate voting 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
8d7da3df6c fix typos 2022-07-26 21:47:15 +08:00
Hongrui Fang
e881f69c99 fix broken tests; utilizing new PCB APIs 2022-07-21 22:41:28 +08:00
Hongrui Fang
fa25ca21a2 add tests for governor mutation 2022-07-21 22:41:22 +08:00
Hongrui Fang
558313e213 add tests for GAT minting
no more propsoal T_T
2022-07-21 22:29:18 +08:00
Hongrui Fang
2098de2d9c add withBuiltinPairAsData 2022-07-19 22:48:03 +08:00
Hongrui Fang
eba58106f3 add tests for minting GST 2022-07-19 22:48:02 +08:00
Hongrui Fang
7c3825ceba check GST while moving from Locked 2022-07-19 22:48:02 +08:00
Hongrui Fang
9b3645df56 utilize pletAll wherever make sense 2022-07-19 22:48:02 +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
f9ddda4cc0 check the amount of cosigners while cosigning 2022-07-19 22:48:01 +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
79eb0772c3 add new tests for creating proposals 2022-07-11 23:47:29 +08:00
Hongrui Fang
5eee3127b2 refactor and add more tests for unlocking stakes 2022-07-11 23:10:21 +08:00
Hongrui Fang
b76b5c6ec6 fix existing tests 2022-07-11 23:10:19 +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
bf4dd91342 check cosign stakes while advancing from draft 2022-07-05 07:53:29 +08:00
Hongrui Fang
5273f53d46 partially fix cosigning logic; improve performance 2022-07-02 21:03:41 +08:00
Hongrui Fang
ce7d5d2214 encode ProposalThresholds/ProposalTimingConfig normally 2022-06-29 19:12:30 +08:00
Hongrui Fang
f30b75cc4e efficiently encode proposal datum on chain 2022-06-28 22:41:06 +08:00
Hongrui Fang
962d40d93f apply Emily's suggestions 2022-06-28 22:41:06 +08:00
Hongrui Fang
516f6bacda encode some enum types as integer on chain 2022-06-28 22:41:05 +08:00
Hongrui Fang
5ce76885fc fix broken test cases 2022-06-28 18:31:54 +08:00
Hongrui Fang
435050f204 create credentials using blake2b_224
datum hash should be 256 bits(32 bytes)
2022-06-28 17:25:13 +08:00
Emily Martins
0f48870f89 update bench.csv 2022-06-22 21:57:26 +02:00
Hongrui Fang
ff4f6aadb4 use LF as record separator in bench.csv 2022-06-22 00:14:37 +08:00
Hongrui Fang
fb061de36b use PCB to simplify samples 2022-06-20 21:19:38 +08:00
Hongrui Fang
dd2fae059f forgot to remove some upstreamed utils for some reason :) 2022-06-20 18:55:44 +08:00
Hongrui Fang
36a558bf30 allow multiple proposals in the samples of unlocking stake 2022-06-20 18:54:44 +08:00
fanghr
76a9cf79ba apply Emily's suggestions 2022-06-20 18:45:56 +08:00
fanghr
8f9d9521c2 add samples and tests for unlocking stakes 2022-06-20 18:45:05 +08:00
fanghr
9b88d5c099 add validation logic for unlocking stakes 2022-06-20 18:38:27 +08:00
fanghr
13dff0db43 share stake check code among redeemers 2022-06-20 18:37:07 +08:00
Seungheon Oh
e037f3f5f0 Moved samples to PCB
* Cleaner imports
2022-06-17 12:35:33 -05:00