方泓睿
|
455dcaf928
|
Merge branch 'main' into connor/#87
|
2022-05-25 18:42:50 +08:00 |
|
fanghr
|
cafe91f7a1
|
use nested pmatches instead of laziness
|
2022-05-24 21:48:32 +08:00 |
|
方泓睿
|
8576784f51
|
Merge pull request #62 from Liqwid-Labs/connor/mutate-governor
Mutate Governor Settings Effect Implementation
|
2022-05-24 12:41:25 +08:00 |
|
方泓睿
|
6ad986c7a9
|
Merge branch 'main' into connor/mutate-governor
|
2022-05-24 12:38:46 +08:00 |
|
fanghr
|
f4f4ed0b21
|
fix a typo
|
2022-05-24 01:27:04 +08:00 |
|
fanghr
|
6145d9ef68
|
remove anyOutput
|
2022-05-23 23:18:18 +08:00 |
|
Emily
|
0f3ef7d6e1
|
Merge pull request #91 from Liqwid-Labs/emiflake/script-export
Export Scripts into JSON file for CTL consumption.
|
2022-05-23 15:25:33 +02: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 Martins
|
bc59671025
|
add remaining scripts, export to json file, fix compile
|
2022-05-20 18:24:53 +02:00 |
|
Emily Martins
|
56090bc5cc
|
init agora-scripts for generating ScriptInfo for CTL
|
2022-05-20 18:24:53 +02: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
|
65dc55f37f
|
better naming
|
2022-05-20 19:10:34 +08:00 |
|
fanghr
|
1b9aaf111d
|
add isPubKey && utilize it in the TreasuryWithdrawal effect
|
2022-05-20 18:22:33 +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 |
|
fanghr
|
1ba11bc23a
|
add missing docs && consistent naming
|
2022-05-19 21:31:25 +08:00 |
|
fanghr
|
ad33b0cbbc
|
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
|
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 |
|
fanghr
|
fc050527a1
|
switch to TermCont; fix a bunch of compilation errors; format
|
2022-05-17 20:54:21 +08:00 |
|
fanghr
|
7f6e363c89
|
only allow script inputs from the effect and governor
|
2022-05-17 20:54:20 +08:00 |
|
fanghr
|
a65465b494
|
only allow desired inputs/outputs in an effect tx
|
2022-05-17 20:54:19 +08:00 |
|
fanghr
|
c556b3eda5
|
fix the broken test
|
2022-05-17 20:54:19 +08:00 |
|
fanghr
|
8c9a69dfec
|
add a simple test
|
2022-05-17 20:54:18 +08:00 |
|
fanghr
|
bac4eaa74e
|
add a valid sample for the mutate governor effect
|
2022-05-17 20:54:18 +08:00 |
|
fanghr
|
526ca67747
|
add templates of tests and samples
|
2022-05-17 20:54:17 +08:00 |
|
fanghr
|
12f9a5bf1d
|
improve the docstring
|
2022-05-17 20:54:16 +08:00 |
|
fanghr
|
40d5cf5f74
|
safely check input/output governor datum
...utilize a bunch of util functions as well
|
2022-05-17 20:54:15 +08:00 |
|
fanghr
|
6ab6afbdb7
|
small doc fix to pisJust
|
2022-05-17 20:54:15 +08:00 |
|
fanghr
|
50deac1175
|
require PtryFrom PData (PAsData datum) in makeEffect
|
2022-05-17 20:54:14 +08:00 |
|
fanghr
|
0440e00410
|
fix compilation errors
|
2022-05-17 20:54:14 +08:00 |
|
fanghr
|
dd79a7b73a
|
mlabs email
|
2022-05-17 20:54:13 +08:00 |
|
fanghr
|
015ee0b9de
|
move GovernorMutation effect to Effect
|
2022-05-17 20:54:12 +08:00 |
|
fanghr
|
33365e0a31
|
add document for everything in GovernorMutation.hs
|
2022-05-17 20:54:12 +08:00 |
|
fanghr
|
f63e20907e
|
utilize gatSymbol; clean up imports
|
2022-05-17 20:54:11 +08:00 |
|