Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A tool to convert MultiversX Smart Contract ABI files into Markdown documentation.
abi-markdowner
is a Python tool that converts MultiversX Smart Contract ABI files into structured and detailed Markdown documentation. This makes it easy to document, share, understand, and interact with smart contracts.
Discover how abi-markdowner
effortlessly transforms complex and cumbersome abi.json files into clear, structured documentation. Check out these examples:
deployments.json
file.Install abi-markdowner
using pip
pip install abi-markdowner
or pipx
pipx install abi-markdowner
Simply run the tool from your SC main directory:
abi-markdowner
Alternatively, you can pass another project directory as argument. For more information, check the Parameters
section.
--sc-path
:
(Optional - default is the current working directory)
Specify the path to your smart contract project containing the Cargo.toml and optionally the deployments.json files. The ABI file will be read from the output directory within this path.
--output-file
:
(Optional - default is ABI.md in the sc-path/output
directory)
Specify the output file path for the generated Markdown.
--cargo-toml
:
(Optional - default is Cargo.toml in the sc-path
directory)
Specify the path to the Cargo.toml file.
--deployments-json
:
(Optional - default is deployments.json in the sc-path
directory)
Specify the path to the deployments.json file containing deployment addresses.
Important:
ABI file is obtained from the /output
folder in the sc-path
directory.
abi-markdowner --sc-path path_to_sc/
This will generate a Markdown document summarizing your smart contract's structure, including types, endpoints, views, and events, along with links to the specified deployment addresses.
deployments.json
fileThe existence of this file is not mandatory. If found, a Links
section will be created in the documentation.
Here’s an example of how your deployments.json file can be structured:
{
"mainnet": [
{
"address": "erd1qqqqqqqqqqqqqpgqvc7gdl0p4s97guh498wgz75k8sav6sjfjlwqh679jy",
"label": "Shard 0"
},
{
"address": "erd1qqqqqqqqqqqqqpgqhe8t5jewej70zupmh44jurgn29psua5l2jps3ntjj3",
"label": "Shard 1"
}
],
"devnet": [
{
"address": "erd1qqqqqqqqqqqqqpgqvn9ew0wwn7a3pk053ezex98497hd4exqdg0q8v2e0c"
}
]
}
The above would result in something similar to the following:
Links
- Mainnet Deployments:
- Shard 0: erd1qqqqqqqqqqqqqpgqvc7gdl0p4s97guh498wgz75k8sav6sjfjlwqh679jy
- Shard 1: erd1qqqqqqqqqqqqqpgqhe8t5jewej70zupmh44jurgn29psua5l2jps3ntjj3
- Devnet Deployments:
- Address: erd1qqqqqqqqqqqqqpgqvn9ew0wwn7a3pk053ezex98497hd4exqdg0q8v2e0c
Tests have not been added yet.
abi-markdowner
is licensed under the MIT License. See the LICENSE file for more information.
Contributions are welcome! Please fork the repository and submit a pull request.
FAQs
A tool to convert MultiversX Smart Contract ABI files into Markdown documentation.
We found that abi-markdowner demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.