Package Exports
- @cakitomakito/extract_abi
- @cakitomakito/extract_abi/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cakitomakito/extract_abi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ABI EXTRACTOR
Lightweight small package for Ethereum developers to extract, and import their ABIs more easily.
Usage Example
import { ABIExtractor } from "@cakitomakito/extract_abi";
// for example your ABIs in ../builded_contracts/artifacts/contracts folder (as hardhat build).
// so when you call the extractor you need to pass the path to the folder = ../builded_contracts
// and then the name of the folder where the ABIs are = artifacts
const abiExtractor = new ABIExtractor("../builded_contracts", "artifacts");
const path = abiExtractor.getPath();
const lockABI = abiExtractor.getABI("Lock");
console.log(path);
console.log(lockABI)