Hongrui Fang
a462e6a3d3
implement cooldown period for stake unlocking
2022-11-21 18:04:35 +08:00
Hongrui Fang
ce98183237
remove redundant imports
2022-11-16 12:36:30 +08:00
Hongrui Fang
f9a1e3b87f
improve doc string and naming as suggested by auditors
2022-11-16 12:36:25 +08:00
Hongrui Fang
ec9f6d3425
tag assetclasses and currency symbols
2022-11-16 12:36:20 +08:00
Hongrui Fang
6da4e7286d
fix compilation errors
2022-11-11 23:34:55 +08:00
Hongrui Fang
5dca43f08d
add presolveStakeInputDatum
2022-10-31 21:32:04 +08:00
Hongrui Fang
f1166adc82
use lpe's AssetClass; fix errors
2022-10-25 18:46:42 +08:00
Seungheon Oh
2853f43475
PStakeRedeemerHandler doesn't have to be closed
2022-10-18 21:28:11 -05:00
Hongrui Fang
851bc8fc8d
fix docstrings
2022-10-07 10:23:07 +08:00
Hongrui Fang
fbbb9c9842
place a lock on the stake while cosigning
2022-10-06 20:52:23 +08:00
Hongrui Fang
b840380a91
fix documentation
2022-10-03 19:14:07 +08:00
Hongrui Fang
17dec87c9e
allow voting/retracting votes with multiple stakes
2022-10-03 17:20:36 +08:00
Hongrui Fang
b7a7d6c505
check stake locks in stake validator
2022-09-30 08:17:32 +08:00
Hongrui Fang
dd05ab45ca
allow spending more than one stakes in one tx
2022-09-30 08:17:31 +08:00
adamczykm
5ebdc04498
Bump LPE and update use sites.
2022-09-26 13:18:59 +02:00
emiflake
ef837d1b4d
apply suggestions
2022-09-18 00:15:05 +02:00
Emily Martins
e3eab7de7e
add NoFieldSelectors flag globally
2022-09-17 15:18:01 +02:00
Hongrui Fang
01cacc9721
standalone stake redeemers
2022-09-13 22:21:18 +08:00
Hongrui Fang
4d49a17531
apply review suggestions
2022-09-13 20:24:32 +08:00
Hongrui Fang
131fab271f
derive list encoded types with PlutusTypeDataList
2022-09-13 20:24:28 +08:00
Hongrui Fang
57082eb106
witnessing stakes in reference inputs
2022-09-13 20:24:27 +08:00
Emily Martins
fe39eea726
add kind signatures to all agora decls
2022-08-24 17:08:19 +02:00
Emily Martins
255c38db67
explicit imports for core agora modules
2022-08-18 16:52:53 +02:00
Hongrui Fang
cb45b5255b
use utils from LPE
2022-08-18 00:20:25 +08:00
Hongrui Fang
548cd8c2eb
clean up import/export lists
2022-08-18 00:20:24 +08:00
Emily Martins
44f3ddf00d
use Credential instead of PubKeyHash everywhere
2022-08-17 11:00:24 +02:00
Hongrui Fang
b7902c0cf8
use v2 types
2022-08-15 21:41:31 +08:00
Hongrui Fang
651b7ef631
remove unused SOP.Generic derivations
2022-08-12 05:01:35 +08:00
Hongrui Fang
91f7118ec3
parameterize scripts over AgoraScripts
2022-08-12 05:01:34 +08:00
Hongrui Fang
f248dbab49
fix compilation errors
2022-08-12 04:56:19 +08:00
Hongrui Fang
2d6e8b4c4e
allow delegating stake for voting
2022-07-26 22:37:35 +08:00
Hongrui Fang
c450e1252d
add tests for GAT minting
...
no more propsoal T_T
2022-07-21 22:29:18 +08:00
Hongrui Fang
3ec1645f5a
utilize pletAll wherever make sense
2022-07-19 22:48:02 +08:00
Hongrui Fang
b6fb23975c
improve performance of the governor validator
2022-07-19 22:48:02 +08: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
96a50419d1
implement new stake locking mechanism
2022-07-11 19:45:51 +08:00
Hongrui Fang
95410ce254
partially fix cosigning logic; improve performance
2022-07-02 21:03:41 +08:00
Hongrui Fang
4d7e323e01
efficiently encode proposal datum on chain
2022-06-28 22:41:06 +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
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
fanghr
a1c5d0e339
add validation logic for unlocking stakes
2022-06-20 18:38:27 +08:00
Hongrui Fang
b60cae3516
remove upstreamed utils; fix compilation errors
2022-06-17 21:16:29 +08: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
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
11743e0aac
PEq instances for a bunch of on-chain structures
2022-05-20 03:35:28 +08:00
fanghr
b363b326f3
add make ps_bridge subcommand
2022-05-13 20:23:10 +08:00
fanghr
538e809d2c
add all agora types
2022-05-13 20:03:17 +08:00