From 3e147d49803085354f4b3745b04a0c431cf71da6 Mon Sep 17 00:00:00 2001 From: 0age <37939117+0age@users.noreply.github.com> Date: Sun, 3 Nov 2024 15:48:04 -0800 Subject: [PATCH] so many failed attempts lost like tears in the rain --- src/lib/FunctionCastLib.sol | 1294 +---------------------------------- 1 file changed, 14 insertions(+), 1280 deletions(-) diff --git a/src/lib/FunctionCastLib.sol b/src/lib/FunctionCastLib.sol index 98f62d6..e50d04e 100644 --- a/src/lib/FunctionCastLib.sol +++ b/src/lib/FunctionCastLib.sol @@ -71,8 +71,7 @@ import { TransferComponent, SplitByIdComponent, BatchClaimComponent, SplitBatchC * @title FunctionCastLib * @notice Libray contract implementing function casts used throughout the codebase, * particularly as part of processing claims. - * @dev Note that many of these function casts are no longer being used and should be - * removed when time permits. + * @dev Note that some of these function casts may no longer be in use. */ library FunctionCastLib { function usingBasicClaim(function (uint256, uint256, function(uint256, uint256) internal view returns (bytes32)) internal view returns (bytes32) fnIn) @@ -2033,151 +2032,6 @@ library FunctionCastLib { } } - function usingQualifiedSplitClaim(function(uint256, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function(QualifiedSplitClaim calldata, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedClaim(function(uint256, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function(QualifiedClaim calldata, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedClaimWithWitness(function(uint256, uint256) internal view returns (bytes32, bytes32) fnIn) - internal - pure - returns (function(QualifiedClaimWithWitness calldata, uint256) internal view returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitClaimWithWitness(function(uint256, uint256) internal view returns (bytes32, bytes32) fnIn) - internal - pure - returns (function(QualifiedSplitClaimWithWitness calldata, uint256) internal view returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedClaimWithWitness(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns ( - function(QualifiedClaimWithWitness calldata, bytes32, uint256) - internal - pure - returns (bytes32) fnOut - ) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitClaimWithWitness(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns ( - function(QualifiedSplitClaimWithWitness calldata, bytes32, uint256) - internal - pure - returns (bytes32) fnOut - ) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitClaim(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns ( - function(QualifiedSplitClaim calldata, bytes32, uint256) - internal - pure - returns (bytes32) fnOut - ) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchClaim(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns ( - function(QualifiedBatchClaim calldata, bytes32, uint256) - internal - pure - returns (bytes32) fnOut - ) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchClaimWithWitness(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns ( - function(QualifiedBatchClaimWithWitness calldata, bytes32, uint256) - internal - pure - returns (bytes32) fnOut - ) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitBatchClaim(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns ( - function(QualifiedSplitBatchClaim calldata, bytes32, uint256) - internal - pure - returns (bytes32) fnOut - ) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitBatchClaimWithWitness(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns ( - function(QualifiedSplitBatchClaimWithWitness calldata, bytes32, uint256) - internal - pure - returns (bytes32) fnOut - ) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - function usingQualifiedSplitClaimWithWitness(function (QualifiedClaimWithWitness calldata) internal view returns (bytes32, bytes32, bytes32) fnIn) internal pure @@ -2188,62 +2042,6 @@ library FunctionCastLib { } } - function usingQualifiedSplitBatchClaim(function (SplitBatchClaim calldata, SplitBatchClaimComponent[] calldata) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitBatchClaim calldata, SplitBatchClaimComponent[] calldata) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitBatchClaimWithWitness(function (SplitBatchClaimWithWitness calldata, SplitBatchClaimComponent[] calldata) internal view returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitBatchClaimWithWitness calldata, SplitBatchClaimComponent[] calldata) internal view returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchClaim(function(BatchClaim calldata, BatchClaimComponent[] calldata) internal view returns (bytes32) fnIn) - internal - pure - returns (function(QualifiedBatchClaim calldata, BatchClaimComponent[] calldata) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchClaimWithWitness(function(BatchClaimWithWitness calldata, bytes32) internal view returns (bytes32, bytes32) fnIn) - internal - pure - returns (function(QualifiedBatchClaimWithWitness calldata, bytes32) internal view returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitBatchClaimWithWitness(function(BatchClaimWithWitness calldata, bytes32) internal view returns (bytes32, bytes32) fnIn) - internal - pure - returns (function(QualifiedSplitBatchClaimWithWitness calldata, bytes32) internal view returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitClaim(function (uint256, uint256) internal view returns (bytes32) fnIn) internal pure returns (function (SplitClaim calldata, uint256) internal view returns (bytes32) fnOut) { - assembly ("memory-safe") { - fnOut := fnIn - } - } - function usingSplitClaimWithWitness(function (uint256, uint256) internal view returns (bytes32, bytes32) fnIn) internal pure @@ -2264,44 +2062,6 @@ library FunctionCastLib { } } - function usingClaimWithWitness(function (bytes32, BasicClaim calldata, address) internal view fnIn) - internal - pure - returns (function (bytes32, ClaimWithWitness calldata, address) internal view fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitClaimWithWitness(function(bytes32, BasicClaim calldata, address) internal view fnIn) - internal - pure - returns (function(bytes32, SplitClaimWithWitness calldata, address) internal view fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitClaim(function(bytes32, BasicClaim calldata, address) internal view fnIn) internal pure returns (function(bytes32, SplitClaim calldata, address) internal view fnOut) { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingBatchClaim(function(bytes32, BasicClaim calldata, address) internal view fnIn) internal pure returns (function(bytes32, BatchClaim calldata, address) internal view fnOut) { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingBatchClaim(function (uint256, uint256) internal view returns (bytes32) fnIn) internal pure returns (function (BatchClaim calldata, uint256) internal view returns (bytes32) fnOut) { - assembly ("memory-safe") { - fnOut := fnIn - } - } - function usingBatchClaimWithWitness(function (uint256, uint256) internal view returns (bytes32, bytes32) fnIn) internal pure @@ -2312,46 +2072,6 @@ library FunctionCastLib { } } - function usingQualifiedBatchClaim(function (uint256, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedBatchClaim calldata, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchClaimWithWitness(function (uint256, uint256) internal view returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (QualifiedBatchClaimWithWitness calldata, uint256) internal view returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitBatchClaim(function (uint256, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (SplitBatchClaim calldata, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitBatchClaim(function (uint256, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitBatchClaim calldata, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - function usingSplitBatchClaimWithWitness(function (uint256, uint256) internal view returns (bytes32, bytes32) fnIn) internal pure @@ -2362,1033 +2082,67 @@ library FunctionCastLib { } } - function usingQualifiedSplitBatchClaimWithWitness(function (uint256, uint256) internal view returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitBatchClaimWithWitness calldata, uint256) internal view returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitBatchClaim(function(bytes32, BasicClaim calldata, address) internal view fnIn) - internal - pure - returns (function(bytes32, SplitBatchClaim calldata, address) internal view fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitBatchClaimWithWitness(function(bytes32, BasicClaim calldata, address) internal view fnIn) - internal - pure - returns (function(bytes32, SplitBatchClaimWithWitness calldata, address) internal view fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingBatchClaimWithWitness(function(bytes32, BasicClaim calldata, address) internal view fnIn) - internal - pure - returns (function(bytes32, BatchClaimWithWitness calldata, address) internal view fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitClaim(function(QualifiedClaim calldata) internal returns (bytes32, address) fnIn) + function usingExogenousQualifiedMultichainClaim(function(uint256, uint256) internal pure returns (uint256) fnIn) internal pure - returns (function(QualifiedSplitClaim calldata) internal returns (bytes32, address) fnOut) + returns (function(ExogenousQualifiedMultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) { assembly ("memory-safe") { fnOut := fnIn } } - function usingQualifiedClaimWithWitness(function (bytes32, bytes32, QualifiedClaim calldata, address) internal view fnIn) + function usingQualifiedMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) internal pure - returns (function (bytes32, bytes32, QualifiedClaimWithWitness calldata, address) internal view fnOut) + returns (function (QualifiedMultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) { assembly ("memory-safe") { fnOut := fnIn } } - function usingQualifiedBatchClaim(function (bytes32, bytes32, QualifiedClaim calldata, address) internal view fnIn) + function usingQualifiedMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) internal pure - returns (function (bytes32, bytes32, QualifiedBatchClaim calldata, address) internal view fnOut) + returns (function (QualifiedMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) { assembly ("memory-safe") { fnOut := fnIn } } - function usingQualifiedSplitBatchClaim(function (bytes32, bytes32, QualifiedClaim calldata, address) internal view fnIn) + function usingExogenousQualifiedMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) internal pure - returns (function (bytes32, bytes32, QualifiedSplitBatchClaim calldata, address) internal view fnOut) + returns (function (ExogenousQualifiedMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) { assembly ("memory-safe") { fnOut := fnIn } } - function usingQualifiedBatchClaimWithWitness(function (bytes32, bytes32, QualifiedClaim calldata, address) internal view fnIn) + function usingMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) internal pure - returns (function (bytes32, bytes32, QualifiedBatchClaimWithWitness calldata, address) internal view fnOut) + returns (function (MultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) { assembly ("memory-safe") { fnOut := fnIn } } - function usingQualifiedSplitBatchClaimWithWitness(function (bytes32, bytes32, QualifiedClaim calldata, address) internal view fnIn) + function usingMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) internal pure - returns (function (bytes32, bytes32, QualifiedSplitBatchClaimWithWitness calldata, address) internal view fnOut) + returns (function (MultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) { assembly ("memory-safe") { fnOut := fnIn } } - function usingSplitClaimQualifiedWithWitness(function(QualifiedClaimWithWitness calldata) internal returns (bytes32, address) fnIn) - internal - pure - returns (function(QualifiedSplitClaimWithWitness calldata) internal returns (bytes32, address) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingMultichainClaim(function(bytes32, BasicClaim calldata, address) internal view fnIn) - internal - pure - returns (function(bytes32, MultichainClaim calldata, address) internal view fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingMultichainClaimWithWitness(function(bytes32, BasicClaim calldata, address) internal view fnIn) - internal - pure - returns (function(bytes32, MultichainClaimWithWitness calldata, address) internal view fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function(ExogenousQualifiedMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function(ExogenousQualifiedSplitMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedMultichainClaim(function(uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function(ExogenousQualifiedMultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedMultichainClaim(function(ExogenousMultichainClaim calldata, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function(ExogenousQualifiedMultichainClaim calldata, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedMultichainClaim(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function(ExogenousQualifiedMultichainClaim calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedMultichainClaimWithWitness(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function(ExogenousQualifiedMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitMultichainClaimWithWitness(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function(ExogenousQualifiedSplitMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedBatchMultichainClaimWithWitness(function(uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function(ExogenousQualifiedBatchMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (ExogenousMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousSplitMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (ExogenousSplitMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousBatchMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (ExogenousBatchMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedSplitMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedBatchMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedBatchMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (MultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (QualifiedMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (QualifiedBatchMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitBatchMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitBatchMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitBatchMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (SplitBatchMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitBatchMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedSplitBatchMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousSplitBatchMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (ExogenousSplitBatchMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitBatchClaimWithWitness(function(BatchClaimWithWitness calldata, bytes32) internal view returns (bytes32, bytes32) fnIn) - internal - pure - returns (function( SplitBatchClaimWithWitness calldata, bytes32) internal view returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (QualifiedMultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedMultichainClaim(function (uint256, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedMultichainClaim calldata, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedBatchMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (QualifiedMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (QualifiedSplitMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (QualifiedBatchMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (QualifiedSplitMultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (QualifiedBatchMultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (ExogenousQualifiedSplitMultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedBatchMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (ExogenousQualifiedBatchMultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (ExogenousQualifiedMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (ExogenousQualifiedSplitMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedBatchMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (ExogenousQualifiedBatchMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingBasicClaim(function (uint256, uint256) internal view returns (bytes32) fnIn) internal pure returns (function (BasicClaim calldata, uint256) internal view returns (bytes32) fnOut) { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedClaim(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedClaim calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedMultichainClaimWithWitness(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitMultichainClaimWithWitness(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchMultichainClaimWithWitness(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedBatchMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitBatchMultichainClaimWithWitness(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitBatchMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitBatchMultichainClaim(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitBatchMultichainClaim calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitBatchMultichainClaimWithWitness(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedSplitBatchMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitBatchMultichainClaim(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedSplitBatchMultichainClaim calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedMultichainClaim(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedMultichainClaim calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (SplitMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedBatchMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedBatchMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedBatchMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (MultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingBatchMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (BatchMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitBatchMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (SplitBatchMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitBatchMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitBatchMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitBatchMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitBatchMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitBatchMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (SplitBatchMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitBatchMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedSplitBatchMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitBatchMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedSplitBatchMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousSplitBatchMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousSplitBatchMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (MultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (SplitMultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedSplitMultichainClaim(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedSplitMultichainClaim calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingQualifiedBatchMultichainClaim(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (QualifiedBatchMultichainClaim calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitMultichainClaim(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedSplitMultichainClaim calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedBatchMultichainClaim(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedBatchMultichainClaim calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousSplitMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousSplitMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousBatchMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousBatchMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedSplitMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedSplitMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousQualifiedBatchMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousQualifiedBatchMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousSplitMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousSplitMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousBatchMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousBatchMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousSplitBatchMultichainClaim(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousSplitBatchMultichainClaim calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousSplitMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (ExogenousSplitMultichainClaim calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousMultichainClaimWithWitness(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousSplitMultichainClaimWithWitness(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousSplitMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousBatchMultichainClaimWithWitness(function (uint256, bytes32, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (ExogenousBatchMultichainClaimWithWitness calldata, bytes32, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (MultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (SplitMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingBatchMultichainClaimWithWitness(function (uint256, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnIn) - internal - pure - returns (function (BatchMultichainClaimWithWitness calldata, uint256, bytes32, bytes32, uint256) internal view returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (MultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (SplitMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingBatchMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (bytes32) fnIn) - internal - pure - returns (function (BatchMultichainClaimWithWitness calldata, uint256) internal pure returns (bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingSplitMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (SplitMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingBatchMultichainClaimWithWitness(function (uint256) internal pure returns (bytes32, bytes32) fnIn) - internal - pure - returns (function (BatchMultichainClaimWithWitness calldata) internal pure returns (bytes32, bytes32) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) + function usingExogenousMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) internal pure returns (function (ExogenousMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) @@ -3398,26 +2152,6 @@ library FunctionCastLib { } } - function usingExogenousSplitMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (ExogenousSplitMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - - function usingExogenousBatchMultichainClaimWithWitness(function (uint256, uint256) internal pure returns (uint256) fnIn) - internal - pure - returns (function (ExogenousBatchMultichainClaimWithWitness calldata, uint256) internal pure returns (uint256) fnOut) - { - assembly ("memory-safe") { - fnOut := fnIn - } - } - function usingExogenousMultichainClaim(function (uint256, uint256) internal pure returns (uint256) fnIn) internal pure