0.0.12 • Published 8 months ago
@instadapp/transaction-builder v0.0.12
@instadapp/transaction-builder
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.0-dev.afd5da8
8 months ago
0.0.0-dev.cc89739
8 months ago
0.0.0-dev.da2da31
8 months ago
0.0.0-dev.5acd9f7
8 months ago
0.0.0-dev.fd19531
8 months ago
0.0.0-dev.cf58955
8 months ago
0.0.0-dev.7480992
8 months ago
0.0.10
8 months ago
0.0.11
8 months ago
0.0.12
8 months ago
0.0.9
8 months ago
0.0.0-dev.c054fe9
11 months ago
0.0.0-dev.fa2d520
11 months ago
0.0.8
11 months ago
0.0.0-dev.144a766
11 months ago
0.0.7
11 months ago
0.0.0-dev.b71d398
11 months ago
0.0.6
11 months ago
0.0.0-dev.19010c6
11 months ago
0.0.5
11 months ago
0.0.0-dev.bddf50b
11 months ago
0.0.4
11 months ago
0.0.0-dev.49b1be9
11 months ago
0.0.3
11 months ago
0.0.0-dev.a174171
11 months ago
0.0.0-dev.548f2cf
11 months ago
0.0.2
11 months ago
0.0.1
11 months ago
0.0.0-dev.f489ffd
11 months ago
0.0.0-dev.637618c
11 months ago