PageSourceSearch

https://app.motusdao.org/_next/static/chunks/c8868a380698ad7a.js?dpl=dpl_57vgXdV6Mp2HgDTJPyufJ2HDvLvg

js motusdao.org collected 2026-10-05 06:36:35 UTC 51,994 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,594734,713764,e=>{"use strict";e.s(["entryPoint06Abi",()=>t,"entryPoint07Abi",()=>a],594734);let t=[{inputs:[{name:"preOpGas",type:"uint256"},{name:"paid",type:"uint256"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"targetSuccess",type:"bool"},{name:"targetResult",type:"bytes"}],name:"ExecutionResult",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"}],name:"ValidationResult",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"},{components:[{name:"aggregator",type:"address"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"stakeInfo",type:"tuple"}],name:"aggregatorInfo",type:"tuple"}],name:"ValidationResultWithAggregation",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"SIG_VALIDATION_FAILED",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"},{name:"sender",type:"address"},{name:"paymasterAndData",type:"bytes"}],name:"_validateSenderAndPaymaster",outputs:[],stateMutability:"view",type:"function"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"op",type:"tuple"},{name:"target",type:"address"},{name:"targetCallData",type:"bytes"}],name:"simulateHandleOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"simulateValidation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],a=[{inputs:[{name:"success",type:"bool"},{name:"ret",type:"bytes"}],name:"DelegateAndRevert",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"},{name:"inner",type:"bytes"}],name:"FailedOpWithRevert",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"PostOpReverted",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"PostOpRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"}],name:"UserOperationPrefundTooLow",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"target",type:"address"},{name:"data",type:"bytes"}],name:"delegateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint256"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint256"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"paymasterVerificationGasLimit",type:"uint256"},{name:"
1paymasterPostOpGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];e.s(["entryPoint06Address",()=>n,"entryPoint07Address",()=>r],713764);let n="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",r="0x0000000071727De22E5E9d8BAf0edAc6f37da032"},875740,e=>{"use strict";e.s(["toSmartAccount",()=>o]);var t=e.i(137195),a=e.i(528804),n=e.i(388750),r=e.i(467125),i=e.i(903472),s=e.i(855100);async function o(e){let{extend:o,nonceKeyManager:u=(0,i.createNonceManager)({source:{get:()=>Date.now(),set(){}}}),...p}=e,c=!1,d=await e.getAddress();return{...o,...p,address:d,async getFactoryArgs(){return"isDeployed"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:e.getFactoryArgs()},async getNonce(a){var r;let i=null!=(r=null==a?void 0:a.key)?r:BigInt(await u.consume({address:d,chainId:e.client.chain.id,client:e.client}));return e.getNonce?await e.getNonce({...a,key:i}):await (0,n.readContract)(e.client,{abi:(0,t.parseAbi)(["function getNonce(address, uint192) pure returns (uint256)"]),address:e.entryPoint.address,functionName:"getNonce",args:[d,i]})},isDeployed:async()=>!!c||(c=!!await (0,r.getAction)(e.client,a.getCode,"getCode")({address:d})),...e.sign?{async sign(t){let[{factory:a,factoryData:n},r]=await Promise.all([this.getFactoryArgs(),e.sign(t)]);return a&&n?(0,s.serializeErc6492Signature)({address:a,data:n,signature:r}):r}}:{},async signMessage(t){let[{factory:a,factoryData:n},r]=await Promise.all([this.getFactoryArgs(),e.signMessage(t)]);return a&&n&&"0x7702"!==a?(0,s.serializeErc6492Signature)({address:a,data:n,signature:r}):r},async signTypedData(t){let[{factory:a,factoryData:n},r]=await Promise.all([this.getFactoryArgs(),e.signTypedData(t)]);return a&&n&&"0x7702"!==a?(0,s.serializeErc6492Signature)({address:a,data:n,signature:r}):r},type:"smart"}}},547160,e=>{"use strict";e.s(["getUserOperationHash",()=>m],547160);var t=e.i(704434),a=e.i(831095),n=e.i(995062),r=e.i(147526);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{forHash:a}=t,{authorization:n,factory:i,factoryData:s}=e;return a&&("0x7702"===i||"0x7702000000000000000000000000000000000000"===i)?n?(0,r.concat)([n.address,null!=s?s:"0x"]):"0x7702000000000000000000000000000000000000":i?(0,r.concat)([i,null!=s?s:"0x"]):"0x"}var s=e.i(22411),o=e.i(401319),u=e.i(675107);let p="0x22e325a297439656";function c(e){var t,a;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{callGasLimit:c,callData:d,maxPriorityFeePerGas:m,maxFeePerGas:y,paymaster:l,paymasterData:f,paymasterPostOpGasLimit:b,paymasterSignature:g,paymasterVerificationGasLimit:v,sender:x,signature:w="0x",verificationGasLimit:h}=e,P=(0,r.concat)([(0,s.pad)((0,u.numberToHex)(h||0n),{size:16}),(0,s.pad)((0,u.numberToHex)(c||0n),{size:16})]),G=i(e,n),O=(0,r.concat)([(0,s.pad)((0,u.numberToHex)(m||0n),{size:16}),(0,s.pad)((0,u.numberToHex)(y||0n),{size:16})]),D=null!=(t=e.nonce)?t:0n;
1return{accountGasLimits:P,callData:d,initCode:G,gasFees:O,nonce:D,paymasterAndData:l?(0,r.concat)([l,(0,s.pad)((0,u.numberToHex)(v||0n),{size:16}),(0,s.pad)((0,u.numberToHex)(b||0n),{size:16}),f||"0x",...g?n.forHash?[p]:[g,(0,s.pad)((0,u.numberToHex)((0,o.size)(g)),{size:2}),p]:[]]):"0x",preVerificationGas:null!=(a=e.preVerificationGas)?a:0n,sender:x,signature:w}}let d={PackedUserOperation:[{type:"address",name:"sender"},{type:"uint256",name:"nonce"},{type:"bytes",name:"initCode"},{type:"bytes",name:"callData"},{type:"bytes32",name:"accountGasLimits"},{type:"uint256",name:"preVerificationGas"},{type:"bytes32",name:"gasFees"},{type:"bytes",name:"paymasterAndData"}]};function m(e){let{chainId:r,entryPointAddress:s,entryPointVersion:o}=e,u=e.userOperation,{authorization:p,callData:m="0x",callGasLimit:y,maxFeePerGas:l,maxPriorityFeePerGas:f,nonce:b,paymasterAndData:g="0x",preVerificationGas:v,sender:x,verificationGasLimit:w}=u;if("0.8"===o||"0.9"===o)return(0,n.hashTypedData)(function(e){let{chainId:t,entryPointAddress:a,userOperation:n}=e;return{types:d,primaryType:"PackedUserOperation",domain:{name:"ERC4337",version:"1",chainId:t,verifyingContract:a},message:c(n,{forHash:!0})}}({chainId:r,entryPointAddress:s,userOperation:u}));let h=(()=>{if("0.6"===o){var e,n;let r=i({authorization:p,factory:null==(e=u.initCode)?void 0:e.slice(0,42),factoryData:null==(n=u.initCode)?void 0:n.slice(42)},{forHash:!0});return(0,t.encodeAbiParameters)([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"bytes32"}],[x,b,(0,a.keccak256)(r),(0,a.keccak256)(m),y,w,v,l,f,(0,a.keccak256)(g)])}if("0.7"===o){let e=c(u,{forHash:!0});return(0,t.encodeAbiParameters)([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"}],[e.sender,e.nonce,(0,a.keccak256)(e.initCode),(0,a.keccak256)(e.callData),e.accountGasLimits,e.preVerificationGas,e.gasFees,(0,a.keccak256)(e.paymasterAndData)])}throw Error('entryPointVersion "'.concat(o,'" not supported.'))})();return(0,a.keccak256)((0,t.encodeAbiParameters)([{type:"bytes32"},{type:"address"},{type:"uint256"}],[(0,a.keccak256)(h),s,BigInt(r)]))}},82387,666484,234984,263396,e=>{"use strict";e.s(["bundlerActions",()=>eG],82387);var t=e.i(975948),a=e.i(189991),n=e.i(611573),r=e.i(467125),i=e.i(826051),s=e.i(569934),o=e.i(878023),u=e.i(959953),p=s;class c extends p.BaseError{constructor({cause:e}){super("Smart Account is not deployed.",{cause:e,metaMessages:["This could arise when:","- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.","- An incorrect `sender` address is provided."],name:"AccountNotDeployedError"})}}Object.defineProperty(c,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});class d extends p.BaseError{constructor({cause:e,data:t,message:a}={}){var n;let r=null==a||null==(n=a.replace("execution reverted: ",""))?void 0:n.replace("execution reverted","");super("Execution reverted ".concat(r?"with reason: ".concat(r):"for an unknown reason","."),{cause:e,name:"ExecutionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32521}),Object.defineProperty(d,"message",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class m extends p.BaseError{constructor({cause:e}){super("Failed to send funds to beneficiary.",{cause:e,name:"FailedToSendToBeneficiaryError"})}}Object.defineProperty(m,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});class y extends p.BaseError{constructor({cause:e}){super("Gas value overflowed.",{cause:e,metaMessages:["This could arise when:","- one of the gas values exceeded 2**120 (uint120)"].filter(
vendor: 4,195 bytes, line 1
1Boolean),name:"GasValuesOverflowError"})}}Object.defineProperty(y,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});class l extends p.BaseError{constructor({cause:e}){super("The `handleOps` function was called by the Bundler with a gas limit too low.",{cause:e,name:"HandleOpsOutOfGasError"})}}Object.defineProperty(l,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});class f extends p.BaseError{constructor({cause:e,factory:t,factoryData:a,initCode:n}){super("Failed to simulate deployment for Smart Account.",{cause:e,metaMessages:["This could arise when:","- Invalid `factory`/`factoryData` or `initCode` properties are present","- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)","- Smart Account deployment execution reverted with an error\n",t&&"factory: ".concat(t),a&&"factoryData: ".concat(a),n&&"initCode: ".concat(n)].filter(Boolean),name:"InitCodeFailedError"})}}Object.defineProperty(f,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});class b extends p.BaseError{constructor({cause:e,factory:t,factoryData:a,initCode:n}){super("Smart Account initialization implementation did not create an account.",{cause:e,metaMessages:["This could arise when:","- `factory`/`factoryData` or `initCode` properties are invalid","- Smart Account initialization implementation is incorrect\n",t&&"factory: ".concat(t),a&&"factoryData: ".concat(a),n&&"initCode: ".concat(n)].filter(Boolean),name:"InitCodeMustCreateSenderError"})}}Object.defineProperty(b,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});class g extends p.BaseError{constructor({cause:e,factory:t,factoryData:a,initCode:n,sender:r}){super("Smart Account initialization implementation does not return the expected sender.",{cause:e,metaMessages:["This could arise when:","Smart Account initialization implementation does not return a sender address\n",t&&"factory: ".concat(t),a&&"factoryData: ".concat(a),n&&"initCode: ".concat(n),r&&"sender: ".concat(r)].filter(Boolean),name:"InitCodeMustReturnSenderError"})}}Object.defineProperty(g,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});class v extends p.BaseError{constructor({cause:e}){super("Smart Account does not have sufficient funds to execute the User Operation.",{cause:e,metaMessages:["This could arise when:","- the Smart Account does not have sufficient funds to cover the required prefund, or","- a Paymaster was not provided"].filter(Boolean),name:"InsufficientPrefundError"})}}Object.defineProperty(v,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});class x extends p.BaseError{constructor({cause:e}){super("Bundler attempted to call an invalid function on the EntryPoint.",{cause:e,name:"InternalCallOnlyError"})}}Object.defineProperty(x,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});class w extends p.BaseError{constructor({cause:e}){super("Bundler used an invalid aggregator for handling aggregated User Operations.",{cause:e,name:"InvalidAggregatorError"})}}Object.defineProperty(w,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});class h extends p.BaseError{constructor({cause:e,nonce:t}){super("Invalid Smart Account nonce used for User Operation.",{cause:e,metaMessages:[t&&"nonce: ".concat(t)].filter(Boolean),name:"InvalidAccountNonceError"})}}Object.defineProperty(h,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});class P extends p.BaseError{constructor({cause:e}){super("Bundler has not set a beneficiary address.",{cause:e,name:"InvalidBeneficiaryError"})}}Object.defineProperty(P,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa90/});class G extends p.BaseError{constructor({cause:e}){super("Invalid fields set on User Operation.",{cause:e,name:"InvalidFieldsError"})}}Object.defineProperty(G,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class O extends p.BaseError{constructor({cause:e,paymasterAndData:t}){super("Paymaster properties provided are invalid.",{cause:e,metaMessages:["This could arise when:","- the `paymasterAndData` property is of an incorrect length\n",t&&"paymasterAndData: ".concat(t)].filter(
vendor: 4,093 bytes, line 1
1Boolean),name:"InvalidPaymasterAndDataError"})}}Object.defineProperty(O,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa93/});class D extends p.BaseError{constructor({cause:e}){super("Paymaster deposit for the User Operation is too low.",{cause:e,metaMessages:["This could arise when:","- the Paymaster has deposited less than the expected amount via the `deposit` function"].filter(Boolean),name:"PaymasterDepositTooLowError"})}}Object.defineProperty(D,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32508}),Object.defineProperty(D,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});class A extends p.BaseError{constructor({cause:e}){super("The `validatePaymasterUserOp` function on the Paymaster reverted.",{cause:e,name:"PaymasterFunctionRevertedError"})}}Object.defineProperty(A,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});class E extends p.BaseError{constructor({cause:e}){super("The Paymaster contract has not been deployed.",{cause:e,name:"PaymasterNotDeployedError"})}}Object.defineProperty(E,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa30/});class L extends p.BaseError{constructor({cause:e}){super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.",{cause:e,name:"PaymasterRateLimitError"})}}Object.defineProperty(L,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32504});class B extends p.BaseError{constructor({cause:e}){super("UserOperation rejected because paymaster (or signature aggregator) stake or unstake-delay is too low.",{cause:e,name:"PaymasterStakeTooLowError"})}}Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32505});class S extends p.BaseError{constructor({cause:e}){super("Paymaster `postOp` function reverted.",{cause:e,name:"PaymasterPostOpFunctionRevertedError"})}}Object.defineProperty(S,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});class U extends p.BaseError{constructor({cause:e,factory:t,factoryData:a,initCode:n}){super("Smart Account has already been deployed.",{cause:e,metaMessages:["Remove the following properties and try again:",t&&"`factory`",a&&"`factoryData`",n&&"`initCode`"].filter(Boolean),name:"SenderAlreadyConstructedError"})}}Object.defineProperty(U,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});class F extends p.BaseError{constructor({cause:e}){super("UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).",{cause:e,name:"SignatureCheckFailedError"})}}Object.defineProperty(F,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32507});class k extends p.BaseError{constructor({cause:e}){super("The `validateUserOp` function on the Smart Account reverted.",{cause:e,name:"SmartAccountFunctionRevertedError"})}}Object.defineProperty(k,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa23/});class C extends p.BaseError{constructor({cause:e}){super("UserOperation rejected because account specified unsupported signature aggregator.",{cause:e,name:"UnsupportedSignatureAggregatorError"})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32506});class T extends p.BaseError{constructor({cause:e}){super("User Operation expired.",{cause:e,metaMessages:["This could arise when:","- the `validAfter` or `validUntil` values returned from `validateUserOp` on the Smart Account are not satisfied"].filter(Boolean),name:"UserOperationExpiredError"})}}Object.defineProperty(T,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});class I extends p.BaseError{constructor({cause:e}){super("Paymaster for User Operation expired.",{cause:e,metaMessages:["This could arise when:","- the `validAfter` or `validUntil` values returned from `validatePaymasterUserOp` on the Paymaster are not satisfied"].filter(Boolean),name:"UserOperationPaymasterExpiredError"})}}Object.defineProperty(I,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});class M extends p.BaseError{constructor({cause:e}
1){super("Signature provided for the User Operation is invalid.",{cause:e,metaMessages:["This could arise when:","- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Smart Account"].filter(Boolean),name:"UserOperationSignatureError"})}}Object.defineProperty(M,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});class V extends p.BaseError{constructor({cause:e}){super("Signature provided for the User Operation is invalid.",{cause:e,metaMessages:["This could arise when:","- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Paymaster"].filter(Boolean),name:"UserOperationPaymasterSignatureError"})}}Object.defineProperty(V,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});class j extends p.BaseError{constructor({cause:e}){super("User Operation rejected by EntryPoint's `simulateValidation` during account creation or validation.",{cause:e,name:"UserOperationRejectedByEntryPointError"})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32500});class R extends p.BaseError{constructor({cause:e}){super("User Operation rejected by Paymaster's `validatePaymasterUserOp`.",{cause:e,name:"UserOperationRejectedByPaymasterError"})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32501});class H extends p.BaseError{constructor({cause:e}){super("User Operation rejected with op code validation error.",{cause:e,name:"UserOperationRejectedByOpCodeError"})}}Object.defineProperty(H,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32502});class z extends p.BaseError{constructor({cause:e}){super("UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).",{cause:e,name:"UserOperationOutOfTimeRangeError"})}}Object.defineProperty(z,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32503});class N extends p.BaseError{constructor({cause:e}){super("An error occurred while executing user operation: ".concat(null==e?void 0:e.shortMessage),{cause:e,name:"UnknownBundlerError"})}}class q extends p.BaseError{constructor({cause:e}){super("User Operation verification gas limit exceeded.",{cause:e,metaMessages:["This could arise when:","- the gas used for verification exceeded the `verificationGasLimit`"].filter(Boolean),name:"VerificationGasLimitExceededError"})}}Object.defineProperty(q,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});class _ extends p.BaseError{constructor({cause:e}){super("User Operation verification gas limit is too low.",{cause:e,metaMessages:["This could arise when:","- the `verificationGasLimit` is too low to verify the User Operation"].filter(Boolean),name:"VerificationGasLimitTooLowError"})}}Object.defineProperty(_,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/});var W=s,K=e.i(393702),Z=e.i(976486);class J extends W.BaseError{constructor(e,{callData:t,callGasLimit:a,docsPath:n,factory:r,factoryData:i,initCode:s,maxFeePerGas:o,maxPriorityFeePerGas:u,nonce:p,paymaster:c,paymasterAndData:d,paymasterData:m,paymasterPostOpGasLimit:y,paymasterVerificationGasLimit:l,preVerificationGas:f,sender:b,signature:g,verificationGasLimit:v}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",(0,K.prettyPrint)({callData:t,callGasLimit:a,factory:r,factoryData:i,initCode:s,maxFeePerGas:void 0!==o&&"".concat((0,Z.formatGwei)(o)," gwei"),maxPriorityFeePerGas:void 0!==u&&"".concat((0,Z.formatGwei)(u)," gwei"),nonce:p,paymaster:c,paymasterAndData:d,paymasterData:m,paymasterPostOpGasLimit:y,paymasterVerificationGasLimit:l,preVerificationGas:f,sender:b,signature:g,verificationGasLimit:v})].filter(Boolean),name:"UserOperationExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class Q extends W.BaseError{constructor({hash:e}){super('User Operation receipt with hash "'.concat(e,'" could not be found. The User Operation may not have been processed yet.'),{name:"UserOperationReceiptNotFoundError"})}}class X extends W.BaseError{constructor({hash:e}){super('User Operation with hash "'.concat(e,'" could not be found.'),{name:"UserOperationNotFoundError"})}}class Y extends W.BaseError{constructor({hash:e}){super('Timed out while waiting for User Operation with hash "'.concat(e,'" to be confirmed.'),{name:"WaitForUserOperationReceiptTimeoutError"})}}let $=[d,G,D,L,B,F,C,z,j,R,H];function ee(e,t){let{calls:a,docsPath:n,...r}=t;
vendor: 4,940 bytes, line 1
1return new J((()=>{let t=function(e,t){let a=(e.details||"").toLowerCase();if(c.message.test(a))return new c({cause:e});if(m.message.test(a))return new m({cause:e});if(y.message.test(a))return new y({cause:e});if(l.message.test(a))return new l({cause:e});if(f.message.test(a))return new f({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(b.message.test(a))return new b({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(g.message.test(a))return new g({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode,sender:t.sender});if(v.message.test(a))return new v({cause:e});if(x.message.test(a))return new x({cause:e});if(h.message.test(a))return new h({cause:e,nonce:t.nonce});if(w.message.test(a))return new w({cause:e});if(P.message.test(a))return new P({cause:e});if(O.message.test(a))return new O({cause:e});if(D.message.test(a))return new D({cause:e});if(A.message.test(a))return new A({cause:e});if(E.message.test(a))return new E({cause:e});if(S.message.test(a))return new S({cause:e});if(k.message.test(a))return new k({cause:e});if(U.message.test(a))return new U({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(T.message.test(a))return new T({cause:e});if(I.message.test(a))return new I({cause:e});if(V.message.test(a))return new V({cause:e});if(M.message.test(a))return new M({cause:e});if(q.message.test(a))return new q({cause:e});if(_.message.test(a))return new _({cause:e});let n=e.walk(e=>$.some(t=>t.code===e.code));if(n){if(n.code===d.code)return new d({cause:e,data:n.data,message:n.details});if(n.code===G.code)return new G({cause:e});if(n.code===D.code)return new D({cause:e});if(n.code===L.code)return new L({cause:e});if(n.code===B.code)return new B({cause:e});if(n.code===F.code)return new F({cause:e});if(n.code===C.code)return new C({cause:e});if(n.code===z.code)return new z({cause:e});if(n.code===j.code)return new j({cause:e});if(n.code===R.code)return new R({cause:e});if(n.code===H.code)return new H({cause:e})}return new N({cause:e})}(e,r);if(a&&t instanceof d){let e,n=(t.walk(t=>{var a,n,r,i;if("string"==typeof t.data||"string"==typeof(null==(a=t.data)?void 0:a.revertData)||!(t instanceof s.BaseError)&&"string"==typeof t.message){let a=null==(n=(i=(null==(r=t.data)?void 0:r.revertData)||t.data||t.message).match)?void 0:n.call(i,/(0x[A-Za-z0-9]*)/);if(a)return e=a[1],!0}return!1}),e),r=null==a?void 0:a.filter(e=>e.abi);if(n&&r.length>0)return function(e){let{calls:t,revertData:a}=e,{abi:n,functionName:r,args:i,to:s}=(()=>{let e=null==t?void 0:t.filter(e=>!!e.abi);if(1===e.length)return e[0];let n=e.filter(e=>{try{return!!(0,u.decodeErrorResult)({abi:e.abi,data:a})}catch(e){return!1}});return 1===n.length?n[0]:{abi:[],functionName:e.reduce((e,t)=>"".concat(e?"".concat(e," | "):"").concat(t.functionName),""),args:void 0,to:void 0}})(),p="0x"===a?new o.ContractFunctionZeroDataError({functionName:r}):new o.ContractFunctionRevertedError({abi:n,data:a,functionName:r});return new o.ContractFunctionExecutionError(p,{abi:n,args:i,contractAddress:s,functionName:r})}({calls:r,revertData:n})}return t})(),{docsPath:n,...r})}var et=e.i(675107),ea=e.i(22411);function en(e){var t;let a={};return void 0!==e.callData&&(a.callData=e.callData),void 0!==e.callGasLimit&&(a.callGasLimit=(0,et.numberToHex)(e.callGasLimit)),void 0!==e.factory&&(a.factory=e.factory),void 0!==e.factoryData&&(a.factoryData=e.factoryData),void 0!==e.initCode&&(a.initCode=e.initCode),void 0!==e.maxFeePerGas&&(a.maxFeePerGas=(0,et.numberToHex)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=(0,et.numberToHex)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(a.nonce=(0,et.numberToHex)(e.nonce)),void 0!==e.paymaster&&(a.paymaster=e.paymaster),void 0!==e.paymasterAndData&&(a.paymasterAndData=e.paymasterAndData||"0x"),void 0!==e.paymasterData&&(a.paymasterData=e.paymasterData),void 0!==e.paymasterPostOpGasLimit&&(a.paymasterPostOpGasLimit=(0,et.numberToHex)(e.paymasterPostOpGasLimit)),void 0!==e.paymasterSignature&&(a.paymasterSignature=e.paymasterSignature),void 0!==e.paymasterVerificationGasLimit&&(a.paymasterVerificationGasLimit=(0,et.numberToHex)(e.paymasterVerificationGasLimit)),void 0!==e.preVerificationGas&&(a.preVerificationGas=(0,et.numberToHex)(e.preVerificationGas)),void 0!==e.sender&&(a.sender=e.sender),void 0!==e.signature&&(a.signature=e.signature),void 0!==e.verificationGasLimit&&(a.verificationGasLimit=(0,et.numberToHex)(e.verificationGasLimit)),void 0!==e.authorization&&(a.eip7702Auth={address:(t=e.authorization).address,chainId:(0,et.numberToHex)(t.chainId),nonce:(0,et.numberToHex)(t.nonce),r:t.r?(0,et.numberToHex)(BigInt(t.r),{size:32}):(0,ea.pad)("0x",{size:32}),s:t.s?(0,et.numberToHex)(BigInt(t.s),{size:32}):(0,ea.pad)("0x",{size:32}),yParity:t.yParity?(0,et.numberToHex)(t.yParity,{size:1}):(0,ea.pad)("0x",{size:32})}),a}e.s(["prepareUserOperation",()=>em],666484);
1var er=e.i(829897),ei=e.i(972960),es=e.i(656679),eo=e.i(147526),eu=e.i(450323);async function ep(e,t){var a,n,r;let{chainId:i,entryPointAddress:s,context:o,...u}=t,p=en(u),{paymasterPostOpGasLimit:c,paymasterVerificationGasLimit:d,...m}=await e.request({method:"pm_getPaymasterData",params:[{...p,callGasLimit:null!=(a=p.callGasLimit)?a:"0x0",verificationGasLimit:null!=(n=p.verificationGasLimit)?n:"0x0",preVerificationGas:null!=(r=p.preVerificationGas)?r:"0x0"},s,(0,et.numberToHex)(i),o]});return{...m,...c&&{paymasterPostOpGasLimit:(0,eu.hexToBigInt)(c)},...d&&{paymasterVerificationGasLimit:(0,eu.hexToBigInt)(d)}}}async function ec(e,t){var a,n,r;let{chainId:i,entryPointAddress:s,context:o,...u}=t,p=en(u),{paymasterPostOpGasLimit:c,paymasterVerificationGasLimit:d,...m}=await e.request({method:"pm_getPaymasterStubData",params:[{...p,callGasLimit:null!=(a=p.callGasLimit)?a:"0x0",verificationGasLimit:null!=(n=p.verificationGasLimit)?n:"0x0",preVerificationGas:null!=(r=p.preVerificationGas)?r:"0x0"},s,(0,et.numberToHex)(i),o]});return{...m,...c&&{paymasterPostOpGasLimit:(0,eu.hexToBigInt)(c)},...d&&{paymasterVerificationGasLimit:(0,eu.hexToBigInt)(d)}}}let ed=["factory","fees","gas","paymaster","nonce","signature","authorization"];async function em(e,i){var s,o,u,p,c,d,m,y;let l,{account:f=e.account,dataSuffix:b="string"==typeof e.dataSuffix?e.dataSuffix:null==(s=e.dataSuffix)?void 0:s.value,parameters:g=ed,stateOverride:v}=i;if(!f)throw new n.AccountNotFoundError;let x=(0,a.parseAccount)(f),w=null!=(o=i.paymaster)?o:null==e?void 0:e.paymaster,h="string"==typeof w?w:void 0,{getPaymasterStubData:P,getPaymasterData:G}=(()=>{if(!0===w)return{getPaymasterStubData:t=>(0,r.getAction)(e,ec,"getPaymasterStubData")(t),getPaymasterData:t=>(0,r.getAction)(e,ep,"getPaymasterData")(t)};if("object"==typeof w){let{getPaymasterStubData:e,getPaymasterData:t}=w;return{getPaymasterStubData:t&&e?e:t,getPaymasterData:t&&e?t:void 0}}return{getPaymasterStubData:void 0,getPaymasterData:void 0}})(),O=i.paymasterContext?i.paymasterContext:null==e?void 0:e.paymasterContext,D={...i,paymaster:h,sender:x.address},[A,E,L,B,S]=await Promise.all([(async()=>i.calls?x.encodeCalls(i.calls.map(e=>e.abi?{data:(0,es.encodeFunctionData)(e),to:e.to,value:e.value}:e)):i.callData)(),(async()=>{if(!g.includes("factory"))return;if(i.initCode)return{initCode:i.initCode};if(i.factory&&i.factoryData)return{factory:i.factory,factoryData:i.factoryData};let{factory:e,factoryData:t}=await x.getFactoryArgs();
1return"0.6"===x.entryPoint.version?{initCode:e&&t?(0,eo.concat)([e,t]):void 0}:{factory:e,factoryData:t}})(),(async()=>{var t,a;if(g.includes("fees")){if("bigint"==typeof i.maxFeePerGas&&"bigint"==typeof i.maxPriorityFeePerGas)return D;if(null==e||null==(t=e.userOperation)?void 0:t.estimateFeesPerGas){let t=await e.userOperation.estimateFeesPerGas({account:x,bundlerClient:e,userOperation:D});return{...D,...t}}try{let t=null!=(a=e.client)?a:e,n=await (0,r.getAction)(t,ei.estimateFeesPerGas,"estimateFeesPerGas")({chain:t.chain,type:"eip1559"});return{maxFeePerGas:"bigint"==typeof i.maxFeePerGas?i.maxFeePerGas:BigInt(2n*n.maxFeePerGas),maxPriorityFeePerGas:"bigint"==typeof i.maxPriorityFeePerGas?i.maxPriorityFeePerGas:BigInt(2n*n.maxPriorityFeePerGas)}}catch(e){return}}})(),(async()=>{if(g.includes("nonce"))return"bigint"==typeof i.nonce?i.nonce:x.getNonce()})(),(async()=>{if(g.includes("authorization")){if("object"==typeof i.authorization)return i.authorization;if(x.authorization&&!await x.isDeployed())return{...await (0,er.prepareAuthorization)(x.client,x.authorization),r:"0xfffffffffffffffffffffffffffffff000000000000000000000000000000000",s:"0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",yParity:1}}})()]);async function U(){return l||(e.chain?e.chain.id:l=await (0,r.getAction)(e,t.getChainId,"getChainId")({}))}void 0!==A&&(D.callData=b?(0,eo.concat)([A,b]):A),void 0!==E&&(D={...D,...E}),void 0!==L&&(D={...D,...L}),void 0!==B&&(D.nonce=B),void 0!==S&&(D.authorization=S),g.includes("signature")&&(void 0!==i.signature?D.signature=i.signature:D.signature=await x.getStubSignature(D)),"0.6"!==x.entryPoint.version||D.initCode||(D.initCode="0x");let F=!1;if(g.includes("paymaster")&&P&&!h&&!i.paymasterAndData){let{isFinal:e=!1,sponsor:t,...a}=await P({chainId:await U(),entryPointAddress:x.entryPoint.address,context:O,...D});F=e,D={...D,...a}}if("0.6"!==x.entryPoint.version||D.paymasterAndData||(D.paymasterAndData="0x"),g.includes("gas")){if(null==(u=x.userOperation)?void 0:u.estimateGas){let e=await x.userOperation.estimateGas(D);D={...D,...e}}if(void 0===D.callGasLimit||void 0===D.preVerificationGas||void 0===D.verificationGasLimit||D.paymaster&&void 0===D.paymasterPostOpGasLimit||D.paymaster&&void 0===D.paymasterVerificationGasLimit){let t=await (0,r.getAction)(e,ey,"estimateUserOperationGas")({account:x,callGasLimit:0n,preVerificationGas:0n,verificationGasLimit:0n,stateOverride:v,...D.paymaster?{paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n}:{},...D});D={...D,callGasLimit:null!=(p=D.callGasLimit)?p:t.callGasLimit,preVerificationGas:null!=(c=D.preVerificationGas)?c:t.preVerificationGas,verificationGasLimit:null!=(d=D.verificationGasLimit)?d:t.verificationGasLimit,paymasterPostOpGasLimit:null!=(m=D.paymasterPostOpGasLimit)?m:t.paymasterPostOpGasLimit,paymasterVerificationGasLimit:null!=(y=D.paymasterVerificationGasLimit)?y:t.paymasterVerificationGasLimit}}}if(g.includes("paymaster")&&G&&!h&&!i.paymasterAndData&&!F){let e=await G({chainId:await U(),entryPointAddress:x.entryPoint.address,context:O,...D});D={...D,...e}}return delete D.calls,delete D.parameters,delete D.paymasterContext,"string"!=typeof D.paymaster&&delete D.paymaster,D}async function ey(e,t){let{account:s=e.account,entryPointAddress:o,stateOverride:u}=t;if(!s&&!t.sender)throw new n.AccountNotFoundError;let p=s?(0,a.parseAccount)(s):void 0,c=(0,i.serializeStateOverride)(u),d=p?await (0,r.getAction)(e,em,"prepareUserOperation")({...t,parameters:["authorization","factory","nonce","paymaster","signature"]}):t;
1try{let t=[en(d),null!=o?o:null==p||null==(m=p.entryPoint)?void 0:m.address];var m,y=await e.request({method:"eth_estimateUserOperationGas",params:c?[...t,c]:[...t]});let a={};return y.callGasLimit&&(a.callGasLimit=BigInt(y.callGasLimit)),y.preVerificationGas&&(a.preVerificationGas=BigInt(y.preVerificationGas)),y.verificationGasLimit&&(a.verificationGasLimit=BigInt(y.verificationGasLimit)),y.paymasterPostOpGasLimit&&(a.paymasterPostOpGasLimit=BigInt(y.paymasterPostOpGasLimit)),y.paymasterVerificationGasLimit&&(a.paymasterVerificationGasLimit=BigInt(y.paymasterVerificationGasLimit)),a}catch(a){let e=t.calls;throw ee(a,{...d,...e?{calls:e}:{}})}}async function el(e,t){let{hash:a}=t,n=await e.request({method:"eth_getUserOperationByHash",params:[a]},{dedupe:!0});if(!n)throw new X({hash:a});let{blockHash:r,blockNumber:i,entryPoint:s,transactionHash:o,userOperation:u}=n;return{blockHash:r,blockNumber:BigInt(i),entryPoint:s,transactionHash:o,userOperation:function(e){let t={...e};return e.callGasLimit&&(t.callGasLimit=BigInt(e.callGasLimit)),e.maxFeePerGas&&(t.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.nonce&&(t.nonce=BigInt(e.nonce)),e.paymasterPostOpGasLimit&&(t.paymasterPostOpGasLimit=BigInt(e.paymasterPostOpGasLimit)),e.paymasterVerificationGasLimit&&(t.paymasterVerificationGasLimit=BigInt(e.paymasterVerificationGasLimit)),e.preVerificationGas&&(t.preVerificationGas=BigInt(e.preVerificationGas)),e.verificationGasLimit&&(t.verificationGasLimit=BigInt(e.verificationGasLimit)),t}(u)}}var ef=e.i(856324),eb=e.i(839080);async function eg(e,t){let{hash:a}=t,n=await e.request({method:"eth_getUserOperationReceipt",params:[a]},{dedupe:!0});if(!n)throw new Q({hash:a});let r={...n};return n.actualGasCost&&(r.actualGasCost=BigInt(n.actualGasCost)),n.actualGasUsed&&(r.actualGasUsed=BigInt(n.actualGasUsed)),n.logs&&(r.logs=n.logs.map(e=>(0,ef.formatLog)(e))),n.receipt&&(r.receipt=(0,eb.formatTransactionReceipt)(r.receipt)),r}async function ev(e,t){var i,s;let{account:o=e.account,entryPointAddress:u}=t;if(!o&&!t.sender)throw new n.AccountNotFoundError;let p=o?(0,a.parseAccount)(o):void 0,c=p?await (0,r.getAction)(e,em,"prepareUserOperation")(t):t,d=t.signature||await (null==p||null==(i=p.signUserOperation)?void 0:i.call(p,c)),m=en({...c,signature:d});try{return await e.request({method:"eth_sendUserOperation",params:[m,null!=u?u:null==p||null==(s=p.entryPoint)?void 0:s.address]},{retryCount:0})}catch(a){let e=t.calls;throw ee(a,{...c,...e?{calls:e}:{},signature:d})}}e.s(["sendUserOperation",()=>ev],234984),e.s(["waitForUserOperationReceipt",()=>eP],263396);var ex=e.i(20101),ew=e.i(976215),eh=e.i(34888);function eP(e,t){let{hash:a,pollingInterval:n=e.pollingInterval,retryCount:i,timeout:s=12e4}=t,o=0,u=(0,eh.stringify)(["waitForUserOperationReceipt",e.uid,a]);return new Promise((t,p)=>{let c=(0,ex.observe)(u,{resolve:t,reject:p},t=>{let u=e=>{d(),e(),c()},p=s?setTimeout(()=>u(()=>t.reject(new Y({hash:a}))),s):void 0,d=(0,ew.poll)(async()=>{i&&o>=i&&(clearTimeout(p),u(()=>t.reject(new Y({hash:a}))));try{let n=await (0,r.getAction)(e,eg,"getUserOperationReceipt")({hash:a});clearTimeout(p),u(()=>t.resolve(n))}catch(e){"UserOperationReceiptNotFoundError"!==e.name&&(clearTimeout(p),u(()=>t.reject(e)))}o++},{emitOnBegin:!0,interval:n});return d})})}function eG(e){return{estimateUserOperationGas:t=>ey(e,t),getChainId:()=>(0,t.getChainId)(e),getSupportedEntryPoints:()=>e.request({method:"eth_supportedEntryPoints"}),getUserOperation:t=>el(e,t),getUserOperationReceipt:t=>eg(e,t),prepareUserOperation:t=>em(e,t),sendUserOperation:t=>ev(e,t),waitForUserOperationReceipt:t=>eP(e,t)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.