evm-chains-info 0.0.36 → 0.0.38

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(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
+ (()=>{"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=>{const t=[];return n.f.j(e,t),Promise.all(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(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
+ (()=>{"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=>{const t=[];return r.f.j(e,t),Promise.all(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(35)),o=(e._echo,e._echo2,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)})();
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._echo2,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._override_set,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=>{const t=[];return r.f.j(e,t),Promise.all(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)})();
@@ -121,6 +121,11 @@ const
121
121
  const
122
122
  _msg_error =
123
123
  _libcrash_module._msg_error;
124
+ /* global
125
+ _override_set */
126
+ const
127
+ _override_set =
128
+ _libcrash_module._override_set;
124
129
  /* global
125
130
  _path_join */
126
131
  const
@@ -902,20 +907,27 @@ async function
902
907
  _target_network_type_auto_detect() {
903
908
  let
904
909
  _info_get,
910
+ _msg,
911
+ _target_network,
905
912
  _target_network_type;
913
+ _target_network =
914
+ _get(
915
+ "target",
916
+ "network");
906
917
  _info_get =
907
918
  false;
908
919
  _target_network_type =
909
920
  typeof(
910
- target_network);
911
- if ( _target_network_type == "undefined" ||
912
- target_network == "" ) {
913
- target_network = 100;
921
+ _target_network);
922
+ if ( _target_network_type === "undefined" ||
923
+ _target_network === "" ) {
924
+ _target_network =
925
+ 100;
914
926
  _target_network_type =
915
927
  typeof(
916
- target_network);
928
+ _target_network);
917
929
  }
918
- if ( _target_network_type == "number" ) {
930
+ if ( _target_network_type === "number" ) {
919
931
  _info_get =
920
932
  true;
921
933
  }
@@ -933,7 +945,8 @@ async function
933
945
  `for network variable.`;
934
946
  _msg_error(
935
947
  _msg,
936
- 1);
948
+ 0);
949
+ throw _msg;
937
950
  }
938
951
  if ( _info_get ) {
939
952
  const
@@ -943,11 +956,31 @@ async function
943
956
  const
944
957
  _rpc_get =
945
958
  _libevm_module._rpc_get;
946
- target_network =
947
- _rpc_get(
948
- [ target_network ])[
949
- target_network];
959
+ try {
960
+ const
961
+ _rpc =
962
+ await _rpc_get(
963
+ [ target_network ]);
964
+ _target_network =
965
+ _rpc[
966
+ _target_network];
967
+ }
968
+ catch(
969
+ _error) {
970
+ _msg =
971
+ "Error while running '_rpc_get'.";
972
+ _msg_error(
973
+ _msg,
974
+ 0);
975
+ _echo2(
976
+ _error);
977
+ throw _error;
978
+ }
950
979
  }
980
+ _override_set(
981
+ "target",
982
+ "network",
983
+ _target_network);
951
984
  }
952
985
 
953
986
  function
@@ -1032,9 +1065,8 @@ function
1032
1065
  _msg =
1033
1066
  `No results found for network ` +
1034
1067
  `'${_target_chain}'.`;
1035
- _msg_error(
1036
- _msg,
1037
- 0);
1068
+ _msg_info(
1069
+ _msg);
1038
1070
  }
1039
1071
  }
1040
1072
  else if ( _input_type == "amount" ) {
@@ -1328,6 +1360,7 @@ async function
1328
1360
  _explorer,
1329
1361
  _msg,
1330
1362
  _result,
1363
+ _results,
1331
1364
  _rpc;
1332
1365
  _msg =
1333
1366
  `Running command '${_target_command}', ` +
@@ -1360,17 +1393,37 @@ async function
1360
1393
  _infos =
1361
1394
  [];
1362
1395
  const
1396
+ _evm_chains_info_get_args = [
1397
+ _target_chain,
1398
+ _retrieval_mode,
1399
+ _db_types,
1400
+ _input_type,
1401
+ _output_type,
1402
+ _selection_method,
1403
+ _networks_all,
1404
+ _api_key,
1405
+ _db_paths
1406
+ ];
1407
+ try {
1363
1408
  _results =
1364
- await _evm_chains_info_get(
1365
- _target_chain,
1366
- _retrieval_mode,
1367
- _db_types,
1368
- _input_type,
1369
- _output_type,
1370
- _selection_method,
1371
- _networks_all,
1372
- _api_key,
1373
- _db_paths);
1409
+ await _evm_chains_info_get.apply(
1410
+ null,
1411
+ _evm_chains_info_get_args);
1412
+ }
1413
+ catch(
1414
+ _error) {
1415
+ _msg =
1416
+ "Error running '_evm_chains_info_get' " +
1417
+ "with arguments:";
1418
+ _msg_error(
1419
+ _msg,
1420
+ 0);
1421
+ _echo2(
1422
+ _evm_chains_info_get_args);
1423
+ _echo2(
1424
+ _error);
1425
+ throw _error;
1426
+ }
1374
1427
  if ( _output_type == "rpc" ) {
1375
1428
  for ( _result of _results ) {
1376
1429
  for ( _rpc of _result) {
@@ -1437,7 +1490,8 @@ async function
1437
1490
  _input_type,
1438
1491
  _api_key,
1439
1492
  _db_paths);
1440
- _echo(_status);
1493
+ _echo(
1494
+ _status);
1441
1495
  return _status;
1442
1496
  }
1443
1497
  else {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name":
3
3
  "evm-chains-info",
4
4
  "version":
5
- "0.0.36",
5
+ "0.0.38",
6
6
  "description":
7
7
  "Returns information about Ethereum Virtual Machine (EVM) blockchains.",
8
8
  "funding": {
@@ -67,7 +67,7 @@
67
67
  "@eslint/js":
68
68
  "^10.0.1",
69
69
  "safely-serve":
70
- "^0.0.21",
70
+ "^0.0.22",
71
71
  "webpack":
72
72
  "^5.109.2",
73
73
  "webpack-cli":
@@ -77,21 +77,21 @@
77
77
  "libcrash-js":
78
78
  "npm:crash-js@^1000000000000012.1000000000000001.1000000000000001",
79
79
  "ethereum-data":
80
- "^0.0.11",
80
+ "^0.0.12",
81
81
  "yargs":
82
82
  "18.0.0"
83
83
  },
84
84
  "optionalDependencies": {
85
85
  "evm-wallet":
86
- "npm:evm-wallet.js@^0.0.95"
86
+ "npm:evm-wallet.js@^0.0.99"
87
87
  },
88
88
  "overrides": {
89
89
  "evm-chains-info":
90
90
  "./libevm-chains-info",
91
91
  "evm-contracts-tools":
92
- "^0.0.60",
92
+ "^0.0.62",
93
93
  "evm-wallet":
94
- "npm:evm-wallet.js@^0.0.95"
94
+ "npm:evm-wallet.js@^0.0.99"
95
95
  },
96
96
  "type":
97
97
  "module",