Philosophy
PXL SDK Philosophy
Simplicity Without Sacrifice
The PXL SDK is designed with a clear philosophy: to provide a streamlined, intuitive interface for interacting with BoringVaults while respecting the autonomy of developers. We believe that blockchain integration should be accessible without forcing developers to adopt specific frameworks or architectural patterns.
Core Principles
1. Framework Agnostic
We've built the PXL SDK to work seamlessly with any frontend framework. Whether you're using React, Vue, Angular, or vanilla JavaScript, the SDK provides a consistent, reliable interface for interacting with BoringVaults. We don't make assumptions about your state management approach or UI architecture.
2. Abstraction of Complexity
Blockchain interactions often involve complex calculations, parameter formatting, and multi-step processes. The PXL SDK abstracts away these complexities, providing simple, intuitive functions for common operations like deposits, withdrawals, and cross-chain bridging. We handle the nuanced details so you can focus on building your user experience.
3. Type Safety and Documentation
We believe that good developer tools should be self-documenting and provide guardrails against common mistakes. The PXL SDK is built with TypeScript, offering comprehensive type definitions and detailed JSDoc comments to guide you through the integration process.
4. Minimal Dependencies
We maintain a lean dependency footprint, requiring only the essentials for blockchain interaction. This approach ensures that the SDK remains lightweight and compatible with a wide range of projects.
5. Predictable Interfaces
Our API is designed to be consistent and predictable. Functions follow similar patterns, making the SDK easy to learn and use. Whether you're preparing a deposit, withdrawal, or cross-chain transaction, the interface remains familiar.
Our Approach
The PXL SDK takes a "prepare, then execute" approach to blockchain interactions. Rather than directly executing transactions, the SDK provides functions that prepare transaction data, which your application can then execute using your preferred method. This approach gives you complete control over transaction execution while still benefiting from the SDK's abstraction of complex parameters and calculations.
For Partners
As a partner implementing a custom frontend for PXL BoringVaults, the SDK provides you with all the tools you need to offer a seamless user experience without having to understand the intricate details of vault mechanics, cross-chain bridging, or rate calculations. We handle the complexity, you control the experience.By focusing on simplicity without sacrifice, the PXL SDK empowers you to build powerful, user-friendly interfaces for BoringVaults while maintaining the flexibility to implement your vision exactly as you imagine it.
Last updated