1"use strict";(self.webpackChunkrsk=self.webpackChunkrsk||[]).push([[7492],{210:function(e,t,n){n.d(t,{W:function(){return s},l:function(){return r}});var l=n(4506),a=n(6540);const r="...",o=(e,t)=>{let n=t-e+1;return Array.from({length:n},((t,n)=>n+e))},s=e=>{let{totalCount:t,pageSize:n,siblingCount:s=1,currentPage:c}=e;return(0,a.useMemo)((()=>{const e=Math.ceil(t/n);if(s+5>=e)return o(1,e);const a=Math.max(c-s,1),i=Math.min(c+s,e),m=a>2,d=i<e-2,u=1,g=e;if(!m&&d){let t=o(1,3+2*s);return[].concat((0,l.A)(t),[r,e])}if(m&&!d){let t=o(e-(3+2*s)+1,e);return[u,r].concat((0,l.A)(t))}if(m&&d){let e=o(a,i);return[u,r].concat((0,l.A)(e),[r,g])}}),[t,n,s,c])}},2596:function(e,t,n){n.d(t,{g:function(){return a}});var l=n(6540);const a=e=>{let{fileName:t,classes:n}=e;return t&&l.createElement("div",{dangerouslySetInnerHTML:{__html:`\n <video\n class="${n}"\n poster="/illustrations/poster/${t}.jpeg"\n loop\n muted\n autoplay\n playsinline\n preload="auto"\n >\n <source src="/illustrations/webm/${t}.webm" type="video/webm" />\n <source src="/illustrations/mp4/${t}.mp4" type="video/mp4" />\n </video>`}})}},3361:function(e,t,n){n.d(t,{J:function(){return o}});
1var l=n(6540),a=n(7559),r=n(6438);const o=e=>{let{number:t,color:n="pink"}=e;t=t||"04.";const{subscribe:o}=(0,r.O)(),{suptitle:s,title:c,text:i}=o;return l.createElement("section",{className:"home-subscribe pt-lg-16 pb-lg-16 py-md-11 py-11"},l.createElement("div",{className:"container"},l.createElement("div",{className:"py-lg-7 px-lg-4 p-md-5 px-4 py-6 border border-1 rounded-5"},l.createElement("div",{className:"row align-items-xl-center align-items-md-end"},l.createElement("div",{className:"col-xl-6 col-lg-6 col-md-7 d-xl-flex"},l.createElement("div",{className:"me-4"},l.createElement("span",{className:`zg-label bg-${n} text-black me-2 mb-2 d-inline-block`},t),l.createElement("span",{className:`zg-label bg-${n} text-black mb-2 d-inline-block`},s)),c&&l.createElement("h2",{className:"h3 mb-5 mb-md-6 mt-3 my-lg-0 letter-spacing-4 mt-lg-4 mt-xl-0"},c)),l.createElement("div",{className:"col-xl-2 col-lg-6 col-md-4"},i&&l.createElement("p",{className:"fs-7 mb-xl-0 mb-lg-4 mb-5"},i)),l.createElement("div",{className:"col-xl-4 col-lg-6 offset-lg-6 offset-xl-0"},l.createElement(a.N,null))))))}},5903:function(e,t,n){n.d(t,{Z:function(){return r}});
1var l=n(6540),a=n(7221);const r=e=>{const{color:t,title:n,label:r,text:o,button:s,image:c,classes:i}=e,m=c?{backgroundImage:`url(${c})`}:null;return l.createElement("div",{className:`zg-card d-flex flex-column justify-content-between align-items-start p-4 border rounded-4 ${i||""}`,style:m},l.createElement("div",null,l.createElement("h3",{className:"h4 text-black mb-5 d-flex align-items-start"},n&&l.createElement("span",{className:"d-flex flex-column align-items-start me-2",dangerouslySetInnerHTML:{__html:function(e,t){void 0===t&&(t="bg-pink p2");let n=e.split("|");return 1===n.length?`<span class="${t}">${e}</span>`:(n=n.filter((e=>""!==e)),e="",n.forEach((n=>{e+=`<span class="${t}">${n}</span>`})),e)}(n,`bg-${t} zg-line-height-sm letter-spacing-1 p-2 mb-1`)}}),r&&l.createElement("span",{className:`d-inline-block bg-${t} px-2 py-1 zg-label`},r)),o&&l.createElement("div",{className:"zg-text-md",dangerouslySetInnerHTML:{__html:o}})),s&&l.createElement(a.$,{title:s.title,url:s.url,external:s.external||s.target&&"_blank"===s.target,classes:"mt-5"}))}},7337:function(e,t,n){n.d(t,{H:function(){return x}});
1var l=n(6540),a=n(3796),r=n(5556),o=n.n(r),s=n(9826),c=n(3545);const i=o().oneOf(["start","end"]),m=o().oneOfType([i,o().shape({sm:i}),o().shape({md:i}),o().shape({lg:i}),o().shape({xl:i}),o().shape({xxl:i}),o().object]);var d=n(4848);const u={id:o().string,href:o().string,onClick:o().func,title:o().node.isRequired,disabled:o().bool,align:m,menuRole:o().string,renderMenuOnMount:o().bool,rootCloseEvent:o().string,menuVariant:o().oneOf(["dark"]),flip:o().bool,bsPrefix:o().string,variant:o().string,size:o().string},g=l.forwardRef((({title:e,children:t,bsPrefix:n,rootCloseEvent:l,variant:r,size:o,menuRole:i,renderMenuOnMount:m,disabled:u,href:g,id:p,menuVariant:b,flip:h,...v},f)=>(0,d.jsxs)(a.A,{ref:f,...v,children:[(0,d.jsx)(s.A,{id:p,href:g,size:o,variant:r,disabled:u,childBsPrefix:n,children:e}),(0,d.jsx)(c.A,{role:i,renderOnMount:m,rootCloseEvent:l,variant:b,flip:h,children:t})]})));g.displayName="DropdownButton",g.propTypes=u;var p=g,b=n(7221);const h=e=>{const{title:t,image:n,classes:a,link:r,query:o}=e,s=r?"a":"div",c={};r&&(c.href=r,c.target="_blank",c.rel="noopener");return l.createElement(s,Object.assign({},c,{className:`zg-card-logo p-3 border rounded-4 ${a}`}),l.createElement("img",{className:"mb-4 mt-2 me-2 ms-auto d-block",src:n||"/rsk-icon.png",alt:t,width:"123",height:"52"}),l.createElement("h3",{className:"h6 mb-0 fw-normal letter-spacing-1",dangerouslySetInnerHTML:{__html:o?t.replace(new RegExp(o,"gi"),(e=>`<mark>${e}</mark>`)):t}}))};var v=n(8755),f=n(4755),E=n(210),k=n(4194);const x=e=>{var t,n;const{t:r}=(0,f.useTranslation)(),{language:o}=(0,f.useI18next)(),{color:s}=e,c=e.data;let{partners:i,categories:m}=(0,k.useStaticQuery)("2965685961");i=(null===(t=i)||void 0===t?void 0:t.edges.filter((e=>e.node.language.slug===o)))||[],m=(null===(n=m)||void 0===n?void 0:n.edges.filter((e=>e.node.language.slug===o)))||[];const d=["Money On Chain","Sovryn","Tropykus","BabelFish","Beefy","OKU","Sushi Swap","Alchemy","Ripio","Jumper","OpenOcean","Merkl","Gamma","LI.FI","Gelato","Galxe","Symbiosis","oooo","Hyperlane","Balmy","Rubic Exchange","Lemon Cash","Pagolinea","Andean Wide","Decrypto","SideShift","iZUMi Finance","Steer Finance","Exodus","Light Finance","Wormhole","Router Protocol","Buenbit","LBank","Rootstock Collective","Mt Pelerin","Metamask","Umbrella Network","MyEtherWallet","Elk Finance","NOWnodes","Envio","EFY Finance","RIF","Efinti","FastBTC","PowPeg","Token Bridge","WayniMovil","Enkrypt","MyCrypto","Ledger","Trezor","Edge Wallet","Wallby","SafePal","Third Web","Tacen","Unitap","SatoshiSync","Etherspot","Vottun","The Graph","Rootstock Explorer","BlockScout","Footprint Analytics","Covalent","Outlier Ventures","Luxor","Marathon","Colledge","UniFi","Think & Dev","WakeUp Labs","Infuy"];let u=[],g=[];function x(e){return e.filter((e=>{var t,n;return(!A||(null===(t=e.node)||void 0===t||null===(n=t.category)||void 0===n?void 0:n.nodes.length)>0&&e.node.category.nodes.some((e=>e.id===+A)))&&e.node.title.toString().toLowerCase().indexOf(C.toLowerCase())>-1}))}i.forEach((e=>{d.includes(e.node.title)?u.push(e):g.push(e)})),g.sort(((e,t)=>e.node.title.localeCompare(t.node.title)));const N=d.map((e=>u.find((t=>t.node.title===e)))).filter(Boolean).concat(g),{0:C,1:I}=(0,l.useState)("");const{0:A,1:w}=(0,l.useState)(""),{0:y,1:S}=(0,l.useState)(r("See categories")),{0:M}=(0,l.useState)(N),L=12,{0:z,1:_}=(0,l.useState)(1),T=x(M).length,F=Math.ceil(T/L),j=(0,E.W)({currentPage:z,totalCount:T,siblingCount:0,pageSize:L});return l.createElement("section",{id:"ecosystem",className:"pt-lg-16 pb-lg-11 pt-md-11 pb-md-13 pt-9 pb-11"},l.createElement("div",{className:"container"},l.createElement("div",{className:"row mb-9 mb-md-8 mb-lg-11"},l.createElement("div",{className:"col-md-7 col-12 col-lg-6"},l.createElement("h2",{className:"mb-6 mb-lg-3 h3",dangerouslySetInnerHTML:{__html:c.title}})),l.createElement("div",{className:"col-md-5 col-lg-3 mb-4 mb-md-6 mb-lg-0"},l.createElement("div",{className:"mb-4"},l.createElement("span",{className:`zg-label bg-${null!=s?s:"pink"} me-2`},c.number),l.createElement("span",{className:`zg-label bg-${null!=s?s:"pink"}`},c.subtitle)),l.createElement("p",{className:"subtitle-md mb-0"},c.text)),l.createElement("div",{className:"col-lg-3 col-md-5 offset-md-7 offset-lg-0 text-lg-end"},(null==c?void 0:c.link.url)&&l.createElement(b.$,{title:c.link.title,url:c.link.url,classes:"",external:"_blank"===c.link.target}))),l.createElement("div",{className:"row"},l.createElement("div",{className:"col-12 col-md-10 col-lg-8 col-xl-6 mb-6 mb-lg-8 d-md-flex align-items-center"},l.createElement(p,{className:"zg-dropdown-btn zg-ecosystem-cat-select",id:"dropdown-basic-button",menuVariant:"dark",variant:"dark",title:y,onSelect:e=>{w(e),_(1)}},l.createElement(a.A.Item,{className:"zg-dropdown-btn__item",eventKe
1y:"",onClick:()=>{S(r("See categories"))}},r("See categories")),m.map(((e,t)=>l.createElement(a.A.Item,{className:"zg-dropdown-btn__item",active:e.node.id===A,key:t,eventKey:e.node.id,onClick:()=>{S(e.node.name)}},e.node.name)))),l.createElement(v.B,{onSend:function(e,t){e.preventDefault(),_(1),I(t)},cssClass:"ms-md-4 ms-xl-6 w-100 mt-4 mt-md-0",placeholder:r("Search projects")}))),l.createElement("div",{className:"zg-logos-grid"},x(M).slice((z-1)*L,(z-1)*L+L).map(((e,t)=>{var n,a,r,o,s,c;return l.createElement(h,{query:C,key:t,title:e.node.title,image:null===(n=e.node)||void 0===n||null===(a=n.image)||void 0===a||null===(r=a.node)||void 0===r||null===(o=r.localFile)||void 0===o?void 0:o.publicURL,link:null===(s=e.node)||void 0===s||null===(c=s.acf)||void 0===c?void 0:c.link})}))),0===x(M).length&&l.createElement("div",{className:"h5 mb-0"},"Sorry, we couldnât find any results"),F*L>L&&l.createElement("div",{className:"row"},l.createElement("div",{className:"col-12 col-xl-6 offset-xl-6"},l.createElement("div",{className:"d-flex justify-content-between mt-4 mt-md-7 mt-lg-6"},l.createElement("button",{onClick:e=>_(z-1),className:"btn-alt btn-page-number",disabled:1===z},l.createElement("span",{className:"px-md-4"},l.createElement("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none"},l.createElement("path",{d:"M25 12L1 12",stroke:"#FAF9F5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M8 19L1 12L8 5",stroke:"#FAF9F5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),l.createElement("div",{className:"d-flex mx-1 mx-md-2 mx-lg-4"},j.map(((e,t)=>e===E.l?l.createElement("span",{className:"btn-alt btn-page-number mx-1",key:t},l.createElement("span",null,"...")):l.createElement("button",{onClick:t=>_(e),className:"btn-alt btn-page-number mx-1 "+(e===z?"active":""),key:t},l.createElement("span",null,e))))),l.createElement("button",{onClick:e=>_(z+1),className:"btn-alt btn-page-number",disabled:z===F},l.createElement("span",{className:"px-md-4"},l.createElement("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none"},l.createElement("path",{d:"M1 12L25 12",stroke:"#FAF9F5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M18 5L25 12L18 19",stroke:"#FAF9F5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))))))))}},7559:function(e,t,n){n.d(t,{N:function(){return s}});
1var l=n(6540),a=n(184),r=n.n(a),o=n(4755);const s=()=>{const e=(0,l.useRef)(null),{t:t}=(0,o.useTranslation)(),{language:n}=(0,o.useI18next)();return l.createElement(r(),{locale:n,ref:e,portalId:"2784460",formId:"0e9e383c-151d-4d4e-9179-2e656b108db7",cssClass:"position-relative subscribe-form",submitButtonClass:"btn btn-white position-absolute subscribe-form__btn",loading:l.createElement("div",null,t("Loading..."))})}},8755:function(e,t,n){n.d(t,{B:function(){return r}});var l=n(6540),a=n(4755);const r=e=>{let{onSend:t,cssClass:n,placeholder:r}=e;const{t:o}=(0,a.useTranslation)(),{0:s,1:c}=(0,l.useState)("");return l.createElement("form",{onSubmit:e=>{e.preventDefault(),t(e,s)},className:`position-relative ${n}`},l.createElement("input",{value:s,onChange:e=>{c((n=>{const l=e.target.value;return t(e,l),l}))},name:"search-project",placeholder:o(r),type:"text",className:"form-control"}),l.createElement("button",{type:"submit",className:"btn btn-white position-absolute subscribe-form__btn"},o("Search")))}},8827:function(e,t,n){n.d(t,{F:function(){return s}});var l=n(4506),a=n(6540),r=(n(4570),n(5880),n(9201),n(6764)),o=n.n(r);const s=e=>{let{stats:t=[],color:n="pink",isFront:r=!1}=e,s=JSON.parse(JSON.stringify(t));s.map((e=>{switch(e.value){case"netHashrate":e.value="157 Ehs";break;case"activeAccounts":e.value="72,000";break;case"blocked":e.value="3,539 RBTC";break;case"blockTime":e.value="29.10";break;case"mergedMining":e.value="85%";break;case"avgTxCost":e.value="0.15c";break;case"monthlyTxs":e.value="68,400"}return e}));const{0:c,1:i}=(0,a.useState)(s),m=(0,a.useRef)(null),{0:d,1:u}=(0,a.useState)(null),{0:g,1:p}=(0,a.useState)(1);(0,a.useEffect)((()=>{let e=null;const n=o()("wss://be.explorer.rootstock.io",{transports:["websocket"]});return n.on("connect_error",(e=>{console.log(`connect_error due to ${e.message}`)})),n.on("connect",(()=>{const t={module:"stats",action:"getStats",params:{}};n.emit("data",t),e=setInterval((()=>{n.emit("data",t)}),2e3)})),n.on("disconnect",(()=>{clearInterval(e)})),n.on("close",(()=>{clearInterval(e)})),n.on("data",(e=>{const n=e.data||[];if((null==n?void 0:n.length)>0){var a,r,o,s;let e=(null===(a=n[0])||void 0===a?void 0:a.activeAccounts)||70037;e=e.toLocaleString("en-US");let m=(null===(r=n[0])||void 0===r||null===(o=r.circulating)||void 0===o?void 0:o.circulatingSupply)||3246;m=(+(+m).toFixed(0)).toLocaleString("en-US"),m=`${m} RBTC`;let d=(null===(s=n[0])||void 0===s?void 0:s.hashrate)||110;d=(d/1e18).toFixed(0),d=`${d} Ehs`,t.map(((t,n)=>{switch(t.value){case"netHashrate":c[n].value=d;break;case"activeAccounts":c[n].value=e;break;case"blocked":c[n].value=m}return t})),i((0,l.A)(c))}})),n.on("subscription",(e=>{console.log(`Subscription to ${e.channel} was successfully`)})),()=>{n.close(),clearInterval(e)}}),[]),(0,a.useEffect)((()=>{fetch("https://be.explorer.rootstock.io/api?module=transactions&action=getTransactionsCount").then((e=>e.json())).then((e=>{var n;let a=(null==e||null===(n=e.data)||void 0===n?void 0:n.transactionsCountLast30Days)||240424;a=a.toLocaleString("en-US"),t.map(((e,t)=>("monthlyTxs"===e.value&&(c[t].value=a),e))),i((0,l.A)(c))})).catch((e=>console.log(e)))}),[]),(0,a.useEffect)((()=>{const e=new WebSocket("wss://backend.stats.rsk.co/primus/?_primuscb=1684354028786-0");return e.onerror=e=>console.error("WebSocket Error: ",e),e.onopen=function(){console.log("WebSocket connection opened for merged mining data."),e.send("ready")},e.onmessage=function(e){try{const n=JSON.parse(e.data);if(console.log("Received WebSocket Data:",n),"charts"===n.action)if(n.data&&void 0!==n.data.hashrateComparedToBtcNetwork){let e=+n.data.hashrateComparedToBtcNetwork||85;e=e.toFixed(0)+"%",t.map(((t,n)=>("mergedMining"===t.value&&(c[n].value=e),t))),console.log("Updated merged mining value:",e),i((0,l.A)(c))}else console.warn("Merged mining data field is missing in the WebSocket response.")}catch(n){console.error("Error parsing WebSocket message:",n)}},()=>{e.close(1e3,"Complete"),console.log("WebSocket connection closed.")}}),[]),(0,a.useEffect)((()=>{m.current&&u(m.current.splide.length)}),[]);return r?a.createElement("div",{className:"d-flex align-items-md-center justify-content-between flex-wrap flex-column flex-md-row"},c.map(((e,t)=>a.createElement("div",{className:"d-inline-flex letter-spacing-1 flex-column mb-lg-0 mb-md-6 mb-4",key:t},a.createElement("div",{className:"d-flex mb-3 align-items-start"},a.createElement("span",{className:`bg-${n} fs-7 p-2 text-black align-self-start`},e.title)),a.createElement("span",{className:"fw-bolder fs-4"},e.value,a.createElement("div",{className:"tooltip"},a.createElement("img",{src:"data:image/svg+xml;base64,IDxzdmcKICAgICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICAgICB3aWR0aD0iOTYiCiAgICAgIGhlaWdodD0iOTYiCiAgICAgIGZpbGw9Im5vbmUiCiAgICAgI
1HZpZXdCb3g9IjAgMCA5NiA5NiIKICAgID4KICAgICAgPGcgY2xpcFBhdGg9InVybCgjY2xpcDBfNjhfOSkiPgogICAgICAgIDxwYXRoCiAgICAgICAgICBmaWxsPSIjNzlDNjAwIgogICAgICAgICAgZD0iTTQ0IDI4aDh2OGgtOHYtOHptMCAxNmg4djI0aC04VjQ0em00LTM2QzI1LjkyIDggOCAyNS45MiA4IDQ4czE3LjkyIDQwIDQwIDQwIDQwLTE3LjkyIDQwLTQwUzcwLjA4IDggNDggOHptMCA3MmMtMTcuNjQgMC0zMi0xNC4zNi0zMi0zMnMxNC4zNi0zMiAzMi0zMiAzMiAxNC4zNiAzMiAzMi0xNC4zNiAzMi0zMiAzMnoiCiAgICAgICAgPjwvcGF0aD4KICAgICAgPC9nPgogICAgICA8ZGVmcz4KICAgICAgICA8Y2xpcFBhdGggaWQ9ImNsaXAwXzY4XzkiPgogICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMEg5NlY5NkgweiI+PC9wYXRoPgogICAgICAgIDwvY2xpcFBhdGg+CiAgICAgIDwvZGVmcz4KICAgIDwvc3ZnPg==",className:"info-img",alt:"Ambassador",width:"25",height:"25",loading:"lazy"}),a.createElement("span",{className:"tooltiptext"},a.createElement("p",{className:"mb-0 mt-2",dangerouslySetInnerHTML:{__html:e.source}})))))))):null}},9201:function(e,t,n){n.d(t,{v:function(){return a}});var l=n(6540);const a=e=>{const{currentSlide:t,totalSlides:n}=e;return l.createElement("div",{className:"d-flex d-md-none splide__arrows"},l.createElement("button",{className:"btn splide__arrow splide__arrow--prev"},l.createElement("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none"},l.createElement("g",{clipPath:"url(#clip0_2311_1134)"},l.createElement("path",{d:"M25 12L1 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M8 19L1 12L8 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2311_1134"},l.createElement("rect",{width:"26",height:"24",fill:"white",transform:"translate(26 24) rotate(-180)"}))))),l.createElement("div",{className:"d-inline-flex align-items-center"},l.createElement("span",{className:"splide__current"},t),l.createElement("span",{className:"splide__total"},n)),l.createElement("button",{className:"btn splide__arrow splide__arrow--next"},l.createElement("svg",{width:"26",height:"24",viewBox:"0 0 26 24",fill:"none"},l.createElement("g",{clipPath:"url(#clip0_2311_1139)"},l.createElement("path",{d:"M1 12L25 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M18 19L25 12L18 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2311_1139"},l.createElement("rect",{width:"26",height:"24",fill:"white",transform:"matrix(1 -8.74228e-08 -8.74228e-08 -1 0 24)"}))))))}}}]); 2//# sourceMappingURL=8762183acdba1dfd4907a6b410cc32c4f4d9f029-549bf1d1c1f5d0bb941a.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.