Hongrui Fang
f9ddda4cc0
check the amount of cosigners while cosigning
2022-07-19 22:48:01 +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
79eb0772c3
add new tests for creating proposals
2022-07-11 23:47:29 +08:00
Hongrui Fang
5eee3127b2
refactor and add more tests for unlocking stakes
2022-07-11 23:10:21 +08:00
Hongrui Fang
b76b5c6ec6
fix existing tests
2022-07-11 23:10:19 +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
Hongrui Fang
ce7d5d2214
encode ProposalThresholds/ProposalTimingConfig normally
2022-06-29 19:12:30 +08: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
Hongrui Fang
5ce76885fc
fix broken test cases
2022-06-28 18:31:54 +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
Emily Martins
0f48870f89
update bench.csv
2022-06-22 21:57:26 +02:00
Hongrui Fang
ff4f6aadb4
use LF as record separator in bench.csv
2022-06-22 00:14:37 +08:00
Hongrui Fang
fb061de36b
use PCB to simplify samples
2022-06-20 21:19:38 +08:00
Hongrui Fang
dd2fae059f
forgot to remove some upstreamed utils for some reason :)
2022-06-20 18:55:44 +08:00
Hongrui Fang
36a558bf30
allow multiple proposals in the samples of unlocking stake
2022-06-20 18:54:44 +08:00
fanghr
76a9cf79ba
apply Emily's suggestions
2022-06-20 18:45:56 +08:00
fanghr
8f9d9521c2
add samples and tests for unlocking stakes
2022-06-20 18:45:05 +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
Seungheon Oh
e037f3f5f0
Moved samples to PCB
...
* Cleaner imports
2022-06-17 12:35:33 -05:00
Hongrui Fang
adcf6e6347
update benchmark
2022-06-17 21:17:49 +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
fanghr
4c97341acf
fix winner outcome selection logic and timing
2022-05-30 23:54:51 +08:00
fanghr
042c18a382
add tests and samples of advancing proposals
2022-05-30 23:54:51 +08:00
fanghr
9e8424b458
implement logic to advance proposals
2022-05-30 23:54:48 +08: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
Seungheon Oh
cd9325a688
bench update
2022-05-26 09:53:41 -05:00
Seungheon Oh
12cec802a0
pretty print
2022-05-26 09:50:47 -05:00
Seungheon Oh
29dc10bf36
CSV would be better than JSON
2022-05-26 09:50:46 -05:00
Emily Martins
81927ad9ff
make hlint happy
2022-03-08 15:16:24 +01:00
Emily Martins
e4d1fdfbed
make hlint happy
2022-02-25 14:43:28 +01:00
Emily Martins
87af9ffcb9
add burning support to stake policy
2022-02-21 19:05:51 +01:00
Emily Martins
552c6c8a00
add missing asserts to Stake policy
2022-02-18 23:11:43 +01:00
Emily Martins
c6e7d15652
Merge branch 'master' into emiflake/stake
2022-02-18 21:26:51 +01:00
Jack Hodgkinson
e1fe9c6514
restored bench.csv
2022-02-16 16:10:28 +00:00
Emily Martins
412a59d4f3
remove bench.csv, add to .gitignore
2022-02-16 16:49:44 +01:00
Emily Martins
6aa594f6ca
Merge branch 'master' into emiflake/bench
2022-02-16 15:20:32 +01:00
Emily Martins
4c6d9d1ab1
add benchmarking stub using plutus-benchmark
2022-02-09 18:39:13 +01:00