Skip to content

Write human-readable ABI text files for your forge project using ABIType.

Notifications You must be signed in to change notification settings

filipviz/human-readable-abis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

human-readable-abis

Write human-readable ABIs for a forge project to an output directory using ABIType.

Useful when working with Viem, WAGMI, or cast, or when writing docs.

Usage

npm i # Install dependencies
node index.js /path/to/your/project

Output will be written to ./output.

Example

IJBToken.txt:

function approve(uint256, address _spender, uint256 _amount)
function balanceOf(address _account, uint256 _projectId) view returns (uint256)
function burn(uint256 _projectId, address _account, uint256 _amount)
function decimals() view returns (uint8)
function mint(uint256 _projectId, address _account, uint256 _amount)
function projectId() view returns (uint256)
function totalSupply(uint256 _projectId) view returns (uint256)
function transfer(uint256 _projectId, address _to, uint256 _amount)
function transferFrom(uint256 _projectId, address _from, address _to, uint256 _amount)

About

Write human-readable ABI text files for your forge project using ABIType.

Topics

Resources

Stars

Watchers

Forks