Solay
A powerful layout and serialization library for Solana smart contracts, with enhanced type safety and Solana-specific types support.
Features
- 🔒 Type-safe: Enhanced TypeScript type definitions for better development experience
- 🚀 Solana-specific: Built-in support for PublicKey, BN, and other Solana types
- 🛠️ Flexible Layouts: Support for complex data structures including structs, enums, and arrays
- 💪 Zero Dependencies: Built on top of @solana/buffer-layout with minimal overhead
- 📦 Easy to Use: Simple and intuitive API for defining account and instruction layouts
Installation
bash
npm install solay
or
yarn add solay
or
pnpm add solay