0.0.12 • Published 2 years ago

@instadapp/transaction-builder v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@instadapp/transaction-builder

npm version npm downloads bundle Codecov License JSDocs

This is my package description.

Usage

Install package:

# npm
npm install @instadapp/transaction-builder

# yarn
yarn add @instadapp/transaction-builder

# pnpm
pnpm install @instadapp/transaction-builder

Import:

// ESM
import { TransactionBuilder } from "@instadapp/transaction-builder";

// CommonJS
const { TransactionBuilder } = require("@instadapp/transaction-builder");

Usage:

const builder = TransactionBuilder.create([
    "function execute(address _target, bytes _data) external payable returns (bytes32)",
]);

builder.getWriteMethods(); // ["execute(address,bytes)"]
builder.getMethodInputs("execute(address,bytes)"); // [{ name: "_target", type: "address" }, { name: "_data", type: "bytes" },]
builder.validateMethodInput("execute(address,bytes)", "_target", "0x420");
builder.build("execute(address,bytes)", ["0x420", "0x69"]);

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with 💛

Published under MIT License.

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago