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 desired block explorer urls #358

Merged
merged 18 commits into from
Feb 2, 2023
Merged

Conversation

ymekuria
Copy link
Collaborator

@ymekuria ymekuria commented Feb 1, 2023

Closes #357

This PR displays the developers desired blockchain explorer URL after sending a deploy transaction.

Approach

The desired blockchain explorer name is parsed from the Mina GraphQL API URL that the developer adds after entering the zk config command. A blockchain explorer URL with a transaction hash, is constructed and displayed in the zkapp-cli after sending a deploy transaction. This can be extended to support Mainnet and future blockchain explorers.

minascanDeploy

minaexplorerDeploy

The blockchain explorer name is also added to the displayed faucet URL as a query parameter after a developer enters the zk config command and adds a new Mina GraphQL API URL. The explorer name query parameter can be used in the faucet to display the desired block explorer transaction URL after an account is funded.

minascanFaucet

Testing

This was tested by generating new projects and deploying them with the two currently available Mina GraphQL API URLs.

@ymekuria ymekuria requested review from mitschabaude and jasongitmail and removed request for mitschabaude February 1, 2023 18:59
Copy link
Contributor

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

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

Nice!

src/lib/deploy.js Outdated Show resolved Hide resolved
src/lib/deploy.js Outdated Show resolved Hide resolved
src/lib/deploy.js Outdated Show resolved Hide resolved
src/lib/deploy.js Outdated Show resolved Hide resolved
@jasongitmail
Copy link
Contributor

Left comments, but looks great!

@ymekuria ymekuria merged commit 006aa76 into main Feb 2, 2023
@ymekuria ymekuria deleted the feature/show-block-explorer-url branch February 2, 2023 12:07
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.

Show desired blockchain explorer URL after sending a deploy tx
3 participants