Commit graph

84 commits

Author SHA1 Message Date
方泓睿
0baea570a4 clean up proposal validator 2022-09-16 23:36:06 +08:00
方泓睿
bae8b195b8 workaround CTL validity range inclusiveness issue 2022-09-15 22:30:30 +08:00
方泓睿
bf1b4692fc check only PST is minted while creating proposals 2022-09-15 21:49:54 +08:00
方泓睿
c2fef7959f fix #174
and also modify test cases to reflect real onchain environment
2022-09-15 20:01:06 +08:00
Hongrui Fang
597130ed18 standalone stake redeemers 2022-09-13 22:21:18 +08:00
Hongrui Fang
86e60657d4 apply review suggestions 2022-09-13 20:24:32 +08:00
Hongrui Fang
3e7916ba58 fix tests 2022-09-13 20:24:29 +08:00
Hongrui Fang
ce787fe19c bump plutarch/LPE/PCB; point plutarch to master branch 2022-09-13 20:24:20 +08:00
Emily Martins
92ea81f0cd fix treasury implementation and tests 2022-09-01 20:45:42 +02:00
Emily Martins
aba96ce1ec prevent stake inclusion in AdvanceProposal 2022-08-30 15:59:45 +02:00
Emily Martins
13cc75c401 reorder and inline plets 2022-08-30 12:38:56 +02:00
Emily Martins
baf209843a remove stake checking in more places 2022-08-30 11:59:40 +02:00
Emily Martins
6a86a096db proposal advancing simplified 2022-08-30 11:58:52 +02:00
Hongrui Fang
adcf927607 type safe sorted votes/effects 2022-08-26 22:10:46 +08:00
Hongrui Fang
7cdf0e2fc0 ensure the uniqueness of ResultTag 2022-08-25 20:42:57 +08:00
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