refactor: temporal package name (#76)

Fixes SEC-255
This commit is contained in:
Turtle
2025-02-07 20:00:44 -03:00
committed by GitHub
parent 16c0852e26
commit b4dcd74381
14 changed files with 17 additions and 17 deletions

View File

@@ -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

View File

@@ -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",

View File

@@ -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) {

View File

@@ -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

View File

@@ -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) {

View File

@@ -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

View File

@@ -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",

View File

@@ -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";

View File

@@ -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.

View File

@@ -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,

View File

@@ -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"
}

View File

@@ -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";

View File

@@ -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 = [
{

View File

@@ -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({