PageSourceSearch

https://www.mintscan.io/_app/immutable/nodes/69.D-Ttqip7.js

js mintscan.io collected 2026-09-25 04:12:47 UTC 14,937 bytes, 1 lines download raw bytes

1import"../chunks/DsnmJJEf.js";import"../chunks/69_IOA4Y.js";import{p as R,l as k,h as c,i as r,j,g as t,b as I,o as P,q as w,m as x,f as T,c as E,s as D,a as v,V as ve,d as J}from"../chunks/DkTd6Hs2.js";import{p as K,i as U,b as _e,s as Le}from"../chunks/P0P2xacW.js";import{i as q,_ as y,F as n,q as g}from"../chunks/Ca_Zj95o.js";import{B as Pe}from"../chunks/BnX8Bygn.js";import{e as X,d as A,am as me,A as M,l as h,U as F,a5 as H,b as ye,E as $e,ah as we,G as Fe,b1 as de,D as ge,q as he,u as ze,s as Ae,f as xe,m as ke,i as le}from"../chunks/Yq1cvt_z.js";import{C as Y,a as Z}from"../chunks/AXC2UBY_.js";import{_ as L}from"../chunks/T3BPNAb1.js";import"../chunks/q1e1BZnm.js";import"../chunks/BUApaBEI.js";import{S as Me}from"../chunks/DpSPfmvj.js";import{T as Be}from"../chunks/CbusmF3S.js";import{F as We}from"../chunks/B1hwynE5.js";var _;(d=>{(s=>{s.BridgeTransfer="XHClBQAA*",s.Mint="8uc\\/fAAAA*",s.Withdrwal="nqETKwAA*"})(d.TxType||(d.TxType={}))})(_||(_={}));function De(d,s){R(s,!1);let a=K(s,"chain",8),m=P(void 0);async function u(){const{cursorAfter:f,txs:p}=await M.ES.TxLog.QueryString.connListSearchAfter().list({index:a().esIndexTx,size:40,types:["/ledger.notary.MsgSubmitPayload"],queryString:_.TxType.BridgeTransfer,cursor:t(m)});c(m,L.cloneDeep(f));const o=L(p).map(e=>e.data.tx.body.messages.map(i=>({txHash:e.data.txhash,timestamp:e.data.timestamp,height:e.data.height,message:i}))).flatten().filter(e=>e.message["@type"]==="/ledger.notary.MsgSubmitPayload").map(e=>({...e,decoded:{metadata:fe(e.message.metadata),payload:Y.Decoder.decodePayloadLombardSubmit(L(Z.Config.instance.chainParams).map().value(),e.message.payload,e.message.metadata)}})).value();console.log({transformed:o}),c(l,[...t(l),...o])}let l=P([]);k(()=>r(a()),()=>{X(()=>{a()&&(c(l,[]),c(m,void 0),u())})}),j(),q(),A(d,{style:{padding:"0.5rem 1.5rem"},children:(f,p)=>{{let o=w(()=>(r(y),r(h),r(n),r(g),r(F),r(a()),r(H),x(()=>[{display:"Tx Hash",size:7,titleStyle:{paddingLeft:"0.5rem"},formatter:{type:"interaction",style:{fontSize:".7rem",fontWeight:"500",color:y.Link.color,cursor:"pointer",fontFamily:h.FontFaceMono,justifyContent:"flex-start",paddingLeft:"0.5rem"},func:e=>({display:n.ellipsisCenter(e.txHash,12)})},click(e,i){g(F.transaction({chain:a(),hash:e.txHash}))}},{display:"Type",size:12,titleStyle:{paddingLeft:"4rem"},formatter:{type:"tag-with-sub-text",style:{transform:"scale(0.95)",transformOrigin:"0% 50%",textOverflow:"ellipsis",overflow:"hidden",paddingLeft:"4rem"},func:e=>({display:[n.startCase(e.decoded.payload.decoded?.type),""]})}},{display:"",size:3.5,titleStyle:{paddingRight:"0.6rem"},formatter:{type:"icon-system",style:{paddingRight:"0.4rem"},func:e=>({display:"",icon:{type:H.IMAGE,src:e.decoded.payload.appendix.fromChainParam?.params?.chainlist_params?.chain_image,scale:1.6}})}},{display:"From",size:10,formatter:{type:"text-with-sub-text",style:{fontSize:".7rem",fontWeight:"500",color:y.Link.color,cursor:"pointer",fontFamily:h.FontFaceMono,justifyContent:"flex-start"},func:e=>({display:[e.decoded.payload.appendix.fromChainName,n.ellipsisCenter(e.decoded.payload.decoded.fromChainAddress,10)]})},click(e,i){g(e.decoded.payload.appendix.fromChainAddressLink)}},{display:"",size:3.5,titleStyle:{paddingRight:"1.3rem"},formatter:{type:"icon-system",style:{paddingRight:"0.4rem"},func:e=>({display:"",icon:{type:H.IMAGE,src:e.decoded.payload.appendix.toChainParam?.params?.chainlist_params?.chain_image,scale:1.6}})}},{display:"To",titleStyle:{paddingLeft:"0",marginLeft:"0rem"},size:11,formatter:{type:"text-with-sub-text",style:{fontSize:".7rem",fontWeight:"500",color:y.Link.color,cursor:"pointer",fontFamily:h.FontFaceMono,justifyContent:"flex-start"},func:e=>({display:[e.decoded.payload.appendix.toChainName,n.ellipsisCenter(e.decoded.payload.decoded.toChainAddress,10)]})},click(e,i){g(e.decoded.payload.appendix.toChainAddressLink)}},{display:"Source Chain Tx",size:10,formatter:{type:"interaction",style:{fontSize:".7rem",fontWeight:"500",color:y.Link.color,cursor:"pointer",fontFamily:h.FontFaceMono,justifyContent:"flex-start"},func:e=>({display:n.ellipsisCenter(e.decoded.payload.appendix.fromChainTx,12)}
1)},click(e,i){g(e.decoded.payload.appendix.fromChainTxLink)}},{display:"Amount",fit:!0,formatter:{type:"number",style:{fontSize:".76rem",fontWeight:"600",textOverflow:"ellipsis",overflow:"hidden"},func:e=>({display:"",numberValue:e.decoded.payload.appendix.shortenDisplayAmount,numberProp:{h:8,formatter:String}})}},{display:"Time",size:9,titleStyle:{paddingRight:"0.4rem"},formatter:{type:"value-with-sub-text",style:{paddingRight:"0.4rem",fontSize:".76rem",fontWeight:"500",fontFamily:"Lato",justifyContent:"flex-start"},func:e=>({display:n.timeForDataTable(e.timestamp)})}}])));me(f,{zebra:!0,itemHeight:3.2,get items(){return t(l)},pagination:{buttonCount:5,disablePageEnd:!1,disablePageNext:!1,page:1,itemCountPerPage:12,position:"bottom",onPageChange:(e,i)=>e===i&&u()},style:{padding:"0 !important"},styleContent:{padding:"0 !important"},fixedTitleWidth:{default:0,mobile:0},get displayProps(){return t(o)}})}},$$slots:{default:!0}}),I()}function Ee(d,s){R(s,!1);let a=K(s,"chain",8),m=P(void 0);async function u(){const{cursorAfter:f,txs:p}=await M.ES.TxLog.QueryString.connListSearchAfter().list({index:a().esIndexTx,size:40,types:["/ledger.notary.MsgSubmitPayload"],queryString:_.TxType.Mint,cursor:t(m)});c(m,L.cloneDeep(f));const o=L(p).map(e=>e.data.tx.body.messages.map(i=>({txHash:e.data.txhash,timestamp:e.data.timestamp,height:e.data.height,message:i}))).flatten().filter(e=>e.message["@type"]==="/ledger.notary.MsgSubmitPayload").map(e=>({...e,decoded:{metadata:fe(e.message.metadata),payload:Y.Decoder.decodePayloadLombardSubmit(L(Z.Config.instance.chainParams).map().value(),e.message.payload,e.message.metadata)}})).value();c(l,[...t(l),...o])}let l=P([]);k(()=>r(a()),()=>{X(()=>{a()&&(c(l,[]),c(m,void 0),u())})}),j(),q(),A(d,{style:{padding:"0.5rem 1.5rem"},children:(f,p)=>{{let o=w(()=>(r(y),r(h),r(n),r(g),r(F),r(a()),r(H),x(()=>[{display:"Tx Hash",size:7,titleStyle:{paddingLeft:"0.5rem"},formatter:{type:"interaction",style:{fontSize:".7rem",fontWeight:"500",color:y.Link.color,cursor:"pointer",fontFamily:h.FontFaceMono,justifyContent:"flex-start",paddingLeft:"0.5rem"},func:e=>({display:n.ellipsisCenter(e.txHash,12)})},click(e,i){g(F.transaction({chain:a(),hash:e.txHash}))}},{display:"Type",size:10,titleStyle:{paddingLeft:"4rem"},formatter:{type:"tag-with-sub-text",style:{transform:"scale(0.95)",transformOrigin:"0% 50%",textOverflow:"ellipsis",overflow:"hidden",paddingLeft:"4rem"},func:e=>({display:[n.startCase(e.decoded.payload.decoded?.type),""]})}},{display:"",size:3.5,formatter:{type:"icon-system",style:{},func:e=>({display:"",icon:{type:H.IMAGE,src:e.decoded.payload.appendix.chainParam?.params?.chainlist_params?.chain_image,scale:1.6}})}},{display:"Recipient",size:12,titleStyle:{paddingLeft:"0.4rem"},formatter:{type:"text-with-sub-text",style:{fontSize:".7rem",fontWeight:"500",color:y.Link.color,fontFamily:h.FontFaceMono,justifyContent:"flex-start",paddingLeft:"0.5rem",cursor:"pointer"},func:e=>({display:[e.decoded.payload.appendix.chainName,n.ellipsisCenter(e.decoded.payload.decoded.recipient,10)]})},click(e,i){g(e.decoded.payload.appendix.chainAddressLink)}},{display:"BTC Tx",size:10,titleStyle:{paddingLeft:"0.5rem"},formatter:{type:"interaction",style:{fontSize:".7rem",fontWeight:"500",color:y.Link.color,cursor:"pointer",fontFamily:h.FontFaceMono,justifyContent:"flex-start",paddingLeft:"0.5rem"},func:e=>({display:n.ellipsisCenter(e.decoded.payload.decoded.reverseTxId,10)})},click(e,i){g(e.decoded.payload.appendix.txLink)}}
1,{display:"Amount",fit:!0,formatter:{type:"number",style:{fontSize:".76rem",fontWeight:"600",textOverflow:"ellipsis",overflow:"hidden"},func:e=>({display:"",numberValue:e.decoded.payload.appendix.displayAmount,numberProp:{h:8,formatter:String}})}},{display:"Time",size:9,titleStyle:{paddingRight:"0.4rem"},formatter:{type:"value-with-sub-text",style:{paddingRight:"0.4rem",fontSize:".76rem",fontWeight:"500",fontFamily:"Lato",justifyContent:"flex-start"},func:e=>({display:n.timeForDataTable(e.timestamp)})}}])));me(f,{zebra:!0,itemHeight:3.2,get items(){return t(l)},pagination:{buttonCount:5,disablePageEnd:!1,disablePageNext:!1,page:1,itemCountPerPage:12,position:"bottom",onPageChange:(e,i)=>e===i&&u()},style:{padding:"0 !important"},styleContent:{padding:"0 !important"},fixedTitleWidth:{default:0,mobile:0},get displayProps(){return t(o)}})}},$$slots:{default:!0}}),I()}function He(d,s){R(s,!1);let a=K(s,"chain",8),m=P(void 0);async function u(){const{cursorAfter:f,txs:p}=await M.ES.TxLog.QueryString.connListSearchAfter().list({index:a().esIndexTx,size:40,types:["/ledger.notary.MsgSubmitPayload"],queryString:_.TxType.Withdrwal,cursor:t(m)});c(m,L.cloneDeep(f));const o=L(p).map(e=>e.data.tx.body.messages.map(i=>({txHash:e.data.txhash,timestamp:e.data.timestamp,height:e.data.height,message:i}))).flatten().filter(e=>e.message["@type"]==="/ledger.notary.MsgSubmitPayload").map(e=>({...e,decoded:{metadata:fe(e.message.metadata),payload:Y.Decoder.decodePayloadLombardSubmit(L(Z.Config.instance.chainParams).map().value(),e.message.payload,e.message.metadata)}})).value();c(l,[...t(l),...o])}let l=P([]);k(()=>r(a()),()=>{X(()=>{a()&&(c(l,[]),c(m,void 0),u())})}),j(),q(),A(d,{style:{padding:"0.5rem 1.5rem"},children:(f,p)=>{{let o=w(()=>(r(y),r(h),r(n),r(g),r(F),r(a()),x(()=>[{display:"Tx Hash",size:7,titleStyle:{paddingLeft:"0.5rem"},formatter:{type:"interaction",style:{fontSize:".7rem",fontWeight:"500",color:y.Link.color,cursor:"pointer",fontFamily:h.FontFaceMono,justifyContent:"flex-start",paddingLeft:"0.5rem"},func:e=>({display:n.ellipsisCenter(e.txHash,12)})},click(e,i){g(F.transaction({chain:a(),hash:e.txHash}))}},{display:"Type",size:15,titleStyle:{paddingLeft:"4rem"},formatter:{type:"tag-with-sub-text",style:{transform:"scale(0.95)",transformOrigin:"0% 50%",textOverflow:"ellipsis",overflow:"hidden",paddingLeft:"4rem"},func:e=>({display:[n.startCase(e.decoded.payload.decoded?.type),""]})}},{display:"BTC Address",fit:!0,titleStyle:{paddingLeft:"0.5rem"},formatter:{type:"interaction",style:{fontSize:".7rem",fontWeight:"500",color:y.Link.color,cursor:"pointer",fontFamily:h.FontFaceMono,justifyContent:"flex-start",paddingLeft:"0.5rem"},func:e=>({display:n.ellipsisCenter(e.decoded.payload.decoded.btcAddress,20)})},click(e,i){g(e.decoded.payload.appendix.btcAddressLink)}}
1,{display:"Amount",size:13,formatter:{type:"number",style:{fontSize:".76rem",fontWeight:"600",textOverflow:"ellipsis",overflow:"hidden"},func:e=>({display:"",numberValue:e.decoded.payload.appendix.displayAmount,numberProp:{h:8,formatter:String}})}},{display:"Time",fit:!0,titleStyle:{paddingRight:"0.4rem"},formatter:{type:"value-with-sub-text",style:{paddingRight:"0.4rem",fontSize:".76rem",fontWeight:"500",fontFamily:"Lato",justifyContent:"flex-start"},func:e=>({display:n.timeForDataTable(e.timestamp)})}}])));me(f,{zebra:!0,itemHeight:3.2,get items(){return t(l)},pagination:{buttonCount:5,disablePageEnd:!1,disablePageNext:!1,page:1,itemCountPerPage:12,position:"bottom",onPageChange:(e,i)=>e===i&&u()},style:{padding:"0 !important"},styleContent:{padding:"0 !important"},fixedTitleWidth:{default:0,mobile:0},get displayProps(){return t(o)}})}},$$slots:{default:!0}}),I()}var Re=J("<!> <!> <!>",1),je=J("<!> <!>",1),Ie=J("<!> <!>",1),qe=J("<!> <!>",1);function Oe(d,s){R(s,!1);const a=()=>_e(ze,"$screen",m),[m,u]=Le(),l=P(),f=P(),p=Z.Config.instance.byId("lombard");k(()=>{},()=>{c(l,[{id:"deposit",text:"Deposits"},{id:"bridgeTransfer",text:"Bridge Transfers"},{id:"withdrawals",text:"Withdrawals"}])}),k(()=>_,()=>{c(f,X(async()=>
1{const o=await M.ES.TxLog.QueryString.count({index:p.esIndexTx,types:["/ledger.notary.MsgSubmitPayload"],queryString:_.TxType.Mint}),e=await M.ES.TxLog.QueryString.count({index:p.esIndexTx,types:["/ledger.notary.MsgSubmitPayload"],queryString:_.TxType.BridgeTransfer}),i=await M.ES.TxLog.QueryString.count({index:p.esIndexTx,types:["/ledger.notary.MsgSubmitPayload"],queryString:_.TxType.Withdrwal});return{mintCount:o,bridgeTransferCount:e,withdrawalCount:i}}))}),j(),q(),We(d,{get chain(){return p},children:(o,e)=>{var i=qe(),ce=T(i);ye.ContentsCenter(ce,{rootStyle:{paddingTop:"1rem",paddingBottom:"0"},children:(ee,Ce)=>{$e(ee,{titleOpensans:!0,title:"LBTC Summary",inCenteredContent:!0,noOutline:!0,styleContent:{paddingTop:"0.3rem"},style:{paddingBottom:"0 !important",paddingTop:"0 !important"},children:(O,te)=>{var N=E(),ae=T(N);we(ae,()=>t(f),B=>{Me(B,{height:"4rem"})},(B,b)=>{var G=je(),re=T(G);{let ie=w(()=>(r(he),a(),x(()=>he.responsive(a(),{sm:"1fr 1fr 1fr",xs:"1fr"}))));Fe(re,{get column(){return t(ie)},height:"fit-content",gap:.5,children:(ne,ue)=>{var C=Re(),W=T(C);A(W,{children:(z,S)=>{{let $=w(()=>(r(n),x(()=>({formatter:n.integer}))));de(z,{title:"Deposit",get numberProp(){return t($)},get value(){return r(t(b)),x(()=>t(b).mintCount)},h:8,loose:!0,border:!0})}},$$slots:{default:!0}});var V=D(W,2);A(V,{children:(z,S)=>{{let $=w(()=>(r(n),x(()=>({formatter:n.integer}))));de(z,{title:"Bridge Transfer",get numberProp(){return t($)},get value(){return r(t(b)),x(()=>t(b).bridgeTransferCount)},h:8,loose:!0,border:!0})}},$$slots:{default:!0}});var oe=D(V,2);A(oe,{children:(z,S)=>{{let $=w(()=>(r(n),x(()=>({formatter:n.integer}))));de(z,{title:"Withdrawal",get numberProp(){return t($)},get value(){return r(t(b)),x(()=>t(b).withdrawalCount)},h:8,loose:!0,border:!0})}},$$slots:{default:!0}}),v(ne,C)},$$slots:{default:!0}})}var Q=D(re,2);ge(Q,{height:1}),v(B,G)}),v(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=D(ce,2);ye.ContentsCenter(be,{rootStyle:{paddingTop:"0.6rem"},children:(ee,Ce)=>{var O=Ie(),te=T(O);ge(te,{height:1.5});var N=D(te,2);Be(N,{get tabItems(){return t(l)},gap:15,children:ve,$$slots:{default:(ae,B)=>{const b=w(()=>B.sector);A(ae,{children:(G,re)=>{var Q=E(),ie=T(Q);{var ne=C=>{Ee(C,{get chain(){return p}})},ue=C=>{var W=E(),V=T(W);{var oe=S=>{De(S,{get chain(){return p}})},z=S=>{var $=E(),Se=T($);{var Te=se=>{He(se,{get chain(){return p}})};U(Se,se=>{t(b)==="withdrawals"&&se(Te)},!0)}v(S,$)};U(V,S=>{t(b)==="bridgeTransfer"?S(oe):S(z,!1)},!0)}v(C,W)};U(ie,C=>{t(b)==="deposit"?C(ne):C(ue,!1)})}v(G,Q)},$$slots:{default:!0}})}}}),v(ee,O)},$$slots:{default:!0}}),v(o,i)},$$slots:{default:!0}}),I(),u()}var pe;(d=>{d.Root=Oe})(pe||(pe={}));function fe(d){try{const s=Y.Decoder.decodeBase64(d);let a=d;return a=JSON.parse(s),{raw:d,decoded:s,json:a}}catch{return{raw:d,json:d}}}function it(d,s){R(s,!1);const a=P();let m=K(s,"data",8);Ae(!1),k(()=>r(m()),()=>{c(a,m().chain)}),k(()=>(t(a),xe),()=>{t(a)&&ke([le("Explorers",F.explorers()),le(`${xe.getDisplayName(t(a))}`,`/${t(a).id}`),le("LBTC",F.lbtc({chain:t(a)}))])}),j(),q();var u=E(),l=T(u);{var f=o=>{pe.Root(o,{})},p=o=>{Pe.NotFound(o,{})};U(l,o=>{t(a),x(()=>t(a).id==="lombard")?o(f):o(p,!1)})}v(d,u),I()}export{it as component};

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.