@pyxisjs/sdk
v0.1.19
Published
A comprehensive DeFi vault management platform built on the Aptos blockchain
Maintainers
Readme
Pyxis SDK
A comprehensive DeFi vault management platform built on the Aptos blockchain. Pyxis SDK provides developers with powerful tools to integrate yield-generating vaults into their applications.
✨ Features
- 🏦 Multi-Vault Support - Access conservative, balanced, and aggressive yield strategies
- 📈 Portfolio Tracking - Monitor positions, P&L, and performance
- 🛠️ TypeScript First - Full type safety and excellent developer experience
- 🚀 Production Ready - Optimized for performance and reliability
🚀 Quick Start
Installation
# Using pnpm (recommended)
pnpm add @pyxisjs/sdk
# Using npm
npm install @pyxisjs/sdk
# Using yarn
yarn add @pyxisjs/sdkBasic Usage
import { PyxisClient } from '@pyxisjs/sdk';
// Initialize SDK
const sdk = new PyxisClient({
network: 'testnet',
timeout: 5000,
});
// Get available vaults
const vaults = await sdk.vault.getAll();
// Deposit into a vault
const depositTx = await sdk.position.deposit('vault-id', '100.0', 'USDC');
console.log('Deposit successful:', depositTx.txHash);📚 Documentation
- Installation Guide - Complete setup instructions
- Quick Start - Get up and running quickly
- API Reference - Complete API documentation
- Examples - Code examples and use cases
- Configuration - SDK configuration options
🏗️ Architecture
Pyxis SDK is organized into modular APIs:
PyxisClient
├── vault - Vault creation, discovery, and management
└── position - Deposits, withdrawals, and portfolio tracking🔧 Requirements
- Node.js: >= 16.0.0
- TypeScript: >= 5.0.0
- pnpm: >= 8.0.0 (recommended)
Peer Dependencies
pnpm add @aptos-labs/ts-sdk@^3.1.3🧪 Development
# Clone the repository
git clone https://github.com/pyxis/pyxis-sdk.git
cd pyxis-sdk
# Install dependencies
pnpm install
# Run tests
pnpm run test
# Build the project
pnpm run build
# Run linting
pnpm run lint📊 Available Scripts
pnpm run build- Compile TypeScript to JavaScriptpnpm run dev- Watch mode compilationpnpm run test- Run test suitepnpm run test:watch- Run tests in watch modepnpm run test:coverage- Generate coverage reportpnpm run lint- Run ESLintpnpm run lint:fix- Auto-fix linting issuespnpm run format- Format code with Prettierpnpm run typecheck- Run TypeScript type checking
🌐 Networks Supported
- Mainnet - Production environment
- Testnet - Testing and staging
- Devnet - Development and experimentation
💡 Use Cases
- DeFi Applications - Build yield farming interfaces
- Portfolio Managers - Create vault management dashboards
- Analytics Tools - Develop yield tracking applications
- Trading Bots - Automate vault strategies
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
