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

Show NST/ERC1948 tokens on the Bridge UI #214

Closed
5 tasks
troggy opened this issue May 22, 2019 · 21 comments · Fixed by #231
Closed
5 tasks

Show NST/ERC1948 tokens on the Bridge UI #214

troggy opened this issue May 22, 2019 · 21 comments · Fixed by #231
Labels
bounty size-XS effort of ~3h

Comments

@troggy
Copy link
Member

troggy commented May 22, 2019

Context:
All the tokens registered with the Leap Network receive a "color", a number from 0 — 655326 space. This color is being used in transactions to designate the token used by the transaction. The color space is split between tokens of different types like this:

  • [0 ... 32768] — ERC20 tokens
  • [32769 ... 49152] — NFT/ERC721
  • [49153 ... 65536] — NST/ERC1948

Bridge UI shows the tokens registered on the network by reading them from contract. To get them, it checks if the color is taken by querying them one by one starting from the left boundary of the color space (e.g. 32769 for NFTs):

// load new tokens for ERC20 and ERC721 color ranges
const tokens = Promise.all([
...this.loadTokenColorRange(
this.erc20TokenCount,
erc20TokenCount - 1
),
...this.loadTokenColorRange(
NFT_COLOR_BASE + this.nftTokenCount,
NFT_COLOR_BASE + nftTokenCount - 1
),
]);

Problem:
Reading NST color space from the contract is not implemented. So even if you register an NST it won't be visible on bridge UI.

To do:

  • Make NSTs should be visible on a Register token page
  • Make token page in Explorer work for NST
  • Do not show NSTs on a wallet page. They are not meant to be transferred manually

Optional (extra tips if any of these is complete as well):

  • Explorer: NST transactions should be displayed correctly
  • something else which makes sense in the context of the issue

Environment for test:
As of now, there is an NST token registered with a testnet, which is not visible on Bridge UI. To run the bridge UI with this network use CONFIG=testnet yarn start.

@troggy troggy added bounty size-XS effort of ~3h labels May 23, 2019
@troggy troggy changed the title support NST/ERC1948 Show NST/ERC1948 tokens on the Bridge UI May 23, 2019
@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 150.0 DAI (150.0 USD @ $1.0/DAI) attached to it as part of the LeapDAO fund.

@gitcoinbot
Copy link

gitcoinbot commented May 23, 2019

Issue Status: 1. Open 2. Cancelled


Workers have applied to start work.

These users each claimed they can complete the work by 2 years, 8 months ago.
Please review their action plans below:

1) iamonuwa has applied to start work (Funders only: approve worker | reject worker).

Spending my weekend on this task. ETA is before Sunday

Learn more on the Gitcoin Issue Details page.

@pbteja1998
Copy link

@troggy is this issue still available?

@troggy
Copy link
Member Author

troggy commented May 26, 2019

@pbteja1998 Gitcoin seemed to have some issues with this bounty — it appeared that I could only approve iamonuwa or travisdmathis, but not the other two people including you, unfortunately. I've posted at issue for Gitcoin here (gitcoinco/web#4486).

I will post more bounties next week, you are very welcome to apply 🙏

@troggy
Copy link
Member Author

troggy commented May 26, 2019

@pbteja1998 if you are interested to get involved in LeapDAO community, please join our Slack: https://docs.google.com/forms/d/e/1FAIpQLSd8_wDGDAi__HvfYEWNK_bvJzIkxwHHRVL6AFEfJewBd2Vn9A/viewform

We are interested in attracting long term contributors and have much more work to do, though we are posting only easier things to Gitcoin.

@pbteja1998
Copy link

@troggy I have joined the slack. Can you tell me which channels should I join specifically?

@pbteja1998
Copy link

Should I stop work in gitcoin for this issue?

@pbteja1998
Copy link

@troggy I am having problems with setting up the project. I am getting No Connection to Leap Node after starting.

Screenshot from 2019-05-27 14-09-50

Is there something else that needs to be configured?

@troggy
Copy link
Member Author

troggy commented May 27, 2019

Should I stop work in gitcoin for this issue?

@pbteja1998 yes, please. Unless @travisdmathis isn't changed his mind to work on this issue

@pbteja1998
Copy link

Ok, I have stopped work on gitcoin.

@troggy I have joined the slack. Can you tell me which channels should I join specifically?

What about this?

@troggy
Copy link
Member Author

troggy commented May 27, 2019

@pbteja1998 you can start with #new_contributors or jump in #20_d_for_development right away. Please reach out to @kohola on Slack if you ever feel lost — we are trying to stay organized, but it may still be confusing 🙏

@travisdmathis
Copy link

@troggy i'm happy to take care of it for you, just approve it on gitcoin and i'll take it over.

@troggy
Copy link
Member Author

troggy commented May 28, 2019

@travisdmathis should be already approved. Can you double check?

@travisdmathis
Copy link

travisdmathis commented May 28, 2019 via email

@gitcoinbot
Copy link

@travisdmathis Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

  • reminder (3 days)
  • escalation to mods (6 days)

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

@troggy
Copy link
Member Author

troggy commented May 31, 2019

@travisdmathis I've registered NST on testnet. Token address: 0x26a937302cc6A0A7334B210de06136C8C61BA885

UPD: well, hasn't been really registered. Investigating..

UPD2: it's in the bridge. Color 49153. So can be used for the purposes on this issue. Good luck

@troggy
Copy link
Member Author

troggy commented Jun 6, 2019

@travisdmathis What's the status? Please submit WIP PR (at least) before Friday end of the day. Otherwise I will have to withdraw this one from you

@troggy
Copy link
Member Author

troggy commented Jun 12, 2019

Hey @pbteja1998. Still interested in this bounty? It is available now — apply on Gitcoin

@troggy
Copy link
Member Author

troggy commented Jun 21, 2019

@ericramos1980 👋Are you still interested? If so, please apply again (due to issue with Gitcoin your application is no active anymore)

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Cancelled


The funding of 150.0 DAI (150.0 USD @ $1.0/DAI) attached to this issue has been cancelled by the bounty submitter

1 similar comment
@gitcoinbot
Copy link

Issue Status: 1. Open 2. Cancelled


The funding of 150.0 DAI (150.0 USD @ $1.0/DAI) attached to this issue has been cancelled by the bounty submitter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty size-XS effort of ~3h
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants