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

erc 721 coin instance page #2642

Merged
merged 73 commits into from
Oct 4, 2019
Merged

erc 721 coin instance page #2642

merged 73 commits into from
Oct 4, 2019

Conversation

ayrat555
Copy link
Contributor

@ayrat555 ayrat555 commented Aug 28, 2019

resolves #2541

ERC721 token instance pages can be accessed from the token inventory tab

Changelog

  • erc 721 coin instance page

@coveralls
Copy link

coveralls commented Aug 28, 2019

Pull Request Test Coverage Report for Build e63d0b2c-aa50-411e-836f-6e08700aa9e4

  • 17 of 91 (18.68%) changed or added relevant lines in 11 files are covered.
  • 167 unchanged lines in 11 files lost coverage.
  • Overall coverage decreased (-0.8%) to 77.696%

Changes Missing Coverage Covered Lines Changed/Added Lines %
apps/block_scout_web/lib/block_scout_web/views/tokens/instance/metadata_view.ex 0 1 0.0%
apps/block_scout_web/lib/block_scout_web/controllers/tokens/instance_controller.ex 4 6 66.67%
apps/explorer/lib/explorer/chain.ex 10 13 76.92%
apps/explorer/lib/explorer/chain/token_transfer.ex 0 6 0.0%
apps/explorer/lib/explorer/token/instance_metadata_retriever.ex 0 7 0.0%
apps/block_scout_web/lib/block_scout_web/controllers/tokens/instance/metadata_controller.ex 0 9 0.0%
apps/indexer/lib/indexer/fetcher/token_instance.ex 0 13 0.0%
apps/block_scout_web/lib/block_scout_web/views/tokens/instance/overview_view.ex 0 15 0.0%
apps/block_scout_web/lib/block_scout_web/controllers/tokens/instance/transfer_controller.ex 0 18 0.0%
Files with Coverage Reduction New Missed Lines %
apps/explorer/lib/explorer/smart_contract/verifier.ex 1 97.3%
apps/block_scout_web/lib/block_scout_web/controllers/address_controller.ex 2 91.3%
apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex 2 92.86%
apps/indexer/lib/indexer/fetcher/pending_transaction.ex 3 74.07%
apps/explorer/lib/explorer/chain/import/runner/internal_transactions_indexed_at_blocks.ex 4 0.0%
apps/explorer/test/support/data_case.ex 4 80.0%
apps/indexer/lib/indexer/block/fetcher.ex 6 88.46%
apps/indexer/lib/indexer/fetcher/uncle_block.ex 8 78.85%
apps/explorer/lib/explorer/chain/import/runner/blocks.ex 9 89.57%
apps/indexer/lib/indexer/temporary/uncles_without_index.ex 26 0.0%
Totals Coverage Status
Change from base Build a0a45316-1fab-4446-94f8-3ea130747e7f: -0.8%
Covered Lines: 5274
Relevant Lines: 6788

💛 - Coveralls

Copy link
Contributor

@pasqu4le pasqu4le left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one suggestion

Copy link
Member

@vbaranov vbaranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ayrat555

  1. A user clicks to the id of NFT-token (from token transfer tile, token transfer summary or wherever else) - this requirement is not satisfied.
  2. There is no image of token loaded in the right box
  3. https://...:4000/tokens/10306360948590189/instance/0x5caebd3b32e210e85ce3e9d51638b9c445481567 - this is what is behind of QR-code in staging server. Obviously, this link doesn't open NFT-token instance page

Copy link
Member

@vbaranov vbaranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ayrat555 An error if to open ./metadata page for token instance, which has no metadata yet. Please handle it

2019-09-19T20:51:16.482 [error] #PID<0.2482.0> running BlockScoutWeb.Endpoint (connection #PID<0.2481.0>, stream id 1) terminated
Server: xxx
Request: GET /tokens/0x06012c8cf97bead5deae237070f9587f8e7a266d/instance/159293/metadata
** (exit) an exception was raised:
    ** (UndefinedFunctionError) function nil.metadata/0 is undefined
        nil.metadata()
        (block_scout_web) lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex:19: BlockScoutWeb.Tokens.Instance.MetadataView."index.html"/1
        (block_scout_web) lib/block_scout_web/templates/layout/app.html.eex:50: BlockScoutWeb.LayoutView."app.html"/1
        (phoenix) lib/phoenix/view.ex:399: Phoenix.View.render_to_iodata/3
        (phoenix) lib/phoenix/controller.ex:729: Phoenix.Controller.__put_render__/5
        (block_scout_web) lib/block_scout_web/endpoint.ex:1: BlockScoutWeb.Endpoint.instrument/4
        (phoenix) lib/phoenix/controller.ex:746: Phoenix.Controller.instrument_render_and_send/4
        (block_scout_web) lib/block_scout_web/controllers/tokens/instance/metadata_controller.ex:1: BlockScoutWeb.Tokens.Instance.MetadataController.action/2

@ayrat555
Copy link
Contributor Author

@vbaranov I fixed it

@vbaranov
Copy link
Member

@ayrat555 could you please fix merging conflicts?

@vbaranov vbaranov self-requested a review October 3, 2019 21:31
@vbaranov vbaranov merged commit 0955b10 into master Oct 4, 2019
@vbaranov vbaranov deleted the ab-erc-721-coin-instance-page branch October 4, 2019 09:32
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

Successfully merging this pull request may close these issues.

ERC-721 token instance page
5 participants