evm-contracts-tools 0.0.57 → 0.0.62

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.
package/Makefile CHANGED
@@ -302,6 +302,13 @@ install-man:
302
302
  "build/man/$(_PROJECT_NPM).1" \
303
303
  "$(MAN_DIR)/man1/$(_PROJECT_NPM).1"
304
304
 
305
+ uninstall-man:
306
+
307
+ cd \
308
+ "man"; \
309
+ make \
310
+ "uninstall"
311
+
305
312
  uninstall-scripts:
306
313
 
307
314
  for _program in \
@@ -311,7 +318,8 @@ uninstall-scripts:
311
318
  "$(BIN_DIR)/$${_program}"; \
312
319
  done; \
313
320
  rm \
314
- "$(LIB_DIR") \
321
+ -rvf \
322
+ "$(LIB_DIR)" \
315
323
  "$(NODE_DIR)"
316
324
 
317
325
  .PHONY: check build-man build-npm build-scripts install install-doc install-man install-npm install-scripts shellcheck
@@ -1 +1 @@
1
- (()=>{"use strict";var t={2632(t,e,a){a.a(t,async(t,e)=>{try{const r=await a.e(35).then(()=>a(5035)),o=r._argv_get,c=r._argv_url_get,n=r._cmdline_check,i=r._echo,l=r._exit,s=r._get,u=r._get_date_human,p=r._global_get,d=(r._homedir_get,r._msg_info),_=r._msg_error,m=r._override_set,h=r._printf,f=r._require,g=r._set,b=await f("libevm"),w=b._libevm_cmdline_parse,y=b._libevm_global_variables,v=b._libevm_url_parse,$=b._wallet_overrides_set,k=await a.e(679).then(()=>a(1679)),x=k._artifact_local_auto_detect,C=k._address_check,D=k._cache_dir_auto_detect,E=k._data_dir_auto_detect,P=k._default_artifact_path_get,j=k._contract_abi_auto_detect,M=k._evm_contract_call,A=k._call_auth_auto_detect,I=k._target_app_auto_detect,O=k._contract_address_auto_detect;function T(){g("app","name","evm-contract-call.js"),g("app","opts",[]),g("runtime","environment",""),g("call","date",""),g("cache","dir",""),g("data","dir",""),g("wallet","name",""),g("retries","max",""),g("rpc","selection",""),g("call","type",""),g("index","retrieve",""),g("target","app",""),g("target","contract",""),g("contract","address",""),g("contract","bytecode",""),g("contract","compiler_output",""),g("contract","abi",""),g("contract","method",""),g("method","args",[]),g("price","gas",""),g("measure","unit","");const t=p();t.quiet="",t.verbose=""}async function S(t){if(!(D(),E(),m("call","date",u()),I(),O(),t||void 0===t||""==t||C(contract_address))){const t=`Contract address '${contract_address}' is invalid.`;_(t,1)}m("wallet","name","default"),m("index","retrieve","n"),m("retries","max","300"),m("rpc","selection","kirsh"),m("call","type","static"),A(),m("call","timeout","300000"),m("measure","unit","ether"),m("msg","value","0"),""!=contract_address&&""==contract_abi&&(contract_abi=P("abi"),x("bytecode"),x("compiler_output"),""!=contract_abi&&P("abi")!=contract_abi||j()),await $("evm-wallet",wallet_name,call_auth)}function q(){let t;const e=[`${s("app","name")} configuration:`,` Call date: ${call_date}`,` Runtime environment: ${runtime_environment}`,` Call type: ${call_type}`,` Call authentication: ${call_auth}`," Application options:",` Cache directory: ${cache_dir}`,` Data directory: ${data_dir}`," Credentials options:",` Wallet name: ${wallet_name}`,` Wallet address: ${api_key}`,` Wallet path: ${wallet_path}`,` Wallet password: ${wallet_password}`,` Wallet seed: ${wallet_seed}`," Network options:",` Target network: ${target_network}`,` Max retries: ${retries_max}`,` Call timeout: ${call_timeout}`,` API key: ${api_key}`,` RPC selection method: ${rpc_selection}`,` Gas price: ${price_gas}`," Contract options:",` Target application: ${target_app}`,` Target contract: ${target_contract}`,` Contract address: ${contract_address}`,` Contract ABI: ${contract_abi}`,` Contract bytecode: ${contract_bytecode}`,` Retrieve from Index: ${index_retrieve}`,` Contract compiler output: ${contract_compiler_output}`," Call options:",` Message value: ${msg_value}`,` Measure unit: ${measure_unit}`,` Contract method: ${contract_method}`,` Method arguments: ${method_args}`];for(t of e)d(t)}function W(t){let e;const a=["","Runs a smart contract function.","","Usage:","",` ${s("app","name")}`," [options]"," <contract-address>"," <contract-method>"," ([method-args])",""," networks:"," all those supported by"," 'evm-chains-info' as well"," as directly RPC addresses",""," options:",""," -t --call-type It can be 'static' or 'dynamic'.",` <call-type> Default: '${call_type}`,""," call options:",` -V --msg-value How much '${measure_unit} to attach to the`," <msg-value> transaction.",` Default: '${msg_value}'`,""," -u --measure-unit Measure unit for the transacion."," <measure-unit> It can be 'ether' or 'wei'.",` Default: '${measure_unit}'`,""," -P --price-gas I dont remember. It can be 'idontknow'."," <price-gas>",` Default: '${price_gas}'`,""," -r --retries-max Maximum number of retries before"," <retries-max> Declaring the call failed.",` Default: '${retries_max}'`,""," -T --call-timeout Maximum number of milliseconds before"," <call-timeout> declaring the call failed.",` Default: '${call_timeout}'`,""," contract options:",""," -A --abi Contract ABI path.",` <contract-abi> Default: '${contract_abi}'.`,""," -B --bytecode Contract bytecode path.",` <contract-bytecode> Default: '${contract_bytecode}'.`,""," -C --compiler-output Contract compiler output path"," <contract-bytecode> (the hardhat artifact.",` Default: '${contract_compiler_output}'.`,""," -I --index-retrieve Enables retrieving contract's artifacts"," from the EVM Contracts Source Index.",` Default: '${index_retrieve}'.`,""," credentials options:",""," -N --wallet-name EVM Wallet name.",` <wallet-name> Default: '${wallet_name}'.`,""," -w --wallet-path EVM Wallet path.",` <wallet-path> Default: '${wallet_path}'.`,""," -p --wallet-password EVM Wallet password file.",` <wallet-password> Default: '${wallet_password}'.`,""," -s --wallet-seed EVM Wallet seed file.",` <wallet-seed> Default: '${wallet_seed}'.`,""," -k --api-key Etherscan-like service key file.",` <api-key> Default: '${api_key}'.`,""," libEVM options:",""," -K --app Target application.",` Default: '${target_app}'`,""," -a --auth Call authentication.",` Default: '${call_auth}'`,""," -n --network EVM network name. Accepted"," <network> values are all those supported by"," 'evm-chains-info' and RPC addresses.",` Default: '${target_network}'.`,""," -S --rpc-selection RPC selection method. It can be"," <rpc-selection> 'kirsh', 'random' or 'all'.",` Default: '${rpc_selection}'.`,""," Application options:",""," -W --cache-dir Cache directory.",` Default: '${cache_dir}'`,""," -D --data-dir Data directory.",` Default: '${data_dir}'`," -h --help This message.",""," -v --verbose Enable verbose output.",""];for(e of a)i(e);l(t)}async function V(){let t,e;const a=await o({booleans:["a","auth","h","help","I","index-retrieve","v","verbose"]}),r=a._,c=p();c.quiet="y",g("runtime","environment","node"),1==a.h&&(t=!0),1==a.help&&(t=!0),(r.indexOf("--help")>-1||r.indexOf("-h")>-1)&&(t=!0),t&&(c.quiet="n",await S(t),W(0)),(void 0===a||a._.length<1)&&(e="Contract address argument required.",_(e,0),W(1)),g("contract","address",a._[0]),(void 0===a||a._.length<2)&&(e="Contract method argument required.",_(e,0),W(1)),g("contract","method",a._[0]),g("method","args",a._.slice(2,a._.length-2)),"t"in a&&g("call","type",a.t),"call-type"in a&&g("call","type",a["call-type"]),"T"in a&&g("call","timeout",a.t),"call-timeout"in a&&g("call","timeout",a["call-timeout"]),"I"in a&&g("index","retrieve",a.I),"index_retrieve"in a&&g("index","retrieve",a["index-retrieve"]),"app"in a&&g("target","app",a.app),"K"in a&&g("target","app",a.K),"cache-dir"in a&&g("cache","dir",a["cache-dir"]),"W"in a&&g("cache","dir",a.W),"data-dir"in a&&g("data","dir",a["data-dir"]),"D"in a&&g("data","dir",a.D),"P"in a&&g("price","gas",a.P),"price-gas"in a&&g("price","gas",a["price-gas"]),"u"in a&&g("measure","unit",a.u),"measure-unit"in a&&g("measure","unit",a["measure-unit"]),"V"in a&&g("msg","value",a.V),"msg-value"in a&&g("msg","value",a["msg-value"]),"r"in a&&g("retries","max",a.r),"retries-max"in a&&g("retries","max",a["retries-max"]),"S"in a&&g("rpc","selection",a.S),"rpc-selection"in a&&g("rpc","selection",a["rpc-selection"]),"A"in a&&g("contract","abi",a.A),"abi"in a&&g("contract","abi",a.abi),"B"in a&&g("contract","bytecode",a.B),"bytecode"in a&&g("contract","bytecode",a.bytecode),"C"in a&&g("contract","compiler_output",a.C),"compiler-output"in a&&g("contract","compiler_output",a["compiler-output"]),"a"in a&&g("call","auth","y"),"auth"in a&&g("call","auth","y");const n=s("target","networks");"n"in a&&n.push(a.n),"network"in a&&n.push(a.network),g("target","networks",n),w(a),(a.v||a.verbose)&&(c.quiet="n")}function R(){let t,e;g("runtime","environment","browser"),g("call","type",c("call_type")[0]),g("call","timeout",c("call_timeout")[0]),g("index","retrieve",c("index_retrieve")[0]),g("data","dir",c("data_dir")[0]),g("cache","dir",c("cache_dir")[0]),g("price","gas",c("price_gas")[0]),g("measure","unit",c("measure_unit")[0]),g("msg","value",c("msg_value")[0]),g("retries","max",c("retries_max")[0]),g("rpc","selection",c("rpc_selection")[0]),g("contract","abi",c("abi")[0]),g("contract","bytecode",c("bytecode")[0]),g("contract","compiler_output",c("compiler_output")[0]),g("rpc","selection",c("rpc_selection")[0]);const a=s("target","networks");for(e of c("network"))a.push(e);g("target","networks",a);const r=s("method","args");for(t of c("method_args"))r.push(t);g("method","args",r);const o=p();o.quiet=c("quiet"),0===o.quiet.length&&(o.quiet="n")}async function B(t){let e;const a=await M.apply(null,app_opts),r=typeof a;if("object"==r)for(e of a)i(e);else"string"==r&&h(a)}async function N(){await S(),q(),app_opts=[call_type,call_timeout,wallet_name,wallet_path,wallet_password,wallet_seed,api_key,msg_value,price_gas,measure_unit,retries_max,target_network,rpc_selection,contract_address,contract_abi,contract_bytecode,contract_compiler_output,contract_method,method_args],await B(app_opts)}T(),y(),await n("evm-contract-call.js")||await n("evm-contract-call")||await n("./evm-contract-call")?await V():(R(),v()),N(),e()}catch(K){e(K)}},1)}};const e={};function a(r){const o=e[r];if(void 0!==o)return o.exports;const c=e[r]={exports:{}};return t[r](c,c.exports,a),c.exports}a.m=t,(()=>{const t=Symbol("webpack queues"),e=Symbol("webpack exports"),r=Symbol("webpack error"),o=t=>{t?.d<1&&(t.d=1,t.forEach(t=>t.r--),t.forEach(t=>t.r--?t.r++:t()))};a.a=(a,c,n)=>{let i;n&&((i=[]).d=-1);const l=new Set,s=a.exports;let u,p,d;const _=new Promise((t,e)=>{d=e,p=t});_[e]=s,_[t]=t=>(i&&t(i),l.forEach(t),_.catch(t=>{})),a.exports=_,c(a=>{let c;u=(a=>a.map(a=>{if(null!==a&&"object"==typeof a){if(a[t])return a;if(a.then){const c=[];c.d=0,a.then(t=>{n[e]=t,o(c)},t=>{n[r]=t,o(c)});const n={};return n[t]=t=>t(c),n}}const c={};return c[t]=t=>{},c[e]=a,c}))(a);const n=()=>u.map(t=>{if(t[r])throw t[r];return t[e]}),s=new Promise(e=>{c=()=>e(n),c.r=0;const a=t=>t!==i&&!l.has(t)&&(l.add(t),t&&!t.d&&(c.r++,t.push(c)));u.forEach(e=>e[t](a))});return c.r?s:n()},t=>(t?d(_[r]=t):p(s),o(i))),i?.d<0&&(i.d=0)}})(),(()=>{const t=Object.getPrototypeOf;let e;a.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}const c=Object.create(null);a.r(c);const n={};e=e||[null,t({}),t([]),t(t)];for(var i=2&o&&r;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(t=>n[t]=()=>r[t]);return n.default=()=>r,a.d(c,n),c}})(),a.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var o=e[r++],c=e[r++],n=0===c?{enumerable:!0,value:e[r++]}:{enumerable:!0,get:c};a.o(t,o)||Object.defineProperty(t,o,n)}else for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce((e,r)=>(a.f[r](t,e),e),[])),a.u=t=>t+".evm-contract-call.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t={},e="evm-contracts-tools:";a.l=(r,o,c,n)=>{if(t[r])return void t[r].push(o);let i,l;if(void 0!==c){const t=document.getElementsByTagName("script");for(var s=0;s<t.length;s++){const a=t[s];if(a.getAttribute("src")==r||a.getAttribute("data-webpack")==e+c){i=a;break}}}i||(l=!0,i=document.createElement("script"),i.charset="utf-8",a.nc&&i.setAttribute("nonce",a.nc),i.setAttribute("data-webpack",e+c),i.src=r),t[r]=[o];const u=(e,a)=>{i.onerror=i.onload=null,clearTimeout(p);const o=t[r];if(delete t[r],i.parentNode?.removeChild(i),o?.forEach(t=>t(a)),e)return e(a)},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),l&&document.head.appendChild(i)}})(),a.r=t=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{let t;a.g.importScripts&&(t=a.g.location+"");const e=a.g.document;if(!t&&e&&("SCRIPT"===e.currentScript?.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){const a=e.getElementsByTagName("script");if(a.length){let e=a.length-1;for(;e>-1&&(!t||!/^https?:/.test(t));)t=a[e--].src}}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),a.p=t})(),(()=>{const t={792:0};a.f.j=(e,r)=>{let o=a.o(t,e)?t[e]:void 0;if(0!==o)if(o)r.push(o[2]);else{const c=new Promise((a,r)=>o=t[e]=[a,r]);r.push(o[2]=c);const n=new Error,i=r=>{if(a.o(t,e)&&(o=t[e],0!==o&&(t[e]=void 0),o)){const t=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;n.message="Loading chunk "+e+" failed.\n("+t+": "+a+")",n.name="ChunkLoadError",n.type=t,n.request=a,n.event=r,o[1](n)}};a.l(a.p+a.u(e),i,"chunk-"+e,e)}};const e=(e,r)=>{let[o,c,n]=r;var i,l,s=0;if(o.some(e=>0!==t[e])){for(i in c)a.o(c,i)&&(a.m[i]=c[i]);n&&n(a)}for(e&&e(r);s<o.length;s++)l=o[s],a.o(t,l)&&t[l]&&t[l][0](),t[l]=0},r=self.webpackChunkevm_contracts_tools=self.webpackChunkevm_contracts_tools||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),a(2632)})();
1
+ (()=>{"use strict";var t={2632(t,e,a){a.a(t,async(t,e)=>{try{const r=await a.e(35).then(()=>a(5035)),o=r._argv_get,c=r._argv_url_get,n=r._cmdline_check,i=r._echo,l=r._echo2,s=r._exit,u=r._get,d=r._get_date_human,p=r._global_get,_=(r._homedir_get,r._msg_info),m=r._msg_error,h=r._override_set,f=(r._printf,r._require),g=r._set,w=await f("libevm"),b=w._libevm_cmdline_parse,y=w._libevm_global_variables,v=w._libevm_url_parse,$=w._wallet_overrides_set,k=await a.e(679).then(()=>a(1679)),x=k._artifact_local_auto_detect,C=k._address_check,E=k._cache_dir_auto_detect,D=k._data_dir_auto_detect,P=k._default_artifact_path_get,j=k._contract_abi_auto_detect,A=k._evm_contract_call,I=k._call_auth_auto_detect,M=k._target_app_auto_detect,q=k._contract_address_auto_detect,S=k._target_contract_auto_detect;function O(){g("app","name","evm-contract-call.js"),g("app","opts",[]),g("runtime","environment",""),g("call","date",""),g("cache","dir",""),g("data","dir",""),g("wallet","name",""),g("retries","max",""),g("rpc","selection",""),g("call","type",""),g("index","retrieve",""),g("target","app",""),g("target","contract",""),g("contract","address",""),g("contract","bytecode",""),g("contract","compiler_output",""),g("contract","abi",""),g("contract","method",""),g("method","args",[]),g("price","gas",""),g("measure","unit","");const t=p();t.quiet="",t.verbose=""}async function T(t){let e,a,r,o;const c=p();""==c.quiet&&(c.quiet="y"),u("target","app");const n=u("target","networks");await E(),await D(),h("call","date",d()),h("wallet","name","default"),h("retries","max","300"),h("rpc","selection","kirsh"),h("call","type","static"),I(),h("call","timeout","300000"),h("measure","unit","ether"),h("msg","value","0"),await $("evm-wallet",wallet_name,call_auth,"n",n),await M(),await S();try{await q()}catch(t){throw o="Error auto-detecting address.",m(o,0),l(o),t}const i=typeof t;if("undefined"!==i&&""!==t&&"boolean"!==i&&!0!==t){try{r=u("contract","address"),e=await C(r)}catch(t){throw o=`Error detecting validity of address '${r}'`,m(o,0),l(t),t}if(!e)throw o=`Contract address '${contract_address}' is invalid.`,m(o,0),o}h("index","retrieve","n"),a=u("contract","abi"),r=u("contract","address");const s=u("target","contract"),f=typeof r,g=typeof a;if("undefined"!==f&&""!=r){if("array"===g)o="Not implemented.",m(o,1);else if("string"===g)if(0<a.length)o="Contract ABI:",m(o,0),l(a);else{o=`Specified no contract ABI for contract '${s}' and address'${r}',auto-detecting.`,_(o);try{a=await P("abi"),await x("bytecode"),await x("compiler_output"),""!=a&&P("abi")!=a||await j()}catch(t){throw o="Sigh.",m(o,0),t}}}else o=`Contract address (type '${f}'):`,m(o,0),l(r)}function W(){let t;const e=[`${u("app","name")} configuration:`,` Call date: ${call_date}`,` Runtime environment: ${runtime_environment}`,` Call type: ${call_type}`,` Call authentication: ${call_auth}`," Application options:",` Cache directory: ${cache_dir}`,` Data directory: ${data_dir}`," Credentials options:",` Wallet name: ${wallet_name}`,` Wallet address: ${api_key}`,` Wallet path: ${wallet_path}`,` Wallet password: ${wallet_password}`,` Wallet seed: ${wallet_seed}`," Network options:",` Target networks: ${target_networks}`,` Max retries: ${retries_max}`,` Call timeout: ${call_timeout}`,` API key: ${api_key}`,` RPC selection method: ${rpc_selection}`,` Gas price: ${price_gas}`," Contract options:",` Target application: ${target_app}`,` Target contract: ${target_contract}`,` Contract address: ${contract_address}`,` Contract ABI: ${contract_abi}`,` Contract bytecode: ${contract_bytecode}`,` Retrieve from Index: ${index_retrieve}`,` Contract compiler output: ${contract_compiler_output}`," Call options:",` Message value: ${msg_value}`,` Measure unit: ${measure_unit}`,` Contract method: ${contract_method}`,` Method arguments: ${method_args}`];for(t of e)_(t)}function R(t){let e;const a=["","Runs a smart contract function.","","Usage:","",` ${u("app","name")}`," [options]"," <contract-address>"," <contract-method>"," ([method-args])",""," networks:"," all those supported by"," 'evm-chains-info' as well"," as directly RPC addresses",""," options:",""," -t --call-type It can be 'static' or 'dynamic'.",` <call-type> Default: '${call_type}`,""," call options:",` -V --msg-value How much '${measure_unit} to attach to the`," <msg-value> transaction.",` Default: '${msg_value}'`,""," -u --measure-unit Measure unit for the transacion."," <measure-unit> It can be 'ether' or 'wei'.",` Default: '${measure_unit}'`,""," -P --price-gas I dont remember. It can be 'idontknow'."," <price-gas>",` Default: '${price_gas}'`,""," -r --retries-max Maximum number of retries before"," <retries-max> Declaring the call failed.",` Default: '${retries_max}'`,""," -T --call-timeout Maximum number of milliseconds before"," <call-timeout> declaring the call failed.",` Default: '${call_timeout}'`,""," contract options:",""," -A --abi Contract ABI path.",` <contract-abi> Default: '${contract_abi}'.`,""," -B --bytecode Contract bytecode path.",` <contract-bytecode> Default: '${contract_bytecode}'.`,""," -C --compiler-output Contract compiler output path"," <contract-bytecode> (the hardhat artifact.",` Default: '${contract_compiler_output}'.`,""," -I --index-retrieve Enables retrieving contract's artifacts"," from the EVM Contracts Source Index.",` Default: '${index_retrieve}'.`,""," credentials options:",""," -N --wallet-name EVM Wallet name.",` <wallet-name> Default: '${wallet_name}'.`,""," -w --wallet-path EVM Wallet path.",` <wallet-path> Default: '${wallet_path}'.`,""," -p --wallet-password EVM Wallet password file.",` <wallet-password> Default: '${wallet_password}'.`,""," -s --wallet-seed EVM Wallet seed file.",` <wallet-seed> Default: '${wallet_seed}'.`,""," -k --api-key Etherscan-like service key file.",` <api-key> Default: '${api_key}'.`,""," libEVM options:",""," -K --app Target application.",` Default: '${target_app}'`,""," -a --auth Call authentication.",` Default: '${call_auth}'`,""," -n --network EVM network name. Accepted"," <network> values are all those supported by"," 'evm-chains-info' and RPC addresses.",` Default: '${target_network}'.`,""," -S --rpc-selection RPC selection method. It can be"," <rpc-selection> 'kirsh', 'random' or 'all'.",` Default: '${rpc_selection}'.`,""," Application options:",""," -W --cache-dir Cache directory.",` Default: '${cache_dir}'`,""," -D --data-dir Data directory.",` Default: '${data_dir}'`," -h --help This message.",""," -v --verbose Enable verbose output.",""];for(e of a)i(e);s(t)}async function V(){let t,e;const a=await o({booleans:["a","auth","h","help","I","index-retrieve","v","verbose"],string:!0}),r=a._,c=p();c.quiet="y",g("runtime","environment","node"),1==a.h&&(t=!0),1==a.help&&(t=!0),(r.indexOf("--help")>-1||r.indexOf("-h")>-1)&&(t=!0),t&&(c.quiet="n",await T(t),R(0)),(void 0===a||a._.length<1)&&(e="Contract address argument required.",m(e,0),R(1)),g("contract","address",a._[0]),(void 0===a||a._.length<2)&&(e="Contract method argument required.",m(e,0),R(1)),g("contract","method",a._[0]),g("method","args",a._.slice(2,a._.length-2)),"t"in a&&g("call","type",a.t),"call-type"in a&&g("call","type",a["call-type"]),"T"in a&&g("call","timeout",a.t),"call-timeout"in a&&g("call","timeout",a["call-timeout"]),"I"in a&&g("index","retrieve",a.I),"index_retrieve"in a&&g("index","retrieve",a["index-retrieve"]),"app"in a&&g("target","app",a.app),"K"in a&&g("target","app",a.K),"cache-dir"in a&&g("cache","dir",a["cache-dir"]),"W"in a&&g("cache","dir",a.W),"data-dir"in a&&g("data","dir",a["data-dir"]),"D"in a&&g("data","dir",a.D),"P"in a&&g("price","gas",a.P),"price-gas"in a&&g("price","gas",a["price-gas"]),"u"in a&&g("measure","unit",a.u),"measure-unit"in a&&g("measure","unit",a["measure-unit"]),"V"in a&&g("msg","value",a.V),"msg-value"in a&&g("msg","value",a["msg-value"]),"r"in a&&g("retries","max",a.r),"retries-max"in a&&g("retries","max",a["retries-max"]),"S"in a&&g("rpc","selection",a.S),"rpc-selection"in a&&g("rpc","selection",a["rpc-selection"]),"A"in a&&g("contract","abi",a.A),"abi"in a&&g("contract","abi",a.abi),"B"in a&&g("contract","bytecode",a.B),"bytecode"in a&&g("contract","bytecode",a.bytecode),"C"in a&&g("contract","compiler_output",a.C),"compiler-output"in a&&g("contract","compiler_output",a["compiler-output"]),"a"in a&&g("call","auth","y"),"auth"in a&&g("call","auth","y"),b(a),(a.v||a.verbose)&&(c.quiet="n")}function B(){let t,e;g("runtime","environment","browser"),g("call","type",c("call_type")[0]),g("call","timeout",c("call_timeout")[0]),g("index","retrieve",c("index_retrieve")[0]),g("target","app",c("app")[0]),g("data","dir",c("data_dir")[0]),g("cache","dir",c("cache_dir")[0]),g("price","gas",c("price_gas")[0]),g("measure","unit",c("measure_unit")[0]),g("msg","value",c("msg_value")[0]),g("retries","max",c("retries_max")[0]),g("rpc","selection",c("rpc_selection")[0]),g("contract","abi",c("abi")[0]),g("contract","bytecode",c("bytecode")[0]),g("contract","compiler_output",c("compiler_output")[0]),g("rpc","selection",c("rpc_selection")[0]);const a=u("target","networks");for(e of c("network"))a.push(e);g("target","networks",a);const r=u("method","args");for(t of c("method_args"))r.push(t);g("method","args",r);const o=p();o.quiet=c("quiet"),0===o.quiet.length&&(o.quiet="n")}async function N(t){let e,a;try{a=await A.apply(null,t)}catch(a){throw e=`Error running '_evm_contract_call' with options '${t}'.`,m(e,0),i(e),l(a),a}return a}async function K(){let t,e,a;try{a=await T()}catch(t){throw e="Error setting up overrides.",m(e,0),t}const r=p().quiet;W(),g("app","opts",[call_type,call_timeout,wallet_name,wallet_path,wallet_password,wallet_seed,api_key,msg_value,price_gas,measure_unit,retries_max,target_networks,rpc_selection,contract_address,contract_abi,contract_bytecode,contract_compiler_output,contract_method,method_args]);const o=u("app","opts");try{e="Running '_evm_contract_call_cmdline' with parameters:",_(e),"n"==r&&i(o),t=await N(o)}catch(t){throw e=`Running '_evm_contract_call_cmdline' with parameters '${o}' failed.`,m(e,0),l(t),t}return t}O(),y(),await n("evm-contract-call.js")||await n("evm-contract-call")||await n("./evm-contract-call")?await V():(B(),v());try{await K()}catch(L){throw m("Error running 'main'.",0),l(L),L}e()}catch(U){e(U)}},1)}};const e={};function a(r){const o=e[r];if(void 0!==o)return o.exports;const c=e[r]={exports:{}};return t[r](c,c.exports,a),c.exports}a.m=t,(()=>{const t=Symbol("webpack queues"),e=Symbol("webpack exports"),r=Symbol("webpack error"),o=t=>{t?.d<1&&(t.d=1,t.forEach(t=>t.r--),t.forEach(t=>t.r--?t.r++:t()))};a.a=(a,c,n)=>{let i;n&&((i=[]).d=-1);const l=new Set,s=a.exports;let u,d,p;const _=new Promise((t,e)=>{p=e,d=t});_[e]=s,_[t]=t=>(i&&t(i),l.forEach(t),_.catch(t=>{})),a.exports=_,c(a=>{let c;u=(a=>a.map(a=>{if(null!==a&&"object"==typeof a){if(a[t])return a;if(a.then){const c=[];c.d=0,a.then(t=>{n[e]=t,o(c)},t=>{n[r]=t,o(c)});const n={};return n[t]=t=>t(c),n}}const c={};return c[t]=t=>{},c[e]=a,c}))(a);const n=()=>u.map(t=>{if(t[r])throw t[r];return t[e]}),s=new Promise(e=>{c=()=>e(n),c.r=0;const a=t=>t!==i&&!l.has(t)&&(l.add(t),t&&!t.d&&(c.r++,t.push(c)));u.forEach(e=>e[t](a))});return c.r?s:n()},t=>(t?p(_[r]=t):d(s),o(i))),i?.d<0&&(i.d=0)}})(),(()=>{const t=Object.getPrototypeOf;let e;a.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}const c=Object.create(null);a.r(c);const n={};e=e||[null,t({}),t([]),t(t)];for(var i=2&o&&r;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(t=>n[t]=()=>r[t]);return n.default=()=>r,a.d(c,n),c}})(),a.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var o=e[r++],c=e[r++],n=0===c?{enumerable:!0,value:e[r++]}:{enumerable:!0,get:c};a.o(t,o)||Object.defineProperty(t,o,n)}else for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce((e,r)=>(a.f[r](t,e),e),[])),a.u=t=>t+".evm-contract-call.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t={},e="evm-contracts-tools:";a.l=(r,o,c,n)=>{if(t[r])return void t[r].push(o);let i,l;if(void 0!==c){const t=document.getElementsByTagName("script");for(var s=0;s<t.length;s++){const a=t[s];if(a.getAttribute("src")==r||a.getAttribute("data-webpack")==e+c){i=a;break}}}i||(l=!0,i=document.createElement("script"),i.charset="utf-8",a.nc&&i.setAttribute("nonce",a.nc),i.setAttribute("data-webpack",e+c),i.src=r),t[r]=[o];const u=(e,a)=>{i.onerror=i.onload=null,clearTimeout(d);const o=t[r];if(delete t[r],i.parentNode?.removeChild(i),o?.forEach(t=>t(a)),e)return e(a)},d=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),l&&document.head.appendChild(i)}})(),a.r=t=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{let t;a.g.importScripts&&(t=a.g.location+"");const e=a.g.document;if(!t&&e&&("SCRIPT"===e.currentScript?.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){const a=e.getElementsByTagName("script");if(a.length){let e=a.length-1;for(;e>-1&&(!t||!/^https?:/.test(t));)t=a[e--].src}}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),a.p=t})(),(()=>{const t={792:0};a.f.j=(e,r)=>{let o=a.o(t,e)?t[e]:void 0;if(0!==o)if(o)r.push(o[2]);else{const c=new Promise((a,r)=>o=t[e]=[a,r]);r.push(o[2]=c);const n=new Error,i=r=>{if(a.o(t,e)&&(o=t[e],0!==o&&(t[e]=void 0),o)){const t=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;n.message="Loading chunk "+e+" failed.\n("+t+": "+a+")",n.name="ChunkLoadError",n.type=t,n.request=a,n.event=r,o[1](n)}};a.l(a.p+a.u(e),i,"chunk-"+e,e)}};const e=(e,r)=>{let[o,c,n]=r;var i,l,s=0;if(o.some(e=>0!==t[e])){for(i in c)a.o(c,i)&&(a.m[i]=c[i]);n&&n(a)}for(e&&e(r);s<o.length;s++)l=o[s],a.o(t,l)&&t[l]&&t[l][0](),t[l]=0},r=self.webpackChunkevm_contracts_tools=self.webpackChunkevm_contracts_tools||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),a(2632)})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e={1679(e,t,r){r.a(e,async(e,t)=>{try{const e=await r.e(35).then(()=>r(5035)),o=(e._dir_exists,e._dirname,e._file_exists,e._get,e._homedir_get,e._json_read,e._lib_get,e._ls,e._msg_info,e._msg_error,e._override_set,e._path_join,e._range,e._require);e._set,(await r.e(204).then(()=>r(6204)))._address_check,(await r.e(825).then(()=>r(2825)))._evm_contract_deployment_address,(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 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 a;s&&((a=[]).d=-1);const i=new Set,l=r.exports;let u,d,f;const p=new Promise((e,t)=>{f=t,d=e});p[t]=l,p[e]=e=>(a&&e(a),i.forEach(e),p.catch(e=>{})),r.exports=p,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!==a&&!i.has(e)&&(i.add(e),e&&!e.d&&(c.r++,e.push(c)));u.forEach(t=>t[e](r))});return c.r?l:s()},e=>(e?f(p[o]=e):d(l),n(a))),a?.d<0&&(a.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 c=Object.create(null);r.r(c);const s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&n&&o;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>o[e]);return s.default=()=>o,r.d(c,s),c}})(),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+".libevm-contract-call.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-contracts-tools:";r.l=(o,n,c,s)=>{if(e[o])return void e[o].push(n);let a,i;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){a=r;break}}}a||(i=!0,a=document.createElement("script"),a.charset="utf-8",r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",t+c),a.src=o),e[o]=[n];const u=(t,r)=>{a.onerror=a.onload=null,clearTimeout(d);const n=e[o];if(delete e[o],a.parentNode?.removeChild(a),n?.forEach(e=>e(r)),t)return t(r)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),i&&document.head.appendChild(a)}})(),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,a=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),a,"chunk-"+t,t)}};const t=(t,o)=>{let[n,c,s]=o;var a,i,l=0;if(n.some(t=>0!==e[t])){for(a in c)r.o(c,a)&&(r.m[a]=c[a]);s&&s(r)}for(t&&t(o);l<n.length;l++)i=n[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkevm_contracts_tools=self.webpackChunkevm_contracts_tools||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r(1679)})();
1
+ (()=>{"use strict";var e={1679(e,t,r){r.a(e,async(e,t)=>{try{const e=await r.e(35).then(()=>r(5035)),o=(e._dir_exists,e._dirname,e._echo,e._file_exists,e._get,e._homedir_get,e._json_read,e._lib_get,e._ls,e._msg_info,e._msg_error,e._override_set,e._path_join,e._range,e._require);e._set,(await r.e(204).then(()=>r(6204)))._address_check,(await r.e(825).then(()=>r(2825)))._evm_contract_deployment_address,(await r.e(419).then(()=>r(1419)))._evm_contract_deployments_dir,(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 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 a;s&&((a=[]).d=-1);const i=new Set,l=r.exports;let u,d,f;const p=new Promise((e,t)=>{f=t,d=e});p[t]=l,p[e]=e=>(a&&e(a),i.forEach(e),p.catch(e=>{})),r.exports=p,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!==a&&!i.has(e)&&(i.add(e),e&&!e.d&&(c.r++,e.push(c)));u.forEach(t=>t[e](r))});return c.r?l:s()},e=>(e?f(p[o]=e):d(l),n(a))),a?.d<0&&(a.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 c=Object.create(null);r.r(c);const s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&n&&o;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>o[e]);return s.default=()=>o,r.d(c,s),c}})(),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+".libevm-contract-call.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-contracts-tools:";r.l=(o,n,c,s)=>{if(e[o])return void e[o].push(n);let a,i;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){a=r;break}}}a||(i=!0,a=document.createElement("script"),a.charset="utf-8",r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",t+c),a.src=o),e[o]=[n];const u=(t,r)=>{a.onerror=a.onload=null,clearTimeout(d);const n=e[o];if(delete e[o],a.parentNode?.removeChild(a),n?.forEach(e=>e(r)),t)return t(r)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),i&&document.head.appendChild(a)}})(),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,a=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),a,"chunk-"+t,t)}};const t=(t,o)=>{let[n,c,s]=o;var a,i,l=0;if(n.some(t=>0!==e[t])){for(a in c)r.o(c,a)&&(r.m[a]=c[a]);s&&s(r)}for(t&&t(o);l<n.length;l++)i=n[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkevm_contracts_tools=self.webpackChunkevm_contracts_tools||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r(1679)})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e={825(e,t,r){r.a(e,async(e,t)=>{try{const e=await r.e(35).then(()=>r(35)),o=(e._basename,e._chmod,e._cp,e._dir_exists,e._file_exists,e._file_read,e._from_bash_ass_array,e._homedir_get,e._json_read,e._lib_get,e._mkdir,e._msg_info,e._msg_error,e._override_set,e._path_join,e._pwd,e._require),n=((await o("evm-chains-info"))._evm_chains_info,(await r.e(419).then(()=>r(419)))._evm_contract_deployments_dir,await r.e(486).then(()=>r(486)));n._contract_version_auto_detect,n._deployments_dir_auto_detect,n._network_check,n._networks_all_auto_detect,n._target_app_auto_detect,n._user_deployments_check,(await r.e(822).then(()=>r(822)))._evm_contract_deployment_networks,(await r.e(724).then(()=>r(724)))._evm_contract_deployment_versions,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 a;s&&((a=[]).d=-1);const i=new Set,l=r.exports;let u,d,_;const p=new Promise((e,t)=>{_=t,d=e});p[t]=l,p[e]=e=>(a&&e(a),i.forEach(e),p.catch(e=>{})),r.exports=p,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!==a&&!i.has(e)&&(i.add(e),e&&!e.d&&(c.r++,e.push(c)));u.forEach(t=>t[e](r))});return c.r?l:s()},e=>(e?_(p[o]=e):d(l),n(a))),a?.d<0&&(a.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 c=Object.create(null);r.r(c);const s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&n&&o;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>o[e]);return s.default=()=>o,r.d(c,s),c}})(),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+".libevm-contract-deployment-address.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-contracts-tools:";r.l=(o,n,c,s)=>{if(e[o])return void e[o].push(n);let a,i;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){a=r;break}}}a||(i=!0,a=document.createElement("script"),a.charset="utf-8",r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",t+c),a.src=o),e[o]=[n];const u=(t,r)=>{a.onerror=a.onload=null,clearTimeout(d);const n=e[o];if(delete e[o],a.parentNode?.removeChild(a),n?.forEach(e=>e(r)),t)return t(r)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),i&&document.head.appendChild(a)}})(),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,a=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),a,"chunk-"+t,t)}};const t=(t,o)=>{let[n,c,s]=o;var a,i,l=0;if(n.some(t=>0!==e[t])){for(a in c)r.o(c,a)&&(r.m[a]=c[a]);s&&s(r)}for(t&&t(o);l<n.length;l++)i=n[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkevm_contracts_tools=self.webpackChunkevm_contracts_tools||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r(825)})();
1
+ (()=>{"use strict";var e={825(e,t,r){r.a(e,async(e,t)=>{try{const e=await r.e(35).then(()=>r(35)),o=(e._basename,e._chmod,e._cp,e._dir_exists,e._echo,e._echo2,e._file_exists,e._file_read,e._from_bash_ass_array,e._global_get,e._homedir_get,e._json_read,e._lib_get,e._mkdir,e._msg_info,e._msg_error,e._override_set,e._path_join,e._pwd,e._require,await r.e(486).then(()=>r(486)));o._contract_version_auto_detect,o._deployments_dir_auto_detect,o._network_check,o._networks_all_auto_detect,o._target_app_auto_detect,o._user_deployments_check,(await r.e(822).then(()=>r(822)))._evm_contract_deployment_networks,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 a;s&&((a=[]).d=-1);const i=new Set,l=r.exports;let u,d,p;const f=new Promise((e,t)=>{p=t,d=e});f[t]=l,f[e]=e=>(a&&e(a),i.forEach(e),f.catch(e=>{})),r.exports=f,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!==a&&!i.has(e)&&(i.add(e),e&&!e.d&&(c.r++,e.push(c)));u.forEach(t=>t[e](r))});return c.r?l:s()},e=>(e?p(f[o]=e):d(l),n(a))),a?.d<0&&(a.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 c=Object.create(null);r.r(c);const s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&n&&o;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>o[e]);return s.default=()=>o,r.d(c,s),c}})(),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+".libevm-contract-deployment-address.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-contracts-tools:";r.l=(o,n,c,s)=>{if(e[o])return void e[o].push(n);let a,i;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){a=r;break}}}a||(i=!0,a=document.createElement("script"),a.charset="utf-8",r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",t+c),a.src=o),e[o]=[n];const u=(t,r)=>{a.onerror=a.onload=null,clearTimeout(d);const n=e[o];if(delete e[o],a.parentNode?.removeChild(a),n?.forEach(e=>e(r)),t)return t(r)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),i&&document.head.appendChild(a)}})(),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,a=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),a,"chunk-"+t,t)}};const t=(t,o)=>{let[n,c,s]=o;var a,i,l=0;if(n.some(t=>0!==e[t])){for(a in c)r.o(c,a)&&(r.m[a]=c[a]);s&&s(r)}for(t&&t(o);l<n.length;l++)i=n[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkevm_contracts_tools=self.webpackChunkevm_contracts_tools||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r(825)})();