@trezoa/wallet-standard
v1.1.4
Published
[](https://www.npmjs.com/package/@trezoa/wallet-standard) [](LICENSE)
Readme
@trezoa/wallet-standard
A comprehensive wallet standard implementation for the Trezoa ecosystem, providing a unified interface for wallet integrations and standardized communication protocols.
Overview
This package serves as the main entry point for Trezoa's wallet standard implementation, combining core functionality with adapter utilities to enable seamless wallet integration across the Trezoa ecosystem.
Features
- 🔧 Unified API: Standardized wallet interface across all Trezoa applications
- 🎯 Type Safety: Full TypeScript support with comprehensive type definitions
- 🔌 Adapter Support: Built-in wallet adapter functionality
- 📦 Modular Design: Clean separation between core and adapter functionality
- 🌐 Cross-Platform: Works in both Node.js and browser environments
Installation
npm install @trezoa/wallet-standardyarn add @trezoa/wallet-standardpnpm add @trezoa/wallet-standardUsage
import {
// Core wallet standard functionality
WalletStandard,
WalletAccount,
WalletAdapter
} from '@trezoa/wallet-standard';
// Initialize wallet standard
const walletStandard = new WalletStandard({
// Configuration options
});
// Use wallet adapter
const adapter = new WalletAdapter({
walletStandard
});Package Structure
This package re-exports functionality from:
- @trezoa/wallet-standard-core: Core wallet standard implementation
- @trezoa/wallet-standard-wallet-adapter: Wallet adapter utilities
API Reference
Core Components
WalletStandard: Main wallet standard interfaceWalletAccount: Wallet account representationWalletAdapter: Wallet adapter for framework integration
Types
All TypeScript definitions are included and automatically available when using this package.
Development
Prerequisites
- Node.js ≥ 16
- npm, yarn, or pnpm
Building
npm run clean
npm run buildProject Structure
src/
├── index.ts # Main entry point
lib/
├── cjs/ # CommonJS build output
├── esm/ # ES modules build output
└── types/ # TypeScript declarationsContributing
We welcome contributions to improve the Trezoa wallet standard. Please follow these steps:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Support
For support and questions:
- 📧 Email: [email protected]
- 🐙 GitHub: trezoa-team/wallet-standard
- 🌐 Website: trezoa.com
Related Packages
Built with ❤️ by the Trezoa team
