From 405301f65e1b25b842816048aea465f4c40b8533 Mon Sep 17 00:00:00 2001 From: Filipp Makarov Date: Wed, 11 Dec 2024 12:07:52 +0300 Subject: [PATCH] custom min deposit and vanity create3 address --- contracts/base/BasePaymaster.sol | 3 - .../BiconomySponsorshipPaymaster.sol | 8 --- .../BiconomySponsorshipPaymaster.json | 2 +- .../BiconomySponsorshipPaymaster/verify.json | 2 +- scripts/bash-deploy/deploy-gasdaddy.sh | 24 +++++++- scripts/foundry/DeployGasdaddy.s.sol | 56 +++++++++++++++---- 6 files changed, 68 insertions(+), 27 deletions(-) diff --git a/contracts/base/BasePaymaster.sol b/contracts/base/BasePaymaster.sol index e68a96e..002e56e 100644 --- a/contracts/base/BasePaymaster.sol +++ b/contracts/base/BasePaymaster.sol @@ -9,8 +9,6 @@ import { IPaymaster } from "account-abstraction/interfaces/IPaymaster.sol"; import { IEntryPoint } from "account-abstraction/interfaces/IEntryPoint.sol"; import "account-abstraction/core/UserOperationLib.sol"; -import {console} from "forge-std/console.sol"; - /** * Helper class for creating a paymaster. * provides helper methods for staking. @@ -25,7 +23,6 @@ abstract contract BasePaymaster is IPaymaster, SoladyOwnable { uint256 internal constant _PAYMASTER_DATA_OFFSET = UserOperationLib.PAYMASTER_DATA_OFFSET; constructor(address owner, IEntryPoint entryPointArg) SoladyOwnable(owner) { - console.log("0-0"); _validateEntryPointInterface(entryPointArg); entryPoint = entryPointArg; } diff --git a/contracts/sponsorship/BiconomySponsorshipPaymaster.sol b/contracts/sponsorship/BiconomySponsorshipPaymaster.sol index bf5d99a..19a11aa 100644 --- a/contracts/sponsorship/BiconomySponsorshipPaymaster.sol +++ b/contracts/sponsorship/BiconomySponsorshipPaymaster.sol @@ -14,8 +14,6 @@ import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { SafeTransferLib } from "solady/utils/SafeTransferLib.sol"; import { IBiconomySponsorshipPaymaster } from "../interfaces/IBiconomySponsorshipPaymaster.sol"; -import {console} from "forge-std/console.sol"; - /** * @title BiconomySponsorshipPaymaster * @author livingrockrises @@ -67,19 +65,13 @@ contract BiconomySponsorshipPaymaster is ) BasePaymaster(owner, entryPointArg) { - console.log("0"); _checkConstructorArgs(verifyingSignerArg, feeCollectorArg, unaccountedGasArg); - console.log("1"); assembly ("memory-safe") { sstore(verifyingSigner.slot, verifyingSignerArg) } - console.log("2"); feeCollector = feeCollectorArg; - console.log("3"); unaccountedGas = unaccountedGasArg; - console.log("4"); paymasterIdWithdrawalDelay = paymasterIdWithdrawalDelayArg; - console.log("5"); minDeposit = minDepositArg; } diff --git a/scripts/bash-deploy/artifacts/BiconomySponsorshipPaymaster/BiconomySponsorshipPaymaster.json b/scripts/bash-deploy/artifacts/BiconomySponsorshipPaymaster/BiconomySponsorshipPaymaster.json index 87807b8..b11e16c 100644 --- a/scripts/bash-deploy/artifacts/BiconomySponsorshipPaymaster/BiconomySponsorshipPaymaster.json +++ b/scripts/bash-deploy/artifacts/BiconomySponsorshipPaymaster/BiconomySponsorshipPaymaster.json @@ -1 +1 @@ -{"abi":[{"type":"constructor","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"entryPointArg","type":"address","internalType":"contract IEntryPoint"},{"name":"verifyingSignerArg","type":"address","internalType":"address"},{"name":"feeCollectorArg","type":"address","internalType":"address"},{"name":"unaccountedGasArg","type":"uint256","internalType":"uint256"},{"name":"paymasterIdWithdrawalDelayArg","type":"uint256","internalType":"uint256"},{"name":"minDepositArg","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"receive","stateMutability":"payable"},{"type":"function","name":"addStake","inputs":[{"name":"unstakeDelaySec","type":"uint32","internalType":"uint32"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"cancelOwnershipHandover","inputs":[],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"cancelWithdrawalRequest","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"completeOwnershipHandover","inputs":[{"name":"pendingOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"deposit","inputs":[],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"depositFor","inputs":[{"name":"paymasterId","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"entryPoint","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IEntryPoint"}],"stateMutability":"view"},{"type":"function","name":"executeWithdrawalRequest","inputs":[{"name":"paymasterId","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"feeCollector","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getBalance","inputs":[{"name":"paymasterId","type":"address","internalType":"address"}],"outputs":[{"name":"balance","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getDeposit","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getHash","inputs":[{"name":"userOp","type":"tuple","internalType":"struct PackedUserOperation","components":[{"name":"sender","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"initCode","type":"bytes","internalType":"bytes"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"accountGasLimits","type":"bytes32","internalType":"bytes32"},{"name":"preVerificationGas","type":"uint256","internalType":"uint256"},{"name":"gasFees","type":"bytes32","internalType":"bytes32"},{"name":"paymasterAndData","type":"bytes","internalType":"bytes"},{"name":"signature","type":"bytes","internalType":"bytes"}]},{"name":"paymasterId","type":"address","internalType":"address"},{"name":"validUntil","type":"uint48","internalType":"uint48"},{"name":"validAfter","type":"uint48","internalType":"uint48"},{"name":"priceMarkup","type":"uint32","internalType":"uint32"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"minDeposit","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"owner","inputs":[],"outputs":[{"name":"result","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"ownershipHandoverExpiresAt","inputs":[{"name":"pendingOwner","type":"address","internalType":"address"}],"outputs":[{"name":"result","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"parsePaymasterAndData","inputs":[{"name":"paymasterAndData","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"paymasterId","type":"address","internalType":"address"},{"name":"validUntil","type":"uint48","internalType":"uint48"},{"name":"validAfter","type":"uint48","internalType":"uint48"},{"name":"priceMarkup","type":"uint32","internalType":"uint32"},{"name":"paymasterValidationGasLimit","type":"uint128","internalType":"uint128"},{"name":"paymasterPostOpGasLimit","type":"uint128","internalType":"uint128"},{"name":"signature","type":"bytes","internalType":"bytes"}],"stateMutability":"pure"},{"type":"function","name":"paymasterIdBalances","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"paymasterIdWithdrawalDelay","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"postOp","inputs":[{"name":"mode","type":"uint8","internalType":"enum IPaymaster.PostOpMode"},{"name":"context","type":"bytes","internalType":"bytes"},{"name":"actualGasCost","type":"uint256","internalType":"uint256"},{"name":"actualUserOpFeePerGas","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"refundBalances","inputs":[{"name":"paymasterIds","type":"address[]","internalType":"address[]"},{"name":"amounts","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"renounceOwnership","inputs":[],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"requestOwnershipHandover","inputs":[],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setFeeCollector","inputs":[{"name":"newFeeCollector","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setMinDeposit","inputs":[{"name":"newMinDeposit","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setSigner","inputs":[{"name":"newVerifyingSigner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setTrustedPaymasterId","inputs":[{"name":"paymasterId","type":"address","internalType":"address"},{"name":"isTrusted","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setUnaccountedGas","inputs":[{"name":"value","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"submitWithdrawalRequest","inputs":[{"name":"withdrawAddress","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"transferOwnership","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"unaccountedGas","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"unlockStake","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"validatePaymasterUserOp","inputs":[{"name":"userOp","type":"tuple","internalType":"struct PackedUserOperation","components":[{"name":"sender","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"initCode","type":"bytes","internalType":"bytes"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"accountGasLimits","type":"bytes32","internalType":"bytes32"},{"name":"preVerificationGas","type":"uint256","internalType":"uint256"},{"name":"gasFees","type":"bytes32","internalType":"bytes32"},{"name":"paymasterAndData","type":"bytes","internalType":"bytes"},{"name":"signature","type":"bytes","internalType":"bytes"}]},{"name":"userOpHash","type":"bytes32","internalType":"bytes32"},{"name":"maxCost","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"context","type":"bytes","internalType":"bytes"},{"name":"validationData","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"function","name":"verifyingSigner","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"withdrawERC20","inputs":[{"name":"token","type":"address","internalType":"contract IERC20"},{"name":"target","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"withdrawEth","inputs":[{"name":"recipient","type":"address","internalType":"address payable"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"withdrawStake","inputs":[{"name":"withdrawAddress","type":"address","internalType":"address payable"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"withdrawTo","inputs":[{"name":"withdrawAddress","type":"address","internalType":"address payable"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"EthWithdrawn","inputs":[{"name":"recipient","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"FeeCollectorChanged","inputs":[{"name":"oldFeeCollector","type":"address","indexed":true,"internalType":"address"},{"name":"newFeeCollector","type":"address","indexed":true,"internalType":"address"},{"name":"actor","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"FixedPriceMarkupChanged","inputs":[{"name":"oldValue","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"newValue","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"GasBalanceDeducted","inputs":[{"name":"_paymasterId","type":"address","indexed":true,"internalType":"address"},{"name":"_charge","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"_premium","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"GasDeposited","inputs":[{"name":"_paymasterId","type":"address","indexed":true,"internalType":"address"},{"name":"_value","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"GasWithdrawn","inputs":[{"name":"_paymasterId","type":"address","indexed":true,"internalType":"address"},{"name":"_to","type":"address","indexed":true,"internalType":"address"},{"name":"_value","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"MinDepositChanged","inputs":[{"name":"oldValue","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"newValue","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"OwnershipHandoverCanceled","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"OwnershipHandoverRequested","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"name":"oldOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"Received","inputs":[{"name":"sender","type":"address","indexed":true,"internalType":"address"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"TokensWithdrawn","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"actor","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"TrustedPaymasterIdSet","inputs":[{"name":"paymasterId","type":"address","indexed":true,"internalType":"address"},{"name":"isTrusted","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"UnaccountedGasChanged","inputs":[{"name":"oldValue","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"newValue","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"VerifyingSignerChanged","inputs":[{"name":"oldSigner","type":"address","indexed":true,"internalType":"address"},{"name":"newSigner","type":"address","indexed":true,"internalType":"address"},{"name":"actor","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"WithdrawalRequestCancelledFor","inputs":[{"name":"paymasterId","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"WithdrawalRequestSubmitted","inputs":[{"name":"withdrawAddress","type":"address","indexed":false,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"AlreadyInitialized","inputs":[]},{"type":"error","name":"CanNotWithdrawToZeroAddress","inputs":[]},{"type":"error","name":"CanNotWithdrawZeroAmount","inputs":[]},{"type":"error","name":"DepositCanNotBeZero","inputs":[]},{"type":"error","name":"FeeCollectorCanNotBeContract","inputs":[]},{"type":"error","name":"FeeCollectorCanNotBeZero","inputs":[]},{"type":"error","name":"InsufficientFunds","inputs":[]},{"type":"error","name":"InsufficientFundsForPaymasterId","inputs":[]},{"type":"error","name":"InsufficientFundsInGasTank","inputs":[]},{"type":"error","name":"InvalidArrayLengths","inputs":[]},{"type":"error","name":"InvalidPriceMarkup","inputs":[]},{"type":"error","name":"InvalidSignatureLength","inputs":[]},{"type":"error","name":"LowDeposit","inputs":[]},{"type":"error","name":"NewOwnerIsZeroAddress","inputs":[]},{"type":"error","name":"NoHandoverRequest","inputs":[]},{"type":"error","name":"NoRequestSubmitted","inputs":[]},{"type":"error","name":"PaymasterIdCanNotBeZero","inputs":[]},{"type":"error","name":"PostOpGasLimitTooLow","inputs":[]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"RequestNotClearedYet","inputs":[{"name":"clearanceTime","type":"uint256","internalType":"uint256"}]},{"type":"error","name":"SubmitRequestInstead","inputs":[]},{"type":"error","name":"UnaccountedGasTooHigh","inputs":[]},{"type":"error","name":"Unauthorized","inputs":[]},{"type":"error","name":"UseDepositForInstead","inputs":[]},{"type":"error","name":"VerifyingSignerCanNotBeContract","inputs":[]},{"type":"error","name":"VerifyingSignerCanNotBeZero","inputs":[]},{"type":"error","name":"WithdrawalFailed","inputs":[]}],"bytecode":{"object":"0x60a0604052346100b55760e0612101803803809161001c826100cd565b60a039126100b55761006c60a0516100338161011b565b60c05161003f8161011b565b60e05161004b8161011b565b610100516100588161011b565b6101205191610140519361016051956101bf565b604051611c66908161049b8239608051818181610528015281816105d90152818161066e015281816106dd0152818161079301528181611161015281816113f7015261187a0152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b60a0601f91909101601f19168101906001600160401b038211908210176100f357604052565b6100b9565b601f909101601f19168101906001600160401b038211908210176100f357604052565b6001600160a01b038116036100b557565b6040519061013b6040836100f8565b60018252565b61014961012c565b90600360fc1b6020830152565b61015e61012c565b90603160f81b6020830152565b61017361012c565b90601960f91b6020830152565b61018861012c565b90603360f81b6020830152565b61019d61012c565b90600d60fa1b6020830152565b6101b261012c565b90603560f81b6020830152565b95949295939091938060601b156102d0576001600160a01b0316638b78c6d8198190556102ce966102be956102ae9461029e935f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a361023d6040516102286040826100f8565b60038152620302d360ec1b60208201526102dd565b6102468161040b565b608052610259610254610141565b6102dd565b610264848383610341565b61026f610254610156565b5f5561027c61025461016b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6102a9610254610180565b600255565b6102b9610254610195565b600355565b6102c96102546101aa565b600455565b565b637448fbae5f526004601cfd5b5f809160405161032e60648260208082019563104c13eb60e21b87528160248401528051918291826044860152018484015e86838284010152601f801991011681010301601f1981018352826100f8565b51906a636f6e736f6c652e6c6f675afa50565b6001600160a01b03811661035e576381618de160e01b5f5260045ffd5b3b156103735763edc30c2760e01b5f5260045ffd5b6001600160a01b03811661039057633fd0943d60e11b5f5260045ffd5b3b156103a557631f47525f60e21b5f5260045ffd5b620186a0106103b057565b63313db2a560e11b5f5260045ffd5b156103c657565b60405162461bcd60e51b815260206004820152601e60248201527f49456e747279506f696e7420696e74657266616365206d69736d6174636800006044820152606490fd5b6040516301ffc9a760e01b815263122a0e9b60e31b600482015290602090829060249082906001600160a01b03165afa801561048f575f90610452575b6102ce91506103bf565b506020813d602011610487575b8161046c602093836100f8565b810103126100b5575180151581036100b5576102ce90610448565b3d915061045f565b6040513d5f823e3d90fdfe60806040526004361015610046575b3615610018575f80fd5b6040513481527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587460203392a2005b5f5f3560e01c80630396cb60146113c75780631b9a91a414611302578063205c2878146112d857806323d9ac9b146112b257806325692962146112675780633261fd581461107557806341b3d1851461105757806344004cc114610f5057806352b7512c14610ecb57806354d1f13d14610e8557806359ffb13014610d845780636c19e78314610cfc578063715018a614610cb157806373acf54214610c525780637c627b2114610b005780638c253a3914610a4c5780638da5cb5b14610a215780638fcc9cfb146109db57806394d4ad6014610917578063a40a7ddc146102ef578063a42dce8014610874578063aa67c9191461071f578063ab94cad714610701578063b0d691fe146106bd578063bb9fe6bf1461064a578063c23a5cea146105ac578063c399ec88146104fc578063c415b95c146104d5578063d0e30db0146104ba578063def042571461042a578063e714a028146103d2578063f04e283e14610384578063f0c12a3214610366578063f2fde38b14610327578063f8b2cb4f146102ef578063f8cf826d1461021d5763fee81cf4146101e8575061000e565b3461021a57602036600319011261021a57610201611467565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b50604036600319011261021a5760043567ffffffffffffffff81116102eb5761024a9036906004016114c1565b9060243567ffffffffffffffff81116102e75761026b9036906004016114c1565b906102746117d3565b8184036102d857845b848110610288578580f35b6102938184846117af565b35906102a08187876117af565b35916001600160a01b0383168093036102d457600192885260056020526102cc60408920918254611560565b90550161027d565b8780fd5b63a9854bc960e01b8552600485fd5b8380fd5b5080fd5b503461021a57602036600319011261021a5760406020916001600160a01b03610316611467565b168152600583522054604051908152f35b50602036600319011261021a5761033c611467565b6103446117d3565b8060601b156103595761035690611c1b565b80f35b637448fbae82526004601cfd5b503461021a578060031936011261021a576020600354604051908152f35b50602036600319011261021a57610399611467565b6103a16117d3565b63389a75e1600c528082526020600c20805442116103c55790826103569255611c1b565b636f5e881883526004601cfd5b503461021a578060031936011261021a5733815260076020525f60026040832082815582600182015501557fe227a0e51918df92c3a9837808b4825847fa7c14cbacd937b650c337e91712416020604051338152a180f35b503461021a5760a036600319011261021a5760043567ffffffffffffffff81116102eb5761012060031982360301126102eb5761046561147d565b6044359065ffffffffffff821682036102e7576064359265ffffffffffff841684036104b6576084359463ffffffff8616860361021a5760206104ae87878787876004016116b3565b604051908152f35b8480fd5b508060031936011261021a5763302076c960e01b8152600490fd5b503461021a578060031936011261021a5760206001600160a01b0360015416604051908152f35b503461021a578060031936011261021a576040516370a0823160e01b81523060048201526020816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa9081156105a157829161056b575b602082604051908152f35b90506020813d602011610599575b8161058660209383611522565b810103126102eb5760209150515f610560565b3d9150610579565b6040513d84823e3d90fd5b503461021a57602036600319011261021a57806105c7611467565b6105cf6117d3565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690813b15610646576001600160a01b036024849283604051958694859363611d2e7560e11b85521660048401525af180156105a1576106355750f35b8161063f91611522565b61021a5780f35b5050fd5b503461021a578060031936011261021a576106636117d3565b806001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016803b156106ba5781809160046040518094819363bb9fe6bf60e01b83525af180156105a1576106355750f35b50fd5b503461021a578060031936011261021a5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b503461021a578060031936011261021a576020600254604051908152f35b50602036600319011261021a576001600160a01b0361073c611467565b6107446117ef565b168015610865573415610856578082526005602052610767346040842054611560565b6004541161084757808252600560205260408220610786348254611560565b9055816001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016803b156102eb57816024916040519283809263b760faf960e01b825230600483015234905af180156105a157610832575b505034907f1dbbf474736d6415d6a265fabee708fe6e988f6fd0c9d870ded36cab380898dd8380a3807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b8161083c91611522565b6102eb57815f6107e4565b6305d163b560e11b8252600482fd5b6333a6177160e11b8252600482fd5b63016e7bd760e61b8252600482fd5b50602036600319011261021a57610889611467565b6108916117d3565b803b610908576001600160a01b031680156108f957600154908073ffffffffffffffffffffffffffffffffffffffff198316176001556001600160a01b033392167fc6bc29e495f43077b898bfa29b8be68f4c836ccf780f9f7782f916dfd3874f158480a480f35b633fd0943d60e11b8252600482fd5b631f47525f60e21b8252600482fd5b503461021a57602036600319011261021a5760043567ffffffffffffffff81116102eb57610949903690600401611493565b610952916115c4565b959794938694604094929451996001600160a01b038b9a168a5265ffffffffffff1660208a015265ffffffffffff16604089015263ffffffff1660608801526001600160801b031660808701526001600160801b031660a086015260c0850160e090528160e08601526101008501378183016101000152601f1990601f01168101036101000190f35b50602036600319011261021a576004356109f36117d3565b806004547fcacd94bd1e7bb1185c816a740d9439bc8eff8159f6f4ffad8d306b5aca2ebd928480a360045580f35b503461021a578060031936011261021a576020638b78c6d819546001600160a01b0360405191168152f35b50604036600319011261021a57610a61611467565b60243590811515809203610afc576001600160a01b0390610a806117d3565b16908115610aed5781835260066020528060ff604085205416151503610aa4578280f35b60207fd20b41feac4c77c85eaf676a2d91056dc1b6ba4cc02253745a3152ca4f23d87991838552600682526040852060ff1981541660ff8316179055604051908152a25f808280f35b63016e7bd760e61b8352600483fd5b8280fd5b503461021a57608036600319011261021a576003600435101561021a5760243567ffffffffffffffff81116102eb57610b3f6060913690600401611493565b90809291610b4b611870565b810103126102eb578035906001600160a01b038216809203610afc5760208101359063ffffffff82168092036102e7576040013591610bb2620f4240610baa610ba3610b9b6064356002546118e7565b604435611560565b94856118e7565b049283611581565b926001600160a01b03600154168552600560205260408520610bd5858254611560565b90558280821115610c2a57610be991611581565b8185526005602052610c0060408620918254611560565b90555b7f683b3fc4c8726e960b5b0aa3838c1071e2a9b7045fcd4dfc953fc1092923f5378480a480f35b90610c3491611581565b8185526005602052610c4b60408620918254611581565b9055610c03565b50602036600319011261021a57600435610c6a6117d3565b620186a08111610ca257600254816002557f33ddf610723ec48e858790576fb3294cc312fcbd937c1475d53e3673145488eb8380a380f35b63313db2a560e11b8252600482fd5b508060031936011261021a57610cc56117d3565b80638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380638b78c6d8195580f35b50602036600319011261021a57610d11611467565b610d196117d3565b803b610d75576001600160a01b0381168015610d66576001600160a01b0383541691835533917fe1f62c0e6d7bb6d470828565415bf2e87dbfea50e52d2d753788b529bd0c6d628480a480f35b6381618de160e01b8352600483fd5b63edc30c2760e01b8252600482fd5b503461021a57604036600319011261021a57610d9e611467565b6001600160a01b03166024358115610e76578015610e6757338352600560205260408320548111610e58577fe1a007fa1edbdbd989490b46b37c8a7342e8f2f1162a20078a80a9528ab0a149916040918251610df9816114f2565b818152600260208201848152858301904282523389526007602052868920935184556001600160a01b036001850191511673ffffffffffffffffffffffffffffffffffffffff198254161790555191015582519182526020820152a180f35b6345f34ee560e01b8352600483fd5b6339d3420560e11b8352600483fd5b6392bc9df360e01b8352600483fd5b508060031936011261021a5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461021a57606036600319011261021a5760043567ffffffffffffffff81116102eb5761012060031982360301126102eb576020610f1a606092610f0e611870565b604435906004016118fa565b604092919251948593604085528051938491826040880152018686015e8383018501526020830152601f01601f19168101030190f35b503461021a57606036600319011261021a576004356001600160a01b0381168091036102eb57610f7e61147d565b60443591610f8a6117d3565b610f926117ef565b6001600160a01b03821691821561104857601452826034526fa9059cbb00000000000000000000000084526020846044601082855af1806001865114161561102a575b50836034527f4e5ba90310f16273bb12f3c33f23905e573b86df58a2895a525285d083bf043f6020604051338152a4807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b3d823b1517101561103b575f610fd5565b6390b8ec1884526004601cfd5b6392bc9df360e01b8552600485fd5b503461021a578060031936011261021a576020600454604051908152f35b503461021a57602036600319011261021a5761108f611467565b6110976117ef565b6001600160a01b03811690818352600760205260408320604051916110bb836114f2565b8154835260026001600160a01b036001840154169260208501938452015460408401908082521561125857516110fa916110f49061184a565b90611560565b8042106112465750828452600560205260408420548251818111156112415750805b8084521561123257825161112f91611581565b8385526005602052604085205582845260076020525f6002604086208281558260018201550155836001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166001600160a01b038351168451823b156102e7576044849283604051958694859363040b850f60e31b8552600485015260248401525af180156105a15761121d575b50506001600160a01b039051169051917f926a144b6fffc1d73f115b81af7ec66a7c12aed0ff73197c39a683753fc1d9258480a4807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b8161122791611522565b6102e757835f6111c3565b6339d3420560e11b8552600485fd5b61111c565b63fb817d3d60e01b8552600452602484fd5b6336fbdb4f60e01b8652600486fd5b508060031936011261021a5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461021a578060031936011261021a576001600160a01b036020915416604051908152f35b503461021a57604036600319011261021a576004906112f5611467565b5063ad42eb9960e01b8152fd5b50604036600319011261021a57611317611467565b6001600160a01b036024359161132b6117d3565b6113336117ef565b168280808085855af13d156113c2573d61134c81611544565b9061135a6040519283611522565b81528460203d92013e5b156113b3577f8455ae6be5d92f1df1c3c1484388e247a36c7e60d72055ae216dbc258f257d4b8380a3807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b6327fcd9d160e01b8352600483fd5b611364565b5060203660031901126114635760043563ffffffff8116809103611463576113ed6117d3565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690813b15611463575f90602460405180948193621cb65b60e51b8352600483015234905af180156114585761144a575080f35b61145691505f90611522565b005b6040513d5f823e3d90fd5b5f80fd5b600435906001600160a01b038216820361146357565b602435906001600160a01b038216820361146357565b9181601f840112156114635782359167ffffffffffffffff8311611463576020838186019501011161146357565b9181601f840112156114635782359167ffffffffffffffff8311611463576020808501948460051b01011161146357565b6060810190811067ffffffffffffffff82111761150e57604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff82111761150e57604052565b67ffffffffffffffff811161150e57601f01601f191660200190565b9190820180921161156d57565b634e487b7160e01b5f52601160045260245ffd5b9190820391821161156d57565b919091356001600160d01b0319811692600681106115aa575050565b6001600160d01b0319929350829060060360031b1b161690565b9190918260481161146357603481013560601c9280604e11611463576115ee60066048840161158e565b60d01c9281605411611463576116086006604e850161158e565b60d01c928260581161146357605481013560e01c926024811061146357601482013560801c926034821061146357602483013560801c92605801916057190190565b903590601e1981360301821215611463570180359067ffffffffffffffff82116114635760200191813603831361146357565b92919261168982611544565b916116976040519384611522565b829481845281830111611463578281602093845f960137010152565b929093916116ce6116c7604086018661164a565b369161167d565b60208151910120946116e66116c7606087018761164a565b60208151910120946116fb60e082018261164a565b6034116114635760405196602088019883356001600160a01b03168a52602084013560408a015260608901526080880152608082013560a08801526014013560c087015260a081013560e087015260c0013561010086015246610120860152306101408601526001600160a01b031661016085015265ffffffffffff1661018084015265ffffffffffff166101a083015263ffffffff166101c08201526101c081526117a96101e082611522565b51902090565b91908110156117bf5760051b0190565b634e487b7160e01b5f52603260045260245ffd5b638b78c6d8195433036117e257565b6382b429005f526004601cfd5b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c61183b5760017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d565b633ee5aeb560e01b5f5260045ffd5b6001600160a01b03165f52600660205260ff60405f20541661186c5760035490565b5f90565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036118a257565b60405162461bcd60e51b815260206004820152601560248201527f53656e646572206e6f7420456e747279506f696e7400000000000000000000006044820152606490fd5b8181029291811591840414171561156d57565b919060609260e0810190611917611911838361164a565b906115c4565b60409198969a95979c9350809250141580611c10575b611c01576002549661193f898761164a565b603411611463576024013560801c8811611bf2576119949061196585898f8e908b6116b3565b6020527b19457468657265756d205369676e6564204d6573736167653a0a33325f52603c60042092369161167d565b915f92604051926020820191805180604014611bb457604114611b7e5750505050505b6001600160a01b03805f54169116145f14611b785760015b15611b385763ffffffff1694621e848086118015611b2c575b611b1d576119f6908361164a565b6034116114635760246001600160801b0391013560801c166001600160801b03608084013516016001600160801b03811161156d576001600160801b03600a911602916001600160801b03831692830361156d57611a7b611a80926110f4620f4240956064611a746001600160801b0360c08d9801351680936118e7565b04986118e7565b6118e7565b046001600160a01b03611a938483611560565b971696875f52600560205260405f205410611b0e5765ffffffffffff60a01b93611ac66001600160d01b03199483611560565b885f526005602052611add60405f20918254611581565b90556040519760208901526040880152606087015260608652611b01608087611522565b60d01b169160a01b161790565b632771c53960e01b5f5260045ffd5b630a02dbf760e21b5f5260045ffd5b50620f424086106119e8565b505050600194955065ffffffffffff60a01b92506001600160d01b0319915060d01b169160a01b16171790604051611b71602082611522565b5f81529190565b5f6119cf565b808401515f1a60205260400151835292935090915b5f52516040526020604060805f60015afa505f81523d1851906040526119b7565b507f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff91929394955060400151601b8160ff1c01602052168352611b93565b630359a00f60e01b5f5260045ffd5b634be6321b60e01b5f5260045ffd5b50604181141561192d565b6001600160a01b031680638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3638b78c6d8195556fea164736f6c634300081b000a","sourceMap":"1577:19210:7:-:0;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1577:19210:7;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;;:::o;:::-;;:::i;:::-;;;;;-1:-1:-1;;1577:19210:7;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;;:::o;:::-;-1:-1:-1;;;;;1577:19210:7;;;;;:::o;:::-;;;;;;;;:::i;:::-;;;;:::o;:::-;;;:::i;:::-;;-1:-1:-1;;;1577:19210:7;;;;:::o;:::-;;;:::i;:::-;;-1:-1:-1;;;1577:19210:7;;;;:::o;:::-;;;:::i;:::-;;-1:-1:-1;;;1577:19210:7;;;;:::o;:::-;;;:::i;:::-;;-1:-1:-1;;;1577:19210:7;;;;:::o;:::-;;;:::i;:::-;;-1:-1:-1;;;1577:19210:7;;;;:::o;:::-;;;:::i;:::-;;-1:-1:-1;;;1577:19210:7;;;;:::o;2636:850::-;;;;;;;;;198:181:10;;;;;;-1:-1:-1;;;;;5710:347:37;-1:-1:-1;;5710:347:37;;;3453:26:7;;3359:58;;3289:34;;3223:30;;-1:-1:-1;5710:347:37;-1:-1:-1;;5710:347:37;1154:18:0;1577:19210:7;;;;;;:::i;:::-;;;;-1:-1:-1;;;1577:19210:7;;;;1154:18:0;:::i;:::-;1211:13;;;:::i;:::-;1235:26;;2952:16:7;1577:19210;;:::i;:::-;2952:16;:::i;:::-;3037:17;;;;;:::i;:::-;3065:16;1577:19210;;:::i;3065:16::-;-1:-1:-1;3091:97:7;3197:16;1577:19210;;:::i;3197:16::-;1577:19210;;;-1:-1:-1;;;;;;1577:19210:7;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;;;3223:30;3263:16;1577:19210;;:::i;3263:16::-;3289:34;1577:19210;;3289:34;3333:16;1577:19210;;:::i;3333:16::-;1577:19210;;;3359:58;3427:16;1577:19210;;:::i;3427:16::-;3453:26;1577:19210;;3453:26;2636:850::o;198:181:10:-;;;;;;;6114:121:11;-1:-1:-1;6114:121:11;;1577:19210:7;;6185:42:11;1577:19210:7;6185:42:11;;;;;;;;;;;;;;;1577:19210:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6185:42:11;;1577:19210:7;;6185:42:11;;;;;;:::i;:::-;1577:19210:7;762:159:11;131:42;762:159;;;6114:121::o;19585:708:7:-;-1:-1:-1;;;;;1577:19210:7;;;;19829:29;;;19804:1;19829:29;;19804:1;19829:29;19770:517;6297:74:0;6387:8;19879:31:7;;19933:33;;;19804:1;19933:33;;19804:1;19933:33;19875:412;-1:-1:-1;;;;;1577:19210:7;;;;20039:26;;;19804:1;20039:26;;19804:1;20039:26;19983:304;6297:74:0;6387:8;20086:28:7;;20137:30;;;19804:1;20137:30;;19804:1;20137:30;20082:205;2419:7;-1:-1:-1;20184:103:7;;19585:708::o;20184:103::-;20253:23;;;19804:1;20253:23;;19804:1;20253:23;1577:19210;;;;:::o;:::-;;;-1:-1:-1;;;1577:19210:7;;;;;;;;;;;;;;;;;;;;3806:256:0;1577:19210:7;;-1:-1:-1;;;3919:80:0;;-1:-1:-1;;;3919:80:0;;;1577:19210:7;;;;;;3919:80:0;;1577:19210:7;;-1:-1:-1;;;;;1577:19210:7;3919:80:0;;;;;;-1:-1:-1;3919:80:0;;;3806:256;3898:157;;;;:::i;3919:80::-;;1577:19210:7;3919:80:0;;1577:19210:7;3919:80:0;;;;;;1577:19210:7;3919:80:0;;;:::i;:::-;;;1577:19210:7;;;;;;;;;;;;3898:157:0;;3919:80;;;;;-1:-1:-1;3919:80:0;;;1577:19210:7;;;-1:-1:-1;1577:19210:7;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x60806040526004361015610046575b3615610018575f80fd5b6040513481527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587460203392a2005b5f5f3560e01c80630396cb60146113c75780631b9a91a414611302578063205c2878146112d857806323d9ac9b146112b257806325692962146112675780633261fd581461107557806341b3d1851461105757806344004cc114610f5057806352b7512c14610ecb57806354d1f13d14610e8557806359ffb13014610d845780636c19e78314610cfc578063715018a614610cb157806373acf54214610c525780637c627b2114610b005780638c253a3914610a4c5780638da5cb5b14610a215780638fcc9cfb146109db57806394d4ad6014610917578063a40a7ddc146102ef578063a42dce8014610874578063aa67c9191461071f578063ab94cad714610701578063b0d691fe146106bd578063bb9fe6bf1461064a578063c23a5cea146105ac578063c399ec88146104fc578063c415b95c146104d5578063d0e30db0146104ba578063def042571461042a578063e714a028146103d2578063f04e283e14610384578063f0c12a3214610366578063f2fde38b14610327578063f8b2cb4f146102ef578063f8cf826d1461021d5763fee81cf4146101e8575061000e565b3461021a57602036600319011261021a57610201611467565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b50604036600319011261021a5760043567ffffffffffffffff81116102eb5761024a9036906004016114c1565b9060243567ffffffffffffffff81116102e75761026b9036906004016114c1565b906102746117d3565b8184036102d857845b848110610288578580f35b6102938184846117af565b35906102a08187876117af565b35916001600160a01b0383168093036102d457600192885260056020526102cc60408920918254611560565b90550161027d565b8780fd5b63a9854bc960e01b8552600485fd5b8380fd5b5080fd5b503461021a57602036600319011261021a5760406020916001600160a01b03610316611467565b168152600583522054604051908152f35b50602036600319011261021a5761033c611467565b6103446117d3565b8060601b156103595761035690611c1b565b80f35b637448fbae82526004601cfd5b503461021a578060031936011261021a576020600354604051908152f35b50602036600319011261021a57610399611467565b6103a16117d3565b63389a75e1600c528082526020600c20805442116103c55790826103569255611c1b565b636f5e881883526004601cfd5b503461021a578060031936011261021a5733815260076020525f60026040832082815582600182015501557fe227a0e51918df92c3a9837808b4825847fa7c14cbacd937b650c337e91712416020604051338152a180f35b503461021a5760a036600319011261021a5760043567ffffffffffffffff81116102eb5761012060031982360301126102eb5761046561147d565b6044359065ffffffffffff821682036102e7576064359265ffffffffffff841684036104b6576084359463ffffffff8616860361021a5760206104ae87878787876004016116b3565b604051908152f35b8480fd5b508060031936011261021a5763302076c960e01b8152600490fd5b503461021a578060031936011261021a5760206001600160a01b0360015416604051908152f35b503461021a578060031936011261021a576040516370a0823160e01b81523060048201526020816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa9081156105a157829161056b575b602082604051908152f35b90506020813d602011610599575b8161058660209383611522565b810103126102eb5760209150515f610560565b3d9150610579565b6040513d84823e3d90fd5b503461021a57602036600319011261021a57806105c7611467565b6105cf6117d3565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690813b15610646576001600160a01b036024849283604051958694859363611d2e7560e11b85521660048401525af180156105a1576106355750f35b8161063f91611522565b61021a5780f35b5050fd5b503461021a578060031936011261021a576106636117d3565b806001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016803b156106ba5781809160046040518094819363bb9fe6bf60e01b83525af180156105a1576106355750f35b50fd5b503461021a578060031936011261021a5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b503461021a578060031936011261021a576020600254604051908152f35b50602036600319011261021a576001600160a01b0361073c611467565b6107446117ef565b168015610865573415610856578082526005602052610767346040842054611560565b6004541161084757808252600560205260408220610786348254611560565b9055816001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016803b156102eb57816024916040519283809263b760faf960e01b825230600483015234905af180156105a157610832575b505034907f1dbbf474736d6415d6a265fabee708fe6e988f6fd0c9d870ded36cab380898dd8380a3807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b8161083c91611522565b6102eb57815f6107e4565b6305d163b560e11b8252600482fd5b6333a6177160e11b8252600482fd5b63016e7bd760e61b8252600482fd5b50602036600319011261021a57610889611467565b6108916117d3565b803b610908576001600160a01b031680156108f957600154908073ffffffffffffffffffffffffffffffffffffffff198316176001556001600160a01b033392167fc6bc29e495f43077b898bfa29b8be68f4c836ccf780f9f7782f916dfd3874f158480a480f35b633fd0943d60e11b8252600482fd5b631f47525f60e21b8252600482fd5b503461021a57602036600319011261021a5760043567ffffffffffffffff81116102eb57610949903690600401611493565b610952916115c4565b959794938694604094929451996001600160a01b038b9a168a5265ffffffffffff1660208a015265ffffffffffff16604089015263ffffffff1660608801526001600160801b031660808701526001600160801b031660a086015260c0850160e090528160e08601526101008501378183016101000152601f1990601f01168101036101000190f35b50602036600319011261021a576004356109f36117d3565b806004547fcacd94bd1e7bb1185c816a740d9439bc8eff8159f6f4ffad8d306b5aca2ebd928480a360045580f35b503461021a578060031936011261021a576020638b78c6d819546001600160a01b0360405191168152f35b50604036600319011261021a57610a61611467565b60243590811515809203610afc576001600160a01b0390610a806117d3565b16908115610aed5781835260066020528060ff604085205416151503610aa4578280f35b60207fd20b41feac4c77c85eaf676a2d91056dc1b6ba4cc02253745a3152ca4f23d87991838552600682526040852060ff1981541660ff8316179055604051908152a25f808280f35b63016e7bd760e61b8352600483fd5b8280fd5b503461021a57608036600319011261021a576003600435101561021a5760243567ffffffffffffffff81116102eb57610b3f6060913690600401611493565b90809291610b4b611870565b810103126102eb578035906001600160a01b038216809203610afc5760208101359063ffffffff82168092036102e7576040013591610bb2620f4240610baa610ba3610b9b6064356002546118e7565b604435611560565b94856118e7565b049283611581565b926001600160a01b03600154168552600560205260408520610bd5858254611560565b90558280821115610c2a57610be991611581565b8185526005602052610c0060408620918254611560565b90555b7f683b3fc4c8726e960b5b0aa3838c1071e2a9b7045fcd4dfc953fc1092923f5378480a480f35b90610c3491611581565b8185526005602052610c4b60408620918254611581565b9055610c03565b50602036600319011261021a57600435610c6a6117d3565b620186a08111610ca257600254816002557f33ddf610723ec48e858790576fb3294cc312fcbd937c1475d53e3673145488eb8380a380f35b63313db2a560e11b8252600482fd5b508060031936011261021a57610cc56117d3565b80638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380638b78c6d8195580f35b50602036600319011261021a57610d11611467565b610d196117d3565b803b610d75576001600160a01b0381168015610d66576001600160a01b0383541691835533917fe1f62c0e6d7bb6d470828565415bf2e87dbfea50e52d2d753788b529bd0c6d628480a480f35b6381618de160e01b8352600483fd5b63edc30c2760e01b8252600482fd5b503461021a57604036600319011261021a57610d9e611467565b6001600160a01b03166024358115610e76578015610e6757338352600560205260408320548111610e58577fe1a007fa1edbdbd989490b46b37c8a7342e8f2f1162a20078a80a9528ab0a149916040918251610df9816114f2565b818152600260208201848152858301904282523389526007602052868920935184556001600160a01b036001850191511673ffffffffffffffffffffffffffffffffffffffff198254161790555191015582519182526020820152a180f35b6345f34ee560e01b8352600483fd5b6339d3420560e11b8352600483fd5b6392bc9df360e01b8352600483fd5b508060031936011261021a5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461021a57606036600319011261021a5760043567ffffffffffffffff81116102eb5761012060031982360301126102eb576020610f1a606092610f0e611870565b604435906004016118fa565b604092919251948593604085528051938491826040880152018686015e8383018501526020830152601f01601f19168101030190f35b503461021a57606036600319011261021a576004356001600160a01b0381168091036102eb57610f7e61147d565b60443591610f8a6117d3565b610f926117ef565b6001600160a01b03821691821561104857601452826034526fa9059cbb00000000000000000000000084526020846044601082855af1806001865114161561102a575b50836034527f4e5ba90310f16273bb12f3c33f23905e573b86df58a2895a525285d083bf043f6020604051338152a4807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b3d823b1517101561103b575f610fd5565b6390b8ec1884526004601cfd5b6392bc9df360e01b8552600485fd5b503461021a578060031936011261021a576020600454604051908152f35b503461021a57602036600319011261021a5761108f611467565b6110976117ef565b6001600160a01b03811690818352600760205260408320604051916110bb836114f2565b8154835260026001600160a01b036001840154169260208501938452015460408401908082521561125857516110fa916110f49061184a565b90611560565b8042106112465750828452600560205260408420548251818111156112415750805b8084521561123257825161112f91611581565b8385526005602052604085205582845260076020525f6002604086208281558260018201550155836001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166001600160a01b038351168451823b156102e7576044849283604051958694859363040b850f60e31b8552600485015260248401525af180156105a15761121d575b50506001600160a01b039051169051917f926a144b6fffc1d73f115b81af7ec66a7c12aed0ff73197c39a683753fc1d9258480a4807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b8161122791611522565b6102e757835f6111c3565b6339d3420560e11b8552600485fd5b61111c565b63fb817d3d60e01b8552600452602484fd5b6336fbdb4f60e01b8652600486fd5b508060031936011261021a5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461021a578060031936011261021a576001600160a01b036020915416604051908152f35b503461021a57604036600319011261021a576004906112f5611467565b5063ad42eb9960e01b8152fd5b50604036600319011261021a57611317611467565b6001600160a01b036024359161132b6117d3565b6113336117ef565b168280808085855af13d156113c2573d61134c81611544565b9061135a6040519283611522565b81528460203d92013e5b156113b3577f8455ae6be5d92f1df1c3c1484388e247a36c7e60d72055ae216dbc258f257d4b8380a3807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b6327fcd9d160e01b8352600483fd5b611364565b5060203660031901126114635760043563ffffffff8116809103611463576113ed6117d3565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690813b15611463575f90602460405180948193621cb65b60e51b8352600483015234905af180156114585761144a575080f35b61145691505f90611522565b005b6040513d5f823e3d90fd5b5f80fd5b600435906001600160a01b038216820361146357565b602435906001600160a01b038216820361146357565b9181601f840112156114635782359167ffffffffffffffff8311611463576020838186019501011161146357565b9181601f840112156114635782359167ffffffffffffffff8311611463576020808501948460051b01011161146357565b6060810190811067ffffffffffffffff82111761150e57604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff82111761150e57604052565b67ffffffffffffffff811161150e57601f01601f191660200190565b9190820180921161156d57565b634e487b7160e01b5f52601160045260245ffd5b9190820391821161156d57565b919091356001600160d01b0319811692600681106115aa575050565b6001600160d01b0319929350829060060360031b1b161690565b9190918260481161146357603481013560601c9280604e11611463576115ee60066048840161158e565b60d01c9281605411611463576116086006604e850161158e565b60d01c928260581161146357605481013560e01c926024811061146357601482013560801c926034821061146357602483013560801c92605801916057190190565b903590601e1981360301821215611463570180359067ffffffffffffffff82116114635760200191813603831361146357565b92919261168982611544565b916116976040519384611522565b829481845281830111611463578281602093845f960137010152565b929093916116ce6116c7604086018661164a565b369161167d565b60208151910120946116e66116c7606087018761164a565b60208151910120946116fb60e082018261164a565b6034116114635760405196602088019883356001600160a01b03168a52602084013560408a015260608901526080880152608082013560a08801526014013560c087015260a081013560e087015260c0013561010086015246610120860152306101408601526001600160a01b031661016085015265ffffffffffff1661018084015265ffffffffffff166101a083015263ffffffff166101c08201526101c081526117a96101e082611522565b51902090565b91908110156117bf5760051b0190565b634e487b7160e01b5f52603260045260245ffd5b638b78c6d8195433036117e257565b6382b429005f526004601cfd5b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c61183b5760017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d565b633ee5aeb560e01b5f5260045ffd5b6001600160a01b03165f52600660205260ff60405f20541661186c5760035490565b5f90565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036118a257565b60405162461bcd60e51b815260206004820152601560248201527f53656e646572206e6f7420456e747279506f696e7400000000000000000000006044820152606490fd5b8181029291811591840414171561156d57565b919060609260e0810190611917611911838361164a565b906115c4565b60409198969a95979c9350809250141580611c10575b611c01576002549661193f898761164a565b603411611463576024013560801c8811611bf2576119949061196585898f8e908b6116b3565b6020527b19457468657265756d205369676e6564204d6573736167653a0a33325f52603c60042092369161167d565b915f92604051926020820191805180604014611bb457604114611b7e5750505050505b6001600160a01b03805f54169116145f14611b785760015b15611b385763ffffffff1694621e848086118015611b2c575b611b1d576119f6908361164a565b6034116114635760246001600160801b0391013560801c166001600160801b03608084013516016001600160801b03811161156d576001600160801b03600a911602916001600160801b03831692830361156d57611a7b611a80926110f4620f4240956064611a746001600160801b0360c08d9801351680936118e7565b04986118e7565b6118e7565b046001600160a01b03611a938483611560565b971696875f52600560205260405f205410611b0e5765ffffffffffff60a01b93611ac66001600160d01b03199483611560565b885f526005602052611add60405f20918254611581565b90556040519760208901526040880152606087015260608652611b01608087611522565b60d01b169160a01b161790565b632771c53960e01b5f5260045ffd5b630a02dbf760e21b5f5260045ffd5b50620f424086106119e8565b505050600194955065ffffffffffff60a01b92506001600160d01b0319915060d01b169160a01b16171790604051611b71602082611522565b5f81529190565b5f6119cf565b808401515f1a60205260400151835292935090915b5f52516040526020604060805f60015afa505f81523d1851906040526119b7565b507f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff91929394955060400151601b8160ff1c01602052168352611b93565b630359a00f60e01b5f5260045ffd5b634be6321b60e01b5f5260045ffd5b50604181141561192d565b6001600160a01b031680638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3638b78c6d8195556fea164736f6c634300081b000a","sourceMap":"1577:19210:7:-:0;;;;;;;;;-1:-1:-1;1577:19210:7;;;;;;;;;;3555:9;1577:19210;;3534:31;1577:19210;3543:10;3534:31;;1577:19210;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;:::i;:::-;11885:237:37;;;;;1577:19210:7;11885:237:37;;;;1577:19210:7;;;;;;;;;;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;:::i;:::-;12478:70:37;;;:::i;:::-;5635:37:7;;;5631:71;;5717:9;5728:23;;;;;;1577:19210;;;5753:3;5812:10;;;;;:::i;:::-;1577:19210;5792:15;;;;;;:::i;:::-;1577:19210;;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;;;5772:19;1577:19210;;5772:50;1577:19210;;;;;;5772:50;:::i;:::-;1577:19210;;;5717:9;;1577:19210;;;;5631:71;-1:-1:-1;;;5681:21:7;;1577:19210;5681:21;;1577:19210;;;;;;;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;;-1:-1:-1;;;;;1577:19210:7;;:::i;:::-;;;;11561:19;1577:19210;;;;;;;;;;;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;;;:::i;:::-;12478:70:37;;:::i;:::-;8479:183;;;;;;8681:8;;;:::i;:::-;1577:19210:7;;8479:183:37;;;;1577:19210:7;8479:183:37;;1577:19210:7;;;;;;;;;;;;;;1983:41;1577:19210;;;;;;;;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;;;:::i;:::-;12478:70:37;;:::i;:::-;10506:526;;;;;;1577:19210:7;10506:526:37;;;;;;;;;;11051:12;10506:526;;11051:12;:::i;10506:526::-;;;;1577:19210:7;10506:526:37;;1577:19210:7;;;;;;;;;;;;;10764:10;1577:19210;;10754:9;1577:19210;;-1:-1:-1;1577:19210:7;;;;;;;;;;;;;;10790:41;1577:19210;;;10764:10;1577:19210;;10790:41;1577:19210;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8274:22:7;;1577:19210;;8274:22;1577:19210;;;;;;;;;;;;;;-1:-1:-1;;;;;1915:27:7;1577:19210;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3645:35:0;;3674:4;1577:19210:7;3645:35:0;;1577:19210:7;;;3645:35:0;1577:19210:7;3645:10:0;-1:-1:-1;;;;;1577:19210:7;3645:35:0;;;;;;;;;;;1577:19210:7;;;;;;;;;3645:35:0;;;1577:19210:7;3645:35:0;;1577:19210:7;3645:35:0;;;;;;1577:19210:7;3645:35:0;;;:::i;:::-;;;1577:19210:7;;;;;;;;3645:35:0;;;;;;-1:-1:-1;3645:35:0;;;1577:19210:7;;;;;;;;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;;:::i;:::-;12478:70:37;;:::i;:::-;-1:-1:-1;;;;;2183:10:0;1577:19210:7;2183:41:0;;;;;;-1:-1:-1;;;;;2183:41:0;1577:19210:7;;;;;;;;;;;;;2183:41:0;;1577:19210:7;;2183:41:0;;1577:19210:7;2183:41:0;;;;;;;;1577:19210:7;;2183:41:0;;;;;:::i;:::-;1577:19210:7;;2183:41:0;1577:19210:7;2183:41:0;1577:19210:7;;;;;;;;;;;;;;;;12478:70:37;;:::i;:::-;1846:10:0;-1:-1:-1;;;;;1846:10:0;1577:19210:7;1846:24:0;;;;;1577:19210:7;;;;;;;;;;;;;1846:24:0;;;;;;;;;;1577:19210:7;;1846:24:0;1577:19210:7;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;705:39:0;1577:19210:7;;;;;;;;;;;;;;;;;;1948:29;1577:19210;;;;;;;;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;-1:-1:-1;;;;;1577:19210:7;;:::i;:::-;1181:103:23;;:::i;:::-;1577:19210:7;3890:25;;3886:63;;3963:9;:14;3959:48;;1577:19210;;;4021:19;1577:19210;;4021:44;3963:9;1577:19210;;;;4021:44;:::i;:::-;1577:19210;;-1:-1:-1;4017:82:7;;1577:19210;;;4021:19;1577:19210;;;;;4109:45;3963:9;1577:19210;;4109:45;:::i;:::-;1577:19210;;4164:10;-1:-1:-1;;;;;4164:10:7;1577:19210;4164:55;;;;;1577:19210;4164:55;1577:19210;;;;;;;;;;4164:55;;4213:4;1577:19210;4164:55;;1577:19210;3963:9;4164:55;;;;;;;;;1577:19210;3963:9;;;4234:36;;;;;3550:68:24;637:66:23;3550:68:24;1577:19210:7;;4164:55;;;;;:::i;:::-;1577:19210;;4164:55;;;;4017:82;-1:-1:-1;;;4087:12:7;;1577:19210;4087:12;;3959:48;-1:-1:-1;;;3986:21:7;;1577:19210;3986:21;;3886:63;-1:-1:-1;;;3924:25:7;;1577:19210;6234:25;3924;1577:19210;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;;;:::i;:::-;12478:70:37;;:::i;:::-;6297:74:0;;7309:71:7;;-1:-1:-1;;;;;1577:19210:7;7394:29;;7390:68;;7494:12;1577:19210;;;-1:-1:-1;;1577:19210:7;;;7494:12;1577:19210;-1:-1:-1;;;;;7615:10:7;1577:19210;;7561:65;;;;1577:19210;;7390:68;-1:-1:-1;;;7432:26:7;;1577:19210;7432:26;;7309:71;-1:-1:-1;;;7350:30:7;;1577:19210;7350:30;;1577:19210;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1577:19210:7;;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;;;12478:70:37;;:::i;:::-;1577:19210:7;;;6741:44;;;;1577:19210;;;;;;;;;;;;;;;;;;6813:405:37;;11523:61;-1:-1:-1;;;;;1577:19210:7;;;;;;;;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;12478:70:37;;;:::i;:::-;1577:19210:7;6200:25;;;6196:63;;1577:19210;;;6273:20;1577:19210;;;;;;;;;;;6273:46;6269:186;;1577:19210;;;6269:186;1577:19210;6399:45;1577:19210;;;;6273:20;1577:19210;;;;;;;;;;;;;;;;;;;;;6399:45;6269:186;;1577:19210;;;6196:63;-1:-1:-1;;;6234:25:7;;1577:19210;6234:25;;1577:19210;;;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2268:298:0;;;;;;:::i;:::-;14918:47:7;;1577:19210;;;;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;;;;;;;;;;;;;;;;15335:31;2182:3;15257:27;15130:56;15147:38;1577:19210;;15147:14;1577:19210;15147:38;:::i;:::-;1577:19210;;15130:56;:::i;:::-;15257:27;;;:::i;:::-;1577:19210;15335:31;;;:::i;:::-;1577:19210;-1:-1:-1;;;;;1577:19210:7;;;;;15429:19;1577:19210;;;;;15429:44;1577:19210;;;15429:44;:::i;:::-;1577:19210;;15488:34;;;;;;;15623;;;:::i;:::-;1577:19210;;;15429:19;1577:19210;;15586:72;1577:19210;;;;;;15586:72;:::i;:::-;1577:19210;;15484:369;15989:57;;;;1577:19210;;15484:369;15791:34;;;;:::i;:::-;1577:19210;;;15429:19;1577:19210;;15754:72;1577:19210;;;;;;15754:72;:::i;:::-;1577:19210;;15484:369;;1577:19210;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;;;12478:70:37;;:::i;:::-;2419:7:7;7912:30;;7908:91;;8027:14;1577:19210;;8027:14;1577:19210;8088:38;;;;1577:19210;;7908:91;-1:-1:-1;;;7965:23:7;;1577:19210;7965:23;;1577:19210;;;;;;;;;;12478:70:37;;:::i;:::-;6813:405;;;;;;;;;;;;1577:19210:7;;;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;;;:::i;:::-;12478:70:37;;:::i;:::-;6297:74:0;;4754:77:7;;-1:-1:-1;;;;;1577:19210:7;;4845:32;;4841:99;;-1:-1:-1;;;;;1577:19210:7;;;4994:97;;;5159:10;5105:65;;;;;1577:19210;;4841:99;-1:-1:-1;;;4900:29:7;;1577:19210;4900:29;;4754:77;-1:-1:-1;;;4798:33:7;;1577:19210;4798:33;;1577:19210;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;:::i;:::-;-1:-1:-1;;;;;1577:19210:7;;;9008:29;;9004:71;;9089:11;;9085:50;;9190:10;1577:19210;;9170:19;1577:19210;;;;;;9215:23;;9211:64;;9438:51;1577:19210;;;;;;;;:::i;:::-;;;;;;9321:102;;1577:19210;;;9321:102;;;9405:15;;1577:19210;;9190:10;1577:19210;;9285:9;1577:19210;;;;;;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;-1:-1:-1;;1577:19210:7;;;;;;;;;;;;;;;;;;;9438:51;1577:19210;;9211:64;-1:-1:-1;;;9247:28:7;;1577:19210;9247:28;;9085:50;-1:-1:-1;;;9109:26:7;;1577:19210;10322:26;9109;9004:71;-1:-1:-1;;;9046:29:7;;1577:19210;20605:29;9046;1577:19210;;;;;;;;;;9831:339:37;;;;;;;;;;;;;;;;1577:19210:7;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;;;;;;;;;;;;;;;;;16875:2704;1577:19210;2813:22:0;;;:::i;:::-;1577:19210:7;;;;;16875:2704;:::i;:::-;1577:19210;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;:::i;:::-;;;12478:70:37;;;:::i;:::-;1181:103:23;;:::i;:::-;-1:-1:-1;;;;;1577:19210:7;;20576:20;;;20572:62;;13252:754:39;;;;;;;;1577:19210:7;13252:754:39;1577:19210:7;13252:754:39;;;;;;1577:19210:7;13252:754:39;;;;;;;1577:19210:7;13252:754:39;;;;20719:59:7;1577:19210;;;20767:10;1577:19210;;20719:59;3550:68:24;637:66:23;3550:68:24;1577:19210:7;;13252:754:39;;;;;;;;;;;;;;;;;1577:19210:7;13252:754:39;;20572:62:7;-1:-1:-1;;;20605:29:7;;1577:19210;20605:29;;1577:19210;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;:::i;:::-;1181:103:23;;:::i;:::-;-1:-1:-1;;;;;1577:19210:7;;;;;;9847:9;1577:19210;;;;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;;;;;;;;;;;;;9883:34;9879:67;;1577:19210;9985:54;;10017:22;;;:::i;:::-;9985:54;;:::i;:::-;10053:15;;:36;10049:89;;-1:-1:-1;1577:19210:7;;;10173:19;1577:19210;;;;;;;;10228:27;;;;;;:57;;;1577:19210;;;10298:15;10295:53;;1577:19210;;10393:27;;;:::i;:::-;1577:19210;;;10173:19;1577:19210;;;;;;;;;9847:9;1577:19210;;-1:-1:-1;1577:19210:7;;;;;;;;;;;;;;10469:10;-1:-1:-1;;;;;10469:10:7;1577:19210;-1:-1:-1;;;;;1577:19210:7;;;;;10469:50;;;;;;1577:19210;;;;;;;;;;;;;10469:50;;1577:19210;10469:50;;1577:19210;;;;;10469:50;;;;;;;;10228:57;1577:19210;;-1:-1:-1;;;;;1577:19210:7;;;;;10534:45;;;;;3550:68:24;637:66:23;3550:68:24;1577:19210:7;;10469:50;;;;;:::i;:::-;1577:19210;;10469:50;;;;10295:53;-1:-1:-1;;;10322:26:7;;1577:19210;10322:26;;10228:57;;;10049:89;-1:-1:-1;;;10098:40:7;;1577:19210;;;10098:40;;9879:67;-1:-1:-1;;;9926:20:7;;1577:19210;9926:20;;1577:19210;;;;;;;;;;9239:383:37;;;;;;7972:9;9132:15;1577:19210:7;9239:383:37;;;;;;;;;1577:19210:7;;;;;;;;;;;;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;;;;;;;;;-1:-1:-1;;1577:19210:7;;;;;;;;:::i;:::-;-1:-1:-1;;;;11290:22:7;;;1577:19210;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;;;:::i;:::-;-1:-1:-1;;;;;1577:19210:7;;12478:70:37;;;:::i;:::-;1181:103:23;;:::i;:::-;1577:19210:7;10976:35;;;;;;;;1577:19210;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;11025:8;11021:64;;11099:31;;;;3550:68:24;637:66:23;3550:68:24;1577:19210:7;;11021:64;-1:-1:-1;;;11056:18:7;;1577:19210;11056:18;;1577:19210;;;;-1:-1:-1;1577:19210:7;;-1:-1:-1;;1577:19210:7;;;;;;;;;;;;;;12478:70:37;;:::i;:::-;-1:-1:-1;;;;;1572:10:0;1577:19210:7;1572:56:0;;;;;;1577:19210:7;;1572:56:0;1577:19210:7;;;;;;;;;1572:56:0;;1577:19210:7;1572:56:0;;1577:19210:7;1600:9:0;1572:56;;;;;;;;;1577:19210:7;;;1572:56:0;;;;1577:19210:7;1572:56:0;;:::i;:::-;1577:19210:7;1572:56:0;1577:19210:7;;;;;;;;;1572:56:0;1577:19210:7;;;;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;1577:19210:7;;;;;-1:-1:-1;1577:19210:7;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;1577:19210:7;;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;:::o;2303:22::-;;;;;-1:-1:-1;;;;;;2303:22:7;;;;;;;;;;:::o;:::-;-1:-1:-1;;;;;;2303:22:7;;;;;;;;;1577:19210;2303:22;;;:::o;13020:1250::-;;;;2303:22;1577:19210;2303:22;;;490:2:30;2303:22:7;;;;;13587:69;2303:22;1577:19210;2303:22;;;13580:77;2303:22;1577:19210;2303:22;;13580:77;:::i;:::-;2303:22;;13699:69;2303:22;1577:19210;2303:22;;;13692:77;2303:22;1577:19210;2303:22;;13692:77;:::i;:::-;2303:22;;13812:69;2303:22;1577:19210;2303:22;;;1577:19210;2303:22;;;;1577:19210;;13878:2;2303:22;-1:-1:-1;2303:22:7;;13541:2;2303:22;;923:44:0;;;;490:2:30;2303:22:7;-1:-1:-1;2303:22:7;;13878:2;2303:22;;923:44:0;;;;1577:19210:7;2303:22;;-1:-1:-1;;2303:22:7;;13020:1250::o;1577:19210::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;1577:19210:7;;;;;;:::o;12014:1000::-;;;;;1577:19210;12515:15;;;;;;:::i;:::-;1577:19210;;;:::i;:::-;12475:12;1577:19210;;;;12505:26;12559:15;1577:19210;12559:15;;;;;;:::i;1577:19210::-;12475:12;1577:19210;;;;12549:26;12650:23;;;;;;;:::i;:::-;490:2:30;2303:22:7;;;12515:15;1577:19210;12423:574;12475:12;12423:574;;823:61:30;;;-1:-1:-1;;;;;1577:19210:7;;;12475:12;;;1577:19210;12515:15;1577:19210;;;12559:15;1577:19210;;;12593:23;1577:19210;;;12593:23;;;1577:19210;12750:25;1577:19210;;;372:2:30;2303:22:7;1577:19210;12793:14;1577:19210;;;12750:25;;;1577:19210;12650:23;1577:19210;;;12793:14;;1577:19210;;;;;12825:13;1577:19210;;;;12864:4;1577:19210;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;;;;;;;;;;;;;;;;;;;12423:574;;;;;;:::i;:::-;1577:19210;12400:607;;12014:1000;:::o;1577:19210::-;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;7292:355:37;-1:-1:-1;;7390:251:37;;;;;7292:355::o;7390:251::-;;;;;;;1290:346:23;637:66;3321:69:24;1413:93:23;;1624:4;637:66;3550:68:24;1290:346:23:o;1413:93::-;1465:30;;;-1:-1:-1;1465:30:23;;-1:-1:-1;1465:30:23;20299:179:7;-1:-1:-1;;;;;1577:19210:7;;;20385:20;1577:19210;;;;;;;;20381:47;;20445:26;1577:19210;20299:179;:::o;20381:47::-;1577:19210;20420:8;:::o;6006:135:0:-;-1:-1:-1;;;;;6097:10:0;1577:19210:7;6075:10:0;:33;1577:19210:7;;6006:135:0:o;1577:19210:7:-;;;-1:-1:-1;;;1577:19210:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;16875:2704::-;;;1577:19210;17094:22;17448:23;;;;17426:46;17448:23;;;;:::i;:::-;17426:46;;:::i;:::-;17785:2;17765:22;;;;;;;;;;;;;;:48;;;16875:2704;17761:110;;17885:14;1577:19210;4143:23:30;;;;;:::i;:::-;490:2;2303:22:7;;;434:2:30;2303:22:7;923:44:0;;;17885:46:7;;17881:106;;1577:19210;18028:65;;;;;;;;;:::i;:::-;13414:265:38;;;1577:19210:7;13414:265:38;;;;1577:19210:7;;;;:::i;:::-;18027:144;1577:19210;8517:1041:38;17785:2:7;8517:1041:38;;13414:265;8517:1041;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;18013:187;:202;;;;8517:1041:38;18013:202:7;18304:9;18300:102;;1577:19210;;18450:17;18464:3;18450:17;;:38;;;;18013:202;18446:96;;18730:23;;;;:::i;:::-;490:2:30;2303:22:7;;;434:2:30;-1:-1:-1;;;;;18722:85:7;2303:22;923:44:0;;;;-1:-1:-1;;;;;923:44:0;18666:23:7;;1577:19210;;;-1:-1:-1;;;;;1577:19210:7;;;;-1:-1:-1;;;;;18825:2:7;1577:19210;;;;-1:-1:-1;;;;;1577:19210:7;;;;;;;18959:62;18958:78;3382:14:30;18977:44:7;2182:3;3382:14:30;18870:3:7;18632:225;-1:-1:-1;;;;;3382:14:30;;;;1577:19210:7;;18632:225;;;:::i;:::-;1577:19210;18977:44;;:::i;18959:62::-;18958:78;:::i;:::-;1577:19210;-1:-1:-1;;;;;19074:26:7;;;;:::i;:::-;1577:19210;;;;;;19103:19;13414:265:38;1577:19210:7;17785:2;1577:19210;;;-1:-1:-1;19070:132:7;;-1:-1:-1;;;19249:26:7;;-1:-1:-1;;;;;;19249:26:7;;;:::i;:::-;1577:19210;;;19103:19;13414:265:38;1577:19210:7;19212:64;17785:2;1577:19210;;;;;19212:64;:::i;:::-;1577:19210;;17785:2;1577:19210;19297:51;13414:265:38;19297:51:7;;1577:19210;17785:2;2182:3;;1577:19210;;2182:3;;1577:19210;;19297:51;;;923:44:0;19297:51:7;;:::i;:::-;2683:8:29;1577:19210:7;;;2643:3:29;1577:19210:7;;2589:104:29;16875:2704:7;:::o;19070:132::-;19158:33;;;1577:19210;19158:33;13414:265:38;1577:19210:7;19158:33;18446:96;18511:20;;;1577:19210;18511:20;13414:265:38;1577:19210:7;18511:20;18450:38;18471:17;18485:3;18471:17;;18450:38;;18300:102;18341:49;;;8517:1041:38;18341:49:7;;;-1:-1:-1;;;18341:49:7;;-1:-1:-1;;;;;;18341:49:7;;2683:8:29;1577:19210:7;;;2643:3:29;1577:19210:7;;2589:104:29;;1577:19210:7;17785:2;1577:19210;;13414:265:38;1577:19210:7;;:::i;:::-;;;;18329:62;;:::o;18013:202::-;1577:19210;18013:202;;8517:1041:38;;;;;1577:19210:7;8517:1041:38;13414:265;8517:1041;17785:2:7;8517:1041:38;;;;;;-1:-1:-1;8517:1041:38;;;1577:19210:7;8517:1041:38;;17785:2:7;8517:1041:38;13414:265;17785:2:7;923:44:0;1577:19210:7;8517:1041:38;;;;1577:19210:7;8517:1041:38;;;;;;17785:2:7;8517:1041:38;;;;;;;;;;;;17785:2:7;8517:1041:38;;;;;;;13414:265;8517:1041;;;;;;17881:106:7;17954:22;;;1577:19210;17954:22;;1577:19210;17954:22;17761:110;17836:24;;;1577:19210;17836:24;;1577:19210;17836:24;17765:48;17791:22;17811:2;17791:22;;;17765:48;;6145:1089:37;-1:-1:-1;;;;;6813:405:37;;;;;;-1:-1:-1;6813:405:37;;-1:-1:-1;;6813:405:37;6145:1089::o","linkReferences":{},"immutableReferences":{"19":[{"start":1320,"length":32},{"start":1497,"length":32},{"start":1646,"length":32},{"start":1757,"length":32},{"start":1939,"length":32},{"start":4449,"length":32},{"start":5111,"length":32},{"start":6266,"length":32}]}},"methodIdentifiers":{"addStake(uint32)":"0396cb60","cancelOwnershipHandover()":"54d1f13d","cancelWithdrawalRequest()":"e714a028","completeOwnershipHandover(address)":"f04e283e","deposit()":"d0e30db0","depositFor(address)":"aa67c919","entryPoint()":"b0d691fe","executeWithdrawalRequest(address)":"3261fd58","feeCollector()":"c415b95c","getBalance(address)":"f8b2cb4f","getDeposit()":"c399ec88","getHash((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),address,uint48,uint48,uint32)":"def04257","minDeposit()":"41b3d185","owner()":"8da5cb5b","ownershipHandoverExpiresAt(address)":"fee81cf4","parsePaymasterAndData(bytes)":"94d4ad60","paymasterIdBalances(address)":"a40a7ddc","paymasterIdWithdrawalDelay()":"f0c12a32","postOp(uint8,bytes,uint256,uint256)":"7c627b21","refundBalances(address[],uint256[])":"f8cf826d","renounceOwnership()":"715018a6","requestOwnershipHandover()":"25692962","setFeeCollector(address)":"a42dce80","setMinDeposit(uint256)":"8fcc9cfb","setSigner(address)":"6c19e783","setTrustedPaymasterId(address,bool)":"8c253a39","setUnaccountedGas(uint256)":"73acf542","submitWithdrawalRequest(address,uint256)":"59ffb130","transferOwnership(address)":"f2fde38b","unaccountedGas()":"ab94cad7","unlockStake()":"bb9fe6bf","validatePaymasterUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":"52b7512c","verifyingSigner()":"23d9ac9b","withdrawERC20(address,address,uint256)":"44004cc1","withdrawEth(address,uint256)":"1b9a91a4","withdrawStake(address)":"c23a5cea","withdrawTo(address,uint256)":"205c2878"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"contract IEntryPoint\",\"name\":\"entryPointArg\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"verifyingSignerArg\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"feeCollectorArg\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"unaccountedGasArg\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paymasterIdWithdrawalDelayArg\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minDepositArg\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AlreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CanNotWithdrawToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CanNotWithdrawZeroAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DepositCanNotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FeeCollectorCanNotBeContract\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FeeCollectorCanNotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientFunds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientFundsForPaymasterId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientFundsInGasTank\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidArrayLengths\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPriceMarkup\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LowDeposit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NewOwnerIsZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoHandoverRequest\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoRequestSubmitted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PaymasterIdCanNotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PostOpGasLimitTooLow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"clearanceTime\",\"type\":\"uint256\"}],\"name\":\"RequestNotClearedYet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SubmitRequestInstead\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UnaccountedGasTooHigh\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UseDepositForInstead\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"VerifyingSignerCanNotBeContract\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"VerifyingSignerCanNotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WithdrawalFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"EthWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldFeeCollector\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newFeeCollector\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"actor\",\"type\":\"address\"}],\"name\":\"FeeCollectorChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"oldValue\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"newValue\",\"type\":\"uint256\"}],\"name\":\"FixedPriceMarkupChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_paymasterId\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_charge\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_premium\",\"type\":\"uint256\"}],\"name\":\"GasBalanceDeducted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_paymasterId\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"GasDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_paymasterId\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"GasWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"oldValue\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"newValue\",\"type\":\"uint256\"}],\"name\":\"MinDepositChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"OwnershipHandoverCanceled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"OwnershipHandoverRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Received\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"actor\",\"type\":\"address\"}],\"name\":\"TokensWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isTrusted\",\"type\":\"bool\"}],\"name\":\"TrustedPaymasterIdSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"oldValue\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"newValue\",\"type\":\"uint256\"}],\"name\":\"UnaccountedGasChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldSigner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newSigner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"actor\",\"type\":\"address\"}],\"name\":\"VerifyingSignerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"}],\"name\":\"WithdrawalRequestCancelledFor\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"withdrawAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawalRequestSubmitted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"unstakeDelaySec\",\"type\":\"uint32\"}],\"name\":\"addStake\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cancelOwnershipHandover\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cancelWithdrawalRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"completeOwnershipHandover\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"}],\"name\":\"depositFor\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"entryPoint\",\"outputs\":[{\"internalType\":\"contract IEntryPoint\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"}],\"name\":\"executeWithdrawalRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeCollector\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDeposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"initCode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"accountGasLimits\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"preVerificationGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"gasFees\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"struct PackedUserOperation\",\"name\":\"userOp\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"validUntil\",\"type\":\"uint48\"},{\"internalType\":\"uint48\",\"name\":\"validAfter\",\"type\":\"uint48\"},{\"internalType\":\"uint32\",\"name\":\"priceMarkup\",\"type\":\"uint32\"}],\"name\":\"getHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minDeposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"result\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"ownershipHandoverExpiresAt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"result\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"}],\"name\":\"parsePaymasterAndData\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"validUntil\",\"type\":\"uint48\"},{\"internalType\":\"uint48\",\"name\":\"validAfter\",\"type\":\"uint48\"},{\"internalType\":\"uint32\",\"name\":\"priceMarkup\",\"type\":\"uint32\"},{\"internalType\":\"uint128\",\"name\":\"paymasterValidationGasLimit\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"paymasterPostOpGasLimit\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"paymasterIdBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paymasterIdWithdrawalDelay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum IPaymaster.PostOpMode\",\"name\":\"mode\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"context\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"actualGasCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actualUserOpFeePerGas\",\"type\":\"uint256\"}],\"name\":\"postOp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"paymasterIds\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"refundBalances\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestOwnershipHandover\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newFeeCollector\",\"type\":\"address\"}],\"name\":\"setFeeCollector\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newMinDeposit\",\"type\":\"uint256\"}],\"name\":\"setMinDeposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newVerifyingSigner\",\"type\":\"address\"}],\"name\":\"setSigner\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isTrusted\",\"type\":\"bool\"}],\"name\":\"setTrustedPaymasterId\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"setUnaccountedGas\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"withdrawAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"submitWithdrawalRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unaccountedGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unlockStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"initCode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"accountGasLimits\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"preVerificationGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"gasFees\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"struct PackedUserOperation\",\"name\":\"userOp\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"userOpHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"maxCost\",\"type\":\"uint256\"}],\"name\":\"validatePaymasterUserOp\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"context\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"validationData\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"verifyingSigner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawEth\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"withdrawAddress\",\"type\":\"address\"}],\"name\":\"withdrawStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"withdrawAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"author\":\"livingrockrisesShivaanshK\",\"details\":\"This contract is used to sponsor the transaction fees of the user operations Uses a verifying signer to provide the signature if predetermined conditions are met regarding the user operation calldata. Also this paymaster is Singleton in nature which means multiple Dapps/Wallet clients willing to sponsor the transactions can share this paymaster. Maintains it's own accounting of the gas balance for each Dapp/Wallet client and Manages it's own deposit on the EntryPoint.\",\"errors\":{\"AlreadyInitialized()\":[{\"details\":\"Cannot double-initialize.\"}],\"NewOwnerIsZeroAddress()\":[{\"details\":\"The `newOwner` cannot be the zero address.\"}],\"NoHandoverRequest()\":[{\"details\":\"The `pendingOwner` does not have a valid handover request.\"}],\"ReentrancyGuardReentrantCall()\":[{\"details\":\"Unauthorized reentrant call.\"}],\"Unauthorized()\":[{\"details\":\"The caller is not authorized to call the function.\"}]},\"events\":{\"OwnershipHandoverCanceled(address)\":{\"details\":\"The ownership handover to `pendingOwner` has been canceled.\"},\"OwnershipHandoverRequested(address)\":{\"details\":\"An ownership handover to `pendingOwner` has been requested.\"},\"OwnershipTransferred(address,address)\":{\"details\":\"The ownership is transferred from `oldOwner` to `newOwner`. This event is intentionally kept the same as OpenZeppelin's Ownable to be compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173), despite it not being as lightweight as a single argument event.\"}},\"kind\":\"dev\",\"methods\":{\"addStake(uint32)\":{\"params\":{\"unstakeDelaySec\":\"- The unstake delay for this paymaster. Can only be increased.\"}},\"cancelOwnershipHandover()\":{\"details\":\"Cancels the two-step ownership handover to the caller, if any.\"},\"cancelWithdrawalRequest()\":{\"details\":\"Cancel a withdrawal request for the paymasterId (Dapp Depositor address)\"},\"completeOwnershipHandover(address)\":{\"details\":\"Allows the owner to complete the two-step ownership handover to `pendingOwner`. Reverts if there is no existing ownership handover requested by `pendingOwner`.\"},\"deposit()\":{\"details\":\"Override the default implementation.\"},\"depositFor(address)\":{\"details\":\"Add a deposit for this paymaster and given paymasterId (Dapp Depositor address), used for paying for transaction fees\",\"params\":{\"paymasterId\":\"dapp identifier for which deposit is being made\"}},\"executeWithdrawalRequest(address)\":{\"details\":\"Execute a withdrawal request for the paymasterId (Dapp Depositor address) Request must be cleared by the withdrawal delay period\",\"params\":{\"paymasterId\":\"paymasterId (Dapp Depositor address)\"}},\"getBalance(address)\":{\"details\":\"get the current deposit for paymasterId (Dapp Depositor address)\",\"params\":{\"paymasterId\":\"dapp identifier\"}},\"owner()\":{\"details\":\"Returns the owner of the contract.\"},\"ownershipHandoverExpiresAt(address)\":{\"details\":\"Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\"},\"postOp(uint8,bytes,uint256,uint256)\":{\"params\":{\"actualGasCost\":\"- Actual gas used so far (without this postOp call).\",\"actualUserOpFeePerGas\":\"- the gas price this UserOp pays. This value is based on the UserOp's maxFeePerGas and maxPriorityFee (and basefee) It is not the same as tx.gasprice, which is what the bundler pays.\",\"context\":\"- The context value returned by validatePaymasterUserOp\",\"mode\":\"- Enum with the following options: opSucceeded - User operation succeeded. opReverted - User op reverted. The paymaster still has to pay for gas. postOpReverted - never passed in a call to postOp().\"}},\"refundBalances(address[],uint256[])\":{\"details\":\"Refund balances for multiple paymasterIds PM charges more than it should to protect itself. This function is used to refund the extra amount when the real consumption is known.\",\"params\":{\"amounts\":\"The amounts to refund\",\"paymasterIds\":\"The paymasterIds to refund\"}},\"renounceOwnership()\":{\"details\":\"Allows the owner to renounce their ownership.\"},\"requestOwnershipHandover()\":{\"details\":\"Request a two-step ownership handover to the caller. The request will automatically expire in 48 hours (172800 seconds) by default.\"},\"setFeeCollector(address)\":{\"details\":\"Set a new fee collector address. Can only be called by the owner of the contract.\",\"params\":{\"newFeeCollector\":\"The new address to be set as the fee collector.\"}},\"setMinDeposit(uint256)\":{\"details\":\"Set a new minimum deposit value. Can only be called by the owner of the contract.\",\"params\":{\"newMinDeposit\":\"The new minimum deposit value to be set.\"}},\"setSigner(address)\":{\"details\":\"Set a new verifying signer address. Can only be called by the owner of the contract.\",\"params\":{\"newVerifyingSigner\":\"The new address to be set as the verifying signer.\"}},\"setTrustedPaymasterId(address,bool)\":{\"details\":\"Set a new trusted paymasterId. Can only be called by the owner of the contract.\",\"params\":{\"isTrusted\":\"Whether the paymasterId is trusted or not.\",\"paymasterId\":\"The paymasterId to be set as trusted.\"}},\"setUnaccountedGas(uint256)\":{\"details\":\"Set a new unaccountedGas value.\",\"params\":{\"value\":\"The new value to be set as the unaccountedGas.\"}},\"submitWithdrawalRequest(address,uint256)\":{\"details\":\"Submit a withdrawal request for the paymasterId (Dapp Depositor address)\",\"params\":{\"amount\":\"amount to withdraw\",\"withdrawAddress\":\"address to send the funds to\"}},\"transferOwnership(address)\":{\"details\":\"Allows the owner to transfer the ownership to `newOwner`.\"},\"validatePaymasterUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)\":{\"params\":{\"maxCost\":\"- The maximum cost of this transaction (based on maximum gas and gas price from userOp).\",\"userOp\":\"- The user operation.\",\"userOpHash\":\"- Hash of the user's request data.\"},\"returns\":{\"context\":\" - Value to send to a postOp. Zero length to signify postOp is not required.\",\"validationData\":\"- Signature and time-range of this operation, encoded the same as the return value of validateUserOperation. <20-byte> sigAuthorizer - 0 for valid signature, 1 to mark signature failure, other values are invalid for paymaster. <6-byte> validUntil - last timestamp this operation is valid. 0 for \\\"indefinite\\\" <6-byte> validAfter - first timestamp this operation is valid Note that the validation code cannot use block.timestamp (or block.number) directly.\"}},\"withdrawERC20(address,address,uint256)\":{\"details\":\"pull tokens out of paymaster in case they were sent to the paymaster at any point.\",\"params\":{\"amount\":\"amount to withdraw\",\"target\":\"address to send to\",\"token\":\"the token deposit to withdraw\"}},\"withdrawStake(address)\":{\"params\":{\"withdrawAddress\":\"- The address to send withdrawn value.\"}},\"withdrawTo(address,uint256)\":{\"params\":{\"amount\":\"- Amount to withdraw.\",\"withdrawAddress\":\"- Target to send to.\"}}},\"title\":\"BiconomySponsorshipPaymaster\",\"version\":1},\"userdoc\":{\"errors\":{\"CanNotWithdrawToZeroAddress()\":[{\"notice\":\"Throws when trying to withdraw to address(0)\"}],\"CanNotWithdrawZeroAmount()\":[{\"notice\":\"Throws when trying to withdraw zero amount\"}],\"DepositCanNotBeZero()\":[{\"notice\":\"Throws when the 0 has been provided as deposit\"}],\"FeeCollectorCanNotBeContract()\":[{\"notice\":\"Throws when the fee collector address provided is a deployed contract\"}],\"FeeCollectorCanNotBeZero()\":[{\"notice\":\"Throws when the fee collector address provided is address(0)\"}],\"InsufficientFunds()\":[{\"notice\":\"Throws when insufficient funds to withdraw\"}],\"InsufficientFundsForPaymasterId()\":[{\"notice\":\"Throws when insufficient funds for paymasterid\"}],\"InsufficientFundsInGasTank()\":[{\"notice\":\"Thrown when trying to withdraw more than the balance\"}],\"InvalidArrayLengths()\":[{\"notice\":\"Thrown when the array lengths are not equal\"}],\"InvalidPriceMarkup()\":[{\"notice\":\"Throws when invalid signature length in paymasterAndData\"}],\"InvalidSignatureLength()\":[{\"notice\":\"Throws when invalid signature length in paymasterAndData\"}],\"LowDeposit()\":[{\"notice\":\"Thrown when deposit is too low to reach minDeposit\"}],\"NoRequestSubmitted()\":[{\"notice\":\"Throws when no request has been submitted\"}],\"PaymasterIdCanNotBeZero()\":[{\"notice\":\"Throws when the paymaster address provided is address(0)\"}],\"PostOpGasLimitTooLow()\":[{\"notice\":\"Throws when postOp gas limit is too low\"}],\"RequestNotClearedYet(uint256)\":[{\"notice\":\"Thrown when trying to execute withdrawal request before delay has passed\"}],\"SubmitRequestInstead()\":[{\"notice\":\"Thrown when trying to directly withdraw instead of submitting a request\"}],\"UnaccountedGasTooHigh()\":[{\"notice\":\"Throws when trying unaccountedGas is too high\"}],\"UseDepositForInstead()\":[{\"notice\":\"Throws when calling deposit()\"}],\"VerifyingSignerCanNotBeContract()\":[{\"notice\":\"Throws when the fee collector address provided is a deployed contract\"}],\"VerifyingSignerCanNotBeZero()\":[{\"notice\":\"Throws when the verifiying signer address provided is address(0)\"}],\"WithdrawalFailed()\":[{\"notice\":\"Throws when ETH withdrawal fails\"}]},\"kind\":\"user\",\"methods\":{\"addStake(uint32)\":{\"notice\":\"Add stake for this paymaster. This method can also carry eth value to add to the current stake.\"},\"getDeposit()\":{\"notice\":\"Return current paymaster's deposit on the entryPoint.\"},\"getHash((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),address,uint48,uint48,uint32)\":{\"notice\":\"return the hash we're going to sign off-chain (and validate on-chain) this method is called by the off-chain service, to sign the request. it is called on-chain from the validatePaymasterUserOp, to validate the signature. note that this signature covers all fields of the UserOperation, except the \\\"paymasterAndData\\\", which will carry the signature itself.\"},\"postOp(uint8,bytes,uint256,uint256)\":{\"notice\":\"Post-operation handler. Must verify sender is the entryPoint.\"},\"setFeeCollector(address)\":{\"notice\":\"If _newFeeCollector is set to zero address, it will revert with an error. After setting the new fee collector address, it will emit an event FeeCollectorChanged.\"},\"setSigner(address)\":{\"notice\":\"If _newVerifyingSigner is set to zero address, it will revert with an error. After setting the new signer address, it will emit an event VerifyingSignerChanged.\"},\"setUnaccountedGas(uint256)\":{\"notice\":\"only to be called by the owner of the contract.\"},\"unlockStake()\":{\"notice\":\"Unlock the stake, in order to withdraw it. The paymaster can't serve requests once unlocked, until it calls addStake again\"},\"validatePaymasterUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)\":{\"notice\":\"Payment validation: check if paymaster agrees to pay. Must verify sender is the entryPoint. Revert to reject this request. Note that bundlers will reject this method if it changes the state, unless the paymaster is trusted (whitelisted). The paymaster pre-pays using its deposit, and receive back a refund after the postOp method returns.\"},\"withdrawStake(address)\":{\"notice\":\"Withdraw the entire paymaster's stake. stake must be unlocked first (and then wait for the unstakeDelay to be over)\"},\"withdrawTo(address,uint256)\":{\"notice\":\"Withdraw value from the deposit.\"}},\"notice\":\"Based on Infinitism's 'VerifyingPaymaster' contract\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/sponsorship/BiconomySponsorshipPaymaster.sol\":\"BiconomySponsorshipPaymaster\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[\":@ERC4337/account-abstraction/=node_modules/account-abstraction/\",\":@biconomy-devx/=node_modules/@biconomy-devx/\",\":@erc7579/=node_modules/@erc7579/\",\":@gnosis.pm/=node_modules/@gnosis.pm/\",\":@modulekit/=node_modules/modulekit/src/\",\":@nexus/=node_modules/nexus/\",\":@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/\",\":@prb/math/=node_modules/erc7739-validator-base/node_modules/@prb/math/src/\",\":@prb/test/=node_modules/@prb/test/\",\":@rhinestone/=node_modules/@rhinestone/\",\":@safe-global/=node_modules/@safe-global/\",\":@uniswap/swap-router-contracts/contracts/=node_modules/@uniswap/swap-router-contracts/contracts/\",\":@uniswap/v3-core/contracts/=node_modules/@uniswap/v3-core/contracts/\",\":@uniswap/v3-periphery/contracts/=node_modules/@uniswap/v3-periphery/contracts/\",\":@zerodev/=node_modules/@zerodev/\",\":ExcessivelySafeCall/=node_modules/erc7739-validator-base/node_modules/excessively-safe-call/src/\",\":account-abstraction-v0.6/=node_modules/account-abstraction-v0.6/\",\":account-abstraction/=node_modules/account-abstraction/contracts/\",\":accountabstraction/=node_modules/accountabstraction/\",\":base64-sol/=node_modules/base64-sol/\",\":ds-test/=node_modules/ds-test/\",\":enumerableset4337/=node_modules/erc7739-validator-base/node_modules/@erc7579/enumerablemap4337/src/\",\":erc4337-validation/=node_modules/erc7739-validator-base/node_modules/@rhinestone/erc4337-validation/src/\",\":erc7579/=node_modules/erc7579/src/\",\":erc7739-validator-base/=node_modules/erc7739-validator-base/\",\":erc7739Validator/=node_modules/erc7739-validator-base/src/\",\":excessively-safe-call/=node_modules/excessively-safe-call/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=node_modules/hardhat-deploy/\",\":hardhat/=node_modules/hardhat/\",\":kernel/=node_modules/@zerodev/kernel/src/\",\":module-bases/=node_modules/module-bases/src/\",\":modulekit/=node_modules/@rhinestone/modulekit/src/\",\":nexus/=node_modules/nexus/\",\":registry/=node_modules/modulekit/node_modules/@rhinestone/registry/src/\",\":safe7579/=node_modules/erc7739-validator-base/node_modules/@rhinestone/safe7579/src/\",\":sentinellist/=node_modules/sentinellist/src/\",\":solady/=node_modules/solady/src/\",\":solady/src/=node_modules/solady/src/\",\":solarray/=node_modules/solarray/src/\"],\"viaIR\":true},\"sources\":{\"contracts/base/BasePaymaster.sol\":{\"keccak256\":\"0xc95780f630a393e65f39873f4f4b9446507cfcbd2beb5d706efd509d3e919853\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://52728107fa47d986743cc07b5d8e22d4a019720d59623ae6e436dbf5912cb948\",\"dweb:/ipfs/QmVKrcs3Mtz6gQ8s6EaC9BPk3mu4Rz4ZBqgRxWHERv9DAM\"]},\"contracts/common/BiconomySponsorshipPaymasterErrors.sol\":{\"keccak256\":\"0xf7bfb4912e8d118a3f1f4f82a19834a686f105ad142afb7203adfa2ff38d7000\",\"license\":\"LGPL-3.0-only\",\"urls\":[\"bzz-raw://88593bfdb72f8585853a91e675367ac718d1daf5e62c4192459d73cbaeeb07a5\",\"dweb:/ipfs/QmXFRjaPKuS9d1GmMxvrS4JZN3KBmWWYt8VNJZxLGE2jkB\"]},\"contracts/interfaces/IBiconomySponsorshipPaymaster.sol\":{\"keccak256\":\"0x37f183fefaab68aa36dba3045c2c232f757de24faba3db2e5b5b20baa6e4a6f5\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://9fc1df58e44e9c3fd2c09d5d2f7bab83336d1cffde987c9d2575a4d82a04c7cc\",\"dweb:/ipfs/QmWAjzjybXBztdnrnRhRYWSq7rQ56Lou5Amhf8C6wohCdz\"]},\"contracts/sponsorship/BiconomySponsorshipPaymaster.sol\":{\"keccak256\":\"0xa3065455a1bed080af563fa5060edb49c25a40ef61a03689035d21fff3664c23\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://f80c9b2a747ea6c9982163a491b9e59917e6b85fcbe012e7a6e6eba0fd5c8fd7\",\"dweb:/ipfs/Qmb8kNpXXefwquY6Tc3mRvyPjWp6ekv5f4E5VMTDi8A6o4\"]},\"contracts/utils/SoladyOwnable.sol\":{\"keccak256\":\"0xa8d7b45c34f96e24ae669cdc5add90088b8236a101cb36a7148b05c678d2f8ce\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://05d1686b40ce43c7ebb674c64ec6695c7822f3380954028c218bf59b64f8165d\",\"dweb:/ipfs/Qmc6Vr8Ru1EpupJ7gp6kmdPA5BqcoPY5GqF8ZLvMPzvBaX\"]},\"lib/forge-std/src/console.sol\":{\"keccak256\":\"0xf61cb43a94d8318049d0a7f567af8c0aa952b5762a43851b130b90b3fcde0c6a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://53a52c6c3aeb22f7a18f53fca16af590308a8e3e5507e74df9b8e2561c932194\",\"dweb:/ipfs/QmaaXuY8mC66YoE2xyZdWuLHXqAxLjbnNxiofx8BTP1MRn\"]},\"node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db\",\"dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9\"]},\"node_modules/@openzeppelin/contracts/utils/ReentrancyGuardTransient.sol\":{\"keccak256\":\"0x534bf5c25d6003a8ce50b400d20fa460c03169ad7baa90d47a912917c36dfe2b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cc0cc39c40ea23d3c46e8517e19ebdd877719d3159fa032f2a91802cdd205c79\",\"dweb:/ipfs/QmSoNh7HTkD4TJcBkBKSGSPMMpLUZKE7s9f2G6mjdaJywg\"]},\"node_modules/@openzeppelin/contracts/utils/TransientSlot.sol\":{\"keccak256\":\"0x9303ef5a2beb555e52ce56598de205ce07ca8988fc67d073687c06cb8fc973d1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8b2e48fb42844c25e6cb38e7cfa1d91dcdc054613fd10f608833dbc677acf889\",\"dweb:/ipfs/QmT4HQxbgpWA3fZnK4dY3eXHNCoyBvpvzNq5k7eSt5mR5t\"]},\"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621\",\"dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL\"]},\"node_modules/account-abstraction/contracts/core/Helpers.sol\":{\"keccak256\":\"0x6247e011a6cb0b263b3aa098822977181674d91b62e5bdfe04c6e66f72da25d6\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://ca829a69b3fbc74fec8e140d42a2bf93bc3512609272f031c846470f61f0ab7e\",\"dweb:/ipfs/QmP3r3MBgAN39KeVB1rCGJWwcBcotNt26ALtAR54poQ1Jc\"]},\"node_modules/account-abstraction/contracts/core/UserOperationLib.sol\":{\"keccak256\":\"0x9d50ece985d35f82e33e5da417595c86fac10449e3d10895d08363d33aad454b\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://b1d11cc364c8bf7ed5388268c895b5ffed16e87dfbcb320ddeeba5e7974315dc\",\"dweb:/ipfs/QmYSpvjxEjweietQrYZagwQ52ipy7eXx4rwvnTzXKeGeMS\"]},\"node_modules/account-abstraction/contracts/interfaces/IAggregator.sol\":{\"keccak256\":\"0xf100d6fcc0c3b450b13e979b6a42c628c292a1bc340eccc2e7796b80e3975588\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://192938b5b27234d35c8098a319e879363c79f750eea4d0e409dc889a8ce5b155\",\"dweb:/ipfs/QmURpaJFPqEtkKP2ngBsgZhAGN8wAWh5XQpYmCkiz4Urz5\"]},\"node_modules/account-abstraction/contracts/interfaces/IEntryPoint.sol\":{\"keccak256\":\"0x1972a5fcb3a808b58c85af5741949ef6af11ab0debd3ae8c708171ae1ae0d0c4\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://baa9837ae73b9e2362a47d42d081d7c0f3d8e878e5edb381117d94a6968949c9\",\"dweb:/ipfs/QmUmo6FUE7fv5z1WzW1YFjxp8PqaeN2JrEee9au59w3Xhe\"]},\"node_modules/account-abstraction/contracts/interfaces/INonceManager.sol\":{\"keccak256\":\"0xd575af0f6ebbd5f0b2933307d44cd7b4e03a69f4b817a67db5409bd3c89aeecb\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://3b1e2dea9b05cfba9d13339ed16d96457dc861013cc4f3f35b71a80f82448db3\",\"dweb:/ipfs/QmVaGy5uGDMSiU2SzyokTjoHFyb39VVG5wtaM9KTnHyZSk\"]},\"node_modules/account-abstraction/contracts/interfaces/IPaymaster.sol\":{\"keccak256\":\"0x49d8dbf8a85b006bcd89bbc40e4e9e113997cc016007de85263bdae70572d07f\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://bc0d83804c1b795d5c216b3518cd176c48f90db28550f267cbd89746d6b476c8\",\"dweb:/ipfs/QmNdCm4c6hnt7f6Q8q21QjtCNZWWRUaMVEYnQHEv68VnKt\"]},\"node_modules/account-abstraction/contracts/interfaces/IStakeManager.sol\":{\"keccak256\":\"0xbe5ca9e7f254d031687419e7b96ef48c9c63e9398bbe992dc72ffc6dc14e0a04\",\"license\":\"GPL-3.0-only\",\"urls\":[\"bzz-raw://1fffec71c38627a26fabb423350148009579f092623fb02b471a12d973763a00\",\"dweb:/ipfs/QmRBi31QEYXHj3x1AnQ2jKa2eziZH1b9av396P3b4dw6bj\"]},\"node_modules/account-abstraction/contracts/interfaces/PackedUserOperation.sol\":{\"keccak256\":\"0x1129b46381db68eddbc5cb49e50664667b66b03c480453858e7b25eabe444359\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://499a948aba60480dba6e25c763b8d918f1c246eb7a3302e04f493e080f3295be\",\"dweb:/ipfs/QmeRhhswf4NACcBKam2PyjpTP2ddSm648kah5kkQJsvwz3\"]},\"node_modules/solady/src/auth/Ownable.sol\":{\"keccak256\":\"0xc208cdd9de02bbf4b5edad18b88e23a2be7ff56d2287d5649329dc7cda64b9a3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8fba079cc7230c617f7493a2e97873f88e59a53a5018fcb2e2b6ac42d8aa5a3\",\"dweb:/ipfs/QmTXg8GSt8hsK2cZhbPFrund1mrwVdkLQmEPoQaFy4fhjs\"]},\"node_modules/solady/src/utils/ECDSA.sol\":{\"keccak256\":\"0x5a37fbc86ff99139e1cffad4ec05ffeeef17c1d1401113f107665d08a6abe7df\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4253a9d0cf4eab99f858fe798904f02ddaabfca3133c07a6314dc479ddd2e217\",\"dweb:/ipfs/QmXeK8yCQ8G4KsqkiP2Yewi2kPV9vdpUU9Qi1xcdX92p8v\"]},\"node_modules/solady/src/utils/SafeTransferLib.sol\":{\"keccak256\":\"0x7d0de1ff3be5dc32635283280b000d4794015a1b61d7dae7f3ff7b0721b07210\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e307c9eece677565e7d584ee77c56134b5db38a70f557f9d2b1b308219276c0c\",\"dweb:/ipfs/QmTEtqaTFgRBFGpJyb5o4v2w8yrSpcNThov4bNpcLr2tTR\"]},\"node_modules/solady/src/utils/SignatureCheckerLib.sol\":{\"keccak256\":\"0x0eb1575bafc5537fcb4bba519123c694db66840d7a13b7d3b867c55bf95e9c8b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://33b81539b6c6901660ab7c134789178146f18622813de5bc984d4c6dad7b13e6\",\"dweb:/ipfs/QmNdG7Y74GbymWqbhMbMY92AHYxLug9sR5gNWfzwB7hM1b\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.27+commit.40a35a09"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"contract IEntryPoint","name":"entryPointArg","type":"address"},{"internalType":"address","name":"verifyingSignerArg","type":"address"},{"internalType":"address","name":"feeCollectorArg","type":"address"},{"internalType":"uint256","name":"unaccountedGasArg","type":"uint256"},{"internalType":"uint256","name":"paymasterIdWithdrawalDelayArg","type":"uint256"},{"internalType":"uint256","name":"minDepositArg","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"type":"error","name":"AlreadyInitialized"},{"inputs":[],"type":"error","name":"CanNotWithdrawToZeroAddress"},{"inputs":[],"type":"error","name":"CanNotWithdrawZeroAmount"},{"inputs":[],"type":"error","name":"DepositCanNotBeZero"},{"inputs":[],"type":"error","name":"FeeCollectorCanNotBeContract"},{"inputs":[],"type":"error","name":"FeeCollectorCanNotBeZero"},{"inputs":[],"type":"error","name":"InsufficientFunds"},{"inputs":[],"type":"error","name":"InsufficientFundsForPaymasterId"},{"inputs":[],"type":"error","name":"InsufficientFundsInGasTank"},{"inputs":[],"type":"error","name":"InvalidArrayLengths"},{"inputs":[],"type":"error","name":"InvalidPriceMarkup"},{"inputs":[],"type":"error","name":"InvalidSignatureLength"},{"inputs":[],"type":"error","name":"LowDeposit"},{"inputs":[],"type":"error","name":"NewOwnerIsZeroAddress"},{"inputs":[],"type":"error","name":"NoHandoverRequest"},{"inputs":[],"type":"error","name":"NoRequestSubmitted"},{"inputs":[],"type":"error","name":"PaymasterIdCanNotBeZero"},{"inputs":[],"type":"error","name":"PostOpGasLimitTooLow"},{"inputs":[],"type":"error","name":"ReentrancyGuardReentrantCall"},{"inputs":[{"internalType":"uint256","name":"clearanceTime","type":"uint256"}],"type":"error","name":"RequestNotClearedYet"},{"inputs":[],"type":"error","name":"SubmitRequestInstead"},{"inputs":[],"type":"error","name":"UnaccountedGasTooHigh"},{"inputs":[],"type":"error","name":"Unauthorized"},{"inputs":[],"type":"error","name":"UseDepositForInstead"},{"inputs":[],"type":"error","name":"VerifyingSignerCanNotBeContract"},{"inputs":[],"type":"error","name":"VerifyingSignerCanNotBeZero"},{"inputs":[],"type":"error","name":"WithdrawalFailed"},{"inputs":[{"internalType":"address","name":"recipient","type":"address","indexed":true},{"internalType":"uint256","name":"amount","type":"uint256","indexed":true}],"type":"event","name":"EthWithdrawn","anonymous":false},{"inputs":[{"internalType":"address","name":"oldFeeCollector","type":"address","indexed":true},{"internalType":"address","name":"newFeeCollector","type":"address","indexed":true},{"internalType":"address","name":"actor","type":"address","indexed":true}],"type":"event","name":"FeeCollectorChanged","anonymous":false},{"inputs":[{"internalType":"uint256","name":"oldValue","type":"uint256","indexed":true},{"internalType":"uint256","name":"newValue","type":"uint256","indexed":true}],"type":"event","name":"FixedPriceMarkupChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"_paymasterId","type":"address","indexed":true},{"internalType":"uint256","name":"_charge","type":"uint256","indexed":true},{"internalType":"uint256","name":"_premium","type":"uint256","indexed":true}],"type":"event","name":"GasBalanceDeducted","anonymous":false},{"inputs":[{"internalType":"address","name":"_paymasterId","type":"address","indexed":true},{"internalType":"uint256","name":"_value","type":"uint256","indexed":true}],"type":"event","name":"GasDeposited","anonymous":false},{"inputs":[{"internalType":"address","name":"_paymasterId","type":"address","indexed":true},{"internalType":"address","name":"_to","type":"address","indexed":true},{"internalType":"uint256","name":"_value","type":"uint256","indexed":true}],"type":"event","name":"GasWithdrawn","anonymous":false},{"inputs":[{"internalType":"uint256","name":"oldValue","type":"uint256","indexed":true},{"internalType":"uint256","name":"newValue","type":"uint256","indexed":true}],"type":"event","name":"MinDepositChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address","indexed":true}],"type":"event","name":"OwnershipHandoverCanceled","anonymous":false},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address","indexed":true}],"type":"event","name":"OwnershipHandoverRequested","anonymous":false},{"inputs":[{"internalType":"address","name":"oldOwner","type":"address","indexed":true},{"internalType":"address","name":"newOwner","type":"address","indexed":true}],"type":"event","name":"OwnershipTransferred","anonymous":false},{"inputs":[{"internalType":"address","name":"sender","type":"address","indexed":true},{"internalType":"uint256","name":"value","type":"uint256","indexed":false}],"type":"event","name":"Received","anonymous":false},{"inputs":[{"internalType":"address","name":"token","type":"address","indexed":true},{"internalType":"address","name":"to","type":"address","indexed":true},{"internalType":"uint256","name":"amount","type":"uint256","indexed":true},{"internalType":"address","name":"actor","type":"address","indexed":false}],"type":"event","name":"TokensWithdrawn","anonymous":false},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address","indexed":true},{"internalType":"bool","name":"isTrusted","type":"bool","indexed":false}],"type":"event","name":"TrustedPaymasterIdSet","anonymous":false},{"inputs":[{"internalType":"uint256","name":"oldValue","type":"uint256","indexed":true},{"internalType":"uint256","name":"newValue","type":"uint256","indexed":true}],"type":"event","name":"UnaccountedGasChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"oldSigner","type":"address","indexed":true},{"internalType":"address","name":"newSigner","type":"address","indexed":true},{"internalType":"address","name":"actor","type":"address","indexed":true}],"type":"event","name":"VerifyingSignerChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address","indexed":false}],"type":"event","name":"WithdrawalRequestCancelledFor","anonymous":false},{"inputs":[{"internalType":"address","name":"withdrawAddress","type":"address","indexed":false},{"internalType":"uint256","name":"amount","type":"uint256","indexed":false}],"type":"event","name":"WithdrawalRequestSubmitted","anonymous":false},{"inputs":[{"internalType":"uint32","name":"unstakeDelaySec","type":"uint32"}],"stateMutability":"payable","type":"function","name":"addStake"},{"inputs":[],"stateMutability":"payable","type":"function","name":"cancelOwnershipHandover"},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"cancelWithdrawalRequest"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"stateMutability":"payable","type":"function","name":"completeOwnershipHandover"},{"inputs":[],"stateMutability":"payable","type":"function","name":"deposit"},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address"}],"stateMutability":"payable","type":"function","name":"depositFor"},{"inputs":[],"stateMutability":"view","type":"function","name":"entryPoint","outputs":[{"internalType":"contract IEntryPoint","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"executeWithdrawalRequest"},{"inputs":[],"stateMutability":"view","type":"function","name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address"}],"stateMutability":"view","type":"function","name":"getBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"struct PackedUserOperation","name":"userOp","type":"tuple","components":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"initCode","type":"bytes"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"bytes32","name":"accountGasLimits","type":"bytes32"},{"internalType":"uint256","name":"preVerificationGas","type":"uint256"},{"internalType":"bytes32","name":"gasFees","type":"bytes32"},{"internalType":"bytes","name":"paymasterAndData","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}]},{"internalType":"address","name":"paymasterId","type":"address"},{"internalType":"uint48","name":"validUntil","type":"uint48"},{"internalType":"uint48","name":"validAfter","type":"uint48"},{"internalType":"uint32","name":"priceMarkup","type":"uint32"}],"stateMutability":"view","type":"function","name":"getHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"minDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}]},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"stateMutability":"view","type":"function","name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}]},{"inputs":[{"internalType":"bytes","name":"paymasterAndData","type":"bytes"}],"stateMutability":"pure","type":"function","name":"parsePaymasterAndData","outputs":[{"internalType":"address","name":"paymasterId","type":"address"},{"internalType":"uint48","name":"validUntil","type":"uint48"},{"internalType":"uint48","name":"validAfter","type":"uint48"},{"internalType":"uint32","name":"priceMarkup","type":"uint32"},{"internalType":"uint128","name":"paymasterValidationGasLimit","type":"uint128"},{"internalType":"uint128","name":"paymasterPostOpGasLimit","type":"uint128"},{"internalType":"bytes","name":"signature","type":"bytes"}]},{"inputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","name":"paymasterIdBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"paymasterIdWithdrawalDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"enum IPaymaster.PostOpMode","name":"mode","type":"uint8"},{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"uint256","name":"actualGasCost","type":"uint256"},{"internalType":"uint256","name":"actualUserOpFeePerGas","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"postOp"},{"inputs":[{"internalType":"address[]","name":"paymasterIds","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function","name":"refundBalances"},{"inputs":[],"stateMutability":"payable","type":"function","name":"renounceOwnership"},{"inputs":[],"stateMutability":"payable","type":"function","name":"requestOwnershipHandover"},{"inputs":[{"internalType":"address","name":"newFeeCollector","type":"address"}],"stateMutability":"payable","type":"function","name":"setFeeCollector"},{"inputs":[{"internalType":"uint256","name":"newMinDeposit","type":"uint256"}],"stateMutability":"payable","type":"function","name":"setMinDeposit"},{"inputs":[{"internalType":"address","name":"newVerifyingSigner","type":"address"}],"stateMutability":"payable","type":"function","name":"setSigner"},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address"},{"internalType":"bool","name":"isTrusted","type":"bool"}],"stateMutability":"payable","type":"function","name":"setTrustedPaymasterId"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"payable","type":"function","name":"setUnaccountedGas"},{"inputs":[{"internalType":"address","name":"withdrawAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"submitWithdrawalRequest"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"stateMutability":"payable","type":"function","name":"transferOwnership"},{"inputs":[],"stateMutability":"view","type":"function","name":"unaccountedGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"unlockStake"},{"inputs":[{"internalType":"struct PackedUserOperation","name":"userOp","type":"tuple","components":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"initCode","type":"bytes"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"bytes32","name":"accountGasLimits","type":"bytes32"},{"internalType":"uint256","name":"preVerificationGas","type":"uint256"},{"internalType":"bytes32","name":"gasFees","type":"bytes32"},{"internalType":"bytes","name":"paymasterAndData","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}]},{"internalType":"bytes32","name":"userOpHash","type":"bytes32"},{"internalType":"uint256","name":"maxCost","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"validatePaymasterUserOp","outputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"uint256","name":"validationData","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"verifyingSigner","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"withdrawERC20"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"payable","type":"function","name":"withdrawEth"},{"inputs":[{"internalType":"address payable","name":"withdrawAddress","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"withdrawStake"},{"inputs":[{"internalType":"address payable","name":"withdrawAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"withdrawTo"},{"inputs":[],"stateMutability":"payable","type":"receive"}],"devdoc":{"kind":"dev","methods":{"addStake(uint32)":{"params":{"unstakeDelaySec":"- The unstake delay for this paymaster. Can only be increased."}},"cancelOwnershipHandover()":{"details":"Cancels the two-step ownership handover to the caller, if any."},"cancelWithdrawalRequest()":{"details":"Cancel a withdrawal request for the paymasterId (Dapp Depositor address)"},"completeOwnershipHandover(address)":{"details":"Allows the owner to complete the two-step ownership handover to `pendingOwner`. Reverts if there is no existing ownership handover requested by `pendingOwner`."},"deposit()":{"details":"Override the default implementation."},"depositFor(address)":{"details":"Add a deposit for this paymaster and given paymasterId (Dapp Depositor address), used for paying for transaction fees","params":{"paymasterId":"dapp identifier for which deposit is being made"}},"executeWithdrawalRequest(address)":{"details":"Execute a withdrawal request for the paymasterId (Dapp Depositor address) Request must be cleared by the withdrawal delay period","params":{"paymasterId":"paymasterId (Dapp Depositor address)"}},"getBalance(address)":{"details":"get the current deposit for paymasterId (Dapp Depositor address)","params":{"paymasterId":"dapp identifier"}},"owner()":{"details":"Returns the owner of the contract."},"ownershipHandoverExpiresAt(address)":{"details":"Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`."},"postOp(uint8,bytes,uint256,uint256)":{"params":{"actualGasCost":"- Actual gas used so far (without this postOp call).","actualUserOpFeePerGas":"- the gas price this UserOp pays. This value is based on the UserOp's maxFeePerGas and maxPriorityFee (and basefee) It is not the same as tx.gasprice, which is what the bundler pays.","context":"- The context value returned by validatePaymasterUserOp","mode":"- Enum with the following options: opSucceeded - User operation succeeded. opReverted - User op reverted. The paymaster still has to pay for gas. postOpReverted - never passed in a call to postOp()."}},"refundBalances(address[],uint256[])":{"details":"Refund balances for multiple paymasterIds PM charges more than it should to protect itself. This function is used to refund the extra amount when the real consumption is known.","params":{"amounts":"The amounts to refund","paymasterIds":"The paymasterIds to refund"}},"renounceOwnership()":{"details":"Allows the owner to renounce their ownership."},"requestOwnershipHandover()":{"details":"Request a two-step ownership handover to the caller. The request will automatically expire in 48 hours (172800 seconds) by default."},"setFeeCollector(address)":{"details":"Set a new fee collector address. Can only be called by the owner of the contract.","params":{"newFeeCollector":"The new address to be set as the fee collector."}},"setMinDeposit(uint256)":{"details":"Set a new minimum deposit value. Can only be called by the owner of the contract.","params":{"newMinDeposit":"The new minimum deposit value to be set."}},"setSigner(address)":{"details":"Set a new verifying signer address. Can only be called by the owner of the contract.","params":{"newVerifyingSigner":"The new address to be set as the verifying signer."}},"setTrustedPaymasterId(address,bool)":{"details":"Set a new trusted paymasterId. Can only be called by the owner of the contract.","params":{"isTrusted":"Whether the paymasterId is trusted or not.","paymasterId":"The paymasterId to be set as trusted."}},"setUnaccountedGas(uint256)":{"details":"Set a new unaccountedGas value.","params":{"value":"The new value to be set as the unaccountedGas."}},"submitWithdrawalRequest(address,uint256)":{"details":"Submit a withdrawal request for the paymasterId (Dapp Depositor address)","params":{"amount":"amount to withdraw","withdrawAddress":"address to send the funds to"}},"transferOwnership(address)":{"details":"Allows the owner to transfer the ownership to `newOwner`."},"validatePaymasterUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":{"params":{"maxCost":"- The maximum cost of this transaction (based on maximum gas and gas price from userOp).","userOp":"- The user operation.","userOpHash":"- Hash of the user's request data."},"returns":{"context":" - Value to send to a postOp. Zero length to signify postOp is not required.","validationData":"- Signature and time-range of this operation, encoded the same as the return value of validateUserOperation. <20-byte> sigAuthorizer - 0 for valid signature, 1 to mark signature failure, other values are invalid for paymaster. <6-byte> validUntil - last timestamp this operation is valid. 0 for \"indefinite\" <6-byte> validAfter - first timestamp this operation is valid Note that the validation code cannot use block.timestamp (or block.number) directly."}},"withdrawERC20(address,address,uint256)":{"details":"pull tokens out of paymaster in case they were sent to the paymaster at any point.","params":{"amount":"amount to withdraw","target":"address to send to","token":"the token deposit to withdraw"}},"withdrawStake(address)":{"params":{"withdrawAddress":"- The address to send withdrawn value."}},"withdrawTo(address,uint256)":{"params":{"amount":"- Amount to withdraw.","withdrawAddress":"- Target to send to."}}},"version":1},"userdoc":{"kind":"user","methods":{"addStake(uint32)":{"notice":"Add stake for this paymaster. This method can also carry eth value to add to the current stake."},"getDeposit()":{"notice":"Return current paymaster's deposit on the entryPoint."},"getHash((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),address,uint48,uint48,uint32)":{"notice":"return the hash we're going to sign off-chain (and validate on-chain) this method is called by the off-chain service, to sign the request. it is called on-chain from the validatePaymasterUserOp, to validate the signature. note that this signature covers all fields of the UserOperation, except the \"paymasterAndData\", which will carry the signature itself."},"postOp(uint8,bytes,uint256,uint256)":{"notice":"Post-operation handler. Must verify sender is the entryPoint."},"setFeeCollector(address)":{"notice":"If _newFeeCollector is set to zero address, it will revert with an error. After setting the new fee collector address, it will emit an event FeeCollectorChanged."},"setSigner(address)":{"notice":"If _newVerifyingSigner is set to zero address, it will revert with an error. After setting the new signer address, it will emit an event VerifyingSignerChanged."},"setUnaccountedGas(uint256)":{"notice":"only to be called by the owner of the contract."},"unlockStake()":{"notice":"Unlock the stake, in order to withdraw it. The paymaster can't serve requests once unlocked, until it calls addStake again"},"validatePaymasterUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":{"notice":"Payment validation: check if paymaster agrees to pay. Must verify sender is the entryPoint. Revert to reject this request. Note that bundlers will reject this method if it changes the state, unless the paymaster is trusted (whitelisted). The paymaster pre-pays using its deposit, and receive back a refund after the postOp method returns."},"withdrawStake(address)":{"notice":"Withdraw the entire paymaster's stake. stake must be unlocked first (and then wait for the unstakeDelay to be over)"},"withdrawTo(address,uint256)":{"notice":"Withdraw value from the deposit."}},"version":1}},"settings":{"remappings":["@ERC4337/account-abstraction/=node_modules/account-abstraction/","@biconomy-devx/=node_modules/@biconomy-devx/","@erc7579/=node_modules/@erc7579/","@gnosis.pm/=node_modules/@gnosis.pm/","@modulekit/=node_modules/modulekit/src/","@nexus/=node_modules/nexus/","@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/","@prb/math/=node_modules/erc7739-validator-base/node_modules/@prb/math/src/","@prb/test/=node_modules/@prb/test/","@rhinestone/=node_modules/@rhinestone/","@safe-global/=node_modules/@safe-global/","@uniswap/swap-router-contracts/contracts/=node_modules/@uniswap/swap-router-contracts/contracts/","@uniswap/v3-core/contracts/=node_modules/@uniswap/v3-core/contracts/","@uniswap/v3-periphery/contracts/=node_modules/@uniswap/v3-periphery/contracts/","@zerodev/=node_modules/@zerodev/","ExcessivelySafeCall/=node_modules/erc7739-validator-base/node_modules/excessively-safe-call/src/","account-abstraction-v0.6/=node_modules/account-abstraction-v0.6/","account-abstraction/=node_modules/account-abstraction/contracts/","accountabstraction/=node_modules/accountabstraction/","base64-sol/=node_modules/base64-sol/","ds-test/=node_modules/ds-test/","enumerableset4337/=node_modules/erc7739-validator-base/node_modules/@erc7579/enumerablemap4337/src/","erc4337-validation/=node_modules/erc7739-validator-base/node_modules/@rhinestone/erc4337-validation/src/","erc7579/=node_modules/erc7579/src/","erc7739-validator-base/=node_modules/erc7739-validator-base/","erc7739Validator/=node_modules/erc7739-validator-base/src/","excessively-safe-call/=node_modules/excessively-safe-call/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","kernel/=node_modules/@zerodev/kernel/src/","module-bases/=node_modules/module-bases/src/","modulekit/=node_modules/@rhinestone/modulekit/src/","nexus/=node_modules/nexus/","registry/=node_modules/modulekit/node_modules/@rhinestone/registry/src/","safe7579/=node_modules/erc7739-validator-base/node_modules/@rhinestone/safe7579/src/","sentinellist/=node_modules/sentinellist/src/","solady/=node_modules/solady/src/","solady/src/=node_modules/solady/src/","solarray/=node_modules/solarray/src/"],"optimizer":{"enabled":true,"runs":800},"metadata":{"bytecodeHash":"none"},"compilationTarget":{"contracts/sponsorship/BiconomySponsorshipPaymaster.sol":"BiconomySponsorshipPaymaster"},"evmVersion":"cancun","libraries":{},"viaIR":true},"sources":{"contracts/base/BasePaymaster.sol":{"keccak256":"0xc95780f630a393e65f39873f4f4b9446507cfcbd2beb5d706efd509d3e919853","urls":["bzz-raw://52728107fa47d986743cc07b5d8e22d4a019720d59623ae6e436dbf5912cb948","dweb:/ipfs/QmVKrcs3Mtz6gQ8s6EaC9BPk3mu4Rz4ZBqgRxWHERv9DAM"],"license":"GPL-3.0"},"contracts/common/BiconomySponsorshipPaymasterErrors.sol":{"keccak256":"0xf7bfb4912e8d118a3f1f4f82a19834a686f105ad142afb7203adfa2ff38d7000","urls":["bzz-raw://88593bfdb72f8585853a91e675367ac718d1daf5e62c4192459d73cbaeeb07a5","dweb:/ipfs/QmXFRjaPKuS9d1GmMxvrS4JZN3KBmWWYt8VNJZxLGE2jkB"],"license":"LGPL-3.0-only"},"contracts/interfaces/IBiconomySponsorshipPaymaster.sol":{"keccak256":"0x37f183fefaab68aa36dba3045c2c232f757de24faba3db2e5b5b20baa6e4a6f5","urls":["bzz-raw://9fc1df58e44e9c3fd2c09d5d2f7bab83336d1cffde987c9d2575a4d82a04c7cc","dweb:/ipfs/QmWAjzjybXBztdnrnRhRYWSq7rQ56Lou5Amhf8C6wohCdz"],"license":"GPL-3.0"},"contracts/sponsorship/BiconomySponsorshipPaymaster.sol":{"keccak256":"0xa3065455a1bed080af563fa5060edb49c25a40ef61a03689035d21fff3664c23","urls":["bzz-raw://f80c9b2a747ea6c9982163a491b9e59917e6b85fcbe012e7a6e6eba0fd5c8fd7","dweb:/ipfs/Qmb8kNpXXefwquY6Tc3mRvyPjWp6ekv5f4E5VMTDi8A6o4"],"license":"GPL-3.0"},"contracts/utils/SoladyOwnable.sol":{"keccak256":"0xa8d7b45c34f96e24ae669cdc5add90088b8236a101cb36a7148b05c678d2f8ce","urls":["bzz-raw://05d1686b40ce43c7ebb674c64ec6695c7822f3380954028c218bf59b64f8165d","dweb:/ipfs/Qmc6Vr8Ru1EpupJ7gp6kmdPA5BqcoPY5GqF8ZLvMPzvBaX"],"license":"MIT"},"lib/forge-std/src/console.sol":{"keccak256":"0xf61cb43a94d8318049d0a7f567af8c0aa952b5762a43851b130b90b3fcde0c6a","urls":["bzz-raw://53a52c6c3aeb22f7a18f53fca16af590308a8e3e5507e74df9b8e2561c932194","dweb:/ipfs/QmaaXuY8mC66YoE2xyZdWuLHXqAxLjbnNxiofx8BTP1MRn"],"license":"MIT"},"node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol":{"keccak256":"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7","urls":["bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db","dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9"],"license":"MIT"},"node_modules/@openzeppelin/contracts/utils/ReentrancyGuardTransient.sol":{"keccak256":"0x534bf5c25d6003a8ce50b400d20fa460c03169ad7baa90d47a912917c36dfe2b","urls":["bzz-raw://cc0cc39c40ea23d3c46e8517e19ebdd877719d3159fa032f2a91802cdd205c79","dweb:/ipfs/QmSoNh7HTkD4TJcBkBKSGSPMMpLUZKE7s9f2G6mjdaJywg"],"license":"MIT"},"node_modules/@openzeppelin/contracts/utils/TransientSlot.sol":{"keccak256":"0x9303ef5a2beb555e52ce56598de205ce07ca8988fc67d073687c06cb8fc973d1","urls":["bzz-raw://8b2e48fb42844c25e6cb38e7cfa1d91dcdc054613fd10f608833dbc677acf889","dweb:/ipfs/QmT4HQxbgpWA3fZnK4dY3eXHNCoyBvpvzNq5k7eSt5mR5t"],"license":"MIT"},"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol":{"keccak256":"0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8","urls":["bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621","dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL"],"license":"MIT"},"node_modules/account-abstraction/contracts/core/Helpers.sol":{"keccak256":"0x6247e011a6cb0b263b3aa098822977181674d91b62e5bdfe04c6e66f72da25d6","urls":["bzz-raw://ca829a69b3fbc74fec8e140d42a2bf93bc3512609272f031c846470f61f0ab7e","dweb:/ipfs/QmP3r3MBgAN39KeVB1rCGJWwcBcotNt26ALtAR54poQ1Jc"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/core/UserOperationLib.sol":{"keccak256":"0x9d50ece985d35f82e33e5da417595c86fac10449e3d10895d08363d33aad454b","urls":["bzz-raw://b1d11cc364c8bf7ed5388268c895b5ffed16e87dfbcb320ddeeba5e7974315dc","dweb:/ipfs/QmYSpvjxEjweietQrYZagwQ52ipy7eXx4rwvnTzXKeGeMS"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/interfaces/IAggregator.sol":{"keccak256":"0xf100d6fcc0c3b450b13e979b6a42c628c292a1bc340eccc2e7796b80e3975588","urls":["bzz-raw://192938b5b27234d35c8098a319e879363c79f750eea4d0e409dc889a8ce5b155","dweb:/ipfs/QmURpaJFPqEtkKP2ngBsgZhAGN8wAWh5XQpYmCkiz4Urz5"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/interfaces/IEntryPoint.sol":{"keccak256":"0x1972a5fcb3a808b58c85af5741949ef6af11ab0debd3ae8c708171ae1ae0d0c4","urls":["bzz-raw://baa9837ae73b9e2362a47d42d081d7c0f3d8e878e5edb381117d94a6968949c9","dweb:/ipfs/QmUmo6FUE7fv5z1WzW1YFjxp8PqaeN2JrEee9au59w3Xhe"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/interfaces/INonceManager.sol":{"keccak256":"0xd575af0f6ebbd5f0b2933307d44cd7b4e03a69f4b817a67db5409bd3c89aeecb","urls":["bzz-raw://3b1e2dea9b05cfba9d13339ed16d96457dc861013cc4f3f35b71a80f82448db3","dweb:/ipfs/QmVaGy5uGDMSiU2SzyokTjoHFyb39VVG5wtaM9KTnHyZSk"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/interfaces/IPaymaster.sol":{"keccak256":"0x49d8dbf8a85b006bcd89bbc40e4e9e113997cc016007de85263bdae70572d07f","urls":["bzz-raw://bc0d83804c1b795d5c216b3518cd176c48f90db28550f267cbd89746d6b476c8","dweb:/ipfs/QmNdCm4c6hnt7f6Q8q21QjtCNZWWRUaMVEYnQHEv68VnKt"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/interfaces/IStakeManager.sol":{"keccak256":"0xbe5ca9e7f254d031687419e7b96ef48c9c63e9398bbe992dc72ffc6dc14e0a04","urls":["bzz-raw://1fffec71c38627a26fabb423350148009579f092623fb02b471a12d973763a00","dweb:/ipfs/QmRBi31QEYXHj3x1AnQ2jKa2eziZH1b9av396P3b4dw6bj"],"license":"GPL-3.0-only"},"node_modules/account-abstraction/contracts/interfaces/PackedUserOperation.sol":{"keccak256":"0x1129b46381db68eddbc5cb49e50664667b66b03c480453858e7b25eabe444359","urls":["bzz-raw://499a948aba60480dba6e25c763b8d918f1c246eb7a3302e04f493e080f3295be","dweb:/ipfs/QmeRhhswf4NACcBKam2PyjpTP2ddSm648kah5kkQJsvwz3"],"license":"GPL-3.0"},"node_modules/solady/src/auth/Ownable.sol":{"keccak256":"0xc208cdd9de02bbf4b5edad18b88e23a2be7ff56d2287d5649329dc7cda64b9a3","urls":["bzz-raw://e8fba079cc7230c617f7493a2e97873f88e59a53a5018fcb2e2b6ac42d8aa5a3","dweb:/ipfs/QmTXg8GSt8hsK2cZhbPFrund1mrwVdkLQmEPoQaFy4fhjs"],"license":"MIT"},"node_modules/solady/src/utils/ECDSA.sol":{"keccak256":"0x5a37fbc86ff99139e1cffad4ec05ffeeef17c1d1401113f107665d08a6abe7df","urls":["bzz-raw://4253a9d0cf4eab99f858fe798904f02ddaabfca3133c07a6314dc479ddd2e217","dweb:/ipfs/QmXeK8yCQ8G4KsqkiP2Yewi2kPV9vdpUU9Qi1xcdX92p8v"],"license":"MIT"},"node_modules/solady/src/utils/SafeTransferLib.sol":{"keccak256":"0x7d0de1ff3be5dc32635283280b000d4794015a1b61d7dae7f3ff7b0721b07210","urls":["bzz-raw://e307c9eece677565e7d584ee77c56134b5db38a70f557f9d2b1b308219276c0c","dweb:/ipfs/QmTEtqaTFgRBFGpJyb5o4v2w8yrSpcNThov4bNpcLr2tTR"],"license":"MIT"},"node_modules/solady/src/utils/SignatureCheckerLib.sol":{"keccak256":"0x0eb1575bafc5537fcb4bba519123c694db66840d7a13b7d3b867c55bf95e9c8b","urls":["bzz-raw://33b81539b6c6901660ab7c134789178146f18622813de5bc984d4c6dad7b13e6","dweb:/ipfs/QmNdG7Y74GbymWqbhMbMY92AHYxLug9sR5gNWfzwB7hM1b"],"license":"MIT"}},"version":1},"id":7} \ No newline at end of file +{"abi":[{"type":"constructor","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"entryPointArg","type":"address","internalType":"contract IEntryPoint"},{"name":"verifyingSignerArg","type":"address","internalType":"address"},{"name":"feeCollectorArg","type":"address","internalType":"address"},{"name":"unaccountedGasArg","type":"uint256","internalType":"uint256"},{"name":"paymasterIdWithdrawalDelayArg","type":"uint256","internalType":"uint256"},{"name":"minDepositArg","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"receive","stateMutability":"payable"},{"type":"function","name":"addStake","inputs":[{"name":"unstakeDelaySec","type":"uint32","internalType":"uint32"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"cancelOwnershipHandover","inputs":[],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"cancelWithdrawalRequest","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"completeOwnershipHandover","inputs":[{"name":"pendingOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"deposit","inputs":[],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"depositFor","inputs":[{"name":"paymasterId","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"entryPoint","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IEntryPoint"}],"stateMutability":"view"},{"type":"function","name":"executeWithdrawalRequest","inputs":[{"name":"paymasterId","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"feeCollector","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getBalance","inputs":[{"name":"paymasterId","type":"address","internalType":"address"}],"outputs":[{"name":"balance","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getDeposit","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getHash","inputs":[{"name":"userOp","type":"tuple","internalType":"struct PackedUserOperation","components":[{"name":"sender","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"initCode","type":"bytes","internalType":"bytes"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"accountGasLimits","type":"bytes32","internalType":"bytes32"},{"name":"preVerificationGas","type":"uint256","internalType":"uint256"},{"name":"gasFees","type":"bytes32","internalType":"bytes32"},{"name":"paymasterAndData","type":"bytes","internalType":"bytes"},{"name":"signature","type":"bytes","internalType":"bytes"}]},{"name":"paymasterId","type":"address","internalType":"address"},{"name":"validUntil","type":"uint48","internalType":"uint48"},{"name":"validAfter","type":"uint48","internalType":"uint48"},{"name":"priceMarkup","type":"uint32","internalType":"uint32"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"minDeposit","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"owner","inputs":[],"outputs":[{"name":"result","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"ownershipHandoverExpiresAt","inputs":[{"name":"pendingOwner","type":"address","internalType":"address"}],"outputs":[{"name":"result","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"parsePaymasterAndData","inputs":[{"name":"paymasterAndData","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"paymasterId","type":"address","internalType":"address"},{"name":"validUntil","type":"uint48","internalType":"uint48"},{"name":"validAfter","type":"uint48","internalType":"uint48"},{"name":"priceMarkup","type":"uint32","internalType":"uint32"},{"name":"paymasterValidationGasLimit","type":"uint128","internalType":"uint128"},{"name":"paymasterPostOpGasLimit","type":"uint128","internalType":"uint128"},{"name":"signature","type":"bytes","internalType":"bytes"}],"stateMutability":"pure"},{"type":"function","name":"paymasterIdBalances","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"paymasterIdWithdrawalDelay","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"postOp","inputs":[{"name":"mode","type":"uint8","internalType":"enum IPaymaster.PostOpMode"},{"name":"context","type":"bytes","internalType":"bytes"},{"name":"actualGasCost","type":"uint256","internalType":"uint256"},{"name":"actualUserOpFeePerGas","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"refundBalances","inputs":[{"name":"paymasterIds","type":"address[]","internalType":"address[]"},{"name":"amounts","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"renounceOwnership","inputs":[],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"requestOwnershipHandover","inputs":[],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setFeeCollector","inputs":[{"name":"newFeeCollector","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setMinDeposit","inputs":[{"name":"newMinDeposit","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setSigner","inputs":[{"name":"newVerifyingSigner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setTrustedPaymasterId","inputs":[{"name":"paymasterId","type":"address","internalType":"address"},{"name":"isTrusted","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setUnaccountedGas","inputs":[{"name":"value","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"submitWithdrawalRequest","inputs":[{"name":"withdrawAddress","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"transferOwnership","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"unaccountedGas","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"unlockStake","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"validatePaymasterUserOp","inputs":[{"name":"userOp","type":"tuple","internalType":"struct PackedUserOperation","components":[{"name":"sender","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"initCode","type":"bytes","internalType":"bytes"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"accountGasLimits","type":"bytes32","internalType":"bytes32"},{"name":"preVerificationGas","type":"uint256","internalType":"uint256"},{"name":"gasFees","type":"bytes32","internalType":"bytes32"},{"name":"paymasterAndData","type":"bytes","internalType":"bytes"},{"name":"signature","type":"bytes","internalType":"bytes"}]},{"name":"userOpHash","type":"bytes32","internalType":"bytes32"},{"name":"maxCost","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"context","type":"bytes","internalType":"bytes"},{"name":"validationData","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"function","name":"verifyingSigner","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"withdrawERC20","inputs":[{"name":"token","type":"address","internalType":"contract IERC20"},{"name":"target","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"withdrawEth","inputs":[{"name":"recipient","type":"address","internalType":"address payable"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"withdrawStake","inputs":[{"name":"withdrawAddress","type":"address","internalType":"address payable"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"withdrawTo","inputs":[{"name":"withdrawAddress","type":"address","internalType":"address payable"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"EthWithdrawn","inputs":[{"name":"recipient","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"FeeCollectorChanged","inputs":[{"name":"oldFeeCollector","type":"address","indexed":true,"internalType":"address"},{"name":"newFeeCollector","type":"address","indexed":true,"internalType":"address"},{"name":"actor","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"FixedPriceMarkupChanged","inputs":[{"name":"oldValue","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"newValue","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"GasBalanceDeducted","inputs":[{"name":"_paymasterId","type":"address","indexed":true,"internalType":"address"},{"name":"_charge","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"_premium","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"GasDeposited","inputs":[{"name":"_paymasterId","type":"address","indexed":true,"internalType":"address"},{"name":"_value","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"GasWithdrawn","inputs":[{"name":"_paymasterId","type":"address","indexed":true,"internalType":"address"},{"name":"_to","type":"address","indexed":true,"internalType":"address"},{"name":"_value","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"MinDepositChanged","inputs":[{"name":"oldValue","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"newValue","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"OwnershipHandoverCanceled","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"OwnershipHandoverRequested","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"name":"oldOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"Received","inputs":[{"name":"sender","type":"address","indexed":true,"internalType":"address"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"TokensWithdrawn","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"actor","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"TrustedPaymasterIdSet","inputs":[{"name":"paymasterId","type":"address","indexed":true,"internalType":"address"},{"name":"isTrusted","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"UnaccountedGasChanged","inputs":[{"name":"oldValue","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"newValue","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"VerifyingSignerChanged","inputs":[{"name":"oldSigner","type":"address","indexed":true,"internalType":"address"},{"name":"newSigner","type":"address","indexed":true,"internalType":"address"},{"name":"actor","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"WithdrawalRequestCancelledFor","inputs":[{"name":"paymasterId","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"WithdrawalRequestSubmitted","inputs":[{"name":"withdrawAddress","type":"address","indexed":false,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"AlreadyInitialized","inputs":[]},{"type":"error","name":"CanNotWithdrawToZeroAddress","inputs":[]},{"type":"error","name":"CanNotWithdrawZeroAmount","inputs":[]},{"type":"error","name":"DepositCanNotBeZero","inputs":[]},{"type":"error","name":"FeeCollectorCanNotBeContract","inputs":[]},{"type":"error","name":"FeeCollectorCanNotBeZero","inputs":[]},{"type":"error","name":"InsufficientFunds","inputs":[]},{"type":"error","name":"InsufficientFundsForPaymasterId","inputs":[]},{"type":"error","name":"InsufficientFundsInGasTank","inputs":[]},{"type":"error","name":"InvalidArrayLengths","inputs":[]},{"type":"error","name":"InvalidPriceMarkup","inputs":[]},{"type":"error","name":"InvalidSignatureLength","inputs":[]},{"type":"error","name":"LowDeposit","inputs":[]},{"type":"error","name":"NewOwnerIsZeroAddress","inputs":[]},{"type":"error","name":"NoHandoverRequest","inputs":[]},{"type":"error","name":"NoRequestSubmitted","inputs":[]},{"type":"error","name":"PaymasterIdCanNotBeZero","inputs":[]},{"type":"error","name":"PostOpGasLimitTooLow","inputs":[]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"RequestNotClearedYet","inputs":[{"name":"clearanceTime","type":"uint256","internalType":"uint256"}]},{"type":"error","name":"SubmitRequestInstead","inputs":[]},{"type":"error","name":"UnaccountedGasTooHigh","inputs":[]},{"type":"error","name":"Unauthorized","inputs":[]},{"type":"error","name":"UseDepositForInstead","inputs":[]},{"type":"error","name":"VerifyingSignerCanNotBeContract","inputs":[]},{"type":"error","name":"VerifyingSignerCanNotBeZero","inputs":[]},{"type":"error","name":"WithdrawalFailed","inputs":[]}],"bytecode":{"object":"0x60a0604052346100b55760e0611f96803803809161001c826100b9565b60a039126100b55761006c60a05161003381610116565b60c05161003f81610116565b60e05161004b81610116565b6101005161005881610116565b610120519161014051936101605195610127565b604051611c6690816103308239608051818181610528015281816105d90152818161066e015281816106dd0152818161079301528181611161015281816113f7015261187a0152f35b5f80fd5b60a0601f91909101601f19168101906001600160401b038211908210176100df57604052565b634e487b7160e01b5f52604160045260245ffd5b601f909101601f19168101906001600160401b038211908210176100df57604052565b6001600160a01b038116036100b557565b95949291959390938060601b15610240576001600160a01b0316638b78c6d8198190555f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a36040516301ffc9a760e01b815263122a0e9b60e31b6004820152916020836024816001600160a01b0389165afa90811561023557610204976101ff966101c36101f5946101fa975f91610206575b506102e3565b6080526101d184838361024d565b5f55600180546001600160a01b0319166001600160a01b0392909216919091179055565b600255565b600355565b600455565b565b610228915060203d60201161022e575b61022081836100f3565b8101906102cb565b5f6101bd565b503d610216565b6040513d5f823e3d90fd5b637448fbae5f526004601cfd5b6001600160a01b03811661026a576381618de160e01b5f5260045ffd5b3b1561027f5763edc30c2760e01b5f5260045ffd5b6001600160a01b03811661029c57633fd0943d60e11b5f5260045ffd5b3b156102b157631f47525f60e21b5f5260045ffd5b620186a0106102bc57565b63313db2a560e11b5f5260045ffd5b908160209103126100b5575180151581036100b55790565b156102ea57565b60405162461bcd60e51b815260206004820152601e60248201527f49456e747279506f696e7420696e74657266616365206d69736d6174636800006044820152606490fdfe60806040526004361015610046575b3615610018575f80fd5b6040513481527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587460203392a2005b5f5f3560e01c80630396cb60146113c75780631b9a91a414611302578063205c2878146112d857806323d9ac9b146112b257806325692962146112675780633261fd581461107557806341b3d1851461105757806344004cc114610f5057806352b7512c14610ecb57806354d1f13d14610e8557806359ffb13014610d845780636c19e78314610cfc578063715018a614610cb157806373acf54214610c525780637c627b2114610b005780638c253a3914610a4c5780638da5cb5b14610a215780638fcc9cfb146109db57806394d4ad6014610917578063a40a7ddc146102ef578063a42dce8014610874578063aa67c9191461071f578063ab94cad714610701578063b0d691fe146106bd578063bb9fe6bf1461064a578063c23a5cea146105ac578063c399ec88146104fc578063c415b95c146104d5578063d0e30db0146104ba578063def042571461042a578063e714a028146103d2578063f04e283e14610384578063f0c12a3214610366578063f2fde38b14610327578063f8b2cb4f146102ef578063f8cf826d1461021d5763fee81cf4146101e8575061000e565b3461021a57602036600319011261021a57610201611467565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b50604036600319011261021a5760043567ffffffffffffffff81116102eb5761024a9036906004016114c1565b9060243567ffffffffffffffff81116102e75761026b9036906004016114c1565b906102746117d3565b8184036102d857845b848110610288578580f35b6102938184846117af565b35906102a08187876117af565b35916001600160a01b0383168093036102d457600192885260056020526102cc60408920918254611560565b90550161027d565b8780fd5b63a9854bc960e01b8552600485fd5b8380fd5b5080fd5b503461021a57602036600319011261021a5760406020916001600160a01b03610316611467565b168152600583522054604051908152f35b50602036600319011261021a5761033c611467565b6103446117d3565b8060601b156103595761035690611c1b565b80f35b637448fbae82526004601cfd5b503461021a578060031936011261021a576020600354604051908152f35b50602036600319011261021a57610399611467565b6103a16117d3565b63389a75e1600c528082526020600c20805442116103c55790826103569255611c1b565b636f5e881883526004601cfd5b503461021a578060031936011261021a5733815260076020525f60026040832082815582600182015501557fe227a0e51918df92c3a9837808b4825847fa7c14cbacd937b650c337e91712416020604051338152a180f35b503461021a5760a036600319011261021a5760043567ffffffffffffffff81116102eb5761012060031982360301126102eb5761046561147d565b6044359065ffffffffffff821682036102e7576064359265ffffffffffff841684036104b6576084359463ffffffff8616860361021a5760206104ae87878787876004016116b3565b604051908152f35b8480fd5b508060031936011261021a5763302076c960e01b8152600490fd5b503461021a578060031936011261021a5760206001600160a01b0360015416604051908152f35b503461021a578060031936011261021a576040516370a0823160e01b81523060048201526020816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa9081156105a157829161056b575b602082604051908152f35b90506020813d602011610599575b8161058660209383611522565b810103126102eb5760209150515f610560565b3d9150610579565b6040513d84823e3d90fd5b503461021a57602036600319011261021a57806105c7611467565b6105cf6117d3565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690813b15610646576001600160a01b036024849283604051958694859363611d2e7560e11b85521660048401525af180156105a1576106355750f35b8161063f91611522565b61021a5780f35b5050fd5b503461021a578060031936011261021a576106636117d3565b806001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016803b156106ba5781809160046040518094819363bb9fe6bf60e01b83525af180156105a1576106355750f35b50fd5b503461021a578060031936011261021a5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b503461021a578060031936011261021a576020600254604051908152f35b50602036600319011261021a576001600160a01b0361073c611467565b6107446117ef565b168015610865573415610856578082526005602052610767346040842054611560565b6004541161084757808252600560205260408220610786348254611560565b9055816001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016803b156102eb57816024916040519283809263b760faf960e01b825230600483015234905af180156105a157610832575b505034907f1dbbf474736d6415d6a265fabee708fe6e988f6fd0c9d870ded36cab380898dd8380a3807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b8161083c91611522565b6102eb57815f6107e4565b6305d163b560e11b8252600482fd5b6333a6177160e11b8252600482fd5b63016e7bd760e61b8252600482fd5b50602036600319011261021a57610889611467565b6108916117d3565b803b610908576001600160a01b031680156108f957600154908073ffffffffffffffffffffffffffffffffffffffff198316176001556001600160a01b033392167fc6bc29e495f43077b898bfa29b8be68f4c836ccf780f9f7782f916dfd3874f158480a480f35b633fd0943d60e11b8252600482fd5b631f47525f60e21b8252600482fd5b503461021a57602036600319011261021a5760043567ffffffffffffffff81116102eb57610949903690600401611493565b610952916115c4565b959794938694604094929451996001600160a01b038b9a168a5265ffffffffffff1660208a015265ffffffffffff16604089015263ffffffff1660608801526001600160801b031660808701526001600160801b031660a086015260c0850160e090528160e08601526101008501378183016101000152601f1990601f01168101036101000190f35b50602036600319011261021a576004356109f36117d3565b806004547fcacd94bd1e7bb1185c816a740d9439bc8eff8159f6f4ffad8d306b5aca2ebd928480a360045580f35b503461021a578060031936011261021a576020638b78c6d819546001600160a01b0360405191168152f35b50604036600319011261021a57610a61611467565b60243590811515809203610afc576001600160a01b0390610a806117d3565b16908115610aed5781835260066020528060ff604085205416151503610aa4578280f35b60207fd20b41feac4c77c85eaf676a2d91056dc1b6ba4cc02253745a3152ca4f23d87991838552600682526040852060ff1981541660ff8316179055604051908152a25f808280f35b63016e7bd760e61b8352600483fd5b8280fd5b503461021a57608036600319011261021a576003600435101561021a5760243567ffffffffffffffff81116102eb57610b3f6060913690600401611493565b90809291610b4b611870565b810103126102eb578035906001600160a01b038216809203610afc5760208101359063ffffffff82168092036102e7576040013591610bb2620f4240610baa610ba3610b9b6064356002546118e7565b604435611560565b94856118e7565b049283611581565b926001600160a01b03600154168552600560205260408520610bd5858254611560565b90558280821115610c2a57610be991611581565b8185526005602052610c0060408620918254611560565b90555b7f683b3fc4c8726e960b5b0aa3838c1071e2a9b7045fcd4dfc953fc1092923f5378480a480f35b90610c3491611581565b8185526005602052610c4b60408620918254611581565b9055610c03565b50602036600319011261021a57600435610c6a6117d3565b620186a08111610ca257600254816002557f33ddf610723ec48e858790576fb3294cc312fcbd937c1475d53e3673145488eb8380a380f35b63313db2a560e11b8252600482fd5b508060031936011261021a57610cc56117d3565b80638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380638b78c6d8195580f35b50602036600319011261021a57610d11611467565b610d196117d3565b803b610d75576001600160a01b0381168015610d66576001600160a01b0383541691835533917fe1f62c0e6d7bb6d470828565415bf2e87dbfea50e52d2d753788b529bd0c6d628480a480f35b6381618de160e01b8352600483fd5b63edc30c2760e01b8252600482fd5b503461021a57604036600319011261021a57610d9e611467565b6001600160a01b03166024358115610e76578015610e6757338352600560205260408320548111610e58577fe1a007fa1edbdbd989490b46b37c8a7342e8f2f1162a20078a80a9528ab0a149916040918251610df9816114f2565b818152600260208201848152858301904282523389526007602052868920935184556001600160a01b036001850191511673ffffffffffffffffffffffffffffffffffffffff198254161790555191015582519182526020820152a180f35b6345f34ee560e01b8352600483fd5b6339d3420560e11b8352600483fd5b6392bc9df360e01b8352600483fd5b508060031936011261021a5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461021a57606036600319011261021a5760043567ffffffffffffffff81116102eb5761012060031982360301126102eb576020610f1a606092610f0e611870565b604435906004016118fa565b604092919251948593604085528051938491826040880152018686015e8383018501526020830152601f01601f19168101030190f35b503461021a57606036600319011261021a576004356001600160a01b0381168091036102eb57610f7e61147d565b60443591610f8a6117d3565b610f926117ef565b6001600160a01b03821691821561104857601452826034526fa9059cbb00000000000000000000000084526020846044601082855af1806001865114161561102a575b50836034527f4e5ba90310f16273bb12f3c33f23905e573b86df58a2895a525285d083bf043f6020604051338152a4807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b3d823b1517101561103b575f610fd5565b6390b8ec1884526004601cfd5b6392bc9df360e01b8552600485fd5b503461021a578060031936011261021a576020600454604051908152f35b503461021a57602036600319011261021a5761108f611467565b6110976117ef565b6001600160a01b03811690818352600760205260408320604051916110bb836114f2565b8154835260026001600160a01b036001840154169260208501938452015460408401908082521561125857516110fa916110f49061184a565b90611560565b8042106112465750828452600560205260408420548251818111156112415750805b8084521561123257825161112f91611581565b8385526005602052604085205582845260076020525f6002604086208281558260018201550155836001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166001600160a01b038351168451823b156102e7576044849283604051958694859363040b850f60e31b8552600485015260248401525af180156105a15761121d575b50506001600160a01b039051169051917f926a144b6fffc1d73f115b81af7ec66a7c12aed0ff73197c39a683753fc1d9258480a4807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b8161122791611522565b6102e757835f6111c3565b6339d3420560e11b8552600485fd5b61111c565b63fb817d3d60e01b8552600452602484fd5b6336fbdb4f60e01b8652600486fd5b508060031936011261021a5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461021a578060031936011261021a576001600160a01b036020915416604051908152f35b503461021a57604036600319011261021a576004906112f5611467565b5063ad42eb9960e01b8152fd5b50604036600319011261021a57611317611467565b6001600160a01b036024359161132b6117d3565b6113336117ef565b168280808085855af13d156113c2573d61134c81611544565b9061135a6040519283611522565b81528460203d92013e5b156113b3577f8455ae6be5d92f1df1c3c1484388e247a36c7e60d72055ae216dbc258f257d4b8380a3807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b6327fcd9d160e01b8352600483fd5b611364565b5060203660031901126114635760043563ffffffff8116809103611463576113ed6117d3565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690813b15611463575f90602460405180948193621cb65b60e51b8352600483015234905af180156114585761144a575080f35b61145691505f90611522565b005b6040513d5f823e3d90fd5b5f80fd5b600435906001600160a01b038216820361146357565b602435906001600160a01b038216820361146357565b9181601f840112156114635782359167ffffffffffffffff8311611463576020838186019501011161146357565b9181601f840112156114635782359167ffffffffffffffff8311611463576020808501948460051b01011161146357565b6060810190811067ffffffffffffffff82111761150e57604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff82111761150e57604052565b67ffffffffffffffff811161150e57601f01601f191660200190565b9190820180921161156d57565b634e487b7160e01b5f52601160045260245ffd5b9190820391821161156d57565b919091356001600160d01b0319811692600681106115aa575050565b6001600160d01b0319929350829060060360031b1b161690565b9190918260481161146357603481013560601c9280604e11611463576115ee60066048840161158e565b60d01c9281605411611463576116086006604e850161158e565b60d01c928260581161146357605481013560e01c926024811061146357601482013560801c926034821061146357602483013560801c92605801916057190190565b903590601e1981360301821215611463570180359067ffffffffffffffff82116114635760200191813603831361146357565b92919261168982611544565b916116976040519384611522565b829481845281830111611463578281602093845f960137010152565b929093916116ce6116c7604086018661164a565b369161167d565b60208151910120946116e66116c7606087018761164a565b60208151910120946116fb60e082018261164a565b6034116114635760405196602088019883356001600160a01b03168a52602084013560408a015260608901526080880152608082013560a08801526014013560c087015260a081013560e087015260c0013561010086015246610120860152306101408601526001600160a01b031661016085015265ffffffffffff1661018084015265ffffffffffff166101a083015263ffffffff166101c08201526101c081526117a96101e082611522565b51902090565b91908110156117bf5760051b0190565b634e487b7160e01b5f52603260045260245ffd5b638b78c6d8195433036117e257565b6382b429005f526004601cfd5b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c61183b5760017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d565b633ee5aeb560e01b5f5260045ffd5b6001600160a01b03165f52600660205260ff60405f20541661186c5760035490565b5f90565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036118a257565b60405162461bcd60e51b815260206004820152601560248201527f53656e646572206e6f7420456e747279506f696e7400000000000000000000006044820152606490fd5b8181029291811591840414171561156d57565b919060609260e0810190611917611911838361164a565b906115c4565b60409198969a95979c9350809250141580611c10575b611c01576002549661193f898761164a565b603411611463576024013560801c8811611bf2576119949061196585898f8e908b6116b3565b6020527b19457468657265756d205369676e6564204d6573736167653a0a33325f52603c60042092369161167d565b915f92604051926020820191805180604014611bb457604114611b7e5750505050505b6001600160a01b03805f54169116145f14611b785760015b15611b385763ffffffff1694621e848086118015611b2c575b611b1d576119f6908361164a565b6034116114635760246001600160801b0391013560801c166001600160801b03608084013516016001600160801b03811161156d576001600160801b03600a911602916001600160801b03831692830361156d57611a7b611a80926110f4620f4240956064611a746001600160801b0360c08d9801351680936118e7565b04986118e7565b6118e7565b046001600160a01b03611a938483611560565b971696875f52600560205260405f205410611b0e5765ffffffffffff60a01b93611ac66001600160d01b03199483611560565b885f526005602052611add60405f20918254611581565b90556040519760208901526040880152606087015260608652611b01608087611522565b60d01b169160a01b161790565b632771c53960e01b5f5260045ffd5b630a02dbf760e21b5f5260045ffd5b50620f424086106119e8565b505050600194955065ffffffffffff60a01b92506001600160d01b0319915060d01b169160a01b16171790604051611b71602082611522565b5f81529190565b5f6119cf565b808401515f1a60205260400151835292935090915b5f52516040526020604060805f60015afa505f81523d1851906040526119b7565b507f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff91929394955060400151601b8160ff1c01602052168352611b93565b630359a00f60e01b5f5260045ffd5b634be6321b60e01b5f5260045ffd5b50604181141561192d565b6001600160a01b031680638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3638b78c6d8195556fea164736f6c634300081b000a","sourceMap":"1529:19054:7:-:0;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1529:19054:7;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;1529:19054:7;;;;;-1:-1:-1;1529:19054:7;;;;;;-1:-1:-1;;1529:19054:7;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;;:::o;:::-;-1:-1:-1;;;;;1529:19054:7;;;;;:::o;2588:694::-;;;;;;;;;198:181:10;;;;;;-1:-1:-1;;;;;5710:347:130;-1:-1:-1;;5710:347:130;;;-1:-1:-1;5710:347:130;-1:-1:-1;;5710:347:130;1529:19054:7;;-1:-1:-1;;;3843:80:0;;-1:-1:-1;;;3843:80:0;;;1529:19054:7;;;;3843:80:0;1529:19054:7;-1:-1:-1;;;;;1529:19054:7;;3843:80:0;;;;;;;3249:26:7;3843:80:0;3181:58:7;3843:80:0;3822:157;3097:30:7;3843:80:0;3137:34:7;3843:80:0;-1:-1:-1;3843:80:0;;;2588:694:7;3822:157:0;;:::i;:::-;1159:26;;2963:17:7;;;;;:::i;:::-;-1:-1:-1;2991:97:7;1529:19054;;;-1:-1:-1;;;;;;1529:19054:7;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;;;3097:30;3137:34;1529:19054;;3137:34;3181:58;1529:19054;;3181:58;3843:80:0;1529:19054:7;;3249:26;2588:694::o;3843:80:0:-;;;;1529:19054:7;3843:80:0;1529:19054:7;3843:80:0;;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;;;;;1529:19054:7;;;-1:-1:-1;1529:19054:7;;;;;198:181:10;;;;;;;19381:708:7;-1:-1:-1;;;;;1529:19054:7;;;;19625:29;;;19600:1;19625:29;;19600:1;19625:29;19566:517;6221:74:0;6311:8;19675:31:7;;19729:33;;;19600:1;19729:33;;19600:1;19729:33;19671:412;-1:-1:-1;;;;;1529:19054:7;;;;19835:26;;;19600:1;19835:26;;19600:1;19835:26;19779:304;6221:74:0;6311:8;19882:28:7;;19933:30;;;19600:1;19933:30;;19600:1;19933:30;19878:205;2371:7;-1:-1:-1;19980:103:7;;19381:708::o;19980:103::-;20049:23;;;19600:1;20049:23;;19600:1;20049:23;1529:19054;;;;;;;;;;;;;;;;;;:::o;:::-;;;;:::o;:::-;;;-1:-1:-1;;;1529:19054:7;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x60806040526004361015610046575b3615610018575f80fd5b6040513481527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587460203392a2005b5f5f3560e01c80630396cb60146113c75780631b9a91a414611302578063205c2878146112d857806323d9ac9b146112b257806325692962146112675780633261fd581461107557806341b3d1851461105757806344004cc114610f5057806352b7512c14610ecb57806354d1f13d14610e8557806359ffb13014610d845780636c19e78314610cfc578063715018a614610cb157806373acf54214610c525780637c627b2114610b005780638c253a3914610a4c5780638da5cb5b14610a215780638fcc9cfb146109db57806394d4ad6014610917578063a40a7ddc146102ef578063a42dce8014610874578063aa67c9191461071f578063ab94cad714610701578063b0d691fe146106bd578063bb9fe6bf1461064a578063c23a5cea146105ac578063c399ec88146104fc578063c415b95c146104d5578063d0e30db0146104ba578063def042571461042a578063e714a028146103d2578063f04e283e14610384578063f0c12a3214610366578063f2fde38b14610327578063f8b2cb4f146102ef578063f8cf826d1461021d5763fee81cf4146101e8575061000e565b3461021a57602036600319011261021a57610201611467565b9063389a75e1600c5252602080600c2054604051908152f35b80fd5b50604036600319011261021a5760043567ffffffffffffffff81116102eb5761024a9036906004016114c1565b9060243567ffffffffffffffff81116102e75761026b9036906004016114c1565b906102746117d3565b8184036102d857845b848110610288578580f35b6102938184846117af565b35906102a08187876117af565b35916001600160a01b0383168093036102d457600192885260056020526102cc60408920918254611560565b90550161027d565b8780fd5b63a9854bc960e01b8552600485fd5b8380fd5b5080fd5b503461021a57602036600319011261021a5760406020916001600160a01b03610316611467565b168152600583522054604051908152f35b50602036600319011261021a5761033c611467565b6103446117d3565b8060601b156103595761035690611c1b565b80f35b637448fbae82526004601cfd5b503461021a578060031936011261021a576020600354604051908152f35b50602036600319011261021a57610399611467565b6103a16117d3565b63389a75e1600c528082526020600c20805442116103c55790826103569255611c1b565b636f5e881883526004601cfd5b503461021a578060031936011261021a5733815260076020525f60026040832082815582600182015501557fe227a0e51918df92c3a9837808b4825847fa7c14cbacd937b650c337e91712416020604051338152a180f35b503461021a5760a036600319011261021a5760043567ffffffffffffffff81116102eb5761012060031982360301126102eb5761046561147d565b6044359065ffffffffffff821682036102e7576064359265ffffffffffff841684036104b6576084359463ffffffff8616860361021a5760206104ae87878787876004016116b3565b604051908152f35b8480fd5b508060031936011261021a5763302076c960e01b8152600490fd5b503461021a578060031936011261021a5760206001600160a01b0360015416604051908152f35b503461021a578060031936011261021a576040516370a0823160e01b81523060048201526020816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa9081156105a157829161056b575b602082604051908152f35b90506020813d602011610599575b8161058660209383611522565b810103126102eb5760209150515f610560565b3d9150610579565b6040513d84823e3d90fd5b503461021a57602036600319011261021a57806105c7611467565b6105cf6117d3565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690813b15610646576001600160a01b036024849283604051958694859363611d2e7560e11b85521660048401525af180156105a1576106355750f35b8161063f91611522565b61021a5780f35b5050fd5b503461021a578060031936011261021a576106636117d3565b806001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016803b156106ba5781809160046040518094819363bb9fe6bf60e01b83525af180156105a1576106355750f35b50fd5b503461021a578060031936011261021a5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b503461021a578060031936011261021a576020600254604051908152f35b50602036600319011261021a576001600160a01b0361073c611467565b6107446117ef565b168015610865573415610856578082526005602052610767346040842054611560565b6004541161084757808252600560205260408220610786348254611560565b9055816001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016803b156102eb57816024916040519283809263b760faf960e01b825230600483015234905af180156105a157610832575b505034907f1dbbf474736d6415d6a265fabee708fe6e988f6fd0c9d870ded36cab380898dd8380a3807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b8161083c91611522565b6102eb57815f6107e4565b6305d163b560e11b8252600482fd5b6333a6177160e11b8252600482fd5b63016e7bd760e61b8252600482fd5b50602036600319011261021a57610889611467565b6108916117d3565b803b610908576001600160a01b031680156108f957600154908073ffffffffffffffffffffffffffffffffffffffff198316176001556001600160a01b033392167fc6bc29e495f43077b898bfa29b8be68f4c836ccf780f9f7782f916dfd3874f158480a480f35b633fd0943d60e11b8252600482fd5b631f47525f60e21b8252600482fd5b503461021a57602036600319011261021a5760043567ffffffffffffffff81116102eb57610949903690600401611493565b610952916115c4565b959794938694604094929451996001600160a01b038b9a168a5265ffffffffffff1660208a015265ffffffffffff16604089015263ffffffff1660608801526001600160801b031660808701526001600160801b031660a086015260c0850160e090528160e08601526101008501378183016101000152601f1990601f01168101036101000190f35b50602036600319011261021a576004356109f36117d3565b806004547fcacd94bd1e7bb1185c816a740d9439bc8eff8159f6f4ffad8d306b5aca2ebd928480a360045580f35b503461021a578060031936011261021a576020638b78c6d819546001600160a01b0360405191168152f35b50604036600319011261021a57610a61611467565b60243590811515809203610afc576001600160a01b0390610a806117d3565b16908115610aed5781835260066020528060ff604085205416151503610aa4578280f35b60207fd20b41feac4c77c85eaf676a2d91056dc1b6ba4cc02253745a3152ca4f23d87991838552600682526040852060ff1981541660ff8316179055604051908152a25f808280f35b63016e7bd760e61b8352600483fd5b8280fd5b503461021a57608036600319011261021a576003600435101561021a5760243567ffffffffffffffff81116102eb57610b3f6060913690600401611493565b90809291610b4b611870565b810103126102eb578035906001600160a01b038216809203610afc5760208101359063ffffffff82168092036102e7576040013591610bb2620f4240610baa610ba3610b9b6064356002546118e7565b604435611560565b94856118e7565b049283611581565b926001600160a01b03600154168552600560205260408520610bd5858254611560565b90558280821115610c2a57610be991611581565b8185526005602052610c0060408620918254611560565b90555b7f683b3fc4c8726e960b5b0aa3838c1071e2a9b7045fcd4dfc953fc1092923f5378480a480f35b90610c3491611581565b8185526005602052610c4b60408620918254611581565b9055610c03565b50602036600319011261021a57600435610c6a6117d3565b620186a08111610ca257600254816002557f33ddf610723ec48e858790576fb3294cc312fcbd937c1475d53e3673145488eb8380a380f35b63313db2a560e11b8252600482fd5b508060031936011261021a57610cc56117d3565b80638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380638b78c6d8195580f35b50602036600319011261021a57610d11611467565b610d196117d3565b803b610d75576001600160a01b0381168015610d66576001600160a01b0383541691835533917fe1f62c0e6d7bb6d470828565415bf2e87dbfea50e52d2d753788b529bd0c6d628480a480f35b6381618de160e01b8352600483fd5b63edc30c2760e01b8252600482fd5b503461021a57604036600319011261021a57610d9e611467565b6001600160a01b03166024358115610e76578015610e6757338352600560205260408320548111610e58577fe1a007fa1edbdbd989490b46b37c8a7342e8f2f1162a20078a80a9528ab0a149916040918251610df9816114f2565b818152600260208201848152858301904282523389526007602052868920935184556001600160a01b036001850191511673ffffffffffffffffffffffffffffffffffffffff198254161790555191015582519182526020820152a180f35b6345f34ee560e01b8352600483fd5b6339d3420560e11b8352600483fd5b6392bc9df360e01b8352600483fd5b508060031936011261021a5763389a75e1600c52338152806020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c928280a280f35b503461021a57606036600319011261021a5760043567ffffffffffffffff81116102eb5761012060031982360301126102eb576020610f1a606092610f0e611870565b604435906004016118fa565b604092919251948593604085528051938491826040880152018686015e8383018501526020830152601f01601f19168101030190f35b503461021a57606036600319011261021a576004356001600160a01b0381168091036102eb57610f7e61147d565b60443591610f8a6117d3565b610f926117ef565b6001600160a01b03821691821561104857601452826034526fa9059cbb00000000000000000000000084526020846044601082855af1806001865114161561102a575b50836034527f4e5ba90310f16273bb12f3c33f23905e573b86df58a2895a525285d083bf043f6020604051338152a4807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b3d823b1517101561103b575f610fd5565b6390b8ec1884526004601cfd5b6392bc9df360e01b8552600485fd5b503461021a578060031936011261021a576020600454604051908152f35b503461021a57602036600319011261021a5761108f611467565b6110976117ef565b6001600160a01b03811690818352600760205260408320604051916110bb836114f2565b8154835260026001600160a01b036001840154169260208501938452015460408401908082521561125857516110fa916110f49061184a565b90611560565b8042106112465750828452600560205260408420548251818111156112415750805b8084521561123257825161112f91611581565b8385526005602052604085205582845260076020525f6002604086208281558260018201550155836001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166001600160a01b038351168451823b156102e7576044849283604051958694859363040b850f60e31b8552600485015260248401525af180156105a15761121d575b50506001600160a01b039051169051917f926a144b6fffc1d73f115b81af7ec66a7c12aed0ff73197c39a683753fc1d9258480a4807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b8161122791611522565b6102e757835f6111c3565b6339d3420560e11b8552600485fd5b61111c565b63fb817d3d60e01b8552600452602484fd5b6336fbdb4f60e01b8652600486fd5b508060031936011261021a5763389a75e1600c523381526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d8280a280f35b503461021a578060031936011261021a576001600160a01b036020915416604051908152f35b503461021a57604036600319011261021a576004906112f5611467565b5063ad42eb9960e01b8152fd5b50604036600319011261021a57611317611467565b6001600160a01b036024359161132b6117d3565b6113336117ef565b168280808085855af13d156113c2573d61134c81611544565b9061135a6040519283611522565b81528460203d92013e5b156113b3577f8455ae6be5d92f1df1c3c1484388e247a36c7e60d72055ae216dbc258f257d4b8380a3807f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d80f35b6327fcd9d160e01b8352600483fd5b611364565b5060203660031901126114635760043563ffffffff8116809103611463576113ed6117d3565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690813b15611463575f90602460405180948193621cb65b60e51b8352600483015234905af180156114585761144a575080f35b61145691505f90611522565b005b6040513d5f823e3d90fd5b5f80fd5b600435906001600160a01b038216820361146357565b602435906001600160a01b038216820361146357565b9181601f840112156114635782359167ffffffffffffffff8311611463576020838186019501011161146357565b9181601f840112156114635782359167ffffffffffffffff8311611463576020808501948460051b01011161146357565b6060810190811067ffffffffffffffff82111761150e57604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff82111761150e57604052565b67ffffffffffffffff811161150e57601f01601f191660200190565b9190820180921161156d57565b634e487b7160e01b5f52601160045260245ffd5b9190820391821161156d57565b919091356001600160d01b0319811692600681106115aa575050565b6001600160d01b0319929350829060060360031b1b161690565b9190918260481161146357603481013560601c9280604e11611463576115ee60066048840161158e565b60d01c9281605411611463576116086006604e850161158e565b60d01c928260581161146357605481013560e01c926024811061146357601482013560801c926034821061146357602483013560801c92605801916057190190565b903590601e1981360301821215611463570180359067ffffffffffffffff82116114635760200191813603831361146357565b92919261168982611544565b916116976040519384611522565b829481845281830111611463578281602093845f960137010152565b929093916116ce6116c7604086018661164a565b369161167d565b60208151910120946116e66116c7606087018761164a565b60208151910120946116fb60e082018261164a565b6034116114635760405196602088019883356001600160a01b03168a52602084013560408a015260608901526080880152608082013560a08801526014013560c087015260a081013560e087015260c0013561010086015246610120860152306101408601526001600160a01b031661016085015265ffffffffffff1661018084015265ffffffffffff166101a083015263ffffffff166101c08201526101c081526117a96101e082611522565b51902090565b91908110156117bf5760051b0190565b634e487b7160e01b5f52603260045260245ffd5b638b78c6d8195433036117e257565b6382b429005f526004601cfd5b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005c61183b5760017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005d565b633ee5aeb560e01b5f5260045ffd5b6001600160a01b03165f52600660205260ff60405f20541661186c5760035490565b5f90565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036118a257565b60405162461bcd60e51b815260206004820152601560248201527f53656e646572206e6f7420456e747279506f696e7400000000000000000000006044820152606490fd5b8181029291811591840414171561156d57565b919060609260e0810190611917611911838361164a565b906115c4565b60409198969a95979c9350809250141580611c10575b611c01576002549661193f898761164a565b603411611463576024013560801c8811611bf2576119949061196585898f8e908b6116b3565b6020527b19457468657265756d205369676e6564204d6573736167653a0a33325f52603c60042092369161167d565b915f92604051926020820191805180604014611bb457604114611b7e5750505050505b6001600160a01b03805f54169116145f14611b785760015b15611b385763ffffffff1694621e848086118015611b2c575b611b1d576119f6908361164a565b6034116114635760246001600160801b0391013560801c166001600160801b03608084013516016001600160801b03811161156d576001600160801b03600a911602916001600160801b03831692830361156d57611a7b611a80926110f4620f4240956064611a746001600160801b0360c08d9801351680936118e7565b04986118e7565b6118e7565b046001600160a01b03611a938483611560565b971696875f52600560205260405f205410611b0e5765ffffffffffff60a01b93611ac66001600160d01b03199483611560565b885f526005602052611add60405f20918254611581565b90556040519760208901526040880152606087015260608652611b01608087611522565b60d01b169160a01b161790565b632771c53960e01b5f5260045ffd5b630a02dbf760e21b5f5260045ffd5b50620f424086106119e8565b505050600194955065ffffffffffff60a01b92506001600160d01b0319915060d01b169160a01b16171790604051611b71602082611522565b5f81529190565b5f6119cf565b808401515f1a60205260400151835292935090915b5f52516040526020604060805f60015afa505f81523d1851906040526119b7565b507f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff91929394955060400151601b8160ff1c01602052168352611b93565b630359a00f60e01b5f5260045ffd5b634be6321b60e01b5f5260045ffd5b50604181141561192d565b6001600160a01b031680638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3638b78c6d8195556fea164736f6c634300081b000a","sourceMap":"1529:19054:7:-:0;;;;;;;;;-1:-1:-1;1529:19054:7;;;;;;;;;;3351:9;1529:19054;;3330:31;1529:19054;3339:10;3330:31;;1529:19054;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;:::i;:::-;11885:237:130;;;;;1529:19054:7;11885:237:130;;;;1529:19054:7;;;;;;;;;;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;:::i;:::-;12478:70:130;;;:::i;:::-;5431:37:7;;;5427:71;;5513:9;5524:23;;;;;;1529:19054;;;5549:3;5608:10;;;;;:::i;:::-;1529:19054;5588:15;;;;;;:::i;:::-;1529:19054;;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;;;5568:19;1529:19054;;5568:50;1529:19054;;;;;;5568:50;:::i;:::-;1529:19054;;;5513:9;;1529:19054;;;;5427:71;-1:-1:-1;;;5477:21:7;;1529:19054;5477:21;;1529:19054;;;;;;;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;;-1:-1:-1;;;;;1529:19054:7;;:::i;:::-;;;;11357:19;1529:19054;;;;;;;;;;;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;;;:::i;:::-;12478:70:130;;:::i;:::-;8479:183;;;;;;8681:8;;;:::i;:::-;1529:19054:7;;8479:183:130;;;;1529:19054:7;8479:183:130;;1529:19054:7;;;;;;;;;;;;;;1935:41;1529:19054;;;;;;;;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;;;:::i;:::-;12478:70:130;;:::i;:::-;10506:526;;;;;;1529:19054:7;10506:526:130;;;;;;;;;;11051:12;10506:526;;11051:12;:::i;10506:526::-;;;;1529:19054:7;10506:526:130;;1529:19054:7;;;;;;;;;;;;;10560:10;1529:19054;;10550:9;1529:19054;;-1:-1:-1;1529:19054:7;;;;;;;;;;;;;;10586:41;1529:19054;;;10560:10;1529:19054;;10586:41;1529:19054;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8070:22:7;;1529:19054;;8070:22;1529:19054;;;;;;;;;;;;;;-1:-1:-1;;;;;1867:27:7;1529:19054;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3569:35:0;;3598:4;1529:19054:7;3569:35:0;;1529:19054:7;;;3569:35:0;1529:19054:7;3569:10:0;-1:-1:-1;;;;;1529:19054:7;3569:35:0;;;;;;;;;;;1529:19054:7;;;;;;;;;3569:35:0;;;1529:19054:7;3569:35:0;;1529:19054:7;3569:35:0;;;;;;1529:19054:7;3569:35:0;;;:::i;:::-;;;1529:19054:7;;;;;;;;3569:35:0;;;;;;-1:-1:-1;3569:35:0;;;1529:19054:7;;;;;;;;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;;:::i;:::-;12478:70:130;;:::i;:::-;-1:-1:-1;;;;;2107:10:0;1529:19054:7;2107:41:0;;;;;;-1:-1:-1;;;;;2107:41:0;1529:19054:7;;;;;;;;;;;;;2107:41:0;;1529:19054:7;;2107:41:0;;1529:19054:7;2107:41:0;;;;;;;;1529:19054:7;;2107:41:0;;;;;:::i;:::-;1529:19054:7;;2107:41:0;1529:19054:7;2107:41:0;1529:19054:7;;;;;;;;;;;;;;;;12478:70:130;;:::i;:::-;1770:10:0;-1:-1:-1;;;;;1770:10:0;1529:19054:7;1770:24:0;;;;;1529:19054:7;;;;;;;;;;;;;1770:24:0;;;;;;;;;;1529:19054:7;;1770:24:0;1529:19054:7;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;657:39:0;1529:19054:7;;;;;;;;;;;;;;;;;;1900:29;1529:19054;;;;;;;;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;-1:-1:-1;;;;;1529:19054:7;;:::i;:::-;1181:103:49;;:::i;:::-;1529:19054:7;3686:25;;3682:63;;3759:9;:14;3755:48;;1529:19054;;;3817:19;1529:19054;;3817:44;3759:9;1529:19054;;;;3817:44;:::i;:::-;1529:19054;;-1:-1:-1;3813:82:7;;1529:19054;;;3817:19;1529:19054;;;;;3905:45;3759:9;1529:19054;;3905:45;:::i;:::-;1529:19054;;3960:10;-1:-1:-1;;;;;3960:10:7;1529:19054;3960:55;;;;;1529:19054;3960:55;1529:19054;;;;;;;;;;3960:55;;4009:4;1529:19054;3960:55;;1529:19054;3759:9;3960:55;;;;;;;;;1529:19054;3759:9;;;4030:36;;;;;3550:68:51;637:66:49;3550:68:51;1529:19054:7;;3960:55;;;;;:::i;:::-;1529:19054;;3960:55;;;;3813:82;-1:-1:-1;;;3883:12:7;;1529:19054;3883:12;;3755:48;-1:-1:-1;;;3782:21:7;;1529:19054;3782:21;;3682:63;-1:-1:-1;;;3720:25:7;;1529:19054;6030:25;3720;1529:19054;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;;;:::i;:::-;12478:70:130;;:::i;:::-;6221:74:0;;7105:71:7;;-1:-1:-1;;;;;1529:19054:7;7190:29;;7186:68;;7290:12;1529:19054;;;-1:-1:-1;;1529:19054:7;;;7290:12;1529:19054;-1:-1:-1;;;;;7411:10:7;1529:19054;;7357:65;;;;1529:19054;;7186:68;-1:-1:-1;;;7228:26:7;;1529:19054;7228:26;;7105:71;-1:-1:-1;;;7146:30:7;;1529:19054;7146:30;;1529:19054;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1529:19054:7;;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;;;12478:70:130;;:::i;:::-;1529:19054:7;;;6537:44;;;;1529:19054;;;;;;;;;;;;;;;;;;6813:405:130;;11523:61;-1:-1:-1;;;;;1529:19054:7;;;;;;;;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;12478:70:130;;;:::i;:::-;1529:19054:7;5996:25;;;5992:63;;1529:19054;;;6069:20;1529:19054;;;;;;;;;;;6069:46;6065:186;;1529:19054;;;6065:186;1529:19054;6195:45;1529:19054;;;;6069:20;1529:19054;;;;;;;;;;;;;;;;;;;;;6195:45;6065:186;;1529:19054;;;5992:63;-1:-1:-1;;;6030:25:7;;1529:19054;6030:25;;1529:19054;;;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2192:298:0;;;;;;:::i;:::-;14714:47:7;;1529:19054;;;;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;;;;;;;;;;;;;;;;15131:31;2134:3;15053:27;14926:56;14943:38;1529:19054;;14943:14;1529:19054;14943:38;:::i;:::-;1529:19054;;14926:56;:::i;:::-;15053:27;;;:::i;:::-;1529:19054;15131:31;;;:::i;:::-;1529:19054;-1:-1:-1;;;;;1529:19054:7;;;;;15225:19;1529:19054;;;;;15225:44;1529:19054;;;15225:44;:::i;:::-;1529:19054;;15284:34;;;;;;;15419;;;:::i;:::-;1529:19054;;;15225:19;1529:19054;;15382:72;1529:19054;;;;;;15382:72;:::i;:::-;1529:19054;;15280:369;15785:57;;;;1529:19054;;15280:369;15587:34;;;;:::i;:::-;1529:19054;;;15225:19;1529:19054;;15550:72;1529:19054;;;;;;15550:72;:::i;:::-;1529:19054;;15280:369;;1529:19054;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;;;12478:70:130;;:::i;:::-;2371:7:7;7708:30;;7704:91;;7823:14;1529:19054;;7823:14;1529:19054;7884:38;;;;1529:19054;;7704:91;-1:-1:-1;;;7761:23:7;;1529:19054;7761:23;;1529:19054;;;;;;;;;;12478:70:130;;:::i;:::-;6813:405;;;;;;;;;;;;1529:19054:7;;;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;;;:::i;:::-;12478:70:130;;:::i;:::-;6221:74:0;;4550:77:7;;-1:-1:-1;;;;;1529:19054:7;;4641:32;;4637:99;;-1:-1:-1;;;;;1529:19054:7;;;4790:97;;;4955:10;4901:65;;;;;1529:19054;;4637:99;-1:-1:-1;;;4696:29:7;;1529:19054;4696:29;;4550:77;-1:-1:-1;;;4594:33:7;;1529:19054;4594:33;;1529:19054;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;:::i;:::-;-1:-1:-1;;;;;1529:19054:7;;;8804:29;;8800:71;;8885:11;;8881:50;;8986:10;1529:19054;;8966:19;1529:19054;;;;;;9011:23;;9007:64;;9234:51;1529:19054;;;;;;;;:::i;:::-;;;;;;9117:102;;1529:19054;;;9117:102;;;9201:15;;1529:19054;;8986:10;1529:19054;;9081:9;1529:19054;;;;;;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;-1:-1:-1;;1529:19054:7;;;;;;;;;;;;;;;;;;;9234:51;1529:19054;;9007:64;-1:-1:-1;;;9043:28:7;;1529:19054;9043:28;;8881:50;-1:-1:-1;;;8905:26:7;;1529:19054;10118:26;8905;8800:71;-1:-1:-1;;;8842:29:7;;1529:19054;20401:29;8842;1529:19054;;;;;;;;;;9831:339:130;;;;;;;;;;;;;;;;1529:19054:7;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;;;;;;;;;;;;;;;;;16671:2704;1529:19054;2737:22:0;;;:::i;:::-;1529:19054:7;;;;;16671:2704;:::i;:::-;1529:19054;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;:::i;:::-;;;12478:70:130;;;:::i;:::-;1181:103:49;;:::i;:::-;-1:-1:-1;;;;;1529:19054:7;;20372:20;;;20368:62;;13252:754:134;;;;;;;;1529:19054:7;13252:754:134;1529:19054:7;13252:754:134;;;;;;1529:19054:7;13252:754:134;;;;;;;1529:19054:7;13252:754:134;;;;20515:59:7;1529:19054;;;20563:10;1529:19054;;20515:59;3550:68:51;637:66:49;3550:68:51;1529:19054:7;;13252:754:134;;;;;;;;;;;;;;;;;1529:19054:7;13252:754:134;;20368:62:7;-1:-1:-1;;;20401:29:7;;1529:19054;20401:29;;1529:19054;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;:::i;:::-;1181:103:49;;:::i;:::-;-1:-1:-1;;;;;1529:19054:7;;;;;;9643:9;1529:19054;;;;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;;;;;;;;;;;;;9679:34;9675:67;;1529:19054;9781:54;;9813:22;;;:::i;:::-;9781:54;;:::i;:::-;9849:15;;:36;9845:89;;-1:-1:-1;1529:19054:7;;;9969:19;1529:19054;;;;;;;;10024:27;;;;;;:57;;;1529:19054;;;10094:15;10091:53;;1529:19054;;10189:27;;;:::i;:::-;1529:19054;;;9969:19;1529:19054;;;;;;;;;9643:9;1529:19054;;-1:-1:-1;1529:19054:7;;;;;;;;;;;;;;10265:10;-1:-1:-1;;;;;10265:10:7;1529:19054;-1:-1:-1;;;;;1529:19054:7;;;;;10265:50;;;;;;1529:19054;;;;;;;;;;;;;10265:50;;1529:19054;10265:50;;1529:19054;;;;;10265:50;;;;;;;;10024:57;1529:19054;;-1:-1:-1;;;;;1529:19054:7;;;;;10330:45;;;;;3550:68:51;637:66:49;3550:68:51;1529:19054:7;;10265:50;;;;;:::i;:::-;1529:19054;;10265:50;;;;10091:53;-1:-1:-1;;;10118:26:7;;1529:19054;10118:26;;10024:57;;;9845:89;-1:-1:-1;;;9894:40:7;;1529:19054;;;9894:40;;9675:67;-1:-1:-1;;;9722:20:7;;1529:19054;9722:20;;1529:19054;;;;;;;;;;9239:383:130;;;;;;7972:9;9132:15;1529:19054:7;9239:383:130;;;;;;;;;1529:19054:7;;;;;;;;;;;;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;;;;;;;;;-1:-1:-1;;1529:19054:7;;;;;;;;:::i;:::-;-1:-1:-1;;;;11086:22:7;;;1529:19054;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;;;:::i;:::-;-1:-1:-1;;;;;1529:19054:7;;12478:70:130;;;:::i;:::-;1181:103:49;;:::i;:::-;1529:19054:7;10772:35;;;;;;;;1529:19054;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;10821:8;10817:64;;10895:31;;;;3550:68:51;637:66:49;3550:68:51;1529:19054:7;;10817:64;-1:-1:-1;;;10852:18:7;;1529:19054;10852:18;;1529:19054;;;;-1:-1:-1;1529:19054:7;;-1:-1:-1;;1529:19054:7;;;;;;;;;;;;;;12478:70:130;;:::i;:::-;-1:-1:-1;;;;;1496:10:0;1529:19054:7;1496:56:0;;;;;;1529:19054:7;;1496:56:0;1529:19054:7;;;;;;;;;1496:56:0;;1529:19054:7;1496:56:0;;1529:19054:7;1524:9:0;1496:56;;;;;;;;;1529:19054:7;;;1496:56:0;;;;1529:19054:7;1496:56:0;;:::i;:::-;1529:19054:7;1496:56:0;1529:19054:7;;;;;;;;;1496:56:0;1529:19054:7;;;;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;-1:-1:-1;1529:19054:7;;;;;-1:-1:-1;1529:19054:7;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;1529:19054:7;;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;:::o;2255:22::-;;;;;-1:-1:-1;;;;;;2255:22:7;;;;;;;;;;:::o;:::-;-1:-1:-1;;;;;;2255:22:7;;;;;;;;;1529:19054;2255:22;;;:::o;12816:1250::-;;;;2255:22;1529:19054;2255:22;;;490:2:68;2255:22:7;;;;;13383:69;2255:22;1529:19054;2255:22;;;13376:77;2255:22;1529:19054;2255:22;;13376:77;:::i;:::-;2255:22;;13495:69;2255:22;1529:19054;2255:22;;;13488:77;2255:22;1529:19054;2255:22;;13488:77;:::i;:::-;2255:22;;13608:69;2255:22;1529:19054;2255:22;;;1529:19054;2255:22;;;;1529:19054;;13674:2;2255:22;-1:-1:-1;2255:22:7;;13337:2;2255:22;;875:44:0;;;;490:2:68;2255:22:7;-1:-1:-1;2255:22:7;;13674:2;2255:22;;875:44:0;;;;1529:19054:7;2255:22;;-1:-1:-1;;2255:22:7;;12816:1250::o;1529:19054::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;1529:19054:7;;;;;;:::o;11810:1000::-;;;;;1529:19054;12311:15;;;;;;:::i;:::-;1529:19054;;;:::i;:::-;12271:12;1529:19054;;;;12301:26;12355:15;1529:19054;12355:15;;;;;;:::i;1529:19054::-;12271:12;1529:19054;;;;12345:26;12446:23;;;;;;;:::i;:::-;490:2:68;2255:22:7;;;12311:15;1529:19054;12219:574;12271:12;12219:574;;823:61:68;;;-1:-1:-1;;;;;1529:19054:7;;;12271:12;;;1529:19054;12311:15;1529:19054;;;12355:15;1529:19054;;;12389:23;1529:19054;;;12389:23;;;1529:19054;12546:25;1529:19054;;;372:2:68;2255:22:7;1529:19054;12589:14;1529:19054;;;12546:25;;;1529:19054;12446:23;1529:19054;;;12589:14;;1529:19054;;;;;12621:13;1529:19054;;;;12660:4;1529:19054;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;;;;;;;;;;;;;;;;;;;12219:574;;;;;;:::i;:::-;1529:19054;12196:607;;11810:1000;:::o;1529:19054::-;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;7292:355:130;-1:-1:-1;;7390:251:130;;;;;7292:355::o;7390:251::-;;;;;;;1290:346:49;637:66;3321:69:51;1413:93:49;;1624:4;637:66;3550:68:51;1290:346:49:o;1413:93::-;1465:30;;;-1:-1:-1;1465:30:49;;-1:-1:-1;1465:30:49;20095:179:7;-1:-1:-1;;;;;1529:19054:7;;;20181:20;1529:19054;;;;;;;;20177:47;;20241:26;1529:19054;20095:179;:::o;20177:47::-;1529:19054;20216:8;:::o;5930:135:0:-;-1:-1:-1;;;;;6021:10:0;1529:19054:7;5999:10:0;:33;1529:19054:7;;5930:135:0:o;1529:19054:7:-;;;-1:-1:-1;;;1529:19054:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;16671:2704::-;;;1529:19054;16890:22;17244:23;;;;17222:46;17244:23;;;;:::i;:::-;17222:46;;:::i;:::-;17581:2;17561:22;;;;;;;;;;;;;;:48;;;16671:2704;17557:110;;17681:14;1529:19054;4143:23:68;;;;;:::i;:::-;490:2;2255:22:7;;;434:2:68;2255:22:7;875:44:0;;;17681:46:7;;17677:106;;1529:19054;17824:65;;;;;;;;;:::i;:::-;13414:265:131;;;1529:19054:7;13414:265:131;;;;1529:19054:7;;;;:::i;:::-;17823:144;1529:19054;8517:1041:131;17581:2:7;8517:1041:131;;13414:265;8517:1041;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;17809:187;:202;;;;8517:1041:131;17809:202:7;18100:9;18096:102;;1529:19054;;18246:17;18260:3;18246:17;;:38;;;;17809:202;18242:96;;18526:23;;;;:::i;:::-;490:2:68;2255:22:7;;;434:2:68;-1:-1:-1;;;;;18518:85:7;2255:22;875:44:0;;;;-1:-1:-1;;;;;875:44:0;18462:23:7;;1529:19054;;;-1:-1:-1;;;;;1529:19054:7;;;;-1:-1:-1;;;;;18621:2:7;1529:19054;;;;-1:-1:-1;;;;;1529:19054:7;;;;;;;18755:62;18754:78;3382:14:68;18773:44:7;2134:3;3382:14:68;18666:3:7;18428:225;-1:-1:-1;;;;;3382:14:68;;;;1529:19054:7;;18428:225;;;:::i;:::-;1529:19054;18773:44;;:::i;18755:62::-;18754:78;:::i;:::-;1529:19054;-1:-1:-1;;;;;18870:26:7;;;;:::i;:::-;1529:19054;;;;;;18899:19;13414:265:131;1529:19054:7;17581:2;1529:19054;;;-1:-1:-1;18866:132:7;;-1:-1:-1;;;19045:26:7;;-1:-1:-1;;;;;;19045:26:7;;;:::i;:::-;1529:19054;;;18899:19;13414:265:131;1529:19054:7;19008:64;17581:2;1529:19054;;;;;19008:64;:::i;:::-;1529:19054;;17581:2;1529:19054;19093:51;13414:265:131;19093:51:7;;1529:19054;17581:2;2134:3;;1529:19054;;2134:3;;1529:19054;;19093:51;;;875:44:0;19093:51:7;;:::i;:::-;2683:8:64;1529:19054:7;;;2643:3:64;1529:19054:7;;2589:104:64;16671:2704:7;:::o;18866:132::-;18954:33;;;1529:19054;18954:33;13414:265:131;1529:19054:7;18954:33;18242:96;18307:20;;;1529:19054;18307:20;13414:265:131;1529:19054:7;18307:20;18246:38;18267:17;18281:3;18267:17;;18246:38;;18096:102;18137:49;;;8517:1041:131;18137:49:7;;;-1:-1:-1;;;18137:49:7;;-1:-1:-1;;;;;;18137:49:7;;2683:8:64;1529:19054:7;;;2643:3:64;1529:19054:7;;2589:104:64;;1529:19054:7;17581:2;1529:19054;;13414:265:131;1529:19054:7;;:::i;:::-;;;;18125:62;;:::o;17809:202::-;1529:19054;17809:202;;8517:1041:131;;;;;1529:19054:7;8517:1041:131;13414:265;8517:1041;17581:2:7;8517:1041:131;;;;;;-1:-1:-1;8517:1041:131;;;1529:19054:7;8517:1041:131;;17581:2:7;8517:1041:131;13414:265;17581:2:7;875:44:0;1529:19054:7;8517:1041:131;;;;1529:19054:7;8517:1041:131;;;;;;17581:2:7;8517:1041:131;;;;;;;;;;;;17581:2:7;8517:1041:131;;;;;;;13414:265;8517:1041;;;;;;17677:106:7;17750:22;;;1529:19054;17750:22;;1529:19054;17750:22;17557:110;17632:24;;;1529:19054;17632:24;;1529:19054;17632:24;17561:48;17587:22;17607:2;17587:22;;;17561:48;;6145:1089:130;-1:-1:-1;;;;;6813:405:130;;;;;;-1:-1:-1;6813:405:130;;-1:-1:-1;;6813:405:130;6145:1089::o","linkReferences":{},"immutableReferences":{"17":[{"start":1320,"length":32},{"start":1497,"length":32},{"start":1646,"length":32},{"start":1757,"length":32},{"start":1939,"length":32},{"start":4449,"length":32},{"start":5111,"length":32},{"start":6266,"length":32}]}},"methodIdentifiers":{"addStake(uint32)":"0396cb60","cancelOwnershipHandover()":"54d1f13d","cancelWithdrawalRequest()":"e714a028","completeOwnershipHandover(address)":"f04e283e","deposit()":"d0e30db0","depositFor(address)":"aa67c919","entryPoint()":"b0d691fe","executeWithdrawalRequest(address)":"3261fd58","feeCollector()":"c415b95c","getBalance(address)":"f8b2cb4f","getDeposit()":"c399ec88","getHash((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),address,uint48,uint48,uint32)":"def04257","minDeposit()":"41b3d185","owner()":"8da5cb5b","ownershipHandoverExpiresAt(address)":"fee81cf4","parsePaymasterAndData(bytes)":"94d4ad60","paymasterIdBalances(address)":"a40a7ddc","paymasterIdWithdrawalDelay()":"f0c12a32","postOp(uint8,bytes,uint256,uint256)":"7c627b21","refundBalances(address[],uint256[])":"f8cf826d","renounceOwnership()":"715018a6","requestOwnershipHandover()":"25692962","setFeeCollector(address)":"a42dce80","setMinDeposit(uint256)":"8fcc9cfb","setSigner(address)":"6c19e783","setTrustedPaymasterId(address,bool)":"8c253a39","setUnaccountedGas(uint256)":"73acf542","submitWithdrawalRequest(address,uint256)":"59ffb130","transferOwnership(address)":"f2fde38b","unaccountedGas()":"ab94cad7","unlockStake()":"bb9fe6bf","validatePaymasterUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":"52b7512c","verifyingSigner()":"23d9ac9b","withdrawERC20(address,address,uint256)":"44004cc1","withdrawEth(address,uint256)":"1b9a91a4","withdrawStake(address)":"c23a5cea","withdrawTo(address,uint256)":"205c2878"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"contract IEntryPoint\",\"name\":\"entryPointArg\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"verifyingSignerArg\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"feeCollectorArg\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"unaccountedGasArg\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paymasterIdWithdrawalDelayArg\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minDepositArg\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AlreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CanNotWithdrawToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CanNotWithdrawZeroAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DepositCanNotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FeeCollectorCanNotBeContract\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FeeCollectorCanNotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientFunds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientFundsForPaymasterId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientFundsInGasTank\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidArrayLengths\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPriceMarkup\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LowDeposit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NewOwnerIsZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoHandoverRequest\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoRequestSubmitted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PaymasterIdCanNotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PostOpGasLimitTooLow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"clearanceTime\",\"type\":\"uint256\"}],\"name\":\"RequestNotClearedYet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SubmitRequestInstead\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UnaccountedGasTooHigh\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UseDepositForInstead\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"VerifyingSignerCanNotBeContract\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"VerifyingSignerCanNotBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WithdrawalFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"EthWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldFeeCollector\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newFeeCollector\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"actor\",\"type\":\"address\"}],\"name\":\"FeeCollectorChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"oldValue\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"newValue\",\"type\":\"uint256\"}],\"name\":\"FixedPriceMarkupChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_paymasterId\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_charge\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_premium\",\"type\":\"uint256\"}],\"name\":\"GasBalanceDeducted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_paymasterId\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"GasDeposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_paymasterId\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"GasWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"oldValue\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"newValue\",\"type\":\"uint256\"}],\"name\":\"MinDepositChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"OwnershipHandoverCanceled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"OwnershipHandoverRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Received\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"actor\",\"type\":\"address\"}],\"name\":\"TokensWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isTrusted\",\"type\":\"bool\"}],\"name\":\"TrustedPaymasterIdSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"oldValue\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"newValue\",\"type\":\"uint256\"}],\"name\":\"UnaccountedGasChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldSigner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newSigner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"actor\",\"type\":\"address\"}],\"name\":\"VerifyingSignerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"}],\"name\":\"WithdrawalRequestCancelledFor\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"withdrawAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawalRequestSubmitted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"unstakeDelaySec\",\"type\":\"uint32\"}],\"name\":\"addStake\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cancelOwnershipHandover\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cancelWithdrawalRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"completeOwnershipHandover\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"}],\"name\":\"depositFor\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"entryPoint\",\"outputs\":[{\"internalType\":\"contract IEntryPoint\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"}],\"name\":\"executeWithdrawalRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeCollector\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDeposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"initCode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"accountGasLimits\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"preVerificationGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"gasFees\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"struct PackedUserOperation\",\"name\":\"userOp\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"validUntil\",\"type\":\"uint48\"},{\"internalType\":\"uint48\",\"name\":\"validAfter\",\"type\":\"uint48\"},{\"internalType\":\"uint32\",\"name\":\"priceMarkup\",\"type\":\"uint32\"}],\"name\":\"getHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minDeposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"result\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"ownershipHandoverExpiresAt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"result\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"}],\"name\":\"parsePaymasterAndData\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"},{\"internalType\":\"uint48\",\"name\":\"validUntil\",\"type\":\"uint48\"},{\"internalType\":\"uint48\",\"name\":\"validAfter\",\"type\":\"uint48\"},{\"internalType\":\"uint32\",\"name\":\"priceMarkup\",\"type\":\"uint32\"},{\"internalType\":\"uint128\",\"name\":\"paymasterValidationGasLimit\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"paymasterPostOpGasLimit\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"paymasterIdBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paymasterIdWithdrawalDelay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum IPaymaster.PostOpMode\",\"name\":\"mode\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"context\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"actualGasCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actualUserOpFeePerGas\",\"type\":\"uint256\"}],\"name\":\"postOp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"paymasterIds\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"refundBalances\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"requestOwnershipHandover\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newFeeCollector\",\"type\":\"address\"}],\"name\":\"setFeeCollector\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newMinDeposit\",\"type\":\"uint256\"}],\"name\":\"setMinDeposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newVerifyingSigner\",\"type\":\"address\"}],\"name\":\"setSigner\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"paymasterId\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isTrusted\",\"type\":\"bool\"}],\"name\":\"setTrustedPaymasterId\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"setUnaccountedGas\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"withdrawAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"submitWithdrawalRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unaccountedGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unlockStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"initCode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"accountGasLimits\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"preVerificationGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"gasFees\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"paymasterAndData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"struct PackedUserOperation\",\"name\":\"userOp\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"userOpHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"maxCost\",\"type\":\"uint256\"}],\"name\":\"validatePaymasterUserOp\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"context\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"validationData\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"verifyingSigner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawEth\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"withdrawAddress\",\"type\":\"address\"}],\"name\":\"withdrawStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"withdrawAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"author\":\"livingrockrisesShivaanshK\",\"details\":\"This contract is used to sponsor the transaction fees of the user operations Uses a verifying signer to provide the signature if predetermined conditions are met regarding the user operation calldata. Also this paymaster is Singleton in nature which means multiple Dapps/Wallet clients willing to sponsor the transactions can share this paymaster. Maintains it's own accounting of the gas balance for each Dapp/Wallet client and Manages it's own deposit on the EntryPoint.\",\"errors\":{\"AlreadyInitialized()\":[{\"details\":\"Cannot double-initialize.\"}],\"NewOwnerIsZeroAddress()\":[{\"details\":\"The `newOwner` cannot be the zero address.\"}],\"NoHandoverRequest()\":[{\"details\":\"The `pendingOwner` does not have a valid handover request.\"}],\"ReentrancyGuardReentrantCall()\":[{\"details\":\"Unauthorized reentrant call.\"}],\"Unauthorized()\":[{\"details\":\"The caller is not authorized to call the function.\"}]},\"events\":{\"OwnershipHandoverCanceled(address)\":{\"details\":\"The ownership handover to `pendingOwner` has been canceled.\"},\"OwnershipHandoverRequested(address)\":{\"details\":\"An ownership handover to `pendingOwner` has been requested.\"},\"OwnershipTransferred(address,address)\":{\"details\":\"The ownership is transferred from `oldOwner` to `newOwner`. This event is intentionally kept the same as OpenZeppelin's Ownable to be compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173), despite it not being as lightweight as a single argument event.\"}},\"kind\":\"dev\",\"methods\":{\"addStake(uint32)\":{\"params\":{\"unstakeDelaySec\":\"- The unstake delay for this paymaster. Can only be increased.\"}},\"cancelOwnershipHandover()\":{\"details\":\"Cancels the two-step ownership handover to the caller, if any.\"},\"cancelWithdrawalRequest()\":{\"details\":\"Cancel a withdrawal request for the paymasterId (Dapp Depositor address)\"},\"completeOwnershipHandover(address)\":{\"details\":\"Allows the owner to complete the two-step ownership handover to `pendingOwner`. Reverts if there is no existing ownership handover requested by `pendingOwner`.\"},\"deposit()\":{\"details\":\"Override the default implementation.\"},\"depositFor(address)\":{\"details\":\"Add a deposit for this paymaster and given paymasterId (Dapp Depositor address), used for paying for transaction fees\",\"params\":{\"paymasterId\":\"dapp identifier for which deposit is being made\"}},\"executeWithdrawalRequest(address)\":{\"details\":\"Execute a withdrawal request for the paymasterId (Dapp Depositor address) Request must be cleared by the withdrawal delay period\",\"params\":{\"paymasterId\":\"paymasterId (Dapp Depositor address)\"}},\"getBalance(address)\":{\"details\":\"get the current deposit for paymasterId (Dapp Depositor address)\",\"params\":{\"paymasterId\":\"dapp identifier\"}},\"owner()\":{\"details\":\"Returns the owner of the contract.\"},\"ownershipHandoverExpiresAt(address)\":{\"details\":\"Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\"},\"postOp(uint8,bytes,uint256,uint256)\":{\"params\":{\"actualGasCost\":\"- Actual gas used so far (without this postOp call).\",\"actualUserOpFeePerGas\":\"- the gas price this UserOp pays. This value is based on the UserOp's maxFeePerGas and maxPriorityFee (and basefee) It is not the same as tx.gasprice, which is what the bundler pays.\",\"context\":\"- The context value returned by validatePaymasterUserOp\",\"mode\":\"- Enum with the following options: opSucceeded - User operation succeeded. opReverted - User op reverted. The paymaster still has to pay for gas. postOpReverted - never passed in a call to postOp().\"}},\"refundBalances(address[],uint256[])\":{\"details\":\"Refund balances for multiple paymasterIds PM charges more than it should to protect itself. This function is used to refund the extra amount when the real consumption is known.\",\"params\":{\"amounts\":\"The amounts to refund\",\"paymasterIds\":\"The paymasterIds to refund\"}},\"renounceOwnership()\":{\"details\":\"Allows the owner to renounce their ownership.\"},\"requestOwnershipHandover()\":{\"details\":\"Request a two-step ownership handover to the caller. The request will automatically expire in 48 hours (172800 seconds) by default.\"},\"setFeeCollector(address)\":{\"details\":\"Set a new fee collector address. Can only be called by the owner of the contract.\",\"params\":{\"newFeeCollector\":\"The new address to be set as the fee collector.\"}},\"setMinDeposit(uint256)\":{\"details\":\"Set a new minimum deposit value. Can only be called by the owner of the contract.\",\"params\":{\"newMinDeposit\":\"The new minimum deposit value to be set.\"}},\"setSigner(address)\":{\"details\":\"Set a new verifying signer address. Can only be called by the owner of the contract.\",\"params\":{\"newVerifyingSigner\":\"The new address to be set as the verifying signer.\"}},\"setTrustedPaymasterId(address,bool)\":{\"details\":\"Set a new trusted paymasterId. Can only be called by the owner of the contract.\",\"params\":{\"isTrusted\":\"Whether the paymasterId is trusted or not.\",\"paymasterId\":\"The paymasterId to be set as trusted.\"}},\"setUnaccountedGas(uint256)\":{\"details\":\"Set a new unaccountedGas value.\",\"params\":{\"value\":\"The new value to be set as the unaccountedGas.\"}},\"submitWithdrawalRequest(address,uint256)\":{\"details\":\"Submit a withdrawal request for the paymasterId (Dapp Depositor address)\",\"params\":{\"amount\":\"amount to withdraw\",\"withdrawAddress\":\"address to send the funds to\"}},\"transferOwnership(address)\":{\"details\":\"Allows the owner to transfer the ownership to `newOwner`.\"},\"validatePaymasterUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)\":{\"params\":{\"maxCost\":\"- The maximum cost of this transaction (based on maximum gas and gas price from userOp).\",\"userOp\":\"- The user operation.\",\"userOpHash\":\"- Hash of the user's request data.\"},\"returns\":{\"context\":\" - Value to send to a postOp. Zero length to signify postOp is not required.\",\"validationData\":\"- Signature and time-range of this operation, encoded the same as the return value of validateUserOperation. <20-byte> sigAuthorizer - 0 for valid signature, 1 to mark signature failure, other values are invalid for paymaster. <6-byte> validUntil - last timestamp this operation is valid. 0 for \\\"indefinite\\\" <6-byte> validAfter - first timestamp this operation is valid Note that the validation code cannot use block.timestamp (or block.number) directly.\"}},\"withdrawERC20(address,address,uint256)\":{\"details\":\"pull tokens out of paymaster in case they were sent to the paymaster at any point.\",\"params\":{\"amount\":\"amount to withdraw\",\"target\":\"address to send to\",\"token\":\"the token deposit to withdraw\"}},\"withdrawStake(address)\":{\"params\":{\"withdrawAddress\":\"- The address to send withdrawn value.\"}},\"withdrawTo(address,uint256)\":{\"params\":{\"amount\":\"- Amount to withdraw.\",\"withdrawAddress\":\"- Target to send to.\"}}},\"title\":\"BiconomySponsorshipPaymaster\",\"version\":1},\"userdoc\":{\"errors\":{\"CanNotWithdrawToZeroAddress()\":[{\"notice\":\"Throws when trying to withdraw to address(0)\"}],\"CanNotWithdrawZeroAmount()\":[{\"notice\":\"Throws when trying to withdraw zero amount\"}],\"DepositCanNotBeZero()\":[{\"notice\":\"Throws when the 0 has been provided as deposit\"}],\"FeeCollectorCanNotBeContract()\":[{\"notice\":\"Throws when the fee collector address provided is a deployed contract\"}],\"FeeCollectorCanNotBeZero()\":[{\"notice\":\"Throws when the fee collector address provided is address(0)\"}],\"InsufficientFunds()\":[{\"notice\":\"Throws when insufficient funds to withdraw\"}],\"InsufficientFundsForPaymasterId()\":[{\"notice\":\"Throws when insufficient funds for paymasterid\"}],\"InsufficientFundsInGasTank()\":[{\"notice\":\"Thrown when trying to withdraw more than the balance\"}],\"InvalidArrayLengths()\":[{\"notice\":\"Thrown when the array lengths are not equal\"}],\"InvalidPriceMarkup()\":[{\"notice\":\"Throws when invalid signature length in paymasterAndData\"}],\"InvalidSignatureLength()\":[{\"notice\":\"Throws when invalid signature length in paymasterAndData\"}],\"LowDeposit()\":[{\"notice\":\"Thrown when deposit is too low to reach minDeposit\"}],\"NoRequestSubmitted()\":[{\"notice\":\"Throws when no request has been submitted\"}],\"PaymasterIdCanNotBeZero()\":[{\"notice\":\"Throws when the paymaster address provided is address(0)\"}],\"PostOpGasLimitTooLow()\":[{\"notice\":\"Throws when postOp gas limit is too low\"}],\"RequestNotClearedYet(uint256)\":[{\"notice\":\"Thrown when trying to execute withdrawal request before delay has passed\"}],\"SubmitRequestInstead()\":[{\"notice\":\"Thrown when trying to directly withdraw instead of submitting a request\"}],\"UnaccountedGasTooHigh()\":[{\"notice\":\"Throws when trying unaccountedGas is too high\"}],\"UseDepositForInstead()\":[{\"notice\":\"Throws when calling deposit()\"}],\"VerifyingSignerCanNotBeContract()\":[{\"notice\":\"Throws when the fee collector address provided is a deployed contract\"}],\"VerifyingSignerCanNotBeZero()\":[{\"notice\":\"Throws when the verifiying signer address provided is address(0)\"}],\"WithdrawalFailed()\":[{\"notice\":\"Throws when ETH withdrawal fails\"}]},\"kind\":\"user\",\"methods\":{\"addStake(uint32)\":{\"notice\":\"Add stake for this paymaster. This method can also carry eth value to add to the current stake.\"},\"getDeposit()\":{\"notice\":\"Return current paymaster's deposit on the entryPoint.\"},\"getHash((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),address,uint48,uint48,uint32)\":{\"notice\":\"return the hash we're going to sign off-chain (and validate on-chain) this method is called by the off-chain service, to sign the request. it is called on-chain from the validatePaymasterUserOp, to validate the signature. note that this signature covers all fields of the UserOperation, except the \\\"paymasterAndData\\\", which will carry the signature itself.\"},\"postOp(uint8,bytes,uint256,uint256)\":{\"notice\":\"Post-operation handler. Must verify sender is the entryPoint.\"},\"setFeeCollector(address)\":{\"notice\":\"If _newFeeCollector is set to zero address, it will revert with an error. After setting the new fee collector address, it will emit an event FeeCollectorChanged.\"},\"setSigner(address)\":{\"notice\":\"If _newVerifyingSigner is set to zero address, it will revert with an error. After setting the new signer address, it will emit an event VerifyingSignerChanged.\"},\"setUnaccountedGas(uint256)\":{\"notice\":\"only to be called by the owner of the contract.\"},\"unlockStake()\":{\"notice\":\"Unlock the stake, in order to withdraw it. The paymaster can't serve requests once unlocked, until it calls addStake again\"},\"validatePaymasterUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)\":{\"notice\":\"Payment validation: check if paymaster agrees to pay. Must verify sender is the entryPoint. Revert to reject this request. Note that bundlers will reject this method if it changes the state, unless the paymaster is trusted (whitelisted). The paymaster pre-pays using its deposit, and receive back a refund after the postOp method returns.\"},\"withdrawStake(address)\":{\"notice\":\"Withdraw the entire paymaster's stake. stake must be unlocked first (and then wait for the unstakeDelay to be over)\"},\"withdrawTo(address,uint256)\":{\"notice\":\"Withdraw value from the deposit.\"}},\"notice\":\"Based on Infinitism's 'VerifyingPaymaster' contract\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/sponsorship/BiconomySponsorshipPaymaster.sol\":\"BiconomySponsorshipPaymaster\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[\":@ERC4337/account-abstraction/=node_modules/account-abstraction/\",\":@biconomy-devx/=node_modules/@biconomy-devx/\",\":@erc7579/=node_modules/@erc7579/\",\":@gnosis.pm/=node_modules/@gnosis.pm/\",\":@modulekit/=node_modules/modulekit/src/\",\":@nexus/=node_modules/nexus/\",\":@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/\",\":@prb/math/=node_modules/erc7739-validator-base/node_modules/@prb/math/src/\",\":@prb/test/=node_modules/@prb/test/\",\":@rhinestone/=node_modules/@rhinestone/\",\":@safe-global/=node_modules/@safe-global/\",\":@uniswap/swap-router-contracts/contracts/=node_modules/@uniswap/swap-router-contracts/contracts/\",\":@uniswap/v3-core/contracts/=node_modules/@uniswap/v3-core/contracts/\",\":@uniswap/v3-periphery/contracts/=node_modules/@uniswap/v3-periphery/contracts/\",\":@zerodev/=node_modules/@zerodev/\",\":ExcessivelySafeCall/=node_modules/erc7739-validator-base/node_modules/excessively-safe-call/src/\",\":account-abstraction-v0.6/=node_modules/account-abstraction-v0.6/\",\":account-abstraction/=node_modules/account-abstraction/contracts/\",\":accountabstraction/=node_modules/accountabstraction/\",\":base64-sol/=node_modules/base64-sol/\",\":ds-test/=node_modules/ds-test/\",\":enumerableset4337/=node_modules/erc7739-validator-base/node_modules/@erc7579/enumerablemap4337/src/\",\":erc4337-validation/=node_modules/erc7739-validator-base/node_modules/@rhinestone/erc4337-validation/src/\",\":erc7579/=node_modules/erc7579/src/\",\":erc7739-validator-base/=node_modules/erc7739-validator-base/\",\":erc7739Validator/=node_modules/erc7739-validator-base/src/\",\":excessively-safe-call/=node_modules/excessively-safe-call/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat-deploy/=node_modules/hardhat-deploy/\",\":hardhat/=node_modules/hardhat/\",\":kernel/=node_modules/@zerodev/kernel/src/\",\":module-bases/=node_modules/module-bases/src/\",\":modulekit/=node_modules/@rhinestone/modulekit/src/\",\":nexus/=node_modules/nexus/\",\":registry/=node_modules/modulekit/node_modules/@rhinestone/registry/src/\",\":safe7579/=node_modules/erc7739-validator-base/node_modules/@rhinestone/safe7579/src/\",\":sentinellist/=node_modules/sentinellist/src/\",\":solady/=node_modules/solady/src/\",\":solady/src/=node_modules/solady/src/\",\":solarray/=node_modules/solarray/src/\"],\"viaIR\":true},\"sources\":{\"contracts/base/BasePaymaster.sol\":{\"keccak256\":\"0xde235ba59fa9febfab83433be7020fbba2798fb8ed601e7ef076e9f4693671a2\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://e3ee35669cb1b0db5325f948800589b5f012ba8099e57827eb76875d95a016d3\",\"dweb:/ipfs/QmTBpW9RCubh28tHxgL6Ee8UEM8bNLVKEyEiFCrEL4pQ9a\"]},\"contracts/common/BiconomySponsorshipPaymasterErrors.sol\":{\"keccak256\":\"0xf7bfb4912e8d118a3f1f4f82a19834a686f105ad142afb7203adfa2ff38d7000\",\"license\":\"LGPL-3.0-only\",\"urls\":[\"bzz-raw://88593bfdb72f8585853a91e675367ac718d1daf5e62c4192459d73cbaeeb07a5\",\"dweb:/ipfs/QmXFRjaPKuS9d1GmMxvrS4JZN3KBmWWYt8VNJZxLGE2jkB\"]},\"contracts/interfaces/IBiconomySponsorshipPaymaster.sol\":{\"keccak256\":\"0x37f183fefaab68aa36dba3045c2c232f757de24faba3db2e5b5b20baa6e4a6f5\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://9fc1df58e44e9c3fd2c09d5d2f7bab83336d1cffde987c9d2575a4d82a04c7cc\",\"dweb:/ipfs/QmWAjzjybXBztdnrnRhRYWSq7rQ56Lou5Amhf8C6wohCdz\"]},\"contracts/sponsorship/BiconomySponsorshipPaymaster.sol\":{\"keccak256\":\"0x8a37e63657c335f3967bbd230e03d8379132000d9ba9546de1c781e06cebc290\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://33e2c736aff8eff527a19ba6f4d6056d7d37918abe81f18b12392229e583a480\",\"dweb:/ipfs/QmbL4vCJ6r3XWicinxcqwT9cN7eGZqhzBMzKC9d9Ab8zqN\"]},\"contracts/utils/SoladyOwnable.sol\":{\"keccak256\":\"0xa8d7b45c34f96e24ae669cdc5add90088b8236a101cb36a7148b05c678d2f8ce\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://05d1686b40ce43c7ebb674c64ec6695c7822f3380954028c218bf59b64f8165d\",\"dweb:/ipfs/Qmc6Vr8Ru1EpupJ7gp6kmdPA5BqcoPY5GqF8ZLvMPzvBaX\"]},\"node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db\",\"dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9\"]},\"node_modules/@openzeppelin/contracts/utils/ReentrancyGuardTransient.sol\":{\"keccak256\":\"0x534bf5c25d6003a8ce50b400d20fa460c03169ad7baa90d47a912917c36dfe2b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cc0cc39c40ea23d3c46e8517e19ebdd877719d3159fa032f2a91802cdd205c79\",\"dweb:/ipfs/QmSoNh7HTkD4TJcBkBKSGSPMMpLUZKE7s9f2G6mjdaJywg\"]},\"node_modules/@openzeppelin/contracts/utils/TransientSlot.sol\":{\"keccak256\":\"0x9303ef5a2beb555e52ce56598de205ce07ca8988fc67d073687c06cb8fc973d1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8b2e48fb42844c25e6cb38e7cfa1d91dcdc054613fd10f608833dbc677acf889\",\"dweb:/ipfs/QmT4HQxbgpWA3fZnK4dY3eXHNCoyBvpvzNq5k7eSt5mR5t\"]},\"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621\",\"dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL\"]},\"node_modules/account-abstraction/contracts/core/Helpers.sol\":{\"keccak256\":\"0x6247e011a6cb0b263b3aa098822977181674d91b62e5bdfe04c6e66f72da25d6\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://ca829a69b3fbc74fec8e140d42a2bf93bc3512609272f031c846470f61f0ab7e\",\"dweb:/ipfs/QmP3r3MBgAN39KeVB1rCGJWwcBcotNt26ALtAR54poQ1Jc\"]},\"node_modules/account-abstraction/contracts/core/UserOperationLib.sol\":{\"keccak256\":\"0x9d50ece985d35f82e33e5da417595c86fac10449e3d10895d08363d33aad454b\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://b1d11cc364c8bf7ed5388268c895b5ffed16e87dfbcb320ddeeba5e7974315dc\",\"dweb:/ipfs/QmYSpvjxEjweietQrYZagwQ52ipy7eXx4rwvnTzXKeGeMS\"]},\"node_modules/account-abstraction/contracts/interfaces/IAggregator.sol\":{\"keccak256\":\"0xf100d6fcc0c3b450b13e979b6a42c628c292a1bc340eccc2e7796b80e3975588\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://192938b5b27234d35c8098a319e879363c79f750eea4d0e409dc889a8ce5b155\",\"dweb:/ipfs/QmURpaJFPqEtkKP2ngBsgZhAGN8wAWh5XQpYmCkiz4Urz5\"]},\"node_modules/account-abstraction/contracts/interfaces/IEntryPoint.sol\":{\"keccak256\":\"0x1972a5fcb3a808b58c85af5741949ef6af11ab0debd3ae8c708171ae1ae0d0c4\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://baa9837ae73b9e2362a47d42d081d7c0f3d8e878e5edb381117d94a6968949c9\",\"dweb:/ipfs/QmUmo6FUE7fv5z1WzW1YFjxp8PqaeN2JrEee9au59w3Xhe\"]},\"node_modules/account-abstraction/contracts/interfaces/INonceManager.sol\":{\"keccak256\":\"0xd575af0f6ebbd5f0b2933307d44cd7b4e03a69f4b817a67db5409bd3c89aeecb\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://3b1e2dea9b05cfba9d13339ed16d96457dc861013cc4f3f35b71a80f82448db3\",\"dweb:/ipfs/QmVaGy5uGDMSiU2SzyokTjoHFyb39VVG5wtaM9KTnHyZSk\"]},\"node_modules/account-abstraction/contracts/interfaces/IPaymaster.sol\":{\"keccak256\":\"0x49d8dbf8a85b006bcd89bbc40e4e9e113997cc016007de85263bdae70572d07f\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://bc0d83804c1b795d5c216b3518cd176c48f90db28550f267cbd89746d6b476c8\",\"dweb:/ipfs/QmNdCm4c6hnt7f6Q8q21QjtCNZWWRUaMVEYnQHEv68VnKt\"]},\"node_modules/account-abstraction/contracts/interfaces/IStakeManager.sol\":{\"keccak256\":\"0xbe5ca9e7f254d031687419e7b96ef48c9c63e9398bbe992dc72ffc6dc14e0a04\",\"license\":\"GPL-3.0-only\",\"urls\":[\"bzz-raw://1fffec71c38627a26fabb423350148009579f092623fb02b471a12d973763a00\",\"dweb:/ipfs/QmRBi31QEYXHj3x1AnQ2jKa2eziZH1b9av396P3b4dw6bj\"]},\"node_modules/account-abstraction/contracts/interfaces/PackedUserOperation.sol\":{\"keccak256\":\"0x1129b46381db68eddbc5cb49e50664667b66b03c480453858e7b25eabe444359\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://499a948aba60480dba6e25c763b8d918f1c246eb7a3302e04f493e080f3295be\",\"dweb:/ipfs/QmeRhhswf4NACcBKam2PyjpTP2ddSm648kah5kkQJsvwz3\"]},\"node_modules/solady/src/auth/Ownable.sol\":{\"keccak256\":\"0xc208cdd9de02bbf4b5edad18b88e23a2be7ff56d2287d5649329dc7cda64b9a3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8fba079cc7230c617f7493a2e97873f88e59a53a5018fcb2e2b6ac42d8aa5a3\",\"dweb:/ipfs/QmTXg8GSt8hsK2cZhbPFrund1mrwVdkLQmEPoQaFy4fhjs\"]},\"node_modules/solady/src/utils/ECDSA.sol\":{\"keccak256\":\"0x5a37fbc86ff99139e1cffad4ec05ffeeef17c1d1401113f107665d08a6abe7df\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4253a9d0cf4eab99f858fe798904f02ddaabfca3133c07a6314dc479ddd2e217\",\"dweb:/ipfs/QmXeK8yCQ8G4KsqkiP2Yewi2kPV9vdpUU9Qi1xcdX92p8v\"]},\"node_modules/solady/src/utils/SafeTransferLib.sol\":{\"keccak256\":\"0x7d0de1ff3be5dc32635283280b000d4794015a1b61d7dae7f3ff7b0721b07210\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e307c9eece677565e7d584ee77c56134b5db38a70f557f9d2b1b308219276c0c\",\"dweb:/ipfs/QmTEtqaTFgRBFGpJyb5o4v2w8yrSpcNThov4bNpcLr2tTR\"]},\"node_modules/solady/src/utils/SignatureCheckerLib.sol\":{\"keccak256\":\"0x0eb1575bafc5537fcb4bba519123c694db66840d7a13b7d3b867c55bf95e9c8b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://33b81539b6c6901660ab7c134789178146f18622813de5bc984d4c6dad7b13e6\",\"dweb:/ipfs/QmNdG7Y74GbymWqbhMbMY92AHYxLug9sR5gNWfzwB7hM1b\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.27+commit.40a35a09"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"contract IEntryPoint","name":"entryPointArg","type":"address"},{"internalType":"address","name":"verifyingSignerArg","type":"address"},{"internalType":"address","name":"feeCollectorArg","type":"address"},{"internalType":"uint256","name":"unaccountedGasArg","type":"uint256"},{"internalType":"uint256","name":"paymasterIdWithdrawalDelayArg","type":"uint256"},{"internalType":"uint256","name":"minDepositArg","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"type":"error","name":"AlreadyInitialized"},{"inputs":[],"type":"error","name":"CanNotWithdrawToZeroAddress"},{"inputs":[],"type":"error","name":"CanNotWithdrawZeroAmount"},{"inputs":[],"type":"error","name":"DepositCanNotBeZero"},{"inputs":[],"type":"error","name":"FeeCollectorCanNotBeContract"},{"inputs":[],"type":"error","name":"FeeCollectorCanNotBeZero"},{"inputs":[],"type":"error","name":"InsufficientFunds"},{"inputs":[],"type":"error","name":"InsufficientFundsForPaymasterId"},{"inputs":[],"type":"error","name":"InsufficientFundsInGasTank"},{"inputs":[],"type":"error","name":"InvalidArrayLengths"},{"inputs":[],"type":"error","name":"InvalidPriceMarkup"},{"inputs":[],"type":"error","name":"InvalidSignatureLength"},{"inputs":[],"type":"error","name":"LowDeposit"},{"inputs":[],"type":"error","name":"NewOwnerIsZeroAddress"},{"inputs":[],"type":"error","name":"NoHandoverRequest"},{"inputs":[],"type":"error","name":"NoRequestSubmitted"},{"inputs":[],"type":"error","name":"PaymasterIdCanNotBeZero"},{"inputs":[],"type":"error","name":"PostOpGasLimitTooLow"},{"inputs":[],"type":"error","name":"ReentrancyGuardReentrantCall"},{"inputs":[{"internalType":"uint256","name":"clearanceTime","type":"uint256"}],"type":"error","name":"RequestNotClearedYet"},{"inputs":[],"type":"error","name":"SubmitRequestInstead"},{"inputs":[],"type":"error","name":"UnaccountedGasTooHigh"},{"inputs":[],"type":"error","name":"Unauthorized"},{"inputs":[],"type":"error","name":"UseDepositForInstead"},{"inputs":[],"type":"error","name":"VerifyingSignerCanNotBeContract"},{"inputs":[],"type":"error","name":"VerifyingSignerCanNotBeZero"},{"inputs":[],"type":"error","name":"WithdrawalFailed"},{"inputs":[{"internalType":"address","name":"recipient","type":"address","indexed":true},{"internalType":"uint256","name":"amount","type":"uint256","indexed":true}],"type":"event","name":"EthWithdrawn","anonymous":false},{"inputs":[{"internalType":"address","name":"oldFeeCollector","type":"address","indexed":true},{"internalType":"address","name":"newFeeCollector","type":"address","indexed":true},{"internalType":"address","name":"actor","type":"address","indexed":true}],"type":"event","name":"FeeCollectorChanged","anonymous":false},{"inputs":[{"internalType":"uint256","name":"oldValue","type":"uint256","indexed":true},{"internalType":"uint256","name":"newValue","type":"uint256","indexed":true}],"type":"event","name":"FixedPriceMarkupChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"_paymasterId","type":"address","indexed":true},{"internalType":"uint256","name":"_charge","type":"uint256","indexed":true},{"internalType":"uint256","name":"_premium","type":"uint256","indexed":true}],"type":"event","name":"GasBalanceDeducted","anonymous":false},{"inputs":[{"internalType":"address","name":"_paymasterId","type":"address","indexed":true},{"internalType":"uint256","name":"_value","type":"uint256","indexed":true}],"type":"event","name":"GasDeposited","anonymous":false},{"inputs":[{"internalType":"address","name":"_paymasterId","type":"address","indexed":true},{"internalType":"address","name":"_to","type":"address","indexed":true},{"internalType":"uint256","name":"_value","type":"uint256","indexed":true}],"type":"event","name":"GasWithdrawn","anonymous":false},{"inputs":[{"internalType":"uint256","name":"oldValue","type":"uint256","indexed":true},{"internalType":"uint256","name":"newValue","type":"uint256","indexed":true}],"type":"event","name":"MinDepositChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address","indexed":true}],"type":"event","name":"OwnershipHandoverCanceled","anonymous":false},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address","indexed":true}],"type":"event","name":"OwnershipHandoverRequested","anonymous":false},{"inputs":[{"internalType":"address","name":"oldOwner","type":"address","indexed":true},{"internalType":"address","name":"newOwner","type":"address","indexed":true}],"type":"event","name":"OwnershipTransferred","anonymous":false},{"inputs":[{"internalType":"address","name":"sender","type":"address","indexed":true},{"internalType":"uint256","name":"value","type":"uint256","indexed":false}],"type":"event","name":"Received","anonymous":false},{"inputs":[{"internalType":"address","name":"token","type":"address","indexed":true},{"internalType":"address","name":"to","type":"address","indexed":true},{"internalType":"uint256","name":"amount","type":"uint256","indexed":true},{"internalType":"address","name":"actor","type":"address","indexed":false}],"type":"event","name":"TokensWithdrawn","anonymous":false},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address","indexed":true},{"internalType":"bool","name":"isTrusted","type":"bool","indexed":false}],"type":"event","name":"TrustedPaymasterIdSet","anonymous":false},{"inputs":[{"internalType":"uint256","name":"oldValue","type":"uint256","indexed":true},{"internalType":"uint256","name":"newValue","type":"uint256","indexed":true}],"type":"event","name":"UnaccountedGasChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"oldSigner","type":"address","indexed":true},{"internalType":"address","name":"newSigner","type":"address","indexed":true},{"internalType":"address","name":"actor","type":"address","indexed":true}],"type":"event","name":"VerifyingSignerChanged","anonymous":false},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address","indexed":false}],"type":"event","name":"WithdrawalRequestCancelledFor","anonymous":false},{"inputs":[{"internalType":"address","name":"withdrawAddress","type":"address","indexed":false},{"internalType":"uint256","name":"amount","type":"uint256","indexed":false}],"type":"event","name":"WithdrawalRequestSubmitted","anonymous":false},{"inputs":[{"internalType":"uint32","name":"unstakeDelaySec","type":"uint32"}],"stateMutability":"payable","type":"function","name":"addStake"},{"inputs":[],"stateMutability":"payable","type":"function","name":"cancelOwnershipHandover"},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"cancelWithdrawalRequest"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"stateMutability":"payable","type":"function","name":"completeOwnershipHandover"},{"inputs":[],"stateMutability":"payable","type":"function","name":"deposit"},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address"}],"stateMutability":"payable","type":"function","name":"depositFor"},{"inputs":[],"stateMutability":"view","type":"function","name":"entryPoint","outputs":[{"internalType":"contract IEntryPoint","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"executeWithdrawalRequest"},{"inputs":[],"stateMutability":"view","type":"function","name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address"}],"stateMutability":"view","type":"function","name":"getBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"struct PackedUserOperation","name":"userOp","type":"tuple","components":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"initCode","type":"bytes"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"bytes32","name":"accountGasLimits","type":"bytes32"},{"internalType":"uint256","name":"preVerificationGas","type":"uint256"},{"internalType":"bytes32","name":"gasFees","type":"bytes32"},{"internalType":"bytes","name":"paymasterAndData","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}]},{"internalType":"address","name":"paymasterId","type":"address"},{"internalType":"uint48","name":"validUntil","type":"uint48"},{"internalType":"uint48","name":"validAfter","type":"uint48"},{"internalType":"uint32","name":"priceMarkup","type":"uint32"}],"stateMutability":"view","type":"function","name":"getHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"minDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}]},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"stateMutability":"view","type":"function","name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}]},{"inputs":[{"internalType":"bytes","name":"paymasterAndData","type":"bytes"}],"stateMutability":"pure","type":"function","name":"parsePaymasterAndData","outputs":[{"internalType":"address","name":"paymasterId","type":"address"},{"internalType":"uint48","name":"validUntil","type":"uint48"},{"internalType":"uint48","name":"validAfter","type":"uint48"},{"internalType":"uint32","name":"priceMarkup","type":"uint32"},{"internalType":"uint128","name":"paymasterValidationGasLimit","type":"uint128"},{"internalType":"uint128","name":"paymasterPostOpGasLimit","type":"uint128"},{"internalType":"bytes","name":"signature","type":"bytes"}]},{"inputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","name":"paymasterIdBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"paymasterIdWithdrawalDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"enum IPaymaster.PostOpMode","name":"mode","type":"uint8"},{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"uint256","name":"actualGasCost","type":"uint256"},{"internalType":"uint256","name":"actualUserOpFeePerGas","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"postOp"},{"inputs":[{"internalType":"address[]","name":"paymasterIds","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function","name":"refundBalances"},{"inputs":[],"stateMutability":"payable","type":"function","name":"renounceOwnership"},{"inputs":[],"stateMutability":"payable","type":"function","name":"requestOwnershipHandover"},{"inputs":[{"internalType":"address","name":"newFeeCollector","type":"address"}],"stateMutability":"payable","type":"function","name":"setFeeCollector"},{"inputs":[{"internalType":"uint256","name":"newMinDeposit","type":"uint256"}],"stateMutability":"payable","type":"function","name":"setMinDeposit"},{"inputs":[{"internalType":"address","name":"newVerifyingSigner","type":"address"}],"stateMutability":"payable","type":"function","name":"setSigner"},{"inputs":[{"internalType":"address","name":"paymasterId","type":"address"},{"internalType":"bool","name":"isTrusted","type":"bool"}],"stateMutability":"payable","type":"function","name":"setTrustedPaymasterId"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"payable","type":"function","name":"setUnaccountedGas"},{"inputs":[{"internalType":"address","name":"withdrawAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"submitWithdrawalRequest"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"stateMutability":"payable","type":"function","name":"transferOwnership"},{"inputs":[],"stateMutability":"view","type":"function","name":"unaccountedGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"unlockStake"},{"inputs":[{"internalType":"struct PackedUserOperation","name":"userOp","type":"tuple","components":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"initCode","type":"bytes"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"bytes32","name":"accountGasLimits","type":"bytes32"},{"internalType":"uint256","name":"preVerificationGas","type":"uint256"},{"internalType":"bytes32","name":"gasFees","type":"bytes32"},{"internalType":"bytes","name":"paymasterAndData","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}]},{"internalType":"bytes32","name":"userOpHash","type":"bytes32"},{"internalType":"uint256","name":"maxCost","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"validatePaymasterUserOp","outputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"uint256","name":"validationData","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"verifyingSigner","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"withdrawERC20"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"payable","type":"function","name":"withdrawEth"},{"inputs":[{"internalType":"address payable","name":"withdrawAddress","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"withdrawStake"},{"inputs":[{"internalType":"address payable","name":"withdrawAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"withdrawTo"},{"inputs":[],"stateMutability":"payable","type":"receive"}],"devdoc":{"kind":"dev","methods":{"addStake(uint32)":{"params":{"unstakeDelaySec":"- The unstake delay for this paymaster. Can only be increased."}},"cancelOwnershipHandover()":{"details":"Cancels the two-step ownership handover to the caller, if any."},"cancelWithdrawalRequest()":{"details":"Cancel a withdrawal request for the paymasterId (Dapp Depositor address)"},"completeOwnershipHandover(address)":{"details":"Allows the owner to complete the two-step ownership handover to `pendingOwner`. Reverts if there is no existing ownership handover requested by `pendingOwner`."},"deposit()":{"details":"Override the default implementation."},"depositFor(address)":{"details":"Add a deposit for this paymaster and given paymasterId (Dapp Depositor address), used for paying for transaction fees","params":{"paymasterId":"dapp identifier for which deposit is being made"}},"executeWithdrawalRequest(address)":{"details":"Execute a withdrawal request for the paymasterId (Dapp Depositor address) Request must be cleared by the withdrawal delay period","params":{"paymasterId":"paymasterId (Dapp Depositor address)"}},"getBalance(address)":{"details":"get the current deposit for paymasterId (Dapp Depositor address)","params":{"paymasterId":"dapp identifier"}},"owner()":{"details":"Returns the owner of the contract."},"ownershipHandoverExpiresAt(address)":{"details":"Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`."},"postOp(uint8,bytes,uint256,uint256)":{"params":{"actualGasCost":"- Actual gas used so far (without this postOp call).","actualUserOpFeePerGas":"- the gas price this UserOp pays. This value is based on the UserOp's maxFeePerGas and maxPriorityFee (and basefee) It is not the same as tx.gasprice, which is what the bundler pays.","context":"- The context value returned by validatePaymasterUserOp","mode":"- Enum with the following options: opSucceeded - User operation succeeded. opReverted - User op reverted. The paymaster still has to pay for gas. postOpReverted - never passed in a call to postOp()."}},"refundBalances(address[],uint256[])":{"details":"Refund balances for multiple paymasterIds PM charges more than it should to protect itself. This function is used to refund the extra amount when the real consumption is known.","params":{"amounts":"The amounts to refund","paymasterIds":"The paymasterIds to refund"}},"renounceOwnership()":{"details":"Allows the owner to renounce their ownership."},"requestOwnershipHandover()":{"details":"Request a two-step ownership handover to the caller. The request will automatically expire in 48 hours (172800 seconds) by default."},"setFeeCollector(address)":{"details":"Set a new fee collector address. Can only be called by the owner of the contract.","params":{"newFeeCollector":"The new address to be set as the fee collector."}},"setMinDeposit(uint256)":{"details":"Set a new minimum deposit value. Can only be called by the owner of the contract.","params":{"newMinDeposit":"The new minimum deposit value to be set."}},"setSigner(address)":{"details":"Set a new verifying signer address. Can only be called by the owner of the contract.","params":{"newVerifyingSigner":"The new address to be set as the verifying signer."}},"setTrustedPaymasterId(address,bool)":{"details":"Set a new trusted paymasterId. Can only be called by the owner of the contract.","params":{"isTrusted":"Whether the paymasterId is trusted or not.","paymasterId":"The paymasterId to be set as trusted."}},"setUnaccountedGas(uint256)":{"details":"Set a new unaccountedGas value.","params":{"value":"The new value to be set as the unaccountedGas."}},"submitWithdrawalRequest(address,uint256)":{"details":"Submit a withdrawal request for the paymasterId (Dapp Depositor address)","params":{"amount":"amount to withdraw","withdrawAddress":"address to send the funds to"}},"transferOwnership(address)":{"details":"Allows the owner to transfer the ownership to `newOwner`."},"validatePaymasterUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":{"params":{"maxCost":"- The maximum cost of this transaction (based on maximum gas and gas price from userOp).","userOp":"- The user operation.","userOpHash":"- Hash of the user's request data."},"returns":{"context":" - Value to send to a postOp. Zero length to signify postOp is not required.","validationData":"- Signature and time-range of this operation, encoded the same as the return value of validateUserOperation. <20-byte> sigAuthorizer - 0 for valid signature, 1 to mark signature failure, other values are invalid for paymaster. <6-byte> validUntil - last timestamp this operation is valid. 0 for \"indefinite\" <6-byte> validAfter - first timestamp this operation is valid Note that the validation code cannot use block.timestamp (or block.number) directly."}},"withdrawERC20(address,address,uint256)":{"details":"pull tokens out of paymaster in case they were sent to the paymaster at any point.","params":{"amount":"amount to withdraw","target":"address to send to","token":"the token deposit to withdraw"}},"withdrawStake(address)":{"params":{"withdrawAddress":"- The address to send withdrawn value."}},"withdrawTo(address,uint256)":{"params":{"amount":"- Amount to withdraw.","withdrawAddress":"- Target to send to."}}},"version":1},"userdoc":{"kind":"user","methods":{"addStake(uint32)":{"notice":"Add stake for this paymaster. This method can also carry eth value to add to the current stake."},"getDeposit()":{"notice":"Return current paymaster's deposit on the entryPoint."},"getHash((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),address,uint48,uint48,uint32)":{"notice":"return the hash we're going to sign off-chain (and validate on-chain) this method is called by the off-chain service, to sign the request. it is called on-chain from the validatePaymasterUserOp, to validate the signature. note that this signature covers all fields of the UserOperation, except the \"paymasterAndData\", which will carry the signature itself."},"postOp(uint8,bytes,uint256,uint256)":{"notice":"Post-operation handler. Must verify sender is the entryPoint."},"setFeeCollector(address)":{"notice":"If _newFeeCollector is set to zero address, it will revert with an error. After setting the new fee collector address, it will emit an event FeeCollectorChanged."},"setSigner(address)":{"notice":"If _newVerifyingSigner is set to zero address, it will revert with an error. After setting the new signer address, it will emit an event VerifyingSignerChanged."},"setUnaccountedGas(uint256)":{"notice":"only to be called by the owner of the contract."},"unlockStake()":{"notice":"Unlock the stake, in order to withdraw it. The paymaster can't serve requests once unlocked, until it calls addStake again"},"validatePaymasterUserOp((address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32,uint256)":{"notice":"Payment validation: check if paymaster agrees to pay. Must verify sender is the entryPoint. Revert to reject this request. Note that bundlers will reject this method if it changes the state, unless the paymaster is trusted (whitelisted). The paymaster pre-pays using its deposit, and receive back a refund after the postOp method returns."},"withdrawStake(address)":{"notice":"Withdraw the entire paymaster's stake. stake must be unlocked first (and then wait for the unstakeDelay to be over)"},"withdrawTo(address,uint256)":{"notice":"Withdraw value from the deposit."}},"version":1}},"settings":{"remappings":["@ERC4337/account-abstraction/=node_modules/account-abstraction/","@biconomy-devx/=node_modules/@biconomy-devx/","@erc7579/=node_modules/@erc7579/","@gnosis.pm/=node_modules/@gnosis.pm/","@modulekit/=node_modules/modulekit/src/","@nexus/=node_modules/nexus/","@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/","@prb/math/=node_modules/erc7739-validator-base/node_modules/@prb/math/src/","@prb/test/=node_modules/@prb/test/","@rhinestone/=node_modules/@rhinestone/","@safe-global/=node_modules/@safe-global/","@uniswap/swap-router-contracts/contracts/=node_modules/@uniswap/swap-router-contracts/contracts/","@uniswap/v3-core/contracts/=node_modules/@uniswap/v3-core/contracts/","@uniswap/v3-periphery/contracts/=node_modules/@uniswap/v3-periphery/contracts/","@zerodev/=node_modules/@zerodev/","ExcessivelySafeCall/=node_modules/erc7739-validator-base/node_modules/excessively-safe-call/src/","account-abstraction-v0.6/=node_modules/account-abstraction-v0.6/","account-abstraction/=node_modules/account-abstraction/contracts/","accountabstraction/=node_modules/accountabstraction/","base64-sol/=node_modules/base64-sol/","ds-test/=node_modules/ds-test/","enumerableset4337/=node_modules/erc7739-validator-base/node_modules/@erc7579/enumerablemap4337/src/","erc4337-validation/=node_modules/erc7739-validator-base/node_modules/@rhinestone/erc4337-validation/src/","erc7579/=node_modules/erc7579/src/","erc7739-validator-base/=node_modules/erc7739-validator-base/","erc7739Validator/=node_modules/erc7739-validator-base/src/","excessively-safe-call/=node_modules/excessively-safe-call/src/","forge-std/=lib/forge-std/src/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","kernel/=node_modules/@zerodev/kernel/src/","module-bases/=node_modules/module-bases/src/","modulekit/=node_modules/@rhinestone/modulekit/src/","nexus/=node_modules/nexus/","registry/=node_modules/modulekit/node_modules/@rhinestone/registry/src/","safe7579/=node_modules/erc7739-validator-base/node_modules/@rhinestone/safe7579/src/","sentinellist/=node_modules/sentinellist/src/","solady/=node_modules/solady/src/","solady/src/=node_modules/solady/src/","solarray/=node_modules/solarray/src/"],"optimizer":{"enabled":true,"runs":800},"metadata":{"bytecodeHash":"none"},"compilationTarget":{"contracts/sponsorship/BiconomySponsorshipPaymaster.sol":"BiconomySponsorshipPaymaster"},"evmVersion":"cancun","libraries":{},"viaIR":true},"sources":{"contracts/base/BasePaymaster.sol":{"keccak256":"0xde235ba59fa9febfab83433be7020fbba2798fb8ed601e7ef076e9f4693671a2","urls":["bzz-raw://e3ee35669cb1b0db5325f948800589b5f012ba8099e57827eb76875d95a016d3","dweb:/ipfs/QmTBpW9RCubh28tHxgL6Ee8UEM8bNLVKEyEiFCrEL4pQ9a"],"license":"GPL-3.0"},"contracts/common/BiconomySponsorshipPaymasterErrors.sol":{"keccak256":"0xf7bfb4912e8d118a3f1f4f82a19834a686f105ad142afb7203adfa2ff38d7000","urls":["bzz-raw://88593bfdb72f8585853a91e675367ac718d1daf5e62c4192459d73cbaeeb07a5","dweb:/ipfs/QmXFRjaPKuS9d1GmMxvrS4JZN3KBmWWYt8VNJZxLGE2jkB"],"license":"LGPL-3.0-only"},"contracts/interfaces/IBiconomySponsorshipPaymaster.sol":{"keccak256":"0x37f183fefaab68aa36dba3045c2c232f757de24faba3db2e5b5b20baa6e4a6f5","urls":["bzz-raw://9fc1df58e44e9c3fd2c09d5d2f7bab83336d1cffde987c9d2575a4d82a04c7cc","dweb:/ipfs/QmWAjzjybXBztdnrnRhRYWSq7rQ56Lou5Amhf8C6wohCdz"],"license":"GPL-3.0"},"contracts/sponsorship/BiconomySponsorshipPaymaster.sol":{"keccak256":"0x8a37e63657c335f3967bbd230e03d8379132000d9ba9546de1c781e06cebc290","urls":["bzz-raw://33e2c736aff8eff527a19ba6f4d6056d7d37918abe81f18b12392229e583a480","dweb:/ipfs/QmbL4vCJ6r3XWicinxcqwT9cN7eGZqhzBMzKC9d9Ab8zqN"],"license":"GPL-3.0"},"contracts/utils/SoladyOwnable.sol":{"keccak256":"0xa8d7b45c34f96e24ae669cdc5add90088b8236a101cb36a7148b05c678d2f8ce","urls":["bzz-raw://05d1686b40ce43c7ebb674c64ec6695c7822f3380954028c218bf59b64f8165d","dweb:/ipfs/Qmc6Vr8Ru1EpupJ7gp6kmdPA5BqcoPY5GqF8ZLvMPzvBaX"],"license":"MIT"},"node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol":{"keccak256":"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7","urls":["bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db","dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9"],"license":"MIT"},"node_modules/@openzeppelin/contracts/utils/ReentrancyGuardTransient.sol":{"keccak256":"0x534bf5c25d6003a8ce50b400d20fa460c03169ad7baa90d47a912917c36dfe2b","urls":["bzz-raw://cc0cc39c40ea23d3c46e8517e19ebdd877719d3159fa032f2a91802cdd205c79","dweb:/ipfs/QmSoNh7HTkD4TJcBkBKSGSPMMpLUZKE7s9f2G6mjdaJywg"],"license":"MIT"},"node_modules/@openzeppelin/contracts/utils/TransientSlot.sol":{"keccak256":"0x9303ef5a2beb555e52ce56598de205ce07ca8988fc67d073687c06cb8fc973d1","urls":["bzz-raw://8b2e48fb42844c25e6cb38e7cfa1d91dcdc054613fd10f608833dbc677acf889","dweb:/ipfs/QmT4HQxbgpWA3fZnK4dY3eXHNCoyBvpvzNq5k7eSt5mR5t"],"license":"MIT"},"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol":{"keccak256":"0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8","urls":["bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621","dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL"],"license":"MIT"},"node_modules/account-abstraction/contracts/core/Helpers.sol":{"keccak256":"0x6247e011a6cb0b263b3aa098822977181674d91b62e5bdfe04c6e66f72da25d6","urls":["bzz-raw://ca829a69b3fbc74fec8e140d42a2bf93bc3512609272f031c846470f61f0ab7e","dweb:/ipfs/QmP3r3MBgAN39KeVB1rCGJWwcBcotNt26ALtAR54poQ1Jc"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/core/UserOperationLib.sol":{"keccak256":"0x9d50ece985d35f82e33e5da417595c86fac10449e3d10895d08363d33aad454b","urls":["bzz-raw://b1d11cc364c8bf7ed5388268c895b5ffed16e87dfbcb320ddeeba5e7974315dc","dweb:/ipfs/QmYSpvjxEjweietQrYZagwQ52ipy7eXx4rwvnTzXKeGeMS"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/interfaces/IAggregator.sol":{"keccak256":"0xf100d6fcc0c3b450b13e979b6a42c628c292a1bc340eccc2e7796b80e3975588","urls":["bzz-raw://192938b5b27234d35c8098a319e879363c79f750eea4d0e409dc889a8ce5b155","dweb:/ipfs/QmURpaJFPqEtkKP2ngBsgZhAGN8wAWh5XQpYmCkiz4Urz5"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/interfaces/IEntryPoint.sol":{"keccak256":"0x1972a5fcb3a808b58c85af5741949ef6af11ab0debd3ae8c708171ae1ae0d0c4","urls":["bzz-raw://baa9837ae73b9e2362a47d42d081d7c0f3d8e878e5edb381117d94a6968949c9","dweb:/ipfs/QmUmo6FUE7fv5z1WzW1YFjxp8PqaeN2JrEee9au59w3Xhe"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/interfaces/INonceManager.sol":{"keccak256":"0xd575af0f6ebbd5f0b2933307d44cd7b4e03a69f4b817a67db5409bd3c89aeecb","urls":["bzz-raw://3b1e2dea9b05cfba9d13339ed16d96457dc861013cc4f3f35b71a80f82448db3","dweb:/ipfs/QmVaGy5uGDMSiU2SzyokTjoHFyb39VVG5wtaM9KTnHyZSk"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/interfaces/IPaymaster.sol":{"keccak256":"0x49d8dbf8a85b006bcd89bbc40e4e9e113997cc016007de85263bdae70572d07f","urls":["bzz-raw://bc0d83804c1b795d5c216b3518cd176c48f90db28550f267cbd89746d6b476c8","dweb:/ipfs/QmNdCm4c6hnt7f6Q8q21QjtCNZWWRUaMVEYnQHEv68VnKt"],"license":"GPL-3.0"},"node_modules/account-abstraction/contracts/interfaces/IStakeManager.sol":{"keccak256":"0xbe5ca9e7f254d031687419e7b96ef48c9c63e9398bbe992dc72ffc6dc14e0a04","urls":["bzz-raw://1fffec71c38627a26fabb423350148009579f092623fb02b471a12d973763a00","dweb:/ipfs/QmRBi31QEYXHj3x1AnQ2jKa2eziZH1b9av396P3b4dw6bj"],"license":"GPL-3.0-only"},"node_modules/account-abstraction/contracts/interfaces/PackedUserOperation.sol":{"keccak256":"0x1129b46381db68eddbc5cb49e50664667b66b03c480453858e7b25eabe444359","urls":["bzz-raw://499a948aba60480dba6e25c763b8d918f1c246eb7a3302e04f493e080f3295be","dweb:/ipfs/QmeRhhswf4NACcBKam2PyjpTP2ddSm648kah5kkQJsvwz3"],"license":"GPL-3.0"},"node_modules/solady/src/auth/Ownable.sol":{"keccak256":"0xc208cdd9de02bbf4b5edad18b88e23a2be7ff56d2287d5649329dc7cda64b9a3","urls":["bzz-raw://e8fba079cc7230c617f7493a2e97873f88e59a53a5018fcb2e2b6ac42d8aa5a3","dweb:/ipfs/QmTXg8GSt8hsK2cZhbPFrund1mrwVdkLQmEPoQaFy4fhjs"],"license":"MIT"},"node_modules/solady/src/utils/ECDSA.sol":{"keccak256":"0x5a37fbc86ff99139e1cffad4ec05ffeeef17c1d1401113f107665d08a6abe7df","urls":["bzz-raw://4253a9d0cf4eab99f858fe798904f02ddaabfca3133c07a6314dc479ddd2e217","dweb:/ipfs/QmXeK8yCQ8G4KsqkiP2Yewi2kPV9vdpUU9Qi1xcdX92p8v"],"license":"MIT"},"node_modules/solady/src/utils/SafeTransferLib.sol":{"keccak256":"0x7d0de1ff3be5dc32635283280b000d4794015a1b61d7dae7f3ff7b0721b07210","urls":["bzz-raw://e307c9eece677565e7d584ee77c56134b5db38a70f557f9d2b1b308219276c0c","dweb:/ipfs/QmTEtqaTFgRBFGpJyb5o4v2w8yrSpcNThov4bNpcLr2tTR"],"license":"MIT"},"node_modules/solady/src/utils/SignatureCheckerLib.sol":{"keccak256":"0x0eb1575bafc5537fcb4bba519123c694db66840d7a13b7d3b867c55bf95e9c8b","urls":["bzz-raw://33b81539b6c6901660ab7c134789178146f18622813de5bc984d4c6dad7b13e6","dweb:/ipfs/QmNdG7Y74GbymWqbhMbMY92AHYxLug9sR5gNWfzwB7hM1b"],"license":"MIT"}},"version":1},"id":7} \ No newline at end of file diff --git a/scripts/bash-deploy/artifacts/BiconomySponsorshipPaymaster/verify.json b/scripts/bash-deploy/artifacts/BiconomySponsorshipPaymaster/verify.json index 94f3b0d..fa7fa65 100644 --- a/scripts/bash-deploy/artifacts/BiconomySponsorshipPaymaster/verify.json +++ b/scripts/bash-deploy/artifacts/BiconomySponsorshipPaymaster/verify.json @@ -1 +1 @@ -{"language":"Solidity","sources":{"contracts/sponsorship/BiconomySponsorshipPaymaster.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.27;\n\n/* solhint-disable reason-string */\n\nimport \"../base/BasePaymaster.sol\";\nimport \"account-abstraction/core/UserOperationLib.sol\";\nimport \"account-abstraction/core/Helpers.sol\";\nimport { SignatureCheckerLib } from \"solady/utils/SignatureCheckerLib.sol\";\nimport { ECDSA as ECDSA_solady } from \"solady/utils/ECDSA.sol\";\nimport { BiconomySponsorshipPaymasterErrors } from \"../common/BiconomySponsorshipPaymasterErrors.sol\";\nimport { ReentrancyGuardTransient } from \"@openzeppelin/contracts/utils/ReentrancyGuardTransient.sol\";\nimport { IERC20 } from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport { SafeTransferLib } from \"solady/utils/SafeTransferLib.sol\";\nimport { IBiconomySponsorshipPaymaster } from \"../interfaces/IBiconomySponsorshipPaymaster.sol\";\n\nimport {console} from \"forge-std/console.sol\";\n\n/**\n * @title BiconomySponsorshipPaymaster\n * @author livingrockrises\n * @author ShivaanshK\n * @notice Based on Infinitism's 'VerifyingPaymaster' contract\n * @dev This contract is used to sponsor the transaction fees of the user operations\n * Uses a verifying signer to provide the signature if predetermined conditions are met\n * regarding the user operation calldata. Also this paymaster is Singleton in nature which\n * means multiple Dapps/Wallet clients willing to sponsor the transactions can share this paymaster.\n * Maintains it's own accounting of the gas balance for each Dapp/Wallet client\n * and Manages it's own deposit on the EntryPoint.\n */\n\ncontract BiconomySponsorshipPaymaster is\n BasePaymaster,\n ReentrancyGuardTransient,\n BiconomySponsorshipPaymasterErrors,\n IBiconomySponsorshipPaymaster\n{\n using UserOperationLib for PackedUserOperation;\n using SignatureCheckerLib for address;\n using ECDSA_solady for bytes32;\n\n address public verifyingSigner;\n address public feeCollector;\n uint256 public unaccountedGas;\n uint256 public paymasterIdWithdrawalDelay;\n uint256 public minDeposit;\n\n // Denominator to prevent precision errors when applying price markup\n uint256 private constant _PRICE_DENOMINATOR = 1e6;\n // Offset in PaymasterAndData to get to PAYMASTER_ID_OFFSET\n uint256 private constant _PAYMASTER_ID_OFFSET = _PAYMASTER_DATA_OFFSET;\n // Limit for unaccounted gas cost\n uint256 private constant _UNACCOUNTED_GAS_LIMIT = 100_000;\n\n mapping(address => uint256) public paymasterIdBalances;\n mapping(address => bool) internal _trustedPaymasterIds;\n mapping(address paymasterId => WithdrawalRequest request) internal _requests;\n\n constructor(\n address owner,\n IEntryPoint entryPointArg,\n address verifyingSignerArg,\n address feeCollectorArg,\n uint256 unaccountedGasArg,\n uint256 paymasterIdWithdrawalDelayArg,\n uint256 minDepositArg\n )\n BasePaymaster(owner, entryPointArg)\n {\n console.log(\"0\");\n _checkConstructorArgs(verifyingSignerArg, feeCollectorArg, unaccountedGasArg);\n console.log(\"1\");\n assembly (\"memory-safe\") {\n sstore(verifyingSigner.slot, verifyingSignerArg)\n }\n console.log(\"2\");\n feeCollector = feeCollectorArg;\n console.log(\"3\");\n unaccountedGas = unaccountedGasArg;\n console.log(\"4\");\n paymasterIdWithdrawalDelay = paymasterIdWithdrawalDelayArg;\n console.log(\"5\");\n minDeposit = minDepositArg;\n }\n\n receive() external payable {\n emit Received(msg.sender, msg.value);\n }\n\n /**\n * @dev Add a deposit for this paymaster and given paymasterId (Dapp Depositor address), used for paying for\n * transaction fees\n * @param paymasterId dapp identifier for which deposit is being made\n */\n function depositFor(address paymasterId) external payable nonReentrant {\n if (paymasterId == address(0)) revert PaymasterIdCanNotBeZero();\n if (msg.value == 0) revert DepositCanNotBeZero();\n if (paymasterIdBalances[paymasterId] + msg.value < minDeposit) revert LowDeposit();\n paymasterIdBalances[paymasterId] += msg.value;\n entryPoint.depositTo{ value: msg.value }(address(this));\n emit GasDeposited(paymasterId, msg.value);\n }\n\n /**\n * @dev Set a new verifying signer address.\n * Can only be called by the owner of the contract.\n * @param newVerifyingSigner The new address to be set as the verifying signer.\n * @notice If _newVerifyingSigner is set to zero address, it will revert with an error.\n * After setting the new signer address, it will emit an event VerifyingSignerChanged.\n */\n function setSigner(address newVerifyingSigner) external payable onlyOwner {\n if (_isContract(newVerifyingSigner)) revert VerifyingSignerCanNotBeContract();\n if (newVerifyingSigner == address(0)) {\n revert VerifyingSignerCanNotBeZero();\n }\n address oldSigner = verifyingSigner;\n assembly (\"memory-safe\") {\n sstore(verifyingSigner.slot, newVerifyingSigner)\n }\n emit VerifyingSignerChanged(oldSigner, newVerifyingSigner, msg.sender);\n }\n\n /**\n * @dev Refund balances for multiple paymasterIds\n * PM charges more than it should to protect itself. \n * This function is used to refund the extra amount \n * when the real consumption is known.\n * @param paymasterIds The paymasterIds to refund\n * @param amounts The amounts to refund\n */\n function refundBalances(address[] calldata paymasterIds, uint256[] calldata amounts) external payable onlyOwner {\n if (paymasterIds.length != amounts.length) revert InvalidArrayLengths();\n for (uint256 i; i < paymasterIds.length; i++) {\n paymasterIdBalances[paymasterIds[i]] += amounts[i];\n }\n }\n\n /**\n * @dev Set a new trusted paymasterId.\n * Can only be called by the owner of the contract.\n * @param paymasterId The paymasterId to be set as trusted.\n * @param isTrusted Whether the paymasterId is trusted or not.\n */\n function setTrustedPaymasterId(address paymasterId, bool isTrusted) external payable onlyOwner {\n if (paymasterId == address(0)) revert PaymasterIdCanNotBeZero();\n if (_trustedPaymasterIds[paymasterId] != isTrusted) {\n _trustedPaymasterIds[paymasterId] = isTrusted;\n emit TrustedPaymasterIdSet(paymasterId, isTrusted);\n }\n }\n\n /**\n * @dev Set a new minimum deposit value.\n * Can only be called by the owner of the contract.\n * @param newMinDeposit The new minimum deposit value to be set.\n */\n function setMinDeposit(uint256 newMinDeposit) external payable onlyOwner {\n emit MinDepositChanged(minDeposit, newMinDeposit);\n minDeposit = newMinDeposit;\n }\n\n /**\n * @dev Set a new fee collector address.\n * Can only be called by the owner of the contract.\n * @param newFeeCollector The new address to be set as the fee collector.\n * @notice If _newFeeCollector is set to zero address, it will revert with an error.\n * After setting the new fee collector address, it will emit an event FeeCollectorChanged.\n */\n function setFeeCollector(address newFeeCollector) external payable override onlyOwner {\n if (_isContract(newFeeCollector)) revert FeeCollectorCanNotBeContract();\n if (newFeeCollector == address(0)) revert FeeCollectorCanNotBeZero();\n address oldFeeCollector = feeCollector;\n feeCollector = newFeeCollector;\n emit FeeCollectorChanged(oldFeeCollector, newFeeCollector, msg.sender);\n }\n\n /**\n * @dev Set a new unaccountedGas value.\n * @param value The new value to be set as the unaccountedGas.\n * @notice only to be called by the owner of the contract.\n */\n function setUnaccountedGas(uint256 value) external payable onlyOwner {\n if (value > _UNACCOUNTED_GAS_LIMIT) {\n revert UnaccountedGasTooHigh();\n }\n uint256 oldValue = unaccountedGas;\n unaccountedGas = value;\n emit UnaccountedGasChanged(oldValue, value);\n }\n\n /**\n * @dev Override the default implementation.\n */\n function deposit() external payable virtual override {\n revert UseDepositForInstead();\n }\n\n /**\n * @dev pull tokens out of paymaster in case they were sent to the paymaster at any point.\n * @param token the token deposit to withdraw\n * @param target address to send to\n * @param amount amount to withdraw\n */\n function withdrawERC20(IERC20 token, address target, uint256 amount) external onlyOwner nonReentrant {\n _withdrawERC20(token, target, amount);\n }\n\n /**\n * @dev Submit a withdrawal request for the paymasterId (Dapp Depositor address)\n * @param withdrawAddress address to send the funds to\n * @param amount amount to withdraw\n */\n function submitWithdrawalRequest(address withdrawAddress, uint256 amount) external {\n if (withdrawAddress == address(0)) revert CanNotWithdrawToZeroAddress();\n if (amount == 0) revert CanNotWithdrawZeroAmount();\n uint256 currentBalance = paymasterIdBalances[msg.sender];\n if (amount > currentBalance) revert InsufficientFundsInGasTank();\n _requests[msg.sender] =\n WithdrawalRequest({ amount: amount, to: withdrawAddress, requestSubmittedTimestamp: block.timestamp });\n emit WithdrawalRequestSubmitted(withdrawAddress, amount);\n }\n\n /**\n * @dev Execute a withdrawal request for the paymasterId (Dapp Depositor address)\n * Request must be cleared by the withdrawal delay period\n * @param paymasterId paymasterId (Dapp Depositor address)\n */\n function executeWithdrawalRequest(address paymasterId) external nonReentrant {\n WithdrawalRequest memory req = _requests[paymasterId];\n if (req.requestSubmittedTimestamp == 0) revert NoRequestSubmitted();\n uint256 clearanceTimestamp = req.requestSubmittedTimestamp + _getDelay(paymasterId);\n if (block.timestamp < clearanceTimestamp) revert RequestNotClearedYet(clearanceTimestamp);\n uint256 currentBalance = paymasterIdBalances[paymasterId];\n req.amount = req.amount > currentBalance ? currentBalance : req.amount;\n if(req.amount == 0) revert CanNotWithdrawZeroAmount();\n paymasterIdBalances[paymasterId] = currentBalance - req.amount;\n delete _requests[paymasterId];\n entryPoint.withdrawTo(payable(req.to), req.amount);\n emit GasWithdrawn(paymasterId, req.to, req.amount);\n }\n\n /**\n * @dev Cancel a withdrawal request for the paymasterId (Dapp Depositor address)\n */\n function cancelWithdrawalRequest() external {\n delete _requests[msg.sender];\n emit WithdrawalRequestCancelledFor(msg.sender);\n }\n\n function withdrawEth(address payable recipient, uint256 amount) external payable onlyOwner nonReentrant {\n (bool success,) = recipient.call{ value: amount }(\"\");\n if (!success) {\n revert WithdrawalFailed();\n }\n emit EthWithdrawn(recipient, amount);\n }\n\n function withdrawTo(address payable withdrawAddress, uint256 amount) external virtual override {\n (withdrawAddress, amount);\n revert SubmitRequestInstead();\n }\n\n /**\n * @dev get the current deposit for paymasterId (Dapp Depositor address)\n * @param paymasterId dapp identifier\n */\n function getBalance(address paymasterId) external view returns (uint256 balance) {\n balance = paymasterIdBalances[paymasterId];\n }\n\n /**\n * return the hash we're going to sign off-chain (and validate on-chain)\n * this method is called by the off-chain service, to sign the request.\n * it is called on-chain from the validatePaymasterUserOp, to validate the signature.\n * note that this signature covers all fields of the UserOperation, except the \"paymasterAndData\",\n * which will carry the signature itself.\n */\n function getHash(\n PackedUserOperation calldata userOp,\n address paymasterId,\n uint48 validUntil,\n uint48 validAfter,\n uint32 priceMarkup\n )\n public\n view\n returns (bytes32)\n {\n //can't use userOp.hash(), since it contains also the paymasterAndData itself.\n address sender = userOp.getSender();\n return keccak256(\n abi.encode(\n sender,\n userOp.nonce,\n keccak256(userOp.initCode),\n keccak256(userOp.callData),\n userOp.accountGasLimits,\n uint256(bytes32(userOp.paymasterAndData[_PAYMASTER_VALIDATION_GAS_OFFSET:_PAYMASTER_DATA_OFFSET])),\n userOp.preVerificationGas,\n userOp.gasFees,\n block.chainid,\n address(this),\n paymasterId,\n validUntil,\n validAfter,\n priceMarkup\n )\n );\n }\n\n function parsePaymasterAndData(\n bytes calldata paymasterAndData\n )\n public\n pure\n returns (\n address paymasterId,\n uint48 validUntil,\n uint48 validAfter,\n uint32 priceMarkup,\n uint128 paymasterValidationGasLimit,\n uint128 paymasterPostOpGasLimit,\n bytes calldata signature\n )\n {\n unchecked {\n paymasterId = address(bytes20(paymasterAndData[_PAYMASTER_ID_OFFSET:_PAYMASTER_ID_OFFSET + 20]));\n validUntil = uint48(bytes6(paymasterAndData[_PAYMASTER_ID_OFFSET + 20:_PAYMASTER_ID_OFFSET + 26]));\n validAfter = uint48(bytes6(paymasterAndData[_PAYMASTER_ID_OFFSET + 26:_PAYMASTER_ID_OFFSET + 32]));\n priceMarkup = uint32(bytes4(paymasterAndData[_PAYMASTER_ID_OFFSET + 32:_PAYMASTER_ID_OFFSET + 36]));\n paymasterValidationGasLimit =\n uint128(bytes16(paymasterAndData[_PAYMASTER_VALIDATION_GAS_OFFSET:_PAYMASTER_POSTOP_GAS_OFFSET]));\n paymasterPostOpGasLimit =\n uint128(bytes16(paymasterAndData[_PAYMASTER_POSTOP_GAS_OFFSET:_PAYMASTER_DATA_OFFSET]));\n signature = paymasterAndData[_PAYMASTER_ID_OFFSET + 36:];\n }\n }\n\n /// @notice Performs post-operation tasks, such as deducting the sponsored gas cost from the paymasterId's balance\n /// @dev This function is called after a user operation has been executed or reverted.\n /// @param context The context containing the token amount and user sender address.\n /// @param actualGasCost The actual gas cost of the transaction.\n function _postOp(\n PostOpMode,\n bytes calldata context,\n uint256 actualGasCost,\n uint256 actualUserOpFeePerGas\n )\n internal\n override\n {\n (address paymasterId, uint32 priceMarkup, uint256 prechargedAmount) =\n abi.decode(context, (address, uint32, uint256));\n\n // Include unaccountedGas since EP doesn't include this in actualGasCost\n // unaccountedGas = postOpGas + EP overhead gas \n actualGasCost = actualGasCost + (unaccountedGas * actualUserOpFeePerGas);\n // Apply the price markup\n uint256 adjustedGasCost = (actualGasCost * priceMarkup) / _PRICE_DENOMINATOR;\n\n uint256 premium = adjustedGasCost - actualGasCost;\n\n // Add priceMarkup to fee collector balance\n paymasterIdBalances[feeCollector] += premium;\n\n if (prechargedAmount > adjustedGasCost) {\n // If overcharged refund the excess\n paymasterIdBalances[paymasterId] += (prechargedAmount - adjustedGasCost);\n } else {\n // deduct what needs to be deducted from paymasterId\n paymasterIdBalances[paymasterId] -= (adjustedGasCost - prechargedAmount); \n }\n // here adjustedGasCost does not account for gasPenalty. prechargedAmount accounts for penalty with maxGasPenalty\n emit GasBalanceDeducted(paymasterId, adjustedGasCost, premium);\n }\n\n /**\n * @dev verify our external signer signed this request.\n * Adds maxPenalty to the effectiveCost to protect PM.\n * The \"paymasterAndData\" is expected to be the paymaster and a signature over the entire request params.\n * paymasterAndData[:20] : address(this)\n * paymasterAndData[52:72] : paymasterId (dappDepositor)\n * paymasterAndData[72:78] : validUntil\n * paymasterAndData[78:84] : validAfter\n * paymasterAndData[84:88] : priceMarkup\n * paymasterAndData[88:] : signature\n * @param userOp The user operation to validate.\n * @param userOpHash The hash of the user operation.\n * @param requiredPreFund The required pre-fund amount.\n * @return context The context for the paymaster.\n * @return validationData The validation data as per ERC-4337.\n */\n function _validatePaymasterUserOp(\n PackedUserOperation calldata userOp,\n bytes32 userOpHash,\n uint256 requiredPreFund\n )\n internal\n override\n returns (bytes memory context, uint256 validationData)\n {\n (userOpHash);\n (\n address paymasterId,\n uint48 validUntil,\n uint48 validAfter,\n uint32 priceMarkup,\n uint128 paymasterValidationGasLimit,\n uint128 paymasterPostOpGasLimit,\n bytes calldata signature\n ) = parsePaymasterAndData(userOp.paymasterAndData);\n (paymasterValidationGasLimit, paymasterPostOpGasLimit);\n\n //ECDSA library supports both 64 and 65-byte long signatures.\n // we only \"require\" it here so that the revert reason on invalid signature will be of \"VerifyingPaymaster\", and\n // not \"ECDSA\"\n if (signature.length != 64 && signature.length != 65) {\n revert InvalidSignatureLength();\n }\n\n if (unaccountedGas > userOp.unpackPostOpGasLimit()) {\n revert PostOpGasLimitTooLow();\n }\n\n bool validSig = (\n (getHash(userOp, paymasterId, validUntil, validAfter, priceMarkup).toEthSignedMessageHash()).tryRecover(\n signature\n )\n ) == verifyingSigner ? true : false;\n\n //don't revert on signature failure: return SIG_VALIDATION_FAILED\n if (!validSig) {\n return (\"\", _packValidationData(true, validUntil, validAfter));\n }\n\n // Send 1e6 for No markup\n if (priceMarkup > 2e6 || priceMarkup < 1e6) {\n revert InvalidPriceMarkup();\n }\n\n // callGasLimit + paymasterPostOpGas\n uint256 maxPenalty = (\n (\n uint128(uint256(userOp.accountGasLimits))\n + uint128(bytes16(userOp.paymasterAndData[_PAYMASTER_POSTOP_GAS_OFFSET:_PAYMASTER_DATA_OFFSET]))\n ) * 10 * userOp.unpackMaxFeePerGas()\n ) / 100;\n\n // Deduct the max gas cost.\n uint256 effectiveCost =\n (((requiredPreFund + unaccountedGas * userOp.unpackMaxFeePerGas()) * priceMarkup) / _PRICE_DENOMINATOR);\n\n if (effectiveCost + maxPenalty > paymasterIdBalances[paymasterId]) {\n revert InsufficientFundsForPaymasterId();\n }\n\n paymasterIdBalances[paymasterId] -= (effectiveCost + maxPenalty);\n\n context = abi.encode(paymasterId, priceMarkup, effectiveCost);\n\n // no need for other on-chain validation: entire UserOp should have been checked\n // by the external service prior to signing it.\n return (context, _packValidationData(false, validUntil, validAfter));\n }\n\n function _checkConstructorArgs(\n address verifyingSignerArg,\n address feeCollectorArg,\n uint256 unaccountedGasArg\n )\n internal\n view\n {\n if (verifyingSignerArg == address(0)) {\n revert VerifyingSignerCanNotBeZero();\n } else if (_isContract(verifyingSignerArg)) {\n revert VerifyingSignerCanNotBeContract();\n } else if (feeCollectorArg == address(0)) {\n revert FeeCollectorCanNotBeZero();\n } else if (_isContract(feeCollectorArg)) {\n revert FeeCollectorCanNotBeContract();\n } else if (unaccountedGasArg > _UNACCOUNTED_GAS_LIMIT) {\n revert UnaccountedGasTooHigh();\n }\n }\n\n function _getDelay(address paymasterId) internal view returns (uint256) {\n if (_trustedPaymasterIds[paymasterId]) return 0;\n return paymasterIdWithdrawalDelay;\n }\n\n function _withdrawERC20(IERC20 token, address target, uint256 amount) private {\n if (target == address(0)) revert CanNotWithdrawToZeroAddress();\n SafeTransferLib.safeTransfer(address(token), target, amount);\n emit TokensWithdrawn(address(token), target, amount, msg.sender);\n }\n}\n"},"contracts/base/BasePaymaster.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.27;\n\n/* solhint-disable reason-string */\n\nimport { SoladyOwnable } from \"../utils/SoladyOwnable.sol\";\nimport \"@openzeppelin/contracts/utils/introspection/IERC165.sol\";\nimport { IPaymaster } from \"account-abstraction/interfaces/IPaymaster.sol\";\nimport { IEntryPoint } from \"account-abstraction/interfaces/IEntryPoint.sol\";\nimport \"account-abstraction/core/UserOperationLib.sol\";\n\nimport {console} from \"forge-std/console.sol\";\n\n/**\n * Helper class for creating a paymaster.\n * provides helper methods for staking.\n * Validates that the postOp is called only by the entryPoint.\n */\n\nabstract contract BasePaymaster is IPaymaster, SoladyOwnable {\n IEntryPoint public immutable entryPoint;\n\n uint256 internal constant _PAYMASTER_VALIDATION_GAS_OFFSET = UserOperationLib.PAYMASTER_VALIDATION_GAS_OFFSET;\n uint256 internal constant _PAYMASTER_POSTOP_GAS_OFFSET = UserOperationLib.PAYMASTER_POSTOP_GAS_OFFSET;\n uint256 internal constant _PAYMASTER_DATA_OFFSET = UserOperationLib.PAYMASTER_DATA_OFFSET;\n\n constructor(address owner, IEntryPoint entryPointArg) SoladyOwnable(owner) {\n console.log(\"0-0\");\n _validateEntryPointInterface(entryPointArg);\n entryPoint = entryPointArg;\n }\n\n /**\n * Add stake for this paymaster.\n * This method can also carry eth value to add to the current stake.\n * @param unstakeDelaySec - The unstake delay for this paymaster. Can only be increased.\n */\n function addStake(uint32 unstakeDelaySec) external payable onlyOwner {\n entryPoint.addStake{ value: msg.value }(unstakeDelaySec);\n }\n\n /**\n * Unlock the stake, in order to withdraw it.\n * The paymaster can't serve requests once unlocked, until it calls addStake again\n */\n function unlockStake() external onlyOwner {\n entryPoint.unlockStake();\n }\n\n /**\n * Withdraw the entire paymaster's stake.\n * stake must be unlocked first (and then wait for the unstakeDelay to be over)\n * @param withdrawAddress - The address to send withdrawn value.\n */\n function withdrawStake(address payable withdrawAddress) external onlyOwner {\n entryPoint.withdrawStake(withdrawAddress);\n }\n\n /// @inheritdoc IPaymaster\n function postOp(\n PostOpMode mode,\n bytes calldata context,\n uint256 actualGasCost,\n uint256 actualUserOpFeePerGas\n )\n external\n override\n {\n _requireFromEntryPoint();\n _postOp(mode, context, actualGasCost, actualUserOpFeePerGas);\n }\n\n /// @inheritdoc IPaymaster\n function validatePaymasterUserOp(\n PackedUserOperation calldata userOp,\n bytes32 userOpHash,\n uint256 maxCost\n )\n external\n override\n returns (bytes memory context, uint256 validationData)\n {\n _requireFromEntryPoint();\n return _validatePaymasterUserOp(userOp, userOpHash, maxCost);\n }\n\n /**\n * Add a deposit for this paymaster, used for paying for transaction fees.\n */\n function deposit() external payable virtual {\n entryPoint.depositTo{ value: msg.value }(address(this));\n }\n\n /**\n * Withdraw value from the deposit.\n * @param withdrawAddress - Target to send to.\n * @param amount - Amount to withdraw.\n */\n function withdrawTo(address payable withdrawAddress, uint256 amount) external virtual onlyOwner {\n entryPoint.withdrawTo(withdrawAddress, amount);\n }\n\n /**\n * Return current paymaster's deposit on the entryPoint.\n */\n function getDeposit() public view returns (uint256) {\n return entryPoint.balanceOf(address(this));\n }\n\n //sanity check: make sure this EntryPoint was compiled against the same\n // IEntryPoint of this paymaster\n function _validateEntryPointInterface(IEntryPoint entryPointArg) internal virtual {\n require(\n IERC165(address(entryPointArg)).supportsInterface(type(IEntryPoint).interfaceId),\n \"IEntryPoint interface mismatch\"\n );\n }\n\n /**\n * Validate a user operation.\n * @param userOp - The user operation.\n * @param userOpHash - The hash of the user operation.\n * @param maxCost - The maximum cost of the user operation.\n */\n function _validatePaymasterUserOp(\n PackedUserOperation calldata userOp,\n bytes32 userOpHash,\n uint256 maxCost\n )\n internal\n virtual\n returns (bytes memory context, uint256 validationData);\n\n /**\n * Post-operation handler.\n * (verified to be called only through the entryPoint)\n * @dev If subclass returns a non-empty context from validatePaymasterUserOp,\n * it must also implement this method.\n * @param mode - Enum with the following options:\n * opSucceeded - User operation succeeded.\n * opReverted - User op reverted. The paymaster still has to pay for gas.\n * postOpReverted - never passed in a call to postOp().\n * @param context - The context value returned by validatePaymasterUserOp\n * @param actualGasCost - Actual gas used so far (without this postOp call).\n * @param actualUserOpFeePerGas - the gas price this UserOp pays. This value is based on the UserOp's maxFeePerGas\n * and maxPriorityFee (and basefee)\n * It is not the same as tx.gasprice, which is what the bundler pays.\n */\n function _postOp(\n PostOpMode mode,\n bytes calldata context,\n uint256 actualGasCost,\n uint256 actualUserOpFeePerGas\n )\n internal\n virtual\n {\n (mode, context, actualGasCost, actualUserOpFeePerGas); // unused params\n // subclass must override this method if validatePaymasterUserOp returns a context\n revert(\"must override\");\n }\n\n /**\n * Validate the call is made from a valid entrypoint\n */\n function _requireFromEntryPoint() internal virtual {\n require(msg.sender == address(entryPoint), \"Sender not EntryPoint\");\n }\n\n /**\n * Check if address is a contract\n */\n function _isContract(address addr) internal view returns (bool) {\n uint256 size;\n assembly (\"memory-safe\") {\n size := extcodesize(addr)\n }\n return size > 0;\n }\n}\n"},"node_modules/account-abstraction/contracts/core/UserOperationLib.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.23;\n\n/* solhint-disable no-inline-assembly */\n\nimport \"../interfaces/PackedUserOperation.sol\";\nimport {calldataKeccak, min} from \"./Helpers.sol\";\n\n/**\n * Utility functions helpful when working with UserOperation structs.\n */\nlibrary UserOperationLib {\n\n uint256 public constant PAYMASTER_VALIDATION_GAS_OFFSET = 20;\n uint256 public constant PAYMASTER_POSTOP_GAS_OFFSET = 36;\n uint256 public constant PAYMASTER_DATA_OFFSET = 52;\n /**\n * Get sender from user operation data.\n * @param userOp - The user operation data.\n */\n function getSender(\n PackedUserOperation calldata userOp\n ) internal pure returns (address) {\n address data;\n //read sender from userOp, which is first userOp member (saves 800 gas...)\n assembly {\n data := calldataload(userOp)\n }\n return address(uint160(data));\n }\n\n /**\n * Relayer/block builder might submit the TX with higher priorityFee,\n * but the user should not pay above what he signed for.\n * @param userOp - The user operation data.\n */\n function gasPrice(\n PackedUserOperation calldata userOp\n ) internal view returns (uint256) {\n unchecked {\n (uint256 maxPriorityFeePerGas, uint256 maxFeePerGas) = unpackUints(userOp.gasFees);\n if (maxFeePerGas == maxPriorityFeePerGas) {\n //legacy mode (for networks that don't support basefee opcode)\n return maxFeePerGas;\n }\n return min(maxFeePerGas, maxPriorityFeePerGas + block.basefee);\n }\n }\n\n /**\n * Pack the user operation data into bytes for hashing.\n * @param userOp - The user operation data.\n */\n function encode(\n PackedUserOperation calldata userOp\n ) internal pure returns (bytes memory ret) {\n address sender = getSender(userOp);\n uint256 nonce = userOp.nonce;\n bytes32 hashInitCode = calldataKeccak(userOp.initCode);\n bytes32 hashCallData = calldataKeccak(userOp.callData);\n bytes32 accountGasLimits = userOp.accountGasLimits;\n uint256 preVerificationGas = userOp.preVerificationGas;\n bytes32 gasFees = userOp.gasFees;\n bytes32 hashPaymasterAndData = calldataKeccak(userOp.paymasterAndData);\n\n return abi.encode(\n sender, nonce,\n hashInitCode, hashCallData,\n accountGasLimits, preVerificationGas, gasFees,\n hashPaymasterAndData\n );\n }\n\n function unpackUints(\n bytes32 packed\n ) internal pure returns (uint256 high128, uint256 low128) {\n return (uint128(bytes16(packed)), uint128(uint256(packed)));\n }\n\n //unpack just the high 128-bits from a packed value\n function unpackHigh128(bytes32 packed) internal pure returns (uint256) {\n return uint256(packed) >> 128;\n }\n\n // unpack just the low 128-bits from a packed value\n function unpackLow128(bytes32 packed) internal pure returns (uint256) {\n return uint128(uint256(packed));\n }\n\n function unpackMaxPriorityFeePerGas(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return unpackHigh128(userOp.gasFees);\n }\n\n function unpackMaxFeePerGas(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return unpackLow128(userOp.gasFees);\n }\n\n function unpackVerificationGasLimit(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return unpackHigh128(userOp.accountGasLimits);\n }\n\n function unpackCallGasLimit(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return unpackLow128(userOp.accountGasLimits);\n }\n\n function unpackPaymasterVerificationGasLimit(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return uint128(bytes16(userOp.paymasterAndData[PAYMASTER_VALIDATION_GAS_OFFSET : PAYMASTER_POSTOP_GAS_OFFSET]));\n }\n\n function unpackPostOpGasLimit(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return uint128(bytes16(userOp.paymasterAndData[PAYMASTER_POSTOP_GAS_OFFSET : PAYMASTER_DATA_OFFSET]));\n }\n\n function unpackPaymasterStaticFields(\n bytes calldata paymasterAndData\n ) internal pure returns (address paymaster, uint256 validationGasLimit, uint256 postOpGasLimit) {\n return (\n address(bytes20(paymasterAndData[: PAYMASTER_VALIDATION_GAS_OFFSET])),\n uint128(bytes16(paymasterAndData[PAYMASTER_VALIDATION_GAS_OFFSET : PAYMASTER_POSTOP_GAS_OFFSET])),\n uint128(bytes16(paymasterAndData[PAYMASTER_POSTOP_GAS_OFFSET : PAYMASTER_DATA_OFFSET]))\n );\n }\n\n /**\n * Hash the user operation data.\n * @param userOp - The user operation data.\n */\n function hash(\n PackedUserOperation calldata userOp\n ) internal pure returns (bytes32) {\n return keccak256(encode(userOp));\n }\n}\n"},"node_modules/account-abstraction/contracts/core/Helpers.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.23;\n\n/* solhint-disable no-inline-assembly */\n\n\n /*\n * For simulation purposes, validateUserOp (and validatePaymasterUserOp)\n * must return this value in case of signature failure, instead of revert.\n */\nuint256 constant SIG_VALIDATION_FAILED = 1;\n\n\n/*\n * For simulation purposes, validateUserOp (and validatePaymasterUserOp)\n * return this value on success.\n */\nuint256 constant SIG_VALIDATION_SUCCESS = 0;\n\n\n/**\n * Returned data from validateUserOp.\n * validateUserOp returns a uint256, which is created by `_packedValidationData` and\n * parsed by `_parseValidationData`.\n * @param aggregator - address(0) - The account validated the signature by itself.\n * address(1) - The account failed to validate the signature.\n * otherwise - This is an address of a signature aggregator that must\n * be used to validate the signature.\n * @param validAfter - This UserOp is valid only after this timestamp.\n * @param validaUntil - This UserOp is valid only up to this timestamp.\n */\nstruct ValidationData {\n address aggregator;\n uint48 validAfter;\n uint48 validUntil;\n}\n\n/**\n * Extract sigFailed, validAfter, validUntil.\n * Also convert zero validUntil to type(uint48).max.\n * @param validationData - The packed validation data.\n */\nfunction _parseValidationData(\n uint256 validationData\n) pure returns (ValidationData memory data) {\n address aggregator = address(uint160(validationData));\n uint48 validUntil = uint48(validationData >> 160);\n if (validUntil == 0) {\n validUntil = type(uint48).max;\n }\n uint48 validAfter = uint48(validationData >> (48 + 160));\n return ValidationData(aggregator, validAfter, validUntil);\n}\n\n/**\n * Helper to pack the return value for validateUserOp.\n * @param data - The ValidationData to pack.\n */\nfunction _packValidationData(\n ValidationData memory data\n) pure returns (uint256) {\n return\n uint160(data.aggregator) |\n (uint256(data.validUntil) << 160) |\n (uint256(data.validAfter) << (160 + 48));\n}\n\n/**\n * Helper to pack the return value for validateUserOp, when not using an aggregator.\n * @param sigFailed - True for signature failure, false for success.\n * @param validUntil - Last timestamp this UserOperation is valid (or zero for infinite).\n * @param validAfter - First timestamp this UserOperation is valid.\n */\nfunction _packValidationData(\n bool sigFailed,\n uint48 validUntil,\n uint48 validAfter\n) pure returns (uint256) {\n return\n (sigFailed ? 1 : 0) |\n (uint256(validUntil) << 160) |\n (uint256(validAfter) << (160 + 48));\n}\n\n/**\n * keccak function over calldata.\n * @dev copy calldata into memory, do keccak and drop allocated memory. Strangely, this is more efficient than letting solidity do it.\n */\n function calldataKeccak(bytes calldata data) pure returns (bytes32 ret) {\n assembly (\"memory-safe\") {\n let mem := mload(0x40)\n let len := data.length\n calldatacopy(mem, data.offset, len)\n ret := keccak256(mem, len)\n }\n }\n\n\n/**\n * The minimum of two numbers.\n * @param a - First number.\n * @param b - Second number.\n */\n function min(uint256 a, uint256 b) pure returns (uint256) {\n return a < b ? a : b;\n }\n"},"node_modules/solady/src/utils/SignatureCheckerLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Signature verification helper that supports both ECDSA signatures from EOAs\n/// and ERC1271 signatures from smart contract wallets like Argent and Gnosis safe.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SignatureCheckerLib.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/SignatureChecker.sol)\n///\n/// @dev Note:\n/// - The signature checking functions use the ecrecover precompile (0x1).\n/// - The `bytes memory signature` variants use the identity precompile (0x4)\n/// to copy memory internally.\n/// - Unlike ECDSA signatures, contract signatures are revocable.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n/// regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n/// See: https://eips.ethereum.org/EIPS/eip-2098\n/// This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT use signatures as unique identifiers:\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n/// EIP-712 also enables readable signing of typed data for better user safety.\n/// This implementation does NOT check if a signature is non-malleable.\nlibrary SignatureCheckerLib {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* SIGNATURE CHECKING OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n /// First, it will try to validate with `ecrecover`, and if the validation fails,\n /// it will try to validate with ERC1271 on `signer`.\n function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature)\n internal\n view\n returns (bool isValid)\n {\n if (signer == address(0)) return isValid;\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n for {} 1 {} {\n switch mload(signature)\n case 64 {\n let vs := mload(add(signature, 0x40))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n mstore(0x60, mload(add(signature, 0x40))) // `s`.\n }\n default { break }\n mstore(0x00, hash)\n mstore(0x40, mload(add(signature, 0x20))) // `r`.\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n if iszero(isValid) {\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n // Copy the `signature` over.\n let n := add(0x20, mload(signature))\n pop(staticcall(gas(), 4, signature, n, add(m, 0x44), n))\n isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n }\n\n /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n /// First, it will try to validate with `ecrecover`, and if the validation fails,\n /// it will try to validate with ERC1271 on `signer`.\n function isValidSignatureNowCalldata(address signer, bytes32 hash, bytes calldata signature)\n internal\n view\n returns (bool isValid)\n {\n if (signer == address(0)) return isValid;\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n for {} 1 {} {\n switch signature.length\n case 64 {\n let vs := calldataload(add(signature.offset, 0x20))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, calldataload(signature.offset)) // `r`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n calldatacopy(0x40, signature.offset, 0x40) // `r`, `s`.\n }\n default { break }\n mstore(0x00, hash)\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n if iszero(isValid) {\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), signature.length)\n // Copy the `signature` over.\n calldatacopy(add(m, 0x64), signature.offset, signature.length)\n isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n }\n\n /// @dev Returns whether the signature (`r`, `vs`) is valid for `signer` and `hash`.\n /// First, it will try to validate with `ecrecover`, and if the validation fails,\n /// it will try to validate with ERC1271 on `signer`.\n function isValidSignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n internal\n view\n returns (bool isValid)\n {\n if (signer == address(0)) return isValid;\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(0x00, hash)\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, r) // `r`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n\n if iszero(isValid) {\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), 65) // Length of the signature.\n mstore(add(m, 0x64), r) // `r`.\n mstore(add(m, 0x84), mload(0x60)) // `s`.\n mstore8(add(m, 0xa4), mload(0x20)) // `v`.\n isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `signer` and `hash`.\n /// First, it will try to validate with `ecrecover`, and if the validation fails,\n /// it will try to validate with ERC1271 on `signer`.\n function isValidSignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n internal\n view\n returns (bool isValid)\n {\n if (signer == address(0)) return isValid;\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(0x00, hash)\n mstore(0x20, and(v, 0xff)) // `v`.\n mstore(0x40, r) // `r`.\n mstore(0x60, s) // `s`.\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n\n if iszero(isValid) {\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), 65) // Length of the signature.\n mstore(add(m, 0x64), r) // `r`.\n mstore(add(m, 0x84), s) // `s`.\n mstore8(add(m, 0xa4), v) // `v`.\n isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC1271 OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Note: These ERC1271 operations do NOT have an ECDSA fallback.\n\n /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes memory signature)\n internal\n view\n returns (bool isValid)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n // Copy the `signature` over.\n let n := add(0x20, mload(signature))\n pop(staticcall(gas(), 4, signature, n, add(m, 0x44), n))\n isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n\n /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n function isValidERC1271SignatureNowCalldata(\n address signer,\n bytes32 hash,\n bytes calldata signature\n ) internal view returns (bool isValid) {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), signature.length)\n // Copy the `signature` over.\n calldatacopy(add(m, 0x64), signature.offset, signature.length)\n isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n\n /// @dev Returns whether the signature (`r`, `vs`) is valid for `hash`\n /// for an ERC1271 `signer` contract.\n function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n internal\n view\n returns (bool isValid)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), 65) // Length of the signature.\n mstore(add(m, 0x64), r) // `r`.\n mstore(add(m, 0x84), shr(1, shl(1, vs))) // `s`.\n mstore8(add(m, 0xa4), add(shr(255, vs), 27)) // `v`.\n isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n\n /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `hash`\n /// for an ERC1271 `signer` contract.\n function isValidERC1271SignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n internal\n view\n returns (bool isValid)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), 65) // Length of the signature.\n mstore(add(m, 0x64), r) // `r`.\n mstore(add(m, 0x84), s) // `s`.\n mstore8(add(m, 0xa4), v) // `v`.\n isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC6492 OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Note: These ERC6492 operations now include an ECDSA fallback at the very end.\n // The calldata variants are excluded for brevity.\n\n /// @dev Returns whether `signature` is valid for `hash`.\n /// If the signature is postfixed with the ERC6492 magic number, it will attempt to\n /// deploy / prepare the `signer` smart account before doing a regular ERC1271 check.\n /// Note: This function is NOT reentrancy safe.\n function isValidERC6492SignatureNowAllowSideEffects(\n address signer,\n bytes32 hash,\n bytes memory signature\n ) internal returns (bool isValid) {\n /// @solidity memory-safe-assembly\n assembly {\n function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n let m_ := mload(0x40)\n let f_ := shl(224, 0x1626ba7e)\n mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m_, 0x04), hash_)\n let d_ := add(m_, 0x24)\n mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n let n_ := add(0x20, mload(signature_))\n pop(staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_))\n _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n _isValid := and(eq(mload(d_), f_), _isValid)\n }\n let noCode := iszero(extcodesize(signer))\n let n := mload(signature)\n for {} 1 {} {\n if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n break\n }\n let o := add(signature, 0x20) // Signature bytes.\n let d := add(o, mload(add(o, 0x20))) // Factory calldata.\n if noCode {\n if iszero(call(gas(), mload(o), 0, add(d, 0x20), mload(d), codesize(), 0x00)) {\n break\n }\n }\n let s := add(o, mload(add(o, 0x40))) // Inner signature.\n isValid := callIsValidSignature(signer, hash, s)\n if iszero(isValid) {\n if call(gas(), mload(o), 0, add(d, 0x20), mload(d), codesize(), 0x00) {\n noCode := iszero(extcodesize(signer))\n if iszero(noCode) { isValid := callIsValidSignature(signer, hash, s) }\n }\n }\n break\n }\n // Do `ecrecover` fallback if `noCode && !isValid`.\n for {} gt(noCode, isValid) {} {\n switch n\n case 64 {\n let vs := mload(add(signature, 0x40))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n mstore(0x60, mload(add(signature, 0x40))) // `s`.\n }\n default { break }\n let m := mload(0x40)\n mstore(0x00, hash)\n mstore(0x40, mload(add(signature, 0x20))) // `r`.\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n }\n }\n\n /// @dev Returns whether `signature` is valid for `hash`.\n /// If the signature is postfixed with the ERC6492 magic number, it will attempt\n /// to use a reverting verifier to deploy / prepare the `signer` smart account\n /// and do a `isValidSignature` check via the reverting verifier.\n /// Note: This function is reentrancy safe.\n /// The reverting verifier must be deployed.\n /// Otherwise, the function will return false if `signer` is not yet deployed / prepared.\n /// See: https://gist.github.com/Vectorized/846a474c855eee9e441506676800a9ad\n function isValidERC6492SignatureNow(address signer, bytes32 hash, bytes memory signature)\n internal\n returns (bool isValid)\n {\n /// @solidity memory-safe-assembly\n assembly {\n function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n let m_ := mload(0x40)\n let f_ := shl(224, 0x1626ba7e)\n mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m_, 0x04), hash_)\n let d_ := add(m_, 0x24)\n mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n let n_ := add(0x20, mload(signature_))\n pop(staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_))\n _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n _isValid := and(eq(mload(d_), f_), _isValid)\n }\n let noCode := iszero(extcodesize(signer))\n let n := mload(signature)\n for {} 1 {} {\n if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n break\n }\n if iszero(noCode) {\n let o := add(signature, 0x20) // Signature bytes.\n isValid := callIsValidSignature(signer, hash, add(o, mload(add(o, 0x40))))\n if isValid { break }\n }\n let m := mload(0x40)\n mstore(m, signer)\n mstore(add(m, 0x20), hash)\n let willBeZeroIfRevertingVerifierExists :=\n call(\n gas(), // Remaining gas.\n 0x00007bd799e4A591FeA53f8A8a3E9f931626Ba7e, // Reverting verifier.\n 0, // Send zero ETH.\n m, // Start of memory.\n add(returndatasize(), 0x40), // Length of calldata in memory.\n staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.\n 0x00 // Length of returndata to write.\n )\n isValid := gt(returndatasize(), willBeZeroIfRevertingVerifierExists)\n break\n }\n // Do `ecrecover` fallback if `noCode && !isValid`.\n for {} gt(noCode, isValid) {} {\n switch n\n case 64 {\n let vs := mload(add(signature, 0x40))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n mstore(0x60, mload(add(signature, 0x40))) // `s`.\n }\n default { break }\n let m := mload(0x40)\n mstore(0x00, hash)\n mstore(0x40, mload(add(signature, 0x20))) // `r`.\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* HASHING OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n /// This produces a hash corresponding to the one signed with the\n /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n /// JSON-RPC method as part of EIP-191.\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x20, hash) // Store into scratch space for keccak256.\n mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n }\n }\n\n /// @dev Returns an Ethereum Signed Message, created from `s`.\n /// This produces a hash corresponding to the one signed with the\n /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n /// JSON-RPC method as part of EIP-191.\n /// Note: Supports lengths of `s` up to 999999 bytes.\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n let sLength := mload(s)\n let o := 0x20\n mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n mstore(0x00, 0x00)\n // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n for { let temp := sLength } 1 {} {\n o := sub(o, 1)\n mstore8(o, add(48, mod(temp, 10)))\n temp := div(temp, 10)\n if iszero(temp) { break }\n }\n let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n mstore(s, sLength) // Restore the length.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EMPTY CALLDATA HELPERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns an empty calldata bytes.\n function emptySignature() internal pure returns (bytes calldata signature) {\n /// @solidity memory-safe-assembly\n assembly {\n signature.length := 0\n }\n }\n}\n"},"node_modules/solady/src/utils/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Gas optimized ECDSA wrapper.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol)\n///\n/// @dev Note:\n/// - The recovery functions use the ecrecover precompile (0x1).\n/// - As of Solady version 0.0.68, the `recover` variants will revert upon recovery failure.\n/// This is for more safety by default.\n/// Use the `tryRecover` variants if you need to get the zero address back\n/// upon recovery failure instead.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n/// regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n/// See: https://eips.ethereum.org/EIPS/eip-2098\n/// This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT directly use signatures as unique identifiers:\n/// - The recovery operations do NOT check if a signature is non-malleable.\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n/// EIP-712 also enables readable signing of typed data for better user safety.\n/// - If you need a unique hash from a signature, please use the `canonicalHash` functions.\nlibrary ECDSA {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The order of the secp256k1 elliptic curve.\n uint256 internal constant N = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141;\n\n /// @dev `N/2 + 1`. Used for checking the malleability of the signature.\n uint256 private constant _HALF_N_PLUS_1 =\n 0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The signature is invalid.\n error InvalidSignature();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* RECOVERY OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n function recover(bytes32 hash, bytes memory signature) internal view returns (address result) {\n /// @solidity memory-safe-assembly\n assembly {\n for { let m := mload(0x40) } 1 {\n mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n revert(0x1c, 0x04)\n } {\n switch mload(signature)\n case 64 {\n let vs := mload(add(signature, 0x40))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n mstore(0x60, mload(add(signature, 0x40))) // `s`.\n }\n default { continue }\n mstore(0x00, hash)\n mstore(0x40, mload(add(signature, 0x20))) // `r`.\n result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n if returndatasize() { break }\n }\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n function recoverCalldata(bytes32 hash, bytes calldata signature)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n for { let m := mload(0x40) } 1 {\n mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n revert(0x1c, 0x04)\n } {\n switch signature.length\n case 64 {\n let vs := calldataload(add(signature.offset, 0x20))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, calldataload(signature.offset)) // `r`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n }\n default { continue }\n mstore(0x00, hash)\n result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n if returndatasize() { break }\n }\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`,\n /// and the EIP-2098 short form signature defined by `r` and `vs`.\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x00, hash)\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, r)\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n if iszero(returndatasize()) {\n mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`,\n /// and the signature defined by `v`, `r`, `s`.\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x00, hash)\n mstore(0x20, and(v, 0xff))\n mstore(0x40, r)\n mstore(0x60, s)\n result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n if iszero(returndatasize()) {\n mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TRY-RECOVER OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // WARNING!\n // These functions will NOT revert upon recovery failure.\n // Instead, they will return the zero address upon recovery failure.\n // It is critical that the returned address is NEVER compared against\n // a zero address (e.g. an uninitialized address variable).\n\n /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n function tryRecover(bytes32 hash, bytes memory signature)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n for { let m := mload(0x40) } 1 {} {\n switch mload(signature)\n case 64 {\n let vs := mload(add(signature, 0x40))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n mstore(0x60, mload(add(signature, 0x40))) // `s`.\n }\n default { break }\n mstore(0x00, hash)\n mstore(0x40, mload(add(signature, 0x20))) // `r`.\n pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n result := mload(xor(0x60, returndatasize()))\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n function tryRecoverCalldata(bytes32 hash, bytes calldata signature)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n for { let m := mload(0x40) } 1 {} {\n switch signature.length\n case 64 {\n let vs := calldataload(add(signature.offset, 0x20))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, calldataload(signature.offset)) // `r`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n }\n default { break }\n mstore(0x00, hash)\n pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n result := mload(xor(0x60, returndatasize()))\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`,\n /// and the EIP-2098 short form signature defined by `r` and `vs`.\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x00, hash)\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, r)\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n result := mload(xor(0x60, returndatasize()))\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`,\n /// and the signature defined by `v`, `r`, `s`.\n function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x00, hash)\n mstore(0x20, and(v, 0xff))\n mstore(0x40, r)\n mstore(0x60, s)\n pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n result := mload(xor(0x60, returndatasize()))\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* HASHING OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n /// This produces a hash corresponding to the one signed with the\n /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n /// JSON-RPC method as part of EIP-191.\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x20, hash) // Store into scratch space for keccak256.\n mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n }\n }\n\n /// @dev Returns an Ethereum Signed Message, created from `s`.\n /// This produces a hash corresponding to the one signed with the\n /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n /// JSON-RPC method as part of EIP-191.\n /// Note: Supports lengths of `s` up to 999999 bytes.\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n let sLength := mload(s)\n let o := 0x20\n mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n mstore(0x00, 0x00)\n // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n for { let temp := sLength } 1 {} {\n o := sub(o, 1)\n mstore8(o, add(48, mod(temp, 10)))\n temp := div(temp, 10)\n if iszero(temp) { break }\n }\n let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n mstore(s, sLength) // Restore the length.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CANONICAL HASH FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // The following functions returns the hash of the signature in it's canonicalized format,\n // which is the 65-byte `abi.encodePacked(r, s, uint8(v))`, where `v` is either 27 or 28.\n // If `s` is greater than `N / 2` then it will be converted to `N - s`\n // and the `v` value will be flipped.\n // If the signature has an invalid length, or if `v` is invalid,\n // a uniquely corrupt hash will be returned.\n // These functions are useful for \"poor-mans-VRF\".\n\n /// @dev Returns the canonical hash of `signature`.\n function canonicalHash(bytes memory signature) internal pure returns (bytes32 result) {\n // @solidity memory-safe-assembly\n assembly {\n let l := mload(signature)\n for {} 1 {} {\n mstore(0x00, mload(add(signature, 0x20))) // `r`.\n let s := mload(add(signature, 0x40))\n let v := mload(add(signature, 0x41))\n if eq(l, 64) {\n v := add(shr(255, s), 27)\n s := shr(1, shl(1, s))\n }\n if iszero(lt(s, _HALF_N_PLUS_1)) {\n v := xor(v, 7)\n s := sub(N, s)\n }\n mstore(0x21, v)\n mstore(0x20, s)\n result := keccak256(0x00, 0x41)\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n break\n }\n\n // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n if iszero(lt(sub(l, 64), 2)) {\n // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n result := xor(keccak256(add(signature, 0x20), l), 0xd62f1ab2)\n }\n }\n }\n\n /// @dev Returns the canonical hash of `signature`.\n function canonicalHashCalldata(bytes calldata signature)\n internal\n pure\n returns (bytes32 result)\n {\n // @solidity memory-safe-assembly\n assembly {\n for {} 1 {} {\n mstore(0x00, calldataload(signature.offset)) // `r`.\n let s := calldataload(add(signature.offset, 0x20))\n let v := calldataload(add(signature.offset, 0x21))\n if eq(signature.length, 64) {\n v := add(shr(255, s), 27)\n s := shr(1, shl(1, s))\n }\n if iszero(lt(s, _HALF_N_PLUS_1)) {\n v := xor(v, 7)\n s := sub(N, s)\n }\n mstore(0x21, v)\n mstore(0x20, s)\n result := keccak256(0x00, 0x41)\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n break\n }\n // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n if iszero(lt(sub(signature.length, 64), 2)) {\n calldatacopy(mload(0x40), signature.offset, signature.length)\n // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n result := xor(keccak256(mload(0x40), signature.length), 0xd62f1ab2)\n }\n }\n }\n\n /// @dev Returns the canonical hash of `signature`.\n function canonicalHash(bytes32 r, bytes32 vs) internal pure returns (bytes32 result) {\n // @solidity memory-safe-assembly\n assembly {\n mstore(0x00, r) // `r`.\n let v := add(shr(255, vs), 27)\n let s := shr(1, shl(1, vs))\n mstore(0x21, v)\n mstore(0x20, s)\n result := keccak256(0x00, 0x41)\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Returns the canonical hash of `signature`.\n function canonicalHash(uint8 v, bytes32 r, bytes32 s) internal pure returns (bytes32 result) {\n // @solidity memory-safe-assembly\n assembly {\n mstore(0x00, r) // `r`.\n if iszero(lt(s, _HALF_N_PLUS_1)) {\n v := xor(v, 7)\n s := sub(N, s)\n }\n mstore(0x21, v)\n mstore(0x20, s)\n result := keccak256(0x00, 0x41)\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EMPTY CALLDATA HELPERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns an empty calldata bytes.\n function emptySignature() internal pure returns (bytes calldata signature) {\n /// @solidity memory-safe-assembly\n assembly {\n signature.length := 0\n }\n }\n}\n"},"contracts/common/BiconomySponsorshipPaymasterErrors.sol":{"content":"// SPDX-License-Identifier: LGPL-3.0-only\npragma solidity ^0.8.27;\n\ncontract BiconomySponsorshipPaymasterErrors {\n /**\n * @notice Throws when the paymaster address provided is address(0)\n */\n error PaymasterIdCanNotBeZero();\n\n /**\n * @notice Throws when the 0 has been provided as deposit\n */\n error DepositCanNotBeZero();\n\n /**\n * @notice Throws when the verifiying signer address provided is address(0)\n */\n error VerifyingSignerCanNotBeZero();\n\n /**\n * @notice Throws when the fee collector address provided is address(0)\n */\n error FeeCollectorCanNotBeZero();\n\n /**\n * @notice Throws when the fee collector address provided is a deployed contract\n */\n error FeeCollectorCanNotBeContract();\n\n /**\n * @notice Throws when the fee collector address provided is a deployed contract\n */\n error VerifyingSignerCanNotBeContract();\n\n /**\n * @notice Throws when ETH withdrawal fails\n */\n error WithdrawalFailed();\n\n /**\n * @notice Throws when insufficient funds to withdraw\n */\n error InsufficientFunds();\n\n /**\n * @notice Throws when invalid signature length in paymasterAndData\n */\n error InvalidSignatureLength();\n\n /**\n * @notice Throws when invalid signature length in paymasterAndData\n */\n error InvalidPriceMarkup();\n\n /**\n * @notice Throws when insufficient funds for paymasterid\n */\n error InsufficientFundsForPaymasterId();\n\n /**\n * @notice Throws when calling deposit()\n */\n error UseDepositForInstead();\n\n /**\n * @notice Throws when trying to withdraw to address(0)\n */\n error CanNotWithdrawToZeroAddress();\n\n /**\n * @notice Throws when trying to withdraw zero amount\n */\n error CanNotWithdrawZeroAmount();\n\n /**\n * @notice Throws when no request has been submitted\n */\n error NoRequestSubmitted();\n\n /**\n * @notice Throws when trying unaccountedGas is too high\n */\n error UnaccountedGasTooHigh();\n\n /**\n * @notice Throws when postOp gas limit is too low\n */\n error PostOpGasLimitTooLow();\n\n /**\n * @notice Thrown when deposit is too low to reach minDeposit\n */\n error LowDeposit();\n\n /**\n * @notice Thrown when trying to withdraw more than the balance\n */\n error InsufficientFundsInGasTank();\n\n /**\n * @notice Thrown when trying to execute withdrawal request before delay has passed\n */\n error RequestNotClearedYet(uint256 clearanceTime);\n\n /**\n * @notice Thrown when trying to directly withdraw instead of submitting a request\n */\n error SubmitRequestInstead();\n\n /**\n * @notice Thrown when the array lengths are not equal\n */\n error InvalidArrayLengths();\n}\n"},"node_modules/@openzeppelin/contracts/utils/ReentrancyGuardTransient.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuardTransient.sol)\n\npragma solidity ^0.8.24;\n\nimport {TransientSlot} from \"./TransientSlot.sol\";\n\n/**\n * @dev Variant of {ReentrancyGuard} that uses transient storage.\n *\n * NOTE: This variant only works on networks where EIP-1153 is available.\n *\n * _Available since v5.1._\n */\nabstract contract ReentrancyGuardTransient {\n using TransientSlot for *;\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ReentrancyGuard\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant REENTRANCY_GUARD_STORAGE =\n 0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\n\n /**\n * @dev Unauthorized reentrant call.\n */\n error ReentrancyGuardReentrantCall();\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and making it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n _nonReentrantBefore();\n _;\n _nonReentrantAfter();\n }\n\n function _nonReentrantBefore() private {\n // On the first call to nonReentrant, _status will be NOT_ENTERED\n if (_reentrancyGuardEntered()) {\n revert ReentrancyGuardReentrantCall();\n }\n\n // Any calls to nonReentrant after this point will fail\n REENTRANCY_GUARD_STORAGE.asBoolean().tstore(true);\n }\n\n function _nonReentrantAfter() private {\n REENTRANCY_GUARD_STORAGE.asBoolean().tstore(false);\n }\n\n /**\n * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n * `nonReentrant` function in the call stack.\n */\n function _reentrancyGuardEntered() internal view returns (bool) {\n return REENTRANCY_GUARD_STORAGE.asBoolean().tload();\n }\n}\n"},"node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},"node_modules/solady/src/utils/SafeTransferLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Permit2 operations from (https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\nlibrary SafeTransferLib {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ETH transfer has failed.\n error ETHTransferFailed();\n\n /// @dev The ERC20 `transferFrom` has failed.\n error TransferFromFailed();\n\n /// @dev The ERC20 `transfer` has failed.\n error TransferFailed();\n\n /// @dev The ERC20 `approve` has failed.\n error ApproveFailed();\n\n /// @dev The Permit2 operation has failed.\n error Permit2Failed();\n\n /// @dev The Permit2 amount must be less than `2**160 - 1`.\n error Permit2AmountOverflow();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n /// storage reads and writes, but low enough to prevent griefing.\n uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n /// @dev The unique EIP-712 domain domain separator for the DAI token contract.\n bytes32 internal constant DAI_DOMAIN_SEPARATOR =\n 0xdbb8cf42e1ecb028be3f3dbc922e1d878b963f411dc388ced501601c60f7c6f7;\n\n /// @dev The address for the WETH9 contract on Ethereum mainnet.\n address internal constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;\n\n /// @dev The canonical Permit2 address.\n /// [Github](https://github.com/Uniswap/permit2)\n /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)\n address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ETH OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n //\n // The regular variants:\n // - Forwards all remaining gas to the target.\n // - Reverts if the target reverts.\n // - Reverts if the current contract has insufficient balance.\n //\n // The force variants:\n // - Forwards with an optional gas stipend\n // (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n // - If the target reverts, or if the gas stipend is exhausted,\n // creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n // Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n // - Reverts if the current contract has insufficient balance.\n //\n // The try variants:\n // - Forwards with a mandatory gas stipend.\n // - Instead of reverting, returns whether the transfer succeeded.\n\n /// @dev Sends `amount` (in wei) ETH to `to`.\n function safeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`.\n function safeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // Transfer all the ETH and check if it succeeded or not.\n if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // forgefmt: disable-next-item\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function trySafeTransferAllETH(address to, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC20 OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have at least `amount` approved for\n /// the current contract to manage.\n function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, amount) // Store the `amount` argument.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n ///\n /// The `from` account must have at least `amount` approved for the current contract to manage.\n function trySafeTransferFrom(address token, address from, address to, uint256 amount)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, amount) // Store the `amount` argument.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n success := lt(or(iszero(extcodesize(token)), returndatasize()), success)\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have their entire balance approved for the current contract to manage.\n function safeTransferAllFrom(address token, address from, address to)\n internal\n returns (uint256 amount)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n // Perform the transfer, reverting upon failure.\n let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransfer(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n mstore(0x20, address()) // Store the address of the current contract.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x14, to) // Store the `to` argument.\n amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// Reverts upon failure.\n function safeApprove(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n /// then retries the approval again (some tokens, e.g. USDT, requires this).\n /// Reverts upon failure.\n function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n // Perform the approval, retrying upon failure.\n let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x34, 0) // Store 0 for the `amount`.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n mstore(0x34, amount) // Store back the original `amount`.\n // Retry the approval, reverting upon failure.\n success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n // Check the `extcodesize` again just in case the token selfdestructs lol.\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Returns the amount of ERC20 `token` owned by `account`.\n /// Returns zero if the `token` does not exist.\n function balanceOf(address token, address account) internal view returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, account) // Store the `account` argument.\n mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n amount :=\n mul( // The arguments of `mul` are evaluated from right to left.\n mload(0x20),\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n )\n )\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n /// If the initial attempt fails, try to use Permit2 to transfer the token.\n /// Reverts upon failure.\n ///\n /// The `from` account must have at least `amount` approved for the current contract to manage.\n function safeTransferFrom2(address token, address from, address to, uint256 amount) internal {\n if (!trySafeTransferFrom(token, from, to, amount)) {\n permit2TransferFrom(token, from, to, amount);\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to` via Permit2.\n /// Reverts upon failure.\n function permit2TransferFrom(address token, address from, address to, uint256 amount)\n internal\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(add(m, 0x74), shr(96, shl(96, token)))\n mstore(add(m, 0x54), amount)\n mstore(add(m, 0x34), to)\n mstore(add(m, 0x20), shl(96, from))\n // `transferFrom(address,address,uint160,address)`.\n mstore(m, 0x36c78516000000000000000000000000)\n let p := PERMIT2\n let exists := eq(chainid(), 1)\n if iszero(exists) { exists := iszero(iszero(extcodesize(p))) }\n if iszero(\n and(\n call(gas(), p, 0, add(m, 0x10), 0x84, codesize(), 0x00),\n lt(iszero(extcodesize(token)), exists) // Token has code and Permit2 exists.\n )\n ) {\n mstore(0x00, 0x7939f4248757f0fd) // `TransferFromFailed()` or `Permit2AmountOverflow()`.\n revert(add(0x18, shl(2, iszero(iszero(shr(160, amount))))), 0x04)\n }\n }\n }\n\n /// @dev Permit a user to spend a given amount of\n /// another user's tokens via native EIP-2612 permit if possible, falling\n /// back to Permit2 if native permit fails or is not implemented on the token.\n function permit2(\n address token,\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n bool success;\n /// @solidity memory-safe-assembly\n assembly {\n for {} shl(96, xor(token, WETH9)) {} {\n mstore(0x00, 0x3644e515) // `DOMAIN_SEPARATOR()`.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n lt(iszero(mload(0x00)), eq(returndatasize(), 0x20)), // Returns 1 non-zero word.\n // Gas stipend to limit gas burn for tokens that don't refund gas when\n // an non-existing function is called. 5K should be enough for a SLOAD.\n staticcall(5000, token, 0x1c, 0x04, 0x00, 0x20)\n )\n ) { break }\n // After here, we can be sure that token is a contract.\n let m := mload(0x40)\n mstore(add(m, 0x34), spender)\n mstore(add(m, 0x20), shl(96, owner))\n mstore(add(m, 0x74), deadline)\n if eq(mload(0x00), DAI_DOMAIN_SEPARATOR) {\n mstore(0x14, owner)\n mstore(0x00, 0x7ecebe00000000000000000000000000) // `nonces(address)`.\n mstore(add(m, 0x94), staticcall(gas(), token, 0x10, 0x24, add(m, 0x54), 0x20))\n mstore(m, 0x8fcbaf0c000000000000000000000000) // `IDAIPermit.permit`.\n // `nonces` is already at `add(m, 0x54)`.\n // `1` is already stored at `add(m, 0x94)`.\n mstore(add(m, 0xb4), and(0xff, v))\n mstore(add(m, 0xd4), r)\n mstore(add(m, 0xf4), s)\n success := call(gas(), token, 0, add(m, 0x10), 0x104, codesize(), 0x00)\n break\n }\n mstore(m, 0xd505accf000000000000000000000000) // `IERC20Permit.permit`.\n mstore(add(m, 0x54), amount)\n mstore(add(m, 0x94), and(0xff, v))\n mstore(add(m, 0xb4), r)\n mstore(add(m, 0xd4), s)\n success := call(gas(), token, 0, add(m, 0x10), 0xe4, codesize(), 0x00)\n break\n }\n }\n if (!success) simplePermit2(token, owner, spender, amount, deadline, v, r, s);\n }\n\n /// @dev Simple permit on the Permit2 contract.\n function simplePermit2(\n address token,\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(m, 0x927da105) // `allowance(address,address,address)`.\n {\n let addressMask := shr(96, not(0))\n mstore(add(m, 0x20), and(addressMask, owner))\n mstore(add(m, 0x40), and(addressMask, token))\n mstore(add(m, 0x60), and(addressMask, spender))\n mstore(add(m, 0xc0), and(addressMask, spender))\n }\n let p := mul(PERMIT2, iszero(shr(160, amount)))\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x5f), // Returns 3 words: `amount`, `expiration`, `nonce`.\n staticcall(gas(), p, add(m, 0x1c), 0x64, add(m, 0x60), 0x60)\n )\n ) {\n mstore(0x00, 0x6b836e6b8757f0fd) // `Permit2Failed()` or `Permit2AmountOverflow()`.\n revert(add(0x18, shl(2, iszero(p))), 0x04)\n }\n mstore(m, 0x2b67b570) // `Permit2.permit` (PermitSingle variant).\n // `owner` is already `add(m, 0x20)`.\n // `token` is already at `add(m, 0x40)`.\n mstore(add(m, 0x60), amount)\n mstore(add(m, 0x80), 0xffffffffffff) // `expiration = type(uint48).max`.\n // `nonce` is already at `add(m, 0xa0)`.\n // `spender` is already at `add(m, 0xc0)`.\n mstore(add(m, 0xe0), deadline)\n mstore(add(m, 0x100), 0x100) // `signature` offset.\n mstore(add(m, 0x120), 0x41) // `signature` length.\n mstore(add(m, 0x140), r)\n mstore(add(m, 0x160), s)\n mstore(add(m, 0x180), shl(248, v))\n if iszero( // Revert if token does not have code, or if the call fails.\n mul(extcodesize(token), call(gas(), p, 0, add(m, 0x1c), 0x184, codesize(), 0x00))) {\n mstore(0x00, 0x6b836e6b) // `Permit2Failed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n}\n"},"contracts/interfaces/IBiconomySponsorshipPaymaster.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.27;\n\nimport \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport { PackedUserOperation } from \"account-abstraction/core/UserOperationLib.sol\";\n\ninterface IBiconomySponsorshipPaymaster {\n struct WithdrawalRequest {\n uint256 amount;\n address to;\n uint256 requestSubmittedTimestamp;\n }\n\n event UnaccountedGasChanged(uint256 indexed oldValue, uint256 indexed newValue);\n event FixedPriceMarkupChanged(uint256 indexed oldValue, uint256 indexed newValue);\n event VerifyingSignerChanged(address indexed oldSigner, address indexed newSigner, address indexed actor);\n event FeeCollectorChanged(address indexed oldFeeCollector, address indexed newFeeCollector, address indexed actor);\n event GasDeposited(address indexed _paymasterId, uint256 indexed _value);\n event GasWithdrawn(address indexed _paymasterId, address indexed _to, uint256 indexed _value);\n event GasBalanceDeducted(address indexed _paymasterId, uint256 indexed _charge, uint256 indexed _premium);\n event Received(address indexed sender, uint256 value);\n event TokensWithdrawn(address indexed token, address indexed to, uint256 indexed amount, address actor);\n event WithdrawalRequestSubmitted(address withdrawAddress, uint256 amount);\n event WithdrawalRequestCancelledFor(address paymasterId);\n event TrustedPaymasterIdSet(address indexed paymasterId, bool isTrusted);\n event EthWithdrawn(address indexed recipient, uint256 indexed amount);\n event MinDepositChanged(uint256 indexed oldValue, uint256 indexed newValue);\n\n function depositFor(address paymasterId) external payable;\n\n function setSigner(address newVerifyingSigner) external payable;\n\n function setFeeCollector(address newFeeCollector) external payable;\n\n function setUnaccountedGas(uint256 value) external payable;\n\n function withdrawERC20(IERC20 token, address target, uint256 amount) external;\n\n function withdrawEth(address payable recipient, uint256 amount) external payable;\n\n function getBalance(address paymasterId) external view returns (uint256 balance);\n\n function getHash(\n PackedUserOperation calldata userOp,\n address paymasterId,\n uint48 validUntil,\n uint48 validAfter,\n uint32 priceMarkup\n )\n external\n view\n returns (bytes32);\n\n function parsePaymasterAndData(\n bytes calldata paymasterAndData\n )\n external\n pure\n returns (\n address paymasterId,\n uint48 validUntil,\n uint48 validAfter,\n uint32 priceMarkup,\n uint128 paymasterValidationGasLimit,\n uint128 paymasterPostOpGasLimit,\n bytes calldata signature\n );\n}\n"},"lib/forge-std/src/console.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity >=0.4.22 <0.9.0;\n\nlibrary console {\n address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);\n\n function _castLogPayloadViewToPure(\n function(bytes memory) internal view fnIn\n ) internal pure returns (function(bytes memory) internal pure fnOut) {\n assembly {\n fnOut := fnIn\n }\n }\n\n function _sendLogPayload(bytes memory payload) internal pure {\n _castLogPayloadViewToPure(_sendLogPayloadView)(payload);\n }\n\n function _sendLogPayloadView(bytes memory payload) private view {\n uint256 payloadLength = payload.length;\n address consoleAddress = CONSOLE_ADDRESS;\n /// @solidity memory-safe-assembly\n assembly {\n let payloadStart := add(payload, 32)\n let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)\n }\n }\n\n function log() internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log()\"));\n }\n\n function logInt(int p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(int)\", p0));\n }\n\n function logUint(uint p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint)\", p0));\n }\n\n function logString(string memory p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string)\", p0));\n }\n\n function logBool(bool p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool)\", p0));\n }\n\n function logAddress(address p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address)\", p0));\n }\n\n function logBytes(bytes memory p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes)\", p0));\n }\n\n function logBytes1(bytes1 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes1)\", p0));\n }\n\n function logBytes2(bytes2 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes2)\", p0));\n }\n\n function logBytes3(bytes3 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes3)\", p0));\n }\n\n function logBytes4(bytes4 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes4)\", p0));\n }\n\n function logBytes5(bytes5 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes5)\", p0));\n }\n\n function logBytes6(bytes6 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes6)\", p0));\n }\n\n function logBytes7(bytes7 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes7)\", p0));\n }\n\n function logBytes8(bytes8 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes8)\", p0));\n }\n\n function logBytes9(bytes9 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes9)\", p0));\n }\n\n function logBytes10(bytes10 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes10)\", p0));\n }\n\n function logBytes11(bytes11 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes11)\", p0));\n }\n\n function logBytes12(bytes12 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes12)\", p0));\n }\n\n function logBytes13(bytes13 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes13)\", p0));\n }\n\n function logBytes14(bytes14 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes14)\", p0));\n }\n\n function logBytes15(bytes15 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes15)\", p0));\n }\n\n function logBytes16(bytes16 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes16)\", p0));\n }\n\n function logBytes17(bytes17 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes17)\", p0));\n }\n\n function logBytes18(bytes18 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes18)\", p0));\n }\n\n function logBytes19(bytes19 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes19)\", p0));\n }\n\n function logBytes20(bytes20 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes20)\", p0));\n }\n\n function logBytes21(bytes21 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes21)\", p0));\n }\n\n function logBytes22(bytes22 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes22)\", p0));\n }\n\n function logBytes23(bytes23 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes23)\", p0));\n }\n\n function logBytes24(bytes24 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes24)\", p0));\n }\n\n function logBytes25(bytes25 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes25)\", p0));\n }\n\n function logBytes26(bytes26 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes26)\", p0));\n }\n\n function logBytes27(bytes27 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes27)\", p0));\n }\n\n function logBytes28(bytes28 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes28)\", p0));\n }\n\n function logBytes29(bytes29 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes29)\", p0));\n }\n\n function logBytes30(bytes30 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes30)\", p0));\n }\n\n function logBytes31(bytes31 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes31)\", p0));\n }\n\n function logBytes32(bytes32 p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bytes32)\", p0));\n }\n\n function log(uint p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint)\", p0));\n }\n\n function log(int p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(int)\", p0));\n }\n\n function log(string memory p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string)\", p0));\n }\n\n function log(bool p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool)\", p0));\n }\n\n function log(address p0) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address)\", p0));\n }\n\n function log(uint p0, uint p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint)\", p0, p1));\n }\n\n function log(uint p0, string memory p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string)\", p0, p1));\n }\n\n function log(uint p0, bool p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool)\", p0, p1));\n }\n\n function log(uint p0, address p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address)\", p0, p1));\n }\n\n function log(string memory p0, uint p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint)\", p0, p1));\n }\n\n function log(string memory p0, int p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,int)\", p0, p1));\n }\n\n function log(string memory p0, string memory p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string)\", p0, p1));\n }\n\n function log(string memory p0, bool p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool)\", p0, p1));\n }\n\n function log(string memory p0, address p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address)\", p0, p1));\n }\n\n function log(bool p0, uint p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint)\", p0, p1));\n }\n\n function log(bool p0, string memory p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string)\", p0, p1));\n }\n\n function log(bool p0, bool p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool)\", p0, p1));\n }\n\n function log(bool p0, address p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address)\", p0, p1));\n }\n\n function log(address p0, uint p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint)\", p0, p1));\n }\n\n function log(address p0, string memory p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string)\", p0, p1));\n }\n\n function log(address p0, bool p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool)\", p0, p1));\n }\n\n function log(address p0, address p1) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address)\", p0, p1));\n }\n\n function log(uint p0, uint p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,uint)\", p0, p1, p2));\n }\n\n function log(uint p0, uint p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,string)\", p0, p1, p2));\n }\n\n function log(uint p0, uint p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,bool)\", p0, p1, p2));\n }\n\n function log(uint p0, uint p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,address)\", p0, p1, p2));\n }\n\n function log(uint p0, string memory p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,uint)\", p0, p1, p2));\n }\n\n function log(uint p0, string memory p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,string)\", p0, p1, p2));\n }\n\n function log(uint p0, string memory p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,bool)\", p0, p1, p2));\n }\n\n function log(uint p0, string memory p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,address)\", p0, p1, p2));\n }\n\n function log(uint p0, bool p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,uint)\", p0, p1, p2));\n }\n\n function log(uint p0, bool p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,string)\", p0, p1, p2));\n }\n\n function log(uint p0, bool p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,bool)\", p0, p1, p2));\n }\n\n function log(uint p0, bool p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,address)\", p0, p1, p2));\n }\n\n function log(uint p0, address p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,uint)\", p0, p1, p2));\n }\n\n function log(uint p0, address p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,string)\", p0, p1, p2));\n }\n\n function log(uint p0, address p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,bool)\", p0, p1, p2));\n }\n\n function log(uint p0, address p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,address)\", p0, p1, p2));\n }\n\n function log(string memory p0, uint p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,uint)\", p0, p1, p2));\n }\n\n function log(string memory p0, uint p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,string)\", p0, p1, p2));\n }\n\n function log(string memory p0, uint p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,bool)\", p0, p1, p2));\n }\n\n function log(string memory p0, uint p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,address)\", p0, p1, p2));\n }\n\n function log(string memory p0, string memory p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,uint)\", p0, p1, p2));\n }\n\n function log(string memory p0, string memory p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,string)\", p0, p1, p2));\n }\n\n function log(string memory p0, string memory p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,bool)\", p0, p1, p2));\n }\n\n function log(string memory p0, string memory p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,address)\", p0, p1, p2));\n }\n\n function log(string memory p0, bool p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,uint)\", p0, p1, p2));\n }\n\n function log(string memory p0, bool p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,string)\", p0, p1, p2));\n }\n\n function log(string memory p0, bool p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,bool)\", p0, p1, p2));\n }\n\n function log(string memory p0, bool p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,address)\", p0, p1, p2));\n }\n\n function log(string memory p0, address p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,uint)\", p0, p1, p2));\n }\n\n function log(string memory p0, address p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,string)\", p0, p1, p2));\n }\n\n function log(string memory p0, address p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,bool)\", p0, p1, p2));\n }\n\n function log(string memory p0, address p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,address)\", p0, p1, p2));\n }\n\n function log(bool p0, uint p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,uint)\", p0, p1, p2));\n }\n\n function log(bool p0, uint p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,string)\", p0, p1, p2));\n }\n\n function log(bool p0, uint p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,bool)\", p0, p1, p2));\n }\n\n function log(bool p0, uint p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,address)\", p0, p1, p2));\n }\n\n function log(bool p0, string memory p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,uint)\", p0, p1, p2));\n }\n\n function log(bool p0, string memory p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,string)\", p0, p1, p2));\n }\n\n function log(bool p0, string memory p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,bool)\", p0, p1, p2));\n }\n\n function log(bool p0, string memory p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,address)\", p0, p1, p2));\n }\n\n function log(bool p0, bool p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,uint)\", p0, p1, p2));\n }\n\n function log(bool p0, bool p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,string)\", p0, p1, p2));\n }\n\n function log(bool p0, bool p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,bool)\", p0, p1, p2));\n }\n\n function log(bool p0, bool p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,address)\", p0, p1, p2));\n }\n\n function log(bool p0, address p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,uint)\", p0, p1, p2));\n }\n\n function log(bool p0, address p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,string)\", p0, p1, p2));\n }\n\n function log(bool p0, address p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,bool)\", p0, p1, p2));\n }\n\n function log(bool p0, address p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,address)\", p0, p1, p2));\n }\n\n function log(address p0, uint p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,uint)\", p0, p1, p2));\n }\n\n function log(address p0, uint p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,string)\", p0, p1, p2));\n }\n\n function log(address p0, uint p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,bool)\", p0, p1, p2));\n }\n\n function log(address p0, uint p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,address)\", p0, p1, p2));\n }\n\n function log(address p0, string memory p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,uint)\", p0, p1, p2));\n }\n\n function log(address p0, string memory p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,string)\", p0, p1, p2));\n }\n\n function log(address p0, string memory p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,bool)\", p0, p1, p2));\n }\n\n function log(address p0, string memory p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,address)\", p0, p1, p2));\n }\n\n function log(address p0, bool p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,uint)\", p0, p1, p2));\n }\n\n function log(address p0, bool p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,string)\", p0, p1, p2));\n }\n\n function log(address p0, bool p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,bool)\", p0, p1, p2));\n }\n\n function log(address p0, bool p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,address)\", p0, p1, p2));\n }\n\n function log(address p0, address p1, uint p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,uint)\", p0, p1, p2));\n }\n\n function log(address p0, address p1, string memory p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,string)\", p0, p1, p2));\n }\n\n function log(address p0, address p1, bool p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,bool)\", p0, p1, p2));\n }\n\n function log(address p0, address p1, address p2) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,address)\", p0, p1, p2));\n }\n\n function log(uint p0, uint p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,string,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,string,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,address,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, uint p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,uint,address,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,string,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,string,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,address,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, string memory p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,string,address,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,string,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,string,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,address,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, bool p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,bool,address,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,string,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,string,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,address,string)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(uint p0, address p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(uint,address,address,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,string,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,string,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,address,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, uint p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,uint,address,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,string,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,string,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,address,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, string memory p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,string,address,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,string,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,string,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,address,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, bool p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,bool,address,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,string,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,string,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,address,string)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(string memory p0, address p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(string,address,address,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,string,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,string,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,address,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, uint p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,uint,address,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,string,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,string,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,address,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, string memory p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,string,address,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,string,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,string,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,address,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, bool p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,bool,address,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,string,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,string,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,address,string)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(bool p0, address p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(bool,address,address,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,string,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,string,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,address,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, uint p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,uint,address,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,string,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,string,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,address,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, string memory p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,string,address,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,string,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,string,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,address,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, bool p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,bool,address,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, uint p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,uint,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, uint p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,uint,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, uint p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,uint,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, uint p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,uint,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, string memory p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,string,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, string memory p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,string,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, string memory p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,string,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, string memory p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,string,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, bool p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,bool,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, bool p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,bool,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, bool p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,bool,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, bool p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,bool,address)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, address p2, uint p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,address,uint)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, address p2, string memory p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,address,string)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, address p2, bool p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,address,bool)\", p0, p1, p2, p3));\n }\n\n function log(address p0, address p1, address p2, address p3) internal pure {\n _sendLogPayload(abi.encodeWithSignature(\"log(address,address,address,address)\", p0, p1, p2, p3));\n }\n}\n"},"contracts/utils/SoladyOwnable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.27;\n\nimport { Ownable } from \"solady/auth/Ownable.sol\";\n\ncontract SoladyOwnable is Ownable {\n constructor(address _owner) Ownable() {\n assembly {\n if iszero(shl(96, _owner)) {\n mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n revert(0x1c, 0x04)\n }\n }\n _initializeOwner(_owner);\n }\n}\n"},"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"node_modules/account-abstraction/contracts/interfaces/IPaymaster.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.7.5;\n\nimport \"./PackedUserOperation.sol\";\n\n/**\n * The interface exposed by a paymaster contract, who agrees to pay the gas for user's operations.\n * A paymaster must hold a stake to cover the required entrypoint stake and also the gas for the transaction.\n */\ninterface IPaymaster {\n enum PostOpMode {\n // User op succeeded.\n opSucceeded,\n // User op reverted. Still has to pay for gas.\n opReverted,\n // Only used internally in the EntryPoint (cleanup after postOp reverts). Never calling paymaster with this value\n postOpReverted\n }\n\n /**\n * Payment validation: check if paymaster agrees to pay.\n * Must verify sender is the entryPoint.\n * Revert to reject this request.\n * Note that bundlers will reject this method if it changes the state, unless the paymaster is trusted (whitelisted).\n * The paymaster pre-pays using its deposit, and receive back a refund after the postOp method returns.\n * @param userOp - The user operation.\n * @param userOpHash - Hash of the user's request data.\n * @param maxCost - The maximum cost of this transaction (based on maximum gas and gas price from userOp).\n * @return context - Value to send to a postOp. Zero length to signify postOp is not required.\n * @return validationData - Signature and time-range of this operation, encoded the same as the return\n * value of validateUserOperation.\n * <20-byte> sigAuthorizer - 0 for valid signature, 1 to mark signature failure,\n * other values are invalid for paymaster.\n * <6-byte> validUntil - last timestamp this operation is valid. 0 for \"indefinite\"\n * <6-byte> validAfter - first timestamp this operation is valid\n * Note that the validation code cannot use block.timestamp (or block.number) directly.\n */\n function validatePaymasterUserOp(\n PackedUserOperation calldata userOp,\n bytes32 userOpHash,\n uint256 maxCost\n ) external returns (bytes memory context, uint256 validationData);\n\n /**\n * Post-operation handler.\n * Must verify sender is the entryPoint.\n * @param mode - Enum with the following options:\n * opSucceeded - User operation succeeded.\n * opReverted - User op reverted. The paymaster still has to pay for gas.\n * postOpReverted - never passed in a call to postOp().\n * @param context - The context value returned by validatePaymasterUserOp\n * @param actualGasCost - Actual gas used so far (without this postOp call).\n * @param actualUserOpFeePerGas - the gas price this UserOp pays. This value is based on the UserOp's maxFeePerGas\n * and maxPriorityFee (and basefee)\n * It is not the same as tx.gasprice, which is what the bundler pays.\n */\n function postOp(\n PostOpMode mode,\n bytes calldata context,\n uint256 actualGasCost,\n uint256 actualUserOpFeePerGas\n ) external;\n}\n"},"node_modules/account-abstraction/contracts/interfaces/IEntryPoint.sol":{"content":"/**\n ** Account-Abstraction (EIP-4337) singleton EntryPoint implementation.\n ** Only one instance required on each chain.\n **/\n// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.7.5;\n\n/* solhint-disable avoid-low-level-calls */\n/* solhint-disable no-inline-assembly */\n/* solhint-disable reason-string */\n\nimport \"./PackedUserOperation.sol\";\nimport \"./IStakeManager.sol\";\nimport \"./IAggregator.sol\";\nimport \"./INonceManager.sol\";\n\ninterface IEntryPoint is IStakeManager, INonceManager {\n /***\n * An event emitted after each successful request.\n * @param userOpHash - Unique identifier for the request (hash its entire content, except signature).\n * @param sender - The account that generates this request.\n * @param paymaster - If non-null, the paymaster that pays for this request.\n * @param nonce - The nonce value from the request.\n * @param success - True if the sender transaction succeeded, false if reverted.\n * @param actualGasCost - Actual amount paid (by account or paymaster) for this UserOperation.\n * @param actualGasUsed - Total gas used by this UserOperation (including preVerification, creation,\n * validation and execution).\n */\n event UserOperationEvent(\n bytes32 indexed userOpHash,\n address indexed sender,\n address indexed paymaster,\n uint256 nonce,\n bool success,\n uint256 actualGasCost,\n uint256 actualGasUsed\n );\n\n /**\n * Account \"sender\" was deployed.\n * @param userOpHash - The userOp that deployed this account. UserOperationEvent will follow.\n * @param sender - The account that is deployed\n * @param factory - The factory used to deploy this account (in the initCode)\n * @param paymaster - The paymaster used by this UserOp\n */\n event AccountDeployed(\n bytes32 indexed userOpHash,\n address indexed sender,\n address factory,\n address paymaster\n );\n\n /**\n * An event emitted if the UserOperation \"callData\" reverted with non-zero length.\n * @param userOpHash - The request unique identifier.\n * @param sender - The sender of this request.\n * @param nonce - The nonce used in the request.\n * @param revertReason - The return bytes from the (reverted) call to \"callData\".\n */\n event UserOperationRevertReason(\n bytes32 indexed userOpHash,\n address indexed sender,\n uint256 nonce,\n bytes revertReason\n );\n\n /**\n * An event emitted if the UserOperation Paymaster's \"postOp\" call reverted with non-zero length.\n * @param userOpHash - The request unique identifier.\n * @param sender - The sender of this request.\n * @param nonce - The nonce used in the request.\n * @param revertReason - The return bytes from the (reverted) call to \"callData\".\n */\n event PostOpRevertReason(\n bytes32 indexed userOpHash,\n address indexed sender,\n uint256 nonce,\n bytes revertReason\n );\n\n /**\n * UserOp consumed more than prefund. The UserOperation is reverted, and no refund is made.\n * @param userOpHash - The request unique identifier.\n * @param sender - The sender of this request.\n * @param nonce - The nonce used in the request.\n */\n event UserOperationPrefundTooLow(\n bytes32 indexed userOpHash,\n address indexed sender,\n uint256 nonce\n );\n\n /**\n * An event emitted by handleOps(), before starting the execution loop.\n * Any event emitted before this event, is part of the validation.\n */\n event BeforeExecution();\n\n /**\n * Signature aggregator used by the following UserOperationEvents within this bundle.\n * @param aggregator - The aggregator used for the following UserOperationEvents.\n */\n event SignatureAggregatorChanged(address indexed aggregator);\n\n /**\n * A custom revert error of handleOps, to identify the offending op.\n * Should be caught in off-chain handleOps simulation and not happen on-chain.\n * Useful for mitigating DoS attempts against batchers or for troubleshooting of factory/account/paymaster reverts.\n * NOTE: If simulateValidation passes successfully, there should be no reason for handleOps to fail on it.\n * @param opIndex - Index into the array of ops to the failed one (in simulateValidation, this is always zero).\n * @param reason - Revert reason. The string starts with a unique code \"AAmn\",\n * where \"m\" is \"1\" for factory, \"2\" for account and \"3\" for paymaster issues,\n * so a failure can be attributed to the correct entity.\n */\n error FailedOp(uint256 opIndex, string reason);\n\n /**\n * A custom revert error of handleOps, to report a revert by account or paymaster.\n * @param opIndex - Index into the array of ops to the failed one (in simulateValidation, this is always zero).\n * @param reason - Revert reason. see FailedOp(uint256,string), above\n * @param inner - data from inner cought revert reason\n * @dev note that inner is truncated to 2048 bytes\n */\n error FailedOpWithRevert(uint256 opIndex, string reason, bytes inner);\n\n error PostOpReverted(bytes returnData);\n\n /**\n * Error case when a signature aggregator fails to verify the aggregated signature it had created.\n * @param aggregator The aggregator that failed to verify the signature\n */\n error SignatureValidationFailed(address aggregator);\n\n // Return value of getSenderAddress.\n error SenderAddressResult(address sender);\n\n // UserOps handled, per aggregator.\n struct UserOpsPerAggregator {\n PackedUserOperation[] userOps;\n // Aggregator address\n IAggregator aggregator;\n // Aggregated signature\n bytes signature;\n }\n\n /**\n * Execute a batch of UserOperations.\n * No signature aggregator is used.\n * If any account requires an aggregator (that is, it returned an aggregator when\n * performing simulateValidation), then handleAggregatedOps() must be used instead.\n * @param ops - The operations to execute.\n * @param beneficiary - The address to receive the fees.\n */\n function handleOps(\n PackedUserOperation[] calldata ops,\n address payable beneficiary\n ) external;\n\n /**\n * Execute a batch of UserOperation with Aggregators\n * @param opsPerAggregator - The operations to execute, grouped by aggregator (or address(0) for no-aggregator accounts).\n * @param beneficiary - The address to receive the fees.\n */\n function handleAggregatedOps(\n UserOpsPerAggregator[] calldata opsPerAggregator,\n address payable beneficiary\n ) external;\n\n /**\n * Generate a request Id - unique identifier for this request.\n * The request ID is a hash over the content of the userOp (except the signature), the entrypoint and the chainid.\n * @param userOp - The user operation to generate the request ID for.\n * @return hash the hash of this UserOperation\n */\n function getUserOpHash(\n PackedUserOperation calldata userOp\n ) external view returns (bytes32);\n\n /**\n * Gas and return values during simulation.\n * @param preOpGas - The gas used for validation (including preValidationGas)\n * @param prefund - The required prefund for this operation\n * @param accountValidationData - returned validationData from account.\n * @param paymasterValidationData - return validationData from paymaster.\n * @param paymasterContext - Returned by validatePaymasterUserOp (to be passed into postOp)\n */\n struct ReturnInfo {\n uint256 preOpGas;\n uint256 prefund;\n uint256 accountValidationData;\n uint256 paymasterValidationData;\n bytes paymasterContext;\n }\n\n /**\n * Returned aggregated signature info:\n * The aggregator returned by the account, and its current stake.\n */\n struct AggregatorStakeInfo {\n address aggregator;\n StakeInfo stakeInfo;\n }\n\n /**\n * Get counterfactual sender address.\n * Calculate the sender contract address that will be generated by the initCode and salt in the UserOperation.\n * This method always revert, and returns the address in SenderAddressResult error\n * @param initCode - The constructor code to be passed into the UserOperation.\n */\n function getSenderAddress(bytes memory initCode) external;\n\n error DelegateAndRevert(bool success, bytes ret);\n\n /**\n * Helper method for dry-run testing.\n * @dev calling this method, the EntryPoint will make a delegatecall to the given data, and report (via revert) the result.\n * The method always revert, so is only useful off-chain for dry run calls, in cases where state-override to replace\n * actual EntryPoint code is less convenient.\n * @param target a target contract to make a delegatecall from entrypoint\n * @param data data to pass to target in a delegatecall\n */\n function delegateAndRevert(address target, bytes calldata data) external;\n}\n"},"node_modules/account-abstraction/contracts/interfaces/PackedUserOperation.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.7.5;\n\n/**\n * User Operation struct\n * @param sender - The sender account of this request.\n * @param nonce - Unique value the sender uses to verify it is not a replay.\n * @param initCode - If set, the account contract will be created by this constructor/\n * @param callData - The method call to execute on this account.\n * @param accountGasLimits - Packed gas limits for validateUserOp and gas limit passed to the callData method call.\n * @param preVerificationGas - Gas not calculated by the handleOps method, but added to the gas paid.\n * Covers batch overhead.\n * @param gasFees - packed gas fields maxPriorityFeePerGas and maxFeePerGas - Same as EIP-1559 gas parameters.\n * @param paymasterAndData - If set, this field holds the paymaster address, verification gas limit, postOp gas limit and paymaster-specific extra data\n * The paymaster will pay for the transaction instead of the sender.\n * @param signature - Sender-verified signature over the entire request, the EntryPoint address and the chain ID.\n */\nstruct PackedUserOperation {\n address sender;\n uint256 nonce;\n bytes initCode;\n bytes callData;\n bytes32 accountGasLimits;\n uint256 preVerificationGas;\n bytes32 gasFees;\n bytes paymasterAndData;\n bytes signature;\n}\n"},"node_modules/@openzeppelin/contracts/utils/TransientSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/TransientSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/TransientSlot.js.\n\npragma solidity ^0.8.24;\n\n/**\n * @dev Library for reading and writing value-types to specific transient storage slots.\n *\n * Transient slots are often used to store temporary values that are removed after the current transaction.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * * Example reading and writing values using transient storage:\n * ```solidity\n * contract Lock {\n * using TransientSlot for *;\n *\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\n * bytes32 internal constant _LOCK_SLOT = 0xf4678858b2b588224636b8522b729e7722d32fc491da849ed75b3fdf3c84f542;\n *\n * modifier locked() {\n * require(!_LOCK_SLOT.asBoolean().tload());\n *\n * _LOCK_SLOT.asBoolean().tstore(true);\n * _;\n * _LOCK_SLOT.asBoolean().tstore(false);\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\n */\nlibrary TransientSlot {\n /**\n * @dev UDVT that represent a slot holding a address.\n */\n type AddressSlot is bytes32;\n\n /**\n * @dev Cast an arbitrary slot to a AddressSlot.\n */\n function asAddress(bytes32 slot) internal pure returns (AddressSlot) {\n return AddressSlot.wrap(slot);\n }\n\n /**\n * @dev UDVT that represent a slot holding a bool.\n */\n type BooleanSlot is bytes32;\n\n /**\n * @dev Cast an arbitrary slot to a BooleanSlot.\n */\n function asBoolean(bytes32 slot) internal pure returns (BooleanSlot) {\n return BooleanSlot.wrap(slot);\n }\n\n /**\n * @dev UDVT that represent a slot holding a bytes32.\n */\n type Bytes32Slot is bytes32;\n\n /**\n * @dev Cast an arbitrary slot to a Bytes32Slot.\n */\n function asBytes32(bytes32 slot) internal pure returns (Bytes32Slot) {\n return Bytes32Slot.wrap(slot);\n }\n\n /**\n * @dev UDVT that represent a slot holding a uint256.\n */\n type Uint256Slot is bytes32;\n\n /**\n * @dev Cast an arbitrary slot to a Uint256Slot.\n */\n function asUint256(bytes32 slot) internal pure returns (Uint256Slot) {\n return Uint256Slot.wrap(slot);\n }\n\n /**\n * @dev UDVT that represent a slot holding a int256.\n */\n type Int256Slot is bytes32;\n\n /**\n * @dev Cast an arbitrary slot to a Int256Slot.\n */\n function asInt256(bytes32 slot) internal pure returns (Int256Slot) {\n return Int256Slot.wrap(slot);\n }\n\n /**\n * @dev Load the value held at location `slot` in transient storage.\n */\n function tload(AddressSlot slot) internal view returns (address value) {\n assembly (\"memory-safe\") {\n value := tload(slot)\n }\n }\n\n /**\n * @dev Store `value` at location `slot` in transient storage.\n */\n function tstore(AddressSlot slot, address value) internal {\n assembly (\"memory-safe\") {\n tstore(slot, value)\n }\n }\n\n /**\n * @dev Load the value held at location `slot` in transient storage.\n */\n function tload(BooleanSlot slot) internal view returns (bool value) {\n assembly (\"memory-safe\") {\n value := tload(slot)\n }\n }\n\n /**\n * @dev Store `value` at location `slot` in transient storage.\n */\n function tstore(BooleanSlot slot, bool value) internal {\n assembly (\"memory-safe\") {\n tstore(slot, value)\n }\n }\n\n /**\n * @dev Load the value held at location `slot` in transient storage.\n */\n function tload(Bytes32Slot slot) internal view returns (bytes32 value) {\n assembly (\"memory-safe\") {\n value := tload(slot)\n }\n }\n\n /**\n * @dev Store `value` at location `slot` in transient storage.\n */\n function tstore(Bytes32Slot slot, bytes32 value) internal {\n assembly (\"memory-safe\") {\n tstore(slot, value)\n }\n }\n\n /**\n * @dev Load the value held at location `slot` in transient storage.\n */\n function tload(Uint256Slot slot) internal view returns (uint256 value) {\n assembly (\"memory-safe\") {\n value := tload(slot)\n }\n }\n\n /**\n * @dev Store `value` at location `slot` in transient storage.\n */\n function tstore(Uint256Slot slot, uint256 value) internal {\n assembly (\"memory-safe\") {\n tstore(slot, value)\n }\n }\n\n /**\n * @dev Load the value held at location `slot` in transient storage.\n */\n function tload(Int256Slot slot) internal view returns (int256 value) {\n assembly (\"memory-safe\") {\n value := tload(slot)\n }\n }\n\n /**\n * @dev Store `value` at location `slot` in transient storage.\n */\n function tstore(Int256Slot slot, int256 value) internal {\n assembly (\"memory-safe\") {\n tstore(slot, value)\n }\n }\n}\n"},"node_modules/solady/src/auth/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The caller is not authorized to call the function.\n error Unauthorized();\n\n /// @dev The `newOwner` cannot be the zero address.\n error NewOwnerIsZeroAddress();\n\n /// @dev The `pendingOwner` does not have a valid handover request.\n error NoHandoverRequest();\n\n /// @dev Cannot double-initialize.\n error AlreadyInitialized();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n /// despite it not being as lightweight as a single argument event.\n event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n /// @dev An ownership handover to `pendingOwner` has been requested.\n event OwnershipHandoverRequested(address indexed pendingOwner);\n\n /// @dev The ownership handover to `pendingOwner` has been canceled.\n event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n 0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n 0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* STORAGE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The owner slot is given by:\n /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n /// It is intentionally chosen to be a high value\n /// to avoid collision with lower slots.\n /// The choice of manual storage layout is to enable compatibility\n /// with both regular and upgradeable contracts.\n bytes32 internal constant _OWNER_SLOT =\n 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n /// The ownership handover slot of `newOwner` is given by:\n /// ```\n /// mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n /// let handoverSlot := keccak256(0x00, 0x20)\n /// ```\n /// It stores the expiry timestamp of the two-step ownership handover.\n uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* INTERNAL FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n /// @dev Initializes the owner directly without authorization guard.\n /// This function must be called upon initialization,\n /// regardless of whether the contract is upgradeable or not.\n /// This is to enable generalization to both regular and upgradeable contracts,\n /// and to save gas in case the initial owner is not the caller.\n /// For performance reasons, this function will not check if there\n /// is an existing owner.\n function _initializeOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n if sload(ownerSlot) {\n mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n revert(0x1c, 0x04)\n }\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(_OWNER_SLOT, newOwner)\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n }\n }\n\n /// @dev Sets the owner directly without authorization guard.\n function _setOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, newOwner)\n }\n }\n }\n\n /// @dev Throws if the sender is not the owner.\n function _checkOwner() internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // If the caller is not the stored owner, revert.\n if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n /// Override to return a different value if needed.\n /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n return 48 * 3600;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC UPDATE FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Allows the owner to transfer the ownership to `newOwner`.\n function transferOwnership(address newOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(shl(96, newOwner)) {\n mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n revert(0x1c, 0x04)\n }\n }\n _setOwner(newOwner);\n }\n\n /// @dev Allows the owner to renounce their ownership.\n function renounceOwnership() public payable virtual onlyOwner {\n _setOwner(address(0));\n }\n\n /// @dev Request a two-step ownership handover to the caller.\n /// The request will automatically expire in 48 hours (172800 seconds) by default.\n function requestOwnershipHandover() public payable virtual {\n unchecked {\n uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to `expires`.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), expires)\n // Emit the {OwnershipHandoverRequested} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n }\n }\n }\n\n /// @dev Cancels the two-step ownership handover to the caller, if any.\n function cancelOwnershipHandover() public payable virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), 0)\n // Emit the {OwnershipHandoverCanceled} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n }\n }\n\n /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n let handoverSlot := keccak256(0x0c, 0x20)\n // If the handover does not exist, or has expired.\n if gt(timestamp(), sload(handoverSlot)) {\n mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n revert(0x1c, 0x04)\n }\n // Set the handover slot to 0.\n sstore(handoverSlot, 0)\n }\n _setOwner(pendingOwner);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC READ FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the owner of the contract.\n function owner() public view virtual returns (address result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := sload(_OWNER_SLOT)\n }\n }\n\n /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n function ownershipHandoverExpiresAt(address pendingOwner)\n public\n view\n virtual\n returns (uint256 result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the handover slot.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n // Load the handover slot.\n result := sload(keccak256(0x0c, 0x20))\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MODIFIERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Marks a function as only callable by the owner.\n modifier onlyOwner() virtual {\n _checkOwner();\n _;\n }\n}\n"},"node_modules/account-abstraction/contracts/interfaces/IStakeManager.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-only\npragma solidity >=0.7.5;\n\n/**\n * Manage deposits and stakes.\n * Deposit is just a balance used to pay for UserOperations (either by a paymaster or an account).\n * Stake is value locked for at least \"unstakeDelay\" by the staked entity.\n */\ninterface IStakeManager {\n event Deposited(address indexed account, uint256 totalDeposit);\n\n event Withdrawn(\n address indexed account,\n address withdrawAddress,\n uint256 amount\n );\n\n // Emitted when stake or unstake delay are modified.\n event StakeLocked(\n address indexed account,\n uint256 totalStaked,\n uint256 unstakeDelaySec\n );\n\n // Emitted once a stake is scheduled for withdrawal.\n event StakeUnlocked(address indexed account, uint256 withdrawTime);\n\n event StakeWithdrawn(\n address indexed account,\n address withdrawAddress,\n uint256 amount\n );\n\n /**\n * @param deposit - The entity's deposit.\n * @param staked - True if this entity is staked.\n * @param stake - Actual amount of ether staked for this entity.\n * @param unstakeDelaySec - Minimum delay to withdraw the stake.\n * @param withdrawTime - First block timestamp where 'withdrawStake' will be callable, or zero if already locked.\n * @dev Sizes were chosen so that deposit fits into one cell (used during handleOp)\n * and the rest fit into a 2nd cell (used during stake/unstake)\n * - 112 bit allows for 10^15 eth\n * - 48 bit for full timestamp\n * - 32 bit allows 150 years for unstake delay\n */\n struct DepositInfo {\n uint256 deposit;\n bool staked;\n uint112 stake;\n uint32 unstakeDelaySec;\n uint48 withdrawTime;\n }\n\n // API struct used by getStakeInfo and simulateValidation.\n struct StakeInfo {\n uint256 stake;\n uint256 unstakeDelaySec;\n }\n\n /**\n * Get deposit info.\n * @param account - The account to query.\n * @return info - Full deposit information of given account.\n */\n function getDepositInfo(\n address account\n ) external view returns (DepositInfo memory info);\n\n /**\n * Get account balance.\n * @param account - The account to query.\n * @return - The deposit (for gas payment) of the account.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * Add to the deposit of the given account.\n * @param account - The account to add to.\n */\n function depositTo(address account) external payable;\n\n /**\n * Add to the account's stake - amount and delay\n * any pending unstake is first cancelled.\n * @param _unstakeDelaySec - The new lock duration before the deposit can be withdrawn.\n */\n function addStake(uint32 _unstakeDelaySec) external payable;\n\n /**\n * Attempt to unlock the stake.\n * The value can be withdrawn (using withdrawStake) after the unstake delay.\n */\n function unlockStake() external;\n\n /**\n * Withdraw from the (unlocked) stake.\n * Must first call unlockStake and wait for the unstakeDelay to pass.\n * @param withdrawAddress - The address to send withdrawn value.\n */\n function withdrawStake(address payable withdrawAddress) external;\n\n /**\n * Withdraw from the deposit.\n * @param withdrawAddress - The address to send withdrawn value.\n * @param withdrawAmount - The amount to withdraw.\n */\n function withdrawTo(\n address payable withdrawAddress,\n uint256 withdrawAmount\n ) external;\n}\n"},"node_modules/account-abstraction/contracts/interfaces/IAggregator.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.7.5;\n\nimport \"./PackedUserOperation.sol\";\n\n/**\n * Aggregated Signatures validator.\n */\ninterface IAggregator {\n /**\n * Validate aggregated signature.\n * Revert if the aggregated signature does not match the given list of operations.\n * @param userOps - Array of UserOperations to validate the signature for.\n * @param signature - The aggregated signature.\n */\n function validateSignatures(\n PackedUserOperation[] calldata userOps,\n bytes calldata signature\n ) external view;\n\n /**\n * Validate signature of a single userOp.\n * This method should be called by bundler after EntryPointSimulation.simulateValidation() returns\n * the aggregator this account uses.\n * First it validates the signature over the userOp. Then it returns data to be used when creating the handleOps.\n * @param userOp - The userOperation received from the user.\n * @return sigForUserOp - The value to put into the signature field of the userOp when calling handleOps.\n * (usually empty, unless account and aggregator support some kind of \"multisig\".\n */\n function validateUserOpSignature(\n PackedUserOperation calldata userOp\n ) external view returns (bytes memory sigForUserOp);\n\n /**\n * Aggregate multiple signatures into a single value.\n * This method is called off-chain to calculate the signature to pass with handleOps()\n * bundler MAY use optimized custom code perform this aggregation.\n * @param userOps - Array of UserOperations to collect the signatures from.\n * @return aggregatedSignature - The aggregated signature.\n */\n function aggregateSignatures(\n PackedUserOperation[] calldata userOps\n ) external view returns (bytes memory aggregatedSignature);\n}\n"},"node_modules/account-abstraction/contracts/interfaces/INonceManager.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.7.5;\n\ninterface INonceManager {\n\n /**\n * Return the next nonce for this sender.\n * Within a given key, the nonce values are sequenced (starting with zero, and incremented by one on each userop)\n * But UserOp with different keys can come with arbitrary order.\n *\n * @param sender the account address\n * @param key the high 192 bit of the nonce\n * @return nonce a full nonce to pass for next UserOp with this sender.\n */\n function getNonce(address sender, uint192 key)\n external view returns (uint256 nonce);\n\n /**\n * Manually increment the nonce of the sender.\n * This method is exposed just for completeness..\n * Account does NOT need to call it, neither during validation, nor elsewhere,\n * as the EntryPoint will update the nonce regardless.\n * Possible use-case is call it with various keys to \"initialize\" their nonces to one, so that future\n * UserOperations will not pay extra for the first transaction with a given key.\n */\n function incrementNonce(uint192 key) external;\n}\n"}},"settings":{"remappings":["@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/","@prb/test/=node_modules/@prb/test/","@nexus/=node_modules/nexus/","forge-std/=lib/forge-std/src/","account-abstraction/=node_modules/account-abstraction/contracts/","@ERC4337/account-abstraction/=node_modules/account-abstraction/","@modulekit/=node_modules/modulekit/src/","sentinellist/=node_modules/sentinellist/src/","solady/=node_modules/solady/src/","@uniswap/v3-periphery/contracts/=node_modules/@uniswap/v3-periphery/contracts/","@uniswap/v3-core/contracts/=node_modules/@uniswap/v3-core/contracts/","@uniswap/swap-router-contracts/contracts/=node_modules/@uniswap/swap-router-contracts/contracts/","solady/src/=node_modules/solady/src/","excessively-safe-call/=node_modules/excessively-safe-call/src/","modulekit/=node_modules/@rhinestone/modulekit/src/","module-bases/=node_modules/module-bases/src/","erc7579/=node_modules/erc7579/src/","kernel/=node_modules/@zerodev/kernel/src/","@safe-global/=node_modules/@safe-global/","solarray/=node_modules/solarray/src/","erc7739Validator/=node_modules/erc7739-validator-base/src/","@biconomy-devx/=node_modules/@biconomy-devx/","@erc7579/=node_modules/@erc7579/","@gnosis.pm/=node_modules/@gnosis.pm/","@prb/math/=node_modules/erc7739-validator-base/node_modules/@prb/math/src/","@rhinestone/=node_modules/@rhinestone/","@zerodev/=node_modules/@zerodev/","ExcessivelySafeCall/=node_modules/erc7739-validator-base/node_modules/excessively-safe-call/src/","account-abstraction-v0.6/=node_modules/account-abstraction-v0.6/","accountabstraction/=node_modules/accountabstraction/","base64-sol/=node_modules/base64-sol/","ds-test/=node_modules/ds-test/","enumerableset4337/=node_modules/erc7739-validator-base/node_modules/@erc7579/enumerablemap4337/src/","erc4337-validation/=node_modules/erc7739-validator-base/node_modules/@rhinestone/erc4337-validation/src/","erc7739-validator-base/=node_modules/erc7739-validator-base/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","nexus/=node_modules/nexus/","registry/=node_modules/modulekit/node_modules/@rhinestone/registry/src/","safe7579/=node_modules/erc7739-validator-base/node_modules/@rhinestone/safe7579/src/"],"optimizer":{"enabled":true,"runs":800},"metadata":{"useLiteralContent":false,"bytecodeHash":"none","appendCBOR":true},"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"]}},"evmVersion":"cancun","viaIR":true,"libraries":{}}} +{"language":"Solidity","sources":{"contracts/sponsorship/BiconomySponsorshipPaymaster.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.27;\n\n/* solhint-disable reason-string */\n\nimport \"../base/BasePaymaster.sol\";\nimport \"account-abstraction/core/UserOperationLib.sol\";\nimport \"account-abstraction/core/Helpers.sol\";\nimport { SignatureCheckerLib } from \"solady/utils/SignatureCheckerLib.sol\";\nimport { ECDSA as ECDSA_solady } from \"solady/utils/ECDSA.sol\";\nimport { BiconomySponsorshipPaymasterErrors } from \"../common/BiconomySponsorshipPaymasterErrors.sol\";\nimport { ReentrancyGuardTransient } from \"@openzeppelin/contracts/utils/ReentrancyGuardTransient.sol\";\nimport { IERC20 } from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport { SafeTransferLib } from \"solady/utils/SafeTransferLib.sol\";\nimport { IBiconomySponsorshipPaymaster } from \"../interfaces/IBiconomySponsorshipPaymaster.sol\";\n\n/**\n * @title BiconomySponsorshipPaymaster\n * @author livingrockrises\n * @author ShivaanshK\n * @notice Based on Infinitism's 'VerifyingPaymaster' contract\n * @dev This contract is used to sponsor the transaction fees of the user operations\n * Uses a verifying signer to provide the signature if predetermined conditions are met\n * regarding the user operation calldata. Also this paymaster is Singleton in nature which\n * means multiple Dapps/Wallet clients willing to sponsor the transactions can share this paymaster.\n * Maintains it's own accounting of the gas balance for each Dapp/Wallet client\n * and Manages it's own deposit on the EntryPoint.\n */\n\ncontract BiconomySponsorshipPaymaster is\n BasePaymaster,\n ReentrancyGuardTransient,\n BiconomySponsorshipPaymasterErrors,\n IBiconomySponsorshipPaymaster\n{\n using UserOperationLib for PackedUserOperation;\n using SignatureCheckerLib for address;\n using ECDSA_solady for bytes32;\n\n address public verifyingSigner;\n address public feeCollector;\n uint256 public unaccountedGas;\n uint256 public paymasterIdWithdrawalDelay;\n uint256 public minDeposit;\n\n // Denominator to prevent precision errors when applying price markup\n uint256 private constant _PRICE_DENOMINATOR = 1e6;\n // Offset in PaymasterAndData to get to PAYMASTER_ID_OFFSET\n uint256 private constant _PAYMASTER_ID_OFFSET = _PAYMASTER_DATA_OFFSET;\n // Limit for unaccounted gas cost\n uint256 private constant _UNACCOUNTED_GAS_LIMIT = 100_000;\n\n mapping(address => uint256) public paymasterIdBalances;\n mapping(address => bool) internal _trustedPaymasterIds;\n mapping(address paymasterId => WithdrawalRequest request) internal _requests;\n\n constructor(\n address owner,\n IEntryPoint entryPointArg,\n address verifyingSignerArg,\n address feeCollectorArg,\n uint256 unaccountedGasArg,\n uint256 paymasterIdWithdrawalDelayArg,\n uint256 minDepositArg\n )\n BasePaymaster(owner, entryPointArg)\n {\n _checkConstructorArgs(verifyingSignerArg, feeCollectorArg, unaccountedGasArg);\n assembly (\"memory-safe\") {\n sstore(verifyingSigner.slot, verifyingSignerArg)\n }\n feeCollector = feeCollectorArg;\n unaccountedGas = unaccountedGasArg;\n paymasterIdWithdrawalDelay = paymasterIdWithdrawalDelayArg;\n minDeposit = minDepositArg;\n }\n\n receive() external payable {\n emit Received(msg.sender, msg.value);\n }\n\n /**\n * @dev Add a deposit for this paymaster and given paymasterId (Dapp Depositor address), used for paying for\n * transaction fees\n * @param paymasterId dapp identifier for which deposit is being made\n */\n function depositFor(address paymasterId) external payable nonReentrant {\n if (paymasterId == address(0)) revert PaymasterIdCanNotBeZero();\n if (msg.value == 0) revert DepositCanNotBeZero();\n if (paymasterIdBalances[paymasterId] + msg.value < minDeposit) revert LowDeposit();\n paymasterIdBalances[paymasterId] += msg.value;\n entryPoint.depositTo{ value: msg.value }(address(this));\n emit GasDeposited(paymasterId, msg.value);\n }\n\n /**\n * @dev Set a new verifying signer address.\n * Can only be called by the owner of the contract.\n * @param newVerifyingSigner The new address to be set as the verifying signer.\n * @notice If _newVerifyingSigner is set to zero address, it will revert with an error.\n * After setting the new signer address, it will emit an event VerifyingSignerChanged.\n */\n function setSigner(address newVerifyingSigner) external payable onlyOwner {\n if (_isContract(newVerifyingSigner)) revert VerifyingSignerCanNotBeContract();\n if (newVerifyingSigner == address(0)) {\n revert VerifyingSignerCanNotBeZero();\n }\n address oldSigner = verifyingSigner;\n assembly (\"memory-safe\") {\n sstore(verifyingSigner.slot, newVerifyingSigner)\n }\n emit VerifyingSignerChanged(oldSigner, newVerifyingSigner, msg.sender);\n }\n\n /**\n * @dev Refund balances for multiple paymasterIds\n * PM charges more than it should to protect itself. \n * This function is used to refund the extra amount \n * when the real consumption is known.\n * @param paymasterIds The paymasterIds to refund\n * @param amounts The amounts to refund\n */\n function refundBalances(address[] calldata paymasterIds, uint256[] calldata amounts) external payable onlyOwner {\n if (paymasterIds.length != amounts.length) revert InvalidArrayLengths();\n for (uint256 i; i < paymasterIds.length; i++) {\n paymasterIdBalances[paymasterIds[i]] += amounts[i];\n }\n }\n\n /**\n * @dev Set a new trusted paymasterId.\n * Can only be called by the owner of the contract.\n * @param paymasterId The paymasterId to be set as trusted.\n * @param isTrusted Whether the paymasterId is trusted or not.\n */\n function setTrustedPaymasterId(address paymasterId, bool isTrusted) external payable onlyOwner {\n if (paymasterId == address(0)) revert PaymasterIdCanNotBeZero();\n if (_trustedPaymasterIds[paymasterId] != isTrusted) {\n _trustedPaymasterIds[paymasterId] = isTrusted;\n emit TrustedPaymasterIdSet(paymasterId, isTrusted);\n }\n }\n\n /**\n * @dev Set a new minimum deposit value.\n * Can only be called by the owner of the contract.\n * @param newMinDeposit The new minimum deposit value to be set.\n */\n function setMinDeposit(uint256 newMinDeposit) external payable onlyOwner {\n emit MinDepositChanged(minDeposit, newMinDeposit);\n minDeposit = newMinDeposit;\n }\n\n /**\n * @dev Set a new fee collector address.\n * Can only be called by the owner of the contract.\n * @param newFeeCollector The new address to be set as the fee collector.\n * @notice If _newFeeCollector is set to zero address, it will revert with an error.\n * After setting the new fee collector address, it will emit an event FeeCollectorChanged.\n */\n function setFeeCollector(address newFeeCollector) external payable override onlyOwner {\n if (_isContract(newFeeCollector)) revert FeeCollectorCanNotBeContract();\n if (newFeeCollector == address(0)) revert FeeCollectorCanNotBeZero();\n address oldFeeCollector = feeCollector;\n feeCollector = newFeeCollector;\n emit FeeCollectorChanged(oldFeeCollector, newFeeCollector, msg.sender);\n }\n\n /**\n * @dev Set a new unaccountedGas value.\n * @param value The new value to be set as the unaccountedGas.\n * @notice only to be called by the owner of the contract.\n */\n function setUnaccountedGas(uint256 value) external payable onlyOwner {\n if (value > _UNACCOUNTED_GAS_LIMIT) {\n revert UnaccountedGasTooHigh();\n }\n uint256 oldValue = unaccountedGas;\n unaccountedGas = value;\n emit UnaccountedGasChanged(oldValue, value);\n }\n\n /**\n * @dev Override the default implementation.\n */\n function deposit() external payable virtual override {\n revert UseDepositForInstead();\n }\n\n /**\n * @dev pull tokens out of paymaster in case they were sent to the paymaster at any point.\n * @param token the token deposit to withdraw\n * @param target address to send to\n * @param amount amount to withdraw\n */\n function withdrawERC20(IERC20 token, address target, uint256 amount) external onlyOwner nonReentrant {\n _withdrawERC20(token, target, amount);\n }\n\n /**\n * @dev Submit a withdrawal request for the paymasterId (Dapp Depositor address)\n * @param withdrawAddress address to send the funds to\n * @param amount amount to withdraw\n */\n function submitWithdrawalRequest(address withdrawAddress, uint256 amount) external {\n if (withdrawAddress == address(0)) revert CanNotWithdrawToZeroAddress();\n if (amount == 0) revert CanNotWithdrawZeroAmount();\n uint256 currentBalance = paymasterIdBalances[msg.sender];\n if (amount > currentBalance) revert InsufficientFundsInGasTank();\n _requests[msg.sender] =\n WithdrawalRequest({ amount: amount, to: withdrawAddress, requestSubmittedTimestamp: block.timestamp });\n emit WithdrawalRequestSubmitted(withdrawAddress, amount);\n }\n\n /**\n * @dev Execute a withdrawal request for the paymasterId (Dapp Depositor address)\n * Request must be cleared by the withdrawal delay period\n * @param paymasterId paymasterId (Dapp Depositor address)\n */\n function executeWithdrawalRequest(address paymasterId) external nonReentrant {\n WithdrawalRequest memory req = _requests[paymasterId];\n if (req.requestSubmittedTimestamp == 0) revert NoRequestSubmitted();\n uint256 clearanceTimestamp = req.requestSubmittedTimestamp + _getDelay(paymasterId);\n if (block.timestamp < clearanceTimestamp) revert RequestNotClearedYet(clearanceTimestamp);\n uint256 currentBalance = paymasterIdBalances[paymasterId];\n req.amount = req.amount > currentBalance ? currentBalance : req.amount;\n if(req.amount == 0) revert CanNotWithdrawZeroAmount();\n paymasterIdBalances[paymasterId] = currentBalance - req.amount;\n delete _requests[paymasterId];\n entryPoint.withdrawTo(payable(req.to), req.amount);\n emit GasWithdrawn(paymasterId, req.to, req.amount);\n }\n\n /**\n * @dev Cancel a withdrawal request for the paymasterId (Dapp Depositor address)\n */\n function cancelWithdrawalRequest() external {\n delete _requests[msg.sender];\n emit WithdrawalRequestCancelledFor(msg.sender);\n }\n\n function withdrawEth(address payable recipient, uint256 amount) external payable onlyOwner nonReentrant {\n (bool success,) = recipient.call{ value: amount }(\"\");\n if (!success) {\n revert WithdrawalFailed();\n }\n emit EthWithdrawn(recipient, amount);\n }\n\n function withdrawTo(address payable withdrawAddress, uint256 amount) external virtual override {\n (withdrawAddress, amount);\n revert SubmitRequestInstead();\n }\n\n /**\n * @dev get the current deposit for paymasterId (Dapp Depositor address)\n * @param paymasterId dapp identifier\n */\n function getBalance(address paymasterId) external view returns (uint256 balance) {\n balance = paymasterIdBalances[paymasterId];\n }\n\n /**\n * return the hash we're going to sign off-chain (and validate on-chain)\n * this method is called by the off-chain service, to sign the request.\n * it is called on-chain from the validatePaymasterUserOp, to validate the signature.\n * note that this signature covers all fields of the UserOperation, except the \"paymasterAndData\",\n * which will carry the signature itself.\n */\n function getHash(\n PackedUserOperation calldata userOp,\n address paymasterId,\n uint48 validUntil,\n uint48 validAfter,\n uint32 priceMarkup\n )\n public\n view\n returns (bytes32)\n {\n //can't use userOp.hash(), since it contains also the paymasterAndData itself.\n address sender = userOp.getSender();\n return keccak256(\n abi.encode(\n sender,\n userOp.nonce,\n keccak256(userOp.initCode),\n keccak256(userOp.callData),\n userOp.accountGasLimits,\n uint256(bytes32(userOp.paymasterAndData[_PAYMASTER_VALIDATION_GAS_OFFSET:_PAYMASTER_DATA_OFFSET])),\n userOp.preVerificationGas,\n userOp.gasFees,\n block.chainid,\n address(this),\n paymasterId,\n validUntil,\n validAfter,\n priceMarkup\n )\n );\n }\n\n function parsePaymasterAndData(\n bytes calldata paymasterAndData\n )\n public\n pure\n returns (\n address paymasterId,\n uint48 validUntil,\n uint48 validAfter,\n uint32 priceMarkup,\n uint128 paymasterValidationGasLimit,\n uint128 paymasterPostOpGasLimit,\n bytes calldata signature\n )\n {\n unchecked {\n paymasterId = address(bytes20(paymasterAndData[_PAYMASTER_ID_OFFSET:_PAYMASTER_ID_OFFSET + 20]));\n validUntil = uint48(bytes6(paymasterAndData[_PAYMASTER_ID_OFFSET + 20:_PAYMASTER_ID_OFFSET + 26]));\n validAfter = uint48(bytes6(paymasterAndData[_PAYMASTER_ID_OFFSET + 26:_PAYMASTER_ID_OFFSET + 32]));\n priceMarkup = uint32(bytes4(paymasterAndData[_PAYMASTER_ID_OFFSET + 32:_PAYMASTER_ID_OFFSET + 36]));\n paymasterValidationGasLimit =\n uint128(bytes16(paymasterAndData[_PAYMASTER_VALIDATION_GAS_OFFSET:_PAYMASTER_POSTOP_GAS_OFFSET]));\n paymasterPostOpGasLimit =\n uint128(bytes16(paymasterAndData[_PAYMASTER_POSTOP_GAS_OFFSET:_PAYMASTER_DATA_OFFSET]));\n signature = paymasterAndData[_PAYMASTER_ID_OFFSET + 36:];\n }\n }\n\n /// @notice Performs post-operation tasks, such as deducting the sponsored gas cost from the paymasterId's balance\n /// @dev This function is called after a user operation has been executed or reverted.\n /// @param context The context containing the token amount and user sender address.\n /// @param actualGasCost The actual gas cost of the transaction.\n function _postOp(\n PostOpMode,\n bytes calldata context,\n uint256 actualGasCost,\n uint256 actualUserOpFeePerGas\n )\n internal\n override\n {\n (address paymasterId, uint32 priceMarkup, uint256 prechargedAmount) =\n abi.decode(context, (address, uint32, uint256));\n\n // Include unaccountedGas since EP doesn't include this in actualGasCost\n // unaccountedGas = postOpGas + EP overhead gas \n actualGasCost = actualGasCost + (unaccountedGas * actualUserOpFeePerGas);\n // Apply the price markup\n uint256 adjustedGasCost = (actualGasCost * priceMarkup) / _PRICE_DENOMINATOR;\n\n uint256 premium = adjustedGasCost - actualGasCost;\n\n // Add priceMarkup to fee collector balance\n paymasterIdBalances[feeCollector] += premium;\n\n if (prechargedAmount > adjustedGasCost) {\n // If overcharged refund the excess\n paymasterIdBalances[paymasterId] += (prechargedAmount - adjustedGasCost);\n } else {\n // deduct what needs to be deducted from paymasterId\n paymasterIdBalances[paymasterId] -= (adjustedGasCost - prechargedAmount); \n }\n // here adjustedGasCost does not account for gasPenalty. prechargedAmount accounts for penalty with maxGasPenalty\n emit GasBalanceDeducted(paymasterId, adjustedGasCost, premium);\n }\n\n /**\n * @dev verify our external signer signed this request.\n * Adds maxPenalty to the effectiveCost to protect PM.\n * The \"paymasterAndData\" is expected to be the paymaster and a signature over the entire request params.\n * paymasterAndData[:20] : address(this)\n * paymasterAndData[52:72] : paymasterId (dappDepositor)\n * paymasterAndData[72:78] : validUntil\n * paymasterAndData[78:84] : validAfter\n * paymasterAndData[84:88] : priceMarkup\n * paymasterAndData[88:] : signature\n * @param userOp The user operation to validate.\n * @param userOpHash The hash of the user operation.\n * @param requiredPreFund The required pre-fund amount.\n * @return context The context for the paymaster.\n * @return validationData The validation data as per ERC-4337.\n */\n function _validatePaymasterUserOp(\n PackedUserOperation calldata userOp,\n bytes32 userOpHash,\n uint256 requiredPreFund\n )\n internal\n override\n returns (bytes memory context, uint256 validationData)\n {\n (userOpHash);\n (\n address paymasterId,\n uint48 validUntil,\n uint48 validAfter,\n uint32 priceMarkup,\n uint128 paymasterValidationGasLimit,\n uint128 paymasterPostOpGasLimit,\n bytes calldata signature\n ) = parsePaymasterAndData(userOp.paymasterAndData);\n (paymasterValidationGasLimit, paymasterPostOpGasLimit);\n\n //ECDSA library supports both 64 and 65-byte long signatures.\n // we only \"require\" it here so that the revert reason on invalid signature will be of \"VerifyingPaymaster\", and\n // not \"ECDSA\"\n if (signature.length != 64 && signature.length != 65) {\n revert InvalidSignatureLength();\n }\n\n if (unaccountedGas > userOp.unpackPostOpGasLimit()) {\n revert PostOpGasLimitTooLow();\n }\n\n bool validSig = (\n (getHash(userOp, paymasterId, validUntil, validAfter, priceMarkup).toEthSignedMessageHash()).tryRecover(\n signature\n )\n ) == verifyingSigner ? true : false;\n\n //don't revert on signature failure: return SIG_VALIDATION_FAILED\n if (!validSig) {\n return (\"\", _packValidationData(true, validUntil, validAfter));\n }\n\n // Send 1e6 for No markup\n if (priceMarkup > 2e6 || priceMarkup < 1e6) {\n revert InvalidPriceMarkup();\n }\n\n // callGasLimit + paymasterPostOpGas\n uint256 maxPenalty = (\n (\n uint128(uint256(userOp.accountGasLimits))\n + uint128(bytes16(userOp.paymasterAndData[_PAYMASTER_POSTOP_GAS_OFFSET:_PAYMASTER_DATA_OFFSET]))\n ) * 10 * userOp.unpackMaxFeePerGas()\n ) / 100;\n\n // Deduct the max gas cost.\n uint256 effectiveCost =\n (((requiredPreFund + unaccountedGas * userOp.unpackMaxFeePerGas()) * priceMarkup) / _PRICE_DENOMINATOR);\n\n if (effectiveCost + maxPenalty > paymasterIdBalances[paymasterId]) {\n revert InsufficientFundsForPaymasterId();\n }\n\n paymasterIdBalances[paymasterId] -= (effectiveCost + maxPenalty);\n\n context = abi.encode(paymasterId, priceMarkup, effectiveCost);\n\n // no need for other on-chain validation: entire UserOp should have been checked\n // by the external service prior to signing it.\n return (context, _packValidationData(false, validUntil, validAfter));\n }\n\n function _checkConstructorArgs(\n address verifyingSignerArg,\n address feeCollectorArg,\n uint256 unaccountedGasArg\n )\n internal\n view\n {\n if (verifyingSignerArg == address(0)) {\n revert VerifyingSignerCanNotBeZero();\n } else if (_isContract(verifyingSignerArg)) {\n revert VerifyingSignerCanNotBeContract();\n } else if (feeCollectorArg == address(0)) {\n revert FeeCollectorCanNotBeZero();\n } else if (_isContract(feeCollectorArg)) {\n revert FeeCollectorCanNotBeContract();\n } else if (unaccountedGasArg > _UNACCOUNTED_GAS_LIMIT) {\n revert UnaccountedGasTooHigh();\n }\n }\n\n function _getDelay(address paymasterId) internal view returns (uint256) {\n if (_trustedPaymasterIds[paymasterId]) return 0;\n return paymasterIdWithdrawalDelay;\n }\n\n function _withdrawERC20(IERC20 token, address target, uint256 amount) private {\n if (target == address(0)) revert CanNotWithdrawToZeroAddress();\n SafeTransferLib.safeTransfer(address(token), target, amount);\n emit TokensWithdrawn(address(token), target, amount, msg.sender);\n }\n}\n"},"contracts/base/BasePaymaster.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.27;\n\n/* solhint-disable reason-string */\n\nimport { SoladyOwnable } from \"../utils/SoladyOwnable.sol\";\nimport \"@openzeppelin/contracts/utils/introspection/IERC165.sol\";\nimport { IPaymaster } from \"account-abstraction/interfaces/IPaymaster.sol\";\nimport { IEntryPoint } from \"account-abstraction/interfaces/IEntryPoint.sol\";\nimport \"account-abstraction/core/UserOperationLib.sol\";\n\n/**\n * Helper class for creating a paymaster.\n * provides helper methods for staking.\n * Validates that the postOp is called only by the entryPoint.\n */\n\nabstract contract BasePaymaster is IPaymaster, SoladyOwnable {\n IEntryPoint public immutable entryPoint;\n\n uint256 internal constant _PAYMASTER_VALIDATION_GAS_OFFSET = UserOperationLib.PAYMASTER_VALIDATION_GAS_OFFSET;\n uint256 internal constant _PAYMASTER_POSTOP_GAS_OFFSET = UserOperationLib.PAYMASTER_POSTOP_GAS_OFFSET;\n uint256 internal constant _PAYMASTER_DATA_OFFSET = UserOperationLib.PAYMASTER_DATA_OFFSET;\n\n constructor(address owner, IEntryPoint entryPointArg) SoladyOwnable(owner) {\n _validateEntryPointInterface(entryPointArg);\n entryPoint = entryPointArg;\n }\n\n /**\n * Add stake for this paymaster.\n * This method can also carry eth value to add to the current stake.\n * @param unstakeDelaySec - The unstake delay for this paymaster. Can only be increased.\n */\n function addStake(uint32 unstakeDelaySec) external payable onlyOwner {\n entryPoint.addStake{ value: msg.value }(unstakeDelaySec);\n }\n\n /**\n * Unlock the stake, in order to withdraw it.\n * The paymaster can't serve requests once unlocked, until it calls addStake again\n */\n function unlockStake() external onlyOwner {\n entryPoint.unlockStake();\n }\n\n /**\n * Withdraw the entire paymaster's stake.\n * stake must be unlocked first (and then wait for the unstakeDelay to be over)\n * @param withdrawAddress - The address to send withdrawn value.\n */\n function withdrawStake(address payable withdrawAddress) external onlyOwner {\n entryPoint.withdrawStake(withdrawAddress);\n }\n\n /// @inheritdoc IPaymaster\n function postOp(\n PostOpMode mode,\n bytes calldata context,\n uint256 actualGasCost,\n uint256 actualUserOpFeePerGas\n )\n external\n override\n {\n _requireFromEntryPoint();\n _postOp(mode, context, actualGasCost, actualUserOpFeePerGas);\n }\n\n /// @inheritdoc IPaymaster\n function validatePaymasterUserOp(\n PackedUserOperation calldata userOp,\n bytes32 userOpHash,\n uint256 maxCost\n )\n external\n override\n returns (bytes memory context, uint256 validationData)\n {\n _requireFromEntryPoint();\n return _validatePaymasterUserOp(userOp, userOpHash, maxCost);\n }\n\n /**\n * Add a deposit for this paymaster, used for paying for transaction fees.\n */\n function deposit() external payable virtual {\n entryPoint.depositTo{ value: msg.value }(address(this));\n }\n\n /**\n * Withdraw value from the deposit.\n * @param withdrawAddress - Target to send to.\n * @param amount - Amount to withdraw.\n */\n function withdrawTo(address payable withdrawAddress, uint256 amount) external virtual onlyOwner {\n entryPoint.withdrawTo(withdrawAddress, amount);\n }\n\n /**\n * Return current paymaster's deposit on the entryPoint.\n */\n function getDeposit() public view returns (uint256) {\n return entryPoint.balanceOf(address(this));\n }\n\n //sanity check: make sure this EntryPoint was compiled against the same\n // IEntryPoint of this paymaster\n function _validateEntryPointInterface(IEntryPoint entryPointArg) internal virtual {\n require(\n IERC165(address(entryPointArg)).supportsInterface(type(IEntryPoint).interfaceId),\n \"IEntryPoint interface mismatch\"\n );\n }\n\n /**\n * Validate a user operation.\n * @param userOp - The user operation.\n * @param userOpHash - The hash of the user operation.\n * @param maxCost - The maximum cost of the user operation.\n */\n function _validatePaymasterUserOp(\n PackedUserOperation calldata userOp,\n bytes32 userOpHash,\n uint256 maxCost\n )\n internal\n virtual\n returns (bytes memory context, uint256 validationData);\n\n /**\n * Post-operation handler.\n * (verified to be called only through the entryPoint)\n * @dev If subclass returns a non-empty context from validatePaymasterUserOp,\n * it must also implement this method.\n * @param mode - Enum with the following options:\n * opSucceeded - User operation succeeded.\n * opReverted - User op reverted. The paymaster still has to pay for gas.\n * postOpReverted - never passed in a call to postOp().\n * @param context - The context value returned by validatePaymasterUserOp\n * @param actualGasCost - Actual gas used so far (without this postOp call).\n * @param actualUserOpFeePerGas - the gas price this UserOp pays. This value is based on the UserOp's maxFeePerGas\n * and maxPriorityFee (and basefee)\n * It is not the same as tx.gasprice, which is what the bundler pays.\n */\n function _postOp(\n PostOpMode mode,\n bytes calldata context,\n uint256 actualGasCost,\n uint256 actualUserOpFeePerGas\n )\n internal\n virtual\n {\n (mode, context, actualGasCost, actualUserOpFeePerGas); // unused params\n // subclass must override this method if validatePaymasterUserOp returns a context\n revert(\"must override\");\n }\n\n /**\n * Validate the call is made from a valid entrypoint\n */\n function _requireFromEntryPoint() internal virtual {\n require(msg.sender == address(entryPoint), \"Sender not EntryPoint\");\n }\n\n /**\n * Check if address is a contract\n */\n function _isContract(address addr) internal view returns (bool) {\n uint256 size;\n assembly (\"memory-safe\") {\n size := extcodesize(addr)\n }\n return size > 0;\n }\n}\n"},"node_modules/account-abstraction/contracts/core/UserOperationLib.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.23;\n\n/* solhint-disable no-inline-assembly */\n\nimport \"../interfaces/PackedUserOperation.sol\";\nimport {calldataKeccak, min} from \"./Helpers.sol\";\n\n/**\n * Utility functions helpful when working with UserOperation structs.\n */\nlibrary UserOperationLib {\n\n uint256 public constant PAYMASTER_VALIDATION_GAS_OFFSET = 20;\n uint256 public constant PAYMASTER_POSTOP_GAS_OFFSET = 36;\n uint256 public constant PAYMASTER_DATA_OFFSET = 52;\n /**\n * Get sender from user operation data.\n * @param userOp - The user operation data.\n */\n function getSender(\n PackedUserOperation calldata userOp\n ) internal pure returns (address) {\n address data;\n //read sender from userOp, which is first userOp member (saves 800 gas...)\n assembly {\n data := calldataload(userOp)\n }\n return address(uint160(data));\n }\n\n /**\n * Relayer/block builder might submit the TX with higher priorityFee,\n * but the user should not pay above what he signed for.\n * @param userOp - The user operation data.\n */\n function gasPrice(\n PackedUserOperation calldata userOp\n ) internal view returns (uint256) {\n unchecked {\n (uint256 maxPriorityFeePerGas, uint256 maxFeePerGas) = unpackUints(userOp.gasFees);\n if (maxFeePerGas == maxPriorityFeePerGas) {\n //legacy mode (for networks that don't support basefee opcode)\n return maxFeePerGas;\n }\n return min(maxFeePerGas, maxPriorityFeePerGas + block.basefee);\n }\n }\n\n /**\n * Pack the user operation data into bytes for hashing.\n * @param userOp - The user operation data.\n */\n function encode(\n PackedUserOperation calldata userOp\n ) internal pure returns (bytes memory ret) {\n address sender = getSender(userOp);\n uint256 nonce = userOp.nonce;\n bytes32 hashInitCode = calldataKeccak(userOp.initCode);\n bytes32 hashCallData = calldataKeccak(userOp.callData);\n bytes32 accountGasLimits = userOp.accountGasLimits;\n uint256 preVerificationGas = userOp.preVerificationGas;\n bytes32 gasFees = userOp.gasFees;\n bytes32 hashPaymasterAndData = calldataKeccak(userOp.paymasterAndData);\n\n return abi.encode(\n sender, nonce,\n hashInitCode, hashCallData,\n accountGasLimits, preVerificationGas, gasFees,\n hashPaymasterAndData\n );\n }\n\n function unpackUints(\n bytes32 packed\n ) internal pure returns (uint256 high128, uint256 low128) {\n return (uint128(bytes16(packed)), uint128(uint256(packed)));\n }\n\n //unpack just the high 128-bits from a packed value\n function unpackHigh128(bytes32 packed) internal pure returns (uint256) {\n return uint256(packed) >> 128;\n }\n\n // unpack just the low 128-bits from a packed value\n function unpackLow128(bytes32 packed) internal pure returns (uint256) {\n return uint128(uint256(packed));\n }\n\n function unpackMaxPriorityFeePerGas(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return unpackHigh128(userOp.gasFees);\n }\n\n function unpackMaxFeePerGas(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return unpackLow128(userOp.gasFees);\n }\n\n function unpackVerificationGasLimit(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return unpackHigh128(userOp.accountGasLimits);\n }\n\n function unpackCallGasLimit(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return unpackLow128(userOp.accountGasLimits);\n }\n\n function unpackPaymasterVerificationGasLimit(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return uint128(bytes16(userOp.paymasterAndData[PAYMASTER_VALIDATION_GAS_OFFSET : PAYMASTER_POSTOP_GAS_OFFSET]));\n }\n\n function unpackPostOpGasLimit(PackedUserOperation calldata userOp)\n internal pure returns (uint256) {\n return uint128(bytes16(userOp.paymasterAndData[PAYMASTER_POSTOP_GAS_OFFSET : PAYMASTER_DATA_OFFSET]));\n }\n\n function unpackPaymasterStaticFields(\n bytes calldata paymasterAndData\n ) internal pure returns (address paymaster, uint256 validationGasLimit, uint256 postOpGasLimit) {\n return (\n address(bytes20(paymasterAndData[: PAYMASTER_VALIDATION_GAS_OFFSET])),\n uint128(bytes16(paymasterAndData[PAYMASTER_VALIDATION_GAS_OFFSET : PAYMASTER_POSTOP_GAS_OFFSET])),\n uint128(bytes16(paymasterAndData[PAYMASTER_POSTOP_GAS_OFFSET : PAYMASTER_DATA_OFFSET]))\n );\n }\n\n /**\n * Hash the user operation data.\n * @param userOp - The user operation data.\n */\n function hash(\n PackedUserOperation calldata userOp\n ) internal pure returns (bytes32) {\n return keccak256(encode(userOp));\n }\n}\n"},"node_modules/account-abstraction/contracts/core/Helpers.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.23;\n\n/* solhint-disable no-inline-assembly */\n\n\n /*\n * For simulation purposes, validateUserOp (and validatePaymasterUserOp)\n * must return this value in case of signature failure, instead of revert.\n */\nuint256 constant SIG_VALIDATION_FAILED = 1;\n\n\n/*\n * For simulation purposes, validateUserOp (and validatePaymasterUserOp)\n * return this value on success.\n */\nuint256 constant SIG_VALIDATION_SUCCESS = 0;\n\n\n/**\n * Returned data from validateUserOp.\n * validateUserOp returns a uint256, which is created by `_packedValidationData` and\n * parsed by `_parseValidationData`.\n * @param aggregator - address(0) - The account validated the signature by itself.\n * address(1) - The account failed to validate the signature.\n * otherwise - This is an address of a signature aggregator that must\n * be used to validate the signature.\n * @param validAfter - This UserOp is valid only after this timestamp.\n * @param validaUntil - This UserOp is valid only up to this timestamp.\n */\nstruct ValidationData {\n address aggregator;\n uint48 validAfter;\n uint48 validUntil;\n}\n\n/**\n * Extract sigFailed, validAfter, validUntil.\n * Also convert zero validUntil to type(uint48).max.\n * @param validationData - The packed validation data.\n */\nfunction _parseValidationData(\n uint256 validationData\n) pure returns (ValidationData memory data) {\n address aggregator = address(uint160(validationData));\n uint48 validUntil = uint48(validationData >> 160);\n if (validUntil == 0) {\n validUntil = type(uint48).max;\n }\n uint48 validAfter = uint48(validationData >> (48 + 160));\n return ValidationData(aggregator, validAfter, validUntil);\n}\n\n/**\n * Helper to pack the return value for validateUserOp.\n * @param data - The ValidationData to pack.\n */\nfunction _packValidationData(\n ValidationData memory data\n) pure returns (uint256) {\n return\n uint160(data.aggregator) |\n (uint256(data.validUntil) << 160) |\n (uint256(data.validAfter) << (160 + 48));\n}\n\n/**\n * Helper to pack the return value for validateUserOp, when not using an aggregator.\n * @param sigFailed - True for signature failure, false for success.\n * @param validUntil - Last timestamp this UserOperation is valid (or zero for infinite).\n * @param validAfter - First timestamp this UserOperation is valid.\n */\nfunction _packValidationData(\n bool sigFailed,\n uint48 validUntil,\n uint48 validAfter\n) pure returns (uint256) {\n return\n (sigFailed ? 1 : 0) |\n (uint256(validUntil) << 160) |\n (uint256(validAfter) << (160 + 48));\n}\n\n/**\n * keccak function over calldata.\n * @dev copy calldata into memory, do keccak and drop allocated memory. Strangely, this is more efficient than letting solidity do it.\n */\n function calldataKeccak(bytes calldata data) pure returns (bytes32 ret) {\n assembly (\"memory-safe\") {\n let mem := mload(0x40)\n let len := data.length\n calldatacopy(mem, data.offset, len)\n ret := keccak256(mem, len)\n }\n }\n\n\n/**\n * The minimum of two numbers.\n * @param a - First number.\n * @param b - Second number.\n */\n function min(uint256 a, uint256 b) pure returns (uint256) {\n return a < b ? a : b;\n }\n"},"node_modules/solady/src/utils/SignatureCheckerLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Signature verification helper that supports both ECDSA signatures from EOAs\n/// and ERC1271 signatures from smart contract wallets like Argent and Gnosis safe.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SignatureCheckerLib.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/SignatureChecker.sol)\n///\n/// @dev Note:\n/// - The signature checking functions use the ecrecover precompile (0x1).\n/// - The `bytes memory signature` variants use the identity precompile (0x4)\n/// to copy memory internally.\n/// - Unlike ECDSA signatures, contract signatures are revocable.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n/// regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n/// See: https://eips.ethereum.org/EIPS/eip-2098\n/// This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT use signatures as unique identifiers:\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n/// EIP-712 also enables readable signing of typed data for better user safety.\n/// This implementation does NOT check if a signature is non-malleable.\nlibrary SignatureCheckerLib {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* SIGNATURE CHECKING OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n /// First, it will try to validate with `ecrecover`, and if the validation fails,\n /// it will try to validate with ERC1271 on `signer`.\n function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature)\n internal\n view\n returns (bool isValid)\n {\n if (signer == address(0)) return isValid;\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n for {} 1 {} {\n switch mload(signature)\n case 64 {\n let vs := mload(add(signature, 0x40))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n mstore(0x60, mload(add(signature, 0x40))) // `s`.\n }\n default { break }\n mstore(0x00, hash)\n mstore(0x40, mload(add(signature, 0x20))) // `r`.\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n if iszero(isValid) {\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n // Copy the `signature` over.\n let n := add(0x20, mload(signature))\n pop(staticcall(gas(), 4, signature, n, add(m, 0x44), n))\n isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n }\n\n /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n /// First, it will try to validate with `ecrecover`, and if the validation fails,\n /// it will try to validate with ERC1271 on `signer`.\n function isValidSignatureNowCalldata(address signer, bytes32 hash, bytes calldata signature)\n internal\n view\n returns (bool isValid)\n {\n if (signer == address(0)) return isValid;\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n for {} 1 {} {\n switch signature.length\n case 64 {\n let vs := calldataload(add(signature.offset, 0x20))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, calldataload(signature.offset)) // `r`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n calldatacopy(0x40, signature.offset, 0x40) // `r`, `s`.\n }\n default { break }\n mstore(0x00, hash)\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n if iszero(isValid) {\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), signature.length)\n // Copy the `signature` over.\n calldatacopy(add(m, 0x64), signature.offset, signature.length)\n isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n }\n\n /// @dev Returns whether the signature (`r`, `vs`) is valid for `signer` and `hash`.\n /// First, it will try to validate with `ecrecover`, and if the validation fails,\n /// it will try to validate with ERC1271 on `signer`.\n function isValidSignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n internal\n view\n returns (bool isValid)\n {\n if (signer == address(0)) return isValid;\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(0x00, hash)\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, r) // `r`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n\n if iszero(isValid) {\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), 65) // Length of the signature.\n mstore(add(m, 0x64), r) // `r`.\n mstore(add(m, 0x84), mload(0x60)) // `s`.\n mstore8(add(m, 0xa4), mload(0x20)) // `v`.\n isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `signer` and `hash`.\n /// First, it will try to validate with `ecrecover`, and if the validation fails,\n /// it will try to validate with ERC1271 on `signer`.\n function isValidSignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n internal\n view\n returns (bool isValid)\n {\n if (signer == address(0)) return isValid;\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(0x00, hash)\n mstore(0x20, and(v, 0xff)) // `v`.\n mstore(0x40, r) // `r`.\n mstore(0x60, s) // `s`.\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n\n if iszero(isValid) {\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), 65) // Length of the signature.\n mstore(add(m, 0x64), r) // `r`.\n mstore(add(m, 0x84), s) // `s`.\n mstore8(add(m, 0xa4), v) // `v`.\n isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC1271 OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Note: These ERC1271 operations do NOT have an ECDSA fallback.\n\n /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes memory signature)\n internal\n view\n returns (bool isValid)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n // Copy the `signature` over.\n let n := add(0x20, mload(signature))\n pop(staticcall(gas(), 4, signature, n, add(m, 0x44), n))\n isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n\n /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n function isValidERC1271SignatureNowCalldata(\n address signer,\n bytes32 hash,\n bytes calldata signature\n ) internal view returns (bool isValid) {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), signature.length)\n // Copy the `signature` over.\n calldatacopy(add(m, 0x64), signature.offset, signature.length)\n isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n\n /// @dev Returns whether the signature (`r`, `vs`) is valid for `hash`\n /// for an ERC1271 `signer` contract.\n function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n internal\n view\n returns (bool isValid)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), 65) // Length of the signature.\n mstore(add(m, 0x64), r) // `r`.\n mstore(add(m, 0x84), shr(1, shl(1, vs))) // `s`.\n mstore8(add(m, 0xa4), add(shr(255, vs), 27)) // `v`.\n isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n\n /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `hash`\n /// for an ERC1271 `signer` contract.\n function isValidERC1271SignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n internal\n view\n returns (bool isValid)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n let f := shl(224, 0x1626ba7e)\n mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m, 0x04), hash)\n let d := add(m, 0x24)\n mstore(d, 0x40) // The offset of the `signature` in the calldata.\n mstore(add(m, 0x44), 65) // Length of the signature.\n mstore(add(m, 0x64), r) // `r`.\n mstore(add(m, 0x84), s) // `s`.\n mstore8(add(m, 0xa4), v) // `v`.\n isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n isValid := and(eq(mload(d), f), isValid)\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC6492 OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // Note: These ERC6492 operations now include an ECDSA fallback at the very end.\n // The calldata variants are excluded for brevity.\n\n /// @dev Returns whether `signature` is valid for `hash`.\n /// If the signature is postfixed with the ERC6492 magic number, it will attempt to\n /// deploy / prepare the `signer` smart account before doing a regular ERC1271 check.\n /// Note: This function is NOT reentrancy safe.\n function isValidERC6492SignatureNowAllowSideEffects(\n address signer,\n bytes32 hash,\n bytes memory signature\n ) internal returns (bool isValid) {\n /// @solidity memory-safe-assembly\n assembly {\n function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n let m_ := mload(0x40)\n let f_ := shl(224, 0x1626ba7e)\n mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m_, 0x04), hash_)\n let d_ := add(m_, 0x24)\n mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n let n_ := add(0x20, mload(signature_))\n pop(staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_))\n _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n _isValid := and(eq(mload(d_), f_), _isValid)\n }\n let noCode := iszero(extcodesize(signer))\n let n := mload(signature)\n for {} 1 {} {\n if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n break\n }\n let o := add(signature, 0x20) // Signature bytes.\n let d := add(o, mload(add(o, 0x20))) // Factory calldata.\n if noCode {\n if iszero(call(gas(), mload(o), 0, add(d, 0x20), mload(d), codesize(), 0x00)) {\n break\n }\n }\n let s := add(o, mload(add(o, 0x40))) // Inner signature.\n isValid := callIsValidSignature(signer, hash, s)\n if iszero(isValid) {\n if call(gas(), mload(o), 0, add(d, 0x20), mload(d), codesize(), 0x00) {\n noCode := iszero(extcodesize(signer))\n if iszero(noCode) { isValid := callIsValidSignature(signer, hash, s) }\n }\n }\n break\n }\n // Do `ecrecover` fallback if `noCode && !isValid`.\n for {} gt(noCode, isValid) {} {\n switch n\n case 64 {\n let vs := mload(add(signature, 0x40))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n mstore(0x60, mload(add(signature, 0x40))) // `s`.\n }\n default { break }\n let m := mload(0x40)\n mstore(0x00, hash)\n mstore(0x40, mload(add(signature, 0x20))) // `r`.\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n }\n }\n\n /// @dev Returns whether `signature` is valid for `hash`.\n /// If the signature is postfixed with the ERC6492 magic number, it will attempt\n /// to use a reverting verifier to deploy / prepare the `signer` smart account\n /// and do a `isValidSignature` check via the reverting verifier.\n /// Note: This function is reentrancy safe.\n /// The reverting verifier must be deployed.\n /// Otherwise, the function will return false if `signer` is not yet deployed / prepared.\n /// See: https://gist.github.com/Vectorized/846a474c855eee9e441506676800a9ad\n function isValidERC6492SignatureNow(address signer, bytes32 hash, bytes memory signature)\n internal\n returns (bool isValid)\n {\n /// @solidity memory-safe-assembly\n assembly {\n function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n let m_ := mload(0x40)\n let f_ := shl(224, 0x1626ba7e)\n mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n mstore(add(m_, 0x04), hash_)\n let d_ := add(m_, 0x24)\n mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n let n_ := add(0x20, mload(signature_))\n pop(staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_))\n _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n _isValid := and(eq(mload(d_), f_), _isValid)\n }\n let noCode := iszero(extcodesize(signer))\n let n := mload(signature)\n for {} 1 {} {\n if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n break\n }\n if iszero(noCode) {\n let o := add(signature, 0x20) // Signature bytes.\n isValid := callIsValidSignature(signer, hash, add(o, mload(add(o, 0x40))))\n if isValid { break }\n }\n let m := mload(0x40)\n mstore(m, signer)\n mstore(add(m, 0x20), hash)\n let willBeZeroIfRevertingVerifierExists :=\n call(\n gas(), // Remaining gas.\n 0x00007bd799e4A591FeA53f8A8a3E9f931626Ba7e, // Reverting verifier.\n 0, // Send zero ETH.\n m, // Start of memory.\n add(returndatasize(), 0x40), // Length of calldata in memory.\n staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.\n 0x00 // Length of returndata to write.\n )\n isValid := gt(returndatasize(), willBeZeroIfRevertingVerifierExists)\n break\n }\n // Do `ecrecover` fallback if `noCode && !isValid`.\n for {} gt(noCode, isValid) {} {\n switch n\n case 64 {\n let vs := mload(add(signature, 0x40))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n mstore(0x60, mload(add(signature, 0x40))) // `s`.\n }\n default { break }\n let m := mload(0x40)\n mstore(0x00, hash)\n mstore(0x40, mload(add(signature, 0x20))) // `r`.\n let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* HASHING OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n /// This produces a hash corresponding to the one signed with the\n /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n /// JSON-RPC method as part of EIP-191.\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x20, hash) // Store into scratch space for keccak256.\n mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n }\n }\n\n /// @dev Returns an Ethereum Signed Message, created from `s`.\n /// This produces a hash corresponding to the one signed with the\n /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n /// JSON-RPC method as part of EIP-191.\n /// Note: Supports lengths of `s` up to 999999 bytes.\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n let sLength := mload(s)\n let o := 0x20\n mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n mstore(0x00, 0x00)\n // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n for { let temp := sLength } 1 {} {\n o := sub(o, 1)\n mstore8(o, add(48, mod(temp, 10)))\n temp := div(temp, 10)\n if iszero(temp) { break }\n }\n let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n mstore(s, sLength) // Restore the length.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EMPTY CALLDATA HELPERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns an empty calldata bytes.\n function emptySignature() internal pure returns (bytes calldata signature) {\n /// @solidity memory-safe-assembly\n assembly {\n signature.length := 0\n }\n }\n}\n"},"node_modules/solady/src/utils/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Gas optimized ECDSA wrapper.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol)\n///\n/// @dev Note:\n/// - The recovery functions use the ecrecover precompile (0x1).\n/// - As of Solady version 0.0.68, the `recover` variants will revert upon recovery failure.\n/// This is for more safety by default.\n/// Use the `tryRecover` variants if you need to get the zero address back\n/// upon recovery failure instead.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n/// regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n/// See: https://eips.ethereum.org/EIPS/eip-2098\n/// This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT directly use signatures as unique identifiers:\n/// - The recovery operations do NOT check if a signature is non-malleable.\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n/// EIP-712 also enables readable signing of typed data for better user safety.\n/// - If you need a unique hash from a signature, please use the `canonicalHash` functions.\nlibrary ECDSA {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The order of the secp256k1 elliptic curve.\n uint256 internal constant N = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141;\n\n /// @dev `N/2 + 1`. Used for checking the malleability of the signature.\n uint256 private constant _HALF_N_PLUS_1 =\n 0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The signature is invalid.\n error InvalidSignature();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* RECOVERY OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n function recover(bytes32 hash, bytes memory signature) internal view returns (address result) {\n /// @solidity memory-safe-assembly\n assembly {\n for { let m := mload(0x40) } 1 {\n mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n revert(0x1c, 0x04)\n } {\n switch mload(signature)\n case 64 {\n let vs := mload(add(signature, 0x40))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n mstore(0x60, mload(add(signature, 0x40))) // `s`.\n }\n default { continue }\n mstore(0x00, hash)\n mstore(0x40, mload(add(signature, 0x20))) // `r`.\n result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n if returndatasize() { break }\n }\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n function recoverCalldata(bytes32 hash, bytes calldata signature)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n for { let m := mload(0x40) } 1 {\n mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n revert(0x1c, 0x04)\n } {\n switch signature.length\n case 64 {\n let vs := calldataload(add(signature.offset, 0x20))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, calldataload(signature.offset)) // `r`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n }\n default { continue }\n mstore(0x00, hash)\n result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n if returndatasize() { break }\n }\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`,\n /// and the EIP-2098 short form signature defined by `r` and `vs`.\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x00, hash)\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, r)\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n if iszero(returndatasize()) {\n mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`,\n /// and the signature defined by `v`, `r`, `s`.\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x00, hash)\n mstore(0x20, and(v, 0xff))\n mstore(0x40, r)\n mstore(0x60, s)\n result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n if iszero(returndatasize()) {\n mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n revert(0x1c, 0x04)\n }\n mstore(0x60, 0) // Restore the zero slot.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TRY-RECOVER OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // WARNING!\n // These functions will NOT revert upon recovery failure.\n // Instead, they will return the zero address upon recovery failure.\n // It is critical that the returned address is NEVER compared against\n // a zero address (e.g. an uninitialized address variable).\n\n /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n function tryRecover(bytes32 hash, bytes memory signature)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n for { let m := mload(0x40) } 1 {} {\n switch mload(signature)\n case 64 {\n let vs := mload(add(signature, 0x40))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n mstore(0x60, mload(add(signature, 0x40))) // `s`.\n }\n default { break }\n mstore(0x00, hash)\n mstore(0x40, mload(add(signature, 0x20))) // `r`.\n pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n result := mload(xor(0x60, returndatasize()))\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n function tryRecoverCalldata(bytes32 hash, bytes calldata signature)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n for { let m := mload(0x40) } 1 {} {\n switch signature.length\n case 64 {\n let vs := calldataload(add(signature.offset, 0x20))\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, calldataload(signature.offset)) // `r`.\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n }\n case 65 {\n mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n }\n default { break }\n mstore(0x00, hash)\n pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n result := mload(xor(0x60, returndatasize()))\n mstore(0x40, m) // Restore the free memory pointer.\n break\n }\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`,\n /// and the EIP-2098 short form signature defined by `r` and `vs`.\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x00, hash)\n mstore(0x20, add(shr(255, vs), 27)) // `v`.\n mstore(0x40, r)\n mstore(0x60, shr(1, shl(1, vs))) // `s`.\n pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n result := mload(xor(0x60, returndatasize()))\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Recovers the signer's address from a message digest `hash`,\n /// and the signature defined by `v`, `r`, `s`.\n function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n internal\n view\n returns (address result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x00, hash)\n mstore(0x20, and(v, 0xff))\n mstore(0x40, r)\n mstore(0x60, s)\n pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n mstore(0x60, 0) // Restore the zero slot.\n // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n result := mload(xor(0x60, returndatasize()))\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* HASHING OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n /// This produces a hash corresponding to the one signed with the\n /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n /// JSON-RPC method as part of EIP-191.\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x20, hash) // Store into scratch space for keccak256.\n mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n }\n }\n\n /// @dev Returns an Ethereum Signed Message, created from `s`.\n /// This produces a hash corresponding to the one signed with the\n /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n /// JSON-RPC method as part of EIP-191.\n /// Note: Supports lengths of `s` up to 999999 bytes.\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n /// @solidity memory-safe-assembly\n assembly {\n let sLength := mload(s)\n let o := 0x20\n mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n mstore(0x00, 0x00)\n // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n for { let temp := sLength } 1 {} {\n o := sub(o, 1)\n mstore8(o, add(48, mod(temp, 10)))\n temp := div(temp, 10)\n if iszero(temp) { break }\n }\n let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n mstore(s, sLength) // Restore the length.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CANONICAL HASH FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // The following functions returns the hash of the signature in it's canonicalized format,\n // which is the 65-byte `abi.encodePacked(r, s, uint8(v))`, where `v` is either 27 or 28.\n // If `s` is greater than `N / 2` then it will be converted to `N - s`\n // and the `v` value will be flipped.\n // If the signature has an invalid length, or if `v` is invalid,\n // a uniquely corrupt hash will be returned.\n // These functions are useful for \"poor-mans-VRF\".\n\n /// @dev Returns the canonical hash of `signature`.\n function canonicalHash(bytes memory signature) internal pure returns (bytes32 result) {\n // @solidity memory-safe-assembly\n assembly {\n let l := mload(signature)\n for {} 1 {} {\n mstore(0x00, mload(add(signature, 0x20))) // `r`.\n let s := mload(add(signature, 0x40))\n let v := mload(add(signature, 0x41))\n if eq(l, 64) {\n v := add(shr(255, s), 27)\n s := shr(1, shl(1, s))\n }\n if iszero(lt(s, _HALF_N_PLUS_1)) {\n v := xor(v, 7)\n s := sub(N, s)\n }\n mstore(0x21, v)\n mstore(0x20, s)\n result := keccak256(0x00, 0x41)\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n break\n }\n\n // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n if iszero(lt(sub(l, 64), 2)) {\n // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n result := xor(keccak256(add(signature, 0x20), l), 0xd62f1ab2)\n }\n }\n }\n\n /// @dev Returns the canonical hash of `signature`.\n function canonicalHashCalldata(bytes calldata signature)\n internal\n pure\n returns (bytes32 result)\n {\n // @solidity memory-safe-assembly\n assembly {\n for {} 1 {} {\n mstore(0x00, calldataload(signature.offset)) // `r`.\n let s := calldataload(add(signature.offset, 0x20))\n let v := calldataload(add(signature.offset, 0x21))\n if eq(signature.length, 64) {\n v := add(shr(255, s), 27)\n s := shr(1, shl(1, s))\n }\n if iszero(lt(s, _HALF_N_PLUS_1)) {\n v := xor(v, 7)\n s := sub(N, s)\n }\n mstore(0x21, v)\n mstore(0x20, s)\n result := keccak256(0x00, 0x41)\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n break\n }\n // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n if iszero(lt(sub(signature.length, 64), 2)) {\n calldatacopy(mload(0x40), signature.offset, signature.length)\n // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n result := xor(keccak256(mload(0x40), signature.length), 0xd62f1ab2)\n }\n }\n }\n\n /// @dev Returns the canonical hash of `signature`.\n function canonicalHash(bytes32 r, bytes32 vs) internal pure returns (bytes32 result) {\n // @solidity memory-safe-assembly\n assembly {\n mstore(0x00, r) // `r`.\n let v := add(shr(255, vs), 27)\n let s := shr(1, shl(1, vs))\n mstore(0x21, v)\n mstore(0x20, s)\n result := keccak256(0x00, 0x41)\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /// @dev Returns the canonical hash of `signature`.\n function canonicalHash(uint8 v, bytes32 r, bytes32 s) internal pure returns (bytes32 result) {\n // @solidity memory-safe-assembly\n assembly {\n mstore(0x00, r) // `r`.\n if iszero(lt(s, _HALF_N_PLUS_1)) {\n v := xor(v, 7)\n s := sub(N, s)\n }\n mstore(0x21, v)\n mstore(0x20, s)\n result := keccak256(0x00, 0x41)\n mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EMPTY CALLDATA HELPERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns an empty calldata bytes.\n function emptySignature() internal pure returns (bytes calldata signature) {\n /// @solidity memory-safe-assembly\n assembly {\n signature.length := 0\n }\n }\n}\n"},"contracts/common/BiconomySponsorshipPaymasterErrors.sol":{"content":"// SPDX-License-Identifier: LGPL-3.0-only\npragma solidity ^0.8.27;\n\ncontract BiconomySponsorshipPaymasterErrors {\n /**\n * @notice Throws when the paymaster address provided is address(0)\n */\n error PaymasterIdCanNotBeZero();\n\n /**\n * @notice Throws when the 0 has been provided as deposit\n */\n error DepositCanNotBeZero();\n\n /**\n * @notice Throws when the verifiying signer address provided is address(0)\n */\n error VerifyingSignerCanNotBeZero();\n\n /**\n * @notice Throws when the fee collector address provided is address(0)\n */\n error FeeCollectorCanNotBeZero();\n\n /**\n * @notice Throws when the fee collector address provided is a deployed contract\n */\n error FeeCollectorCanNotBeContract();\n\n /**\n * @notice Throws when the fee collector address provided is a deployed contract\n */\n error VerifyingSignerCanNotBeContract();\n\n /**\n * @notice Throws when ETH withdrawal fails\n */\n error WithdrawalFailed();\n\n /**\n * @notice Throws when insufficient funds to withdraw\n */\n error InsufficientFunds();\n\n /**\n * @notice Throws when invalid signature length in paymasterAndData\n */\n error InvalidSignatureLength();\n\n /**\n * @notice Throws when invalid signature length in paymasterAndData\n */\n error InvalidPriceMarkup();\n\n /**\n * @notice Throws when insufficient funds for paymasterid\n */\n error InsufficientFundsForPaymasterId();\n\n /**\n * @notice Throws when calling deposit()\n */\n error UseDepositForInstead();\n\n /**\n * @notice Throws when trying to withdraw to address(0)\n */\n error CanNotWithdrawToZeroAddress();\n\n /**\n * @notice Throws when trying to withdraw zero amount\n */\n error CanNotWithdrawZeroAmount();\n\n /**\n * @notice Throws when no request has been submitted\n */\n error NoRequestSubmitted();\n\n /**\n * @notice Throws when trying unaccountedGas is too high\n */\n error UnaccountedGasTooHigh();\n\n /**\n * @notice Throws when postOp gas limit is too low\n */\n error PostOpGasLimitTooLow();\n\n /**\n * @notice Thrown when deposit is too low to reach minDeposit\n */\n error LowDeposit();\n\n /**\n * @notice Thrown when trying to withdraw more than the balance\n */\n error InsufficientFundsInGasTank();\n\n /**\n * @notice Thrown when trying to execute withdrawal request before delay has passed\n */\n error RequestNotClearedYet(uint256 clearanceTime);\n\n /**\n * @notice Thrown when trying to directly withdraw instead of submitting a request\n */\n error SubmitRequestInstead();\n\n /**\n * @notice Thrown when the array lengths are not equal\n */\n error InvalidArrayLengths();\n}\n"},"node_modules/@openzeppelin/contracts/utils/ReentrancyGuardTransient.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuardTransient.sol)\n\npragma solidity ^0.8.24;\n\nimport {TransientSlot} from \"./TransientSlot.sol\";\n\n/**\n * @dev Variant of {ReentrancyGuard} that uses transient storage.\n *\n * NOTE: This variant only works on networks where EIP-1153 is available.\n *\n * _Available since v5.1._\n */\nabstract contract ReentrancyGuardTransient {\n using TransientSlot for *;\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ReentrancyGuard\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant REENTRANCY_GUARD_STORAGE =\n 0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\n\n /**\n * @dev Unauthorized reentrant call.\n */\n error ReentrancyGuardReentrantCall();\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and making it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n _nonReentrantBefore();\n _;\n _nonReentrantAfter();\n }\n\n function _nonReentrantBefore() private {\n // On the first call to nonReentrant, _status will be NOT_ENTERED\n if (_reentrancyGuardEntered()) {\n revert ReentrancyGuardReentrantCall();\n }\n\n // Any calls to nonReentrant after this point will fail\n REENTRANCY_GUARD_STORAGE.asBoolean().tstore(true);\n }\n\n function _nonReentrantAfter() private {\n REENTRANCY_GUARD_STORAGE.asBoolean().tstore(false);\n }\n\n /**\n * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n * `nonReentrant` function in the call stack.\n */\n function _reentrancyGuardEntered() internal view returns (bool) {\n return REENTRANCY_GUARD_STORAGE.asBoolean().tload();\n }\n}\n"},"node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},"node_modules/solady/src/utils/SafeTransferLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Permit2 operations from (https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\nlibrary SafeTransferLib {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ETH transfer has failed.\n error ETHTransferFailed();\n\n /// @dev The ERC20 `transferFrom` has failed.\n error TransferFromFailed();\n\n /// @dev The ERC20 `transfer` has failed.\n error TransferFailed();\n\n /// @dev The ERC20 `approve` has failed.\n error ApproveFailed();\n\n /// @dev The Permit2 operation has failed.\n error Permit2Failed();\n\n /// @dev The Permit2 amount must be less than `2**160 - 1`.\n error Permit2AmountOverflow();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CONSTANTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n /// storage reads and writes, but low enough to prevent griefing.\n uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n /// @dev The unique EIP-712 domain domain separator for the DAI token contract.\n bytes32 internal constant DAI_DOMAIN_SEPARATOR =\n 0xdbb8cf42e1ecb028be3f3dbc922e1d878b963f411dc388ced501601c60f7c6f7;\n\n /// @dev The address for the WETH9 contract on Ethereum mainnet.\n address internal constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;\n\n /// @dev The canonical Permit2 address.\n /// [Github](https://github.com/Uniswap/permit2)\n /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)\n address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ETH OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n //\n // The regular variants:\n // - Forwards all remaining gas to the target.\n // - Reverts if the target reverts.\n // - Reverts if the current contract has insufficient balance.\n //\n // The force variants:\n // - Forwards with an optional gas stipend\n // (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n // - If the target reverts, or if the gas stipend is exhausted,\n // creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n // Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n // - Reverts if the current contract has insufficient balance.\n //\n // The try variants:\n // - Forwards with a mandatory gas stipend.\n // - Instead of reverting, returns whether the transfer succeeded.\n\n /// @dev Sends `amount` (in wei) ETH to `to`.\n function safeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`.\n function safeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // Transfer all the ETH and check if it succeeded or not.\n if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferETH(address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n if lt(selfbalance(), amount) {\n mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n revert(0x1c, 0x04)\n }\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n function forceSafeTransferAllETH(address to) internal {\n /// @solidity memory-safe-assembly\n assembly {\n // forgefmt: disable-next-item\n if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n mstore(0x00, to) // Store the address in scratch space.\n mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n }\n }\n }\n\n /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n function trySafeTransferAllETH(address to, uint256 gasStipend)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* ERC20 OPERATIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have at least `amount` approved for\n /// the current contract to manage.\n function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, amount) // Store the `amount` argument.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n ///\n /// The `from` account must have at least `amount` approved for the current contract to manage.\n function trySafeTransferFrom(address token, address from, address to, uint256 amount)\n internal\n returns (bool success)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x60, amount) // Store the `amount` argument.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n success := lt(or(iszero(extcodesize(token)), returndatasize()), success)\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from `from` to `to`.\n /// Reverts upon failure.\n ///\n /// The `from` account must have their entire balance approved for the current contract to manage.\n function safeTransferAllFrom(address token, address from, address to)\n internal\n returns (uint256 amount)\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40) // Cache the free memory pointer.\n mstore(0x40, to) // Store the `to` argument.\n mstore(0x2c, shl(96, from)) // Store the `from` argument.\n mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n )\n ) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n // Perform the transfer, reverting upon failure.\n let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x60, 0) // Restore the zero slot to zero.\n mstore(0x40, m) // Restore the free memory pointer.\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransfer(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n /// Reverts upon failure.\n function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n mstore(0x20, address()) // Store the address of the current contract.\n // Read the balance, reverting upon failure.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n )\n ) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n mstore(0x14, to) // Store the `to` argument.\n amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n // Perform the transfer, reverting upon failure.\n let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// Reverts upon failure.\n function safeApprove(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n /// then retries the approval again (some tokens, e.g. USDT, requires this).\n /// Reverts upon failure.\n function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, to) // Store the `to` argument.\n mstore(0x34, amount) // Store the `amount` argument.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n // Perform the approval, retrying upon failure.\n let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x34, 0) // Store 0 for the `amount`.\n mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n mstore(0x34, amount) // Store back the original `amount`.\n // Retry the approval, reverting upon failure.\n success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n if iszero(and(eq(mload(0x00), 1), success)) {\n // Check the `extcodesize` again just in case the token selfdestructs lol.\n if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n }\n mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n }\n }\n\n /// @dev Returns the amount of ERC20 `token` owned by `account`.\n /// Returns zero if the `token` does not exist.\n function balanceOf(address token, address account) internal view returns (uint256 amount) {\n /// @solidity memory-safe-assembly\n assembly {\n mstore(0x14, account) // Store the `account` argument.\n mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n amount :=\n mul( // The arguments of `mul` are evaluated from right to left.\n mload(0x20),\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n )\n )\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n /// If the initial attempt fails, try to use Permit2 to transfer the token.\n /// Reverts upon failure.\n ///\n /// The `from` account must have at least `amount` approved for the current contract to manage.\n function safeTransferFrom2(address token, address from, address to, uint256 amount) internal {\n if (!trySafeTransferFrom(token, from, to, amount)) {\n permit2TransferFrom(token, from, to, amount);\n }\n }\n\n /// @dev Sends `amount` of ERC20 `token` from `from` to `to` via Permit2.\n /// Reverts upon failure.\n function permit2TransferFrom(address token, address from, address to, uint256 amount)\n internal\n {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(add(m, 0x74), shr(96, shl(96, token)))\n mstore(add(m, 0x54), amount)\n mstore(add(m, 0x34), to)\n mstore(add(m, 0x20), shl(96, from))\n // `transferFrom(address,address,uint160,address)`.\n mstore(m, 0x36c78516000000000000000000000000)\n let p := PERMIT2\n let exists := eq(chainid(), 1)\n if iszero(exists) { exists := iszero(iszero(extcodesize(p))) }\n if iszero(\n and(\n call(gas(), p, 0, add(m, 0x10), 0x84, codesize(), 0x00),\n lt(iszero(extcodesize(token)), exists) // Token has code and Permit2 exists.\n )\n ) {\n mstore(0x00, 0x7939f4248757f0fd) // `TransferFromFailed()` or `Permit2AmountOverflow()`.\n revert(add(0x18, shl(2, iszero(iszero(shr(160, amount))))), 0x04)\n }\n }\n }\n\n /// @dev Permit a user to spend a given amount of\n /// another user's tokens via native EIP-2612 permit if possible, falling\n /// back to Permit2 if native permit fails or is not implemented on the token.\n function permit2(\n address token,\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n bool success;\n /// @solidity memory-safe-assembly\n assembly {\n for {} shl(96, xor(token, WETH9)) {} {\n mstore(0x00, 0x3644e515) // `DOMAIN_SEPARATOR()`.\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n lt(iszero(mload(0x00)), eq(returndatasize(), 0x20)), // Returns 1 non-zero word.\n // Gas stipend to limit gas burn for tokens that don't refund gas when\n // an non-existing function is called. 5K should be enough for a SLOAD.\n staticcall(5000, token, 0x1c, 0x04, 0x00, 0x20)\n )\n ) { break }\n // After here, we can be sure that token is a contract.\n let m := mload(0x40)\n mstore(add(m, 0x34), spender)\n mstore(add(m, 0x20), shl(96, owner))\n mstore(add(m, 0x74), deadline)\n if eq(mload(0x00), DAI_DOMAIN_SEPARATOR) {\n mstore(0x14, owner)\n mstore(0x00, 0x7ecebe00000000000000000000000000) // `nonces(address)`.\n mstore(add(m, 0x94), staticcall(gas(), token, 0x10, 0x24, add(m, 0x54), 0x20))\n mstore(m, 0x8fcbaf0c000000000000000000000000) // `IDAIPermit.permit`.\n // `nonces` is already at `add(m, 0x54)`.\n // `1` is already stored at `add(m, 0x94)`.\n mstore(add(m, 0xb4), and(0xff, v))\n mstore(add(m, 0xd4), r)\n mstore(add(m, 0xf4), s)\n success := call(gas(), token, 0, add(m, 0x10), 0x104, codesize(), 0x00)\n break\n }\n mstore(m, 0xd505accf000000000000000000000000) // `IERC20Permit.permit`.\n mstore(add(m, 0x54), amount)\n mstore(add(m, 0x94), and(0xff, v))\n mstore(add(m, 0xb4), r)\n mstore(add(m, 0xd4), s)\n success := call(gas(), token, 0, add(m, 0x10), 0xe4, codesize(), 0x00)\n break\n }\n }\n if (!success) simplePermit2(token, owner, spender, amount, deadline, v, r, s);\n }\n\n /// @dev Simple permit on the Permit2 contract.\n function simplePermit2(\n address token,\n address owner,\n address spender,\n uint256 amount,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n /// @solidity memory-safe-assembly\n assembly {\n let m := mload(0x40)\n mstore(m, 0x927da105) // `allowance(address,address,address)`.\n {\n let addressMask := shr(96, not(0))\n mstore(add(m, 0x20), and(addressMask, owner))\n mstore(add(m, 0x40), and(addressMask, token))\n mstore(add(m, 0x60), and(addressMask, spender))\n mstore(add(m, 0xc0), and(addressMask, spender))\n }\n let p := mul(PERMIT2, iszero(shr(160, amount)))\n if iszero(\n and( // The arguments of `and` are evaluated from right to left.\n gt(returndatasize(), 0x5f), // Returns 3 words: `amount`, `expiration`, `nonce`.\n staticcall(gas(), p, add(m, 0x1c), 0x64, add(m, 0x60), 0x60)\n )\n ) {\n mstore(0x00, 0x6b836e6b8757f0fd) // `Permit2Failed()` or `Permit2AmountOverflow()`.\n revert(add(0x18, shl(2, iszero(p))), 0x04)\n }\n mstore(m, 0x2b67b570) // `Permit2.permit` (PermitSingle variant).\n // `owner` is already `add(m, 0x20)`.\n // `token` is already at `add(m, 0x40)`.\n mstore(add(m, 0x60), amount)\n mstore(add(m, 0x80), 0xffffffffffff) // `expiration = type(uint48).max`.\n // `nonce` is already at `add(m, 0xa0)`.\n // `spender` is already at `add(m, 0xc0)`.\n mstore(add(m, 0xe0), deadline)\n mstore(add(m, 0x100), 0x100) // `signature` offset.\n mstore(add(m, 0x120), 0x41) // `signature` length.\n mstore(add(m, 0x140), r)\n mstore(add(m, 0x160), s)\n mstore(add(m, 0x180), shl(248, v))\n if iszero( // Revert if token does not have code, or if the call fails.\n mul(extcodesize(token), call(gas(), p, 0, add(m, 0x1c), 0x184, codesize(), 0x00))) {\n mstore(0x00, 0x6b836e6b) // `Permit2Failed()`.\n revert(0x1c, 0x04)\n }\n }\n }\n}\n"},"contracts/interfaces/IBiconomySponsorshipPaymaster.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.27;\n\nimport \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport { PackedUserOperation } from \"account-abstraction/core/UserOperationLib.sol\";\n\ninterface IBiconomySponsorshipPaymaster {\n struct WithdrawalRequest {\n uint256 amount;\n address to;\n uint256 requestSubmittedTimestamp;\n }\n\n event UnaccountedGasChanged(uint256 indexed oldValue, uint256 indexed newValue);\n event FixedPriceMarkupChanged(uint256 indexed oldValue, uint256 indexed newValue);\n event VerifyingSignerChanged(address indexed oldSigner, address indexed newSigner, address indexed actor);\n event FeeCollectorChanged(address indexed oldFeeCollector, address indexed newFeeCollector, address indexed actor);\n event GasDeposited(address indexed _paymasterId, uint256 indexed _value);\n event GasWithdrawn(address indexed _paymasterId, address indexed _to, uint256 indexed _value);\n event GasBalanceDeducted(address indexed _paymasterId, uint256 indexed _charge, uint256 indexed _premium);\n event Received(address indexed sender, uint256 value);\n event TokensWithdrawn(address indexed token, address indexed to, uint256 indexed amount, address actor);\n event WithdrawalRequestSubmitted(address withdrawAddress, uint256 amount);\n event WithdrawalRequestCancelledFor(address paymasterId);\n event TrustedPaymasterIdSet(address indexed paymasterId, bool isTrusted);\n event EthWithdrawn(address indexed recipient, uint256 indexed amount);\n event MinDepositChanged(uint256 indexed oldValue, uint256 indexed newValue);\n\n function depositFor(address paymasterId) external payable;\n\n function setSigner(address newVerifyingSigner) external payable;\n\n function setFeeCollector(address newFeeCollector) external payable;\n\n function setUnaccountedGas(uint256 value) external payable;\n\n function withdrawERC20(IERC20 token, address target, uint256 amount) external;\n\n function withdrawEth(address payable recipient, uint256 amount) external payable;\n\n function getBalance(address paymasterId) external view returns (uint256 balance);\n\n function getHash(\n PackedUserOperation calldata userOp,\n address paymasterId,\n uint48 validUntil,\n uint48 validAfter,\n uint32 priceMarkup\n )\n external\n view\n returns (bytes32);\n\n function parsePaymasterAndData(\n bytes calldata paymasterAndData\n )\n external\n pure\n returns (\n address paymasterId,\n uint48 validUntil,\n uint48 validAfter,\n uint32 priceMarkup,\n uint128 paymasterValidationGasLimit,\n uint128 paymasterPostOpGasLimit,\n bytes calldata signature\n );\n}\n"},"contracts/utils/SoladyOwnable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.27;\n\nimport { Ownable } from \"solady/auth/Ownable.sol\";\n\ncontract SoladyOwnable is Ownable {\n constructor(address _owner) Ownable() {\n assembly {\n if iszero(shl(96, _owner)) {\n mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n revert(0x1c, 0x04)\n }\n }\n _initializeOwner(_owner);\n }\n}\n"},"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"node_modules/account-abstraction/contracts/interfaces/IPaymaster.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.7.5;\n\nimport \"./PackedUserOperation.sol\";\n\n/**\n * The interface exposed by a paymaster contract, who agrees to pay the gas for user's operations.\n * A paymaster must hold a stake to cover the required entrypoint stake and also the gas for the transaction.\n */\ninterface IPaymaster {\n enum PostOpMode {\n // User op succeeded.\n opSucceeded,\n // User op reverted. Still has to pay for gas.\n opReverted,\n // Only used internally in the EntryPoint (cleanup after postOp reverts). Never calling paymaster with this value\n postOpReverted\n }\n\n /**\n * Payment validation: check if paymaster agrees to pay.\n * Must verify sender is the entryPoint.\n * Revert to reject this request.\n * Note that bundlers will reject this method if it changes the state, unless the paymaster is trusted (whitelisted).\n * The paymaster pre-pays using its deposit, and receive back a refund after the postOp method returns.\n * @param userOp - The user operation.\n * @param userOpHash - Hash of the user's request data.\n * @param maxCost - The maximum cost of this transaction (based on maximum gas and gas price from userOp).\n * @return context - Value to send to a postOp. Zero length to signify postOp is not required.\n * @return validationData - Signature and time-range of this operation, encoded the same as the return\n * value of validateUserOperation.\n * <20-byte> sigAuthorizer - 0 for valid signature, 1 to mark signature failure,\n * other values are invalid for paymaster.\n * <6-byte> validUntil - last timestamp this operation is valid. 0 for \"indefinite\"\n * <6-byte> validAfter - first timestamp this operation is valid\n * Note that the validation code cannot use block.timestamp (or block.number) directly.\n */\n function validatePaymasterUserOp(\n PackedUserOperation calldata userOp,\n bytes32 userOpHash,\n uint256 maxCost\n ) external returns (bytes memory context, uint256 validationData);\n\n /**\n * Post-operation handler.\n * Must verify sender is the entryPoint.\n * @param mode - Enum with the following options:\n * opSucceeded - User operation succeeded.\n * opReverted - User op reverted. The paymaster still has to pay for gas.\n * postOpReverted - never passed in a call to postOp().\n * @param context - The context value returned by validatePaymasterUserOp\n * @param actualGasCost - Actual gas used so far (without this postOp call).\n * @param actualUserOpFeePerGas - the gas price this UserOp pays. This value is based on the UserOp's maxFeePerGas\n * and maxPriorityFee (and basefee)\n * It is not the same as tx.gasprice, which is what the bundler pays.\n */\n function postOp(\n PostOpMode mode,\n bytes calldata context,\n uint256 actualGasCost,\n uint256 actualUserOpFeePerGas\n ) external;\n}\n"},"node_modules/account-abstraction/contracts/interfaces/IEntryPoint.sol":{"content":"/**\n ** Account-Abstraction (EIP-4337) singleton EntryPoint implementation.\n ** Only one instance required on each chain.\n **/\n// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.7.5;\n\n/* solhint-disable avoid-low-level-calls */\n/* solhint-disable no-inline-assembly */\n/* solhint-disable reason-string */\n\nimport \"./PackedUserOperation.sol\";\nimport \"./IStakeManager.sol\";\nimport \"./IAggregator.sol\";\nimport \"./INonceManager.sol\";\n\ninterface IEntryPoint is IStakeManager, INonceManager {\n /***\n * An event emitted after each successful request.\n * @param userOpHash - Unique identifier for the request (hash its entire content, except signature).\n * @param sender - The account that generates this request.\n * @param paymaster - If non-null, the paymaster that pays for this request.\n * @param nonce - The nonce value from the request.\n * @param success - True if the sender transaction succeeded, false if reverted.\n * @param actualGasCost - Actual amount paid (by account or paymaster) for this UserOperation.\n * @param actualGasUsed - Total gas used by this UserOperation (including preVerification, creation,\n * validation and execution).\n */\n event UserOperationEvent(\n bytes32 indexed userOpHash,\n address indexed sender,\n address indexed paymaster,\n uint256 nonce,\n bool success,\n uint256 actualGasCost,\n uint256 actualGasUsed\n );\n\n /**\n * Account \"sender\" was deployed.\n * @param userOpHash - The userOp that deployed this account. UserOperationEvent will follow.\n * @param sender - The account that is deployed\n * @param factory - The factory used to deploy this account (in the initCode)\n * @param paymaster - The paymaster used by this UserOp\n */\n event AccountDeployed(\n bytes32 indexed userOpHash,\n address indexed sender,\n address factory,\n address paymaster\n );\n\n /**\n * An event emitted if the UserOperation \"callData\" reverted with non-zero length.\n * @param userOpHash - The request unique identifier.\n * @param sender - The sender of this request.\n * @param nonce - The nonce used in the request.\n * @param revertReason - The return bytes from the (reverted) call to \"callData\".\n */\n event UserOperationRevertReason(\n bytes32 indexed userOpHash,\n address indexed sender,\n uint256 nonce,\n bytes revertReason\n );\n\n /**\n * An event emitted if the UserOperation Paymaster's \"postOp\" call reverted with non-zero length.\n * @param userOpHash - The request unique identifier.\n * @param sender - The sender of this request.\n * @param nonce - The nonce used in the request.\n * @param revertReason - The return bytes from the (reverted) call to \"callData\".\n */\n event PostOpRevertReason(\n bytes32 indexed userOpHash,\n address indexed sender,\n uint256 nonce,\n bytes revertReason\n );\n\n /**\n * UserOp consumed more than prefund. The UserOperation is reverted, and no refund is made.\n * @param userOpHash - The request unique identifier.\n * @param sender - The sender of this request.\n * @param nonce - The nonce used in the request.\n */\n event UserOperationPrefundTooLow(\n bytes32 indexed userOpHash,\n address indexed sender,\n uint256 nonce\n );\n\n /**\n * An event emitted by handleOps(), before starting the execution loop.\n * Any event emitted before this event, is part of the validation.\n */\n event BeforeExecution();\n\n /**\n * Signature aggregator used by the following UserOperationEvents within this bundle.\n * @param aggregator - The aggregator used for the following UserOperationEvents.\n */\n event SignatureAggregatorChanged(address indexed aggregator);\n\n /**\n * A custom revert error of handleOps, to identify the offending op.\n * Should be caught in off-chain handleOps simulation and not happen on-chain.\n * Useful for mitigating DoS attempts against batchers or for troubleshooting of factory/account/paymaster reverts.\n * NOTE: If simulateValidation passes successfully, there should be no reason for handleOps to fail on it.\n * @param opIndex - Index into the array of ops to the failed one (in simulateValidation, this is always zero).\n * @param reason - Revert reason. The string starts with a unique code \"AAmn\",\n * where \"m\" is \"1\" for factory, \"2\" for account and \"3\" for paymaster issues,\n * so a failure can be attributed to the correct entity.\n */\n error FailedOp(uint256 opIndex, string reason);\n\n /**\n * A custom revert error of handleOps, to report a revert by account or paymaster.\n * @param opIndex - Index into the array of ops to the failed one (in simulateValidation, this is always zero).\n * @param reason - Revert reason. see FailedOp(uint256,string), above\n * @param inner - data from inner cought revert reason\n * @dev note that inner is truncated to 2048 bytes\n */\n error FailedOpWithRevert(uint256 opIndex, string reason, bytes inner);\n\n error PostOpReverted(bytes returnData);\n\n /**\n * Error case when a signature aggregator fails to verify the aggregated signature it had created.\n * @param aggregator The aggregator that failed to verify the signature\n */\n error SignatureValidationFailed(address aggregator);\n\n // Return value of getSenderAddress.\n error SenderAddressResult(address sender);\n\n // UserOps handled, per aggregator.\n struct UserOpsPerAggregator {\n PackedUserOperation[] userOps;\n // Aggregator address\n IAggregator aggregator;\n // Aggregated signature\n bytes signature;\n }\n\n /**\n * Execute a batch of UserOperations.\n * No signature aggregator is used.\n * If any account requires an aggregator (that is, it returned an aggregator when\n * performing simulateValidation), then handleAggregatedOps() must be used instead.\n * @param ops - The operations to execute.\n * @param beneficiary - The address to receive the fees.\n */\n function handleOps(\n PackedUserOperation[] calldata ops,\n address payable beneficiary\n ) external;\n\n /**\n * Execute a batch of UserOperation with Aggregators\n * @param opsPerAggregator - The operations to execute, grouped by aggregator (or address(0) for no-aggregator accounts).\n * @param beneficiary - The address to receive the fees.\n */\n function handleAggregatedOps(\n UserOpsPerAggregator[] calldata opsPerAggregator,\n address payable beneficiary\n ) external;\n\n /**\n * Generate a request Id - unique identifier for this request.\n * The request ID is a hash over the content of the userOp (except the signature), the entrypoint and the chainid.\n * @param userOp - The user operation to generate the request ID for.\n * @return hash the hash of this UserOperation\n */\n function getUserOpHash(\n PackedUserOperation calldata userOp\n ) external view returns (bytes32);\n\n /**\n * Gas and return values during simulation.\n * @param preOpGas - The gas used for validation (including preValidationGas)\n * @param prefund - The required prefund for this operation\n * @param accountValidationData - returned validationData from account.\n * @param paymasterValidationData - return validationData from paymaster.\n * @param paymasterContext - Returned by validatePaymasterUserOp (to be passed into postOp)\n */\n struct ReturnInfo {\n uint256 preOpGas;\n uint256 prefund;\n uint256 accountValidationData;\n uint256 paymasterValidationData;\n bytes paymasterContext;\n }\n\n /**\n * Returned aggregated signature info:\n * The aggregator returned by the account, and its current stake.\n */\n struct AggregatorStakeInfo {\n address aggregator;\n StakeInfo stakeInfo;\n }\n\n /**\n * Get counterfactual sender address.\n * Calculate the sender contract address that will be generated by the initCode and salt in the UserOperation.\n * This method always revert, and returns the address in SenderAddressResult error\n * @param initCode - The constructor code to be passed into the UserOperation.\n */\n function getSenderAddress(bytes memory initCode) external;\n\n error DelegateAndRevert(bool success, bytes ret);\n\n /**\n * Helper method for dry-run testing.\n * @dev calling this method, the EntryPoint will make a delegatecall to the given data, and report (via revert) the result.\n * The method always revert, so is only useful off-chain for dry run calls, in cases where state-override to replace\n * actual EntryPoint code is less convenient.\n * @param target a target contract to make a delegatecall from entrypoint\n * @param data data to pass to target in a delegatecall\n */\n function delegateAndRevert(address target, bytes calldata data) external;\n}\n"},"node_modules/account-abstraction/contracts/interfaces/PackedUserOperation.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.7.5;\n\n/**\n * User Operation struct\n * @param sender - The sender account of this request.\n * @param nonce - Unique value the sender uses to verify it is not a replay.\n * @param initCode - If set, the account contract will be created by this constructor/\n * @param callData - The method call to execute on this account.\n * @param accountGasLimits - Packed gas limits for validateUserOp and gas limit passed to the callData method call.\n * @param preVerificationGas - Gas not calculated by the handleOps method, but added to the gas paid.\n * Covers batch overhead.\n * @param gasFees - packed gas fields maxPriorityFeePerGas and maxFeePerGas - Same as EIP-1559 gas parameters.\n * @param paymasterAndData - If set, this field holds the paymaster address, verification gas limit, postOp gas limit and paymaster-specific extra data\n * The paymaster will pay for the transaction instead of the sender.\n * @param signature - Sender-verified signature over the entire request, the EntryPoint address and the chain ID.\n */\nstruct PackedUserOperation {\n address sender;\n uint256 nonce;\n bytes initCode;\n bytes callData;\n bytes32 accountGasLimits;\n uint256 preVerificationGas;\n bytes32 gasFees;\n bytes paymasterAndData;\n bytes signature;\n}\n"},"node_modules/@openzeppelin/contracts/utils/TransientSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/TransientSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/TransientSlot.js.\n\npragma solidity ^0.8.24;\n\n/**\n * @dev Library for reading and writing value-types to specific transient storage slots.\n *\n * Transient slots are often used to store temporary values that are removed after the current transaction.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * * Example reading and writing values using transient storage:\n * ```solidity\n * contract Lock {\n * using TransientSlot for *;\n *\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\n * bytes32 internal constant _LOCK_SLOT = 0xf4678858b2b588224636b8522b729e7722d32fc491da849ed75b3fdf3c84f542;\n *\n * modifier locked() {\n * require(!_LOCK_SLOT.asBoolean().tload());\n *\n * _LOCK_SLOT.asBoolean().tstore(true);\n * _;\n * _LOCK_SLOT.asBoolean().tstore(false);\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\n */\nlibrary TransientSlot {\n /**\n * @dev UDVT that represent a slot holding a address.\n */\n type AddressSlot is bytes32;\n\n /**\n * @dev Cast an arbitrary slot to a AddressSlot.\n */\n function asAddress(bytes32 slot) internal pure returns (AddressSlot) {\n return AddressSlot.wrap(slot);\n }\n\n /**\n * @dev UDVT that represent a slot holding a bool.\n */\n type BooleanSlot is bytes32;\n\n /**\n * @dev Cast an arbitrary slot to a BooleanSlot.\n */\n function asBoolean(bytes32 slot) internal pure returns (BooleanSlot) {\n return BooleanSlot.wrap(slot);\n }\n\n /**\n * @dev UDVT that represent a slot holding a bytes32.\n */\n type Bytes32Slot is bytes32;\n\n /**\n * @dev Cast an arbitrary slot to a Bytes32Slot.\n */\n function asBytes32(bytes32 slot) internal pure returns (Bytes32Slot) {\n return Bytes32Slot.wrap(slot);\n }\n\n /**\n * @dev UDVT that represent a slot holding a uint256.\n */\n type Uint256Slot is bytes32;\n\n /**\n * @dev Cast an arbitrary slot to a Uint256Slot.\n */\n function asUint256(bytes32 slot) internal pure returns (Uint256Slot) {\n return Uint256Slot.wrap(slot);\n }\n\n /**\n * @dev UDVT that represent a slot holding a int256.\n */\n type Int256Slot is bytes32;\n\n /**\n * @dev Cast an arbitrary slot to a Int256Slot.\n */\n function asInt256(bytes32 slot) internal pure returns (Int256Slot) {\n return Int256Slot.wrap(slot);\n }\n\n /**\n * @dev Load the value held at location `slot` in transient storage.\n */\n function tload(AddressSlot slot) internal view returns (address value) {\n assembly (\"memory-safe\") {\n value := tload(slot)\n }\n }\n\n /**\n * @dev Store `value` at location `slot` in transient storage.\n */\n function tstore(AddressSlot slot, address value) internal {\n assembly (\"memory-safe\") {\n tstore(slot, value)\n }\n }\n\n /**\n * @dev Load the value held at location `slot` in transient storage.\n */\n function tload(BooleanSlot slot) internal view returns (bool value) {\n assembly (\"memory-safe\") {\n value := tload(slot)\n }\n }\n\n /**\n * @dev Store `value` at location `slot` in transient storage.\n */\n function tstore(BooleanSlot slot, bool value) internal {\n assembly (\"memory-safe\") {\n tstore(slot, value)\n }\n }\n\n /**\n * @dev Load the value held at location `slot` in transient storage.\n */\n function tload(Bytes32Slot slot) internal view returns (bytes32 value) {\n assembly (\"memory-safe\") {\n value := tload(slot)\n }\n }\n\n /**\n * @dev Store `value` at location `slot` in transient storage.\n */\n function tstore(Bytes32Slot slot, bytes32 value) internal {\n assembly (\"memory-safe\") {\n tstore(slot, value)\n }\n }\n\n /**\n * @dev Load the value held at location `slot` in transient storage.\n */\n function tload(Uint256Slot slot) internal view returns (uint256 value) {\n assembly (\"memory-safe\") {\n value := tload(slot)\n }\n }\n\n /**\n * @dev Store `value` at location `slot` in transient storage.\n */\n function tstore(Uint256Slot slot, uint256 value) internal {\n assembly (\"memory-safe\") {\n tstore(slot, value)\n }\n }\n\n /**\n * @dev Load the value held at location `slot` in transient storage.\n */\n function tload(Int256Slot slot) internal view returns (int256 value) {\n assembly (\"memory-safe\") {\n value := tload(slot)\n }\n }\n\n /**\n * @dev Store `value` at location `slot` in transient storage.\n */\n function tstore(Int256Slot slot, int256 value) internal {\n assembly (\"memory-safe\") {\n tstore(slot, value)\n }\n }\n}\n"},"node_modules/solady/src/auth/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The caller is not authorized to call the function.\n error Unauthorized();\n\n /// @dev The `newOwner` cannot be the zero address.\n error NewOwnerIsZeroAddress();\n\n /// @dev The `pendingOwner` does not have a valid handover request.\n error NoHandoverRequest();\n\n /// @dev Cannot double-initialize.\n error AlreadyInitialized();\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n /// despite it not being as lightweight as a single argument event.\n event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n /// @dev An ownership handover to `pendingOwner` has been requested.\n event OwnershipHandoverRequested(address indexed pendingOwner);\n\n /// @dev The ownership handover to `pendingOwner` has been canceled.\n event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n 0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n 0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* STORAGE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev The owner slot is given by:\n /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n /// It is intentionally chosen to be a high value\n /// to avoid collision with lower slots.\n /// The choice of manual storage layout is to enable compatibility\n /// with both regular and upgradeable contracts.\n bytes32 internal constant _OWNER_SLOT =\n 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n /// The ownership handover slot of `newOwner` is given by:\n /// ```\n /// mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n /// let handoverSlot := keccak256(0x00, 0x20)\n /// ```\n /// It stores the expiry timestamp of the two-step ownership handover.\n uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* INTERNAL FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n /// @dev Initializes the owner directly without authorization guard.\n /// This function must be called upon initialization,\n /// regardless of whether the contract is upgradeable or not.\n /// This is to enable generalization to both regular and upgradeable contracts,\n /// and to save gas in case the initial owner is not the caller.\n /// For performance reasons, this function will not check if there\n /// is an existing owner.\n function _initializeOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n if sload(ownerSlot) {\n mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n revert(0x1c, 0x04)\n }\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Store the new value.\n sstore(_OWNER_SLOT, newOwner)\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n }\n }\n }\n\n /// @dev Sets the owner directly without authorization guard.\n function _setOwner(address newOwner) internal virtual {\n if (_guardInitializeOwner()) {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n }\n } else {\n /// @solidity memory-safe-assembly\n assembly {\n let ownerSlot := _OWNER_SLOT\n // Clean the upper 96 bits.\n newOwner := shr(96, shl(96, newOwner))\n // Emit the {OwnershipTransferred} event.\n log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n // Store the new value.\n sstore(ownerSlot, newOwner)\n }\n }\n }\n\n /// @dev Throws if the sender is not the owner.\n function _checkOwner() internal view virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // If the caller is not the stored owner, revert.\n if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n mstore(0x00, 0x82b42900) // `Unauthorized()`.\n revert(0x1c, 0x04)\n }\n }\n }\n\n /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n /// Override to return a different value if needed.\n /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n return 48 * 3600;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC UPDATE FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Allows the owner to transfer the ownership to `newOwner`.\n function transferOwnership(address newOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n if iszero(shl(96, newOwner)) {\n mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n revert(0x1c, 0x04)\n }\n }\n _setOwner(newOwner);\n }\n\n /// @dev Allows the owner to renounce their ownership.\n function renounceOwnership() public payable virtual onlyOwner {\n _setOwner(address(0));\n }\n\n /// @dev Request a two-step ownership handover to the caller.\n /// The request will automatically expire in 48 hours (172800 seconds) by default.\n function requestOwnershipHandover() public payable virtual {\n unchecked {\n uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to `expires`.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), expires)\n // Emit the {OwnershipHandoverRequested} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n }\n }\n }\n\n /// @dev Cancels the two-step ownership handover to the caller, if any.\n function cancelOwnershipHandover() public payable virtual {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, caller())\n sstore(keccak256(0x0c, 0x20), 0)\n // Emit the {OwnershipHandoverCanceled} event.\n log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n }\n }\n\n /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute and set the handover slot to 0.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n let handoverSlot := keccak256(0x0c, 0x20)\n // If the handover does not exist, or has expired.\n if gt(timestamp(), sload(handoverSlot)) {\n mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n revert(0x1c, 0x04)\n }\n // Set the handover slot to 0.\n sstore(handoverSlot, 0)\n }\n _setOwner(pendingOwner);\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* PUBLIC READ FUNCTIONS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Returns the owner of the contract.\n function owner() public view virtual returns (address result) {\n /// @solidity memory-safe-assembly\n assembly {\n result := sload(_OWNER_SLOT)\n }\n }\n\n /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n function ownershipHandoverExpiresAt(address pendingOwner)\n public\n view\n virtual\n returns (uint256 result)\n {\n /// @solidity memory-safe-assembly\n assembly {\n // Compute the handover slot.\n mstore(0x0c, _HANDOVER_SLOT_SEED)\n mstore(0x00, pendingOwner)\n // Load the handover slot.\n result := sload(keccak256(0x0c, 0x20))\n }\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* MODIFIERS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n /// @dev Marks a function as only callable by the owner.\n modifier onlyOwner() virtual {\n _checkOwner();\n _;\n }\n}\n"},"node_modules/account-abstraction/contracts/interfaces/IStakeManager.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-only\npragma solidity >=0.7.5;\n\n/**\n * Manage deposits and stakes.\n * Deposit is just a balance used to pay for UserOperations (either by a paymaster or an account).\n * Stake is value locked for at least \"unstakeDelay\" by the staked entity.\n */\ninterface IStakeManager {\n event Deposited(address indexed account, uint256 totalDeposit);\n\n event Withdrawn(\n address indexed account,\n address withdrawAddress,\n uint256 amount\n );\n\n // Emitted when stake or unstake delay are modified.\n event StakeLocked(\n address indexed account,\n uint256 totalStaked,\n uint256 unstakeDelaySec\n );\n\n // Emitted once a stake is scheduled for withdrawal.\n event StakeUnlocked(address indexed account, uint256 withdrawTime);\n\n event StakeWithdrawn(\n address indexed account,\n address withdrawAddress,\n uint256 amount\n );\n\n /**\n * @param deposit - The entity's deposit.\n * @param staked - True if this entity is staked.\n * @param stake - Actual amount of ether staked for this entity.\n * @param unstakeDelaySec - Minimum delay to withdraw the stake.\n * @param withdrawTime - First block timestamp where 'withdrawStake' will be callable, or zero if already locked.\n * @dev Sizes were chosen so that deposit fits into one cell (used during handleOp)\n * and the rest fit into a 2nd cell (used during stake/unstake)\n * - 112 bit allows for 10^15 eth\n * - 48 bit for full timestamp\n * - 32 bit allows 150 years for unstake delay\n */\n struct DepositInfo {\n uint256 deposit;\n bool staked;\n uint112 stake;\n uint32 unstakeDelaySec;\n uint48 withdrawTime;\n }\n\n // API struct used by getStakeInfo and simulateValidation.\n struct StakeInfo {\n uint256 stake;\n uint256 unstakeDelaySec;\n }\n\n /**\n * Get deposit info.\n * @param account - The account to query.\n * @return info - Full deposit information of given account.\n */\n function getDepositInfo(\n address account\n ) external view returns (DepositInfo memory info);\n\n /**\n * Get account balance.\n * @param account - The account to query.\n * @return - The deposit (for gas payment) of the account.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * Add to the deposit of the given account.\n * @param account - The account to add to.\n */\n function depositTo(address account) external payable;\n\n /**\n * Add to the account's stake - amount and delay\n * any pending unstake is first cancelled.\n * @param _unstakeDelaySec - The new lock duration before the deposit can be withdrawn.\n */\n function addStake(uint32 _unstakeDelaySec) external payable;\n\n /**\n * Attempt to unlock the stake.\n * The value can be withdrawn (using withdrawStake) after the unstake delay.\n */\n function unlockStake() external;\n\n /**\n * Withdraw from the (unlocked) stake.\n * Must first call unlockStake and wait for the unstakeDelay to pass.\n * @param withdrawAddress - The address to send withdrawn value.\n */\n function withdrawStake(address payable withdrawAddress) external;\n\n /**\n * Withdraw from the deposit.\n * @param withdrawAddress - The address to send withdrawn value.\n * @param withdrawAmount - The amount to withdraw.\n */\n function withdrawTo(\n address payable withdrawAddress,\n uint256 withdrawAmount\n ) external;\n}\n"},"node_modules/account-abstraction/contracts/interfaces/IAggregator.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.7.5;\n\nimport \"./PackedUserOperation.sol\";\n\n/**\n * Aggregated Signatures validator.\n */\ninterface IAggregator {\n /**\n * Validate aggregated signature.\n * Revert if the aggregated signature does not match the given list of operations.\n * @param userOps - Array of UserOperations to validate the signature for.\n * @param signature - The aggregated signature.\n */\n function validateSignatures(\n PackedUserOperation[] calldata userOps,\n bytes calldata signature\n ) external view;\n\n /**\n * Validate signature of a single userOp.\n * This method should be called by bundler after EntryPointSimulation.simulateValidation() returns\n * the aggregator this account uses.\n * First it validates the signature over the userOp. Then it returns data to be used when creating the handleOps.\n * @param userOp - The userOperation received from the user.\n * @return sigForUserOp - The value to put into the signature field of the userOp when calling handleOps.\n * (usually empty, unless account and aggregator support some kind of \"multisig\".\n */\n function validateUserOpSignature(\n PackedUserOperation calldata userOp\n ) external view returns (bytes memory sigForUserOp);\n\n /**\n * Aggregate multiple signatures into a single value.\n * This method is called off-chain to calculate the signature to pass with handleOps()\n * bundler MAY use optimized custom code perform this aggregation.\n * @param userOps - Array of UserOperations to collect the signatures from.\n * @return aggregatedSignature - The aggregated signature.\n */\n function aggregateSignatures(\n PackedUserOperation[] calldata userOps\n ) external view returns (bytes memory aggregatedSignature);\n}\n"},"node_modules/account-abstraction/contracts/interfaces/INonceManager.sol":{"content":"// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.7.5;\n\ninterface INonceManager {\n\n /**\n * Return the next nonce for this sender.\n * Within a given key, the nonce values are sequenced (starting with zero, and incremented by one on each userop)\n * But UserOp with different keys can come with arbitrary order.\n *\n * @param sender the account address\n * @param key the high 192 bit of the nonce\n * @return nonce a full nonce to pass for next UserOp with this sender.\n */\n function getNonce(address sender, uint192 key)\n external view returns (uint256 nonce);\n\n /**\n * Manually increment the nonce of the sender.\n * This method is exposed just for completeness..\n * Account does NOT need to call it, neither during validation, nor elsewhere,\n * as the EntryPoint will update the nonce regardless.\n * Possible use-case is call it with various keys to \"initialize\" their nonces to one, so that future\n * UserOperations will not pay extra for the first transaction with a given key.\n */\n function incrementNonce(uint192 key) external;\n}\n"}},"settings":{"remappings":["@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/","@prb/test/=node_modules/@prb/test/","@nexus/=node_modules/nexus/","forge-std/=lib/forge-std/src/","account-abstraction/=node_modules/account-abstraction/contracts/","@ERC4337/account-abstraction/=node_modules/account-abstraction/","@modulekit/=node_modules/modulekit/src/","sentinellist/=node_modules/sentinellist/src/","solady/=node_modules/solady/src/","@uniswap/v3-periphery/contracts/=node_modules/@uniswap/v3-periphery/contracts/","@uniswap/v3-core/contracts/=node_modules/@uniswap/v3-core/contracts/","@uniswap/swap-router-contracts/contracts/=node_modules/@uniswap/swap-router-contracts/contracts/","solady/src/=node_modules/solady/src/","excessively-safe-call/=node_modules/excessively-safe-call/src/","modulekit/=node_modules/@rhinestone/modulekit/src/","module-bases/=node_modules/module-bases/src/","erc7579/=node_modules/erc7579/src/","kernel/=node_modules/@zerodev/kernel/src/","@safe-global/=node_modules/@safe-global/","solarray/=node_modules/solarray/src/","erc7739Validator/=node_modules/erc7739-validator-base/src/","@biconomy-devx/=node_modules/@biconomy-devx/","@erc7579/=node_modules/@erc7579/","@gnosis.pm/=node_modules/@gnosis.pm/","@prb/math/=node_modules/erc7739-validator-base/node_modules/@prb/math/src/","@rhinestone/=node_modules/@rhinestone/","@zerodev/=node_modules/@zerodev/","ExcessivelySafeCall/=node_modules/erc7739-validator-base/node_modules/excessively-safe-call/src/","account-abstraction-v0.6/=node_modules/account-abstraction-v0.6/","accountabstraction/=node_modules/accountabstraction/","base64-sol/=node_modules/base64-sol/","ds-test/=node_modules/ds-test/","enumerableset4337/=node_modules/erc7739-validator-base/node_modules/@erc7579/enumerablemap4337/src/","erc4337-validation/=node_modules/erc7739-validator-base/node_modules/@rhinestone/erc4337-validation/src/","erc7739-validator-base/=node_modules/erc7739-validator-base/","hardhat-deploy/=node_modules/hardhat-deploy/","hardhat/=node_modules/hardhat/","nexus/=node_modules/nexus/","registry/=node_modules/modulekit/node_modules/@rhinestone/registry/src/","safe7579/=node_modules/erc7739-validator-base/node_modules/@rhinestone/safe7579/src/"],"optimizer":{"enabled":true,"runs":800},"metadata":{"useLiteralContent":false,"bytecodeHash":"none","appendCBOR":true},"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"]}},"evmVersion":"cancun","viaIR":true,"libraries":{}}} diff --git a/scripts/bash-deploy/deploy-gasdaddy.sh b/scripts/bash-deploy/deploy-gasdaddy.sh index a3718d5..d3dcc9c 100644 --- a/scripts/bash-deploy/deploy-gasdaddy.sh +++ b/scripts/bash-deploy/deploy-gasdaddy.sh @@ -82,9 +82,29 @@ else printf "Using precompiled artifacts\n" fi +### Get custom min deposit +read -r -p "Do you want to specify a custom min deposit? (y/n): " proceed +if [ $proceed = "y" ]; then + printf "Choose a custom min deposit: \n 1. 0.001 native token \n 2. 0.01 native token \n 3. 0.1 native token \n 4. 1 native token \n 5. 10 native tokens \n" + read -r -a MIN_DEPOSIT_CHOICE + if [ $MIN_DEPOSIT_CHOICE = "1" ]; then + MIN_DEPOSIT=1000000000000000 + elif [ $MIN_DEPOSIT_CHOICE = "2" ]; then + MIN_DEPOSIT=10000000000000000 + elif [ $MIN_DEPOSIT_CHOICE = "3" ]; then + MIN_DEPOSIT=100000000000000000 + elif [ $MIN_DEPOSIT_CHOICE = "4" ]; then + MIN_DEPOSIT=1000000000000000000 + elif [ $MIN_DEPOSIT_CHOICE = "5" ]; then + MIN_DEPOSIT=10000000000000000000 + fi +else + MIN_DEPOSIT=1000000000000000 +fi + ### DEPLOY GASDADDY SCs ### printf "Addresses for Paymaster SCs:\n" -forge script DeployGasdaddy true --sig "run(bool)" --rpc-url $CHAIN_NAME -vv | grep -e "address" -e "already deployed" +forge script DeployGasdaddy true $MIN_DEPOSIT --sig "run(bool,uint256)" --rpc-url $CHAIN_NAME -vv | grep -e "address" -e "already deployed" printf "Do you want to proceed with the addresses above? (y/n): " read -r proceed if [ $proceed = "y" ]; then @@ -104,7 +124,7 @@ if [ $proceed = "y" ]; then { printf "Proceeding with deployment \n" mkdir -p ./logs/$CHAIN_NAME - forge script DeployGasdaddy false --sig "run(bool)" --rpc-url $CHAIN_NAME --etherscan-api-key $CHAIN_NAME --private-key $PRIVATE_KEY $VERIFY -vv --broadcast --slow $GAS_SUFFIX # 1> ./logs/$CHAIN_NAME/$CHAIN_NAME-deploy-gasdaddy.log 2> ./logs/$CHAIN_NAME/$CHAIN_NAME-deploy-gasdaddy-errors.log + forge script DeployGasdaddy false $MIN_DEPOSIT --sig "run(bool,uint256)" --rpc-url $CHAIN_NAME --etherscan-api-key $CHAIN_NAME --private-key $PRIVATE_KEY $VERIFY -vv --broadcast --slow $GAS_SUFFIX 1> ./logs/$CHAIN_NAME/$CHAIN_NAME-deploy-gasdaddy.log 2> ./logs/$CHAIN_NAME/$CHAIN_NAME-deploy-gasdaddy-errors.log } || { printf "Deployment failed\n See logs for more details\n" exit 1 diff --git a/scripts/foundry/DeployGasdaddy.s.sol b/scripts/foundry/DeployGasdaddy.s.sol index 66d063b..c5de081 100644 --- a/scripts/foundry/DeployGasdaddy.s.sol +++ b/scripts/foundry/DeployGasdaddy.s.sol @@ -12,7 +12,7 @@ interface Create3Deployer { contract DeployGasdaddy is Script { // SALTS - bytes32 constant SPONSORSHIP_PAYMASTER_DEPLOYMENT_SALT = 0x0000000cc000000000000000000000000000000048da08a98903870005d16743; + bytes32 constant SPONSORSHIP_PAYMASTER_DEPLOYMENT_SALT = 0xe37d270a4b697fd49a738e7a7027fe45ab32da92f60226a4fb719794c954eab3; // PM Address => 0x0000a35bb5246c53457a8a28b05b1f0b79348ce1 // CREATE3 DEPLOYER ADDRESS address constant CREATE3_DEPLOYER_ADDRESS = 0x000000aFCC4940A247A53bEa5f3f4602433fe815; @@ -23,25 +23,34 @@ contract DeployGasdaddy is Script { address constant FEE_COLLECTOR = 0x2cf491602ad22944D9047282aBC00D3e52F56B37; uint256 constant UNACCOUNTED_GAS = 50_000; uint256 constant PAYMASTER_ID_WITHDRAWAL_DELAY = 3600; // 1 hour - uint256 constant MIN_DEPOSIT = 1e15; address constant ENTRY_POINT_V07 = 0x0000000071727De22E5E9d8BAf0edAc6f37da032; + mapping (uint256 => bytes) public signaturesForMinDeposits; + Create3Deployer create3Deployer; function setUp() public { create3Deployer = Create3Deployer(CREATE3_DEPLOYER_ADDRESS); + signaturesForMinDeposits[1e15] = hex'f799f0e37b89b42d667d6cf6ca461bb4e1d9818a5568a640ad89dbe74a16b18b105a3ecbe06828faaf91153bf2238bd5bf9f52cda834eb2ddc81c5665b77901f1b'; //0.001 native token + signaturesForMinDeposits[1e16] = hex'3d4fc4d9a447fb205cc50dce4b74230f0e0baea776bbce2cced39e1b82f612bc5de05607fdeaf3734f8577a8b829b0dd05bb0fe760e4fe9dda28b729d45c95d21c'; //0.01 native token + signaturesForMinDeposits[1e17] = hex'f121c54fabc0f95a2baa1cc296135d125f636532d489a9850a0ea3fe7f52694a2954b6f5cd42aca1e2203e7e39108a878477bfe2f90ed6a38ec578199e5586111c'; //0.1 native token + signaturesForMinDeposits[1e18] = hex'0e2f4921b34b8a2a6ceab67bd7db9655c0e272a725cbb5da84acaad1d023237817a1cb754fd65dd45bebc43312dafb9b53c8e58619da7da5acc9ea96294534141b'; //1 native token + signaturesForMinDeposits[1e19] = hex'6e559e01580bc8cd18fabef2d0aa018f35dc5cb1aa0c26e8cb8b9c45478382cf0fcc208ad2564d693418957e417a90b9081716fa1c01cba65e8442edaed584541c'; //10 native tokens + } - function run(bool check) public { + function run(bool check, uint256 minDeposit) public { if (check) { - checkGasDaddyAddresses(); + checkGasDaddyAddresses(minDeposit); } else { - deployGasDaddy(); + vm.startBroadcast(); + deployGasDaddy(minDeposit); + vm.stopBroadcast(); } } - function checkGasDaddyAddresses() public { + function checkGasDaddyAddresses(uint256 minDeposit) public { bytes memory bytecode = vm.getCode("scripts/bash-deploy/artifacts/BiconomySponsorshipPaymaster/BiconomySponsorshipPaymaster.json"); bytes memory args = abi.encode( VERIFYING_PAYMASTER_OWNER, @@ -50,7 +59,7 @@ contract DeployGasdaddy is Script { FEE_COLLECTOR, UNACCOUNTED_GAS, PAYMASTER_ID_WITHDRAWAL_DELAY, - MIN_DEPOSIT + minDeposit ); address sponsorshipPM = create3Deployer.addressOf(SPONSORSHIP_PAYMASTER_DEPLOYMENT_SALT); @@ -61,11 +70,34 @@ contract DeployGasdaddy is Script { console.log("Sponsorship Paymaster address: ", sponsorshipPM, " || >> Code Size: ", codeSize); - //initcode hash to look for the salt - //console.logBytes32(keccak256(abi.encodePacked(bytecode, args))); + // Use this block to get initcode hashes to sign + /* + uint256[] memory minDeposits = new uint256[](5); + minDeposits[0] = 1e15; + minDeposits[1] = 1e16; + minDeposits[2] = 1e17; + minDeposits[3] = 1e18; + minDeposits[4] = 1e19; + + for (uint256 i = 0; i < minDeposits.length; i++) { + minDeposit = minDeposits[i]; + args = abi.encode( + VERIFYING_PAYMASTER_OWNER, + ENTRY_POINT_V07, + VERIFYING_SIGNER, + FEE_COLLECTOR, + UNACCOUNTED_GAS, + PAYMASTER_ID_WITHDRAWAL_DELAY, + minDeposit + ); + console.log("min deposit: ", (minDeposit)); + console.logBytes32(keccak256(abi.encodePacked(bytecode, args))); + } + */ + } - function deployGasDaddy() public { + function deployGasDaddy(uint256 minDeposit) public { // // SPONSORSHIP PAYMASTER @@ -78,7 +110,7 @@ contract DeployGasdaddy is Script { FEE_COLLECTOR, UNACCOUNTED_GAS, PAYMASTER_ID_WITHDRAWAL_DELAY, - MIN_DEPOSIT + minDeposit ); address sponsorshipPM = create3Deployer.addressOf(SPONSORSHIP_PAYMASTER_DEPLOYMENT_SALT); uint256 codeSize; @@ -89,7 +121,7 @@ contract DeployGasdaddy is Script { console.log("Sponsorship Paymaster already deployed at", sponsorshipPM); } else { bytes memory initcode = abi.encodePacked(bytecode, args); - bytes memory signature = hex'f799f0e37b89b42d667d6cf6ca461bb4e1d9818a5568a640ad89dbe74a16b18b105a3ecbe06828faaf91153bf2238bd5bf9f52cda834eb2ddc81c5665b77901f1b'; //pre-computed signature + bytes memory signature = signaturesForMinDeposits[minDeposit]; sponsorshipPM = create3Deployer.deploy(SPONSORSHIP_PAYMASTER_DEPLOYMENT_SALT, initcode, signature); console.log("Sponsorship Paymaster deployed at", sponsorshipPM); }