GithubHelp home page GithubHelp logo

hirosystems / explorer Goto Github PK

View Code? Open in Web Editor NEW
136.0 21.0 103.0 15.02 MB

Explore transactions and accounts on the Stacks blockchain. Clone any contract and experiment in your browser with the Explorer sandbox.

Home Page: https://explorer.hiro.so/

License: MIT License

JavaScript 0.24% TypeScript 99.52% Dockerfile 0.09% MDX 0.06% Shell 0.01% CSS 0.08%
blockstack blockchain react nextjs styled-system web3 stacks-explorer stacks-blockchain emotion bitcoin stacking typescript hacktoberfest

explorer's Introduction

Stacks Explorer

An image of the Stacks Explorer

CI/CD codecov

Environment Status
Prod Prod App Status
Staging Staging App Status
Dev Dev App Status

Stacks Explorer

The Stacks Explorer is an observability tool that helps users, developers, miners, and investors understand the Stacks Blockchain. It's built with React, next.js and Chakra UI.

This README will guide you through the process of setting up and running the Stacks Explorer locally and how to contribute to the project.

Bugs and feature requests

If you encounter a bug or have a feature request for the Stacks Explorer, we encourage you to follow the steps below:

  1. Search for existing issues: Before submitting a new issue, please search existing and closed issues to check if a similar problem or feature request has already been reported.
  2. Open a new issue: If it hasn't been addressed, please open a new issue. Choose the appropriate issue template and provide as much detail as possible, including steps to reproduce the bug or a clear description of the requested feature.
  3. Evaluation SLA: Our team reads and evaluates all the issues and pull requests. We are avaliable Monday to Friday and we make a best effort to respond within 7 business days.

Please do not use the issue tracker for personal support requests or to ask for the status of a transaction. You'll find help at the #support Discord channel.

Contributing

Development of the Explorer happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving the Stacks Explorer.

Code of Conduct

Please read the Explorer's Code of conduct since we expect project participants to adhere to it.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes.

Community

Join our community and stay connected with the latest updates and discussions:

License

The Stacks Explorer is open source and released under the MIT License.

explorer's People

Contributors

agraebe avatar aulneau avatar beguene avatar bharat2913 avatar bluescion avatar charliec3 avatar chxash avatar deantchi avatar dependabot[bot] avatar diwakergupta avatar dragnoir avatar fbwoolf avatar friedger avatar harinirajan397 avatar harrybasra95 avatar he1dar avatar hstove avatar hugocaillard avatar kyranjamie avatar lakshmilavanyakasturi avatar leahjlou avatar obycode avatar oscarvelandia avatar raheemlawal avatar saralab avatar semantic-release-bot avatar shamim-io avatar timothycarambat avatar tuanphungcz avatar wileyj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

explorer's Issues

deserialize function summary data on contract call page

This is referring to contract-call​ transaction types right? If so, they are available. Here’s an example:

{"block_hash":"0x7e1122cbacb525d2d056513e1eb7581c0df846a05eb1cf3616b2bdea7e364b36","block_height":7,"tx_id":"0x02151c5bc5c873f13f991acee916aee7dfa12600d449ef8e40d2910fcfba79a2","tx_index":1,"tx_status":"success","tx_type":"contract_call","fee_rate":"123456","sender_address":"ST2ZRX0K27GW0SP3GJCEMHD95TQGJMKB7G9Y0X1MH","sponsored":false,"contract_call":{"contract_id":"ST2ZRX0K27GW0SP3GJCEMHD95TQGJMKB7G9Y0X1MH.hello-world-contract","function_name":"set-value","function_args":["0x020000000461736466","0x02000000087479747974797479"]},"events":[]}

​​Note: the args are Clarity values — these can be deserialized into the type name and value.

Events section typing

Currently the events section is only using static data. This needs correct typings and data.

Explorer Testing Placeholder

Began reviewing the staging explorer at https://explorer-silk.now.sh/

Currently there is an issue where somethings don't work because of https mixed content. Functionality is limited but I can connect to API http://crashy-stacky.zone117x.com/tx and return info for some of the tx_id but no other data points.

The URL below returns valid data
https://explorer-silk.now.sh/txid/0xeaf47b0d9b4a7439ff46943ac313637e3484c2393729da49fceac0d04d4d1ce0

@kyranjamie will let me know when the explorer is functional and ready for test.

Row component updates

The row component takes data from an object and renders it as such:

Screen Shot 2020-03-24 at 8 30 27 AM

We need to be able to pass in more complex things to render, such as what is found within this screenshot from figma:

Screen Shot 2020-03-24 at 8 31 09 AM

  • Custom labels
    • Pass icons/colors/props
  • render children in a similar row style/indented rows

Contact source section

Screen Shot 2020-03-24 at 8 45 07 AM

I am not positive about this functionality (hover to see stx fees). I'd wait on implementation of this. It's also blocked currently.

[design] Search bar error states / helper

The input validates either a tx_id, which would be a hash -> https://github.com/blockstack/explorer/blob/86074e982e00f075cecea175c370834915d8fa7f/src/common/utils.ts#L50 or a contract name -> https://github.com/blockstack/explorer/blob/86074e982e00f075cecea175c370834915d8fa7f/src/common/utils.ts#L55.

We need an error state to display which one is invalid, and some helpful information for using the search. How would a user know to search for a contract name or tx_id?

Also, with the recently viewed component living below the search bar, the typical location of below the input for errors won't work as well.

Screen Shot 2020-04-20 at 8 16 02 AM

Meta card mobile view

Currently the content is centered on mobile. Figma reflects they should be left justified:
Screen Shot 2020-03-24 at 8 46 16 AM

Token transfer component updates

We need to determine the shape of the data that will populate this component:
Screen Shot 2020-03-24 at 8 47 19 AM

Additionally we need to make the show more functionality work:

  • show actual number of not visible rows
  • do we show them all on click? or show a smaller amount and require multiple clicks?

TransactionDetails transforms

Depending on the type of transaction, the top section displays different labels for the same key:

Screen Shot 2020-04-07 at 8 45 15 AM
Screen Shot 2020-04-07 at 8 45 21 AM
Screen Shot 2020-04-07 at 8 45 27 AM
Screen Shot 2020-04-07 at 8 45 32 AM
Screen Shot 2020-04-07 at 8 45 37 AM

Right now it's only set up to display one variation of the data, we need to model out an example of each TX and have the page display it correctly.

How will images of smart contracts work?

This is an open question: How will the images for smart contracts function? where are they hosted, how does one associate an image with a smart contract? Do we want to enforce any boundaries/rules?

cc @zone117x

Deserialize smart_contract_log data for events section

image

image

​​This is the event_type: smart_contract_log​ data from the above JSON screenshot. topic​ is the event name, value​ is the Clarity event value. It can be deserialized using the stacks-transctions lib which will also give you the type, see this function https://github.com/blockstack/stacks-transactions-js/blob/8e8530aba67db7c770e7a6b8bc28864359ff89a6/src/clarity/deserialize.ts#L21
​​
​​Also, I think at the moment the topic​ can only be "print"​.

Address links

Currently the designs show that you can click on an address. We don't have a page designed for addresses. Where will the link go to?

Screen Shot 2020-04-07 at 8 56 51 AM

cc @jasperjansz @zone117x

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.