Blockstream / Blockstream/simplicity-dex
Extend `./simplicity-dex positions` command
- Dominant language
- Rust
- Stars
- 4
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the feature
```bash
./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 ` - to view a detailed review of the options contract arguments
* `./simplicity-dex positions swap -i ` - to view a detailed review of the swap contract arguments
Contributor guide
Assessment
This issue has not been assessed yet.