Git Product home page Git Product logo

tenderly-snap's Introduction

Tenderly Snap

Made from @metamask/template-snap-monorepo

About

This project combines power of Tenderly simulation with MetaMask Snaps for improved transparency of dApp contract calls.

Before transaction confirmation user is provided with:

  • Native-asset balance changes
  • Output value
  • Storage changes
  • Event logs
  • Call traces
  • Link to simulation in Tenderly Dashboard

tenderly-snap-screenshot

Metamask Snap

MetaMask Snaps are plugins that enhance MetaMask's capabilities, allowing for customized interactions with various blockchain assets and applications. The purpose of the Snaps system is to extend the functionality of MetaMask, allowing developers to create custom plugins that can interact with various blockchain networks, assets, and decentralized applications (dApps).

Tenderly simulator API

The Tenderly Simulator is a powerful tool designed to help Ethereum developers test and debug smart contract transactions. It provides a sandboxed environment where developers can simulate transactions, evaluate gas usage, and perform step-by-step execution tracing. Simulator can be integrated with other system through simulator API.

Setup

Metmask dev

If production version of MetaMask is installed disable it in chome://extensions/ or start a new Chrome/Brave profile.

Install MetaMask Flask development plugin.

Tenderly access

Open Tenderly account and create an access-key.

Webapp

After cloning repo run yarn start to start a web app on port 8000.

Connection & Credentials

With webapp running first install snap with “Reconnect”, then add Tenderly credentials with “Update access key”. Latter needs to be in format {user_id}@{project_id}@{access_key}.

Usage

Through normal interaction with MetaMask formatted simulation response will appear in a tab on the right.

Contributions

Please feel free to contribute.

Security

Note that this is experimental code as are currently MetaMask snaps so don’t rely on it using real financial assets or accounts that you wouldn’t like exploited.

tenderly-snap's People

Contributors

bmoyroud avatar eriknson avatar frederikbolding avatar guillaumerx avatar halo3mic avatar montoya avatar mrtenz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vlad2750

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.