0.1.21 • Published 8 months ago

@0xbow/privacy-pools-core-sdk v0.1.21

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

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

  1. Install dependencies by running pnpm install
  2. Build the SDK by running pnpm build

Available Scripts

ScriptDescription
buildBuild the SDK using Rollup
build:bundleBuild the SDK and set up circuits
check-typesCheck for TypeScript type issues
cleanRemove build artifacts
lintRun ESLint to check code quality
lint:fixFix linting issues automatically
formatCheck code formatting using Prettier
format:fixFix formatting issues automatically
testRun tests using Vitest
test:covGenerate 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