Extend `./simplicity-dex positions` command

Open
#39 4 comments 0 reactions 1 assignee View on GitHub

@zahorodnyi is already working on this.

Since Jan 12, 2026.

Assessment

This issue has not been assessed yet.

Description

Describe the feature
./simplicity-dex positions
Your Positions:
===============

Option Contract Locked Assets:
------------------------------
  #   | Locked Assets      | Settlement     | Expires            | Contract
--------------------------------------------------------------------------------
  1   | 100000 LBTC        | (7198165d)...  | [SOON] in 2 hours  | tex1p6257...

Your Option/Grantor Tokens:
---------------------------
  #   | Type     | Amount     | Strike/Token   | Expires            | Contract
------------------------------------------------------------------------------------------
  1   | option_token | 100        | 12 (7198165d)... | [SOON] in 2 hours  | tex1p6257...
  2   | grantor_token | 100        | 12 (7198165d)... | [SOON] in 2 hours  | tex1p6257...

Pending Swaps:
--------------
  (No tokens found)

Contract History:
-----------------

  Option Contract tex1p6257...:
    - option_created @ 5 minutes ago (tx: 45ad237536bc...)
    - option_funded @ 5 minutes ago (tx: 0f6549940d18...)

This issue is created for the extension of the dex positions command. After the refactor, I can't understand what kind of parameters are assigned to positions.

Maybe we can add such extensions:

  • ./simplicity-dex positions all - to list all available positions (as it is currently used)
  • ./simplicity-dex positions options -i <optional or mandatory index> - to view a detailed review of the options contract arguments
  • ./simplicity-dex positions swap -i <optional or mandatory index> - to view a detailed review of the swap contract arguments
Dominant language
Rust
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Blockstream/simplicity-dex

All issues in Blockstream/simplicity-dex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.