0.1.21 • Published 4 months ago

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

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 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

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