Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add token name in ListMyOrder command #31

Open
greenhat opened this issue Jan 26, 2020 · 2 comments
Open

Add token name in ListMyOrder command #31

greenhat opened this issue Jan 26, 2020 · 2 comments

Comments

@greenhat
Copy link
Member

greenhat commented Jan 26, 2020

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:
ergoplatform/ergo#897
ergoplatform/ergo#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.
2. Find the tx where this box was spent.
3. In the found tx find output box with our token id.

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

@aslesarenko
Copy link
Member

@greenhat
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants