Commit graph

260 commits

Author SHA1 Message Date
Hongrui Fang
f00cc62476
apply Emily's suggestions 2022-07-06 21:55:39 +08:00
Hongrui Fang
9c8d04dbc6
add tests for advancement from draft phrase; refactoring 2022-07-05 16:59:15 +08:00
Hongrui Fang
d433ab17d6
WitnessStake: accept multiple stakes at input 2022-07-05 07:53:56 +08:00
Hongrui Fang
ae0e78976a
check cosign stakes while advancing from draft 2022-07-05 07:53:29 +08:00
Hongrui Fang
95410ce254
partially fix cosigning logic; improve performance 2022-07-02 21:03:41 +08:00
Emily Martins
835e04e049 use plutarch-script-export library 2022-06-30 16:52:23 +02:00
Hongrui Fang
6d27bf0270
encode ProposalThresholds/ProposalTimingConfig normally 2022-06-29 19:12:30 +08:00
Emily Martins
6a7e8369fd add better server error messages, cbor vs raw hex 2022-06-28 21:13:56 +02:00
Emily Martins
7466901875 format and fix Werror compile error 2022-06-28 21:13:56 +02:00
Emily Martins
5f2d191ae7 add granular script querying support 2022-06-28 21:13:56 +02:00
Hongrui Fang
4d7e323e01
efficiently encode proposal datum on chain 2022-06-28 22:41:06 +08:00
Hongrui Fang
f26442fb0b
apply Emily's suggestions 2022-06-28 22:41:06 +08:00
Hongrui Fang
e428b504d7
encode some enum types as integer on chain 2022-06-28 22:41:05 +08:00
Emily
1d11a29a50
Merge branch 'staging' into emiflake/backport-134 2022-06-28 12:42:51 +02:00
Hongrui Fang
0258a72170
fix threshold check (VotingReady -> Locked) 2022-06-28 17:48:11 +08:00
Hongrui Fang
7832910e94
create credentials using blake2b_224
datum hash should be 256 bits(32 bytes)
2022-06-28 17:25:13 +08:00
Hongrui Fang
cdda68332a
replace all tcont $ pletFields with pletFieldsC
and all `tcont $ ptryFrom` with `ptryFromC`
2022-06-23 18:40:41 +08:00
Emily Martins
9297cd4c9f update bench.csv 2022-06-22 21:57:26 +02:00
Emily Martins
f48027f353 fix Agora's PTryFrom instances through orphans 2022-06-22 21:57:26 +02:00
Emily Martins
77401ad0a7 add @since tags to everything 2022-06-22 21:57:26 +02:00
Hongrui Fang
3ecb6a351d
fix some typo 2022-06-20 18:55:46 +08:00
Hongrui Fang
c49e623504
forgot to remove some upstreamed utils for some reason :) 2022-06-20 18:55:44 +08:00
fanghr
feb3f2daaf
apply Emily's suggestions 2022-06-20 18:45:56 +08:00
fanghr
a1c5d0e339
add validation logic for unlocking stakes 2022-06-20 18:38:27 +08:00
fanghr
edac5b6cf5
share stake check code among redeemers 2022-06-20 18:37:07 +08:00
Hongrui Fang
b60cae3516
remove upstreamed utils; fix compilation errors 2022-06-17 21:16:29 +08:00
Seungheon Oh
c98f39c6aa
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
ad9da8e6b3 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
8e71ecbdfd add and fix haddock doc comments 2022-06-02 16:28:14 +02:00
fanghr
5326b4cb81
fix winner outcome selection logic and timing 2022-05-30 23:54:51 +08:00
fanghr
039fa36620
implement logic to advance proposals 2022-05-30 23:54:48 +08:00
fanghr
b01b48497c
add pwinner to find the winning outcome 2022-05-30 23:54:03 +08:00
Seungheon Oh
20e4f56e10
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
d7a235f010
CI using deploy keys of plutarch-*
Simplified workflow using `strategy.matrix`
2022-05-27 13:54:33 -05:00
Seungheon Oh
55defea912
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
ff4eb9cf27
make 'PProposalTime' scott-encoded 2022-05-25 21:36:56 +08:00
fanghr
a85b066a05
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
355f838417
calculate the starting time of a proposal upon creation 2022-05-25 20:08:45 +08:00
fanghr
d9732fe814
add createProposalStartingTime to compute the starting time of proposals 2022-05-25 20:08:44 +08:00
fanghr
fbe3edc45a
store proposal timing conf in the governor datum 2022-05-25 20:08:39 +08:00
方泓睿
0885f2bdfa
Merge branch 'main' into connor/#87 2022-05-25 18:42:50 +08:00
fanghr
297ccc91d9
use nested pmatches instead of laziness 2022-05-24 21:48:32 +08:00
方泓睿
4bffc1005d
Merge branch 'main' into connor/mutate-governor 2022-05-24 12:38:46 +08:00
fanghr
fce27a2e3c
fix a typo 2022-05-24 01:27:04 +08:00
fanghr
ab12406f3d
remove anyOutput 2022-05-23 23:18:18 +08:00
fanghr
75c236db01
remove allOutputs 2022-05-23 18:20:49 +08:00
fanghr
02bf6f49cc
remove anyInput 2022-05-23 18:11:32 +08:00
Emily Martins
effbcd1d6b add remaining scripts, export to json file, fix compile 2022-05-20 18:24:53 +02:00
Emily Martins
1ba5722409 init agora-scripts for generating ScriptInfo for CTL 2022-05-20 18:24:53 +02:00
fanghr
db92986c6d
pull own output filtering out of the pmatch block 2022-05-20 21:51:03 +08:00