fanghr
|
710aa14e9a
|
qualified imports
|
2022-05-10 22:13:31 +08:00 |
|
fanghr
|
057da75101
|
add someee comments; consistent naming
|
2022-05-10 19:55:41 +08:00 |
|
fanghr
|
e67dd21d06
|
use validatorHashToTokenName
|
2022-05-06 17:13:32 +08:00 |
|
fanghr
|
2a993ae777
|
run linter
|
2022-05-06 17:12:47 +08:00 |
|
fanghr
|
38e5611c3f
|
fix wired issue introduced by punsafeCoerce
|
2022-05-06 17:11:15 +08:00 |
|
Hongrui Fang
|
b653d85265
|
actually check GAT
|
2022-05-06 17:11:14 +08:00 |
|
fanghr
|
d9a2a467bb
|
fix seralization issues
|
2022-05-06 17:11:14 +08:00 |
|
fanghr
|
c1c4c919a2
|
add the rest of the tests
They won't pass for some reasons, unfortunately.
|
2022-05-06 17:11:13 +08:00 |
|
fanghr
|
a12c9832b8
|
run formatter and linter
|
2022-05-06 17:11:13 +08:00 |
|
fanghr
|
c6a59e076d
|
add proposal creation test
|
2022-05-06 17:11:12 +08:00 |
|
fanghr
|
5c7d226a29
|
remove incorrect votes check
|
2022-05-06 17:11:11 +08:00 |
|
fanghr
|
15d4dd03d9
|
implement merge sort to imporve perf of some utils
|
2022-05-06 17:11:11 +08:00 |
|
fanghr
|
ac32b73056
|
add a sample for GST minting policy
|
2022-05-06 17:11:10 +08:00 |
|
fanghr
|
0f8bc9e9f8
|
add subcommand lint_haskell to lint haskell code
|
2022-05-06 17:11:09 +08:00 |
|
fanghr
|
15fd232874
|
check if the UTXO carries a valid datum while minting GST
|
2022-05-06 17:11:09 +08:00 |
|
fanghr
|
41da2dd534
|
run formatter and linter
|
2022-05-06 17:11:08 +08:00 |
|
fanghr
|
473deeb08f
|
add samples: proposalCreation, mutateState and mintGAT
|
2022-05-06 17:11:07 +08:00 |
|
fanghr
|
62cd50c5cb
|
add templates for samples and tests of governor
|
2022-05-06 17:11:07 +08:00 |
|
fanghr
|
cfac755380
|
ensure GTs are in the stake being checked
|
2022-05-06 17:11:06 +08:00 |
|
fanghr
|
8e1eb328a3
|
add descriptions for available make subcommands
|
2022-05-06 17:11:05 +08:00 |
|
fanghr
|
bfebc95ce3
|
fix broken tests
|
2022-05-06 17:11:05 +08:00 |
|
fanghr
|
7cfd80298a
|
add stakeSTAssetClassFromGovernor
|
2022-05-06 17:11:04 +08:00 |
|
fanghr
|
3c76f6c1ac
|
refactor Spec.Sample.Shared with bridges
|
2022-05-06 17:11:03 +08:00 |
|
fanghr
|
e50e5d6f36
|
parameterize PST policy only with assetclass of GST
...to resolve the cyclic reference between SST and PST
|
2022-05-06 17:11:03 +08:00 |
|
fanghr
|
327b2ed244
|
fix a typo
|
2022-05-06 17:11:02 +08:00 |
|
fanghr
|
2aa869b46c
|
fix compilation errors :)
|
2022-05-06 17:11:01 +08:00 |
|
fanghr
|
f59cfc3f56
|
use new utils to construct record
|
2022-05-06 17:11:01 +08:00 |
|
fanghr
|
2210722c2a
|
apply hlint suggestions
|
2022-05-06 17:11:00 +08:00 |
|
fanghr
|
45d91b5aeb
|
fix compilation errors introduced by new util functions
... and export a bunch of bridge functions from the governor
|
2022-05-06 17:10:53 +08:00 |
|
fanghr
|
fb6f2085c6
|
move governor scripts from Agora.Governor to Agora.Governor.Scripts
|
2022-05-06 17:09:39 +08:00 |
|
fanghr
|
0e6369030e
|
remove hasOnlyOneTokenOfAssetClass'
|
2022-05-06 17:09:38 +08:00 |
|
fanghr
|
1e2b20dfef
|
reimplement mustFindDatum' with PTryFrom
|
2022-05-06 17:09:37 +08:00 |
|
fanghr
|
d0b70d5b43
|
add PTryFrom instances for PGovernorDatum and PGovernorDatum
|
2022-05-06 17:09:37 +08:00 |
|
fanghr
|
9c79585c7c
|
get rid of pownCurrencySymbol
|
2022-05-06 17:09:36 +08:00 |
|
fanghr
|
c3a10f8bbd
|
move pgetNextProposalId from Proposal module to Governor module
|
2022-05-06 17:09:36 +08:00 |
|
fanghr
|
c1976b86fc
|
fix typos/grammar/docstrings, suggested by @jhodgdev
Co-authored-by: Jack Hodgkinson <30505104+jhodgdev@users.noreply.github.com>
|
2022-05-06 17:09:35 +08:00 |
|
fanghr
|
c7bfe116d5
|
remove executable state of the proposal
revert 45a09e8 and 8ffc430
|
2022-05-06 17:09:35 +08:00 |
|
Emily Martins
|
067d69d8f6
|
remove redundant checks in hasOnlyOneTokenOfAssetClass'
|
2022-05-06 17:09:34 +08:00 |
|
fanghr
|
d3b5f6c416
|
apply hlint suggestions; format
|
2022-05-06 17:09:33 +08:00 |
|
fanghr
|
5ee0a40435
|
check stake upon the creation of a proposal
...documentation is updated as well
|
2022-05-06 17:09:33 +08:00 |
|
fanghr
|
6647fdf7e6
|
allow multiple outputs to the proposal validator
... upon creation of the proposal. Don't know if this is intended or
not.
|
2022-05-06 17:09:32 +08:00 |
|
fanghr
|
342bedfdd8
|
naming
|
2022-05-06 17:09:31 +08:00 |
|
fanghr
|
ce52bce9fd
|
ensure that the token name of GST is empty
|
2022-05-06 17:09:31 +08:00 |
|
fanghr
|
a8249fdd4a
|
simplify code
Co-authored-by: Emily Martins <emi@haskell.fyi>
|
2022-05-06 17:09:30 +08:00 |
|
fanghr
|
fdbafcce89
|
apply naming suggestions by @emiflake
|
2022-05-06 17:09:30 +08:00 |
|
fanghr
|
3dacc932ca
|
fix some typos :)
|
2022-05-06 17:09:29 +08:00 |
|
fanghr
|
03c8009e27
|
clean up; apply hlint suggestions; format
|
2022-05-06 17:09:28 +08:00 |
|
fanghr
|
430f5ba427
|
properly check state datum when creat a proposal
|
2022-05-06 17:09:28 +08:00 |
|
fanghr
|
ba19962448
|
support more than two effect groups/vote outcomes
|
2022-05-06 17:09:27 +08:00 |
|
fanghr
|
18dce71f72
|
doc string for util functions
|
2022-05-06 17:09:27 +08:00 |
|