Hongrui Fang
8d7da3df6c
fix typos
2022-07-26 21:47:15 +08:00
Hongrui Fang
fa25ca21a2
add tests for governor mutation
2022-07-21 22:41:22 +08:00
Hongrui Fang
558313e213
add tests for GAT minting
...
no more propsoal T_T
2022-07-21 22:29:18 +08:00
Hongrui Fang
2098de2d9c
add withBuiltinPairAsData
2022-07-19 22:48:03 +08:00
Hongrui Fang
7c3825ceba
check GST while moving from Locked
2022-07-19 22:48:02 +08:00
Hongrui Fang
9b3645df56
utilize pletAll wherever make sense
2022-07-19 22:48:02 +08:00
Hongrui Fang
d709a1fdd0
fix governor datum validation
2022-07-19 22:48:02 +08:00
Hongrui Fang
e22bdc59fb
improve performance of the governor validator
2022-07-19 22:48:02 +08:00
Hongrui Fang
f9ddda4cc0
check the amount of cosigners while cosigning
2022-07-19 22:48:01 +08:00
Hongrui Fang
2ed77cd64b
remove field names from ProposalLock
...
so that ps-bridge works correctly
2022-07-13 16:58:13 +08:00
Hongrui Fang
0b55cefd3b
apply Emily's suggestions
...
* Comment on `validateOutputLocks`
* Assertion message rewording
* Some comment rewording
* Fix Typos
* Correct `PShow` instances, derive as much we can
* Remove redundant checks
2022-07-13 01:58:37 +08:00
Hongrui Fang
5dee613dd4
implement new stake locking mechanism
2022-07-11 19:45:51 +08:00
Hongrui Fang
8242330ac9
apply Emily's suggestions
2022-07-06 21:55:39 +08:00
Hongrui Fang
701340688a
add tests for advancement from draft phrase; refactoring
2022-07-05 16:59:15 +08:00
Hongrui Fang
894bba2874
WitnessStake: accept multiple stakes at input
2022-07-05 07:53:56 +08:00
Hongrui Fang
bf4dd91342
check cosign stakes while advancing from draft
2022-07-05 07:53:29 +08:00
Hongrui Fang
5273f53d46
partially fix cosigning logic; improve performance
2022-07-02 21:03:41 +08:00
Emily Martins
afff408348
use plutarch-script-export library
2022-06-30 16:52:23 +02:00
Hongrui Fang
ce7d5d2214
encode ProposalThresholds/ProposalTimingConfig normally
2022-06-29 19:12:30 +08:00
Emily Martins
910416f4ab
add better server error messages, cbor vs raw hex
2022-06-28 21:13:56 +02:00
Emily Martins
c7869fe701
format and fix Werror compile error
2022-06-28 21:13:56 +02:00
Emily Martins
6a4b945375
add granular script querying support
2022-06-28 21:13:56 +02:00
Hongrui Fang
f30b75cc4e
efficiently encode proposal datum on chain
2022-06-28 22:41:06 +08:00
Hongrui Fang
962d40d93f
apply Emily's suggestions
2022-06-28 22:41:06 +08:00
Hongrui Fang
516f6bacda
encode some enum types as integer on chain
2022-06-28 22:41:05 +08:00
Emily
8f60a07faa
Merge branch 'staging' into emiflake/backport-134
2022-06-28 12:42:51 +02:00
Hongrui Fang
89e9196983
fix threshold check (VotingReady -> Locked)
2022-06-28 17:48:11 +08:00
Hongrui Fang
435050f204
create credentials using blake2b_224
...
datum hash should be 256 bits(32 bytes)
2022-06-28 17:25:13 +08:00
Hongrui Fang
2ab6c180b7
replace all tcont $ pletFields with pletFieldsC
...
and all `tcont $ ptryFrom` with `ptryFromC`
2022-06-23 18:40:41 +08:00
Emily Martins
0f48870f89
update bench.csv
2022-06-22 21:57:26 +02:00
Emily Martins
84f124a8b6
fix Agora's PTryFrom instances through orphans
2022-06-22 21:57:26 +02:00
Emily Martins
c9ec0d05c4
add @since tags to everything
2022-06-22 21:57:26 +02:00
Hongrui Fang
2f46594fe7
fix some typo
2022-06-20 18:55:46 +08:00
Hongrui Fang
dd2fae059f
forgot to remove some upstreamed utils for some reason :)
2022-06-20 18:55:44 +08:00
fanghr
76a9cf79ba
apply Emily's suggestions
2022-06-20 18:45:56 +08:00
fanghr
9b88d5c099
add validation logic for unlocking stakes
2022-06-20 18:38:27 +08:00
fanghr
13dff0db43
share stake check code among redeemers
2022-06-20 18:37:07 +08:00
Hongrui Fang
12ab066e23
remove upstreamed utils; fix compilation errors
2022-06-17 21:16:29 +08:00
Seungheon Oh
8e9dd16613
countingVote,create,startVoting to execute,create,vote
...
Let's embrace consistancy between Haskell types and Plutarch types.
2022-06-16 13:28:55 -05:00
Emily Martins
5049441dfc
flake: bump plutarch, fix resulting issues
...
Collection of things fixed:
- `agora-test`: Fix compile resulting from some changes to hackage.
- `agora-benchmark`: Switched to `plutarch`-style `evalScript`.
- CI: Ported over new flake changes.
This is quite a mess.
2022-06-03 23:23:00 +02:00
Emily Martins
0348f72499
add and fix haddock doc comments
2022-06-02 16:28:14 +02:00
fanghr
4c97341acf
fix winner outcome selection logic and timing
2022-05-30 23:54:51 +08:00
fanghr
9e8424b458
implement logic to advance proposals
2022-05-30 23:54:48 +08:00
fanghr
cf5b6ebc5b
add pwinner to find the winning outcome
2022-05-30 23:54:03 +08:00
Seungheon Oh
312976a4ca
Moved Agora.Record to Plutarch.Extra.Record
...
Since `Agora.Record` provides a general utility for easy construction
of Plutarch record types, they can be moved to `liqwid-plutarch-extra`
to be used abroad.
2022-05-30 09:02:07 -05:00
Seungheon Oh
16b1f6ad4b
CI using deploy keys of plutarch-*
...
Simplified workflow using `strategy.matrix`
2022-05-27 13:54:33 -05:00
Seungheon Oh
7a0f9e9a66
Use Liqwid-Labs/plutarch
...
- Removed `Utils.Value` -- not being used/better is provided with
liqwid-plutarch-extra
- uses `Liqwid-Labs/plutarch`
- uses `Liqwid-Labs/plutarch-numeric`
- uses `Liqwid-Labs/plutarch-safemoney`
- uses `Liqwid-Labs/liqwid-plutarch-extra`
2022-05-27 13:43:55 -05:00
fanghr
abe1d950bf
make 'PProposalTime' scott-encoded
2022-05-25 21:36:56 +08:00
fanghr
6f9de51541
apply Emily's suggestions
...
* add `PMaxTimeRangeWidth`
* several `Default` instances for testing
* a bunch of docstrings
* fix the tests/samples
2022-05-25 21:07:09 +08:00
fanghr
9bc2acb9ca
calculate the starting time of a proposal upon creation
2022-05-25 20:08:45 +08:00