Skip to content

halo3mic/tenderly-snap

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT-0 licenses found

Licenses found

Apache-2.0
LICENSE.APACHE2
MIT-0
LICENSE.MIT0

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published