0.1.21 • Published 4 months ago
@0xbow/privacy-pools-core-sdk v0.1.21
Privacy Pool Core SDK
A TypeScript SDK for interacting with the Privacy Pool protocol. This SDK provides a comprehensive set of tools and utilities for integrating with Privacy Pool, enabling deposits, withdrawals, and other core functionality.
Installation
npm install @0xbow/privacy-pool-core-sdk
# or
yarn add @0xbow/privacy-pool-core-sdk
# or
pnpm add @0xbow/privacy-pool-core-sdk
Setup
- Install dependencies by running
pnpm install
- Build the SDK by running
pnpm build
Available Scripts
Script | Description |
---|---|
build | Build the SDK using Rollup |
build:bundle | Build the SDK and set up circuits |
check-types | Check for TypeScript type issues |
clean | Remove build artifacts |
lint | Run ESLint to check code quality |
lint:fix | Fix linting issues automatically |
format | Check code formatting using Prettier |
format:fix | Fix formatting issues automatically |
test | Run tests using Vitest |
test:cov | Generate test coverage report |
Usage
import { PrivacyPoolSDK } from '@0xbow/privacy-pool-core-sdk';
// Initialize the SDK
const sdk = new PrivacyPoolSDK({
// Configuration options
});
// Example: Create a deposit
const deposit = await sdk.deposit({
// Deposit parameters
});
// Example: Create a withdrawal
const withdrawal = await sdk.withdraw({
// Withdrawal parameters
});
For detailed usage examples and API documentation, please refer to our documentation.
Features
- Deposit and withdrawal functionality
- Zero-knowledge proof generation
- Commitment management
- Contract interactions
- Type-safe API
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
Apache-2.0 License - see the LICENSE file for details.
0.1.21
4 months ago
0.1.20
4 months ago
0.1.19
5 months ago
0.1.18
6 months ago
0.1.17
7 months ago
0.1.16
7 months ago
0.1.15
7 months ago
0.1.14
7 months ago
0.1.13
7 months ago
0.1.12
7 months ago
0.1.11
7 months ago
0.1.10
7 months ago
0.1.9
7 months ago
0.1.8
7 months ago
0.1.7
8 months ago
0.1.6
8 months ago
0.1.5
8 months ago
0.1.4
8 months ago
0.1.3
8 months ago
0.1.2
8 months ago
0.1.1
8 months ago
0.1.0
8 months ago