1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66490],{830:(e,t,a)=>{a.d(t,{q:()=>p});var n=a(5029),i=a(19598),r=a(74015),s=a(8599),o=a(28765),u=a(3059);async function p(e){let{extend:t,nonceKeyManager:a=(0,o.L8)({source:{get:()=>Date.now(),set(){}}}),...p}=e,c=!1,d=await e.getAddress();return{...t,...p,address:d,async getFactoryArgs(){return"isDeployed"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:e.getFactoryArgs()},async getNonce(t){let i=t?.key??BigInt(await a.consume({address:d,chainId:e.client.chain.id,client:e.client}));return e.getNonce?await e.getNonce({...t,key:i}):await (0,r.J)(e.client,{abi:(0,n.U)(["function getNonce(address, uint192) pure returns (uint256)"]),address:e.entryPoint.address,functionName:"getNonce",args:[d,i]})},isDeployed:async()=>!!c||(c=!!await (0,s.T)(e.client,i.Q,"getCode")({address:d})),...e.sign?{async sign(t){let[{factory:a,factoryData:n},i]=await Promise.all([this.getFactoryArgs(),e.sign(t)]);return a&&n?(0,u.E)({address:a,data:n,signature:i}):i}}:{},async signMessage(t){let[{factory:a,factoryData:n},i]=await Promise.all([this.getFactoryArgs(),e.signMessage(t)]);return a&&n&&"0x7702"!==a?(0,u.E)({address:a,data:n,signature:i}):i},async signTypedData(t){let[{factory:a,factoryData:n},i]=await Promise.all([this.getFactoryArgs(),e.signTypedData(t)]);return a&&n&&"0x7702"!==a?(0,u.E)({address:a,data:n,signature:i}):i},type:"smart"}}},5009:(e,t,a)=>{a.d(t,{$:()=>p});var n=a(81978),i=a(78870),r=a(8599),s=a(46072),o=a(23329),u=a(87208);async function p(e,t){let{account:a=e.account,entryPointAddress:p}=t;if(!a&&!t.sender)throw new i.T;let c=a?(0,n.J)(a):void 0,d=c?await (0,r.T)(e,u.u,"prepareUserOperation")(t):t,m=t.signature||await c?.signUserOperation?.(d),y=(0,o.P)({...d,signature:m});try{return await e.request({method:"eth_sendUserOperation",params:[y,p??c?.entryPoint?.address]},{retryCount:0})}catch(a){let e=t.calls;throw(0,s.t)(a,{...d,...e?{calls:e}:{},signature:m})}}},6371:(e,t,a)=>{a.d(t,{u:()=>r});var n=a(98553),i=a(90811);function r(e){let{r:t,s:a}=n.secp256k1.Signature.fromCompact(e.slice(2,130)),r=Number(`0x${e.slice(130)}`),[s,o]=(()=>{if(0===r||1===r)return[void 0,r];if(27===r)return[BigInt(r),0];if(28===r)return[BigInt(r),1];throw Error("Invalid yParityOrV value")})();return void 0!==s?{r:(0,i.cK)(t,{size:32}),s:(0,i.cK)(a,{size:32}),v:s,yParity:o}:{r:(0,i.cK)(t,{size:32}),s:(0,i.cK)(a,{size:32}),yParity:o}}},23329:(e,t,a)=>{a.d(t,{P:()=>r});var n=a(90811),i=a(66245);function r(e){var t;let a={};return void 0!==e.callData&&(a.callData=e.callData),void 0!==e.callGasLimit&&(a.callGasLimit=(0,n.cK)(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,n.cK)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=(0,n.cK)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(a.nonce=(0,n.cK)(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,n.cK)(e.paymasterPostOpGasLimit)),void 0!==e.paymasterVerificationGasLimit&&(a.paymasterVerificationGasLimit=(0,n.cK)(e.paymasterVerificationGasLimit)),void 0!==e.preVerificationGas&&(a.preVerificationGas=(0,n.cK)(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,n.cK)(e.verificationGasLimit)),void 0!==e.authorization&&(a.eip7702Auth={address:(t=e.authorization).address,chainId:(0,n.cK)(t.chainId),nonce:(0,n.cK)(t.nonce),r:t.r?(0,n.cK)(BigInt(t.r),{size:32}):(0,i.eV)("0x",{size:32}),s:t.s?(0,n.cK)(BigInt(t.s),{size:32}):(0,i.eV)("0x",{size:32}),yParity:t.yParity?(0,n.cK)(t.yParity,{size:1}):(0,i.eV)("0x",{size:32})}),a}},28765:(e,t,a)=>{a.d(t,{L8:()=>i}),a(73912);var n=a(69972);function i(e){let{source:t}=e,a=new Map,i=new n.A(8192),r=new Map,s=({address:e,chainId:t})=>`${e}.${t}`;return{async consume({address:e,chainId:a,client:n}){let r=s({address:e,chainId:a}),o=this.get({address:e,chainId:a,client:n});this.increment({address:e,chainId:a});let u=await o;return await t.set({address:e,chainId:a},u),i.set(r,u),u}
1,async increment({address:e,chainId:t}){let n=s({address:e,chainId:t}),i=a.get(n)??0;a.set(n,i+1)},async get({address:e,chainId:n,client:o}){let u=s({address:e,chainId:n}),p=r.get(u);return p||(p=(async()=>{try{let a=await t.get({address:e,chainId:n,client:o}),r=i.get(u)??0;if(r>0&&a<=r)return r+1;return i.delete(u),a}finally{this.reset({address:e,chainId:n})}})(),r.set(u,p)),(a.get(u)??0)+await p},reset({address:e,chainId:t}){let n=s({address:e,chainId:t});a.delete(n),r.delete(n)}}}},35119:(e,t,a)=>{a.d(t,{L:()=>s});var n=a(92396),i=a(90811),r=a(23329);async function s(e,t){let{chainId:a,entryPointAddress:s,context:o,...u}=t,p=(0,r.P)(u),{paymasterPostOpGasLimit:c,paymasterVerificationGasLimit:d,...m}=await e.request({method:"pm_getPaymasterStubData",params:[{...p,callGasLimit:p.callGasLimit??"0x0",verificationGasLimit:p.verificationGasLimit??"0x0",preVerificationGas:p.preVerificationGas??"0x0"},s,(0,i.cK)(a),o]});return{...m,...c&&{paymasterPostOpGasLimit:(0,n.uU)(c)},...d&&{paymasterVerificationGasLimit:(0,n.uU)(d)}}}},35710:(e,t,a)=>{a.d(t,{Kh:()=>u,Wm:()=>p,oX:()=>o,tN:()=>s});var n=a(64593),i=a(70373),r=a(39261);class s extends n.C{constructor(e,{callData:t,callGasLimit:a,docsPath:n,factory:s,factoryData:o,initCode:u,maxFeePerGas:p,maxPriorityFeePerGas:c,nonce:d,paymaster:m,paymasterAndData:y,paymasterData:l,paymasterPostOpGasLimit:f,paymasterVerificationGasLimit:g,preVerificationGas:b,sender:v,signature:w,verificationGasLimit:h}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",(0,i.aO)({callData:t,callGasLimit:a,factory:s,factoryData:o,initCode:u,maxFeePerGas:void 0!==p&&`${(0,r.Q)(p)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,r.Q)(c)} gwei`,nonce:d,paymaster:m,paymasterAndData:y,paymasterData:l,paymasterPostOpGasLimit:f,paymasterVerificationGasLimit:g,preVerificationGas:b,sender:v,signature:w,verificationGasLimit:h})].filter(Boolean),name:"UserOperationExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class o extends n.C{constructor({hash:e}){super(`User Operation receipt with hash "${e}" could not be found. The User Operation may not have been processed yet.`,{name:"UserOperationReceiptNotFoundError"})}}class u extends n.C{constructor({hash:e}){super(`User Operation with hash "${e}" could not be found.`,{name:"UserOperationNotFoundError"})}}class p extends n.C{constructor({hash:e}){super(`Timed out while waiting for User Operation with hash "${e}" to be confirmed.`,{name:"WaitForUserOperationReceiptTimeoutError"})}}},38681:(e,t,a)=>{a.d(t,{C:()=>c});var n=a(81978),i=a(78870),r=a(8599),s=a(7608),o=a(46072),u=a(23329),p=a(87208);async function c(e,t){let{account:a=e.account,entryPointAddress:c,stateOverride:d}=t;if(!a&&!t.sender)throw new i.T;let m=a?(0,n.J)(a):void 0,y=(0,s.yH)(d),l=m?await (0,r.T)(e,p.u,"prepareUserOperation")({...t,parameters:["authorization","factory","nonce","paymaster","signature"]}):t;try{var f;let t,a=[(0,u.P)(l),c??m?.entryPoint?.address];return f=await e.request({method:"eth_estimateUserOperationGas",params:y?[...a,y]:[...a]}),t={},f.callGasLimit&&(t.callGasLimit=BigInt(f.callGasLimit)),f.preVerificationGas&&(t.preVerificationGas=BigInt(f.preVerificationGas)),f.verificationGasLimit&&(t.verificationGasLimit=BigInt(f.verificationGasLimit)),f.paymasterPostOpGasLimit&&(t.paymasterPostOpGasLimit=BigInt(f.paymasterPostOpGasLimit)),f.paymasterVerificationGasLimit&&(t.paymasterVerificationGasLimit=BigInt(f.paymasterVerificationGasLimit)),t}catch(a){let e=t.calls;throw(0,o.t)(a,{...l,...e?{calls:e}:{}})}}},41462:(e,t,a)=>{a.d(t,{P:()=>c});var n=a(81751),i=a(87973),r=a(46330),s=a(99e3),o=a(66245),u=a(90811),p=a(57582);function c(e,t){if(e.length!==t.length)throw new n.YE({expectedLength:e.length,givenLength:t.length});let a=[];for(let c=0;c<e.length;c++){let d=e[c],m=t[c];a.push(function e(t,a,c=!1){if("address"===t){if(!(0,r.P)(a))throw new i.M({address:a});return(0,o.eV)(a.toLowerCase(),{size:c?32:null})}if("string"===t)return(0,u.i3)(a);if("bytes"===t)return a;
1if("bool"===t)return(0,o.eV)((0,u.$P)(a),{size:c?32:1});let d=t.match(p.Ge);if(d){let[e,t,n="256"]=d,i=Number.parseInt(n)/8;return(0,u.cK)(a,{size:c?32:i,signed:"int"===t})}let m=t.match(p.BD);if(m){let[e,t]=m;if(Number.parseInt(t)!==(a.length-2)/2)throw new n.BI({expectedSize:Number.parseInt(t),givenSize:(a.length-2)/2});return(0,o.eV)(a,{dir:"right",size:c?32:null})}let y=t.match(p.D5);if(y&&Array.isArray(a)){let[t,n]=y,i=[];for(let t=0;t<a.length;t++)i.push(e(n,a[t],!0));return 0===i.length?"0x":(0,s.aP)(i)}throw new n.Wl(t)}(d,m))}return(0,s.aP)(a)}},42840:(e,t,a)=>{a.d(t,{O:()=>d});var n=a(15669),i=a(38681),r=a(35710);async function s(e,{hash:t}){let a,n=await e.request({method:"eth_getUserOperationByHash",params:[t]},{dedupe:!0});if(!n)throw new r.Kh({hash:t});let{blockHash:i,blockNumber:s,entryPoint:o,transactionHash:u,userOperation:p}=n;return{blockHash:i,blockNumber:BigInt(s),entryPoint:o,transactionHash:u,userOperation:(a={...p},p.callGasLimit&&(a.callGasLimit=BigInt(p.callGasLimit)),p.maxFeePerGas&&(a.maxFeePerGas=BigInt(p.maxFeePerGas)),p.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=BigInt(p.maxPriorityFeePerGas)),p.nonce&&(a.nonce=BigInt(p.nonce)),p.paymasterPostOpGasLimit&&(a.paymasterPostOpGasLimit=BigInt(p.paymasterPostOpGasLimit)),p.paymasterVerificationGasLimit&&(a.paymasterVerificationGasLimit=BigInt(p.paymasterVerificationGasLimit)),p.preVerificationGas&&(a.preVerificationGas=BigInt(p.preVerificationGas)),p.verificationGasLimit&&(a.verificationGasLimit=BigInt(p.verificationGasLimit)),a)}}var o=a(56726),u=a(87208),p=a(5009),c=a(69819);function d(e){return{estimateUserOperationGas:t=>(0,i.C)(e,t),getChainId:()=>(0,n.T)(e),getSupportedEntryPoints:()=>e.request({method:"eth_supportedEntryPoints"}),getUserOperation:t=>s(e,t),getUserOperationReceipt:t=>(0,o.b)(e,t),prepareUserOperation:t=>(0,u.u)(e,t),sendUserOperation:t=>(0,p.$)(e,t),waitForUserOperationReceipt:t=>(0,c.V)(e,t)}}},46072:(e,t,a)=>{a.d(t,{t:()=>K});var n=a(64593),i=a(21376),r=a(40169);class s extends n.C{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(s,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});class o extends n.C{constructor({cause:e,data:t,message:a}={}){const n=a?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"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(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32521}),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class u extends n.C{constructor({cause:e}){super("Failed to send funds to beneficiary.",{cause:e,name:"FailedToSendToBeneficiaryError"})}}Object.defineProperty(u,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});class p extends n.C{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: 13,573 bytes, line 1
1Boolean),name:"GasValuesOverflowError"})}}Object.defineProperty(p,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});class c extends n.C{constructor({cause:e}){super("The `handleOps` function was called by the Bundler with a gas limit too low.",{cause:e,name:"HandleOpsOutOfGasError"})}}Object.defineProperty(c,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});class d extends n.C{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: ${t}`,a&&`factoryData: ${a}`,n&&`initCode: ${n}`].filter(Boolean),name:"InitCodeFailedError"})}}Object.defineProperty(d,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});class m extends n.C{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: ${t}`,a&&`factoryData: ${a}`,n&&`initCode: ${n}`].filter(Boolean),name:"InitCodeMustCreateSenderError"})}}Object.defineProperty(m,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});class y extends n.C{constructor({cause:e,factory:t,factoryData:a,initCode:n,sender:i}){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: ${t}`,a&&`factoryData: ${a}`,n&&`initCode: ${n}`,i&&`sender: ${i}`].filter(Boolean),name:"InitCodeMustReturnSenderError"})}}Object.defineProperty(y,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});class l extends n.C{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(l,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});class f extends n.C{constructor({cause:e}){super("Bundler attempted to call an invalid function on the EntryPoint.",{cause:e,name:"InternalCallOnlyError"})}}Object.defineProperty(f,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});class g extends n.C{constructor({cause:e}){super("Bundler used an invalid aggregator for handling aggregated User Operations.",{cause:e,name:"InvalidAggregatorError"})}}Object.defineProperty(g,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});class b extends n.C{constructor({cause:e,nonce:t}){super("Invalid Smart Account nonce used for User Operation.",{cause:e,metaMessages:[t&&`nonce: ${t}`].filter(Boolean),name:"InvalidAccountNonceError"})}}Object.defineProperty(b,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});class v extends n.C{constructor({cause:e}){super("Bundler has not set a beneficiary address.",{cause:e,name:"InvalidBeneficiaryError"})}}Object.defineProperty(v,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa90/});class w extends n.C{constructor({cause:e}){super("Invalid fields set on User Operation.",{cause:e,name:"InvalidFieldsError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class h extends n.C{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: ${t}`].filter(Boolean),name:"InvalidPaymasterAndDataError"})}}Object.defineProperty(h,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa93/});class x extends n.C{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(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32508}),Object.defineProperty(x,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});class G extends n.C{constructor({cause:e}){super("The `validatePaymasterUserOp` function on the Paymaster reverted.",{cause:e,name:"PaymasterFunctionRevertedError"})}}Object.defineProperty(G,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});class P extends n.C{constructor({cause:e}){super("The Paymaster contract has not been deployed.",{cause:e,name:"PaymasterNotDeployedError"})}}Object.defineProperty(P,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa30/});class O extends n.C{constructor({cause:e}){super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.",{cause:e,name:"PaymasterRateLimitError"})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32504});class C extends n.C{constructor({cause:e}){super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.",{cause:e,name:"PaymasterStakeTooLowError"})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32505});class D extends n.C{constructor({cause:e}){super("Paymaster `postOp` function reverted.",{cause:e,name:"PaymasterPostOpFunctionRevertedError"})}}Object.defineProperty(D,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});class L extends n.C{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(L,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});class A extends n.C{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(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32507});class U extends n.C{constructor({cause:e}){super("The `validateUserOp` function on the Smart Account reverted.",{cause:e,name:"SmartAccountFunctionRevertedError"})}}Object.defineProperty(U,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa23/});class S extends n.C{constructor({cause:e}){super("UserOperation rejected because account specified unsupported signature aggregator.",{cause:e,name:"UnsupportedSignatureAggregatorError"})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32506});class F extends n.C{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(F,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});class V extends n.C{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(V,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});class I extends n.C{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 Smart Account"].filter(Boolean),name:"UserOperationSignatureError"})}}Object.defineProperty(I,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});class k extends n.C{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(k,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});class E extends n.C{constructor({cause:e}){super("User Operation rejected by EntryPoint's `simulateValidation` during account creation or validation.",{cause:e,name:"UserOperationRejectedByEntryPointError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32500});class M extends n.C{constructor({cause:e}){super("User Operation rejected by Paymaster's `validatePaymasterUserOp`.",{cause:e,name:"UserOperationRejectedByPaymasterError"})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32501});class B extends n.C{constructor({cause:e}){super("User Operation rejected with op code validation error.",{cause:e,name:"UserOperationRejectedByOpCodeError"})}}Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32502});class T extends n.C{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(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32503});class j extends n.C{constructor({cause:e}){super(`An error occurred while executing user operation: ${e?.shortMessage}`,{cause:e,name:"UnknownBundlerError"})}}class R extends n.C{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(R,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});class z extends n.C{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(z,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/});var N=a(35710);let $=[o,w,x,O,C,A,S,T,E,M,B];function K(e,{calls:t,docsPath:a,...K}){let H=(()=>{let a=function(e,t){let a=(e.details||"").toLowerCase();if(s.message.test(a))return new s({cause:e});if(u.message.test(a))return new u({cause:e});if(p.message.test(a))return new p({cause:e});if(c.message.test(a))return new c({cause:e});if(d.message.test(a))return new d({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(m.message.test(a))return new m({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(y.message.test(a))return new y({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode,sender:t.sender});if(l.message.test(a))return new l({cause:e});if(f.message.test(a))return new f({cause:e});if(b.message.test(a))return new b({cause:e,nonce:t.nonce});if(g.message.test(a))return new g({cause:e});if(v.message.test(a))return new v({cause:e});if(h.message.test(a))return new h({cause:e});if(x.message.test(a))return new x({cause:e});if(G.message.test(a))return new G({cause:e});if(P.message.test(a))return new P({cause:e});if(D.message.test(a))return new D({cause:e});if(U.message.test(a))return new U({cause:e});if(L.message.test(a))return new L({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(F.message.test(a))return new F({cause:e});if(V.message.test(a))return new V({cause:e});if(k.message.test(a))return new k({cause:e});if(I.message.test(a))return new I({cause:e});if(R.message.test(a))return new R({cause:e});if(z.message.test(a))return new z({cause:e});let n=e.walk(e=>$.some(t=>t.code===e.code));if(n){if(n.code===o.code)return new o({cause:e,data:n.data,message:n.details});if(n.code===w.code)return new w({cause:e});if(n.code===x.code)return new x({cause:e});if(n.code===O.code)return new O({cause:e});if(n.code===C.code)return new C({cause:e});if(n.code===A.code)return new A({cause:e});if(n.code===S.code)return new S({cause:e});if(n.code===T.code)return new T({cause:e});if(n.code===E.code)return new E({cause:e});if(n.code===M.code)return new M({cause:e});if(n.code===B.code)return new B({cause:e})}return new j({cause:e})}(e,K);if(t&&a instanceof o){let e,s=(a.walk(t=>{if("string"==typeof t.data||"string"==typeof t.data?.revertData||!(t instanceof n.C)&&"string"==typeof t.message){let a=(t.data?.revertData||t.data||t.message).match?.(/(0x[A-Za-z0-9]*)/);if(a)return e=a[1],!0}return!1}),e),o=t?.filter(e=>e.abi);if(s&&o.length>0)return function(e){let{calls:t,revertData:a}=e,{abi:n,functionName:s,args:o,to:u}=(()=>{let e=t?.filter(e=>!!e.abi);if(1===e.length)return e[0];let n=e.filter(e=>{try{return!!(0,r.W)({abi:e.abi,data:a})}catch{return!1}});return 1===n.length?n[0]:{abi:[],functionName:e.reduce((e,t)=>
1`${e?`${e} | `:""}${t.functionName}`,""),args:void 0,to:void 0}})(),p="0x"===a?new i.rR({functionName:s}):new i.M({abi:n,data:a,functionName:s});return new i.bG(p,{abi:n,args:o,contractAddress:u,functionName:s})}({calls:o,revertData:s})}return a})();return new N.tN(H,{docsPath:a,...K})}},52176:(e,t,a)=>{a.d(t,{B9:()=>n,oi:()=>i});let n="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",i="0x0000000071727De22E5E9d8BAf0edAc6f37da032"},55990:(e,t,a)=>{a.d(t,{Z:()=>m});var n=a(29448),i=a(847),r=a(6612),s=a(99e3);function o(e){let{authorization:t,factory:a,factoryData:n}=e;if("0x7702"===a||"0x7702000000000000000000000000000000000000"===a){if(!t)return"0x7702000000000000000000000000000000000000";let e=t.address;return(0,s.xW)([e,n??"0x"])}return a?(0,s.xW)([a,n??"0x"]):"0x"}var u=a(66245),p=a(90811);function c(e){let{callGasLimit:t,callData:a,maxPriorityFeePerGas:n,maxFeePerGas:i,paymaster:r,paymasterData:c,paymasterPostOpGasLimit:d,paymasterVerificationGasLimit:m,sender:y,signature:l="0x",verificationGasLimit:f}=e,g=(0,s.xW)([(0,u.eV)((0,p.cK)(f||0n),{size:16}),(0,u.eV)((0,p.cK)(t||0n),{size:16})]),b=o(e),v=(0,s.xW)([(0,u.eV)((0,p.cK)(n||0n),{size:16}),(0,u.eV)((0,p.cK)(i||0n),{size:16})]),w=e.nonce??0n;return{accountGasLimits:g,callData:a,initCode:b,gasFees:v,nonce:w,paymasterAndData:r?(0,s.xW)([r,(0,u.eV)((0,p.cK)(m||0n),{size:16}),(0,u.eV)((0,p.cK)(d||0n),{size:16}),c||"0x"]):"0x",preVerificationGas:e.preVerificationGas??0n,sender:y,signature:l}}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:t,entryPointAddress:a,entryPointVersion:s}=e,u=e.userOperation,{authorization:p,callData:m="0x",callGasLimit:y,maxFeePerGas:l,maxPriorityFeePerGas:f,nonce:g,paymasterAndData:b="0x",preVerificationGas:v,sender:w,verificationGasLimit:h}=u;if("0.8"===s)return(0,r.Zh)(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)}}({chainId:t,entryPointAddress:a,userOperation:u}));let x=(()=>{if("0.6"===s){let e=o({authorization:p,factory:u.initCode?.slice(0,42),factoryData:u.initCode?.slice(42)});return(0,n.h)([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"bytes32"}],[w,g,(0,i.S)(e),(0,i.S)(m),y,h,v,l,f,(0,i.S)(b)])}if("0.7"===s){let e=c(u);return(0,n.h)([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"}],[e.sender,e.nonce,(0,i.S)(e.initCode),(0,i.S)(e.callData),e.accountGasLimits,e.preVerificationGas,e.gasFees,(0,i.S)(e.paymasterAndData)])}throw Error(`entryPointVersion "${s}" not supported.`)})();return(0,i.S)((0,n.h)([{type:"bytes32"},{type:"address"},{type:"uint256"}],[(0,i.S)(x),a,BigInt(t)]))}},56726:(e,t,a)=>{a.d(t,{b:()=>s});var n=a(35710),i=a(61069),r=a(22669);async function s(e,{hash:t}){let a,s=await e.request({method:"eth_getUserOperationReceipt",params:[t]},{dedupe:!0});if(!s)throw new n.oX({hash:t});return a={...s},s.actualGasCost&&(a.actualGasCost=BigInt(s.actualGasCost)),s.actualGasUsed&&(a.actualGasUsed=BigInt(s.actualGasUsed)),s.logs&&(a.logs=s.logs.map(e=>(0,i.e)(e))),s.receipt&&(a.receipt=(0,r.uL)(a.receipt)),a}},69819:(e,t,a)=>{a.d(t,{V:()=>p});var n=a(8599),i=a(82277),r=a(44542),s=a(87564),o=a(35710),u=a(56726);function p(e,t){let{hash:a,pollingInterval:p=e.pollingInterval,retryCount:c,timeout:d=12e4}=t,m=0,y=(0,s.A)(["waitForUserOperationReceipt",e.uid,a]);return new Promise((t,s)=>{let l=(0,i.lB)(y,{resolve:t,reject:s},t=>{let i=e=>{s(),e(),l()},s=(0,r.w)(async()=>{c&&m>=c&&i(()=>t.reject(new o.Wm({hash:a})));try{let r=await (0,n.T)(e,u.b,"getUserOperationReceipt")({hash:a});i(()=>t.resolve(r))}catch(e){"UserOperationReceiptNotFoundError"!==e.name&&i(()=>t.reject(e))}m++},{emitOnBegin:!0,interval:p});return d&&setTimeout(()=>i(()=>t.reject(new o.Wm({hash:a}))),d),s})})}},87208:(e,t,a)=>{a.d(t,{u:()=>f});var n=a(81978),i=a(17705),r=a(16878),s=a(15669),o=a(78870),u=a(46511),p=a(99e3),c=a(8599),d=a(89567),m=a(35119),y=a(38681);let l=["factory","fees","gas","paymaster","nonce","signature","authorization"];async function f(e,t){let a,{account:f=e.account,parameters:g=l,stateOverride:b}=t;if(!f)throw new o.T;let v=(0,n.J)(f),w=t.paymaster??e?.paymaster,h="string"==typeof w?w:void 0,{getPaymasterStubData:x,getPaymasterData:G}=(()=>
vendor: 16,384 bytes, line 1
1{if(!0===w)return{getPaymasterStubData:t=>(0,c.T)(e,m.L,"getPaymasterStubData")(t),getPaymasterData:t=>(0,c.T)(e,d.l,"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}})(),P=t.paymasterContext?t.paymasterContext:e?.paymasterContext,O={...t,paymaster:h,sender:v.address},[C,D,L,A,U]=await Promise.all([(async()=>t.calls?v.encodeCalls(t.calls.map(e=>e.abi?{data:(0,u.p)(e),to:e.to,value:e.value}:e)):t.callData)(),(async()=>{if(!g.includes("factory"))return;if(t.initCode)return{initCode:t.initCode};if(t.factory&&t.factoryData)return{factory:t.factory,factoryData:t.factoryData};let{factory:e,factoryData:a}=await v.getFactoryArgs();return"0.6"===v.entryPoint.version?{initCode:e&&a?(0,p.xW)([e,a]):void 0}:{factory:e,factoryData:a}})(),(async()=>{if(g.includes("fees")){if("bigint"==typeof t.maxFeePerGas&&"bigint"==typeof t.maxPriorityFeePerGas)return O;if(e?.userOperation?.estimateFeesPerGas){let t=await e.userOperation.estimateFeesPerGas({account:v,bundlerClient:e,userOperation:O});return{...O,...t}}try{let a=e.client??e,n=await (0,c.T)(a,r._,"estimateFeesPerGas")({chain:a.chain,type:"eip1559"});return{maxFeePerGas:"bigint"==typeof t.maxFeePerGas?t.maxFeePerGas:BigInt(2n*n.maxFeePerGas),maxPriorityFeePerGas:"bigint"==typeof t.maxPriorityFeePerGas?t.maxPriorityFeePerGas:BigInt(2n*n.maxPriorityFeePerGas)}}catch{return}}})(),(async()=>{if(g.includes("nonce"))return"bigint"==typeof t.nonce?t.nonce:v.getNonce()})(),(async()=>{if(g.includes("authorization")){if("object"==typeof t.authorization)return t.authorization;if(v.authorization&&!await v.isDeployed())return{...await (0,i.h)(v.client,v.authorization),r:"0xfffffffffffffffffffffffffffffff000000000000000000000000000000000",s:"0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",yParity:1}}})()]);async function S(){return a||(e.chain?e.chain.id:a=await (0,c.T)(e,s.T,"getChainId")({}))}void 0!==C&&(O.callData=C),void 0!==D&&(O={...O,...D}),void 0!==L&&(O={...O,...L}),void 0!==A&&(O.nonce=A),void 0!==U&&(O.authorization=U),g.includes("signature")&&(void 0!==t.signature?O.signature=t.signature:O.signature=await v.getStubSignature(O)),"0.6"!==v.entryPoint.version||O.initCode||(O.initCode="0x");let F=!1;if(g.includes("paymaster")&&x&&!h&&!t.paymasterAndData){let{isFinal:e=!1,sponsor:t,...a}=await x({chainId:await S(),entryPointAddress:v.entryPoint.address,context:P,...O});F=e,O={...O,...a}}if("0.6"!==v.entryPoint.version||O.paymasterAndData||(O.paymasterAndData="0x"),g.includes("gas")){if(v.userOperation?.estimateGas){let e=await v.userOperation.estimateGas(O);O={...O,...e}}if(void 0===O.callGasLimit||void 0===O.preVerificationGas||void 0===O.verificationGasLimit||O.paymaster&&void 0===O.paymasterPostOpGasLimit||O.paymaster&&void 0===O.paymasterVerificationGasLimit){let t=await (0,c.T)(e,y.C,"estimateUserOperationGas")({account:v,callGasLimit:0n,preVerificationGas:0n,verificationGasLimit:0n,stateOverride:b,...O.paymaster?{paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n}:{},...O});O={...O,callGasLimit:O.callGasLimit??t.callGasLimit,preVerificationGas:O.preVerificationGas??t.preVerificationGas,verificationGasLimit:O.verificationGasLimit??t.verificationGasLimit,paymasterPostOpGasLimit:O.paymasterPostOpGasLimit??t.paymasterPostOpGasLimit,paymasterVerificationGasLimit:O.paymasterVerificationGasLimit??t.paymasterVerificationGasLimit}}}if(g.includes("paymaster")&&G&&!h&&!t.paymasterAndData&&!F){let e=await G({chainId:await S(),entryPointAddress:v.entryPoint.address,context:P,...O});O={...O,...e}}return delete O.calls,delete O.parameters,delete O.paymasterContext,"string"!=typeof O.paymaster&&delete O.paymaster,O}},89567:(e,t,a)=>{a.d(t,{l:()=>s});var n=a(92396),i=a(90811),r=a(23329);async function s(e,t){let{chainId:a,entryPointAddress:s,context:o,...u}=t,p=(0,r.P)(u),{paymasterPostOpGasLimit:c,paymasterVerificationGasLimit:d,...m}=await e.request({method:"pm_getPaymasterData",params:[{...p,callGasLimit:p.callGasLimit??"0x0",verificationGasLimit:p.verificationGasLimit??"0x0",preVerificationGas:p.preVerificationGas??"0x0"},s,(0,i.cK)(a),o]});return{...m,...c&&{paymasterPostOpGasLimit:(0,n.uU)(c)},...d&&{paymasterVerificationGasLimit:(0,n.uU)(d)}}}},93775:(e,t,a)=>{a.d(t,{hw:()=>n,qe:()=>i});let n=[{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"}],i=[{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:"pay
1master",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:"paymasterPostOpGasLimit",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"}]}}]);
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.