Skip to content

Commit

Permalink
back to uint64 requestId
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroga committed Aug 28, 2024
1 parent 8e545c7 commit 5b3ac93
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
76 changes: 38 additions & 38 deletions src/storage/blockchain/abi/ZkpVerifier.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
"type": "string"
},
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
},
{
"internalType": "uint256",
"name": "linkID",
"type": "uint256"
},
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestIdToCompare",
"type": "uint256"
"type": "uint64"
},
{
"internalType": "uint256",
Expand Down Expand Up @@ -118,9 +118,9 @@
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
},
{
"indexed": true,
Expand Down Expand Up @@ -155,9 +155,9 @@
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
},
{
"indexed": true,
Expand Down Expand Up @@ -218,9 +218,9 @@
{
"inputs": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
}
],
"name": "disableZKPRequest",
Expand All @@ -231,9 +231,9 @@
{
"inputs": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
}
],
"name": "enableZKPRequest",
Expand All @@ -249,9 +249,9 @@
"type": "address"
},
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
}
],
"name": "getProofStatus",
Expand Down Expand Up @@ -295,9 +295,9 @@
"type": "address"
},
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
},
{
"internalType": "string",
Expand All @@ -319,9 +319,9 @@
{
"inputs": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
}
],
"name": "getRequestOwner",
Expand All @@ -338,9 +338,9 @@
{
"inputs": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
}
],
"name": "getZKPRequest",
Expand Down Expand Up @@ -446,9 +446,9 @@
"type": "address"
},
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
}
],
"name": "isProofVerified",
Expand Down Expand Up @@ -484,9 +484,9 @@
{
"inputs": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
}
],
"name": "isZKPRequestEnabled",
Expand Down Expand Up @@ -549,9 +549,9 @@
{
"inputs": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
}
],
"name": "requestIdExists",
Expand All @@ -568,9 +568,9 @@
{
"inputs": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
},
{
"internalType": "address",
Expand All @@ -586,9 +586,9 @@
{
"inputs": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
},
{
"components": [
Expand Down Expand Up @@ -621,9 +621,9 @@
{
"inputs": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
},
{
"internalType": "uint256[]",
Expand Down Expand Up @@ -656,9 +656,9 @@
{
"components": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
},
{
"internalType": "bytes",
Expand Down Expand Up @@ -707,9 +707,9 @@
"type": "address"
},
{
"internalType": "uint256[]",
"internalType": "uint64[]",
"name": "requestIds",
"type": "uint256[]"
"type": "uint64[]"
}
],
"name": "verifyLinkedProofs",
Expand All @@ -720,9 +720,9 @@
{
"inputs": [
{
"internalType": "uint256",
"internalType": "uint64",
"name": "requestId",
"type": "uint256"
"type": "uint64"
},
{
"internalType": "uint256[]",
Expand Down
6 changes: 3 additions & 3 deletions src/storage/blockchain/onchain-zkp-verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class OnChainZKPVerifier implements IOnChainZKPVerifier {
/**
* solidity identifier for function signature:
* struct ZKPResponse {
uint256 requestId;
uint64 requestId;
bytes zkProof;
bytes data;
}
Expand All @@ -47,8 +47,8 @@ export class OnChainZKPVerifier implements IOnChainZKPVerifier {
bytes memory crossChainProof
) public
*/
//function submitZKPResponseV2(tuple[](uint256 requestId,bytes zkProof,bytes data),bytes crossChainProof)
public static readonly SupportedMethodIdV2 = '4c3d60fa';
//function submitZKPResponseV2(tuple[](uint64 requestId,bytes zkProof,bytes data),bytes crossChainProof)
public static readonly SupportedMethodIdV2 = 'ade09fcd';

/**
* supported circuits
Expand Down

0 comments on commit 5b3ac93

Please sign in to comment.