fanghr
|
272be9f1f5
|
better naming
|
2022-05-20 19:10:34 +08:00 |
|
fanghr
|
dba8b3c68b
|
add isPubKey && utilize it in the TreasuryWithdrawal effect
|
2022-05-20 18:22:33 +08:00 |
|
fanghr
|
bce9b45c25
|
add missing doc strings
|
2022-05-20 03:35:32 +08:00 |
|
fanghr
|
3f5707eb86
|
some doc for the proposal voting sample
|
2022-05-20 03:35:32 +08:00 |
|
fanghr
|
dfe4bba15f
|
ensure the new proposal lock is placed on the stake
|
2022-05-20 03:35:31 +08:00 |
|
fanghr
|
82201a6e1f
|
add sample test && fix broken tests
|
2022-05-20 03:35:31 +08:00 |
|
fanghr
|
b4ca574757
|
ensure that the voting op is within a valid period
|
2022-05-20 03:35:30 +08:00 |
|
fanghr
|
e8b87654f3
|
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
|
92c64f8d7a
|
store timing config in the proposal datum
.... and mock the value upon creation for now
|
2022-05-20 03:35:29 +08:00 |
|
fanghr
|
cf51d47a0d
|
validation logic for voting
|
2022-05-20 03:35:28 +08:00 |
|
fanghr
|
11743e0aac
|
PEq instances for a bunch of on-chain structures
|
2022-05-20 03:35:28 +08:00 |
|
fanghr
|
80496430ab
|
add uitls to update a PMap on-chain
|
2022-05-20 03:35:23 +08:00 |
|
fanghr
|
ab3dfba6e0
|
add missing docs && consistent naming
|
2022-05-19 21:31:25 +08:00 |
|
fanghr
|
b34d6b294d
|
refactor tests of the effect
* test both the effect and governor in the spec
* test that the effect and governor will fail when try setting the
governor state to a invalid one
|
2022-05-19 21:31:22 +08:00 |
|
Emily
|
094cf16aa8
|
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
|
b4b85e623f
|
add size benchmarking for scripts to agora-bench
|
2022-05-18 16:50:08 +02:00 |
|
Emily
|
b050c746ac
|
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
|
a174e11c5b
|
apply suggestions
|
2022-05-17 15:15:57 +02:00 |
|
fanghr
|
1e55827d8b
|
switch to TermCont; fix a bunch of compilation errors; format
|
2022-05-17 20:54:21 +08:00 |
|
fanghr
|
2e21e4c94a
|
only allow script inputs from the effect and governor
|
2022-05-17 20:54:20 +08:00 |
|
fanghr
|
df8fc484c9
|
only allow desired inputs/outputs in an effect tx
|
2022-05-17 20:54:19 +08:00 |
|
fanghr
|
ab9f472287
|
fix the broken test
|
2022-05-17 20:54:19 +08:00 |
|
fanghr
|
30b66a29ff
|
add a simple test
|
2022-05-17 20:54:18 +08:00 |
|
fanghr
|
023fcc8e6f
|
add a valid sample for the mutate governor effect
|
2022-05-17 20:54:18 +08:00 |
|
fanghr
|
30cceb7910
|
add templates of tests and samples
|
2022-05-17 20:54:17 +08:00 |
|
fanghr
|
5eebec544e
|
improve the docstring
|
2022-05-17 20:54:16 +08:00 |
|
fanghr
|
1b4f51b500
|
safely check input/output governor datum
...utilize a bunch of util functions as well
|
2022-05-17 20:54:15 +08:00 |
|
fanghr
|
ccf8229eed
|
small doc fix to pisJust
|
2022-05-17 20:54:15 +08:00 |
|
fanghr
|
9dc4a87ab3
|
require PtryFrom PData (PAsData datum) in makeEffect
|
2022-05-17 20:54:14 +08:00 |
|
fanghr
|
19f5481ef2
|
fix compilation errors
|
2022-05-17 20:54:14 +08:00 |
|
fanghr
|
b5dd2f6932
|
mlabs email
|
2022-05-17 20:54:13 +08:00 |
|
fanghr
|
7c5c8d423a
|
move GovernorMutation effect to Effect
|
2022-05-17 20:54:12 +08:00 |
|
fanghr
|
eb6b617d4d
|
add document for everything in GovernorMutation.hs
|
2022-05-17 20:54:12 +08:00 |
|
fanghr
|
4731614ac9
|
utilize gatSymbol; clean up imports
|
2022-05-17 20:54:11 +08:00 |
|
fanghr
|
94d6d465af
|
fix compilation errors
|
2022-05-17 20:54:10 +08:00 |
|
fanghr
|
5fc9c30d60
|
add an effect that mutates the governor settings
|
2022-05-17 20:54:04 +08:00 |
|
方泓睿
|
72d615bf0a
|
Merge pull request #61 from Liqwid-Labs/connor/governor
Implementation of the governor components
|
2022-05-17 20:52:58 +08:00 |
|
fanghr
|
2e1fda6b6a
|
rename some props, as @jhodgdev suggested
|
2022-05-17 18:17:58 +08:00 |
|
fanghr
|
1ee71d265f
|
add doc string for prop tests of utils
|
2022-05-16 23:23:43 +08:00 |
|
fanghr
|
0c47f0d84d
|
add tests for 'pnubSort' and 'pisUniq'
|
2022-05-16 20:38:21 +08:00 |
|
fanghr
|
6548105719
|
apply Emily's suggestions
|
2022-05-16 19:59:11 +08:00 |
|
Emily Martins
|
2fda54dcaf
|
add safety pool draft document
|
2022-05-16 12:47:30 +02:00 |
|
fanghr
|
768652deb2
|
docs for utils; refactor tests; rewrite pnubSortBy
|
2022-05-16 18:11:14 +08:00 |
|
fanghr
|
06d4fcd428
|
add tests for pmsort, pmerge and phalve
|
2022-05-14 19:57:01 +08:00 |
|
fanghr
|
9d34b63309
|
test-deps already contains agora
|
2022-05-14 17:32:42 +08:00 |
|
fanghr
|
26614a2e9f
|
update purescript bridge
|
2022-05-14 01:04:16 +08:00 |
|
fanghr
|
cbf14337ff
|
Merge branch 'master' into connor/governor
|
2022-05-14 00:40:26 +08:00 |
|
方泓睿
|
b940ba0c22
|
Merge pull request #78 from Liqwid-Labs/connor/purescript-bridge
|
2022-05-14 00:29:20 +08:00 |
|
fanghr
|
a90b2337dc
|
fix lint/tag; run linter
|
2022-05-13 20:30:11 +08:00 |
|
fanghr
|
b363b326f3
|
add make ps_bridge subcommand
|
2022-05-13 20:23:10 +08:00 |
|