Skip to content

Extend ./simplicity-dex positions command #39

@ikripaka

Description

@ikripaka

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions