evm-chains-info 0.0.33 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={32(e,t,n){n.a(e,async(e,t)=>{try{const o=await n.e(35).then(n.bind(n,35)),r=o._argv_get,a=o._argv_url_get,i=o._cmdline_check,s=o._echo,l=o._exit,c=o._get,p=o._get_date_human,u=o._global_get,d=o._msg_info,h=o._msg_error,m=o._override_set,_=o._set,f=await n.e(495).then(n.bind(n,495)),y=(f._evm_chains_db_path_get,f._evm_chain_info_get,f._rpc_backend_get,f._evm_chains_info),b=f._db_paths_auto_detect,v=f._db_types_auto_detect,g=f._input_type_auto_detect;function w(){_("app","name","evm-chains-info.js"),_("app","opts",[]),_("runtime","environment",""),_("call","date",""),_("target","command",""),_("input","type",""),_("output","type",""),_("retrieval","mode",""),_("retrieval","mode",[]),_("user","level",""),_("db","paths",[]),_("selection","method",""),_("api","key",""),_("target","chain",""),_("networks","all","");const e=u();e.quiet="",e.verbose=""}function k(){m("call","date",p()),m("target","command","get"),g(),m("output","type","name"),m("retrieval","mode","offline"),m("selection","method","kirsh"),m("api","key","n"),m("user","level","y"),m("networks","all","n"),b(target_chain,user_level),v()}function $(){let e;const t=[`${app_name} configuration:`,` Call date: ${call_date}`,` Runtime environment: ${runtime_environment}`,` Target command: ${target_command}`,` Input type: ${input_type}`,` Output type: ${output_type}`,` Retrieval mode: ${retrieval_mode}`,` Database types: ${db_types}`,` User-level database: ${user_level}`,` API key: ${api_key}`,` RPC selection method: ${selection_method}`,` All networks: ${networks_all}`,` Target chain: ${target_chain}`,` Database paths: ${db_paths}`];for(e of t)d(e)}function j(e){let t;const n=["Returns info about EVM blockchains.","","Usage:",""," evm-chains-info.js"," [options]"," <target-chain>",""," options:",""," -C --command Target command. Can be 'get' or 'set'"," or 'check'.",` <target-command> Default: '${target_command}`,""," -i --input-type Input type. It can be 'id' or 'name'.",` <input-type> Default: '${input_type}'`,""," -o --output-type Output type. It can be 'id', 'name',"," <output-type> 'rpc', 'explorers'.",` Default: '${output_type}'`,""," -m --retrieval-mode It can be 'offline'.",` <retrieval-mode> Default: '${retrieval_mode}'`,""," -t --db-type It can be 'node', 'system'.",` <db-type> Default: '${retrieval_mode}'`,""," -u --user-level It can be 'y' or 'n'.",` <user-level> Default: '${user_level}'`,""," -d --db-path Path of the chains' info json file"," <db-path> to be used for 'offline' retrieval.",` Default: '${db_paths}'`,""," -s --selection-method When output type is 'rpc',"," <selection-method> selection criterion to use when"," more than one is available."," It can be 'kirsh', 'random' or 'all'.",` Default: '${selection_method}'`,""," -k If selected, when output type is 'rpc',"," includes the ones requiring an API key.",` Default: '${api_key}'`," -a --all Whether to show results for all networks.",` Default: '${networks_all}'`,""," -h --help This message."," -v --verbose Enable verbose output."];for(t of n)s(t);l(e)}async function O(){let e,t;const n=await r({booleans:["h","help","v","verbose"]}),o=u(),a=n._;o.quiet="y",e=!1,_("runtime","environment","node"),1==n.h&&(e=!0),1==n.help&&(e=!0),(a.indexOf("--help")>-1||a.indexOf("-h")>-1)&&(e=!0),e&&(o.quiet="n",k(),j(0)),void 0===n||n._.length<1&&0==e?(t="Target chain argument required.",h("Target chain argument required.",0),j(1)):1==e&&j(0),_("target","chain",n._[0]),"C"in n&&_("target","chain",n.C),"command"in n&&_("target","command",n.command),"i"in n&&_("input","type",n.i),"input-type"in n&&_("input","type",n["input-type"]),"o"in n&&_("output","type",n.o),"output-type"in n&&_("output","type",n["output-type"]),"m"in n&&_("retrieval","mode",n.m),"retrieval-mode"in n&&_("retrieval","mode",n["retrieval-mode"]),"u"in n&&_("user","level",n.u),"user-level"in n&&_("user","level",n["user-level"]);const i=c("db","paths");"d"in n&&i.push(n.d),"db-path"in n&&i.push(n["db-paths"]),_("db","paths",i);const s=c("db","types");"t"in n&&s.push(n.t),"db-types"in n&&s.push(n["db-types"]),_("db","types",s),"s"in n&&_("selection","method",n.s),"selection-method"in n&&_("selection","method",n["selection-method"]),"k"in n&&_("api","key","y"),"api-key"in n&&_("api","key","y"),"a"in n&&_("networks","all","y"),"networks-all"in n&&_("networks","all","y"),(n.v||n.verbose)&&(o.verbose=!0),o.verbose&&(o.quiet="n")}function P(){runtime_environment="browser",target_chain=a("chain")[0],target_command=a("command")[0],input_type=a("input_type")[0],output_type=a("output_type")[0],input_type=a("input_type")[0],retrieval_mode=a("retrieval_mode")[0],user_level=a("user_level")[0],db_paths.push(a("db_path")[0]),selection_method=a("selection_method")[0],api_key=a("api_key")[0],networks_all=a("networks_all")[0],quiet=a("quiet"),0===quiet.length&&(quiet="n")}async function E(e){let t,n;n=await y.apply(null,e);const o=typeof n.length;for(t of("undefined"==o&&(n=Object.keys(n)),n))s(t);l(0)}w(),await i("evm-chains-info.js")||await i("evm-chains-info")?await O():P(),await k(),$(),app_opts=[target_command,input_type,output_type,retrieval_mode,db_types,selection_method,api_key,networks_all,target_chain,db_paths,user_level],await E(app_opts),t()}catch(T){t(T)}},1)}};const t={};function n(o){const r=t[o];if(void 0!==r)return r.exports;const a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),o=Symbol("webpack error"),r=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};n.a=(n,a,i)=>{let s;i&&((s=[]).d=-1);const l=new Set,c=n.exports;let p,u,d;const h=new Promise((e,t)=>{d=t,u=e});h[t]=c,h[e]=e=>(s&&e(s),l.forEach(e),h.catch(e=>{})),n.exports=h,a(n=>{let a;p=(n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){const a=[];a.d=0,n.then(e=>{i[t]=e,r(a)},e=>{i[o]=e,r(a)});const i={};return i[e]=e=>e(a),i}}const a={};return a[e]=e=>{},a[t]=n,a}))(n);const i=()=>p.map(e=>{if(e[o])throw e[o];return e[t]}),c=new Promise(t=>{a=()=>t(i),a.r=0;const n=e=>e!==s&&!l.has(e)&&(l.add(e),e&&!e.d&&(a.r++,e.push(a)));p.forEach(t=>t[e](n))});return a.r?c:i()},e=>(e?d(h[o]=e):u(c),r(s))),s?.d<0&&(s.d=0)}})(),(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}const a=Object.create(null);n.r(a);const i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&o;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,n.d(a,i),a}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var r=t[o++],a=t[o++];n.o(e,r)?0===a&&o++:0===a?Object.defineProperty(e,r,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,r,{enumerable:!0,get:a})}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,o)=>(n.f[o](e,t),t),[])),n.u=e=>e+".evm-chains-info.js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="evm-chains-info:";n.l=(o,r,a,i)=>{if(e[o])return void e[o].push(r);let s,l;if(void 0!==a){const e=document.getElementsByTagName("script");for(var c=0;c<e.length;c++){const n=e[c];if(n.getAttribute("src")==o||n.getAttribute("data-webpack")==t+a){s=n;break}}}s||(l=!0,s=document.createElement("script"),s.charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+a),s.src=o),e[o]=[r];const p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(u);const r=e[o];if(delete e[o],s.parentNode?.removeChild(s),r?.forEach(e=>e(n)),t)return t(n)},u=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}})(),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;n.g.importScripts&&(e=n.g.location+"");const t=n.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const n=t.getElementsByTagName("script");if(n.length){let t=n.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=n[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{const e={792:0};n.f.j=(t,o)=>{let r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{const a=new Promise((n,o)=>r=e[t]=[n,o]);o.push(r[2]=a);const i=n.p+n.u(t),s=new Error,l=o=>{if(n.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){const e=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;s.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",s.name="ChunkLoadError",s.type=e,s.request=n,s.event=o,r[1](s)}};n.l(i,l,"chunk-"+t,t)}};const t=(t,o)=>{let[r,a,i]=o;var s,l,c=0;if(r.some(t=>0!==e[t])){for(s in a)n.o(a,s)&&(n.m[s]=a[s]);i&&i(n)}for(t&&t(o);c<r.length;c++)l=r[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0},o=self.webpackChunkevm_chains_info=self.webpackChunkevm_chains_info||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),n(32)})();
|
|
1
|
+
(()=>{"use strict";var e={32(e,t,n){n.a(e,async(e,t)=>{try{const o=await n.e(35).then(()=>n(35)),r=o._argv_get,a=o._argv_url_get,i=o._cmdline_check,s=o._echo,l=o._exit,u=o._get,c=o._get_date_human,p=o._global_get,d=o._msg_info,h=o._msg_error,m=o._override_set,_=o._set,f=await n.e(495).then(()=>n(495)),y=(f._evm_chains_db_path_get,f._evm_chain_info_get,f._rpc_backend_get,f._evm_chains_info),b=f._db_paths_auto_detect,v=f._db_types_auto_detect,g=f._input_type_auto_detect;function w(){_("app","name","evm-chains-info.js"),_("app","opts",[]),_("runtime","environment",""),_("call","date",""),_("target","command",""),_("input","type",""),_("output","type",""),_("retrieval","mode",""),_("retrieval","mode",[]),_("user","level",""),_("db","paths",[]),_("selection","method",""),_("api","key",""),_("target","chain",""),_("networks","all","");const e=p();e.quiet="",e.verbose=""}function k(){m("call","date",c()),m("target","command","get"),g(),m("output","type","name"),m("retrieval","mode","offline"),m("selection","method","kirsh"),m("api","key","n"),m("user","level","y"),m("networks","all","n"),b(target_chain,user_level),v()}function $(){let e;const t=[`${app_name} configuration:`,` Call date: ${call_date}`,` Runtime environment: ${runtime_environment}`,` Target command: ${target_command}`,` Input type: ${input_type}`,` Output type: ${output_type}`,` Retrieval mode: ${retrieval_mode}`,` Database types: ${db_types}`,` User-level database: ${user_level}`,` API key: ${api_key}`,` RPC selection method: ${selection_method}`,` All networks: ${networks_all}`,` Target chain: ${target_chain}`,` Database paths: ${db_paths}`];for(e of t)d(e)}function j(e){let t;const n=["Returns info about EVM blockchains.","","Usage:",""," evm-chains-info.js"," [options]"," <target-chain>",""," options:",""," -C --command Target command. Can be 'get' or 'set'"," or 'check'.",` <target-command> Default: '${target_command}`,""," -i --input-type Input type. It can be 'id' or 'name'.",` <input-type> Default: '${input_type}'`,""," -o --output-type Output type. It can be 'id', 'name',"," <output-type> 'rpc', 'explorers'.",` Default: '${output_type}'`,""," -m --retrieval-mode It can be 'offline'.",` <retrieval-mode> Default: '${retrieval_mode}'`,""," -t --db-type It can be 'node', 'system'.",` <db-type> Default: '${retrieval_mode}'`,""," -u --user-level It can be 'y' or 'n'.",` <user-level> Default: '${user_level}'`,""," -d --db-path Path of the chains' info json file"," <db-path> to be used for 'offline' retrieval.",` Default: '${db_paths}'`,""," -s --selection-method When output type is 'rpc',"," <selection-method> selection criterion to use when"," more than one is available."," It can be 'kirsh', 'random' or 'all'.",` Default: '${selection_method}'`,""," -k If selected, when output type is 'rpc',"," includes the ones requiring an API key.",` Default: '${api_key}'`," -a --all Whether to show results for all networks.",` Default: '${networks_all}'`,""," -h --help This message."," -v --verbose Enable verbose output."];for(t of n)s(t);l(e)}async function O(){let e,t;const n=await r({booleans:["h","help","v","verbose"]}),o=p(),a=n._;o.quiet="y",e=!1,_("runtime","environment","node"),1==n.h&&(e=!0),1==n.help&&(e=!0),(a.indexOf("--help")>-1||a.indexOf("-h")>-1)&&(e=!0),e&&(o.quiet="n",k(),j(0)),void 0===n||n._.length<1&&0==e?(t="Target chain argument required.",h("Target chain argument required.",0),j(1)):1==e&&j(0),_("target","chain",n._[0]),"C"in n&&_("target","chain",n.C),"command"in n&&_("target","command",n.command),"i"in n&&_("input","type",n.i),"input-type"in n&&_("input","type",n["input-type"]),"o"in n&&_("output","type",n.o),"output-type"in n&&_("output","type",n["output-type"]),"m"in n&&_("retrieval","mode",n.m),"retrieval-mode"in n&&_("retrieval","mode",n["retrieval-mode"]),"u"in n&&_("user","level",n.u),"user-level"in n&&_("user","level",n["user-level"]);const i=u("db","paths");"d"in n&&i.push(n.d),"db-path"in n&&i.push(n["db-paths"]),_("db","paths",i);const s=u("db","types");"t"in n&&s.push(n.t),"db-types"in n&&s.push(n["db-types"]),_("db","types",s),"s"in n&&_("selection","method",n.s),"selection-method"in n&&_("selection","method",n["selection-method"]),"k"in n&&_("api","key","y"),"api-key"in n&&_("api","key","y"),"a"in n&&_("networks","all","y"),"networks-all"in n&&_("networks","all","y"),(n.v||n.verbose)&&(o.verbose=!0),o.verbose&&(o.quiet="n")}function P(){runtime_environment="browser",target_chain=a("chain")[0],target_command=a("command")[0],input_type=a("input_type")[0],output_type=a("output_type")[0],input_type=a("input_type")[0],retrieval_mode=a("retrieval_mode")[0],user_level=a("user_level")[0],db_paths.push(a("db_path")[0]),selection_method=a("selection_method")[0],api_key=a("api_key")[0],networks_all=a("networks_all")[0],quiet=a("quiet"),0===quiet.length&&(quiet="n")}async function E(e){let t,n;n=await y.apply(null,e),void 0===n&&h("No results!",1);const o=typeof n.length;for(t of("undefined"==o&&(n=Object.keys(n)),n))s(t);l(0)}w(),await i("evm-chains-info.js")||await i("evm-chains-info")?await O():P(),await k(),$(),app_opts=[target_command,input_type,output_type,retrieval_mode,db_types,selection_method,api_key,networks_all,target_chain,db_paths,user_level],await E(app_opts),t()}catch(T){t(T)}},1)}};const t={};function n(o){const r=t[o];if(void 0!==r)return r.exports;const a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),o=Symbol("webpack error"),r=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};n.a=(n,a,i)=>{let s;i&&((s=[]).d=-1);const l=new Set,u=n.exports;let c,p,d;const h=new Promise((e,t)=>{d=t,p=e});h[t]=u,h[e]=e=>(s&&e(s),l.forEach(e),h.catch(e=>{})),n.exports=h,a(n=>{let a;c=(n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){const a=[];a.d=0,n.then(e=>{i[t]=e,r(a)},e=>{i[o]=e,r(a)});const i={};return i[e]=e=>e(a),i}}const a={};return a[e]=e=>{},a[t]=n,a}))(n);const i=()=>c.map(e=>{if(e[o])throw e[o];return e[t]}),u=new Promise(t=>{a=()=>t(i),a.r=0;const n=e=>e!==s&&!l.has(e)&&(l.add(e),e&&!e.d&&(a.r++,e.push(a)));c.forEach(t=>t[e](n))});return a.r?u:i()},e=>(e?d(h[o]=e):p(u),r(s))),s?.d<0&&(s.d=0)}})(),(()=>{const e=Object.getPrototypeOf;let t;n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}const a=Object.create(null);n.r(a);const i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&o;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,n.d(a,i),a}})(),n.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var r=t[o++],a=t[o++],i=0===a?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:a};n.o(e,r)||Object.defineProperty(e,r,i)}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,o)=>(n.f[o](e,t),t),[])),n.u=e=>e+".evm-chains-info.js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="evm-chains-info:";n.l=(o,r,a,i)=>{if(e[o])return void e[o].push(r);let s,l;if(void 0!==a){const e=document.getElementsByTagName("script");for(var u=0;u<e.length;u++){const n=e[u];if(n.getAttribute("src")==o||n.getAttribute("data-webpack")==t+a){s=n;break}}}s||(l=!0,s=document.createElement("script"),s.charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+a),s.src=o),e[o]=[r];const c=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);const r=e[o];if(delete e[o],s.parentNode?.removeChild(s),r?.forEach(e=>e(n)),t)return t(n)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=c.bind(null,s.onerror),s.onload=c.bind(null,s.onload),l&&document.head.appendChild(s)}})(),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;n.g.importScripts&&(e=n.g.location+"");const t=n.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const n=t.getElementsByTagName("script");if(n.length){let t=n.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=n[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),n.p=e})(),(()=>{const e={792:0};n.f.j=(t,o)=>{let r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{const a=new Promise((n,o)=>r=e[t]=[n,o]);o.push(r[2]=a);const i=new Error,s=o=>{if(n.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){const e=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",i.name="ChunkLoadError",i.type=e,i.request=n,i.event=o,r[1](i)}};n.l(n.p+n.u(t),s,"chunk-"+t,t)}};const t=(t,o)=>{let[r,a,i]=o;var s,l,u=0;if(r.some(t=>0!==e[t])){for(s in a)n.o(a,s)&&(n.m[s]=a[s]);i&&i(n)}for(t&&t(o);u<r.length;u++)l=r[u],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0},o=self.webpackChunkevm_chains_info=self.webpackChunkevm_chains_info||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),n(32)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={314(e,t,r){r.a(e,async(e,t)=>{try{(0,(await r.e(10).then(r
|
|
1
|
+
(()=>{"use strict";var e={314(e,t,r){r.a(e,async(e,t)=>{try{(0,(await r.e(10).then(()=>r(10))).startSyncAgent)(),t()}catch(e){t(e)}},1)}};const t={};function r(o){const n=t[o];if(void 0!==n)return n.exports;const c=t[o]={exports:{}};return e[o](c,c.exports,r),c.exports}r.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),o=Symbol("webpack error"),n=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};r.a=(r,c,s)=>{let i;s&&((i=[]).d=-1);const a=new Set,l=r.exports;let u,p,f;const d=new Promise((e,t)=>{f=t,p=e});d[t]=l,d[e]=e=>(i&&e(i),a.forEach(e),d.catch(e=>{})),r.exports=d,c(r=>{let c;u=(r=>r.map(r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){const c=[];c.d=0,r.then(e=>{s[t]=e,n(c)},e=>{s[o]=e,n(c)});const s={};return s[e]=e=>e(c),s}}const c={};return c[e]=e=>{},c[t]=r,c}))(r);const s=()=>u.map(e=>{if(e[o])throw e[o];return e[t]}),l=new Promise(t=>{c=()=>t(s),c.r=0;const r=e=>e!==i&&!a.has(e)&&(a.add(e),e&&!e.d&&(c.r++,e.push(c)));u.forEach(t=>t[e](r))});return c.r?l:s()},e=>(e?f(d[o]=e):p(l),n(i))),i?.d<0&&(i.d=0)}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var n=t[o++],c=t[o++],s=0===c?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:c};r.o(e,n)||Object.defineProperty(e,n,s)}else for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>e+".fs-worker.js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="evm-chains-info:";r.l=(o,n,c,s)=>{if(e[o])return void e[o].push(n);let i,a;if(void 0!==c){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const r=e[l];if(r.getAttribute("src")==o||r.getAttribute("data-webpack")==t+c){i=r;break}}}i||(a=!0,i=document.createElement("script"),i.charset="utf-8",r.nc&&i.setAttribute("nonce",r.nc),i.setAttribute("data-webpack",t+c),i.src=o),e[o]=[n];const u=(t,r)=>{i.onerror=i.onload=null,clearTimeout(p);const n=e[o];if(delete e[o],i.parentNode?.removeChild(i),n?.forEach(e=>e(r)),t)return t(r)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),a&&document.head.appendChild(i)}})(),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{const e={792:0};r.f.j=(t,o)=>{let n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{const c=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=c);const s=new Error,i=o=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){const e=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;s.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",s.name="ChunkLoadError",s.type=e,s.request=r,s.event=o,n[1](s)}};r.l(r.p+r.u(t),i,"chunk-"+t,t)}};const t=(t,o)=>{let[n,c,s]=o;var i,a,l=0;if(n.some(t=>0!==e[t])){for(i in c)r.o(c,i)&&(r.m[i]=c[i]);s&&s(r)}for(t&&t(o);l<n.length;l++)a=n[l],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0},o=self.webpackChunkevm_chains_info=self.webpackChunkevm_chains_info||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r(314)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={495(e,t,r){r.a(e,async(e,t)=>{try{const e=await r.e(35).then(r
|
|
1
|
+
(()=>{"use strict";var e={495(e,t,r){r.a(e,async(e,t)=>{try{const e=await r.e(35).then(()=>r(35)),o=(e._echo,e._get,e._global_get,e._homedir_get,e._file_exists,e._file_read,e._file_write,e._json_read,e._lib_get,e._mkdir,e._msg_info,e._msg_error,e._path_join,e._range,e._require);e._rm,e._set,(await o("ethereum-data"))._data_get,t()}catch(e){t(e)}},1)}};const t={};function r(o){const n=t[o];if(void 0!==n)return n.exports;const i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),o=Symbol("webpack error"),n=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};r.a=(r,i,c)=>{let s;c&&((s=[]).d=-1);const a=new Set,l=r.exports;let u,f,p;const d=new Promise((e,t)=>{p=t,f=e});d[t]=l,d[e]=e=>(s&&e(s),a.forEach(e),d.catch(e=>{})),r.exports=d,i(r=>{let i;u=(r=>r.map(r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){const i=[];i.d=0,r.then(e=>{c[t]=e,n(i)},e=>{c[o]=e,n(i)});const c={};return c[e]=e=>e(i),c}}const i={};return i[e]=e=>{},i[t]=r,i}))(r);const c=()=>u.map(e=>{if(e[o])throw e[o];return e[t]}),l=new Promise(t=>{i=()=>t(c),i.r=0;const r=e=>e!==s&&!a.has(e)&&(a.add(e),e&&!e.d&&(i.r++,e.push(i)));u.forEach(t=>t[e](r))});return i.r?l:c()},e=>(e?p(d[o]=e):f(l),n(s))),s?.d<0&&(s.d=0)}})(),(()=>{const e=Object.getPrototypeOf;let t;r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}const i=Object.create(null);r.r(i);const c={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&o;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>c[e]=()=>o[e]);return c.default=()=>o,r.d(i,c),i}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var n=t[o++],i=t[o++],c=0===i?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:i};r.o(e,n)||Object.defineProperty(e,n,c)}else for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>e+".libevm-chains-info.js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="evm-chains-info:";r.l=(o,n,i,c)=>{if(e[o])return void e[o].push(n);let s,a;if(void 0!==i){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const r=e[l];if(r.getAttribute("src")==o||r.getAttribute("data-webpack")==t+i){s=r;break}}}s||(a=!0,s=document.createElement("script"),s.charset="utf-8",r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+i),s.src=o),e[o]=[n];const u=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);const n=e[o];if(delete e[o],s.parentNode?.removeChild(s),n?.forEach(e=>e(r)),t)return t(r)},f=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),a&&document.head.appendChild(s)}})(),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{const e={792:0};r.f.j=(t,o)=>{let n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{const i=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=i);const c=new Error,s=o=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){const e=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;c.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",c.name="ChunkLoadError",c.type=e,c.request=r,c.event=o,n[1](c)}};r.l(r.p+r.u(t),s,"chunk-"+t,t)}};const t=(t,o)=>{let[n,i,c]=o;var s,a,l=0;if(n.some(t=>0!==e[t])){for(s in i)r.o(i,s)&&(r.m[s]=i[s]);c&&c(r)}for(t&&t(o);l<n.length;l++)a=n[l],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0},o=self.webpackChunkevm_chains_info=self.webpackChunkevm_chains_info||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r(495)})();
|
package/evm-chains-info
CHANGED
|
@@ -700,6 +700,18 @@ async function
|
|
|
700
700
|
await _evm_chains_info.apply(
|
|
701
701
|
null,
|
|
702
702
|
_app_opts);
|
|
703
|
+
const
|
|
704
|
+
_results_type =
|
|
705
|
+
typeof(
|
|
706
|
+
_results);
|
|
707
|
+
if ( _results_type == "undefined" ) {
|
|
708
|
+
const
|
|
709
|
+
_msg =
|
|
710
|
+
`No results!`;
|
|
711
|
+
_msg_error(
|
|
712
|
+
_msg,
|
|
713
|
+
1);
|
|
714
|
+
}
|
|
703
715
|
const
|
|
704
716
|
_results_length =
|
|
705
717
|
_results.length;
|
package/libevm-chains-info
CHANGED
|
@@ -56,6 +56,11 @@ const
|
|
|
56
56
|
_libcrash_module =
|
|
57
57
|
await import(
|
|
58
58
|
"libcrash-js");
|
|
59
|
+
/* global
|
|
60
|
+
_echo */
|
|
61
|
+
const
|
|
62
|
+
_echo =
|
|
63
|
+
_libcrash_module._echo;
|
|
59
64
|
/* global
|
|
60
65
|
_get */
|
|
61
66
|
const
|
|
@@ -471,7 +476,7 @@ function
|
|
|
471
476
|
function
|
|
472
477
|
_all_get(
|
|
473
478
|
_filter_output_type) {
|
|
474
|
-
|
|
479
|
+
_echo(
|
|
475
480
|
_filter_output_type);
|
|
476
481
|
}
|
|
477
482
|
|
|
@@ -999,9 +1004,15 @@ function
|
|
|
999
1004
|
for ( _entry of _db ) {
|
|
1000
1005
|
if ( _entry[
|
|
1001
1006
|
'chainId'] == _target_chain ) {
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1007
|
+
if ( _output_type == "id" ) {
|
|
1008
|
+
_results.push(
|
|
1009
|
+
_target_chain);
|
|
1010
|
+
}
|
|
1011
|
+
else {
|
|
1012
|
+
_results.push(
|
|
1013
|
+
_entry[
|
|
1014
|
+
_output_type]);
|
|
1015
|
+
}
|
|
1005
1016
|
if ( _selection_method != "all" ) {
|
|
1006
1017
|
break;
|
|
1007
1018
|
}
|
|
@@ -1106,7 +1117,7 @@ function
|
|
|
1106
1117
|
_path_join( [
|
|
1107
1118
|
_score_dir,
|
|
1108
1119
|
"offline" ]);
|
|
1109
|
-
|
|
1120
|
+
_echo(
|
|
1110
1121
|
_score_dir);
|
|
1111
1122
|
if ( ! _file_exists(
|
|
1112
1123
|
_score_dir) ) {
|
|
@@ -1169,7 +1180,8 @@ async function
|
|
|
1169
1180
|
await _block_number_get.apply(
|
|
1170
1181
|
null,
|
|
1171
1182
|
_block_number_get_args);
|
|
1172
|
-
|
|
1183
|
+
_echo(
|
|
1184
|
+
_block_number);
|
|
1173
1185
|
if ( 0 < _block_number ) {
|
|
1174
1186
|
_msg =
|
|
1175
1187
|
`RPC '${_rpc}' for network ` +
|
|
@@ -1267,6 +1279,7 @@ async function
|
|
|
1267
1279
|
_user_level) {
|
|
1268
1280
|
let
|
|
1269
1281
|
_explorer,
|
|
1282
|
+
_msg,
|
|
1270
1283
|
_result,
|
|
1271
1284
|
_rpc;
|
|
1272
1285
|
if ( typeof(
|
|
@@ -1337,6 +1350,17 @@ async function
|
|
|
1337
1350
|
}
|
|
1338
1351
|
return _infos;
|
|
1339
1352
|
}
|
|
1353
|
+
else {
|
|
1354
|
+
_msg =
|
|
1355
|
+
"Unknown output type " +
|
|
1356
|
+
`'${_output_type}'.`;
|
|
1357
|
+
const
|
|
1358
|
+
_exception = {
|
|
1359
|
+
"_msg":
|
|
1360
|
+
_msg
|
|
1361
|
+
};
|
|
1362
|
+
throw _exception;
|
|
1363
|
+
}
|
|
1340
1364
|
}
|
|
1341
1365
|
else if ( _target_command == "set" ) {
|
|
1342
1366
|
_evm_chains_info_set(
|
|
@@ -1352,14 +1376,13 @@ async function
|
|
|
1352
1376
|
_input_type,
|
|
1353
1377
|
_api_key,
|
|
1354
1378
|
_db_paths);
|
|
1355
|
-
|
|
1379
|
+
_echo(_status);
|
|
1356
1380
|
return _status;
|
|
1357
1381
|
}
|
|
1358
1382
|
else {
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
`'${_target_command}'.`;
|
|
1383
|
+
_msg =
|
|
1384
|
+
`Unknown command ` +
|
|
1385
|
+
`'${_target_command}'.`;
|
|
1363
1386
|
_msg_error(
|
|
1364
1387
|
_msg,
|
|
1365
1388
|
1);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name":
|
|
3
3
|
"evm-chains-info",
|
|
4
4
|
"version":
|
|
5
|
-
"0.0.
|
|
5
|
+
"0.0.35",
|
|
6
6
|
"description":
|
|
7
7
|
"Returns information about Ethereum Virtual Machine (EVM) blockchains.",
|
|
8
8
|
"funding": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"crash-js-webpack":
|
|
60
|
-
"^0.0.
|
|
60
|
+
"^0.0.74",
|
|
61
61
|
"flatted":
|
|
62
62
|
"^3.4.4",
|
|
63
63
|
"eslint":
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@eslint/js":
|
|
68
68
|
"^10.0.1",
|
|
69
69
|
"safely-serve":
|
|
70
|
-
"^0.0.
|
|
70
|
+
"^0.0.21",
|
|
71
71
|
"webpack":
|
|
72
72
|
"^5.109.2",
|
|
73
73
|
"webpack-cli":
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"libcrash-js":
|
|
78
|
-
"npm:crash-js@^
|
|
78
|
+
"npm:crash-js@^1000000000000005.1000000000000001.1000000000000001",
|
|
79
79
|
"ethereum-data":
|
|
80
80
|
"^0.0.11",
|
|
81
81
|
"yargs":
|
|
@@ -83,15 +83,15 @@
|
|
|
83
83
|
},
|
|
84
84
|
"optionalDependencies": {
|
|
85
85
|
"evm-wallet":
|
|
86
|
-
"npm:evm-wallet.js@^0.0.
|
|
86
|
+
"npm:evm-wallet.js@^0.0.94"
|
|
87
87
|
},
|
|
88
88
|
"overrides": {
|
|
89
89
|
"evm-chains-info":
|
|
90
90
|
"./libevm-chains-info",
|
|
91
91
|
"evm-contracts-tools":
|
|
92
|
-
"^0.0.
|
|
92
|
+
"^0.0.57",
|
|
93
93
|
"evm-wallet":
|
|
94
|
-
"npm:evm-wallet.js@^0.0.
|
|
94
|
+
"npm:evm-wallet.js@^0.0.94"
|
|
95
95
|
},
|
|
96
96
|
"type":
|
|
97
97
|
"module",
|