Commit graph

747 commits

Author SHA1 Message Date
Seungheon Oh
8017b0df17 Deprecate Github CI; using Hydra instead 2022-07-14 11:21:31 -05:00
Emily
415fd40135
Merge pull request #143 from Liqwid-Labs/emiflake/trivial-scripts
Trivial script exporting (+changelog update)
2022-07-13 18:32:01 +02:00
Emily Martins
731011d084 add unreleased section to CHANGELOG.md 2022-07-13 17:56:16 +02:00
Emily Martins
d3db5552ff add trivial scripts to export 2022-07-13 17:56:16 +02:00
Emily
9f2066d138
Merge pull request #142 from Liqwid-Labs/connor/fix-proposal-creation
Fix proposal creation
2022-07-13 11:34:40 +02:00
Hongrui Fang
a54a809a05
remove field names from ProposalLock
so that ps-bridge works correctly
2022-07-13 16:58:13 +08:00
Hongrui Fang
77894c0228
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
4b3003fdc8
add missing module headers 2022-07-11 23:47:34 +08:00
Hongrui Fang
f0d0188812
add new tests for creating proposals 2022-07-11 23:47:29 +08:00
Hongrui Fang
0495d27f86
refactor and add more tests for unlocking stakes 2022-07-11 23:10:21 +08:00
Hongrui Fang
1865c5cf38
fix existing tests 2022-07-11 23:10:19 +08:00
Hongrui Fang
96a50419d1
implement new stake locking mechanism 2022-07-11 19:45:51 +08:00
方泓睿
79563c8d64
Merge pull request #136 from Liqwid-Labs/connor/draft-phrase 2022-07-06 22:20:35 +08:00
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
Hongrui Fang
a293f7acc3
enable -Wunused-do-bind 2022-07-02 21:03:41 +08:00
Emily
f643024665
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
9ef0e6e87c add Discord link to README 2022-06-30 18:06:46 +02:00
Emily
9fce93829b
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
835e04e049 use plutarch-script-export library 2022-06-30 16:52:23 +02:00
方泓睿
1533da68ec
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
cd4179d854
update Makefile 2022-06-29 19:16:02 +08:00
Hongrui Fang
6d27bf0270
encode ProposalThresholds/ProposalTimingConfig normally 2022-06-29 19:12:30 +08:00
Emily
d317a8850c
Merge pull request #129 from Liqwid-Labs/emiflake/scripts-api
Scripts HTTP API
2022-06-29 12:25:01 +02:00
Emily Martins
a2f849441f add agora-scripts explainer in README.md 2022-06-29 11:36:13 +02:00
Emily Martins
be1fd594b6 update command line options 2022-06-29 10:44:33 +02:00
Emily Martins
8ce030cf24 use Capture to make API more neat, update bench 2022-06-28 21:17:44 +02:00
Emily Martins
6a7e8369fd add better server error messages, cbor vs raw hex 2022-06-28 21:13:56 +02:00
Emily Martins
a5765a355d 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
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
Emily Martins
e862de7e59 create initial POC script generating API 2022-06-28 21:13:56 +02:00
Emily Martins
564b1c4e66 init servant-based API for script exporting 2022-06-28 21:13:56 +02:00
Emily
bd790fa622
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
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
Hongrui Fang
e86ae1246a
bump liqwid-plutarch-extra 2022-06-28 22:41:05 +08:00
Seungheon Oh
3a62b96248 Restore GH actions as Hydra fails 2022-06-28 09:06:30 -05:00
Emily
21825dc897
Merge pull request #135 from Liqwid-Labs/emiflake/backport-134
Backport #134
2022-06-28 12:43:18 +02:00
Emily
1d11a29a50
Merge branch 'staging' into emiflake/backport-134 2022-06-28 12:42:51 +02:00
方泓睿
87b1094272
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
9852d2791a
fix broken test cases 2022-06-28 18:31:54 +08: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
Seungheon Oh
01e4222026 Hydra 2022-06-27 14:57:14 -05:00
Seungheon Oh
c1e0e01d6c Hydra 2022-06-27 14:46:02 -05:00