diff --git a/packages/circuits/package.json b/packages/circuits/package.json index 6deb956d..df01db7a 100644 --- a/packages/circuits/package.json +++ b/packages/circuits/package.json @@ -30,7 +30,7 @@ }, "dependencies": { "@types/snarkjs": "^0.7.7", - "@unirep/core": "2.1.1", + "@unirep/core": "2.1.5-alpha-1", "poseidon-lite": "^0.2.0" } } diff --git a/packages/contracts/package.json b/packages/contracts/package.json index d4e61d7a..4128488d 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -32,7 +32,7 @@ "@typechain/hardhat": "^6.1.5", "@types/node": "^18.15.11", "@unirep-app/circuits": "^1.1.0", - "@unirep/contracts": "2.1.1", + "@unirep/contracts": "2.1.5-alpha-1", "envfile": "^6.18.0", "hardhat": "^2.17.1", "ts-node": "^10.9.1", diff --git a/packages/contracts/test/utils.ts b/packages/contracts/test/utils.ts index e46df313..dccd6051 100644 --- a/packages/contracts/test/utils.ts +++ b/packages/contracts/test/utils.ts @@ -10,8 +10,7 @@ import { EpochKeyLiteProof, EpochKeyProof, } from '@unirep/circuits' -import { UserState } from '@unirep/core' -import { schema } from '@unirep/core/src/userSchema' +import { userSchema as schema, UserState } from '@unirep/core' import { IncrementalMerkleTree, stringifyBigInts } from '@unirep/utils' import { SQLiteConnector } from 'anondb/node' import crypto from 'crypto' diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 532aea37..6c2cf67e 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -26,7 +26,7 @@ "@tanstack/react-table": "^8.17.3", "@uidotdev/usehooks": "^2.4.1", "@unirep-app/circuits": "^1.1.0", - "@unirep/core": "2.1.1", + "@unirep/core": "2.1.5-alpha-1", "anondb": "^0.0.21", "axios": "^1.7.2", "boring-avatars": "^1.10.2", diff --git a/packages/frontend/src/utils/schema.ts b/packages/frontend/src/utils/schema.ts index 907e7c6b..8d1d09ab 100644 --- a/packages/frontend/src/utils/schema.ts +++ b/packages/frontend/src/utils/schema.ts @@ -1,4 +1,4 @@ -import { schema as syncSchema } from '@unirep/core/src/userSchema' +import { userSchema as syncSchema } from '@unirep/core' import { TableData } from 'anondb' const _schema = [ diff --git a/packages/relay/package.json b/packages/relay/package.json index f31e5f3a..3f823c60 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -18,7 +18,7 @@ "@typechain/hardhat": "^9.1.0", "@types/crypto-js": "^4.1.1", "@unirep-app/contracts": "^1.0.0", - "@unirep/core": "2.1.1", + "@unirep/core": "2.1.5-alpha-1", "cors": "^2.8.5", "dotenv": "^16.0.3", "express": "^4.18.2", diff --git a/yarn.lock b/yarn.lock index 3bb1b264..1d6e413d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5176,47 +5176,47 @@ resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== -"@unirep/circuits@2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@unirep/circuits/-/circuits-2.1.1.tgz#eec089100770485dcf367692b96389c9f92aad98" - integrity sha512-goUI35YNOdPQJ6F89llT/NOEmLlXrirrCE6dBfSn9wuc60LrWh5pgxj0hnctG04N9/J9CSXa0S8PEKG6mwNcqQ== +"@unirep/circuits@2.1.5-alpha-1": + version "2.1.5-alpha-1" + resolved "https://registry.yarnpkg.com/@unirep/circuits/-/circuits-2.1.5-alpha-1.tgz#ab0d505e2e4976f86fad9bff3adeda8d8af954e1" + integrity sha512-cYcagtvo0MKOjHSTC5XnTwITJAUlggX107fv84JnT2NwXcL2hIedl6m3sBT63D80sJ6TwUFd9TqGu2LxRBp4OA== dependencies: "@types/snarkjs" "0.7.7" - "@unirep/utils" "2.1.1" + "@unirep/utils" "2.1.5-alpha-1" snarkjs "0.7.2" -"@unirep/contracts@2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@unirep/contracts/-/contracts-2.1.1.tgz#d015147b4c328796f0dc3b043275efbcd3a01b5e" - integrity sha512-uIELKfs9HjTOassI8EToZd5RxUueR4oNWPtNs+AP8lszc2sB6moTtzf7RGe7AuV9dF/PdgJ6lHwtpEb2KIMOqg== +"@unirep/contracts@2.1.5-alpha-1": + version "2.1.5-alpha-1" + resolved "https://registry.yarnpkg.com/@unirep/contracts/-/contracts-2.1.5-alpha-1.tgz#f70f9b8bb70d93b609fe70b8dec2071ad78fc074" + integrity sha512-t9yvsYW32Hm0VQ/4g10tod7vb3522Niemb218O9v+O1OK7cQTLjondS/L/P8MFtMsy6b2kzk72Sd43R8JJVbnA== dependencies: "@openzeppelin/contracts" "4.9.3" - "@unirep/circuits" "2.1.1" - "@unirep/utils" "2.1.1" + "@unirep/circuits" "2.1.5-alpha-1" + "@unirep/utils" "2.1.5-alpha-1" "@zk-kit/incremental-merkle-tree.sol" "1.7.0" ethers "5.7.2" global-factory "0.0.2" poseidon-solidity "0.0.5" solc "0.8.21" -"@unirep/core@2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@unirep/core/-/core-2.1.1.tgz#5cc2c9aec09ba2ad1f9b3830929ad3a893e48660" - integrity sha512-OH5IAnsY9jM2YHQos+Y0DodBnAfIZGzZWamJkqBg9CdZg0uPx2NKDMCyJNtICFYcvR0ARtV4+pauQfAIX48E/A== +"@unirep/core@2.1.5-alpha-1": + version "2.1.5-alpha-1" + resolved "https://registry.yarnpkg.com/@unirep/core/-/core-2.1.5-alpha-1.tgz#19ea3c2c7ae6eed18c0e14758facc091a2fb8d42" + integrity sha512-QohuuQpABGKcL47Dw+n+k+Ps76MJ+u7dg9Cu0PoKduIIgjbXmk0HEM4v9DzxM3Cfl+upzHGKzZM7TbM0+BU6wQ== dependencies: "@semaphore-protocol/identity" "3.10.1" - "@unirep/circuits" "2.1.1" - "@unirep/contracts" "2.1.1" - "@unirep/utils" "2.1.1" + "@unirep/circuits" "2.1.5-alpha-1" + "@unirep/contracts" "2.1.5-alpha-1" + "@unirep/utils" "2.1.5-alpha-1" anondb "0.0.21" async-lock "1.4.0" ethers "5.7.2" nanoid "3.3.6" -"@unirep/utils@2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@unirep/utils/-/utils-2.1.1.tgz#a5d85202c2a6d0c3fafba78edff954ccac2ac6f8" - integrity sha512-x/KMsRp/cGaX4kNuFFwl/ClozCfm8NIAPC3vPLhbqGjYUyWrIpfyTlfDT1D0/MpMfL7hVX/noXnE9bfjzZhDAA== +"@unirep/utils@2.1.5-alpha-1": + version "2.1.5-alpha-1" + resolved "https://registry.yarnpkg.com/@unirep/utils/-/utils-2.1.5-alpha-1.tgz#4af2bcb303e309659ad25d813a484469656d1e42" + integrity sha512-bHtRVSTF9LwxEQ7cvrklgbcneBy9fQnJDQf+DWlUMOZKgld4njIdxbCrvxRhdC/SVG8mfMULhnLUNGztpIoLzg== dependencies: "@zk-kit/incremental-merkle-tree" "1.1.0" poseidon-lite "0.2.0"