1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3101],{59974:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/paymaster/[...slug]",function(){return t(32378)}])},39810:function(e,s,t){"use strict";var a=t(85893),r=(t(67294),t(94156));s.Z=function(e){const{children:s,icon:t,toolTip:n}=e;return n?(0,a.jsxs)("div",{className:"flex items-center gap-2 py-2 ",children:[(0,a.jsx)(r.Z,{title:n,children:(0,a.jsx)("img",{src:t,alt:""})}),(0,a.jsx)("span",{className:"font-normal text-am leading-5 ",children:s})]}):(0,a.jsxs)("div",{className:"flex items-center gap-2 py-2 ",children:[(0,a.jsx)("img",{src:t,alt:""}),(0,a.jsx)("span",{className:"font-normal text-am leading-5 ",children:s})]})}},20285:function(e,s,t){"use strict";var a=t(85893),r=t(67294),n=t(30281),i=t.n(n),o=t(34646),l=t(17106),c=t(57349),d=t(74384);s.Z=function(e){const{variant:s="contained",isMoreSelected:t,className:n,setIsMoreSelected:x,onClickFcn:u,dropdownNetworkList:p,disabled:m,selectedNetwork:h}=e,f=t?"dark-700":"white",[g,v]=(0,r.useState)(d.ZH[h]),[j,w]=(0,r.useState)(""),[y,N]=(0,r.useState)(e.dropdownNetworkList);return(0,r.useEffect)((()=>{v(d.ZH[h])}),[h]),(0,r.useEffect)((()=>{if(""===j.trim())N(p);else{const e=p.filter((e=>e.name.toLowerCase().includes(j.toLowerCase())));N(e)}}),[j,p]),(0,a.jsx)("div",{className:"text-sm",children:(0,a.jsxs)(o.v,{as:"div",className:"relative inline-block text-left",children:[(0,a.jsx)("span",{children:(0,a.jsxs)(o.v.Button,{className:"".concat(i().wrapper," ").concat(i()[s]," ").concat(i()[f]," ").concat(n||""," ").concat(m?i().disabled:""),children:[g&&t&&(0,a.jsx)("img",{src:g,alt:"",style:{height:"12px",width:"12px"}}),t?h:"More",(0,a.jsx)(c.Z,{className:"w-5 h-5 -mr-1 text-gray-400","aria-hidden":"true"})]})}),(0,a.jsx)(l.u,{as:r.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,a.jsx)(o.v.Items,{className:"absolute right-0 mt-2 origin-top-right bg-white rounded-md shadow-lg w-52 ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,a.jsx)("div",{className:"max-h-56 overflow-y-auto rounded-md p-2",children:(0,a.jsxs)("div",{className:"flex flex-col py-1",children:[(0,a.jsx)("input",{type:"text",className:"px-3 py-1 rounded-md mb-2 focus:outline-none focus:border-primary-400 w-40 text-sm",placeholder:"Search Chains...",value:j,onChange:e=>w(e.target.value)}),y.map(((e,s)=>{let{name:t,key:r,iconPath:n}=e;return(0,a.jsx)(o.v.Item,{children:e=>{let{active:s}=e;return(0,a.jsxs)("a",{onClick:()=>{x(!0),u(r),v(n)},className:"\n ".concat(s?"bg-gray-100 text-gray-900":"text-gray-700"," \n block flex items-center gap-3 px-4 py-2 text-sm\n "),children:[(0,a.jsx)("img",{src:n,alt:"",style:{height:"12px",width:"12px"}}),t]})}},r)}))]})})})})]})})}},14574:function(e,s,t){"use strict";t.d(s,{Z:function(){return o}});var a=t(85893),r=t(67294),n=t(71670),i=t(15109);function o(e){let{item:s,network:t}=e;var o,l;const[c,d]=(0,r.useState)((0,i.JK)(s,t));return(0,r.useEffect)((()=>{d((0,i.JK)(s,t))}),[s,t]),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex items-center gap-2 mt-2 text-rgiht",children:[(0,a.jsx)("span",{children:"object"==typeof(null===c||void 0===c?void 0:c.value)?parseInt(null===c||void 0===c?void 0:c.value.hex):c.value}),(0,a.jsx)(n.Z,{variant:"outlined",color:null===c||void 0===c||null===(o=c.gas)||void 0===o?void 0:o.color,children:null===c||void 0===c||null===(l=c.gas)||void 0===l?void 0:l.children})]})})}},3054:function(e,s,t){"use strict";var a=t(85893),r=t(67294),n=t(11163),i=t(39377),o=t(74384),l=t(4701),c=t(71670),d=t(20285),x=t(15109),u=t(41664),p=t.n(u);s.Z=e=>{let{item:s,network:t,addressMapping:u,displayNetworkList:m,headerTitle:h,defaultChipSize:f=0}=e;var g;const{selectedNetwork:v,setSelectedNetwork:j}=(0,i.Z)(),w=(0,n.useRouter)(),[y,N]=(0,r.useState)(f),[k,b]=(0,r.useState)(!1),Z=m.slice(0,y),S=m.slice(y);return(0,r.useEffect)((()=>{b(((e,s)=>s.some((s=>{let{key:t}=s;return t===e})))("string"===typeof w.query.network?w.query.network:"",S))}),[w.query.network,S]),(0,a.jsx)("div",{children:(0,a.jsx)("section",{className:"px-3",children:(0,a.jsxs)("div",{className:"container bg-white rounded shadow-200 px-[16px] py-[12px]",children:[(0,a.jsx)("h3",{className:"text-[15px] leading-[28px] font-bold text-dark-600",children:h}),(0,a.jsxs)("div",{className:"md:flex items-center gap-4 pt-[14px] pb-[2px]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("img",{src:o.ZH[t],alt:"",className:"h-[20px]"}),(0,a.jsx)("span",{className:"text-sm font-normal leading-5 text-dark-600",children:null===(g=o.FV.find((e=>e.key===t)))||void 0===g?void 0:g.name})]}),(0,a.jsxs)("div",{className:"w-full flex flex-col max-md:gap-[1rem] md:flex-row justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center flex-1 gap-2 break-words",children:[(0,a.jsx)("span",{className:"text-sm leading-5 break-all text-dark-600",children:null===s||void 0===s?void 0:s.address}),(0,a.jsx)(l.Z,{text:null===s||void 0===s?void 0:s.address}),(0,a.jsx)("button",{className:"outline-none focus:outline-none ring-0 focus:ring-0",children:(0,a.jsx)(p(),{href:"".concat(o.C[t],"/address/").concat(null===s||void 0===s?void 0:s.address),"aria-current":"page",target:"_blank",children:(0,a.jsx)("img",{src:(0,x.gr)(t),style:{height:"16px",width:"16px"},alt:""})})})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-1",children:[Z.map(((e,s)=>{let{name:t,key:r,iconPath:n,iconPathInverted:i}=e;return(0,a.jsx)(c.Z,{onClick:()=>{w.push({pathname:w.pathname,query:{...w.query,network:r}}),b(!1)},startIcon:w.query.network===r?i:n,color:"".concat(w.query.network===r?"dark-700":"white"),children:t},s)})),m.length>f&&(0,a.jsx)(d.Z,{onClickFcn:e=>{w.push({pathname:w.pathname,query:{...w.query,network:e}}),b(!1)},selectedNetwork:w.query.network||"",isMoreSelected:k,setIsMoreSelected:b,dropdownNetworkList:S})]})]}),(null===s||void 0===s?void 0:s.address)&&"string"===typeof s.address&&u&&u[s.address.toLowerCase()]&&u[s.address.toLowerCase()].company&&o.Rt[u[s.address.toLowerCase()].company.toLowerCase()]&&(0,a.jsx)("div",{className:"md:px-[16px] px-0 md:py-[8px] py-0",children:(0,a.jsxs)("span",{className:"text-bluegrey-300 text-[10px] leading-5 flex items-center gap-2 font-normal",children:["Powered By"," ",(0,a.jsx)("img",{src:o.Rt[u[s.address.toLowerCase()].company.toLowerCase()].small,style:{height:20,width:20},alt:""})]})})]})]})})})}},838:function(e,s,t){"use strict";var a=t(67294);s.Z=function(e){const s=(0,a.useRef)();return(0,a.useEffect)((()=>{s.current=e}),[e]),s.current}},32378:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return P}});var a=t(85893),r=t(69535),n=t(5814),i=t(32284),o=t(18516),l=t(67294),c=t(43800),d=t(23795),x=t(12963),u=t(21023),p=t(11163),m=t(15109),h=t(74384),f=t(22682),g=t(59070),v=t(14574),j=t(39810),w=t(28990),y=t(69954);function N(e){let{item:s,network:t}=e;const[r,n]=(0,l.useState)(!0);(0,l.useEffect)((()=>{n(!0),t&&setTimeout((()=>{n(!1)}),1e3)}),[t]);let i=Array(3).fill(0);(0,p.useRouter)();return(0,a.jsx)("div",{children:(0,a.jsx)("section",{className:"mt-[48px] px-3",children:(0,a.jsxs)("div",{className:"container px-0",children:[(0,a.jsx)("div",{children:(0,a.jsx)(w.Z,{icon:"/images/cube.svg",text:"",children:"Paymaster Details"})}),(0,a.jsx)("div",{className:"bg-white overflow-auto rounded shadow-300 mb-[20px]",children:r?i.map((e=>(0,a.jsx)(y.ZP,{height:55},e))):(0,a.jsx)("div",{children:(0,a.jsx)("section",{className:"",children:(0,a.jsx)("div",{className:"container px-0 rounded",children:(0,a.jsxs)("div",{className:"flex md:pt-[0px] pt-[16px] items-center md:border-b border-[#ccc] border-0 md:gap-[20px] gap-[10px] pb-[2px]",children:[(0,a.jsx)("div",{className:"md:w-[280px] px-[16px] py-[8px] flex items-center gap-2",children:(0,a.jsx)(j.Z,{icon:"/images/sader.svg",children:(0,a.jsx)("span",{className:"text-[14px] font-normal md:block hidden leading-5 text-dark-600",children:"Total Deposit"})})}),(0,a.jsxs)("div",{className:"flex-1 gap-2 break-words ",children:[(0,a.jsx)("div",{children:(0,a.jsx)("p",{className:"text-[14px] text-[#455A64] md:hidden block",children:"Total Deposit"})}),(0,a.jsx)("div",{className:"justify-between block md:flex",children:(0,a.jsx)("div",{className:"flex items-center gap-[10px]",children:(0,a.jsx)("span",{className:"text-dark-600 md:text-[14px] text-[16px] break-all leading-5",children:(0,a.jsx)(v.Z,{item:(null===s||void 0===s?void 0:s.totalDeposit)?null===s||void 0===s?void 0:s.totalDeposit:"0",network:t})})})})]})]})})})})})]})})})}var k=t(3054),b=t(91444),Z=(t(71399),t(39377)),S=t(838);const L=[{name:"UserOp Hash",sort:!0},{name:"Age",sort:!0},{name:"Sender",sort:!1},{name:"Target",sort:!1},{name:"Fee",sort:!0}];var C=function(e){const s=(0,p.useRouter)(),[t,r]=(0,l.useState)(!0),{addressMapping:n}=(0,Z.Z)(),v=e.slug&&e.slug[0],j=s.query&&s.query.network,w=(0,S.Z)(j),[y,C]=(0,l.useState)([]),[E,O]=(0,l.useState)(),[P,q]=(0,l.useState)(0),[T,_]=(0,l.useState)(10),[R,F]=(0,l.useState)("N/A User Ops foun
1d"),[D,I]=(0,l.useState)([]),[A,H]=(0,l.useState)(!1),M=async(e,s,t)=>{if(r(!0),void 0==E)return;const a=(e=>{let s=[];return null===e||void 0===e||e.forEach((e=>{s.push({token:{text:e.userOpHash,icon:h.ZH[e.network],type:"userOp"},ago:(0,m.cJ)(e.blockTime),sender:e.sender,target:e.target?e.target:["Unavailable!"],fee:(0,m.JK)(e.actualGasCost,e.network),status:!e.success||e.success})})),s})((await(0,c.vz)(E.address,e||"",s,t,b.Am)).userOps);C(a),r(!1)},U=async(e,s)=>{r(!0);const t=await(0,c.vz)(e,s||"",10,P,b.Am),a={address:(n=t).address,totalDeposits:parseInt(n.totalDeposits),userOpsLength:null===n||void 0===n?void 0:n.userOpsLength};var n;O(a)};(0,l.useEffect)((()=>{M(j||"",T,P);const e=new URLSearchParams(window.location.search);e.set("pageNo",P.toString()),e.set("pageSize",T.toString()),window.history.pushState(null,"","".concat(window.location.pathname,"?").concat(e.toString()))}),[P,E]),(0,l.useEffect)((()=>{const e="".concat(null===E||void 0===E?void 0:E.userOpsLength," User Ops found");F(e)}),[E]);let z=v;(0,l.useEffect)((()=>{void 0===z&&void 0===w||(z=v,U(v,j))}),[v,j]),Array(5).fill(0);const J=l.useCallback((async e=>{const s=[],t=Object.keys(h.FV);try{(await(0,c.Dw)(e)).forEach(((e,a)=>{if(!e.message){const e=t[a];s.push(e)}}));const a=s.filter((e=>"string"===typeof e&&!isNaN(Number(e))&&Number(e)<h.FV.length));I(a.map((e=>h.FV[Number(e)]))),H(!0)}catch(a){console.error("Error fetching data for networks:",a)}}),[]);return l.useEffect((()=>{!A&&v&&J(v)}
1),[v,A,J]),(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)(o.Z,{searchbar:!0}),(0,a.jsx)("section",{className:"px-3 py-10",children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsxs)("div",{className:"flex flex-row",children:[(0,a.jsx)(d.Z,{href:"/",className:"text-gray-500",children:(0,a.jsx)(u.Z,{style:{height:"15px",width:"15px",marginRight:"20px",marginLeft:"10px",marginBottom:"3px"}})}),(0,a.jsxs)(x.Z,{"aria-label":"breadcrumb",children:[(0,a.jsx)(d.Z,{underline:"hover",color:"inherit",href:"/"+(j?"?network="+j:""),children:"Home"}),(0,a.jsx)(d.Z,{underline:"hover",color:"inherit",href:"/recentUserOps",children:"Recent User Ops"}),(0,a.jsx)(d.Z,{underline:"hover",color:"text.primary",href:"/address/".concat(v,"?network=").concat(j||""),"aria-current":"page",children:(0,m.Sy)(v)})]})]}),(0,a.jsx)("h1",{className:"text-3xl font-bold",children:"Paymaster"})]})}),(0,a.jsx)(k.Z,{item:E,network:j,displayNetworkList:D,headerTitle:"Paymaster"}),(0,a.jsx)(N,{item:E,network:j}),(0,a.jsxs)("div",{className:"container px-0",children:[(0,a.jsx)(f.Z,{rows:y,columns:L,loading:t,caption:{children:R,icon:"/images/cube.svg",text:"Approx Number of Operations Processed in the selected chain"}}),(0,a.jsx)(g.Z,{pageDetails:{pageNo:P,setPageNo:q,pageSize:T,setPageSize:e=>{_(e),q(0)},totalRows:null!=(null===E||void 0===E?void 0:E.userOpsLength)?E.userOpsLength:0}})]}),(0,a.jsx)(b.Ix,{}),(0,a.jsx)(i.Z,{})]})},E=t(49089);function O(){const e=(0,p.useRouter)(),{slug:s}=e.query;return(0,l.useEffect)((()=>{E.ZP.send({hitType:"pageview",page:window.location.pathname})}),[]),(0,a.jsxs)("div",{children:[(0,a.jsx)(r.Z,{}),(0,a.jsx)(C,{slug:s})]})}var P=O;O.getLayout=e=>(0,a.jsx)(n.Z,{children:e})}},function(e){e.O(0,[6660,1664,3854,6166,9920,2383,8290,6682,3860,6737,971,9774,2888,179],(function(){return s=59974,e(e.s=s);var s}));var s=e.O();_N_E=s}]); 2//# sourceMappingURL=[...slug]-dce5a5e69bf9df28.js.map
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.