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 |
|
fanghr
|
cda1edeffc
|
rewrite the doc for governor components
... also explain what GST is
|
2022-05-06 17:09:26 +08:00 |
|
fanghr
|
ab0151cbd2
|
expose util function gatSymbol
|
2022-05-06 17:09:25 +08:00 |
|
fanghr
|
1e965a7363
|
fix compilation erros; format && lint
Co-authored-by: Emily Martins <emi@haskell.fyi>
|
2022-05-06 17:09:25 +08:00 |
|
fanghr
|
3ba0abb179
|
consistent naming
|
2022-05-06 17:09:24 +08:00 |
|
fanghr
|
4ec55eb81a
|
fix missing documentation for governorValidator
|
2022-05-06 17:09:24 +08:00 |
|
fanghr
|
d7b171ff90
|
yeet containsSingleCurrencySymbol; clean things up
|
2022-05-06 17:09:23 +08:00 |
|
fanghr
|
9eed91ff61
|
update doc string for the 'governorValidator'
|
2022-05-06 17:09:23 +08:00 |
|
fanghr
|
2b0027f4e4
|
check proposal state is draft while creating a proposal
|
2022-05-06 17:09:22 +08:00 |
|
fanghr
|
aba2bb7bd0
|
remove all unnecessary mint only one kind of token checks
|
2022-05-06 17:09:21 +08:00 |
|
fanghr
|
7c50b10309
|
allow GST has a custom name
|
2022-05-06 17:09:21 +08:00 |
|
fanghr
|
8da0a1b016
|
ensure the proposal is in executable state while minting GATs
|
2022-05-06 17:09:20 +08:00 |
|
fanghr
|
be05643f13
|
add executable state for the proposal
|
2022-05-06 17:09:19 +08:00 |
|
fanghr
|
529525f5c8
|
some error message improvement
|
2022-05-06 17:09:19 +08:00 |
|
fanghr
|
6f1c6f0aef
|
ensure that the proposal state token is sent back
|
2022-05-06 17:09:18 +08:00 |
|
Hongrui Fang
|
f1f0405e98
|
check input/output proposal status while minting GATs
|
2022-05-06 17:09:18 +08:00 |
|