PageSourceSearch

https://teloscan.io/_next/static/chunks/pages/index-85e683ff833b93c0.js

js teloscan.io collected 2026-09-28 07:25:35 UTC 78,176 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3332],{227:(e,t,a)=>{"use strict";a.d(t,{E:()=>c});var i=a(37876),n=a(14232),s=a(57175),r=a(54854),l=a(33712);function o(e){return(0,l.s)(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}let c=(0,n.forwardRef)(function(e,t){let{area:a,colSpan:n,colStart:l,colEnd:c,rowEnd:d,rowSpan:u,rowStart:h,...m}=e,x=(0,r.o)({gridArea:a,gridColumn:o(n),gridRow:o(u),gridColumnStart:l,gridColumnEnd:c,gridRowStart:h,gridRowEnd:d});return(0,i.jsx)(s.B.div,{ref:t,css:x,...m})})},303:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var i=a(37876),n=a(58509),s=a(57175),r=a(14232),l=a(20191),o=a(83614),c=a(34742),d=a(12265);let u=r.memo((0,s.B)(e=>{let t,a,{coinType:s,tokenSymbol:r,amount:u,decimals:h,isLoading:m,className:x,accuracy:p=8}=e;switch(s){case l.Uv.ERC20:t=r||"Unnamed token",a=(0,c.A)({value:u,decimals:(null==h?void 0:h.toString())||"18",accuracy:p}).valueStr;break;case l.Uv.ZETA:var _;t=o.A.chain.currency.symbol||o.A.chain.currency.name||"",a=(0,c.A)({value:u,decimals:(null===(_=o.A.chain.currency.decimals)||void 0===_?void 0:_.toString())||"18",accuracy:p}).valueStr;break;case l.Uv.GAS:t=r||"Unnamed token",a=(0,c.A)({value:u,decimals:(null==h?void 0:h.toString())||"18",accuracy:p}).valueStr;break;default:t="-"}return(0,i.jsxs)(d.EA,{loading:m,display:"flex",gap:1,overflow:"hidden",className:x,children:[(0,i.jsx)(n.E,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:a}),(0,i.jsx)(n.E,{color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:t})]})}))},1076:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var i=a(37876),n=a(57175);a(14232);var s=a(83614),r=a(95384),l=a(46894),o=a(12963);let c=s.A.features.adsBanner,d=(0,n.B)(e=>{let{className:t,isLoading:a,platform:n}=e,s=(0,r.U)().adBannerProvider,d=l.Jt(l.Xk.ADBLOCK_DETECTED,(0,r.U)().cookies);return c.isEnabled&&"true"!==d&&s?(0,i.jsx)(o.A,{className:t,isLoading:a,provider:s,platform:n}):null})},2072:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var i=a(37876),n=a(57175);a(14232);var s=a(65370),r=a(83614),l=a(99845);let o=r.A.features.rollup,c=(0,n.B)(e=>{var t,a;if(!o.isEnabled)return null;let n=o.parentChain.baseUrl+(0,s.w)({pathname:"/block/[height_or_hash]",query:{height_or_hash:null!==(t=e.hash)&&void 0!==t?t:String(e.number)}});return(0,i.jsx)(l.Ay,{...e,href:null!==(a=e.href)&&void 0!==a?a:n,isExternal:!0})})},2454:(e,t,a)=>{"use strict";a.d(t,{w:()=>r});var i=a(82337),n=a(30642),s=a(10276);let r={sender:{hash:n.W},target:{hash:n.W},nonce:4261,init_chain_id:"420120000",init_transaction_hash:s.Iu,timestamp:"2025-06-03T10:43:58.000Z",relay_chain_id:"420120001",relay_transaction_hash:s.Iu,payload:"0x4f0edcc90000000000000000000000004",message_type:"coin_transfer",method:"sendERC20",status:i.InteropMessage_Status.PENDING}},3083:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var i=a(37876);a(14232);var n=a(98078);let s=e=>{let t,{status:a,isLoading:s}=e;switch(a){case"L1 Sequence Confirmed":case"Finalized":t="ok";break;default:t="pending"}return(0,i.jsx)(n.A,{type:t,text:a,loading:s})}},5033:(e,t,a)=>{"use strict";a.d(t,{A:()=>g,l:()=>x});var i=a(37876),n=a(43123),s=a(21555),r=a(14436),l=a(14232),o=a(83614),c=a(68006),d=a(1076),u=a(96902),h=a(98712),m=a(73582);let x="radial-gradient(103.03% 103.03% at 0% 0%, rgba(183, 148, 244, 0.8) 0%, rgba(0, 163, 196, 0.8) 100%), var(--chakra-colors-blue-400)",p="white",_="none",g=l.memo(()=>{var e,t,a,l,g,b,v,f,j,A,y,E,k,S,w,N,D,C;let I={_light:(null===(t=o.A.UI.homepage.heroBanner)||void 0===t?void 0:null===(e=t.background)||void 0===e?void 0:e[0])||o.A.UI.homepage.plate.background||x,_dark:(null===(l=o.A.UI.homepage.heroBanner)||void 0===l?void 0:null===(a=l.background)||void 0===a?void 0:a[1])||(null===(b=o.A.UI.homepage.heroBanner)||void 0===b?void 0:null===(g=b.background)||void 0===g?void 0:g[0])||o.A.UI.homepage.plate.background||x},T={_light:(null===(f=o.A.UI.homepage.heroBanner)||void 0===f?void 0:null===(v=f.text_color)||void 0===v?void 0:v[0])||o.A.UI.homepage.plate.textColor||p,_dark:(null===(A=o.A.UI.homepage.heroBanner)||void 0===A?void 0:null===(j=A.text_color)||void 0===j?void 0:j[1])||(null===(E=o.A.UI.homepage.heroBanner)||void 0===E?void 0:null===(y=E.text_color)||void 0===y?void 0:y[0])||o.A.UI.homepage.plate.textColor||p},L={_light:(null===(S=o.A.UI.homepage.heroBanner)||void 0===S?void 0:null===(k=S.border)||void 0===k?void 0:k[0])||_,_dark:(null===(N=o.A.UI.homepage.heroBanner)||void 0===N?void 0:null===(w=N.border)||void 0===w?void 0:w[1])||(null===(C=o.A.UI.homepage.heroBanner)||void 0===C?void 0:null===(D=C.border)||void 0===D?void 0:D[0])||_};return(0,i.jsxs)(n.s,{w:"100%",background:I,border:L,borderRadius:"md",p:{base:4,lg:8},columnGap:8,alignItems:"center",children:[(0,i.jsxs)(s.a,{flexGrow:1,children:[(0,i.jsxs)(n.s,{mb:{base:2,lg:3},justifyContent:"space-between",alignItems:"center",columnGap:2,children:[(0,i.jsx)(r.D,{as:"h1",fontSize:{base:"18px",lg:"30px"},lineHeight:{base:"24px",lg:"36px"},fontWeight:{base:500,lg:700},color:T,children:o.A.meta.seo.enhancedDataEnabled?"".concat(o.A.chain.name," blockchain explorer"):"".concat(o.A.chain.name," explorer")}),"vertical"===o.A.UI.navigation.layout&&(0,i.jsxs)(s.a,{display:{base:"none",lg:"flex"},gap:2,children:[o.A.features.rewards.isEnabled&&(0,i.jsx)(c.A,{variant:"hero"}),o.A.features.account.isEnabled&&(0,i.jsx)(h.A,{buttonVariant:"hero"})||o.A.features.blockchainInteraction.isEnabled&&(0,i.jsx)(m.A,{buttonVariant:"hero"})]})]}),(0,i.jsx)(u.A,{isHomepage:!0})]}),(0,i.jsx)(d.A,{platform:"mobile",w:"fit-content",flexShrink:0,borderRadius:"md",overflow:"hidden",display:{base:"none",lg:"block "}})]})})},7170:(e,t,a)=>{"use strict";a.d(t,{H:()=>s});var i=a(99373),n=a(14232);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],[s,r]=n.useState(!1),l=n.useCallback(()=>{var a;Number(null===(a=e.current)||void 0===a?void 0:a.getBoundingClientRect().y)<t?r(!0):r(!1)},[e,t]);return n.useEffect(()=>{if(!a)return;let e=(0,i.n)(l,300);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[a]),s}},8095:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var i=a(14232),n=a(46894),s=a(96848),r=a(65013);function l(){var e;let t=(0,s.SI)(),a=null===(e=(0,r.A)().error)||void 0===e?void 0:e.status;i.useEffect(()=>{401===a&&n.Jt(n.Xk.API_TOKEN)&&(n.TF(n.Xk.API_TOKEN),window.location.assign("/"))},[a,t])}},13566:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>d,i$:()=>c});var i=a(37876),n=a(43123),s=a(57175),r=a(14232),l=a(35271),o=a(7170);let c=68,d=(0,s.B)(e=>{let{children:t,className:a,showShadow:s}=e,c=r.useRef(null),d=(0,l.Y)(),u=(0,o.H)(c,111);
1return r.Children.toArray(t).filter(Boolean).length?(0,i.jsx)(n.s,{className:a,backgroundColor:{_light:"white",_dark:"black"},pt:6,mt:-6,pb:{base:6,lg:3},mx:{base:-3,lg:0},px:{base:3,lg:0},justifyContent:"space-between",width:{base:"100vw",lg:"unset"},position:"sticky",top:{base:"down"===d?"".concat(0,"px"):"".concat(106,"px"),lg:0},transitionProperty:"top,box-shadow,background-color,color",transitionDuration:"normal",zIndex:{base:"sticky2",lg:"docked"},boxShadow:{base:u?"md":"none",lg:u&&s?"action_bar":"none"},ref:c,children:t}):null})},16760:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(77552)}])},19052:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var i=a(37876);a(14232);var n=a(20191),s=a(98078);let r=e=>{let t,{status:a,isLoading:r,type:l="reduced"}=e;switch(a){case n.zj.SUCCESS:t="ok";break;case n.zj.PENDING:t="pending";break;case n.zj.FAILED:t="error";break;case n.zj.UNRECOGNIZED:t="pending"}if("full"===l){let e;switch(a){case n.zj.SUCCESS:e="Success";break;case n.zj.PENDING:e="Pending";break;case n.zj.FAILED:e="Failed";break;case n.zj.UNRECOGNIZED:e="Unrecognized"}return(0,i.jsx)(s.A,{type:t,text:e,size:"md",loading:r})}return(0,i.jsx)(s.A,{type:t,size:"sm",loading:r})}},20191:(e,t)=>{"use strict";var a,i,n,s,r,l,o,c;t.fZ=t.KU=t.DS=t.f6=t.zj=t.hk=t.Uv=t.OP=void 0,function(e){e.ASC="ASC",e.DESC="DESC",e.UNRECOGNIZED="UNRECOGNIZED"}(a||(t.OP=a={})),function(e){e.ZETA="ZETA",e.GAS="GAS",e.ERC20="ERC20",e.CMD="CMD",e.NO_ASSET_CALL="NO_ASSET_CALL",e.UNRECOGNIZED="UNRECOGNIZED"}(i||(t.Uv=i={})),function(e){e.PENDING_INBOUND="PENDING_INBOUND",e.PENDING_OUTBOUND="PENDING_OUTBOUND",e.OUTBOUND_MINED="OUTBOUND_MINED",e.PENDING_REVERT="PENDING_REVERT",e.REVERTED="REVERTED",e.ABORTED="ABORTED",e.UNRECOGNIZED="UNRECOGNIZED"}(n||(t.hk=n={})),function(e){e.PENDING="PENDING",e.SUCCESS="SUCCESS",e.FAILED="FAILED",e.UNRECOGNIZED="UNRECOGNIZED"}(s||(t.zj=s={})),function(e){e.NOT_FINALIZED="NOT_FINALIZED",e.FINALIZED="FINALIZED",e.EXECUTED="EXECUTED",e.UNRECOGNIZED="UNRECOGNIZED"}(r||(t.f6=r={})),function(e){e.SAFE="SAFE",e.FAST="FAST",e.UNRECOGNIZED="UNRECOGNIZED"}(l||(t.DS=l={})),function(e){e.INBOUND_SUCCESS="INBOUND_SUCCESS",e.INSUFFICIENT_DEPOSITOR_FEE="INSUFFICIENT_DEPOSITOR_FEE",e.INVALID_RECEIVER_ADDRESS="INVALID_RECEIVER_ADDRESS",e.INVALID_MEMO="INVALID_MEMO",e.UNRECOGNIZED="UNRECOGNIZED"}(o||(t.KU=o={})),function(e){e.V1="V1",e.V2="V2",e.UNRECOGNIZED="UNRECOGNIZED"}(c||(t.fZ=c={}))},24830:(e,t)=>{"use strict";var a,i;Object.defineProperty(t,"__esModule",{value:!0}),t.HashType=t.TokenType=void 0,function(e){e.TOKEN_TYPE_UNSPECIFIED="TOKEN_TYPE_UNSPECIFIED",e.TOKEN_TYPE_ERC_20="TOKEN_TYPE_ERC_20",e.TOKEN_TYPE_ERC_721="TOKEN_TYPE_ERC_721",e.TOKEN_TYPE_ERC_1155="TOKEN_TYPE_ERC_1155",e.TOKEN_TYPE_ERC_404="TOKEN_TYPE_ERC_404",e.UNRECOGNIZED="UNRECOGNIZED"}(a||(t.TokenType=a={})),function(e){e.HASH_TYPE_BLOCK="HASH_TYPE_BLOCK",e.HASH_TYPE_TRANSACTION="HASH_TYPE_TRANSACTION",e.UNRECOGNIZED="UNRECOGNIZED"}(i||(t.HashType=i={}))},27604:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var i=a(37876),n=a(57175);a(14232);var s=a(65370),r=a(83614),l=a(99845);let o=r.A.features.rollup,c=(0,n.B)(e=>{var t;if(!o.isEnabled)return null;let a=(0,s.w)({pathname:"/batches/[number]",query:{number:e.number.toString()}});return(0,i.jsx)(l.Ay,{...e,href:null!==(t=e.href)&&void 0!==t?t:a,icon:{name:"txn_batches_slim"}})})},29398:(e,t,a)=>{"use strict";a.d(t,{DH:()=>o,OO:()=>s,Yu:()=>d,jP:()=>l,n0:()=>c,xZ:()=>r});var i=a(30642),n=a(10276);let s={l1_block_number:9045233,l1_block_timestamp:"2023-05-22T18:00:36.000000Z",l1_transaction_hash:n.Iu,l1_transaction_origin:i.W,l2_transaction_gas_limit:"100000",l2_transaction_hash:n.Iu},r={challenge_period_end:null,from:i.s,l1_transaction_hash:n.Iu,l2_timestamp:"2023-06-01T13:44:56.000000Z",l2_transaction_hash:n.Iu,msg_nonce:2393,msg_nonce_version:1,status:"Ready to prove"},l={number:260991,batch_data_container:"in_blob4844",l1_timestamp:"2023-06-01T14:46:48.000000Z",l1_transaction_hashes:[n.Iu],l2_start_block_number:5218590,l2_end_block_number:5218777,transactions_count:9},o={...l,batch_data_container:"in_blob4844",blobs:[{hash:"0x01fb41e1ae9f827e13abb0ee94be2ee574a23ac31426cea630ddd18af854bc85",l1_timestamp:"2024-09-03T13:26:23.000000Z",l1_transaction_hash:"0xd25ee571f1701690615099b208a9431d8611d0130dc342bead6d9edc291f04b9"}]},c={l1_block_number:9103684,l1_timestamp:"2023-06-01T15:26:12.000000Z",l1_transaction_hash:n.Iu,l2_block_number:0x9a26c4,l2_output_index:50655,output_root:n.Iu},d={contract_address_hash:i.W,created_at:"2023-06-01T15:26:12.000000Z",game_type:0,index:6594,l2_block_number:50655,resolved_at:null,status:"In progress"}},30125:(e,t,a)=>{"use strict";a.d(t,{Pz:()=>l,X3:()=>r,wf:()=>n,zw:()=>s});var i=a(10276);let n={block_number:0x12c3715,index:181920,l1_transaction_hash:"0xa74edfa5824a07a5f95ca1145140ed589df7f05bb17796bf18090b14c4566b5d",l2_transaction_hash:"0x436d1c7ada270466ca0facdb96ecc22934d68d13b8a08f541b8df11b222967b5",symbol:"ETH",timestamp:"2023-06-01T14:46:48.000000Z",value:"
10.13040262"},s={block_number:0xb26ba8,index:47003,l1_transaction_hash:"0x230cf46dabea287ac7d0ba83b8ea120bb83c1de58a81d34f44788f0459096c52",l2_transaction_hash:"0x519d9f025ec47f08a48d708964d177189d2246ddf988686c481f5debcf097e34",symbol:"ETH",timestamp:"2024-04-17T08:51:58.000000Z",value:"110.35"},r={timestamp:"2023-06-01T14:46:48.000000Z",status:"Finalized",verify_transaction_hash:i.Iu,sequence_transaction_hash:i.Iu,number:5218590,transactions_count:9},l={acc_input_hash:"0xb815fe2832977f1324ad0124a019b938f189f7b470292f40a21284f15774b3b3",global_exit_root:"0x0000000000000000000000000000000000000000000000000000000000000000",number:1,sequence_transaction_hash:"0x57b9b95db5f94f125710bdc8fbb3fabaac10125b44b0cb61dbc69daddf06d0cd",state_root:"0xb9a589d6b3ae44d3b250a9993caa5e3721568197f56e4743989ecb2285d80ec4",status:"Finalized",timestamp:"2023-09-15T06:22:48.000000Z",transactions:["0xff99dd67646b8f3d657cc6f19eb33abc346de2dbaccd03e45e7726cc28e3e186"],verify_transaction_hash:"0x093276fa65c67d7b12dd96f4fefafba9d9ad2f1c23c6e53f96583971ce75352d"}},30387:(e,t,a)=>{"use strict";function i(e,t){if(!Number.isInteger(t)||t<=0)throw Error("Size must be an integer greater than zero.");let a=Math.ceil(e.length/t),i=Array(a);for(let n=0;n<a;n++){let a=n*t,s=a+t;i[n]=e.slice(a,s)}return i}a.d(t,{i:()=>i})},39898:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var i=a(37876),n=a(57175);a(14232);var s=a(65370),r=a(83614),l=a(7071);let o=r.A.features.rollup,c=(0,n.B)(e=>{var t;if(!o.isEnabled)return null;let a=o.parentChain.baseUrl+(0,s.w)({pathname:"/tx/[hash]",query:{hash:e.hash}});return(0,i.jsx)(l.Ay,{...e,href:null!==(t=e.href)&&void 0!==t?t:a,isExternal:!0})})},41330:(e,t,a)=>{"use strict";a.d(t,{r:()=>s});var i=a(14232),n=a(60307);function s(e,t){let a=(0,n.$)();return(0,i.useMemo)(()=>(Array.isArray(t)?t:[t]).map(t=>a.token(`${e}.${t}`,t)),[a,e,t])}},45883:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var i=a(37876),n=a(57175);a(14232);var s=a(44525);let r=(0,n.B)(e=>{let{className:t}=e;return(0,i.jsx)(s.F,{status:"warning",width:"fit-content",className:t,children:"Something went wrong. Try refreshing the page or come back later."})})},47189:(e,t,a)=>{"use strict";a.d(t,{K:()=>l,t:()=>o});var i=a(20191),n=a(30642),s=a(89613),r=a(10276);let l={creator:n.W,index:r.Iu,zeta_fees:"0",relayed_message:"",cctx_status_reduced:i.zj.PENDING,token_symbol
1:"USDT.ARBSEP",token_name:"USDT.ARBSEP",zrc20_contract_address:n.W,decimals:6,cctx_status:{status:i.hk.OUTBOUND_MINED,status_message:"",error_message:"",last_update_timestamp:0x61d1ce6a,is_abort_refunded:!1,created_timestamp:0x61d1ce62,error_message_revert:"",error_message_abort:""},inbound_params:{sender:n.W,sender_chain_id:7001,tx_origin:n.W,coin_type:i.Uv.GAS,asset:"",amount:"434880247204065094",observed_hash:s.J,observed_external_height:0xbc0fdf,ballot_index:"",finalized_zeta_height:0,tx_finalization_status:i.f6.NOT_FINALIZED,is_cross_chain_call:!1,status:i.KU.INBOUND_SUCCESS,confirmation_mode:i.DS.SAFE},outbound_params:[{receiver:n.W,receiver_chain_id:7001,coin_type:i.Uv.GAS,amount:"0",tss_nonce:0,gas_limit:0,gas_price:"",gas_priority_fee:"",hash:"",ballot_index:"",observed_external_height:0,gas_used:0,effective_gas_price:"",effective_gas_limit:0,tss_pubkey:"",tx_finalization_status:i.f6.NOT_FINALIZED,call_options:{gas_limit:0,is_arbitrary_call:!1},confirmation_mode:i.DS.SAFE}],protocol_contract_version:i.fZ.V1,revert_options:{revert_address:n.W,call_on_revert:!1,abort_address:n.W,revert_message:"",revert_gas_limit:"0"},related_cctxs:[]},o={index:r.Iu,status:i.hk.OUTBOUND_MINED,status_reduced:i.zj.SUCCESS,amount:"434880247204065094",source_chain_id:7001,target_chain_id:7001,created_timestamp:0x61d1ce62,last_update_timestamp:0x61d1ce6a,sender_address:n.W,receiver_address:n.W,asset:"",coin_type:i.Uv.GAS,token_symbol
1:"USDT.ARBSEP",decimals:6}},48850:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var i=a(37876),n=a(43123),s=a(21555),r=a(57175),l=a(58509);a(14232);var o=a(65370),c=a(75884),d=a(12265),u=a(1621),h=a(28348),m=a(73988);let x=e=>{let{href:t,children:a,className:n}=e;return t?(0,i.jsx)(c.N_,{href:(0,o.w)(t),variant:"plain",className:n,children:a}):a},p=(0,r.B)(e=>{let{className:t,icon:a,label:o,value:c,valuePrefix:p,valuePostfix:_,isLoading:g,hint:b,diff:v,diffPeriod:f="24h",diffFormatted:j,period:A,href:y}=e;return(0,i.jsx)(x,{href:g?void 0:y,className:y?t:void 0,children:(0,i.jsxs)(n.s,{className:y?void 0:t,alignItems:"center",bgColor:g?{_light:"blackAlpha.50",_dark:"whiteAlpha.50"}:{_light:"theme.stats.bg._light",_dark:"theme.stats.bg._dark"},p:3,borderRadius:"base",justifyContent:"space-between",columnGap:2,w:"100%",h:"100%",children:[a&&(0,i.jsx)(h.A,{name:a,p:2,boxSize:"40px",isLoading:g,borderRadius:"base",display:{base:"none",lg:"block"},flexShrink:0}),(0,i.jsxs)(s.a,{w:{base:"100%",lg:a?"calc(100% - 48px)":"100%"},children:[(0,i.jsx)(d.EA,{loading:g,color:"text.secondary",textStyle:"xs",w:"fit-content",children:(0,i.jsx)("h2",{children:o})}),(0,i.jsxs)(d.EA,{loading:g,display:"flex",alignItems:"baseline",fontWeight:500,textStyle:"heading.md",children:[p&&(0,i.jsx)(r.B.span,{whiteSpace:"pre",children:p}),"string"==typeof c?(0,i.jsx)(m.A,{isLoading:g,value:c}):c,_&&(0,i.jsx)(r.B.span,{whiteSpace:"pre",children:_}),v&&Number(v)>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.E,{ml:2,mr:1,color:"green.500",children:["+",j||Number(v).toLocaleString()]}),(0,i.jsxs)(l.E,{color:"text.secondary",textStyle:"sm",children:["(",f,")"]})]}),A&&(0,i.jsxs)(l.E,{color:"text.secondary",textStyle:"xs",fontWeight:400,ml:1,children:["(",A,")"]})]})]}),"string"==typeof b?(0,i.jsx)(d.EA,{loading:g,alignSelf:"center",borderRadius:"base",children:(0,i.jsx)(u.C,{label:b,boxSize:5,color:"icon.secondary"})}):b]})})})},49728:(e,t,a)=>{"use strict";a.d(t,{A_:()=>s,EK:()=>r,QT:()=>l,_7:()=>o});var i=a(30642),n=a(10276);let s={completion_transaction_hash:n.Iu,id:181920,origination_address_hash:i.W,origination_transaction_block_number:123456,origination_transaction_hash:n.Iu,origination_timestamp:"2023-06-01T14:46:48.000000Z",status:"relayed"},r={number:12345,blocks_count:12345,transactions_count:1e4,commitment_transaction:{block_number:12345,timestamp:"2024-04-17T08:51:58.000000Z",hash:n.Iu,status:"finalized"},batch_data_container:"in_blob4844"},l={...r,after_acc_hash:"0xcd064f3409015e8e6407e492e5275a185e492c6b43ccf127f22092d8057a9ffb",before_acc_hash:"0x2ed7c4985eb778d76ec400a43805e7feecc8c2afcdb492dbe5caf227de6d37bc",start_block_number:1245209,end_block_number:1245490,data_availability:{batch_data_container:"in_blob4844"}},o={arb_block_number:0x439af2d,caller_address_hash:"0x507f55d716340fc836ba52c1a8daebcfeedeef1a",completion_transaction_hash:null,callvalue:"100000000000000",data:"0x",destination_address_hash:"0x507f55d716340fc836ba52c1a8daebcfeedeef1a",eth_block_number:6494128,id:43685,l2_timestamp:0x66bbb8c9,status:"relayed",token:null}},51153:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var i=a(37876),n=a(1924),s=a(58509),r=a(77005),l=a(14232),o=a(95948),c=a(12265),d=a(84415),u=a(45306),h=a(81318),m=a(58989),x=a(19052),p=a(303);let _=l.memo(e=>{let{tx:t,isLoading:a,animation:l}=e;return(0,i.jsxs)(n.T,{width:"100%",borderBottom:"1px solid",borderColor:"border.divider",py:3,fontSize:"sm",alignItems:"start",gap:2,animation:l,children:[(0,i.jsx)(x.A,{status:t.status_reduced,isLoading:a,type:"full"}),(0,i.jsx)(h.A,{hash:t.index,isLoading:a,truncation:"constant_long",fontWeight:600}),(0,i.jsxs)(c.EA,{loading:a,display:"flex",color:"text.secondary",gap:2,justifyContent:"start",children:[(0,o.A)(Number(t.last_update_timestamp)*d.Z2).fromNow(),(0,i.jsx)(m.A,{mx:0}),(0,i.jsx)(s.E,{flex:1,minWidth:0,truncate:!0,children:(0,o.A)(Number(t.last_update_timestamp)*d.Z2).format("llll")})]}),(0,i.jsxs)(r.x,{gridTemplateColumns:"100px 1fr",gap:2,children:[(0,i.jsx)(s.E,{children:"Sender"}),(0,i.jsx)(u.A,{address:{hash:t.sender_address},chainId:t.source_chain_id.toString(),isLoading:a,truncation:"constant"}),(0,i.jsx)(s.E,{children:"Receiver"}),(0,i.jsx)(u.A,{address:{hash:t.receiver_address},chainId:t.target_chain_id.toString(),isLoading:a,truncation:"constant"}),(0,i.jsx)(s.E,{children:"Asset"}),(0,i.jsx)(p.A,{coinType:t.coin_type,tokenSymbol:t.token_symbol,amount:t.amount,decimals:t.decimals,isLoading:a})]})]})})},55804:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var i=a(37876),n=a(57175);a(14232);var s=a(83614),r=a(47152),l=a(51755),o=a(84375),c=a(12265),d=a(5672);let u=(0,n.B)(e=>{var t,a;let{isLoading:n,className:u,type:h}=e,m=(0,r.A)("general:stats",{queryOptions:{refetchOnMount:!1,placeholderData:l.JY}});if(n||m.isPlaceholderData)return(0,i.jsx)(c.EA,{borderRadius:"base",loading:!0,className:u});let x="secondary"===h?null===(t=m.data)||void 0===t?void 0:t.secondary_coin_image:null===(a=m.data)||void 0===a?void 0:a.coin_image;return(0,i.jsx)(o._,{className:u,borderRadius:"base",src:x||void 0,alt:"".concat(s.A.chain.
1currency.symbol," logo"),fallback:(0,i.jsx)(d.A,{})})})},56336:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var i=a(37876),n=a(43123),s=a(14232),r=a(58063),l=a(68250),o=a(12265),c=a(28348);let d=s.memo(e=>{let{page:t,onNextPageClick:a,onPrevPageClick:s,resetPage:d,hasPages:u,hasNextPage:h,canGoBackwards:m,isLoading:x,isVisible:p,..._}=e;if(!p)return null;let g=1===t&&!u&&x;return(0,i.jsxs)(n.s,{as:"nav",alignItems:"center",..._,children:[(0,i.jsx)(o.EA,{loading:g,mr:3,children:(0,i.jsx)(r.$n,{variant:"pagination",size:"sm",onClick:d,disabled:1===t||x,children:"First"})}),(0,i.jsx)(l.K,{"aria-label":"Prev page",variant:"pagination",boxSize:8,onClick:s,disabled:!m||x||1===t,loadingSkeleton:g,children:(0,i.jsx)(c.A,{name:"arrows/east-mini",boxSize:5})}),(0,i.jsx)(r.$n,{variant:"pagination",size:"sm",selected:!g,pointerEvents:"none",loadingSkeleton:g,mx:2,minW:8,px:2,children:t}),(0,i.jsx)(l.K,{"aria-label":"Next page",variant:"pagination",boxSize:8,onClick:a,disabled:!h||x,loadingSkeleton:g,children:(0,i.jsx)(c.A,{name:"arrows/east-mini",boxSize:5,transform:"rotate(180deg)"})})]})})},57520:(e,t)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.InteropMessage_Status=void 0,function(e){e.PENDING="PENDING",e.FAILED="FAILED",e.SUCCESS="SUCCESS",e.EXPIRED="EXPIRED",e.UNRECOGNIZED="UNRECOGNIZED"}(a||(t.InteropMessage_Status=a={}))},59692:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var i=a(83614);function n(){switch(i.A.chain.verificationType){case"validation":return"validator";case"mining":default:return"miner";case"posting":return"poster";case"sequencing":return"sequencer";case"fee reception":return"fee recipient"}}},71264:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var i=a(13381);function n(){var e,t;let a=null===(t=(0,i.A)())||void 0===t?void 0:null===(e=t.chains[0])||void 0===e?void 0:e.config.chain.currency;return null==a?void 0:a.symbol}},73597:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var i,n=a(37876),s=a(89606),r=a(14232),l=a(13381),o=a(18120),c=a(31658),d=a(79777),u=a(78963);let h=(0,s.Rk)({items:(null===(i=(0,l.A)())||void 0===i?void 0:i.chains.map(e=>({value:e.slug,label:e.config.chain.name||e.slug,icon:(0,n.jsx)(u.A,{data:e,alt:e.config.chain.name})})))||[]}),m=r.memo(e=>{let{loading:t,mode:a,...i}=e,s=(0,o.A)(t),r=(0,c.A)();return(0,n.jsx)(d.l6,{collection:h,defaultValue:[h.items[0].value],placeholder:"Select chain",loading:s,mode:r&&!a?"compact":a,w:"fit-content",flexShrink:0,...i})})},75747:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var i=a(13381),n=a(78672);function s(e){let t=(0,i.A)();if(t)return(0,n.A)(e["chain-slug"])||t.chains[0].slug}},77054:(e,t,a)=>{"use strict";a.d(t,{A:()=>O});var i,n=a(37876),s=a(21555),r=a(14232),l=a(83614),o=a(93986),c=a(70309),d=a(79699),u=a(71264),h=a(86886),m=a(36739),x=a(44119),p=a(1924),_=a(95563),g=a(65370),b=a(13381),v=a(34742),f=a(79447),j=a(75884),A=a(12265),y=a(82337),E=a(98078);let k=r.memo(e=>{let{status:t,...a}=e,{status:i,text:s}=(()=>{switch(t){case y.InteropMessage_Status.SUCCESS:return{status:"ok",text:"Relayed"};case y.InteropMessage_Status.FAILED:return{status:"error",text:"Failed"};case y.InteropMessage_Status.EXPIRED:return{status:"error",text:"Expired"};case y.InteropMessage_Status.PENDING:return{status:"pending",text:"Sent"};default:return{status:void 0,text:void 0}}})();return i&&s?(0,n.jsx)(E.A,{type:i,text:s,...a}):null});var S=a(96114),w=a(58081),N=a(7071),D=a(75360),C=a(95591);let I=r.memo(e=>{var t,a,i,s,l,o,c,d,u;let{item:m,isLoading:x,animation:y,currencySymbol:E,currentAddress:I}=e,T=r.useMemo(()=>{let e=(0,b.A)();return null==e?void 0:e.chains.find(e=>e.config.chain.id===m.init_chain_id)},[m]),L=r.useMemo(()=>{let e=(0,b.A)();return null==e?void 0:e.chains.find(e=>e.config.chain.id===m.relay_chain_id)},[m]),O=(0,v.A)({value:null!==(c=null===(a=m.transfer)||void 0===a?void 0:null===(t=a.total)||void 0===t?void 0:t.value)&&void 0!==c?c:"0",decimals:"18"});return(0,n.jsxs)(h.Hj,{animation:y,children:[(0,n.jsx)(h.nA,{children:(0,n.jsxs)(p.T,{alignItems:"start",gap:0,children:[(0,n.jsx)(j.N_,{fontWeight:"700",minH:"30px",loading:x,href:(0,g.w)({pathname:"/tx/[hash]",query:{hash:String(m.nonce)}}),children:m.nonce}),(0,n.jsx)(D.A,{timestamp:m.timestamp,isLoading:x,color:"text.secondary",whiteSpace:"nowrap",my:"5px"})]})}),(0,n.jsx)(h.nA,{children:(0,n.jsxs)(p.T,{alignItems:"start",ga
1p:0,children:[(0,n.jsx)(C.A,{types:[m.message_type],isLoading:x,my:"3px"}),(0,n.jsx)(k,{status:m.status,loading:x,my:"3px"})]})}),(0,n.jsx)(h.nA,{children:(0,n.jsx)(f.E,{colorPalette:"gray",loading:x,truncated:!0,my:"3px",children:m.method})}),(0,n.jsx)(h.nA,{children:m.init_transaction_hash?(0,n.jsx)(N.Ay,{hash:m.init_transaction_hash,isLoading:x,truncation:"constant",chain:T,minH:"30px"}):(0,n.jsx)(_.y,{size:"md",my:"5px"})}),(0,n.jsx)(h.nA,{children:m.relay_transaction_hash?(0,n.jsx)(N.Ay,{hash:m.relay_transaction_hash,isLoading:x,truncation:"constant",chain:L,minH:"30px"}):(0,n.jsx)(_.y,{size:"md",my:"5px"})}),(0,n.jsx)(h.nA,{children:(0,n.jsx)(S.A,{from:{hash:null!==(d=null===(i=m.sender)||void 0===i?void 0:i.hash)&&void 0!==d?d:"N/A"},to:{hash:null!==(u=null===(s=m.target)||void 0===s?void 0:s.hash)&&void 0!==u?u:"N/A"},current:I,isLoading:x,truncation:"constant",my:"5px"})}),(0,n.jsx)(h.nA,{isNumeric:!0,children:(0,n.jsxs)(A.EA,{loading:x,display:"inline-flex",alignItems:"center",flexWrap:"wrap",whiteSpace:"pre-wrap",wordBreak:"break-word",justifyContent:"flex-end",columnGap:2*(null!==(l=m.transfer)&&void 0!==l&&!!l.token),my:"5px",children:[(0,n.jsx)("span",{children:O.valueStr}),(null===(o=m.transfer)||void 0===o?void 0:o.token)?(0,n.jsx)(w.Ay,{token:{address_hash:m.transfer.token.address_hash,type:"ERC-20",icon_url:"",name:"",symbol:"TBD"},noCopy:!0,onlySymbol:!0,justifyContent:"flex-end",w:"fit-content"}):(0,n.jsxs)("span",{children:[" ",null!=E?E:""]})]})})]})}),T=r.memo(e=>{let{items:t,isLoading:a,socketType:i,stickyHeader:s=!0,top:r,currentAddress:l}=e,o=s?h.b9:h.A0,c=(0,u.A)();return(0,n.jsx)(d.im,{children:(0,n.jsxs)(h.jq,{minW:"1150px",tableLayout:"auto",children:[(0,n.jsx)(o,{top:s?r:void 0,children:(0,n.jsxs)(h.Hj,{children:[(0,n.jsxs)(h.ug,{minW:"180px",children:["Message",(0,n.jsx)(m.A,{})]}),(0,n.jsx)(h.ug,{children:"Type"}),(0,n.jsx)(h.ug,{children:"Method"}),(0,n.jsx)(h.ug,{children:"Source tx"}),(0,n.jsx)(h.ug,{whiteSpace:"nowrap",children:"Destination tx"}),(0,n.jsx)(h.ug,{children:"Sender / Target"}),(0,n.jsx)(h.ug,{isNumeric:!0,children:"Value"})]})}),(0,n.jsxs)(h.BF,{children:[i&&(0,n.jsx)(x.A,{type:i,place:"table",isLoading:a}),t.map((e,t)=>(0,n.jsx)(I,{item:e,isLoading:a,currencySymbol:c,currentAddress:l},String(e.nonce)+(a?t:"")))]})]})})}),L=(null===(i=l.A.apis.multichain)||void 0===i?void 0:i.socketEndpoint)?"".concat(l.A.apis.multichain.socketEndpoint,"/socket"):void 0,O=r.memo(e=>{let{items:t,isLoading:a,isError:i,socketType:r,tableHeaderTop:l,currentAddress:d}=e,u=t?(0,n.jsxs)(c.A,{itemsNum:null==t?void 0:t.length,isError:i,emptyText:"There are no cross-chain transactions.",children:[(0,n.jsx)(s.a,{hideFrom:"lg",children:"Coming soon \uD83D\uDD1C"}),(0,n.jsx)(s.a,{hideBelow:"lg",children:(0,n.jsx)(T,{isLoading:a,items:t,socketType:r,top:l,stickyHeader:void 0!==l,currentAddress:d})})]}):null;return r?(0,n.jsx)(o.F,{url:L,children:u}):u})},77254:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var i=a(25763),n=a(84415);function s(e){var t;return((null===(t=e.rewards)||void 0===t?void 0:t.map(e=>{let{reward:t}=e;return(0,i.A)(t)}).reduce((e,t)=>e.plus(t),n.f2))||n.f2).div(n.M$)}},77328:(e,t,a)=>{e.exports=a(89836)},77552:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>tH,default:()=>tV});var i=a(37876),n=a(14232),s=a(9771),r=a(83614),l=a(21555),o=a(92146),c=a(13381),d=a(95985),u=a(83197),h=a(93986),m=a(5033),x=a(1924),p=a(47152),_=a(94467),g=a(51755),b=a(18376),v=a(75884),f=a(12265),j=a(45267),A=a(88837),y=a(35230),E=a(28348),k=a(23586),S=a(78963),w=a(67768),N=a(65370),D=a(80245),C=a(40729),I=a(89613),T=a(75360);let L=n.memo(e=>{var t;let{slug:a}=e,s=(0,w.jE)(),r=(0,p.A)("general:homepage_blocks",{chainSlug:a,queryOptions:{placeholderData:[I.I]}}),c=n.useCallback(e=>{let t=(0,p.y)("general:homepage_blocks",{chainSlug:a});s.setQueryData(t,()=>[e.block])},[s,a]),d=(0,D.A)({topic:"blocks:new_block",isDisabled:r.isPlaceholderData||r.isError});return((0,C.A)({channel:d,event:"new_block",handler:c}),null===(t=r.data)||void 0===t?void 0:t[0])?(0,i.jsxs)(o.z,{gap:2,children:[(0,i.jsx)(l.a,{color:"text.secondary",children:"Latest block"}),(0,i.jsx)(v.N_,{loading:r.isPlaceholderData,href:(0,N.w)({pathname:"/chain/[chain-slug]/block/[height_or_hash]",query:{"chain-slug":a,height_or_hash:r.data[0].height.toString()}}),children:r.data[0].height}),(0,i.jsx)(T.A,{timestamp:r.data[0].timestamp,enableIncrement:!r.isPlaceholderData,isLoading:r.isPlaceholderData,color:"text.secondary",flexShrink:0,timeFormat:"relative"})]}):null}),O=n.memo(e=>{let{data:t}=e,a=(0,p.A)("general:stats",{chainSlug:t.slug,queryOptions:{placeholderData:g.JY}}),n=(0,_.A)();return(0,i.jsxs)(l.a,{bgColor:{_light:"rgba(246, 246, 248, 0.5)",_dark:"whiteAlpha.50"},borderRadius:"xl",border:"1px solid",borderColor:{_light:"blackAlpha.200",_dark:"whiteAlpha.200"},p:4,flexBasis:{base:"100%",lg:"calc((100% - 3 * 12px) / 3)"},textStyle:"sm",children:[(0,i.jsxs)(o.z,{justifyContent:"space-between",children:[(0,i.jsx)(S.A,{data:t,boxSize:"30px"}),(0,i.jsxs)(o.z,{gap:2,children:[(0,i.jsx)(j.m,{content:"Add to wallet",children:(0,i.jsx)(v.N_,{onClick:n,p:1.5,color:"icon.secondary",_hover:{color:"hover"},bgColor:{_light:"blackAlpha.50",_dark:"whiteAlpha.100"},borderRadius:"base",children:(0,i.jsx)(E.A,{name:"wallet",boxSize:5})})}),(0,i.jsx)(j.m,{content:"Open explorer",children:(0,i.jsx)(v.N_,{href:t.config.app.baseUrl,target:"_blank",color:"icon.secondary",_hover:{color:"hover"},bgColor:{_light:"blackAlpha.50",_dark:"whiteAlpha.100"},borderRadius:"base",children:(0,i.jsx)(E.A,{name:"globe",boxSize:8})})})]})]}),(0,i.jsx)(b.D,{my:3,level:"3",children:t.config.chain.name}),(0,i.jsx)(k.A,{chainConfig:t.config,variant:"filled",mb:2.5}),(0,i.jsxs)(x.T,{gap:2,alignItems:"flex-start",fontWeight:500,children:[(0,i.jsxs)(o.z,{gap:2,children:[(0,i.jsx)(l.a,{color:"text.secondary",children:"Chain ID"}),(0,i.jsx)(l.a,{children:t.config.chain.id}),(0,i.jsx)(A.A,{text:String(t.config.chain.id),ml:0})]}),(0,i.jsx)(L,{slug:t.slug}),a.data&&a.data.gas_prices&&t.config.features.gasTracker.isEnabled&&(0,i.jsxs)(o.z,{gap:2,children:[(0,i.jsx)(l.a,{color:"text.secondary",children:"Gas price"}),(0,i.jsx)(f.EA,{loading:a.isPlaceholderData,children:(0,i.jsx)(y.A,{data:a.data.gas_prices.average})})]})]})]})});var U=a(89099),P=a(31658),F=a(86996),z=a(78672),R=a(43929),B=a(73597),G=a(2454),M=a(18321),q=a(77054);let Z=n.memo(()=>{let{data:e,isError:t,isPlaceholderData:a}=(0,p.A)("multichain:interop_messages",{queryOptions:{placeholderData:(0,M.k)(G.w,5,{next_page_params:void 0}),select:e=>({...e,items:e.items.slice(0,5)})}});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(q.A,{items:null==e?void 0:e.items,isLoading:a,isError:t,socketType:"txs_home_cross_chain"}),(0,i.jsx)(v.N_,{href:(0,N.w)({pathname:"/txs"}),w:"full",justifyContent:"center",textStyle:"sm",mt:3,children:"View all transactions"})]})});var W=a(22187),H=a(10276),V=a(32777);let K={page:1,isVisible:!1,isLoading:!1,hasPages:!1,hasNextPage:!1,
1canGoBackwards:!1,onNextPageClick:()=>{},onPrevPageClick:()=>{},resetPage:()=>{}},$=n.memo(e=>{var t;let{chainSlug:a}=e,n=(0,p.A)("general:homepage_txs",{chainSlug:a,queryOptions:{placeholderData:[,,,,,].fill(H.TX),select:e=>e.slice(0,5)}}),s=null===(t=(0,c.A)())||void 0===t?void 0:t.chains.find(e=>e.slug===a);return(0,i.jsx)(u.Ay,{chainSlug:a,children:(0,i.jsxs)(h.F,{url:(0,d.A)(null==s?void 0:s.config),children:[(0,i.jsx)(V.A,{items:n.data||[],isPlaceholderData:n.isPlaceholderData,isError:n.isError,pagination:K,sort:"default",socketType:"txs_home",stickyHeader:!1}),(0,i.jsx)(v.N_,{href:(0,W.w)({pathname:"/txs",query:{"chain-slug":a,tab:"txs_local"}}),w:"full",justifyContent:"center",textStyle:"sm",mt:3,children:"View all transactions"})]})})}),Y=n.memo(()=>{let e=(0,P.A)(),t=(0,U.useRouter)(),a=(0,z.A)(t.query.tab),n=(0,F.A)(),s=[{id:"cross_chain_txs",title:"Cross-chain",component:(0,i.jsx)(Z,{})},{id:"txs_local",title:"Local",component:n.value?(0,i.jsx)($,{chainSlug:n.value[0]},n.value[0]):null}],r=(0,i.jsx)(b.D,{level:"3",mb:{base:3,lg:0},children:"Latest transactions"}),o="txs_local"===a?(0,i.jsx)(B.A,{loading:!1,value:n.value,onValueChange:n.onValueChange}):null;return(0,i.jsxs)(l.a,{as:"section",my:8,children:[e&&r,(0,i.jsx)(R.A,{tabs:s,leftSlot:e?null:r,leftSlotProps:{mr:6},rightSlot:o,rightSlotProps:{ml:{base:"auto",lg:6}}})]})});var X=a(43123),J=a(59051),Q=a(48850);let ee=n.memo(()=>(0,i.jsxs)(X.s,{mt:6,gap:2,flexDirection:{base:"column",lg:"row"},children:[(0,i.jsxs)(X.s,{gap:2,flexDirection:{base:"row",lg:"column"},w:{base:"100%",lg:"270px"},children:[(0,i.jsx)(Q.A,{label:"Total transactions",value:"TBD",icon:"transactions_slim"}),(0,i.jsx)(Q.A,{label:"Total addresses",value:"TBD",icon:"wallet"})]}),(0,i.jsx)(J.o,{flexGrow:1,minH:{base:"140px",lg:"180px"},bgColor:{_light:"gray.50",_dark:"whiteAlpha.100"},borderRadius:"base",children:"Coming soon \uD83D\uDD1C"})]})),et=n.memo(()=>{var e;return(0,i.jsxs)(l.a,{as:"main",children:[(0,i.jsx)(m.A,{}),(0,i.jsx)(ee,{}),(0,i.jsx)(Y,{}),(0,i.jsx)(o.z,{mt:3,gap:3,flexWrap:"wrap",alignItems:"stretch",children:null===(e=(0,c.A)())||void 0===e?void 0:e.chains.map(e=>(0,i.jsx)(u.Ay,{chainSlug:e.slug,children:(0,i.jsx)(h.F,{url:(0,d.A)(e.config),children:(0,i.jsx)(O,{data:e})})},e.slug))})]})});var ea=a(58509),ei=a(1621),en=a(57175),es=a(16937),er=a(45883),el=a(41330),eo=a(70108),ec=a(85953),ed=a(17684),eu=a(61210),eh=a(61045),em=a(9813);let ex={bottom:5,left:10,right:10,top:5},ep=n.memo(e=>{let{data:t}=e,a=n.useRef(null),s=(0,el.r)("colors",(0,eo.dU)("theme.graph.line._light","theme.graph.line._dark")),r=n.useMemo(()=>({x:{ticks:4},y:{ticks:3,nice:!0,noLabel:!0}}),[]),{rect:l,ref:o,axes:c,innerWidth:d,innerHeight:u,chartMargin:h}=(0,em.A)({data:t,margin:ex,axesConfig:r});return(0,i.jsx)("svg",{width:"100%",height:"100%",ref:o,cursor:"pointer",children:(0,i.jsxs)("g",{transform:"translate(".concat(h.left||0,",").concat(h.top||0,")"),opacity:+!!l,children:[(0,i.jsx)(ec.A,{data:t[0].items,xScale:c.x.scale,yScale:c.y.scale}),(0,i.jsx)(ed.A,{data:t[0].items,xScale:c.x.scale,yScale:c.y.scale,stroke:s[0],animation:"left",strokeWidth:3}),(0,i.jsx)(eu.A,{ref:a,width:d,height:u,children:(0,i.jsx)(eh.A,{anchorEl:a.current,width:d,height:u,xScale:c.x.scale,yScale:c.y.scale,data:t})})]})})}),e_=n.memo(e=>{let{data:t,isError:a,isPending:n}=e;return n?(0,i.jsx)(es.A,{mt:"auto",fontSize:"xs"}):a?(0,i.jsx)(er.A,{fontSize:"xs"}):0===t[0].items.length?(0,i.jsx)(en.B.span,{fontSize:"xs",children:"no data"}):(0,i.jsx)(l.a,{mx:"-10px",my:"-5px",h:"calc(100% + 10px)",w:"calc(100% + 20px)",children:(0,i.jsx)(ep,{data:t})})}),eg=n.memo(e=>{let{id:t,title:a,value:s,valueDiff:r,icon:o,isSelected:c,onClick:d,isLoading:u,hasData:h}=e,m=n.useCallback(()=>{d(t)},[t,d]),x=h?(0,i.jsx)(f.EA,{loading:u,fontWeight:600,minW:"30px",children:s}):(0,i.jsx)(ea.E,{color:"text.secondary",fontWeight:400,children:"no data"}),p=(()=>
1{if(null==r)return null;let e=r>=0?"green.500":"red.500";return(0,i.jsxs)(f.EA,{loading:u,ml:1,display:"flex",alignItems:"center",color:e,children:[(0,i.jsx)("span",{children:r>=0?"+":"-"}),(0,i.jsxs)(ea.E,{color:e,fontWeight:600,children:[Math.abs(r),"%"]})]})})();return(0,i.jsxs)(X.s,{alignItems:"center",columnGap:2,flexGrow:{base:0,lg:1},px:{base:"6px",lg:2},py:"6px",as:"li",borderRadius:"base",cursor:"pointer",color:c?"text.secondary":"link.primary",bgColor:c?{_light:"white",_dark:"black"}:void 0,onClick:m,fontSize:"xs",fontWeight:500,_hover:{bgColor:{_light:"white",_dark:"black"},color:c?"text.secondary":"hover",zIndex:1},children:[o,(0,i.jsxs)(l.a,{display:{base:"none",lg:"block"},children:[(0,i.jsx)("span",{children:a}),(0,i.jsxs)(X.s,{alignItems:"center",color:"text.primary",children:[x,p]})]})]})}),eb=(e,t)=>e.date.getTime()-t.date.getTime(),ev=(e,t)=>(null===t.value&&0===e.length||e.unshift(t),e),ef=e=>({...e,value:Number(e.value)}),ej=r.A.features.rollup,eA=ej.isEnabled&&"optimistic"===ej.type,ey=ej.isEnabled&&"arbitrum"===ej.type,eE={daily_txs:{name:"Tx/day",valueFormatter:e=>e.toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"})},daily_operational_txs:{name:"Tx/day",valueFormatter:e=>e.toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"})},coin_price:{name:"".concat(r.A.chain.currency.symbol," price"),valueFormatter:e=>"$"+e.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:6})},secondary_coin_price:{name:"".concat(r.A.chain.currency.symbol," price"),valueFormatter:e=>"$"+e.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:6})},market_cap:{name:"Market cap",valueFormatter:e=>"$"+e.toLocaleString(void 0,{maximumFractionDigits:2})},tvl:{name:"TVL",valueFormatter:e=>"$"+e.toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"})}},ek=r.A.features.stats.isEnabled;function eS(e,t){return[{items:t.sort(eb).reduceRight(ev,[]).map(ef),name:eE[e].name,valueFormatter:eE[e].valueFormatter}]}function ew(e,t,a){return{value:r.A.features.stats.isEnabled&&(null==e?void 0:e.valueMicroservice)&&t?e.valueMicroservice(t):a?null==e?void 0:e.value(a):"N/A",valueDiff:(null==e?void 0:e.valueDiff)?e.valueDiff(a):void 0}}var eN=a(55804);let eD=r.A.features.rollup,eC=eD.isEnabled&&"optimistic"===eD.type,eI=eD.isEnabled&&"arbitrum"===eD.type,eT=[{id:"daily_txs",title:"Daily transactions",titleMicroservice:e=>{var t,a;return null===(a=e.daily_new_transactions)||void 0===a?void 0:null===(t=a.info)||void 0===t?void 0:t.title},value:e=>null===e.transactions_today?"N/A":Number(e.transactions_today).toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"}),valueMicroservice:e=>{var t,a;return(null===(t=e.yesterday_transactions)||void 0===t?void 0:t.value)===null?"N/A":Number(null===(a=e.yesterday_transactions)||void 0===a?void 0:a.value).toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"})},icon:(0,i.jsx)(E.A,{name:"transactions",boxSize:6,bgColor:"#56ACD1",borderRadius:"base",color:"white"}),hint:"Number of transactions yesterday (0:00 - 23:59 UTC). The chart displays daily transactions for the past 30 days.",hintMicroservice:e=>{var t,a;return null===(a=e.daily_new_transactions)||void 0===a?void 0:null===(t=a.info)||void 0===t?void 0:t.description}},{id:"daily_operational_txs",title:"Daily op txns",titleMicroservice:e=>{var t,a,i,n;return eI?null===(a=e.daily_new_operational_transactions)||void 0===a?void 0:null===(t=a.info)||void 0===t?void 0:t.title:eC?null===(n=e.op_stack_daily_new_operational_transactions)||void 0===n?void 0:null===(i=n.info)||void 0===i?void 0:i.title:""},value:()=>"N/A",valueMicroservice:e=>{var t,a,i,n;return eI?(null===(t=e.yesterday_operational_transactions)||void 0===t?void 0:t.value)===null?"N/A":Number(null===(a=e.yesterday_operational_transactions)||void 0===a?void 0:a.value).toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"}):eC?(null===(i=e.op_stack_yesterday_operational_transactions)||void 0===i?void 0:i.value)===null?"N/A":Number(null===(n=e.op_stack_yesterday_operational_transactions)||void 0===n?void 0:n.value).toLocaleStr
1ing(void 0,{maximumFractionDigits:2,notation:"compact"}):void 0},icon:(0,i.jsx)(E.A,{name:"transactions",boxSize:6,bgColor:"#56ACD1",borderRadius:"base",color:"white"}),hint:"Number of operational transactions yesterday (0:00 - 23:59 UTC). The chart displays daily operational transactions for the past 30 days.",hintMicroservice:e=>{var t,a;return null===(a=e.daily_new_operational_transactions)||void 0===a?void 0:null===(t=a.info)||void 0===t?void 0:t.description}},{id:"coin_price",title:"".concat(r.A.chain.currency.symbol," price"),value:e=>null===e.coin_price?"$N/A":"$"+Number(e.coin_price).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:6}),valueDiff:e=>(null==e?void 0:e.coin_price)!==null?null==e?void 0:e.coin_price_change_percentage:null,icon:(0,i.jsx)(eN.A,{boxSize:6}),hint:"".concat(r.A.chain.currency.symbol," token daily price in USD.")},{id:"secondary_coin_price",title:"".concat(r.A.chain.secondaryCoin.symbol," price"),value:e=>e.secondary_coin_price&&null!==e.secondary_coin_price?"$"+Number(e.secondary_coin_price).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:6}):"$N/A",valueDiff:()=>null,icon:(0,i.jsx)(eN.A,{boxSize:6,type:"secondary"}),hint:"".concat(r.A.chain.secondaryCoin.symbol," token daily price in USD.")},{id:"market_cap",title:"Market cap",value:e=>null===e.market_cap?"$N/A":"$"+Number(e.market_cap).toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"}),icon:(0,i.jsx)(E.A,{name:"globe",boxSize:6,bgColor:"#6A5DCC",borderRadius:"base",color:"white"}),hint:"The total market value of a cryptocurrency's circulating supply. It is analogous to the free-float capitalization in the stock market. Market Cap = Current Price x Circulating Supply."},{id:"tvl",title:"Total value locked",value:e=>null===e.tvl?"$N/A":"$"+Number(e.tvl).toLocaleString(void 0,{maximumFractionDigits:2,notation:"compact"}),icon:(0,i.jsx)(E.A,{name:"lock",boxSize:6,bgColor:"#517FDB",borderRadius:"base",color:"white"}),hint:"Total value of digital assets locked or staked in a chain"}],eL=r.A.features.stats.isEnabled,eO=eT.filter(e=>{let{id:t}=e;return r.A.UI.homepage.charts.includes(t)}).sort((e,t)=>r.A.UI.homepage.charts.indexOf(e.id)>r.A.UI.homepage.charts.indexOf(t.id)?1:r.A.UI.homepage.charts.indexOf(e.id)<r.A.UI.homepage.charts.indexOf(t.id)?-1:0),eU=()=>{var e;let[t,a]=n.useState(null===(e=eO[0])||void 0===e?void 0:e.id),s=eO.find(e=>{let{id:a}=e;return a===t}),r=function(e){let t=(0,p.A)("stats:pages_main",{queryOptions:{refetchOnMount:!1,enabled:ek&&"daily_txs"===e,select:e=>{var t;return(null===(t=e.daily_new_transactions)||void 0===t?void 0:t.chart.map(e=>({date:new Date(e.date),value:Number(e.value)})))||[]}}}),a=(0,p.A)("stats:pages_main",{queryOptions:{refetchOnMount:!1,enabled:ek&&"daily_operational_txs"===e,select:e=>{var t,a;return ey?(null===(t=e.daily_new_operational_transactions)||void 0===t?void 0:t.chart.map(e=>({date:new Date(e.date),value:Number(e.value)})))||[]:eA&&(null===(a=e.op_stack_daily_new_operational_transactions)||void 0===a?void 0:a.chart.map(e=>({date:new Date(e.date),value:Number(e.value)})))||[]}}}),i=(0,p.A)("general:stats_charts_txs",{queryOptions:{refetchOnMount:!1,enabled:!ek&&"daily_txs"===e,select:e=>e.chart_data.map(e=>({date:new Date(e.date),value:e.transactions_count}))}}),n=(0,p.A)("general:stats_charts_market",{queryOptions:{refetchOnMount:!1,enabled:"coin_price"===e,select:e=>e.chart_data.map(e=>({date:new Date(e.date),value:e.closing_price}))}}),s=(0,p.A)("general:stats_charts_secondary_coin_price",{queryOptions:{refetchOnMount:!1,enabled:"secondary_coin_price"===e,select:e=>e.chart_data.map(e=>({date:new Date(e.date),value:e.closing_price}))}}),r=(0,p.A)("general:stats_charts_market",{queryOptions:{refetchOnMount:!1,enabled:"market_cap"===e,select:e=>e.chart_data.map(t=>({date:new Date(t.date),value:void 0!==t.market_cap?t.market_cap:null===t.closing_price?null:Number(t.closing_price)*Number(e.available_supply)}))}}),l=(0,p.A)("general:stats_charts_market",{queryOptions:{refetchOnMount:!1,enabled:"tvl"===e,select:e=>e.chart_data.map(e=>({date:new Date(e.date),value:void 0!==e.tvl?e.tvl:0}))}});switch(e){case"daily_txs":{let a=ek?t:i;return{data:eS(e,a.data||[]),isError:a.isError,isPending:a.isPending}}case"daily_operational_txs":return{data:eS(e,a.data||[]),isError:a.isError,isPending:a.isPending};case"coin_price":return{data:eS(e,n.data||[]),isError:n.isError,isPending:n.isPending};case"secondary_coin_price":return{data:eS(e,s.data||[]),isError:s.isError,isPending:s.isPending};case"market_cap":return{data:eS(e,r.data||[]),isError:r.isError,isPending:r.isPending};case"tvl":return{data:eS(e,l.data||[]),isError:l.isError,isPending:l.isPending}}}(null==s?void 0:s.id),l=(0,p.A)("stats:pages_main",{queryOptions:{refetchOnMount:!1,enabled:eL,placeholderData:g.Zq}}),o=(0,p.A)("general:stats",{queryOptions:{refetchOnMount:!1,placeholderData:g.JY}});if(0===eO.length)return null;
1let c=eL&&l.isPlaceholderData||o.isPlaceholderData,d=!!((null==o?void 0:o.data)||(null==l?void 0:l.data)),{value:u,valueDiff:h}=ew(s,null==l?void 0:l.data,null==o?void 0:o.data),m=(()=>{let e;return eL&&(null==s?void 0:s.titleMicroservice)&&(null==l?void 0:l.data)&&(e=s.titleMicroservice(l.data)),e||(null==s?void 0:s.title)})(),x=(()=>{let e;return eL&&(null==s?void 0:s.hintMicroservice)&&(null==l?void 0:l.data)&&(e=s.hintMicroservice(l.data)),e||(null==s?void 0:s.hint)})(),_=c?(0,i.jsx)(f.EA,{loading:!0,h:"36px",w:"215px"}):d?(0,i.jsx)(ea.E,{fontWeight:700,fontSize:"30px",lineHeight:"36px",children:u}):(0,i.jsx)(ea.E,{fontSize:"xs",children:"There is no data"}),b=(()=>{if(null==h)return null;let e=h>=0?"green.500":"red.500";return(0,i.jsxs)(f.EA,{loading:o.isPlaceholderData,display:"flex",alignItems:"center",color:e,ml:2,children:[(0,i.jsx)(E.A,{name:"arrows/up-head",boxSize:5,mr:1,transform:h<0?"rotate(180deg)":"rotate(0)"}),(0,i.jsxs)(ea.E,{color:e,fontWeight:600,children:[h,"%"]})]})})();return(0,i.jsxs)(X.s,{px:{base:3,lg:4},py:3,borderRadius:"base",bgColor:{_light:"theme.stats.bg._light",_dark:"theme.stats.bg._dark"},columnGap:{base:3,lg:4},rowGap:0,flexBasis:"50%",flexGrow:1,alignItems:"stretch",children:[(0,i.jsxs)(X.s,{flexGrow:1,flexDir:"column",children:[(0,i.jsxs)(f.EA,{loading:c,display:"flex",alignItems:"center",w:"fit-content",columnGap:1,children:[(0,i.jsx)(ea.E,{fontWeight:500,children:m}),x&&(0,i.jsx)(ei.C,{label:x})]}),(0,i.jsxs)(X.s,{mb:{base:0,lg:2},mt:1,alignItems:"end",children:[_,b]}),(0,i.jsx)(X.s,{h:{base:"80px",lg:"110px"},alignItems:"flex-start",flexGrow:1,children:(0,i.jsx)(e_,{...r})})]}),eO.length>1&&(0,i.jsx)(X.s,{flexShrink:0,flexDir:"column",as:"ul",borderRadius:"lg",rowGap:"6px",m:{base:"auto 0",lg:0},children:eO.map(e=>(0,i.jsx)(eg,{id:e.id,title:e.title,icon:e.icon,isSelected:t===e.id,onClick:a,...ew(e,null==l?void 0:l.data,null==o?void 0:o.data),isLoading:c,hasData:d},e.id))})]})};var eP=a(70796),eF=a(49728),ez=a(27604);let eR=e=>{let{number:t,timestamp:a,txCount:n,status:s,isLoading:r,animation:o}=e;return(0,i.jsxs)(l.a,{animation:o,borderRadius:"md",border:"1px solid",borderColor:"border.divider",p:3,children:[(0,i.jsxs)(X.s,{alignItems:"center",overflow:"hidden",w:"100%",mb:3,children:[(0,i.jsx)(ez.A,{isLoading:r,number:t,tailLength:2,textStyle:"xl",fontWeight:500,mr:"auto"}),(0,i.jsx)(T.A,{timestamp:a,enableIncrement:!r,timeFormat:"relative",isLoading:r,color:"text.secondary",display:"inline-block",textStyle:"sm",flexShrink:0,ml:2})]}),(0,i.jsxs)(X.s,{alignItems:"center",justifyContent:"space-between",w:"100%",flexWrap:"wrap",children:[(0,i.jsxs)(X.s,{alignItems:"center",children:[(0,i.jsx)(f.EA,{loading:r,mr:2,children:"Txn"}),(0,i.jsx)(v.N_,{href:(0,N.w)({pathname:"/batches/[number]",query:{number:t.toString(),tab:"txs"}}),loading:r,children:n})]}),s]})]})},eB=()=>{var e;let t;let a=(0,P.A)()?2:5,s=(0,w.jE)(),{data:r,isPlaceholderData:o,isError:c}=(0,p.A)("general:homepage_arbitrum_l2_batches",{queryOptions:{placeholderData:{items:Array(a).fill(eF.EK)}}}),d=(0,eP.A)({data:null!==(e=null==r?void 0:r.items)&&void 0!==e?e:[],idFn:e=>e.number,enabled:!o}),u=n.useCallback(e=>{s.setQueryData((0,p.y)("general:homepage_arbitrum_l2_batches"),t=>{let i=(null==t?void 0:t.items)?[...t.items]:[];return i.some(t=>t.number===e.batch.number)?{items:i}:{items:[e.batch,...i].sort((e,t)=>t.number-e.number).slice(0,a)}})},[s,a]),h=(0,D.A)({topic:"arbitrum:new_batch",isDisabled:o||c});if((0,C.A)({channel:h,event:"new_arbitrum_batch",handler:u}),c&&(t=(0,i.jsx)(ea.E,{children:"No data. Please reload the page."})),r){let e=r.items.slice(0,a);t=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.T,{gap:2,mb:3,overflow:"hidden",alignItems:"stretch",children:e.map((e,t)=>(0,i.jsx)(eR,{number:e.number,timestamp:e.commitment_transaction.timestamp,txCount:e.transactions_count,isLoading:o,animation:d.getAnimationProp(e)},e.number+(o?String(t):"")))}),(0,i.jsx)(X.s,{justifyContent:"center",children:(0,i.jsx)(v.N_,{textStyle:"sm",href:(0,N.w)({pathname:"/batches"}),children:"View all batches"})})]})}return(0,i.jsxs)(l.a,{width:{base:"100%",lg:"280px"},flexShrink:0,children:[(0,i.jsx)(b.D,{level:"3",mb:3,children:"Latest batches"}),t]})};var eG=a(30125),eM=a(3083);let eq=()=>{var e;let t;let a=(0,P.A)()?2:5,s=(0,w.jE)(),{data:r,isPlaceholderData:o,isError:c}=(0,p.A)("general:homepage_zkevm_l2_batches",{queryOptions:{placeholderData:{items:Array(a).fill(eG.X3)}}}),d=(0,eP.A)({data:null!==(e=null==r?void 0:r.items)&&void 0!==e?e:[],idFn:e=>e.number,enabled:!o}),u=n.useCallback(e=>{s.setQueryData((0,p.y)("general:homepage_zkevm_l2_batches"),t=>{let i=(null==t?void 0:t.items)?[...t.items]:[];return i.some(t=>t.number===e.batch.number)?{items:i}:{items:[e.batch,...i].sort((e,t)=>
1t.number-e.number).slice(0,a)}})},[s,a]),h=(0,D.A)({topic:"zkevm_batches:new_zkevm_confirmed_batch",isDisabled:o||c});if((0,C.A)({channel:h,event:"new_zkevm_confirmed_batch",handler:u}),c&&(t=(0,i.jsx)(ea.E,{children:"No data. Please reload the page."})),r){let e=r.items.slice(0,a);t=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.T,{gap:2,mb:3,overflow:"hidden",alignItems:"stretch",children:e.map((e,t)=>{let a=(0,i.jsx)(eM.A,{status:e.status,isLoading:o});return(0,i.jsx)(eR,{number:e.number,txCount:e.transactions_count,timestamp:e.timestamp,status:a,isLoading:o,animation:d.getAnimationProp(e)},e.number+(o?String(t):""))})}),(0,i.jsx)(X.s,{justifyContent:"center",children:(0,i.jsx)(v.N_,{textStyle:"sm",href:(0,N.w)({pathname:"/batches"}),children:"View all batches"})})]})}return(0,i.jsxs)(l.a,{width:{base:"100%",lg:"280px"},flexShrink:0,children:[(0,i.jsx)(b.D,{level:"3",mb:3,children:"Latest batches"}),t]})};var eZ=a(12773),eW=a(77005),eH=a(75710),eV=a(77254),eK=a(59692),e$=a(70145),eY=a(57037),eX=a(99845);let eJ=e=>{var t,a,n;let{block:s,isLoading:o,animation:c}=e,d=(0,eV.A)(s);return(0,i.jsxs)(l.a,{animation:c,borderRadius:"md",border:"1px solid",borderColor:"border.divider",p:3,children:[(0,i.jsxs)(X.s,{alignItems:"center",overflow:"hidden",w:"100%",mb:3,children:[(0,i.jsx)(eX.Ay,{isLoading:o,number:s.height,tailLength:2,textStyle:"xl",fontWeight:500,mr:"auto"}),(null===(t=s.celo)||void 0===t?void 0:t.l1_era_finalized_epoch_number)&&(0,i.jsx)(j.m,{content:"Finalized epoch #".concat(s.celo.l1_era_finalized_epoch_number),children:(0,i.jsx)(E.A,{name:"checkered_flag",boxSize:5,p:"1px",ml:2,isLoading:o,flexShrink:0})}),(0,i.jsx)(T.A,{timestamp:s.timestamp,enableIncrement:!o,timeFormat:"relative",isLoading:o,color:"text.secondary",display:"inline-block",textStyle:"sm",flexShrink:0,ml:2})]}),(0,i.jsxs)(eW.x,{gridGap:2,templateColumns:"auto minmax(0, 1fr)",textStyle:"sm",children:[(0,i.jsx)(f.EA,{loading:o,children:"Txn"}),(0,i.jsx)(f.EA,{loading:o,color:"text.secondary",children:(0,i.jsx)("span",{children:s.transactions_count})}),!r.A.features.rollup.isEnabled&&!(null===(a=r.A.UI.views.block.hiddenFields)||void 0===a?void 0:a.total_reward)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.EA,{loading:o,children:"Reward"}),(0,i.jsx)(f.EA,{loading:o,color:"text.secondary",children:(0,i.jsxs)("span",{children:[d.dp(10).toFixed()," ",e$.T.ether]})})]}),!r.A.features.rollup.isEnabled&&!(null===(n=r.A.UI.views.block.hiddenFields)||void 0===n?void 0:n.miner)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.EA,{loading:o,children:(0,eH.Z)((0,eK.A)())}),(0,i.jsx)(eY.Ay,{address:s.miner,isLoading:o,noIcon:!0,noCopy:!0,truncation:"constant"})]})]})]})},eQ=()=>{var e,t,a,s;let o,c;let d=(0,P.A)();o=r.A.features.rollup.isEnabled||(null===(e=r.A.UI.views.block.hiddenFields)||void 0===e?void 0:e.total_reward)?d?4:5:d?2:3;let{data:u,isPlaceholderData:h,isError:m}=(0,p.A)("general:homepage_blocks",{queryOptions:{placeholderData:Array(o).fill(I.I)}}),_=(0,eP.A)({data:null!=u?u:[],idFn:e=>e.height,enabled:!h}),j=(0,w.jE)(),A=(0,p.A)("general:stats",{queryOptions:{refetchOnMount:!1,placeholderData:g.JY}}),y=n.useCallback(e=>{j.setQueryData((0,p.y)("general:homepage_blocks"),t=>{let a=t?[...t]:[];return a.some(t=>t.height===e.block.height)?a:[e.block,...a].sort((e,t)=>t.height-e.height).slice(0,o)})},[j,o]),E=(0,D.A)({topic:"blocks:new_block",isDisabled:h||m});if((0,C.A)({channel:E,event:"new_block",handler:y}),m&&(c=(0,i.jsx)(ea.E,{children:"No data. Please reload the page."})),u){let e=u.slice(0,o);c=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.T,{gap:2,mb:3,overflow:"hidden",alignItems:"stretch",children:e.map((e,t)=>(0,i.jsx)(eJ,{block:e,isLoading:h,animation:_.getAnimationProp(e)},e.height+(h?String(t):"")))}),(0,i.jsx)(X.s,{justifyContent:"center",children:(0,i.jsx)(v.N_,{textStyle:"sm",href:(0,N.w)({pathname:"/blocks"}),children:"View all blocks"})})]})}return(0,i.jsxs)(l.a,{width:{base:"100%",lg:"280px"},flexShrink:0,children:[(0,i.jsx)(b.D,{level:"3",children:"Latest blocks"}),(null===(t=A.data)||void 0===t?void 0:t.network_utilization_percentage)!==void 0&&(0,i.jsxs)(f.EA,{loading:A.isPlaceholderData,mt:2,display:"inline-block",textStyle:"sm",children:[(0,i.jsxs)(ea.E,{as:"span",children:["Network utilization:",eZ.OX]}),(0,i.jsxs)(ea.E,{as:"span",color:"blue.500",fontWeight:700,children:[null===(a=A.data)||void 0===a?void 0:a.network_utilization_percentage.toFixed(2),"%"]})]}),(null===(s=A.data)||void 0===s?void 0:s.celo)&&(0,i.jsxs)(l.a,{whiteSpace:"pre-wrap",textStyle:"sm",mt:2,children:[(0,i.jsx)("span",{children:"Current epoch: "}),(0,i.jsxs)(en.B.span,{fontWeight:700,children:["#",A.data.celo.epoch_number]})]}),(0,i.jsx)(l.a,{mt:3,children:c})]})};var e0=a(25763),e1=a(84415),e2=a(13784);let e3=r.A.features.rollup,e5=e3.isEnabled&&"optimistic"===e3.type,e4=e3.isEnabled&&"arbitrum"===e3.type,e7=r.A.features.stats.isEnabled,e6=()=>{let[e,t]=n.useState(r.A.features.gasTracker.isEnabled),a=(0,p.A)("stats:pages_main",{queryOptions:{refetchOnMount:!1,placeholderData:e7?g.Zq:void 0,enabled:e7}}),s=(0,p.A)("general:stats",{queryOptions:{refetchOnMount:!1,placeholderData:g.JY}}),l=a.isPlaceholderData||s.isPlaceholderData;n.useEffect(()=>{var e,a;l||(null===(a=s.data)||void 0===a?void 0:null===(e=a.gas_prices)||void 0===e?void 0:e.average)||t(!1)},[l]);let o=(0,p.A)("general:homepage_zkevm_latest_batch",{queryOptions:{placeholderData:12345,enabled:e3.isEnabled&&"zkEvm"===e3.type&&r.A.UI.homepage.stats.includes("latest_batch")}}),c=(0,p.A)("general:homepage_zksync_latest_batch",{queryOptions:{placeholderData:12345,enabled:e3.isEnabled&&"zkSync"===e3.type&&r.A.UI.homepage.stats.includes("latest_batch")}}),d=(0,p.A)("general:homepage_arbitrum_latest_batch",{queryOptions:{placeholderData:12345,enabled:e3.isEnabled&&"arbitrum"===e3.type&&r.A.UI.homepage.stats.includes("latest_batch")}}),u=(()=>
1{if(e3.isEnabled&&r.A.UI.homepage.stats.includes("latest_batch"))switch(e3.type){case"zkEvm":return o;case"zkSync":return c;case"arbitrum":return d}})();if(s.isError||a.isError||(null==u?void 0:u.isError))return null;let h=l||(null==u?void 0:u.isPlaceholderData),m=s.data,x=a.data,_=(()=>{var t,a,n,l,o,c,d,p,_,g,b,v,f,j,A,k,S,w;if(!x&&!m)return[];let N=e&&(null==m?void 0:m.gas_prices)&&m.gas_prices.average?(0,i.jsx)(e2.A,{data:m,dataUpdatedAt:s.dataUpdatedAt,children:(0,i.jsx)(E.A,{isLoading:h,name:"info",boxSize:5,flexShrink:0,cursor:"pointer",color:"icon.secondary",_hover:{color:"hover"}})}):null;return[(null==u?void 0:u.data)!==void 0&&{id:"latest_batch",icon:"txn_batches_slim",label:"Latest batch",value:u.data.toLocaleString(),href:{pathname:"/batches"},isLoading:h},((null==x?void 0:null===(t=x.total_blocks)||void 0===t?void 0:t.value)||(null==m?void 0:m.total_blocks))&&{id:"total_blocks",icon:"block_slim",label:(null==x?void 0:null===(a=x.total_blocks)||void 0===a?void 0:a.title)||"Total blocks",value:Number((null==x?void 0:null===(n=x.total_blocks)||void 0===n?void 0:n.value)||(null==m?void 0:m.total_blocks)).toLocaleString(),href:{pathname:"/blocks"},isLoading:h},((null==x?void 0:null===(l=x.average_block_time)||void 0===l?void 0:l.value)||(null==m?void 0:m.average_block_time))&&{id:"average_block_time",icon:"clock-light",label:(null==x?void 0:null===(o=x.average_block_time)||void 0===o?void 0:o.title)||"Average block time",value:"".concat((null==x?void 0:null===(c=x.average_block_time)||void 0===c?void 0:c.value)?Number(x.average_block_time.value).toFixed(1):(m.average_block_time/1e3).toFixed(1),"s"),isLoading:h},((null==x?void 0:null===(d=x.total_transactions)||void 0===d?void 0:d.value)||(null==m?void 0:m.total_transactions))&&{id:"total_txs",icon:"transactions_slim",label:(null==x?void 0:null===(p=x.total_transactions)||void 0===p?void 0:p.title)||"Total transactions",value:Number((null==x?void 0:null===(_=x.total_transactions)||void 0===_?void 0:_.value)||(null==m?void 0:m.total_transactions)).toLocaleString(),href:{pathname:"/txs"},isLoading:h},e4&&(null==x?void 0:null===(g=x.total_operational_transactions)||void 0===g?void 0:g.value)&&{id:"total_operational_txs",icon:"transactions_slim",label:(null==x?void 0:null===(b=x.total_operational_transactions)||void 0===b?void 0:b.title)||"Total operational transactions",value:Number(null==x?void 0:null===(v=x.total_operational_transactions)||void 0===v?void 0:v.value).toLocaleString(),href:{pathname:"/txs"},isLoading:h},e5&&(null==x?void 0:null===(f=x.op_stack_total_operational_transactions)||void 0===f?void 0:f.value)&&{id:"total_operational_txs",icon:"transactions_slim",label:(null==x?void 0:null===(j=x.op_stack_total_operational_transactions)||void 0===j?void 0:j.title)||"Total operational transactions",value:Number(null==x?void 0:null===(A=x.op_stack_total_operational_transactions)||void 0===A?void 0:A.value).toLocaleString(),href:{pathname:"/txs"},isLoading:h},(null==m?void 0:m.last_output_root_size)&&{id:"latest_l1_state_batch",icon:"txn_batches_slim",label:"Latest L1 state batch",value:null==m?void 0:m.last_output_root_size,href:{pathname:"/batches"},isLoading:h},((null==x?void 0:null===(k=x.total_addresses)||void 0===k?void 0:k.value)||(null==m?void 0:m.total_addresses))&&{id:"wallet_addresses",icon:"wallet",label:(null==x?void 0:null===(S=x.total_addresses)||void 0===S?void 0:S.title)||"Wallet addresses",value:Number((null==x?void 0:null===(w=x.total_addresses)||void 0===w?void 0:w.value)||(null==m?void 0:m.total_addresses)).toLocaleString(),isLoading:h},e&&(null==m?void 0:m.gas_prices)&&{id:"gas_tracker",icon:"gas",label:"Gas tracker",value:m.gas_prices.average?(0,i.jsx)(y.A,{data:m.gas_prices.average}):"N/A",hint:N,isLoading:h},(null==m?void 0:m.rootstock_locked_btc)&&{id:"btc_locked",icon:"coins/bitcoin",label:"BTC Locked in 2WP",value:"".concat((0,e0.A)(m.rootstock_locked_btc).div(e1.M$).dp(0).toFormat()," RBTC"),isLoading:h},(null==m?void 0:m.celo)&&{id:"current_epoch",icon:"hourglass_slim",label:"Current epoch",value:"#".concat(m.celo.epoch_number),href:{pathname:"/epochs/[number]",query:{number:String(m.celo.epoch_number)}},isLoading:h}
1].filter(Boolean).filter(e=>{let{id:t}=e;return r.A.UI.homepage.stats.includes(t)}).sort((e,t)=>{let a=r.A.UI.homepage.stats.indexOf(e.id),i=r.A.UI.homepage.stats.indexOf(t.id);return a>i?1:a<i?-1:0})})();return 0===_.length?null:(0,i.jsx)(eW.x,{gridTemplateColumns:"1fr 1fr",gridGap:{base:1,lg:2},flexBasis:"50%",flexGrow:1,children:_.map((e,t)=>(0,i.jsx)(Q.A,{...e,isLoading:h,_last:_.length%2==1&&t===_.length-1?{gridColumn:"span 2"}:void 0},e.id))})};var e8=a(81832),e9=a(95757),te=a(29398),tt=a(227),ta=a(2072),ti=a(7071),tn=a(39898),ts=a(46964);let tr=e=>{let{item:t,isLoading:a}=e,n=(0,P.A)(),s=t.l1BlockNumber?(0,i.jsx)(ta.A,{number:t.l1BlockNumber,isLoading:a,textStyle:"sm",fontWeight:700}):(0,i.jsx)(ta.A,{number:"TBD",isLoading:a,textStyle:"sm",fontWeight:700,noLink:!0}),r=t.l1TxHash?(0,i.jsx)(tn.A,{isLoading:a,hash:t.l1TxHash,textStyle:"sm",truncation:n?"constant_long":"dynamic"}):(0,i.jsx)(tn.A,{isLoading:a,hash:"To be determined",textStyle:"sm",truncation:"none",noLink:!0}),o=(0,i.jsx)(ti.Ay,{isLoading:a,hash:t.l2TxHash,textStyle:"sm",truncation:n?"constant_long":"dynamic"}),c=n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(X.s,{justifyContent:"space-between",alignItems:"center",mb:1,children:[s,t.timestamp?(0,i.jsx)(T.A,{timestamp:t.timestamp,timeFormat:"relative",isLoading:a,color:"text.secondary"}):(0,i.jsx)(tt.E,{})]}),(0,i.jsxs)(eW.x,{gridTemplateColumns:"56px auto",children:[(0,i.jsx)(f.EA,{loading:a,my:"5px",w:"fit-content",children:"L1 txn"}),r,(0,i.jsx)(f.EA,{loading:a,my:"3px",w:"fit-content",children:"L2 txn"}),o]})]}):(0,i.jsxs)(eW.x,{width:"100%",columnGap:4,rowGap:2,templateColumns:"max-content max-content auto",w:"100%",children:[s,(0,i.jsx)(f.EA,{loading:a,w:"fit-content",h:"fit-content",my:"5px",children:"L1 txn"}),r,t.timestamp?(0,i.jsx)(T.A,{timestamp:t.timestamp,timeFormat:"relative",isLoading:a,color:"text.secondary",w:"fit-content",h:"fit-content",my:"2px"}):(0,i.jsx)(tt.E,{}),(0,i.jsx)(f.EA,{loading:a,w:"fit-content",h:"fit-content",my:"2px",children:"L2 txn"}),o]});return(0,i.jsx)(l.a,{width:"100%",borderBottom:"1px solid",borderColor:"border.divider",py:4,px:{base:0,lg:4},textStyle:"sm",children:c})},tl=e=>{let{isLoading:t,items:a,showSocketErrorAlert:n,socketItemsNum:s}=e,r=(0,N.w)({pathname:"/deposits"});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ts.Ay,{borderBottomRadius:0,url:r,num:s,showErrorAlert:n,type:"deposit",isLoading:t}),(0,i.jsx)(l.a,{mb:{base:3,lg:4},children:a.map((e,a)=>(0,i.jsx)(tr,{item:e,isLoading:t},e.l1TxHash+e.l2TxHash+(t?a:"")))}),(0,i.jsx)(X.s,{justifyContent:"center",children:(0,i.jsx)(v.N_,{textStyle:"sm",href:r,children:"View all deposits"})})]})},to=()=>{let e=(0,P.A)()?2:6,{data:t,isPlaceholderData:a,isError:s}=(0,p.A)("general:homepage_optimistic_deposits",{queryOptions:{placeholderData:Array(e).fill(te.OO)}}),[r,l]=(0,e9.A)(0),[o,c]=n.useState(!1),d=n.useCallback(()=>{c(!0)},[]),u=n.useCallback(()=>{c(!0)},[]),h=n.useCallback(e=>{l(e.deposits)},[l]),m=(0,D.A)({topic:"optimism:new_deposits",onSocketClose:d,onSocketError:u,isDisabled:!1});return((0,C.A)({channel:m,event:"new_optimism_deposits",handler:h}),s)?(0,i.jsx)(ea.E,{mt:4,children:"No data. Please reload the page."}):t?(0,i.jsx)(tl,{items:t.slice(0,e).map(e=>({l1BlockNumber:e.l1_block_number,l1TxHash:e.l1_transaction_hash,l2TxHash:e.l2_transaction_hash,timestamp:e.l1_block_timestamp})),isLoading:a,socketItemsNum:r,showSocketErrorAlert:o}):null};var tc=a(79699),td=a(31585),tu=a(14129),th=a(96114),tm=a(1690),tx=a(34460),tp=a(52650),t_=a(46002),tg=a(95591);let tb=n.memo(e=>{var t,a,n,s;let{tx:c,isLoading:d}=e,u=c.to?c.to:c.created_contract,h=(null===(t=r.A.UI.views.tx.hiddenFields)||void 0===t?void 0:t.value)&&(null===(a=r.A.UI.views.tx.hiddenFields)||void 0===a?void 0:a.tx_fee)?2:3;return(0,i.jsxs)(eW.x,{gridTemplateColumns:{lg:2===h?"3fr minmax(auto, 180px)":"3fr minmax(auto, 180px) 170px",xl:2===h?"3fr minmax(auto, 250px)":"3fr minmax(auto, 275px) 170px"},gridGap:8,width:"100%",minW:"700px",borderBottom:"1px solid",borderColor:"border.divider",p:4,display:{base:"none",lg:"grid"}
1,children:[(0,i.jsxs)(X.s,{overflow:"hidden",w:"100%",children:[(0,i.jsx)(t_.A,{tx:c,isLoading:d,my:"3px"}),(0,i.jsxs)(l.a,{ml:3,w:"calc(100% - 40px)",children:[(0,i.jsxs)(o.z,{flexWrap:"wrap",my:"3px",children:[(0,i.jsx)(tg.A,{types:c.transaction_types,isLoading:d}),(0,i.jsx)(tm.A,{status:c.status,errorText:"error"===c.status?c.result:void 0,isLoading:d}),(0,i.jsx)(tp.A,{tx:c,isLoading:d})]}),(0,i.jsxs)(X.s,{alignItems:"center",mt:"7px",mb:"3px",children:[(0,i.jsx)(ti.Ay,{isLoading:d,hash:c.hash,fontWeight:"700"}),(0,i.jsx)(T.A,{timestamp:c.timestamp,enableIncrement:!0,timeFormat:"relative",isLoading:d,color:"text.secondary",textStyle:"sm",flexShrink:0,ml:2})]})]})]}),(0,i.jsx)(th.A,{from:c.from,to:u,isLoading:d,mode:"compact"}),(0,i.jsxs)(X.s,{flexDir:"column",rowGap:3,children:[!(null===(n=r.A.UI.views.tx.hiddenFields)||void 0===n?void 0:n.value)&&(0,i.jsxs)(f.EA,{loading:d,textStyle:"md",children:[(0,i.jsx)(ea.E,{as:"span",whiteSpace:"pre",children:"Value "}),(0,i.jsxs)(ea.E,{as:"span",color:"text.secondary",children:[(0,tu.A)(c.value).dp(5).toFormat()," ",e$.T.ether]})]}),!(null===(s=r.A.UI.views.tx.hiddenFields)||void 0===s?void 0:s.tx_fee)&&(0,i.jsxs)(f.EA,{loading:d,display:"flex",whiteSpace:"pre",textStyle:"md",children:[(0,i.jsx)(ea.E,{as:"span",children:"Fee "}),(0,i.jsx)(tx.A,{tx:c,accuracy:5,color:"text.secondary"})]})]})]})}),tv=n.memo(e=>{var t,a;let{tx:n,isLoading:s}=e,c=n.to?n.to:n.created_contract;return(0,i.jsxs)(l.a,{width:"100%",borderBottom:"1px solid",borderColor:"border.divider",py:4,display:{base:"block",lg:"none"},children:[(0,i.jsxs)(X.s,{justifyContent:"space-between",children:[(0,i.jsxs)(o.z,{flexWrap:"wrap",children:[(0,i.jsx)(tg.A,{types:n.transaction_types,isLoading:s}),(0,i.jsx)(tm.A,{status:n.status,errorText:"error"===n.status?n.result:void 0,isLoading:s}),(0,i.jsx)(tp.A,{tx:n,isLoading:s})]}),(0,i.jsx)(t_.A,{tx:n,isMobile:!0,isLoading:s})]}),(0,i.jsxs)(X.s,{mt:2,alignItems:"center",width:"100%",justifyContent:"space-between",mb:6,children:[(0,i.jsx)(ti.Ay,{isLoading:s,hash:n.hash,fontWeight:"700",truncation:"constant_long"}),(0,i.jsx)(T.A,{timestamp:n.timestamp,enableIncrement:!0,timeFormat:"relative",isLoading:s,color:"text.secondary",fontWeight:"400",fontSize:"sm",ml:3})]}),(0,i.jsx)(th.A,{from:n.from,to:c,isLoading:s,fontSize:"sm",fontWeight:"500",mb:3}),!(null===(t=r.A.UI.views.tx.hiddenFields)||void 0===t?void 0:t.value)&&(0,i.jsxs)(f.EA,{loading:s,mb:2,fontSize:"sm",w:"fit-content",children:[(0,i.jsx)(ea.E,{as:"span",children:"Value "}),(0,i.jsxs)(ea.E,{as:"span",color:"text.secondary",children:[(0,tu.A)(n.value).dp(5).toFormat()," ",e$.T.ether]})]}),!(null===(a=r.A.UI.views.tx.hiddenFields)||void 0===a?void 0:a.tx_fee)&&(0,i.jsxs)(f.EA,{loading:s,fontSize:"sm",w:"fit-content",display:"flex",whiteSpace:"pre",children:[(0,i.jsx)(ea.E,{as:"span",children:"Fee "}),(0,i.jsx)(tx.A,{tx:n,accuracy:5,color:"text.secondary"})]})]})}),tf=r.A.features.zetachain,tj=()=>{let e=(0,P.A)()?2:6,{data:t,isPlaceholderData:a,isError:n}=(0,p.A)("general:homepage_txs",{queryOptions:{placeholderData:Array(e).fill(H.TX)}}),{num:s,showErrorAlert:r}=(0,td.A)({type:"txs_home",isLoading:a});if(n)return(0,i.jsx)(ea.E,{mt:4,children:"No data. Please reload the page."});if(t){let n=(0,N.w)({pathname:"/txs",query:tf.isEnabled?{tab:"evm"}:void 0});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ts.Ay,{borderBottomRadius:0,url:n,num:s,showErrorAlert:r,isLoading:a}),(0,i.jsx)(l.a,{mb:3,display:{base:"block",lg:"none"},children:t.slice(0,e).map((e,t)=>(0,i.jsx)(tv,{tx:e,isLoading:a},e.hash+(a?t:"")))}),(0,i.jsx)(tc.im,{children:(0,i.jsx)(l.a,{mb:3,display:{base:"none",lg:"block"},children:t.slice(0,e).map((e,t)=>(0,i.jsx)(tb,{tx:e,isLoading:a},e.hash+(a?t:"")))})}),(0,i.jsx)(X.s,{justifyContent:"center",children:(0,i.jsx)(v.N_,{textStyle:"sm",href:n,children:"View all transactions"})})]})}return null};var tA=a(8095);let ty=()=>{(0,tA.A)();let e=(0,P.A)()?2:6,{data:t,isPlaceholderData:a,isError:n}=(0,p.A)("general:homepage_txs_watchlist",{queryOptions:{placeholderData:Array(e).fill(H.TX)}});if(n)return(0,i.jsx)(ea.E,{mt:4,children:"No data. Please reload the page."});if(!(null==t?void 0:t.length))return(0,i.jsx)(ea.E,{mt:4,children:"There are no transactions."});if(t){let n=(0,N.w)({pathname:"/txs",query:{tab:"watchlist"}});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.a,{mb:3,display:{base:"block",lg:"none"},children:t.slice(0,e).map((e,t)=>(0,i.jsx)(tv,{tx:e,isLoading:a},e.hash+(a?t:"")))}),(0,i.jsx)(l.a,{mb:4,display:{base:"none",lg:"block"},children:t.slice(0,e).map((e,t)=>(0,i.jsx)(tb,{tx:e,isLoading:a},e.hash+(a?t:"")))}),(0,i.jsx)(X.s,{justifyContent:"center",children:(0,i.jsx)(v.N_,{textStyle:"sm",href:n,children:"View all watch list transactions"})})]})}return null};
1var tE=a(20191),tk=a(47189),tS=a(51153),tw=a(81318),tN=a(19052),tD=a(303);let tC=n.memo(e=>{let{tx:t,isLoading:a,animation:n}=e;return(0,i.jsxs)(eW.x,{gridTemplateColumns:"18px 120px 80px 350px auto",gridGap:3,width:"100%",minW:"740px",borderBottom:"1px solid",borderColor:"border.divider",alignItems:"center",p:4,fontSize:"sm",animation:n,children:[(0,i.jsx)(tN.A,{status:t.status_reduced,isLoading:a}),(0,i.jsx)(tw.A,{hash:t.index,isLoading:a,truncation:"constant",fontWeight:600}),(0,i.jsx)(T.A,{color:"text.secondary",timestamp:Number(t.last_update_timestamp)*e1.Z2,isLoading:a,timeFormat:"relative"}),(0,i.jsx)(th.A,{from:{hash:t.sender_address,chainId:t.source_chain_id.toString(),chainType:"zeta"},to:{hash:t.receiver_address,chainId:t.target_chain_id.toString(),chainType:"zeta"},isLoading:a}),(0,i.jsx)(tD.A,{coinType:t.coin_type,tokenSymbol:t.token_symbol,amount:t.amount,decimals:t.decimals,isLoading:a})]})}),tI=()=>{var e;let t=(0,P.A)()?3:8,{data:a,isPlaceholderData:s,isError:r}=(0,p.A)("zetachain:transactions",{queryOptions:{placeholderData:(0,M.k)(tk.t,50,{next_page_params:{page_key:0,limit:0,direction:tE.OP.DESC}})},queryParams:{limit:t,offset:0,direction:"DESC"}}),o=(0,eP.A)({data:null!==(e=null==a?void 0:a.items)&&void 0!==e?e:[],idFn:e=>e.index,enabled:!s}),c=(0,w.jE)(),[d,u]=n.useState(!1),h=n.useCallback(()=>{u(!0)},[]),m=n.useCallback(()=>{u(!0)},[]),x=n.useCallback(e=>{c.setQueryData((0,p.y)("zetachain:transactions",{queryParams:{limit:t,offset:0,direction:"DESC"}}),a=>{if(!a)return{items:e,next_page_params:null};let i=new Map(a.items.map(e=>[e.index,e]));e.forEach(e=>{i.set(e.index,e)});let n=Array.from(i.values()).sort((e,t)=>Number(t.last_update_timestamp)-Number(e.last_update_timestamp)).slice(0,t);return{...a,items:n}})},[c,t]),_=(0,D.A)({topic:"cctxs:new_cctxs",isDisabled:!!s,socketName:"zetachain",onSocketClose:h,onSocketError:m});if((0,C.A)({channel:_,event:"new_cctxs",handler:x}),r)return(0,i.jsx)(ea.E,{mt:4,children:"No data. Please reload the page."});if(a){let e=(0,N.w)({pathname:"/txs",query:{tab:"cctx"}});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ts.Ay,{type:"cross_chain_transaction",isLoading:s,showErrorAlert:d,borderBottomRadius:0}),(0,i.jsx)(l.a,{mb:3,display:{base:"block",lg:"none"},children:a.items.slice(0,t).map((e,t)=>(0,i.jsx)(tS.A,{tx:e,isLoading:s,animation:o.getAnimationProp(e)},e.index+(s?t:"")))}),(0,i.jsx)(tc.im,{children:(0,i.jsx)(l.a,{mb:3,display:{base:"none",lg:"block"},children:a.items.slice(0,t).map((e,t)=>(0,i.jsx)(tC,{tx:e,isLoading:s,animation:o.getAnimationProp(e)},e.index+(s?t:"")))})}),(0,i.jsx)(X.s,{justifyContent:"center",children:(0,i.jsx)(v.N_,{textStyle:"sm",href:e,children:"View all cross chain transactions"})})]})}return null};var tT=a(69360);let tL=()=>{let e=(0,P.A)()?2:6,{data:t,isPlaceholderData:a,isError:s}=(0,p.A)("general:homepage_arbitrum_deposits",{queryOptions:{placeholderData:{items:Array(e).fill(eF.A_)}}}),[r,l]=(0,e9.A)(0),[o,c]=n.useState(!1),d=n.useCallback(()=>{c(!0)},[]),u=n.useCallback(()=>{c(!0)},[]),h=n.useCallback(e=>{l(e.new_messages_to_rollup_amount)},[l]),m=(0,D.A)({topic:"arbitrum:new_messages_to_rollup_amount",onSocketClose:d,onSocketError:u,isDisabled:!1});return((0,C.A)({channel:m,event:"new_messages_to_rollup_amount",handler:h}),s)?(0,i.jsx)(ea.E,{mt:4,children:"No data. Please reload the page."}):t?(0,i.jsx)(tl,{items:t.items.slice(0,e).map(e=>({l1BlockNumber:e.origination_transaction_block_number,l1TxHash:e.origination_transaction_hash,l2TxHash:e.completion_transaction_hash,timestamp:e.origination_timestamp})),isLoading:a,socketItemsNum:r,showSocketErrorAlert:o}):null},tO=r.A.features.rollup,tU=r.A.features.zetachain,tP=()=>{let e=(0,tT.A)();if(tO.isEnabled&&("optimistic"===tO.type||"arbitrum"===tO.type)||e||tU.isEnabled){var t;let a=[tU.isEnabled&&{id:"cctx",title:"Cross-chain",component:(0,i.jsx)(h.F,{url:null===(t=r.A.apis.zetachain)||void 0===t?void 0:t.socketEndpoint,name:"zetachain",children:(0,i.jsx)(tI,{})})},{id:"txn",title:tU.isEnabled?"ZetaChain EVM":"Latest txn",component:(0,i.jsx)(tj,{})},tO.isEnabled&&"optimistic"===tO.type&&{id:"deposits",title:"Deposits (L1→L2 txn)",component:(0,i.jsx)(to,{})},tO.isEnabled&&"arbitrum"===tO.type&&{id:"deposits",title:"Deposits (L1→L2 txn)",component:(0,i.jsx)(tL,{})},e&&{id:"watchlist",title:"Watch list",component:(0,i.jsx)(ty,{})}
1].filter(Boolean);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.D,{level:"3",mb:3,children:"Transactions"}),(0,i.jsx)(e8.A,{tabs:a,unmountOnExit:!1,listProps:{mb:3}})]})}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.D,{level:"3",mb:3,children:"Latest transactions"}),(0,i.jsx)(tj,{})]})};var tF=a(1076);let tz=r.A.features.rollup,tR=()=>{let e=(()=>{if(tz.isEnabled&&!tz.homepage.showLatestBlocks)switch(tz.type){case"zkEvm":return(0,i.jsx)(eq,{});case"arbitrum":return(0,i.jsx)(eB,{})}return(0,i.jsx)(eQ,{})})();return(0,i.jsxs)(l.a,{as:"main",children:[(0,i.jsx)(m.A,{}),(0,i.jsxs)(X.s,{flexDir:{base:"column",lg:"row"},columnGap:2,rowGap:1,mt:3,_empty:{mt:0},children:[(0,i.jsx)(e6,{}),(0,i.jsx)(eU,{})]}),(0,i.jsx)(tF.A,{mt:6,mx:"auto",display:{base:"flex",lg:"none"},justifyContent:"center"}),(0,i.jsxs)(X.s,{mt:8,direction:{base:"column",lg:"row"},columnGap:12,rowGap:6,children:[e,(0,i.jsx)(l.a,{flexGrow:1,children:(0,i.jsx)(tP,{})})]})]})};var tB=a(13008),tG=a(48705),tM=a(17046),tq=a(10050);let tZ=e=>{let{children:t}=e;return(0,i.jsx)(tq.bL,{content:t,children:(0,i.jsxs)(tq.mc,{children:[(0,i.jsx)(tq.VQ,{}),(0,i.jsx)(tq.jq,{}),(0,i.jsx)(tM.A,{hideSearchBar:!0}),(0,i.jsxs)(tq.fD,{children:[(0,i.jsx)(tq.z6,{}),(0,i.jsxs)(tq.qH,{paddingTop:{base:3,lg:6},children:[(0,i.jsx)(tG.A,{}),(0,i.jsx)(tB.A,{children:t})]})]}),(0,i.jsx)(tq.wi,{})]})})},tW=()=>(0,i.jsx)(s.A,{pathname:"/",children:r.A.features.opSuperchain.isEnabled?(0,i.jsx)(et,{}):(0,i.jsx)(tR,{})});tW.getLayout=function(e){return(0,i.jsx)(tZ,{children:e})};var tH=!0;let tV=tW},81318:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var i=a(37876),n=a(57175);a(14232);var s=a(22187),r=a(7071);let l=(0,n.B)(e=>{var t;let a=(0,s.w)({pathname:"/cc/tx/[hash]",query:{hash:e.hash}});return(0,i.jsx)(r.Ay,{...e,icon:{name:"interop_slim"},href:null!==(t=e.href)&&void 0!==t?t:a})})},82337:function(e,t,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,a,i){void 0===i&&(i=a);var n=Object.getOwnPropertyDescriptor(t,a);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,n)}:function(e,t,a,i){void 0===i&&(i=a),e[i]=t[a]}),n=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||i(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),n(a(24830),t),n(a(57520),t)},86886:(e,t,a)=>{"use strict";a.d(t,{A0:()=>h,BF:()=>u,Hj:()=>m,b9:()=>g,jq:()=>d,nA:()=>x,ug:()=>p,ui:()=>_});var i=a(37876),n=a(31703),s=a(5787),r=a(99373),l=a(14232),o=a(47111),c=a(75884);let d=n.jq,u=n.BF,h=n.A0,m=n.Hj,x=e=>{let{isNumeric:t,...a}=e;return(0,i.jsx)(n.nA,{textAlign:t?"right":void 0,...a})},p=e=>{let{isNumeric:t,...a}=e;return(0,i.jsx)(n.ug,{textAlign:t?"right":void 0,...a})},_=e=>{let{sortField:t,sortValue:a,onSortToggle:n,children:r,disabled:d,indicatorPosition:u="left",contentAfter:h,...m}=e,x=l.useCallback(()=>{n(t)},[n,t]);return(0,i.jsxs)(p,{...m,children:[(0,i.jsxs)(c.N_,{onClick:d?void 0:x,position:"relative",children:[a.includes(t)&&(0,i.jsx)(s.I,{w:4,h:"100%",transform:a.toLowerCase().includes("asc")?"rotate(-90deg)":"rotate(90deg)",position:"absolute",left:"left"===u?-5:void 0,right:"right"===u?-5:void 0,top:0,children:(0,i.jsx)(o.A,{})}),r]}),h]})},g=e=>{let{top:t,children:a,...n}=e,s=l.useRef(null),[o,c]=l.useState(!1),d=l.useCallback(()=>{var e;Number(null===(e=s.current)||void 0===e?void 0:e.getBoundingClientRect().y)<=(t||0)?c(!0):c(!1)},[t]);return l.useEffect(()=>{let e=(0,r.n)(d,300);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[d]),(0,i.jsx)(h,{ref:s,position:"sticky",top:t?"".concat(t,"px"):0,backgroundColor:{_light:"white",_dark:"black"},boxShadow:o?"action_bar":"none",zIndex:"1",...n,children:a})}},86996:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var i=a(89099),n=a(14232),s=a(75747);function r(e){let t=(0,i.useRouter)(),[a,r]=n.useState([(0,s.A)(t.query)].filter(Boolean)),l=n.useCallback(a=>{let{value:i}=a;r(i);let n=(null==e?void 0:e.persistedParams)?e.persistedParams.reduce((e,a)=>({...e,[a]:t.query[a]}),{}):t.query;t.push({pathname:t.pathname,query:{...n,"chain-slug":i[0]}})},[null==e?void 0:e.persistedParams,t]);return n.useMemo(()=>({value:a,onValueChange:l}),[a,l])}},89613:(e,t,a)=>{"use strict";a.d(t,{I:()=>s,J:()=>n});var i=a(30642);let n="0x8fa7b9e5e5e79deeb62d608db22ba9a5cb45388c7ebb9223ae77331c6080dc70",s={base_fee_per_gas:"10000000000",burnt_fees:"92834504000000000",burnt_fees_percentage:42.2,difficulty:"340282366920938463463374607431768211451",extra_data:"TODO",gas_limit:"30000000",gas_target_percentage:55.79,gas_used:"6631036",gas_used_percentage:22.1,hash:n,height:8988736,miner:i.s,nonce:"0x0000000000000000",parent_hash:n,priority_fee:"19241635454943109",rewards:[{reward:"19241635454943109",type:"Validator Re
1ward"}],size:46406,state_root:"TODO",timestamp:"2023-05-12T19:29:12.000000Z",total_difficulty:"10837812015930321201107455268036056402048391639",transactions_count:142,internal_transactions_count:42,transaction_fees:"19241635547777613",type:"block",uncles_hashes:[]}}},e=>{var t=t=>e(e.s=t);e.O(0,[6152,3094,9771,3929,9828,6587,4674,2777,9103,636,6593,8792],()=>t(16760)),_N_E=e.O()}]);
2//# sourceMappingURL=index-85e683ff833b93c0.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.