Skip to content

Commit

Permalink
chore: add @zk-kit/artifacts dep
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed May 19, 2024
1 parent 10fddc9 commit 76b739d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const projects: any = fs
rootDir: `packages/${name}`,
displayName: name,
moduleNameMapper: {
"@zk-kit/artifacts": ["<rootDir>/../../node_modules/@zk-kit/artifacts/dist/index.node.cjs"],
"@zk-kit/(.*)/(.*)": ["<rootDir>/../$1/src/$2.ts", "<rootDir>/../$1/src/$2/$2.node.ts"],
"@zk-kit/(.*)": "<rootDir>/../$1/src/index.ts"
}
Expand Down
1 change: 1 addition & 0 deletions packages/poseidon-proof/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"rollup-plugin-cleanup": "^3.2.1"
},
"dependencies": {
"@zk-kit/artifacts": "^1.3.1",
"@zk-kit/utils": "1.0.0-beta.4",
"ethers": "^6.12.0",
"snarkjs": "^0.7.3"
Expand Down
3 changes: 1 addition & 2 deletions packages/poseidon-proof/src/generate.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { BigNumber } from "@ethersproject/bignumber"
import type { SnarkArtifacts } from "@zk-kit/utils"
import { maybeGetSnarkArtifacts, Project, type SnarkArtifacts } from "@zk-kit/artifacts"
import { packGroth16Proof } from "@zk-kit/utils/proof-packing"
import maybeGetSnarkArtifacts, { Project } from "@zk-kit/utils/snark-artifacts"
import { BigNumberish } from "ethers"
import { NumericString, groth16 } from "snarkjs"
import hash from "./hash"
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3437,6 +3437,13 @@ __metadata:
languageName: node
linkType: hard

"@zk-kit/artifacts@npm:^1.3.1":
version: 1.3.1
resolution: "@zk-kit/artifacts@npm:1.3.1"
checksum: 10/8be21e3967c05b0b8ed250db84c0d37c86bcbc389b0792b55b27313c5b8fdae03e8fd5fdcafd8dfcbabee253f7d90669c485b168790eaf96e60e38261698a4d4
languageName: node
linkType: hard

"@zk-kit/baby-jubjub@npm:1.0.0, @zk-kit/baby-jubjub@workspace:packages/baby-jubjub":
version: 0.0.0-use.local
resolution: "@zk-kit/baby-jubjub@workspace:packages/baby-jubjub"
Expand Down Expand Up @@ -3590,6 +3597,7 @@ __metadata:
"@types/download": "npm:^8.0.5"
"@types/snarkjs": "npm:^0"
"@types/tmp": "npm:^0.2.6"
"@zk-kit/artifacts": "npm:^1.3.1"
"@zk-kit/utils": "npm:1.0.0-beta.4"
ethers: "npm:^6.12.0"
poseidon-lite: "npm:^0.2.0"
Expand Down

0 comments on commit 76b739d

Please sign in to comment.