Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ optimizer_runs = 200
bytecode_hash = 'none'
libs = ["lib"]
remappings = [
"ds-test/=lib/the-compact/lib/permit2/lib/forge-std/lib/ds-test/src/",
"forge-gas-snapshot/=lib/the-compact/lib/permit2/lib/forge-gas-snapshot/src/",
"forge-std/=lib/the-compact/lib/forge-std/src/",
"openzeppelin-contracts/=lib/the-compact/lib/permit2/lib/openzeppelin-contracts/",
"permit2/=lib/the-compact/lib/permit2/",
"solady/=lib/the-compact/lib/solady/src/",
"soledge/=lib/the-compact/lib/soledge/src/",
"solmate/=lib/the-compact/lib/permit2/lib/solmate/",
"the-compact/=lib/the-compact/",
"tstorish/=lib/the-compact/lib/tstorish/src/",
"ds-test/=lib/the-compact/lib/permit2/lib/forge-std/lib/ds-test/src/",
"forge-gas-snapshot/=lib/the-compact/lib/permit2/lib/forge-gas-snapshot/src/",
"forge-std/=lib/the-compact/lib/forge-std/src/",
"hyperlane/=node_modules/@hyperlane-xyz/core",
"openzeppelin-contracts/=lib/the-compact/lib/permit2/lib/openzeppelin-contracts/",
"permit2/=lib/the-compact/lib/permit2/",
"solady/=lib/the-compact/lib/solady/src/",
"soledge/=lib/the-compact/lib/soledge/src/",
"solmate/=lib/the-compact/lib/permit2/lib/solmate/",
"the-compact/=lib/the-compact/",
"tribunal/=lib/tribunal/src/",
"tstorish/=lib/the-compact/lib/tstorish/src/",
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts",
"@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable",
]
42 changes: 42 additions & 0 deletions snapshots/HyperlaneTribunalTest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"basicTransfer": "56867",
"basicWithdrawal": "59992",
"batchClaim": "112512",
"batchClaimRegisteredWithDeposit": "112512",
"batchClaimRegisteredWithDepositWithWitness": "113271",
"batchClaimWithWitness": "113265",
"batchDepositAndRegisterViaPermit2": "222059",
"batchDepositAndRegisterWithWitnessViaPermit2": "222037",
"batchTransfer": "81344",
"batchWithdrawal": "100093",
"claim": "56974",
"claimAndWithdraw": "73432",
"claimWithWitness": "59471",
"depositAndRegisterViaPermit2": "124429",
"depositBatchSingleERC20": "68050",
"depositBatchSingleNative": "28353",
"depositBatchViaPermit2NativeAndERC20": "129751",
"depositBatchViaPermit2SingleERC20": "104905",
"depositERC20AndURI": "67276",
"depositERC20Basic": "67302",
"depositERC20ViaPermit2AndURI": "98471",
"depositETHAndURI": "26754",
"depositETHBasic": "28391",
"qualifiedBatchClaim": "114134",
"qualifiedBatchClaimWithWitness": "113672",
"qualifiedClaim": "60406",
"qualifiedClaimWithWitness": "59098",
"qualifiedSplitBatchClaim": "141486",
"qualifiedSplitBatchClaimWithWitness": "141552",
"qualifiedSplitClaim": "86977",
"qualifiedSplitClaimWithWitness": "87452",
"register": "25379",
"splitBatchClaim": "140788",
"splitBatchClaimWithWitness": "140749",
"splitBatchTransfer": "110652",
"splitBatchWithdrawal": "140361",
"splitClaim": "86751",
"splitClaimWithWitness": "86232",
"splitTransfer": "82482",
"splitWithdrawal": "93770"
}
2 changes: 1 addition & 1 deletion src/HyperlaneTribunal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {Router} from "hyperlane/contracts/client/Router.sol";
error InvalidChainId(uint256 chainId);

string constant WITNESS_TYPESTRING =
"Mandate mandate)Mandate(uint256 chainId,address tribunal,address recipient,uint256 expires,address token,uint256 minimumAmount,uint256 baselinePriorityFee,uint256 scalingFactor,bytes32 salt)";
"Mandate mandate)Mandate(uint256 chainId,address tribunal,address recipient,uint256 expires,address token,uint256 minimumAmount,uint256 baselinePriorityFee,uint256 scalingFactor,uint256[] decayCurve,bytes32 salt)";

// keccak256("TargetBlock(bytes32 claimHash,uint256 targetBlock,uint256 maximumBlocksAfterTarget)")
bytes32 constant QUALIFICATION_TYPEHASH = 0x1abbddc6baae2ef20428b15d51b5e9b940797d8a967d0bf674fcfe1f8e71afc5;
Expand Down
Loading