mirror of
https://github.com/0xbow-io/privacy-pools-core.git
synced 2026-01-09 01:17:58 -05:00
2
.github/workflows/contracts.yml
vendored
2
.github/workflows/contracts.yml
vendored
@@ -79,7 +79,7 @@ jobs:
|
||||
- name: Link SDK
|
||||
run: |
|
||||
cd ../sdk && yarn link
|
||||
cd ../contracts && yarn link "@privacy-pool-core/sdk"
|
||||
cd ../contracts && yarn link "@defi-wonderland/privacy-pool-core-sdk"
|
||||
shell: bash
|
||||
|
||||
- name: Precompile
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"@openzeppelin/contracts": "^5.1.0",
|
||||
"@openzeppelin/contracts-upgradeable": "5.0.2",
|
||||
"@openzeppelin/foundry-upgrades": "^0.3.6",
|
||||
"@privacy-pool-core/sdk": "0.1.0",
|
||||
"@defi-wonderland/privacy-pool-core-sdk": "0.1.0",
|
||||
"@zk-kit/lean-imt": "^2.2.2",
|
||||
"@zk-kit/lean-imt.sol": "^2.0.0",
|
||||
"poseidon-solidity": "^0.0.5",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
import { ethers } from "ethers";
|
||||
import { generateMerkleProof } from "@privacy-pool-core/sdk";
|
||||
import { generateMerkleProof } from "@defi-wonderland/privacy-pool-core-sdk";
|
||||
|
||||
// Function to temporarily redirect stdout
|
||||
function withSilentStdout(fn) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
import { PrivacyPoolSDK, Circuits } from "@privacy-pool-core/sdk";
|
||||
import { PrivacyPoolSDK, Circuits } from "@defi-wonderland/privacy-pool-core-sdk";
|
||||
import { encodeAbiParameters } from "viem";
|
||||
|
||||
// Function to temporarily redirect stdout
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
PrivacyPoolSDK,
|
||||
Circuits,
|
||||
getCommitment,
|
||||
} from "@privacy-pool-core/sdk";
|
||||
} from "@defi-wonderland/privacy-pool-core-sdk";
|
||||
import { encodeAbiParameters } from "viem";
|
||||
|
||||
function padSiblings(siblings, treeDepth) {
|
||||
|
||||
@@ -8,6 +8,6 @@ services:
|
||||
volumes:
|
||||
- /tmp/pp_relayer.sqlite:/pp_relayer.sqlite
|
||||
- ./config.example.json:/build/packages/relayer/config.json
|
||||
- ../circuits/artifacts:/build/node_modules/@privacy-pool-core/sdk/dist/node/artifacts
|
||||
- ../circuits/artifacts:/build/node_modules/@defi-wonderland/privacy-pool-core-sdk/dist/node/artifacts
|
||||
ports:
|
||||
- "3000:3000" # HOST:CONTAINER
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
"test:cov": "vitest run --config vitest.config.ts --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
"@privacy-pool-core/sdk": "0.1.0",
|
||||
"@defi-wonderland/privacy-pool-core-sdk": "0.1.0",
|
||||
"ajv": "8.17.1",
|
||||
"body-parser": "1.20.3",
|
||||
"express": "4.21.2",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Hash } from "@privacy-pool-core/sdk";
|
||||
import { Hash } from "@defi-wonderland/privacy-pool-core-sdk";
|
||||
import { NextFunction, Request, Response } from "express";
|
||||
import { getAddress } from "viem";
|
||||
import { ValidationError } from "../../exceptions/base.exception.js";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Withdrawal, WithdrawalProof } from "@privacy-pool-core/sdk";
|
||||
import { Withdrawal, WithdrawalProof } from "@defi-wonderland/privacy-pool-core-sdk";
|
||||
|
||||
/**
|
||||
* Represents the proof payload for a relayer request.
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
Withdrawal,
|
||||
WithdrawalProof,
|
||||
SDKError,
|
||||
} from "@privacy-pool-core/sdk";
|
||||
} from "@defi-wonderland/privacy-pool-core-sdk";
|
||||
import { Address } from "viem";
|
||||
import {
|
||||
CHAIN,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"main": "node dist/main.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@privacy-pool-core/sdk": "0.1.0",
|
||||
"@defi-wonderland/privacy-pool-core-sdk": "0.1.0",
|
||||
"@types/node": "^22.13.0",
|
||||
"typescript": "5.5.4"
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
Withdrawal,
|
||||
WithdrawalProof,
|
||||
WithdrawalProofInput,
|
||||
} from "@privacy-pool-core/sdk";
|
||||
} from "@defi-wonderland/privacy-pool-core-sdk";
|
||||
import { Address, defineChain, Hex } from "viem";
|
||||
import { localhost } from "viem/chains";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { encodeAbiParameters, getAddress, Hex } from "viem";
|
||||
import { request } from "./api-test.js";
|
||||
import { deposit, proveWithdrawal } from "./create-withdrawal.js";
|
||||
import { Hash, Withdrawal } from "@privacy-pool-core/sdk";
|
||||
import { Hash, Withdrawal } from "@defi-wonderland/privacy-pool-core-sdk";
|
||||
|
||||
const FeeDataAbi = [
|
||||
{
|
||||
|
||||
@@ -5,11 +5,11 @@ A TypeScript SDK for interacting with the Privacy Pool protocol. This SDK provid
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @privacy-pool-core/sdk
|
||||
npm install @defi-wonderland/privacy-pool-core-sdk
|
||||
# or
|
||||
yarn add @privacy-pool-core/sdk
|
||||
yarn add @defi-wonderland/privacy-pool-core-sdk
|
||||
# or
|
||||
pnpm add @privacy-pool-core/sdk
|
||||
pnpm add @defi-wonderland/privacy-pool-core-sdk
|
||||
```
|
||||
|
||||
## Setup
|
||||
@@ -35,7 +35,7 @@ pnpm add @privacy-pool-core/sdk
|
||||
## Usage
|
||||
|
||||
```typescript
|
||||
import { PrivacyPoolSDK } from '@privacy-pool-core/sdk';
|
||||
import { PrivacyPoolSDK } from '@defi-wonderland/privacy-pool-core-sdk';
|
||||
|
||||
// Initialize the SDK
|
||||
const sdk = new PrivacyPoolSDK({
|
||||
|
||||
Reference in New Issue
Block a user