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
3c35e610a5
add missing module headers
2022-07-11 23:47:34 +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
5dee613dd4
implement new stake locking mechanism
2022-07-11 19:45:51 +08:00
方泓睿
0c61cbc5ed
Merge pull request #136 from Liqwid-Labs/connor/draft-phrase
2022-07-06 22:20:35 +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
a5a2d2313d
enable -Wunused-do-bind
2022-07-02 21:03:41 +08:00
Emily
6b7ff69988
Merge pull request #140 from Liqwid-Labs/emiflake/add-support-channel-info
...
add Discord link to README
2022-06-30 18:07:11 +02:00
Emily Martins
3dad67a46e
add Discord link to README
2022-06-30 18:06:46 +02:00
Emily
edbaeffa52
Merge pull request #139 from Liqwid-Labs/emiflake/use-pse
...
Use `plutarch-script-export` library
2022-06-30 18:01:58 +02:00
Emily Martins
afff408348
use plutarch-script-export library
2022-06-30 16:52:23 +02:00
方泓睿
9780409a30
Merge pull request #138 from Liqwid-Labs/connor/improve-script-size
...
Fix script size/performance regression introduced by `ProductIsData`
2022-06-29 19:21:31 +08:00
fanghr
fe6dc677bc
update Makefile
2022-06-29 19:16:02 +08:00
Hongrui Fang
ce7d5d2214
encode ProposalThresholds/ProposalTimingConfig normally
2022-06-29 19:12:30 +08:00
Emily
73fc473ca6
Merge pull request #129 from Liqwid-Labs/emiflake/scripts-api
...
Scripts HTTP API
2022-06-29 12:25:01 +02:00
Emily Martins
375759f164
add agora-scripts explainer in README.md
2022-06-29 11:36:13 +02:00
Emily Martins
519eed07b6
update command line options
2022-06-29 10:44:33 +02:00
Emily Martins
bc501f291c
use Capture to make API more neat, update bench
2022-06-28 21:17:44 +02:00
Emily Martins
910416f4ab
add better server error messages, cbor vs raw hex
2022-06-28 21:13:56 +02:00
Emily Martins
a7ed7989f1
restructure agora-scripts modules
...
In order to allow reusing this code in the future, I've made it so that
Agora-specific code all lives in `Main`, and everything else lives in
`ScriptExport` or other non-Agora modules.
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
Emily Martins
bea444f7d6
create initial POC script generating API
2022-06-28 21:13:56 +02:00
Emily Martins
33cb76079f
init servant-based API for script exporting
2022-06-28 21:13:56 +02:00
Emily
bbbb6ecc6b
Merge pull request #128 from Liqwid-Labs/connor/enum-opt
...
Optimize scripts using `Plutarch.Extra.IsData`
2022-06-28 21:10:11 +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
Hongrui Fang
6fe5e2b78a
bump liqwid-plutarch-extra
2022-06-28 22:41:05 +08:00
Seungheon Oh
dedcc0dcbc
Restore GH actions as Hydra fails
2022-06-28 09:06:30 -05:00
Emily
f01351f952
Merge pull request #135 from Liqwid-Labs/emiflake/backport-134
...
Backport #134
2022-06-28 12:43:18 +02:00
Emily
8f60a07faa
Merge branch 'staging' into emiflake/backport-134
2022-06-28 12:42:51 +02:00
方泓睿
567ee70eee
Merge pull request #134 from Liqwid-Labs/connor/hot-fix
...
Check the votes threshold while advancing from `VotingReady`to `Locked`
2022-06-28 18:38:19 +08:00
Hongrui Fang
5ce76885fc
fix broken test cases
2022-06-28 18:31:54 +08: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
Seungheon Oh
69db63185e
Hydra
2022-06-27 14:57:14 -05:00
Seungheon Oh
6fd20816a6
Hydra
2022-06-27 14:46:02 -05:00
Emily
74c82de189
Merge pull request #127 from Liqwid-Labs/connor/pletFieldsC
...
Replace all `tcont $ pletFields` with `pletFieldsC`
2022-06-23 14:10:25 +02: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
54cad6b915
Merge pull request #125 from Liqwid-Labs/staging
...
Release 0.1.0
2022-06-22 22:02:28 +02:00
Emily Martins
f048f9f5c0
remove agora-scripts.json file
2022-06-22 21:57:26 +02: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