Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: receipt proof within HashiProver #76

Merged
merged 9 commits into from
Nov 11, 2024
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
"url": "https://github.com/gnosis"
},
"scripts": {
"prepare": "husky install"
"prepare": "husky install",
"postinstall": "patch-package"
},
"devDependencies": {
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"husky": "^8.0.3",
"patch-package": "8.0.0",
"prettier": "^2.8.7",
"prettier-plugin-solidity": "^1.0.0"
},
Expand Down
19 changes: 17 additions & 2 deletions packages/evm/contracts/interfaces/IHashiProver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,21 @@ interface IHashiProver {
uint256 ancestralBlockNumber;
bytes[] ancestralBlockHeaders;
address account;
bytes accountProof;
bytes[] accountProof;
bytes32 storageHash;
bytes32[] storageKeys;
bytes[] storageProof;
bytes[][] storageProof;
}

struct ReceiptProof {
uint256 chainId;
uint256 blockNumber;
bytes blockHeader;
uint256 ancestralBlockNumber;
bytes[] ancestralBlockHeaders;
bytes[] receiptProof;
bytes transactionIndex;
uint256 logIndex;
}

error AncestralBlockHeadersLengthReached();
Expand All @@ -24,6 +35,10 @@ interface IHashiProver {
error InvalidAccount();
error InvalidBlockHeader();
error InvalidBlockHeaderLength();
error InvalidLogIndex();
error InvalidReceipt();
error InvalidReceiptProof();
error InvalidStorageHash();
error InvalidStorageProofParams();
error UnsupportedTxType();
}
248 changes: 0 additions & 248 deletions packages/evm/contracts/libraries/MerklePatriciaProofVerifier.sol

This file was deleted.

Loading
Loading