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

Source Code Verification and Interaction with Published Packages and Components #1841

Open
mshakeg opened this issue Jun 27, 2024 · 0 comments

Comments

@mshakeg
Copy link

mshakeg commented Jun 27, 2024

Summary:

I would like to request a set of features for the Radix Dashboard and the Scrypto CLI that would enhance the usability and transparency of published Scrypto packages and their instantiated components. These features would provide similar functionality to Etherscan's contract verification and interaction capabilities. For example, see the UniswapV3Factory on Etherscan

Features:

  1. Source Code Verification for Published Packages:

    • Allow developers to verify the source code of Scrypto packages that have been published to the Radix network.
    • Include a verify command in the scrypto/resim CLI that uploads the source code and metadata to the Radix Dashboard backend. The backend then compiles the source code and checks for a match of this bytecode with the deployed bytecode.
    • Add a --verify flag to resim publish which if specified will verify the package after it is successfully published.
    • Display the verified source code on the Radix Dashboard when navigating to the package or components instantiated from blueprints in that package.
  2. Viewing and Interacting with Blueprints and Components:

    • Provide a user interface on the Radix Dashboard for interacting with published packages and their blueprints.
    • Include tabs similar to Etherscan's Read and Write tabs, which allow users to:
      • View and call read-only (view) methods on blueprints and components.
      • Call stateful (write) methods on blueprints and components which would require their wallet to be connected.
    • Allow users to navigate to components instantiated from blueprints and interact with component methods directly from the dashboard similar to interactions of the Read and Write interactions on the blueprint.

Benefits:

  • Enhances transparency and trust in the Radix ecosystem by allowing users to verify the source code of published packages.
  • Improves usability by providing a straightforward way to interact with Scrypto packages and components.
  • Encourages adoption by offering familiar features to those used to working with platforms like Ethereum.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant