Skip to content

AnyFlowLabs/anyflow-sdk

Repository files navigation

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.

About

SDK for extending functionality of user projects and providing dependencies for anyflow CLI

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors