0.1.21 • Published 8 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-sdkSetup
- 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
8 months ago
0.1.20
8 months ago
0.1.19
9 months ago
0.1.18
10 months ago
0.1.17
11 months ago
0.1.16
11 months ago
0.1.15
11 months ago
0.1.14
11 months ago
0.1.13
11 months ago
0.1.12
11 months ago
0.1.11
11 months ago
0.1.10
11 months ago
0.1.9
11 months ago
0.1.8
11 months ago
0.1.7
12 months ago
0.1.6
12 months ago
0.1.5
12 months ago
0.1.4
12 months ago
0.1.3
12 months ago
0.1.2
12 months ago
0.1.1
12 months ago
0.1.0
12 months ago