Auto SDK
Introduction to the Auto SDK
Welcome to the Auto SDK documentation! The Auto SDK is a comprehensive toolkit designed to simplify the development of applications and integrations with the Autonomys Network. It provides a set of modular packages that enable developers to interact seamlessly with the consensus chain and active domains (Auto ID, Nova)
What is the Auto SDK?
The Auto SDK is a collection of JavaScript/TypeScript packages that abstract away the complexity of blockchain interactions. It includes utilities for consensus interactions, identity management, and general-purpose functions that are essential for building decentralized applications (dApps) and services on the Autonomys Network.
Key Features:
- Modular Architecture: Use only the packages you need.
- Ease of Use: Simplifies blockchain operations with high-level functions.
- Flexibility: Suitable for both beginners and experienced blockchain developers.
- Community-Driven and Open-source.
Why Use the Auto SDK?
- Simplify Development: Focus on your application's logic rather than blockchain intricacies.
- Accelerate Time-to-Market: Reduce development time with ready-to-use functions.
- Ensure Compatibility: Stay up-to-date with the latest Autonomys blockchain protocols.
- Enhance Security: Utilize well-tested code for critical operations like identity management.
Getting Started
This guide will help you set up the Auto SDK locally and run it against a current public testnet (Gemini 3h), or a local instance of Autonomys node for testing purposes.
Prerequisites
- Node.js: Make sure you have Node.js installed.
- Yarn 4: The project uses Yarn Berry (Yarn 4) as the package manager.
Repository Structure
The repository is organized as follows:
packages/auto-utils
: Utility functions for the SDK.packages/auto-consensus
: Consensus-related functions.packages/auto-id
: Identity management functions.
Setup Instructions
- Clone the Repository.
Open your terminal and run
git clone https://github.com/autonomys/auto-sdk.git
- Navigate to the Project Directory.
cd auto-sdk
- Set Yarn to Use the Berry Version.
yarn set version berry
- Install Dependencies.
yarn install
Build and Test
Build All Packages: to compile all packages, run:
yarn run build
Run Tests To execute tests for all packages:
yarn run test
Localhost Testing
You can test the SDK packages against a local Autonomys node using the provided scripts instead of a public testnet (Gemini 3h).