PageSourceSearch

https://marketplace.apeironnft.com/_next/static/chunks/setRecord.f36530024cf2c8bd.js

js apeironnft.com collected 2026-10-02 08:11:40 UTC 2,868 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6550],{6402:(e,n,t)=>{t.d(n,{MH:()=>c,Z3:()=>s});var o=t(39189),r=t(86947),i=t(49237);let a=(e,n,t)=>null==t?void 0:t.interface.encodeFunctionData("setAddr",[e,n]);function s(e,n,t){return"contentHash"===t?t=>{let o="";if(t!==o){let e=(0,i.a4)(t);if(e.error)throw Error(e.error);o=e.encoded}else o="0x";return n.interface.encodeFunctionData("setContentHash",[e,o])}:"abi"===t?t=>{let{contentType:i=1,data:a}=t,s=a;return(0,o.f)(s)||("object"==typeof s&&(s=JSON.stringify(s)),s=(0,r.YW)(s)),n.interface.encodeFunctionData("setABI",[e,i,s])}:o=>"text"===t?n.interface.encodeFunctionData("setText",[e,o.key,o.value]):a(e,o.value,n)}let c=(e,n,t)=>{let o=[];if(n.clearRecords&&o.push(t.interface.encodeFunctionData("clearRecords",[e])),"string"==typeof n.contentHash){let r=s(e,t,"contentHash")(n.contentHash);r&&o.push(r)}if(n.abi){let r=s(e,t,"abi")(n.abi);r&&o.push(r)}return n.texts&&n.texts.length>0&&n.texts.map(s(e,t,"text")).forEach(e=>o.push(e)),n.coinTypes&&n.coinTypes.length>0&&n.coinTypes.map(s(e,t,"addr")).forEach(e=>o.push(e)),o}},30205:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});var o=t(7920),r=t(84933),i=t(6402);function a({contracts:e,provider:n,signer:t},a,{record:s,type:c}){var l;return(0,o.s)(this,void 0,void 0,function*(){if(!a.includes("."))throw Error("Input is not an ENS name");let o=null==(l=yield null==e?void 0:e.getPublicResolver(n))?void 0:l.connect(t);if(!o)return;let d=(0,r.kM)(a),u=(0,i.Z3)(d,o,c)(s);return{to:o.address,data:u}})}},49237:(e,n,t)=>{t.d(n,{A1:()=>r,a4:()=>i});var o=t(67152);function r(e){let n,t,r;if(!e||"0x"===e)return{};if(e.error)return{protocolType:null,decoded:e.error};if(!1===e)return{protocolType:null,decoded:"invalid value"};if(e)try{n=o.decode(e);let r=o.getCodec(e);"ipfs-ns"===r?t="ipfs":"ipns-ns"===r?t="ipns":"swarm-ns"===r?t="bzz":"onion"===r?t="onion":"onion3"===r?t="onion3":"skynet-ns"===r?t="sia":"arweave-ns"===r?t="ar":n=e}catch(e){r=e.message}return{protocolType:t,decoded:n,error:r}}function i(e){let n,t,r=e,i=!1;if(e){var a;let s=(a=e).match(/^(ipfs|sia|ipns|bzz|onion|onion3|arweave|ar):\/\/(.*)/)||a.match(/\/(ipfs)\/(.*)/)||a.match(/\/(ipns)\/(.*)/);s&&([,n,r]=s);try{"ipfs"===n?r.length>=4&&(i=`0x${o.encode("ipfs-ns",r)}`):"ipns"===n?i=`0x${o.encode("ipns-ns",r)}`:"bzz"===n?r.length>=4&&(i=`0x${o.fromSwarm(r)}`):"onion"===n?16===r.length&&(i=`0x${o.encode("onion",r)}`):"onion3"===n?56===r.length&&(i=`0x${o.encode("onion3",r)}`):"sia"===n?46===r.length&&(i=`0x${o.encode("skynet-ns",r)}`):"arweave"===n||"ar"===n?43===r.length&&(i=`0x${o.encode("arweave-ns",r)}`):console.debug("Unsupported protocol or invalid value",{contentType:n,text:e})}catch(o){let n="Error encoding content hash";console.debug(n,{text:e,encoded:i}),t=n}}return{encoded:i,error:t}}}}]);
2//# sourceMappingURL=setRecord.f36530024cf2c8bd.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.