Commit graph

54 commits

Author SHA1 Message Date
Hongrui Fang
7f80db7af5 regression tests for SST exploit 2022-11-02 00:48:10 +08:00
Hongrui Fang
93700ecf39 regression tests for unauthorized GAT minting exploit 2022-11-02 00:48:09 +08:00
Hongrui Fang
e9e1502138 regression tests for down voting with fake stakes 2022-11-02 00:48:08 +08:00
Hongrui Fang
a200f4ee20 regression tests for proposal fast-forward attack 2022-11-02 00:48:07 +08:00
Emily Martins
914098655d apply formatting 2022-10-31 13:43:32 +01:00
Hongrui Fang
372ab5baa8 regression tests for privilege escalation while voting 2022-10-26 22:15:02 +08:00
Hongrui Fang
52ea8115e3 remove redundant unlock check from stake policy 2022-10-26 22:15:01 +08:00
Hongrui Fang
561cc6c378 tests for destroying stakes 2022-10-26 22:15:00 +08:00
Hongrui Fang
1557067b76 remove outdated test cases 2022-10-26 22:14:59 +08:00
Hongrui Fang
20497fcfe3 tests for creating stakes 2022-10-26 22:14:58 +08:00
Seungheon Oh
4f5504d1d1 renamed shared sample 2022-10-19 19:39:46 -05:00
Seungheon Oh
275d3a5b69 Use liqwid-script-export
commit ec70bfd539fe2e27fd48f5f76395400287ac72d7
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Tue Oct 18 18:58:59 2022 -0500

    use LSE

commit 25fff9b3ad1f2dde4cd7cf36977530b06a87d23c
Merge: 01cd3aa a5567ea
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Tue Oct 18 18:17:45 2022 -0500

    Merge branch 'staging' into seungheonoh/ply

commit 01cd3aa7a235e6fe6658246ca1026fa26dc71a83
Author: Hongrui Fang <chfanghr@gmail.com>
Date:   Tue Oct 11 12:02:03 2022 +0800

    update benchmark

commit a8513244892ce33cfdc9edf8cd501c4985ae8008
Author: Hongrui Fang <chfanghr@gmail.com>
Date:   Tue Oct 11 11:59:22 2022 +0800

    fix tests

commit 20ca40823485c2e2f78253643cf4453ac7b7ddd5
Author: Hongrui Fang <chfanghr@gmail.com>
Date:   Tue Oct 11 11:57:37 2022 +0800

    better import

commit a19fe49424210891bd03db71e4083fc1e0edfd98
Author: Hongrui Fang <chfanghr@gmail.com>
Date:   Tue Oct 11 11:08:20 2022 +0800

    update flake inputs

commit c93b21f1f9441e5c6f54525bf7c6a54757ec36cc
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Mon Oct 10 12:54:12 2022 -0500

    tried to make tests pass

commit 1046ae1237299a33c58b48661bdb6d325a22147e
Merge: 2bf4e36 e2bd48b
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Mon Oct 10 12:18:48 2022 -0500

    Merge branch 'staging' into seungheonoh/ply

commit 2bf4e3627c1b229f58078695082da85c80efd560
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Mon Oct 10 10:48:36 2022 -0500

    remove junkpile

commit a1dbc9ad9e531fe0d0a0480c4aef9cf9ffa90f1d
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Mon Oct 10 10:47:25 2022 -0500

    versions

commit 4542a06ac733858297d3a48c53368fad19dedc43
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Thu Oct 6 22:57:48 2022 -0500

    script exporting interface

commit 6bd8c1a1d57e4bf9dc25c3068a9c8eae6bf6a19d
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Thu Oct 6 22:58:41 2022 -0500

    fixed tests

commit d3ce2cf95633d336f3e621833677bd5bf10ee2c8
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Sun Oct 2 00:55:18 2022 -0500

    fixed tests

commit 1ae64c9f692652b77b0506013853b2ba44267c65
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Sat Oct 1 13:28:20 2022 -0500

    linker

commit db88cb75c7b74843141ad8ab4e6522b66d0dcfbc
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Sat Oct 1 01:03:50 2022 -0500

    exporting scripts

commit 6389fce28e885a8a7f8669629c266f59c0edb51f
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Sat Oct 1 00:51:49 2022 -0500

    made scripts parameterized on the script level

commit aea1e518a8890550bdebd0e5251da11d915c53a9
Author: Seungheon Oh <seungheon.ooh@gmail.com>
Date:   Wed Sep 28 19:53:29 2022 -0500

    Use `TypedScriptEnvelope` for `Agora.Bootstrap`
2022-10-18 19:02:10 -05:00
Hongrui Fang
e762db8d18 fix tests for cosigning 2022-10-06 20:52:24 +08:00
Hongrui Fang
270c984f8d check minimum stake amount while voting 2022-10-05 00:13:11 +08:00
Hongrui Fang
484cd5dce1 fix sample tests for unlocking stakes 2022-10-03 17:20:42 +08:00
Hongrui Fang
b2de61c16c fix sample tests for voting 2022-10-03 17:20:41 +08:00
Hongrui Fang
9b858079dd check stake locks in stake validator 2022-09-30 08:17:32 +08:00
Hongrui Fang
3e7916ba58 fix tests 2022-09-13 20:24:29 +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
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
6b8efdc364 auth check tokens instead of effect validator 2022-08-23 12:34:24 +02:00
Emily Martins
f730998326 use Credential instead of PubKeyHash everywhere 2022-08-17 11:00:24 +02:00
Hongrui Fang
fec449ceb5 use v2 types 2022-08-15 21:41:31 +08:00
Hongrui Fang
b6a30b9ea9 speed up test execution by precompiling scripts
x250 faster!
2022-08-12 05:01:35 +08:00
Hongrui Fang
33e4ed037e fix compilation errors 2022-08-12 04:56:19 +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
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
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
e22bdc59fb improve performance of the governor validator 2022-07-19 22:48:02 +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
701340688a add tests for advancement from draft phrase; refactoring 2022-07-05 16:59:15 +08:00
Hongrui Fang
5ce76885fc fix broken test cases 2022-06-28 18:31:54 +08:00
Hongrui Fang
1508bcb5b9 improve readability of test code 2022-06-20 21:49:39 +08:00
Hongrui Fang
2f46594fe7 fix some typo 2022-06-20 18:55:46 +08:00
Hongrui Fang
36a558bf30 allow multiple proposals in the samples of unlocking stake 2022-06-20 18:54:44 +08:00
fanghr
8f9d9521c2 add samples and tests for unlocking stakes 2022-06-20 18:45:05 +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
Hongrui Fang
448e9e2c1d fix the broken test case 2022-06-17 21:16:29 +08:00
Hongrui Fang
12ab066e23 remove upstreamed utils; fix compilation errors 2022-06-17 21:16:29 +08:00
Seungheon Oh
8e9dd16613 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
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