0.1.0 • Published 5 months ago

anyflow-sdk v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

AnyFlow SDK

A TypeScript SDK for extending functionality of blockchain projects and providing dependencies for the AnyFlow CLI tool.

Features

  • Simple setup with a single function call
  • Extensions for ethers.js v6
  • Utilities for blockchain development
  • Integration with AnyFlow CLI

Installation

npm install anyflow-sdk

Usage

Basic Setup

/**
 * Basic usage example for AnyFlow SDK inside a hardhat project
 */
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import anyflow from 'anyflow-sdk';

anyflow.setup();

const config: HardhatUserConfig = {
    solidity: "0.8.28",
};

export default anyflow.mergeHardhatConfig(config);

API Reference

setup(options)

Initializes the AnyFlow SDK with the provided options.

Options

  • enableEthersExtensions (boolean): Enable extensions for ethers.js v6. Default: true
  • logLevel (string): Log level for SDK operations. Options: 'debug', 'info', 'warn', 'error', 'none'. Default: 'info'
  • cliConfig (object): Custom configuration for CLI integration. Default: {}

Contributing We welcome contributions to the AnyFlow SDK! Please see the CONTRIBUTING.md file for details on how to contribute.

License

This project is licensed under the ISC License.

0.1.0

5 months ago