Skip to content

Commit 7200670

Browse files
Merge pull request #5 from InternetMaximalism/beta-path
beta path
2 parents 602bff2 + ccc4f84 commit 7200670

File tree

1 file changed

+5
-5
lines changed
  • packages/processor/src/lib

1 file changed

+5
-5
lines changed

packages/processor/src/lib/zkp.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const createWithdrawalProof = async (
1616
) => {
1717
return makeProverRequest<CreateProofResponse>({
1818
method: "post",
19-
path: "withdrawal-aggregator-prover/proof/withdrawal",
19+
path: "aggregator-prover/proof/withdrawal",
2020
data: {
2121
id,
2222
singleWithdrawalProof,
@@ -32,7 +32,7 @@ export const createWrappedProof = async (
3232
) => {
3333
return makeProverRequest<CreateProofResponse>({
3434
method: "post",
35-
path: "withdrawal-aggregator-prover/proof/wrapper",
35+
path: "aggregator-prover/proof/wrapper",
3636
data: {
3737
id,
3838
withdrawalAggregator: withdrawalAggregatorAddress,
@@ -44,14 +44,14 @@ export const createWrappedProof = async (
4444
export const getWithdrawalProof = async (proofId: string) => {
4545
return makeProverRequest<GetZKProofResponse<WithdrawalProof>>({
4646
method: "get",
47-
path: `withdrawal-aggregator-prover/proof/withdrawal/${proofId}`,
47+
path: `aggregator-prover/proof/withdrawal/${proofId}`,
4848
});
4949
};
5050

5151
export const getWithdrawalWrapperProof = async (proofId: string) => {
5252
return makeProverRequest<GetZKProofResponse<string>>({
5353
method: "get",
54-
path: `withdrawal-aggregator-prover/proof/wrapper/${proofId}`,
54+
path: `aggregator-prover/proof/wrapper/${proofId}`,
5555
});
5656
};
5757

@@ -79,7 +79,7 @@ const makeProverRequest = async <T>({ method, path, data, params }: ProverReques
7979
try {
8080
const requestConfig: AxiosRequestConfig = {
8181
method,
82-
url: `${config.ZKP_PROVER_URL}/v1/${path}`,
82+
url: `${config.ZKP_PROVER_URL}/v1/beta/${path}`,
8383
...getHeaders(),
8484
};
8585

0 commit comments

Comments
 (0)