ergoplatform / ergo-tool

A Command Line Interface for Ergo blockchain
MIT License
5 stars 4 forks source link

Add token name in ListMyOrder command #31

Open greenhat opened 4 years ago

greenhat commented 4 years ago

Ref #28

  1. Show token name in the orders list.
  2. Add an optional token name parameter and use it as a filter for the orders list, showing only orders for the given token.

~When https://github.com/ergoplatform/eips/blob/master/eip-0001.md is implemented in: https://github.com/ergoplatform/ergo/pull/897 https://github.com/ergoplatform/ergo/pull/949 We can search for a box that issued the token that holds a token with the given id and R4 holds the name of the token (according to https://github.com/ergoplatform/eips/blob/master/eip-0004.md )~

~EDIT. Until then we do what coinbarn does - https://github.com/coinbarn/ergo-ts/blob/80551350e882585f7c24ce642e9bc750badc76a3/src/explorer.ts#L64~ ~1. Find the input box with id == token id.

  1. Find the tx where this box was spent.
  2. In the found tx find output box with our token id.~

Should be implemented with new backend API call - ergoplatform/explorer-backend#3

aslesarenko commented 4 years ago

https://github.com/ergoplatform/explorer-back/issues/232

greenhat commented 4 years ago

Should be implemented with new backend API call - https://github.com/ergoplatform/explorer-backend/issues/3