Commit graph

503 commits

Author SHA1 Message Date
fanghr
cafe91f7a1 use nested pmatches instead of laziness 2022-05-24 21:48:32 +08:00
fanghr
6145d9ef68 remove anyOutput 2022-05-23 23:18:18 +08:00
fanghr
e89b245b20 remove allOutputs 2022-05-23 18:20:49 +08:00
fanghr
f18b0992e7 remove anyInput 2022-05-23 18:11:32 +08:00
Emily
03c514c88e Merge pull request #84 from Liqwid-Labs/connor/proposal-voting
Voting on Proposals
2022-05-20 15:58:11 +02:00
fanghr
13225cb447 add min ada to both stake input and output 2022-05-20 21:51:03 +08:00
fanghr
14a8b9eece pull own output filtering out of the pmatch block 2022-05-20 21:51:03 +08:00
fanghr
ee6ae128de fix misleading assert messages && add some comments 2022-05-20 21:51:02 +08:00
fanghr
8a408f3ab0 add a property test for pupdate and updateMap 2022-05-20 21:50:58 +08:00
fanghr
67a5f3a54d add missing doc strings 2022-05-20 03:35:32 +08:00
fanghr
ec48f4de95 some doc for the proposal voting sample 2022-05-20 03:35:32 +08:00
fanghr
97b3d6f023 ensure the new proposal lock is placed on the stake 2022-05-20 03:35:31 +08:00
fanghr
ce09d05dff add sample test && fix broken tests 2022-05-20 03:35:31 +08:00
fanghr
3741759717 ensure that the voting op is within a valid period 2022-05-20 03:35:30 +08:00
fanghr
fc48709c07 store starting time of the proposal in its datum
... hardcoded to 0 upon creation for now
2022-05-20 03:35:30 +08:00
fanghr
d44fe083da store timing config in the proposal datum
.... and mock the value upon creation for now
2022-05-20 03:35:29 +08:00
fanghr
7da72e9398 validation logic for voting 2022-05-20 03:35:28 +08:00
fanghr
a9b347e14d PEq instances for a bunch of on-chain structures 2022-05-20 03:35:28 +08:00
fanghr
438f472c44 add uitls to update a PMap on-chain 2022-05-20 03:35:23 +08:00
Emily
574031f290 Merge pull request #86 from Liqwid-Labs/emiflake/simple-bench
Add size benchmarking for scripts to `agora-bench`
2022-05-19 13:56:29 +02:00
Emily Martins
bc3c99711f add size benchmarking for scripts to agora-bench 2022-05-18 16:50:08 +02:00
Emily
d61595e2f9 Merge pull request #79 from Liqwid-Labs/emiflake/safety-pool-doc
add safety pool draft document
2022-05-17 15:47:41 +02:00
Emily Martins
5de5e56b4c apply suggestions 2022-05-17 15:15:57 +02:00
方泓睿
f908dfe8b9 Merge pull request #61 from Liqwid-Labs/connor/governor
Implementation of the governor components
2022-05-17 20:52:58 +08:00
fanghr
937b69a50c rename some props, as @jhodgdev suggested 2022-05-17 18:17:58 +08:00
fanghr
3bb4d752e5 add doc string for prop tests of utils 2022-05-16 23:23:43 +08:00
fanghr
cd6b6a4acc add tests for 'pnubSort' and 'pisUniq' 2022-05-16 20:38:21 +08:00
fanghr
f45b919d0e apply Emily's suggestions 2022-05-16 19:59:11 +08:00
Emily Martins
d9a08a1a49 add safety pool draft document 2022-05-16 12:47:30 +02:00
fanghr
28afcf2f65 docs for utils; refactor tests; rewrite pnubSortBy 2022-05-16 18:11:14 +08:00
fanghr
67ff8f7f46 add tests for pmsort, pmerge and phalve 2022-05-14 19:57:01 +08:00
fanghr
4da276a920 test-deps already contains agora 2022-05-14 17:32:42 +08:00
fanghr
ea4f3c1ce0 update purescript bridge 2022-05-14 01:04:16 +08:00
fanghr
88c54a74c5 Merge branch 'master' into connor/governor 2022-05-14 00:40:26 +08:00
方泓睿
4a3574a884 Merge pull request #78 from Liqwid-Labs/connor/purescript-bridge 2022-05-14 00:29:20 +08:00
fanghr
a09448cd5a fix lint/tag; run linter 2022-05-13 20:30:11 +08:00
fanghr
c4ee24461e add make ps_bridge subcommand 2022-05-13 20:23:10 +08:00
fanghr
8c5f10279e generate purescript stuff 2022-05-13 20:08:48 +08:00
fanghr
70367702fb add all agora types 2022-05-13 20:03:17 +08:00
fanghr
68f4bd5498 setup bridge target 2022-05-13 18:08:57 +08:00
fanghr
f586af2f64 pin purescript-bridge so that it builds 2022-05-13 17:36:04 +08:00
Hongrui Fang
f4844b7ff8 add purescript-bridge 2022-05-13 16:42:55 +08:00
fanghr
9d87206d5e add missing phony 2022-05-13 13:57:54 +08:00
fanghr
59fee6f75a merge master; use TermCont every where
fixes #73 partially
2022-05-12 21:21:48 +08:00
fanghr
31d8b8bc43 doc negative test cases as a TODO 2022-05-12 20:30:52 +08:00
Emily
cdd3f07442 Merge pull request #75 from Liqwid-Labs/emiflake/drop-pdo
remove all instances of `P.do` in favour of `TermCont`.
2022-05-12 14:12:02 +02:00
fanghr
38a8d5311e Merge branch 'master' into connor/governor 2022-05-12 20:07:28 +08:00
fanghr
0f36d649c6 merge #74; add sample and spec of the governor 2022-05-12 20:01:32 +08:00
Emily Martins
a404a81cad remove all instances of P.do in favour of TermCont. 2022-05-12 13:54:31 +02:00
方泓睿
42a3db991a Merge pull request #74 from Liqwid-Labs/connor/target-separation
Break `agora-test` into pieces; add test file for utility functions
2022-05-12 19:48:48 +08:00