fanghr
|
b84ed61356
|
fix missing documentation for governorValidator
|
2022-05-06 17:09:24 +08:00 |
|
fanghr
|
4a645af531
|
yeet containsSingleCurrencySymbol; clean things up
|
2022-05-06 17:09:23 +08:00 |
|
fanghr
|
1b8d322cf4
|
update doc string for the 'governorValidator'
|
2022-05-06 17:09:23 +08:00 |
|
fanghr
|
d3c05c1dc2
|
check proposal state is draft while creating a proposal
|
2022-05-06 17:09:22 +08:00 |
|
fanghr
|
74b5e714da
|
remove all unnecessary mint only one kind of token checks
|
2022-05-06 17:09:21 +08:00 |
|
fanghr
|
12a0e3046e
|
allow GST has a custom name
|
2022-05-06 17:09:21 +08:00 |
|
fanghr
|
8ec958646c
|
ensure the proposal is in executable state while minting GATs
|
2022-05-06 17:09:20 +08:00 |
|
fanghr
|
0f2be417a7
|
add executable state for the proposal
|
2022-05-06 17:09:19 +08:00 |
|
fanghr
|
9e724fb75a
|
some error message improvement
|
2022-05-06 17:09:19 +08:00 |
|
fanghr
|
044937c38c
|
ensure that the proposal state token is sent back
|
2022-05-06 17:09:18 +08:00 |
|
Hongrui Fang
|
7d6cd33730
|
check input/output proposal status while minting GATs
|
2022-05-06 17:09:18 +08:00 |
|
fanghr
|
6a5ce88972
|
correct validation logic for proposals
* simplify using newly added util functions
* check vote thresholds
* Anything else to check here?
|
2022-05-06 17:09:17 +08:00 |
|
fanghr
|
034fc397df
|
add mustBePJust and mustBePDJust util functions
|
2022-05-06 17:09:16 +08:00 |
|
fanghr
|
2e1514f366
|
allow other components to know the assetclass of GST
|
2022-05-06 17:09:16 +08:00 |
|
fanghr
|
c7ae47d487
|
add validation logic for GAT minting; add doc string for MintGATs
|
2022-05-06 17:09:15 +08:00 |
|
fanghr
|
793f038182
|
remove redundant imports
|
2022-05-06 17:09:14 +08:00 |
|
fanghr
|
3065cd9e11
|
getting start with GAT minting validation
|
2022-05-06 17:09:14 +08:00 |
|
fanghr
|
b67361e7b4
|
calculate GAT's symbol based on gov parameters
|
2022-05-06 17:09:13 +08:00 |
|
fanghr
|
b43171010e
|
make authorityTokenPolicy a ClosedTerm PMintingPolicy
|
2022-05-06 17:09:13 +08:00 |
|
Hongrui Fang
|
ce4922beb3
|
plet proposal symbol; clean up stuff a little bit
|
2022-05-06 17:09:12 +08:00 |
|
Hongrui Fang
|
ff227bcbf5
|
handle proposal creation
|
2022-05-06 17:09:11 +08:00 |
|
fanghr
|
a970c0586f
|
add doc string for governorValidator and pnextProposalId
|
2022-05-06 17:09:11 +08:00 |
|
fanghr
|
04bba9ebaf
|
convert all "datum NFT" to "state token" in the messages
in order to avoid confusion
|
2022-05-06 17:09:10 +08:00 |
|
fanghr
|
18bfa25fcb
|
implement governor state token minting policy
* parameterize the policy and the validator with a utxo
|
2022-05-06 17:09:09 +08:00 |
|
fanghr
|
afc48aa9f8
|
apply hlint suggestions; fix the ci
|
2022-05-06 17:09:08 +08:00 |
|
fanghr
|
dd99543449
|
apply naming suggestions from Emily and Seungheon
* `pid` -> `id`
* `MutateParams` -> `MutateGovernor`
|
2022-05-06 17:09:08 +08:00 |
|
fanghr
|
be16b80459
|
get next proposal id from pnextProposalId
|
2022-05-06 17:09:07 +08:00 |
|
fanghr
|
731e714fc3
|
handle effects that mutate params of the governor
|
2022-05-06 17:09:07 +08:00 |
|
fanghr
|
de517fc144
|
add pisDJust util function
the counterpart of `pisJust`, for type `PMaybeData`
|
2022-05-06 17:09:06 +08:00 |
|
fanghr
|
f30ca26ea5
|
rename redeemer MutateDatum to MutateParams
|
2022-05-06 17:09:05 +08:00 |
|
fanghr
|
1e9ff7d8f4
|
handle proposal creation
* check proposal id
|
2022-05-06 17:09:05 +08:00 |
|
fanghr
|
99365a32ae
|
check that the datum nft always stays at the governor address
|
2022-05-06 17:09:04 +08:00 |
|
fanghr
|
b546fc9701
|
export PGovernorRedeemer
|
2022-05-06 17:09:03 +08:00 |
|
fanghr
|
c432a06d5e
|
add corresponding plutarch-level redeemer and datum
* lift them as well
|
2022-05-06 17:09:03 +08:00 |
|
fanghr
|
5ace88290d
|
modify GovernorRedeemer and Governor
* add `MutateDatum` redeemer
* add `datumNFT` to `Governor` so that we can identify the datum
* Lift `GovernorDatum` and `GovernorRedeemer`
|
2022-05-06 17:09:02 +08:00 |
|
Jack Hodgkinson
|
6aa4ed732a
|
Merge branch 'master' of github.com:Liqwid-Labs/agora into jhodgdev/treasury-tests
|
2022-05-06 09:35:23 +01:00 |
|
Jack Hodgkinson
|
1ce89d3ac6
|
Merge pull request #72 from Liqwid-Labs/connor/validatorHashTokenName
`ValidatorHashToTokenName`
|
2022-05-06 09:15:17 +01:00 |
|
fanghr
|
32d6e74a8b
|
run linter
|
2022-05-06 14:18:16 +08:00 |
|
fanghr
|
3b21cadd26
|
add PlutusTX validatorHashToTokenName
|
2022-05-06 13:22:28 +08:00 |
|
Jack Hodgkinson
|
3d71a1195d
|
applied linting and formatting suggestions
|
2022-05-05 13:40:56 +01:00 |
|
Jack Hodgkinson
|
51ffd56203
|
finished first draft of treasury tests
|
2022-05-05 12:03:10 +01:00 |
|
Jack Hodgkinson
|
2c72372a69
|
Added treasury samples and tests
|
2022-05-04 17:06:26 +01:00 |
|
Jack Hodgkinson
|
9393a04fd5
|
Merge branch 'master' of github.com:Liqwid-Labs/agora into jhodgdev/treasury-tests
|
2022-05-03 12:49:23 +01:00 |
|
Emily
|
297b6a59ef
|
Merge pull request #59 from Liqwid-Labs/emiflake/proposal-impl
Proposal validator implementation
|
2022-04-29 16:39:59 +02:00 |
|
Jack Hodgkinson
|
f81deaf062
|
Reset progress on treasury testing; will continue without apropos
|
2022-04-29 15:23:08 +01:00 |
|
Jack Hodgkinson
|
af75c25cda
|
CekEvaluationError
|
2022-04-29 14:00:44 +01:00 |
|
Emily Martins
|
ea47bdddaf
|
fix formatting
fourmolu breaks weirdly on some spacing
|
2022-04-28 17:22:40 +02:00 |
|
Jack Hodgkinson
|
fdcd725901
|
finished morphisms
|
2022-04-28 16:14:35 +01:00 |
|
Emily Martins
|
9ccc481272
|
remove infinities in ProposalTime, fix test build
|
2022-04-28 17:00:19 +02:00 |
|
Emily Martins
|
ec835b48c9
|
remove pfindDatum', in favour of ptryFindDatum
|
2022-04-28 16:25:40 +02:00 |
|