Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
542e663
feat: hydra tokens
HinsonSIDAN Oct 24, 2025
24c46a9
feat: update hydra account balance
HinsonSIDAN Nov 2, 2025
49065fe
feat: refactor hydra open
HinsonSIDAN Nov 3, 2025
d812ec8
feat: hydra combine balance
HinsonSIDAN Nov 3, 2025
aa569c0
feat: hydra ab mint
HinsonSIDAN Nov 3, 2025
6fce75c
feat: hydra ab spend
HinsonSIDAN Nov 3, 2025
713b549
feat: internal transfer test
HinsonSIDAN Nov 3, 2025
d79a395
feat: hydra head close
HinsonSIDAN Nov 3, 2025
15bd877
feat: hydra withdrawal
HinsonSIDAN Nov 3, 2025
66d2981
feat: fix hydra withdrawal
HinsonSIDAN Nov 3, 2025
1b5857b
feat: cancel withdrawal
HinsonSIDAN Nov 3, 2025
ddd76ec
feat: withdrawal it
HinsonSIDAN Nov 3, 2025
55d87e0
feat: cancel withdrawal it
HinsonSIDAN Nov 3, 2025
efdf120
feat: refactor whho
HinsonSIDAN Nov 14, 2025
122224f
feat: refactor account balance without token
HinsonSIDAN Nov 14, 2025
374c730
feat: refactor hydra close
HinsonSIDAN Nov 14, 2025
207da0f
feat: refactor hydra account balance
HinsonSIDAN Nov 14, 2025
0c49580
feat: refactor hydra account balance
HinsonSIDAN Nov 14, 2025
2eb533d
feat: refactor account ops
HinsonSIDAN Nov 14, 2025
a6c4a69
feat: refactor account ops
HinsonSIDAN Nov 14, 2025
5b6465b
chore: utils
HinsonSIDAN Nov 14, 2025
cfbba41
feat: refactor process intent
HinsonSIDAN Nov 14, 2025
579ba97
chore: remove order auth token
HinsonSIDAN Nov 15, 2025
abf9fe7
spec: place order
HinsonSIDAN Nov 17, 2025
08787fe
feat: place order refactor
HinsonSIDAN Nov 17, 2025
9b33138
feat: update emergency cancel
HinsonSIDAN Nov 17, 2025
8f2d862
feat: update place order
HinsonSIDAN Nov 17, 2025
63ef8c4
feat: update merklized order datum format
HinsonSIDAN Nov 17, 2025
7fb8c98
feat: relocate mvalue utils
HinsonSIDAN Nov 18, 2025
315a36e
feat: relocate mvalue utils
HinsonSIDAN Nov 18, 2025
94f7dfb
feat: relocate mvalue utils
HinsonSIDAN Nov 18, 2025
56fe2f8
feat: update merkle order datum
HinsonSIDAN Nov 18, 2025
b0d0c18
fix: fix merkle at order
HinsonSIDAN Nov 18, 2025
d434869
feat: place order tests
HinsonSIDAN Nov 18, 2025
28fcf03
feat: refactor cancel order
HinsonSIDAN Nov 18, 2025
f649562
chore: cleanup import
HinsonSIDAN Nov 19, 2025
d42b712
feat: refactor hob process order
HinsonSIDAN Nov 19, 2025
310275b
feat: refactor withdrawal script pattern at hob
HinsonSIDAN Nov 19, 2025
b00e62e
fix: hab tests
HinsonSIDAN Nov 19, 2025
0969177
feat: refactor hbo cancel order
HinsonSIDAN Nov 19, 2025
2862db6
feat: hob cancel order
HinsonSIDAN Nov 19, 2025
74fdea2
feat: refactor hob
HinsonSIDAN Nov 19, 2025
0f82469
feat: modify order
HinsonSIDAN Nov 20, 2025
b8bd60b
fix: fix place and modify order
HinsonSIDAN Nov 21, 2025
95fa4fa
feat: fill order setup
HinsonSIDAN Nov 21, 2025
901ec40
fix: process order test case
HinsonSIDAN Nov 21, 2025
d9568ad
feat: refactor order_size
HinsonSIDAN Nov 21, 2025
5aad9f0
feat: fill order draft
HinsonSIDAN Nov 22, 2025
30656ab
chore: rename hydra_token_policy_id
HinsonSIDAN Nov 22, 2025
37fbc4f
feat: fill order refactoring
HinsonSIDAN Nov 22, 2025
207061c
chore: add fill order test plan
HinsonSIDAN Nov 22, 2025
78f048d
chore: rename
HinsonSIDAN Nov 23, 2025
ede27e3
chore: docs
HinsonSIDAN Nov 23, 2025
6cc68a4
feat: refactor user intent
HinsonSIDAN Nov 23, 2025
819767d
chore: tests update in orders
HinsonSIDAN Nov 23, 2025
ac0899d
feat: refactor hydra transfer
HinsonSIDAN Nov 23, 2025
a968d63
feat: hydra withdrawal
HinsonSIDAN Nov 23, 2025
f670834
feat: hydra withdrawal
HinsonSIDAN Nov 23, 2025
58d6e4d
feat: hydra withdrawal
HinsonSIDAN Nov 23, 2025
52d8f7c
feat: refactor dab
HinsonSIDAN Nov 23, 2025
7ffc9a9
feat: cancel withdrawal
HinsonSIDAN Nov 23, 2025
d2fb47e
feat: cancel withdrawal
HinsonSIDAN Nov 23, 2025
647e732
docs: rename
HinsonSIDAN Nov 23, 2025
381f58e
feat: same account transfer
HinsonSIDAN Nov 23, 2025
c49190b
chore: rename var
HinsonSIDAN Nov 23, 2025
c541375
feat: hydra head open
HinsonSIDAN Nov 23, 2025
d7fd190
feat: migrate hydra account
HinsonSIDAN Nov 23, 2025
adf7566
feat: reorg account ops
HinsonSIDAN Nov 23, 2025
b9b9b81
chore: rename test
HinsonSIDAN Nov 23, 2025
6ed430d
chore: rename tests
HinsonSIDAN Nov 23, 2025
76d05e3
chore: rename tests
HinsonSIDAN Nov 23, 2025
0d7867e
chore: update qa
HinsonSIDAN Nov 23, 2025
bda7490
chore: rename spot account to trade account
HinsonSIDAN Nov 23, 2025
32ceccd
feat: refactor account
HinsonSIDAN Nov 23, 2025
2937985
feat: refactor flexible account trading logic
HinsonSIDAN Nov 23, 2025
2c95338
feat: refactor pluggable intent
HinsonSIDAN Nov 24, 2025
8a09d8f
chore: rename util
HinsonSIDAN Nov 24, 2025
2b17bc7
feat: update intent system
HinsonSIDAN Nov 24, 2025
eae8512
feat: add community stop
HinsonSIDAN Nov 24, 2025
36235c4
feat: refactor app oracle
HinsonSIDAN Nov 24, 2025
5195a79
fix: mint token when cancel withdrawal
kenlau666 Nov 24, 2025
8d000b1
chore: blueprint
HinsonSIDAN Nov 24, 2025
6c6c4c6
fix: mint token when init and combine orderbook
kenlau666 Nov 24, 2025
539740f
feat: allow dynamic cancel order
HinsonSIDAN Nov 25, 2025
e89b849
feat: burn at combine order merkle
HinsonSIDAN Nov 25, 2025
38ee73b
feat: burn at combine order merkle
HinsonSIDAN Nov 25, 2025
de0ae07
feat: mint at split order merkle
HinsonSIDAN Nov 25, 2025
2a11227
feat: update account specs
HinsonSIDAN Nov 25, 2025
9744745
feat: fix fill order + test cases
HinsonSIDAN Nov 27, 2025
8ade874
feat: fill order test structure
HinsonSIDAN Nov 27, 2025
5c111a7
feat: mo simple test
kenlau666 Nov 27, 2025
379b181
feat: lo multiple test
kenlau666 Nov 27, 2025
cd1445d
feat: mo multiple test
kenlau666 Nov 27, 2025
83fdea8
feat: mo complex test
kenlau666 Nov 27, 2025
4621d0e
feat: mo edge test
kenlau666 Nov 27, 2025
b16b88c
feat: rename fill order naming convention
HinsonSIDAN Nov 29, 2025
b40c736
feat: add lo_simple tests
HinsonSIDAN Nov 30, 2025
408e689
feat: add lo_multiple tests
HinsonSIDAN Dec 1, 2025
49aebc1
chore: update test var
HinsonSIDAN Dec 1, 2025
0bde589
chore: update test var
HinsonSIDAN Dec 1, 2025
a1632f0
feat: fix remaining order calc
HinsonSIDAN Dec 1, 2025
af24214
feat: mo_simple_lq
HinsonSIDAN Dec 1, 2025
bdecb0e
feat: mo_simple_pq
HinsonSIDAN Dec 1, 2025
c38da76
fix: lo test formula
HinsonSIDAN Dec 2, 2025
923dd3a
fix: mo test formula
HinsonSIDAN Dec 2, 2025
d4c6e17
feat: mo_mlq
HinsonSIDAN Dec 2, 2025
44e92a9
feat: add mo_multiple_pq tests
HinsonSIDAN Dec 2, 2025
abae0f9
feat: add mo_edge tests
HinsonSIDAN Dec 2, 2025
7c34d43
feat: more mo tests
HinsonSIDAN Dec 2, 2025
6be258d
fix: fix typo in doc
HinsonSIDAN Dec 2, 2025
3bb35cd
chore: update doc
HinsonSIDAN Dec 3, 2025
f97563a
chore: fix db test case
HinsonSIDAN Dec 4, 2025
ac233b8
chore: update ob logics
HinsonSIDAN Dec 4, 2025
a76d852
chore: fix test case
HinsonSIDAN Dec 4, 2025
6a06215
chore: fix test case
HinsonSIDAN Dec 5, 2025
8cfa32b
chore: update test case
HinsonSIDAN Dec 5, 2025
cde8fea
fix: orv treatment
HinsonSIDAN Dec 6, 2025
3711770
feat: add edge test case
HinsonSIDAN Dec 6, 2025
83c605f
chore: fix edge test case
HinsonSIDAN Dec 6, 2025
bc4e116
chore: rename long short to base quote
HinsonSIDAN Dec 8, 2025
8c19748
chore: rename long short to base quote
HinsonSIDAN Dec 8, 2025
35f49cf
feat: refactor to isomorphic order datum
HinsonSIDAN Dec 8, 2025
fdac0f5
feat: remove hydra inital hash
kenlau666 Dec 10, 2025
a1206e4
docs: update script indices
HinsonSIDAN Dec 12, 2025
4757c87
docs: cleanup docs
HinsonSIDAN Dec 12, 2025
22a971a
docs: add action graphs
HinsonSIDAN Dec 12, 2025
690d5b3
chore: update it
HinsonSIDAN Dec 12, 2025
a5e7cb0
feat: add app vault stake rotation
HinsonSIDAN Dec 13, 2025
6775e14
feat: hydra tokens testg
HinsonSIDAN Dec 13, 2025
7235cf8
chore: update docs
HinsonSIDAN Dec 16, 2025
197a580
fix: handle zero payoff value
HinsonSIDAN Dec 17, 2025
49aa6e0
chore: script
HinsonSIDAN Dec 17, 2025
bc013db
chore: script
HinsonSIDAN Dec 17, 2025
c8d19d4
chore: update script
kenlau666 Dec 17, 2025
01aa303
Revert "chore: update script"
kenlau666 Dec 17, 2025
e3efd8b
feat: add guard for lo taker
HinsonSIDAN Dec 17, 2025
26fdb14
Merge branch 'feature/cnt-account-values' of https://github.com/delta…
HinsonSIDAN Dec 17, 2025
e3fb85f
feat: update tests
HinsonSIDAN Dec 17, 2025
81e40a9
feat: add migration logics
HinsonSIDAN Dec 17, 2025
24d9697
chore: script
HinsonSIDAN Dec 18, 2025
18ee8cc
feat: change authorized_account_value to l2
HinsonSIDAN Dec 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 0 additions & 91 deletions QA.md

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@

2. Internal - prepare account balance utxos

- Consume merkle tree, divide all account balance into single utxo at HydraAccountBalance
- Consume merkle tree, divide all account balance into single utxo at HydraAccount

3. Internal - process deposit (DexAccountBalance)

- Consume merkle tree, merge all account balance into utxo at HydraAccountBalance
- Consume merkle tree, merge all account balance into utxo at HydraAccount

4. Place order

Expand All @@ -70,7 +70,7 @@

9. Combine utxos for HydraOrderBook

10. Combine utxos for HydraAccountBalance
10. Combine utxos for HydraAccount

## Hydra

Expand Down
4 changes: 2 additions & 2 deletions aiken.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ source = "github"

[[requirements]]
name = "sidan-lab/vodka"
version = "0.1.13"
version = "0.1.22"
source = "github"

[[packages]]
Expand All @@ -30,7 +30,7 @@ source = "github"

[[packages]]
name = "sidan-lab/vodka"
version = "0.1.13"
version = "0.1.22"
requirements = []
source = "github"

Expand Down
4 changes: 2 additions & 2 deletions aiken.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "deltadefi-protocol/hydra-dex"
version = "0.0.0"
compiler = "v1.1.16"
compiler = "v1.1.17"
plutus = "v3"
license = "Apache-2.0"
description = "Aiken contracts for project 'deltadefi-protocol/hydra-dex'"
Expand All @@ -22,7 +22,7 @@ source = "github"

[[dependencies]]
name = "sidan-lab/vodka"
version = "0.1.13"
version = "0.1.22"
source = "github"

[config]
2 changes: 1 addition & 1 deletion build/packages/packages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ source = "github"

[[packages]]
name = "sidan-lab/vodka"
version = "0.1.13"
version = "0.1.22"
source = "github"
32 changes: 32 additions & 0 deletions build/packages/sidan-lab-vodka/.github/ISSUE_TEMPLATE/-bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: "[BUG]: Short description of the problem"
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Station (please complete the following information):**

- OS: [e.g. Windows, Ubuntu]
- Version [e.g. 10, 11, 22.02]

**Additional context**
Add any other context about the problem here.
16 changes: 16 additions & 0 deletions build/packages/sidan-lab-vodka/.github/ISSUE_TEMPLATE/-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: "[DOCS] Short description of the documentation issue"
about: Suggest documentation improvements
title: ""
labels: ""
assignees: ""
---

**Describe the issue with the documentation**
A clear and concise description of what the issue is.

**Suggest a solution**
Describe how the documentation can be improved or corrected.

**Additional context**
Add any other context, references, or screenshots that might help clarify the issue.
19 changes: 19 additions & 0 deletions build/packages/sidan-lab-vodka/.github/ISSUE_TEMPLATE/-feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: "[FEATURE] Short description of the feature"
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
75 changes: 15 additions & 60 deletions build/packages/sidan-lab-vodka/.github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Auto Release

on:
pull_request:
types:
- closed
branches:
- main
release:
types: [published]

jobs:
build:
Expand All @@ -20,61 +17,19 @@ jobs:
- run: aiken check -D
- run: aiken docs

check-version:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
outputs:
version-updated: ${{ steps.compare-versions.outputs.version-updated }}
version: ${{ steps.compare-versions.outputs.version }}
steps:
- name: Checkout main branch at commit before merge
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.sha }}

- name: Get package version from main branch before merge
id: pre-merge-version
run: |
PRE_MERGE_VERSION=$(grep -m 1 '^version = ' aiken.toml | sed 's/version = "\(.*\)"/\1/')
echo "pre_merge_version=$PRE_MERGE_VERSION" >> "$GITHUB_OUTPUT"

- name: Checkout main branch at commit after merge
uses: actions/checkout@v4
with:
ref: "main"

- name: Get package version from main branch after merge
id: post-merge-version
run: |
POST_MERGE_VERSION=$(grep -m 1 '^version = ' aiken.toml | sed 's/version = "\(.*\)"/\1/')
echo "post_merge_version=$POST_MERGE_VERSION" >> "$GITHUB_OUTPUT"

- name: Compare versions
id: compare-versions
run: |
if [[ "${{ steps.pre-merge-version.outputs.pre_merge_version }}" != "${{ steps.post-merge-version.outputs.post_merge_version }}" ]]; then
echo "version-updated=true" >> "$GITHUB_OUTPUT"
echo "version=${{ steps.post-merge-version.outputs.post_merge_version }}" >> "$GITHUB_OUTPUT"
else
echo "version-updated=false" >> "$GITHUB_OUTPUT"
fi

release:
needs: [build, check-version]
if: needs.check-version.outputs.version-updated == 'true'
github-releases-to-discord:
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Create a Release in a GitHub Action
uses: comnoco/[email protected]
- name: Checkout
uses: actions/checkout@v3
- name: Github Releases To Discord
uses: SethCohen/github-releases-to-discord@v1
with:
tag_name: ${{ needs.check-version.outputs.version }}
release_name: ${{ needs.check-version.outputs.version }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
webhook_url: ${{ secrets.WEBHOOK_URL }}
color: "2105893"
username: "vodka"
avatar_url: "https://raw.githubusercontent.com/sidan-lab/brand_assets/refs/heads/main/sidan_s_square.png"
content: "Hey fellow Cardano devs! New version of [vodka](https://github.com/sidan-lab/vodka) has been published:"
footer_title: "Changelog"
reduce_headings: true
6 changes: 3 additions & 3 deletions build/packages/sidan-lab-vodka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ Vodka is a library build for [Aiken](https://aiken-lang.org/) development. It of
Simply run

```sh
aiken add sidan-lab/vodka --version 0.1.13
aiken add sidan-lab/vodka --version 0.1.22
```

or putting the below in you `aiken.toml`

```toml
[[dependencies]]
name = "sidan-lab/vodka"
version = "0.1.13"
version = "0.1.22"
source = "github"
```

Expand All @@ -37,7 +37,7 @@ Vodka is now upgraded to support latest PlutusV3 with latest version, if you wan

| Vodka | Aiken Compiler | `aiken-lang/stdlib` |
| ---------- | -------------- | ------------------- |
| 0.1.13 | ^v1.1.9 | v2.2.0 |
| 0.1.22 | ^v1.1.9 | v2.2.0 |
| 0.1.6 | ^v1.1.5 | v2.1.0 |
| 0.0.1-beta | v1.0.29-alpha | v1.9.0 |

Expand Down
2 changes: 1 addition & 1 deletion build/packages/sidan-lab-vodka/aiken.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "sidan-lab/vodka"
version = "0.1.13"
version = "0.1.22"
compiler = "v1.1.9"
plutus = "v3"
license = "Apache-2.0"
Expand Down
Loading