@cakitomakito/extract_abi
TypeScript icon, indicating that this package has built-in type declarations

1.0.17 • Public • Published

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)

/@cakitomakito/extract_abi/

    Package Sidebar

    Install

    npm i @cakitomakito/extract_abi

    Weekly Downloads

    1

    Version

    1.0.17

    License

    ISC

    Unpacked Size

    5.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • cakitomakito