Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
sourcify-snap
Advanced tools
Metamask Snap used to get human-readable transaction description from Sourcify
MetaMask Snaps is a system that allows anyone to safely expand the capabilities of MetaMask. A snap is a program that we run in an isolated environment that can customize the wallet experience.
This snap uses Sourcify to get information about the contract with which the transaction is about to happen and provides a human-readable description of what is about to happen in the transaction.
Warning The human-readable description of the funciton is generated from the NatSpec comment on the function. So don't trust it blindly!
Note The site has a example tx inside
packages/site/pages/index.tsx
Clone the repository and setup the development environment:
yarn install && yarn start
This repository contains GitHub Actions that you may find useful, see .github/workflows
and Releasing & Publishing below for more information.
If you clone or create this repository outside the MetaMask GitHub organization, you probably want to run ./scripts/cleanup.sh
to remove some files that will not work properly outside the MetaMask GitHub organization.
Note that the action-publish-relase.yml
workflow contains a step that publishes the frontend of this snap (contained in the public/
directory) to GitHub pages. If you do not want to publish the frontend to GitHub pages, simply remove the step named "Publish to GitHub Pages" in that workflow.
If you don't wish to use any of the existing GitHub actions in this repository, simply delete the .github/workflows
directory.
packages/snap
Run yarn test
to run the tests once.
Run yarn lint
to run the linter, or run yarn lint:fix
to run the linter and fix any automatically fixable issues.
transpilationMode
must be set to localOnly
(default) or localAndDeps
.wallet
type to work, you have to add the following to your tsconfig.json
:
{
"files": ["./node_modules/@metamask/snap-types/global.d.ts"]
}
Questions? Dm @harpaljadeja11 on twitter
FAQs
Metamask Snap used to get human-readable transaction description from Sourcify
The npm package sourcify-snap receives a total of 1 weekly downloads. As such, sourcify-snap popularity was classified as not popular.
We found that sourcify-snap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.